]> code.delx.au - gnu-emacs/blob - configure
Merge from emacs--devo--0
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS XFT_CFLAGS XFT_LIBS FREETYPE_CFLAGS FREETYPE_LIBS FONTCONFIG_CFLAGS FONTCONFIG_LIBS HAVE_LIBOTF LIBOTF_CFLAGS LIBOTF_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-font-backend compile code of font-backend support
860 --enable-asserts compile code with asserts enabled
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-locallisppath=PATH
864 directories Emacs should search for lisp files
865 specific to this site
866 --disable-largefile omit support for large files
867
868 Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --without-gcc don't use GCC to compile Emacs if GCC is found
872 --without-pop don't support POP mail retrieval with movemail
873 --with-kerberos support Kerberos-authenticated POP
874 --with-kerberos5 support Kerberos version 5 authenticated POP
875 --with-hesiod support Hesiod to get the POP server host
876 --without-sound don't compile with sound support
877 --with-x-toolkit=KIT use an X toolkit
878 (KIT = yes/lucid/athena/motif/gtk/no)
879 --with-xpm use -lXpm for displaying XPM images
880 --with-jpeg use -ljpeg for displaying JPEG images
881 --with-tiff use -ltiff for displaying TIFF images
882 --with-gif use -lungif for displaying GIF images
883 --with-png use -lpng for displaying PNG images
884 --with-freetype use -lfreetype for local fonts support
885 --with-xft use -lXft for anti aliased fonts
886 --with-gtk use GTK (same as --with-x-toolkit=gtk)
887 --with-pkg-config-prog Path to pkg-config to use for finding GTK
888 --without-toolkit-scroll-bars
889 don't use Motif or Xaw3d scroll bars
890 --without-xim don't use X11 XIM
891 --without-carbon don't use Carbon GUI on Mac OS X
892 --with-x use the X Window System
893
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CPP C preprocessor
902
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
905
906 _ACEOF
907 fi
908
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
911 ac_popdir=`pwd`
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
914 ac_builddir=.
915
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 else
921 ac_dir_suffix= ac_top_builddir=
922 fi
923
924 case $srcdir in
925 .) # No --srcdir option. We are building in place.
926 ac_srcdir=.
927 if test -z "$ac_top_builddir"; then
928 ac_top_srcdir=.
929 else
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 fi ;;
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
935 *) # Relative path.
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
938 esac
939
940 # Do not use `cd foo && pwd` to compute absolute paths, because
941 # the directories may not exist.
942 case `pwd` in
943 .) ac_abs_builddir="$ac_dir";;
944 *)
945 case "$ac_dir" in
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
953 *)
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
962 *)
963 case $ac_srcdir in
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
971 *)
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
976 esac;;
977 esac
978
979 cd $ac_dir
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
982 echo
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
985 echo
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
989 echo
990 $ac_configure --help
991 else
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
993 fi
994 cd $ac_popdir
995 done
996 fi
997
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1000 cat <<\_ACEOF
1001
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1005 _ACEOF
1006 exit 0
1007 fi
1008 exec 5>config.log
1009 cat >&5 <<_ACEOF
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1012
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1015
1016 $ $0 $@
1017
1018 _ACEOF
1019 {
1020 cat <<_ASUNAME
1021 ## --------- ##
1022 ## Platform. ##
1023 ## --------- ##
1024
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1030
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1033
1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1041
1042 _ASUNAME
1043
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 for as_dir in $PATH
1046 do
1047 IFS=$as_save_IFS
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1050 done
1051
1052 } >&5
1053
1054 cat >&5 <<_ACEOF
1055
1056
1057 ## ----------- ##
1058 ## Core tests. ##
1059 ## ----------- ##
1060
1061 _ACEOF
1062
1063
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1069 ac_configure_args=
1070 ac_configure_args0=
1071 ac_configure_args1=
1072 ac_sep=
1073 ac_must_keep_next=false
1074 for ac_pass in 1 2
1075 do
1076 for ac_arg
1077 do
1078 case $ac_arg in
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 continue ;;
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085 esac
1086 case $ac_pass in
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1088 2)
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1092 else
1093 case $ac_arg in
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100 esac
1101 ;;
1102 -* ) ac_must_keep_next=true ;;
1103 esac
1104 fi
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1107 ac_sep=" "
1108 ;;
1109 esac
1110 done
1111 done
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1114
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1122 {
1123 echo
1124
1125 cat <<\_ASBOX
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1129 _ASBOX
1130 echo
1131 # The following way of writing the cache mishandles newlines in values,
1132 {
1133 (set) 2>&1 |
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135 *ac_space=\ *)
1136 sed -n \
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 ;;
1140 *)
1141 sed -n \
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143 ;;
1144 esac;
1145 }
1146 echo
1147
1148 cat <<\_ASBOX
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_vars
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160
1161 if test -n "$ac_subst_files"; then
1162 cat <<\_ASBOX
1163 ## ------------- ##
1164 ## Output files. ##
1165 ## ------------- ##
1166 _ASBOX
1167 echo
1168 for ac_var in $ac_subst_files
1169 do
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1172 done | sort
1173 echo
1174 fi
1175
1176 if test -s confdefs.h; then
1177 cat <<\_ASBOX
1178 ## ----------- ##
1179 ## confdefs.h. ##
1180 ## ----------- ##
1181 _ASBOX
1182 echo
1183 sed "/^$/d" confdefs.h | sort
1184 echo
1185 fi
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1189 } >&5
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192 exit $exit_status
1193 ' 0
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 done
1197 ac_signal=0
1198
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202 echo >confdefs.h
1203
1204 # Predefined preprocessor variables.
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 _ACEOF
1229
1230
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 else
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1238 fi
1239 fi
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
1245 . "$ac_site_file"
1246 fi
1247 done
1248
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1255 case $cache_file in
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1258 esac
1259 fi
1260 else
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1263 >$cache_file
1264 fi
1265
1266 # Check that the precious variables saved in the cache have kept the same
1267 # value.
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1276 set,)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,set)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,);;
1285 *)
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1294 fi;;
1295 esac
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1298 case $ac_new_val in
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1302 esac
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 esac
1307 fi
1308 done
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1315 fi
1316
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1342
1343
1344 test "$program_prefix" != NONE &&
1345 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1346 # Use a double $ so make ignores it.
1347 test "$program_suffix" != NONE &&
1348 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1349 # Double any \ or $. echo might interpret backslashes.
1350 # By default was `s,x,x', remove it if useless.
1351 cat <<\_ACEOF >conftest.sed
1352 s/[\\$]/&&/g;s/;s,x,x,$//
1353 _ACEOF
1354 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1355 rm conftest.sed
1356
1357
1358 lispdir='${datadir}/emacs/${version}/lisp'
1359 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1360 '${datadir}/emacs/site-lisp'
1361 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1362 etcdir='${datadir}/emacs/${version}/etc'
1363 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1364 docdir='${datadir}/emacs/${version}/etc'
1365 gamedir='${localstatedir}/games/emacs'
1366
1367 gameuser=games
1368
1369
1370 # Check whether --with-gcc or --without-gcc was given.
1371 if test "${with_gcc+set}" = set; then
1372 withval="$with_gcc"
1373
1374 fi;
1375
1376 # Check whether --with-pop or --without-pop was given.
1377 if test "${with_pop+set}" = set; then
1378 withval="$with_pop"
1379 if test "$withval" = yes; then
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1383
1384 else :
1385 fi
1386 else
1387 cat >>confdefs.h <<\_ACEOF
1388 #define MAIL_USE_POP 1
1389 _ACEOF
1390
1391 fi;
1392
1393
1394 # Check whether --with-kerberos or --without-kerberos was given.
1395 if test "${with_kerberos+set}" = set; then
1396 withval="$with_kerberos"
1397 cat >>confdefs.h <<\_ACEOF
1398 #define KERBEROS 1
1399 _ACEOF
1400
1401 fi;
1402
1403
1404 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1405 if test "${with_kerberos5+set}" = set; then
1406 withval="$with_kerberos5"
1407 if test "${with_kerberos5+set}" = set; then
1408 if test "${with_kerberos+set}" != set; then
1409 with_kerberos=yes
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS 1
1412 _ACEOF
1413
1414 fi
1415 fi
1416
1417 cat >>confdefs.h <<\_ACEOF
1418 #define KERBEROS5 1
1419 _ACEOF
1420
1421 fi;
1422
1423 # Check whether --with-hesiod or --without-hesiod was given.
1424 if test "${with_hesiod+set}" = set; then
1425 withval="$with_hesiod"
1426
1427 cat >>confdefs.h <<\_ACEOF
1428 #define HESIOD 1
1429 _ACEOF
1430
1431 fi;
1432
1433
1434 # Check whether --with-sound or --without-sound was given.
1435 if test "${with_sound+set}" = set; then
1436 withval="$with_sound"
1437
1438 fi;
1439
1440
1441 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1442 if test "${with_x_toolkit+set}" = set; then
1443 withval="$with_x_toolkit"
1444 case "${withval}" in
1445 y | ye | yes ) val=athena ;;
1446 n | no ) val=no ;;
1447 l | lu | luc | luci | lucid ) val=lucid ;;
1448 a | at | ath | athe | athen | athena ) val=athena ;;
1449 m | mo | mot | moti | motif ) val=motif ;;
1450 g | gt | gtk ) val=gtk ;;
1451 * )
1452 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1455 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1456 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1457 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1458 { (exit 1); exit 1; }; }
1459 ;;
1460 esac
1461 with_x_toolkit=$val
1462
1463 fi;
1464
1465 # Check whether --with-xpm or --without-xpm was given.
1466 if test "${with_xpm+set}" = set; then
1467 withval="$with_xpm"
1468
1469 fi;
1470
1471 # Check whether --with-jpeg or --without-jpeg was given.
1472 if test "${with_jpeg+set}" = set; then
1473 withval="$with_jpeg"
1474
1475 fi;
1476
1477 # Check whether --with-tiff or --without-tiff was given.
1478 if test "${with_tiff+set}" = set; then
1479 withval="$with_tiff"
1480
1481 fi;
1482
1483 # Check whether --with-gif or --without-gif was given.
1484 if test "${with_gif+set}" = set; then
1485 withval="$with_gif"
1486
1487 fi;
1488
1489 # Check whether --with-png or --without-png was given.
1490 if test "${with_png+set}" = set; then
1491 withval="$with_png"
1492
1493 fi;
1494
1495 # Check whether --with-freetype or --without-freetype was given.
1496 if test "${with_freetype+set}" = set; then
1497 withval="$with_freetype"
1498
1499 fi;
1500
1501 # Check whether --with-xft or --without-xft was given.
1502 if test "${with_xft+set}" = set; then
1503 withval="$with_xft"
1504
1505 fi;
1506
1507 # Check whether --with-gtk or --without-gtk was given.
1508 if test "${with_gtk+set}" = set; then
1509 withval="$with_gtk"
1510
1511 fi;
1512
1513 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1514 if test "${with_pkg_config_prog+set}" = set; then
1515 withval="$with_pkg_config_prog"
1516
1517 fi;
1518
1519 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1520 if test "${with_toolkit_scroll_bars+set}" = set; then
1521 withval="$with_toolkit_scroll_bars"
1522
1523 fi;
1524
1525 # Check whether --with-xim or --without-xim was given.
1526 if test "${with_xim+set}" = set; then
1527 withval="$with_xim"
1528
1529 fi;
1530
1531 # Check whether --with-carbon or --without-carbon was given.
1532 if test "${with_carbon+set}" = set; then
1533 withval="$with_carbon"
1534
1535 fi;
1536 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1537 if test "${enable_carbon_app+set}" = set; then
1538 enableval="$enable_carbon_app"
1539 carbon_appdir_x=${enableval}
1540 fi;
1541
1542 # Check whether --enable-font-backend or --disable-font-backend was given.
1543 if test "${enable_font_backend+set}" = set; then
1544 enableval="$enable_font_backend"
1545 USE_FONT_BACKEND=$enableval
1546 else
1547 USE_FONT_BACKEND=no
1548 fi;
1549
1550 # Check whether --enable-asserts or --disable-asserts was given.
1551 if test "${enable_asserts+set}" = set; then
1552 enableval="$enable_asserts"
1553 USE_XASSERTS=$enableval
1554 else
1555 USE_XASSERTS=no
1556 fi;
1557
1558 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1559 if test "${enable_maintainer_mode+set}" = set; then
1560 enableval="$enable_maintainer_mode"
1561 USE_MAINTAINER_MODE=$enableval
1562 else
1563 USE_MAINTAINER_MODE=no
1564 fi;
1565 if test $USE_MAINTAINER_MODE = yes; then
1566 MAINT=
1567 else
1568 MAINT=#
1569 fi
1570
1571
1572 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1573 if test "${enable_locallisppath+set}" = set; then
1574 enableval="$enable_locallisppath"
1575 if test "${enableval}" = "no"; then
1576 locallisppath=
1577 elif test "${enableval}" != "yes"; then
1578 locallisppath=${enableval}
1579 fi
1580 fi;
1581
1582 #### Make srcdir absolute, if it isn't already. It's important to
1583 #### avoid running the path through pwd unnecessarily, since pwd can
1584 #### give you automounter prefixes, which can go away. We do all this
1585 #### so Emacs can find its files when run uninstalled.
1586 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1587 unset CDPATH
1588 case "${srcdir}" in
1589 /* ) ;;
1590 . )
1591 ## We may be able to use the $PWD environment variable to make this
1592 ## absolute. But sometimes PWD is inaccurate.
1593 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1594 ## but that tested only for a well-formed and valid PWD,
1595 ## it did not object when PWD was well-formed and valid but just wrong.
1596 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1597 then
1598 srcdir="$PWD"
1599 else
1600 srcdir="`(cd ${srcdir}; pwd)`"
1601 fi
1602 ;;
1603 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1604 esac
1605
1606 #### Check if the source directory already has a configured system in it.
1607 if test `pwd` != `(cd ${srcdir} && pwd)` \
1608 && test -f "${srcdir}/src/config.h" ; then
1609 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1610 as a build directory right now; it has been configured in its own
1611 right. To configure in another directory as well, you MUST
1612 use GNU make. If you do not have GNU make, then you must
1613 now do \`make distclean' in ${srcdir},
1614 and then run $0 again." >&5
1615 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1616 as a build directory right now; it has been configured in its own
1617 right. To configure in another directory as well, you MUST
1618 use GNU make. If you do not have GNU make, then you must
1619 now do \`make distclean' in ${srcdir},
1620 and then run $0 again." >&2;}
1621 fi
1622
1623 #### Given the configuration name, set machfile and opsysfile to the
1624 #### names of the m/*.h and s/*.h files we should use.
1625
1626 ### Canonicalize the configuration name.
1627
1628 ac_aux_dir=
1629 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1630 if test -f $ac_dir/install-sh; then
1631 ac_aux_dir=$ac_dir
1632 ac_install_sh="$ac_aux_dir/install-sh -c"
1633 break
1634 elif test -f $ac_dir/install.sh; then
1635 ac_aux_dir=$ac_dir
1636 ac_install_sh="$ac_aux_dir/install.sh -c"
1637 break
1638 elif test -f $ac_dir/shtool; then
1639 ac_aux_dir=$ac_dir
1640 ac_install_sh="$ac_aux_dir/shtool install -c"
1641 break
1642 fi
1643 done
1644 if test -z "$ac_aux_dir"; then
1645 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1646 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1647 { (exit 1); exit 1; }; }
1648 fi
1649 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1650 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1651 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1652
1653 # Make sure we can run config.sub.
1654 $ac_config_sub sun4 >/dev/null 2>&1 ||
1655 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1656 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1657 { (exit 1); exit 1; }; }
1658
1659 echo "$as_me:$LINENO: checking build system type" >&5
1660 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1661 if test "${ac_cv_build+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 ac_cv_build_alias=$build_alias
1665 test -z "$ac_cv_build_alias" &&
1666 ac_cv_build_alias=`$ac_config_guess`
1667 test -z "$ac_cv_build_alias" &&
1668 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1669 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1670 { (exit 1); exit 1; }; }
1671 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1675
1676 fi
1677 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1678 echo "${ECHO_T}$ac_cv_build" >&6
1679 build=$ac_cv_build
1680 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685 echo "$as_me:$LINENO: checking host system type" >&5
1686 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1687 if test "${ac_cv_host+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 ac_cv_host_alias=$host_alias
1691 test -z "$ac_cv_host_alias" &&
1692 ac_cv_host_alias=$ac_cv_build_alias
1693 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1694 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1695 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1696 { (exit 1); exit 1; }; }
1697
1698 fi
1699 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1700 echo "${ECHO_T}$ac_cv_host" >&6
1701 host=$ac_cv_host
1702 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1703 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1704 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1705
1706
1707 canonical=$host
1708 configuration=${host_alias-$host}
1709
1710
1711
1712 ### If you add support for a new configuration, add code to this
1713 ### switch statement to recognize your configuration name and select
1714 ### the appropriate operating system and machine description files.
1715
1716 ### You would hope that you could choose an m/*.h file pretty much
1717 ### based on the machine portion of the configuration name, and an s-
1718 ### file based on the operating system portion. However, it turns out
1719 ### that each m/*.h file is pretty manufacturer-specific - for
1720 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1721 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1722 ### machines. So we basically have to have a special case for each
1723 ### configuration name.
1724 ###
1725 ### As far as handling version numbers on operating systems is
1726 ### concerned, make sure things will fail in a fixable way. If
1727 ### /etc/MACHINES doesn't say anything about version numbers, be
1728 ### prepared to handle anything reasonably. If version numbers
1729 ### matter, be sure /etc/MACHINES says something about it.
1730 ###
1731 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1732 ### "System V Release 4"; he writes, "The old convention encouraged
1733 ### confusion between `system' and `release' levels'."
1734
1735 machine='' opsys='' unported=no
1736 case "${canonical}" in
1737
1738 ## FreeBSD ports
1739 *-*-freebsd* )
1740 opsys=freebsd
1741 case "${canonical}" in
1742 alpha*-*-freebsd*) machine=alpha ;;
1743 ia64-*-freebsd*) machine=ia64 ;;
1744 sparc64-*-freebsd*) machine=sparc ;;
1745 powerpc-*-freebsd*) machine=macppc ;;
1746 i[3456]86-*-freebsd*) machine=intel386 ;;
1747 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1748 esac
1749 ;;
1750
1751 ## NetBSD ports
1752 *-*-netbsd* )
1753 opsys=netbsd
1754 if test -f /usr/lib/crti.o; then
1755
1756 cat >>confdefs.h <<\_ACEOF
1757 #define HAVE_CRTIN
1758 _ACEOF
1759
1760 fi
1761
1762 case "${canonical}" in
1763 alpha*-*-netbsd*) machine=alpha ;;
1764 i[3456]86-*-netbsd*) machine=intel386 ;;
1765 m68k-*-netbsd*)
1766 # This is somewhat bogus.
1767 machine=hp9000s300 ;;
1768 powerpc-apple-netbsd*) machine=macppc ;;
1769 mips-*-netbsd*) machine=pmax ;;
1770 mipsel-*-netbsd*) machine=pmax ;;
1771 mipseb-*-netbsd*) machine=pmax ;;
1772 ns32k-*-netbsd*) machine=ns32000 ;;
1773 powerpc-*-netbsd*) machine=macppc ;;
1774 sparc*-*-netbsd*) machine=sparc ;;
1775 vax-*-netbsd*) machine=vax ;;
1776 arm-*-netbsd*) machine=arm ;;
1777 esac
1778 ;;
1779
1780 ## OpenBSD ports
1781 *-*-openbsd* )
1782 opsys=openbsd
1783 case "${canonical}" in
1784 alpha*-*-openbsd*) machine=alpha ;;
1785 i386-*-openbsd*) machine=intel386 ;;
1786 x86_64-*-openbsd*) machine=amdx86-64 ;;
1787 m68k-*-openbsd*) machine=hp9000s300 ;;
1788 mipsel-*-openbsd*) machine=pmax ;;
1789 ns32k-*-openbsd*) machine=ns32000 ;;
1790 sparc-*-openbsd*) machine=sparc ;;
1791 vax-*-openbsd*) machine=vax ;;
1792 esac
1793 ;;
1794
1795 ## LynxOS ports
1796 *-*-lynxos* )
1797 opsys=lynxos
1798 case "${canonical}" in
1799 i[3456]86-*-lynxos*) machine=intel386 ;;
1800 powerpc-*-lynxos*) machine=powerpc ;;
1801 esac
1802 ;;
1803
1804 ## Acorn RISCiX:
1805 arm-acorn-riscix1.1* )
1806 machine=acorn opsys=riscix1-1
1807 ;;
1808 arm-acorn-riscix1.2* | arm-acorn-riscix )
1809 ## This name is riscix12 instead of riscix1.2
1810 ## to avoid a file name conflict on MSDOS.
1811 machine=acorn opsys=riscix12
1812 ;;
1813
1814 ## BSDI ports
1815 *-*-bsdi* )
1816 opsys=bsdi
1817 case "${canonical}" in
1818 i[345]86-*-bsdi*) machine=intel386 ;;
1819 sparc-*-bsdi*) machine=sparc ;;
1820 powerpc-*-bsdi*) machine=macppc ;;
1821 esac
1822 case "${canonical}" in
1823 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1824 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1825 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1826 *-*-bsdi3* ) opsys=bsdos3 ;;
1827 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1828 esac
1829 ;;
1830
1831 ## Alliant machines
1832 ## Strictly speaking, we need the version of the alliant operating
1833 ## system to choose the right machine file, but currently the
1834 ## configuration name doesn't tell us enough to choose the right
1835 ## one; we need to give alliants their own operating system name to
1836 ## do this right. When someone cares, they can help us.
1837 fx80-alliant-* )
1838 machine=alliant4 opsys=bsd4-2
1839 ;;
1840 i860-alliant-* )
1841 machine=alliant-2800 opsys=bsd4-3
1842 ;;
1843
1844 ## Alpha (DEC) machines.
1845 alpha*-dec-osf* )
1846 machine=alpha opsys=osf1
1847 # This is needed to find X11R6.1 libraries for certain tests.
1848 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1849 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1850 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1851 # due to non-traditional preprocessing with the current compiler
1852 # defaults. OSF 4 can also have that compiler version, and there
1853 # seems always to have been a usable /usr/bin/cpp.
1854 NON_GNU_CPP=/usr/bin/cpp
1855 case "${canonical}" in
1856 alpha*-dec-osf[5-9]*)
1857 opsys=osf5-0 ;;
1858 esac
1859 ;;
1860
1861 alpha*-*-linux-gnu* )
1862 machine=alpha opsys=gnu-linux
1863 ;;
1864
1865 arm*-*-linux-gnu* )
1866 machine=arm opsys=gnu-linux
1867 ;;
1868
1869 ## Altos 3068
1870 m68*-altos-sysv* )
1871 machine=altos opsys=usg5-2
1872 ;;
1873
1874 ## Amdahl UTS
1875 580-amdahl-sysv* )
1876 machine=amdahl opsys=usg5-2-2
1877 ;;
1878
1879 ## Apollo, Domain/OS
1880 m68*-apollo-* )
1881 machine=apollo opsys=bsd4-3
1882 ;;
1883
1884 ## AT&T 3b2, 3b5, 3b15, 3b20
1885 we32k-att-sysv* )
1886 machine=att3b opsys=usg5-2-2
1887 ;;
1888
1889 ## AT&T 3b1 - The Mighty Unix PC!
1890 m68*-att-sysv* )
1891 machine=7300 opsys=usg5-2-2
1892 ;;
1893
1894 ## Bull dpx20
1895 rs6000-bull-bosx* )
1896 machine=ibmrs6000 opsys=aix3-2
1897 ;;
1898
1899 ## Bull dpx2
1900 m68*-bull-sysv3* )
1901 machine=dpx2 opsys=usg5-3
1902 ;;
1903
1904 ## Bull sps7
1905 m68*-bull-sysv2* )
1906 machine=sps7 opsys=usg5-2
1907 ;;
1908
1909 ## CCI 5/32, 6/32 -- see "Tahoe".
1910
1911 ## Celerity
1912 ## I don't know what configuration name to use for this; config.sub
1913 ## doesn't seem to know anything about it. Hey, Celerity users, get
1914 ## in touch with us!
1915 celerity-celerity-bsd* )
1916 machine=celerity opsys=bsd4-2
1917 ;;
1918
1919 ## Clipper
1920 ## What operating systems does this chip run that Emacs has been
1921 ## tested on?
1922 clipper-* )
1923 machine=clipper
1924 ## We'll use the catch-all code at the bottom to guess the
1925 ## operating system.
1926 ;;
1927
1928 ## Compaq Nonstop
1929 mips-compaq-nonstopux* )
1930 machine=nonstopux opsys=nonstopux
1931 ;;
1932
1933 ## Convex
1934 *-convex-bsd* | *-convex-convexos* )
1935 machine=convex opsys=bsd4-3
1936 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1937 NON_GNU_CPP="cc -E -P"
1938 ;;
1939
1940 ## Cubix QBx/386
1941 i[3456]86-cubix-sysv* )
1942 machine=intel386 opsys=usg5-3
1943 ;;
1944
1945 ## Cydra 5
1946 cydra*-cydrome-sysv* )
1947 machine=cydra5 opsys=usg5-3
1948 ;;
1949
1950 ## Data General AViiON Machines
1951 ## DG changed naming conventions with the release of 5.4.4.10, they
1952 ## dropped the initial 5.4 but left the intervening R. Because of the
1953 ## R this shouldn't conflict with older versions of the OS (which I
1954 ## think were named like dgux4.*). In addition, DG new AViiONs series
1955 ## uses either Motorola M88k or Intel Pentium CPUs.
1956 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1957 machine=aviion opsys=dgux4
1958 ;;
1959 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1960 ## This name is dgux5-4-3 instead of dgux5-4r3
1961 ## to avoid a file name conflict on MSDOS.
1962 machine=aviion opsys=dgux5-4-3
1963 ;;
1964 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1965 machine=aviion opsys=dgux5-4r2
1966 ;;
1967 m88k-dg-dgux* )
1968 machine=aviion opsys=dgux
1969 ;;
1970
1971 ## Data General AViiON Intel (x86) Machines
1972 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1973 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1974 i[345]86-dg-dguxR4* )
1975 machine=aviion-intel opsys=dgux4
1976 ;;
1977
1978 ## DECstations
1979 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1980 machine=pmax opsys=bsd4-2
1981 ;;
1982 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1983 machine=pmax opsys=bsd4-3
1984 ;;
1985 mips-dec-ultrix* )
1986 machine=pmax opsys=ultrix4-3
1987 ;;
1988 mips-dec-osf* )
1989 machine=pmax opsys=osf1
1990 ;;
1991 mips-dec-mach_bsd4.3* )
1992 machine=pmax opsys=mach-bsd4-3
1993 ;;
1994
1995 ## Motorola Delta machines
1996 m68k-motorola-sysv* | m68000-motorola-sysv* )
1997 machine=delta opsys=usg5-3
1998 if test -z "`type gnucc | grep 'not found'`"
1999 then
2000 if test -s /etc/167config
2001 then CC="gnucc -m68040"
2002 else CC="gnucc -m68881"
2003 fi
2004 else
2005 if test -z "`type gcc | grep 'not found'`"
2006 then CC=gcc
2007 else CC=cc
2008 fi
2009 fi
2010 ;;
2011 m88k-motorola-sysv4* )
2012 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2013 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2014 # I hope there are not other 4.0 versions for this machine
2015 # which really need usg5-4 instead.
2016 machine=delta88k opsys=usg5-4-2
2017 ;;
2018 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2019 machine=delta88k opsys=usg5-3
2020 ;;
2021
2022 ## Dual machines
2023 m68*-dual-sysv* )
2024 machine=dual opsys=usg5-2
2025 ;;
2026 m68*-dual-uniplus* )
2027 machine=dual opsys=unipl5-2
2028 ;;
2029
2030 ## Elxsi 6400
2031 elxsi-elxsi-sysv* )
2032 machine=elxsi opsys=usg5-2
2033 ;;
2034
2035 ## Encore machines
2036 ns16k-encore-bsd* )
2037 machine=ns16000 opsys=umax
2038 ;;
2039
2040 ## The GEC 63 - apparently, this port isn't really finished yet.
2041 # I'm sure we finished off the last of the machines, though. -- fx
2042
2043 ## Gould Power Node and NP1
2044 pn-gould-bsd4.2* )
2045 machine=gould opsys=bsd4-2
2046 ;;
2047 pn-gould-bsd4.3* )
2048 machine=gould opsys=bsd4-3
2049 ;;
2050 np1-gould-bsd* )
2051 machine=gould-np1 opsys=bsd4-3
2052 ;;
2053
2054 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2055 ## as far as Emacs is concerned).
2056 m88k-harris-cxux* )
2057 # Build needs to be different on 7.0 and later releases
2058 case "`uname -r`" in
2059 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2060 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2061 esac
2062 NON_GNU_CPP="/lib/cpp"
2063 ;;
2064 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2065 m68k-harris-cxux* )
2066 machine=nh3000 opsys=cxux
2067 ;;
2068 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2069 powerpc-harris-powerunix )
2070 machine=nh6000 opsys=powerunix
2071 NON_GNU_CPP="cc -Xo -E -P"
2072 ;;
2073 ## SR2001/SR2201 running HI-UX/MPP
2074 hppa1.1-hitachi-hiuxmpp* )
2075 machine=sr2k opsys=hiuxmpp
2076 ;;
2077 hppa1.1-hitachi-hiuxwe2* )
2078 machine=sr2k opsys=hiuxwe2
2079 ;;
2080 ## Honeywell XPS100
2081 xps*-honeywell-sysv* )
2082 machine=xps100 opsys=usg5-2
2083 ;;
2084
2085 ## HP 9000 series 200 or 300
2086 m68*-hp-bsd* )
2087 machine=hp9000s300 opsys=bsd4-3
2088 ;;
2089 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2090 m68*-hp-hpux* )
2091 case "`uname -r`" in
2092 ## Someone's system reports A.B8.05 for this.
2093 ## I wonder what other possibilities there are.
2094 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2095 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2096 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2097 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2098 *) machine=hp9000s300 opsys=hpux ;;
2099 esac
2100 ;;
2101
2102 ## HP 9000 series 700 and 800, running HP/UX
2103 hppa*-hp-hpux7* )
2104 machine=hp800 opsys=hpux
2105 ;;
2106 hppa*-hp-hpux8* )
2107 machine=hp800 opsys=hpux8
2108 ;;
2109 hppa*-hp-hpux9shr* )
2110 machine=hp800 opsys=hpux9shr
2111 ;;
2112 hppa*-hp-hpux9* )
2113 machine=hp800 opsys=hpux9
2114 ;;
2115 hppa*-hp-hpux10.2* )
2116 machine=hp800 opsys=hpux10-20
2117 ;;
2118 hppa*-hp-hpux10* )
2119 machine=hp800 opsys=hpux10
2120 ;;
2121 hppa*-hp-hpux1[1-9]* )
2122 machine=hp800 opsys=hpux11
2123 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2124 ;;
2125
2126 hppa*-*-linux-gnu* )
2127 machine=hp800 opsys=gnu-linux
2128 ;;
2129
2130 ## HP 9000 series 700 and 800, running HP/UX
2131 hppa*-hp-hpux* )
2132 ## Cross-compilation? Nah!
2133 case "`uname -r`" in
2134 ## Someone's system reports A.B8.05 for this.
2135 ## I wonder what other possibilities there are.
2136 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2137 *.08.* ) machine=hp800 opsys=hpux8 ;;
2138 *.09.* ) machine=hp800 opsys=hpux9 ;;
2139 *) machine=hp800 opsys=hpux10 ;;
2140 esac
2141 ;;
2142 hppa*-*-nextstep* )
2143 machine=hp800 opsys=nextstep
2144 ;;
2145
2146 ## Orion machines
2147 orion-orion-bsd* )
2148 machine=orion opsys=bsd4-2
2149 ;;
2150 clipper-orion-bsd* )
2151 machine=orion105 opsys=bsd4-2
2152 ;;
2153
2154 ## IBM machines
2155 i[3456]86-ibm-aix1.1* )
2156 machine=ibmps2-aix opsys=usg5-2-2
2157 ;;
2158 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2159 machine=ibmps2-aix opsys=usg5-3
2160 ;;
2161 i370-ibm-aix*)
2162 machine=ibm370aix opsys=usg5-3
2163 ;;
2164 s390-*-linux-gnu* )
2165 machine=ibms390 opsys=gnu-linux
2166 ;;
2167 s390x-*-linux-gnu* )
2168 machine=ibms390x opsys=gnu-linux
2169 ;;
2170 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2171 machine=ibmrs6000 opsys=aix3-1
2172 ;;
2173 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2174 machine=ibmrs6000 opsys=aix3-2-5
2175 ;;
2176 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2177 machine=ibmrs6000 opsys=aix4-1
2178 ;;
2179 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2180 machine=ibmrs6000 opsys=aix4-2
2181 ;;
2182 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2183 machine=ibmrs6000 opsys=aix4-2
2184 ;;
2185 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2186 machine=ibmrs6000 opsys=aix4
2187 ;;
2188 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2189 machine=ibmrs6000 opsys=aix4-1
2190 ;;
2191 rs6000-ibm-aix* | powerpc-ibm-aix* )
2192 machine=ibmrs6000 opsys=aix3-2
2193 ;;
2194 romp-ibm-bsd4.3* )
2195 machine=ibmrt opsys=bsd4-3
2196 ;;
2197 romp-ibm-bsd4.2* )
2198 machine=ibmrt opsys=bsd4-2
2199 ;;
2200 romp-ibm-aos4.3* )
2201 machine=ibmrt opsys=bsd4-3
2202 ;;
2203 romp-ibm-aos4.2* )
2204 machine=ibmrt opsys=bsd4-2
2205 ;;
2206 romp-ibm-aos* )
2207 machine=ibmrt opsys=bsd4-3
2208 ;;
2209 romp-ibm-bsd* )
2210 machine=ibmrt opsys=bsd4-3
2211 ;;
2212 romp-ibm-aix* )
2213 machine=ibmrt-aix opsys=usg5-2-2
2214 ;;
2215
2216 ## Integrated Solutions `Optimum V'
2217 m68*-isi-bsd4.2* )
2218 machine=isi-ov opsys=bsd4-2
2219 ;;
2220 m68*-isi-bsd4.3* )
2221 machine=isi-ov opsys=bsd4-3
2222 ;;
2223
2224 ## Intel 386 machines where we do care about the manufacturer
2225 i[3456]86-intsys-sysv* )
2226 machine=is386 opsys=usg5-2-2
2227 ;;
2228
2229 ## Prime EXL
2230 i[3456]86-prime-sysv* )
2231 machine=i386 opsys=usg5-3
2232 ;;
2233
2234 ## Sequent Symmetry running Dynix
2235 i[3456]86-sequent-bsd* )
2236 machine=symmetry opsys=bsd4-3
2237 ;;
2238
2239 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2240 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2241 machine=sequent-ptx opsys=ptx4
2242 NON_GNU_CPP=/lib/cpp
2243 ;;
2244
2245 ## Sequent Symmetry running DYNIX/ptx
2246 ## Use the old cpp rather than the newer ANSI one.
2247 i[3456]86-sequent-ptx* )
2248 machine=sequent-ptx opsys=ptx
2249 NON_GNU_CPP="/lib/cpp"
2250 ;;
2251
2252 ## ncr machine running svr4.3.
2253 i[3456]86-ncr-sysv4.3 )
2254 machine=ncr386 opsys=usg5-4-3
2255 ;;
2256
2257 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2258 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2259 i[3456]86-ncr-sysv* )
2260 machine=ncr386 opsys=usg5-4-2
2261 ;;
2262
2263 ## Intel Paragon OSF/1
2264 i860-intel-osf1* )
2265 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2266 ;;
2267
2268 ## Intel 860
2269 i860-*-sysv4* )
2270 machine=i860 opsys=usg5-4
2271 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2272 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2273 ;;
2274
2275 ## Macintosh PowerPC
2276 powerpc*-*-linux-gnu* )
2277 machine=macppc opsys=gnu-linux
2278 ;;
2279
2280 ## Masscomp machines
2281 m68*-masscomp-rtu* )
2282 machine=masscomp opsys=rtu
2283 ;;
2284
2285 ## Megatest machines
2286 m68*-megatest-bsd* )
2287 machine=mega68 opsys=bsd4-2
2288 ;;
2289
2290 ## Workstations sold by MIPS
2291 ## This is not necessarily all workstations using the MIPS processor -
2292 ## Irises are produced by SGI, and DECstations by DEC.
2293
2294 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2295 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2296 ## it gives for choosing between the alternatives seems to be "Use
2297 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2298 ## the BSD world." I'll assume that these are instructions for
2299 ## handling two odd situations, and that every other situation
2300 ## should use mips.h and usg5-2-2, they being listed first.
2301 mips-mips-usg* )
2302 machine=mips4
2303 ## Fall through to the general code at the bottom to decide on the OS.
2304 ;;
2305 mips-mips-riscos4* )
2306 machine=mips4 opsys=bsd4-3
2307 NON_GNU_CC="cc -systype bsd43"
2308 NON_GNU_CPP="cc -systype bsd43 -E"
2309 ;;
2310 mips-mips-riscos5* )
2311 machine=mips4 opsys=riscos5
2312 NON_GNU_CC="cc -systype bsd43"
2313 NON_GNU_CPP="cc -systype bsd43 -E"
2314 ;;
2315 mips-mips-bsd* )
2316 machine=mips opsys=bsd4-3
2317 ;;
2318 mips-mips-* )
2319 machine=mips opsys=usg5-2-2
2320 ;;
2321
2322 ## NeXT
2323 m68*-next-* | m68k-*-nextstep* )
2324 machine=m68k opsys=nextstep
2325 ;;
2326
2327 ## The complete machine from National Semiconductor
2328 ns32k-ns-genix* )
2329 machine=ns32000 opsys=usg5-2
2330 ;;
2331
2332 ## NCR machines
2333 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2334 machine=tower32 opsys=usg5-2-2
2335 ;;
2336 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2337 machine=tower32v3 opsys=usg5-3
2338 ;;
2339
2340 ## NEC EWS4800
2341 mips-nec-sysv4*)
2342 machine=ews4800 opsys=ux4800
2343 ;;
2344
2345 ## Nixdorf Targon 31
2346 m68*-nixdorf-sysv* )
2347 machine=targon31 opsys=usg5-2-2
2348 ;;
2349
2350 ## Nu (TI or LMI)
2351 m68*-nu-sysv* )
2352 machine=nu opsys=usg5-2
2353 ;;
2354
2355 ## Plexus
2356 m68*-plexus-sysv* )
2357 machine=plexus opsys=usg5-2
2358 ;;
2359
2360 ## Pyramid machines
2361 ## I don't really have any idea what sort of processor the Pyramid has,
2362 ## so I'm assuming it is its own architecture.
2363 pyramid-pyramid-bsd* )
2364 machine=pyramid opsys=bsd4-2
2365 ;;
2366
2367 ## Sequent Balance
2368 ns32k-sequent-bsd4.2* )
2369 machine=sequent opsys=bsd4-2
2370 ;;
2371 ns32k-sequent-bsd4.3* )
2372 machine=sequent opsys=bsd4-3
2373 ;;
2374
2375 ## Siemens Nixdorf
2376 mips-siemens-sysv* | mips-sni-sysv*)
2377 machine=mips-siemens opsys=usg5-4
2378 NON_GNU_CC=/usr/ccs/bin/cc
2379 NON_GNU_CPP=/usr/ccs/lib/cpp
2380 ;;
2381
2382 ## Silicon Graphics machines
2383 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2384 m68*-sgi-iris3.5* )
2385 machine=irist opsys=iris3-5
2386 ;;
2387 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2388 machine=irist opsys=iris3-6
2389 ;;
2390 ## Iris 4D
2391 mips-sgi-irix3* )
2392 machine=iris4d opsys=irix3-3
2393 ;;
2394 mips-sgi-irix4* )
2395 machine=iris4d opsys=irix4-0
2396 ;;
2397 mips-sgi-irix6.5 )
2398 machine=iris4d opsys=irix6-5
2399 # Without defining _LANGUAGE_C, things get masked out in the headers
2400 # so that, for instance, grepping for `free' in stdlib.h fails and
2401 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2402 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2403 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2404 ;;
2405 mips-sgi-irix6* )
2406 machine=iris4d opsys=irix6-0
2407 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2408 # but presumably it does no harm.
2409 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2410 # -32 probably isn't necessary in later v.6s -- anyone know which?
2411 NON_GCC_TEST_OPTIONS=-32
2412 ;;
2413 mips-sgi-irix5.[01]* )
2414 machine=iris4d opsys=irix5-0
2415 ;;
2416 mips-sgi-irix5* | mips-sgi-irix* )
2417 machine=iris4d opsys=irix5-2
2418 ;;
2419
2420 ## SONY machines
2421 m68*-sony-bsd4.2* )
2422 machine=news opsys=bsd4-2
2423 ;;
2424 m68*-sony-bsd4.3* )
2425 machine=news opsys=bsd4-3
2426 ;;
2427 m68*-sony-newsos3* | m68*-sony-news3*)
2428 machine=news opsys=bsd4-3
2429 ;;
2430 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2431 machine=news-risc opsys=bsd4-3
2432 ;;
2433 mips-sony-newsos6* )
2434 machine=news-r6 opsys=newsos6
2435 ;;
2436 mips-sony-news* )
2437 machine=news-risc opsys=newsos5
2438 ;;
2439
2440 ## Stride
2441 m68*-stride-sysv* )
2442 machine=stride opsys=usg5-2
2443 ;;
2444
2445 ## Suns
2446 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2447 machine=sparc opsys=gnu-linux
2448 ;;
2449
2450 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2451 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2452 | rs6000-*-solaris2*)
2453 case "${canonical}" in
2454 m68*-sunos1* ) machine=sun1 ;;
2455 m68*-sunos2* ) machine=sun2 ;;
2456 m68* ) machine=sun3 ;;
2457 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2458 i[3456]86-*-* ) machine=intel386 ;;
2459 powerpcle* ) machine=powerpcle ;;
2460 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2461 sparc* ) machine=sparc ;;
2462 * ) unported=yes ;;
2463 esac
2464 case "${canonical}" in
2465 ## The Sun386 didn't get past 4.0.
2466 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2467 *-sunos4.0* ) opsys=sunos4-0 ;;
2468 *-sunos4.1.[3-9]*noshare )
2469 ## This name is sunos413 instead of sunos4-1-3
2470 ## to avoid a file name conflict on MSDOS.
2471 opsys=sunos413
2472 NON_GNU_CPP=/usr/lib/cpp
2473 NON_GCC_TEST_OPTIONS=-Bstatic
2474 GCC_TEST_OPTIONS=-static
2475 ;;
2476 *-sunos4.1.[3-9]* | *-sunos4shr*)
2477 opsys=sunos4shr
2478 NON_GNU_CPP=/usr/lib/cpp
2479 ;;
2480 *-sunos4* | *-sunos )
2481 opsys=sunos4-1
2482 NON_GCC_TEST_OPTIONS=-Bstatic
2483 GCC_TEST_OPTIONS=-static
2484 ;;
2485 *-sunos5.3* | *-solaris2.3* )
2486 opsys=sol2-3
2487 NON_GNU_CPP=/usr/ccs/lib/cpp
2488 ;;
2489 *-sunos5.4* | *-solaris2.4* )
2490 opsys=sol2-4
2491 NON_GNU_CPP=/usr/ccs/lib/cpp
2492 RANLIB="ar -ts"
2493 ;;
2494 *-sunos5.5* | *-solaris2.5* )
2495 opsys=sol2-5
2496 NON_GNU_CPP=/usr/ccs/lib/cpp
2497 RANLIB="ar -ts"
2498 ;;
2499 *-sunos5.6* | *-solaris2.6* )
2500 opsys=sol2-6
2501 NON_GNU_CPP=/usr/ccs/lib/cpp
2502 RANLIB="ar -ts"
2503 ;;
2504 *-sunos5* | *-solaris* )
2505 opsys=sol2-6
2506 NON_GNU_CPP=/usr/ccs/lib/cpp
2507 ;;
2508 * ) opsys=bsd4-2 ;;
2509 esac
2510 ## Watch out for a compiler that we know will not work.
2511 case "${canonical}" in
2512 *-solaris* | *-sunos5* )
2513 if [ "x$CC" = x/usr/ucb/cc ]; then
2514 ## /usr/ucb/cc doesn't work;
2515 ## we should find some other compiler that does work.
2516 unset CC
2517 fi
2518 ;;
2519 *) ;;
2520 esac
2521 ;;
2522 sparc-*-nextstep* )
2523 machine=sparc opsys=nextstep
2524 ;;
2525
2526 ## Tadpole 68k
2527 m68*-tadpole-sysv* )
2528 machine=tad68k opsys=usg5-3
2529 ;;
2530
2531 ## Tahoe machines
2532 tahoe-tahoe-bsd4.2* )
2533 machine=tahoe opsys=bsd4-2
2534 ;;
2535 tahoe-tahoe-bsd4.3* )
2536 machine=tahoe opsys=bsd4-3
2537 ;;
2538
2539 ## Tandem Integrity S2
2540 mips-tandem-sysv* )
2541 machine=tandem-s2 opsys=usg5-3
2542 ;;
2543
2544 ## Tektronix XD88
2545 m88k-tektronix-sysv3* )
2546 machine=tekxd88 opsys=usg5-3
2547 ;;
2548
2549 ## Tektronix 16000 box (6130?)
2550 ns16k-tektronix-bsd* )
2551 machine=ns16000 opsys=bsd4-2
2552 ;;
2553 ## Tektronix 4300
2554 ## src/m/tek4300.h hints that this is a m68k machine.
2555 m68*-tektronix-bsd* )
2556 machine=tek4300 opsys=bsd4-3
2557 ;;
2558
2559 ## Titan P2 or P3
2560 ## We seem to have lost the machine-description file titan.h!
2561 titan-titan-sysv* )
2562 machine=titan opsys=usg5-3
2563 ;;
2564
2565 ## Ustation E30 (SS5E)
2566 m68*-unisys-uniplus* )
2567 machine=ustation opsystem=unipl5-2
2568 ;;
2569
2570 ## Vaxen.
2571 vax-dec-* )
2572 machine=vax
2573 case "${canonical}" in
2574 *-bsd4.1* ) opsys=bsd4-1 ;;
2575 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2576 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2577 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2578 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2579 *-vms* ) opsys=vms ;;
2580 * ) unported=yes
2581 esac
2582 ;;
2583
2584 ## Whitechapel MG1
2585 ns16k-whitechapel-* )
2586 machine=mg1
2587 ## We don't know what sort of OS runs on these; we'll let the
2588 ## operating system guessing code below try.
2589 ;;
2590
2591 ## Wicat
2592 m68*-wicat-sysv* )
2593 machine=wicat opsys=usg5-2
2594 ;;
2595
2596 ## IA-64
2597 ia64*-*-linux* )
2598 machine=ia64 opsys=gnu-linux
2599 ;;
2600
2601 ## Intel 386 machines where we don't care about the manufacturer
2602 i[3456]86-*-* )
2603 machine=intel386
2604 case "${canonical}" in
2605 *-cygwin ) opsys=cygwin ;;
2606 *-darwin* ) opsys=darwin
2607 CPP="${CC-cc} -E -no-cpp-precomp"
2608 ;;
2609 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2610 *-isc2.2* ) opsys=isc2-2 ;;
2611 *-isc4.0* ) opsys=isc4-0 ;;
2612 *-isc4.* ) opsys=isc4-1
2613 GCC_TEST_OPTIONS=-posix
2614 NON_GCC_TEST_OPTIONS=-Xp
2615 ;;
2616 *-isc* ) opsys=isc3-0 ;;
2617 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2618 *-esix* ) opsys=esix ;;
2619 *-xenix* ) opsys=xenix ;;
2620 *-linux-gnu* ) opsys=gnu-linux ;;
2621 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2622 *-sco3.2v5* ) opsys=sco5
2623 NON_GNU_CPP=/lib/cpp
2624 # Prevent -belf from being passed to $CPP.
2625 # /lib/cpp does not accept it.
2626 OVERRIDE_CPPFLAGS=" "
2627 ;;
2628 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2629 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2630 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2631 *-386bsd* ) opsys=386bsd ;;
2632 *-nextstep* ) opsys=nextstep ;;
2633 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2634 esac
2635 ;;
2636
2637 ## m68k Linux-based GNU system
2638 m68k-*-linux-gnu* )
2639 machine=m68k opsys=gnu-linux
2640 ;;
2641
2642 ## Mips Linux-based GNU system
2643 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2644 machine=mips opsys=gnu-linux
2645 ;;
2646
2647 ## UXP/DS
2648 sparc-fujitsu-sysv4* )
2649 machine=sparc opsys=uxpds
2650 NON_GNU_CPP=/usr/ccs/lib/cpp
2651 RANLIB="ar -ts"
2652 ;;
2653
2654 ## UXP/V
2655 f301-fujitsu-uxpv4.1)
2656 machine=f301 opsys=uxpv
2657 ;;
2658
2659 ## Darwin / Mac OS X
2660 powerpc-apple-darwin* )
2661 machine=powermac opsys=darwin
2662 # Define CPP as follows to make autoconf work correctly.
2663 CPP="${CC-cc} -E -no-cpp-precomp"
2664 # Use fink packages if available.
2665 if test -d /sw/include && test -d /sw/lib; then
2666 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2667 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2668 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2669 fi
2670 ;;
2671
2672 ## AMD x86-64 Linux-based GNU system
2673 x86_64-*-linux-gnu* )
2674 machine=amdx86-64 opsys=gnu-linux
2675 ;;
2676
2677 * )
2678 unported=yes
2679 ;;
2680 esac
2681
2682 ### If the code above didn't choose an operating system, just choose
2683 ### an operating system based on the configuration name. You really
2684 ### only want to use this when you have no idea what the right
2685 ### operating system is; if you know what operating systems a machine
2686 ### runs, it's cleaner to make it explicit in the case statement
2687 ### above.
2688 if test x"${opsys}" = x; then
2689 case "${canonical}" in
2690 *-gnu* ) opsys=gnu ;;
2691 *-bsd4.[01] ) opsys=bsd4-1 ;;
2692 *-bsd4.2 ) opsys=bsd4-2 ;;
2693 *-bsd4.3 ) opsys=bsd4-3 ;;
2694 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2695 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2696 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2697 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2698 *-sysv4.2uw* ) opsys=unixware ;;
2699 *-sysv5uw* ) opsys=unixware ;;
2700 *-sysv5OpenUNIX* ) opsys=unixware ;;
2701 *-sysv4.1* | *-sysvr4.1* )
2702 NON_GNU_CPP=/usr/lib/cpp
2703 opsys=usg5-4 ;;
2704 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2705 if [ x$NON_GNU_CPP = x ]; then
2706 if [ -f /usr/ccs/lib/cpp ]; then
2707 NON_GNU_CPP=/usr/ccs/lib/cpp
2708 else
2709 NON_GNU_CPP=/lib/cpp
2710 fi
2711 fi
2712 opsys=usg5-4-2 ;;
2713 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2714 * )
2715 unported=yes
2716 ;;
2717 esac
2718 fi
2719
2720
2721
2722 if test $unported = yes; then
2723 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2724 Check \`etc/MACHINES' for recognized configuration names." >&5
2725 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2726 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2727 { (exit 1); exit 1; }; }
2728 fi
2729
2730 machfile="m/${machine}.h"
2731 opsysfile="s/${opsys}.h"
2732
2733
2734 #### Choose a compiler.
2735 test -n "$CC" && cc_specified=yes
2736
2737 # Save the value of CFLAGS that the user specified.
2738 SPECIFIED_CFLAGS="$CFLAGS"
2739
2740 case ${with_gcc} in
2741 "yes" ) CC="gcc" GCC=yes ;;
2742 "no" ) : ${CC=cc} ;;
2743 * )
2744 esac
2745 ac_ext=c
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2753 echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755 if test "${ac_cv_prog_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772 done
2773 done
2774
2775 fi
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779 echo "$as_me:$LINENO: result: $CC" >&5
2780 echo "${ECHO_T}$CC" >&6
2781 else
2782 echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2784 fi
2785
2786 fi
2787 if test -z "$ac_cv_prog_CC"; then
2788 ac_ct_CC=$CC
2789 # Extract the first word of "gcc", so it can be a program name with args.
2790 set dummy gcc; ac_word=$2
2791 echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 else
2796 if test -n "$ac_ct_CC"; then
2797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_ac_ct_CC="gcc"
2807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812
2813 fi
2814 fi
2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2818 echo "${ECHO_T}$ac_ct_CC" >&6
2819 else
2820 echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6
2822 fi
2823
2824 CC=$ac_ct_CC
2825 else
2826 CC="$ac_cv_prog_CC"
2827 fi
2828
2829 if test -z "$CC"; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2832 set dummy ${ac_tool_prefix}cc; ac_word=$2
2833 echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2835 if test "${ac_cv_prog_CC+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC="${ac_tool_prefix}cc"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854
2855 fi
2856 fi
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859 echo "$as_me:$LINENO: result: $CC" >&5
2860 echo "${ECHO_T}$CC" >&6
2861 else
2862 echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6
2864 fi
2865
2866 fi
2867 if test -z "$ac_cv_prog_CC"; then
2868 ac_ct_CC=$CC
2869 # Extract the first word of "cc", so it can be a program name with args.
2870 set dummy cc; ac_word=$2
2871 echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 if test -n "$ac_ct_CC"; then
2877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_ac_ct_CC="cc"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892
2893 fi
2894 fi
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2898 echo "${ECHO_T}$ac_ct_CC" >&6
2899 else
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902 fi
2903
2904 CC=$ac_ct_CC
2905 else
2906 CC="$ac_cv_prog_CC"
2907 fi
2908
2909 fi
2910 if test -z "$CC"; then
2911 # Extract the first word of "cc", so it can be a program name with args.
2912 set dummy cc; ac_word=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_CC+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 ac_prog_rejected=no
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2930 ac_prog_rejected=yes
2931 continue
2932 fi
2933 ac_cv_prog_CC="cc"
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939
2940 if test $ac_prog_rejected = yes; then
2941 # We found a bogon in the path, so make sure we never use it.
2942 set dummy $ac_cv_prog_CC
2943 shift
2944 if test $# != 0; then
2945 # We chose a different compiler from the bogus one.
2946 # However, it has the same basename, so the bogon will be chosen
2947 # first if we set CC to just the basename; use the full file name.
2948 shift
2949 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2950 fi
2951 fi
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 echo "$as_me:$LINENO: result: $CC" >&5
2957 echo "${ECHO_T}$CC" >&6
2958 else
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2961 fi
2962
2963 fi
2964 if test -z "$CC"; then
2965 if test -n "$ac_tool_prefix"; then
2966 for ac_prog in cl
2967 do
2968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2970 echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2972 if test "${ac_cv_prog_CC+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991
2992 fi
2993 fi
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996 echo "$as_me:$LINENO: result: $CC" >&5
2997 echo "${ECHO_T}$CC" >&6
2998 else
2999 echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6
3001 fi
3002
3003 test -n "$CC" && break
3004 done
3005 fi
3006 if test -z "$CC"; then
3007 ac_ct_CC=$CC
3008 for ac_prog in cl
3009 do
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy $ac_prog; ac_word=$2
3012 echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017 if test -n "$ac_ct_CC"; then
3018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_ac_ct_CC="$ac_prog"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031 done
3032 done
3033
3034 fi
3035 fi
3036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037 if test -n "$ac_ct_CC"; then
3038 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3039 echo "${ECHO_T}$ac_ct_CC" >&6
3040 else
3041 echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6
3043 fi
3044
3045 test -n "$ac_ct_CC" && break
3046 done
3047
3048 CC=$ac_ct_CC
3049 fi
3050
3051 fi
3052
3053
3054 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3055 See \`config.log' for more details." >&5
3056 echo "$as_me: error: no acceptable C compiler found in \$PATH
3057 See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
3059
3060 # Provide some information about the compiler.
3061 echo "$as_me:$LINENO:" \
3062 "checking for C compiler version" >&5
3063 ac_compiler=`set X $ac_compile; echo $2`
3064 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3065 (eval $ac_compiler --version </dev/null >&5) 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }
3069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3070 (eval $ac_compiler -v </dev/null >&5) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }
3074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3075 (eval $ac_compiler -V </dev/null >&5) 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }
3079
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086
3087 int
3088 main ()
3089 {
3090
3091 ;
3092 return 0;
3093 }
3094 _ACEOF
3095 ac_clean_files_save=$ac_clean_files
3096 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3097 # Try to create an executable without -o first, disregard a.out.
3098 # It will help us diagnose broken compilers, and finding out an intuition
3099 # of exeext.
3100 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3101 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3102 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3104 (eval $ac_link_default) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; then
3108 # Find the output, starting from the most likely. This scheme is
3109 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3110 # resort.
3111
3112 # Be careful to initialize this variable, since it used to be cached.
3113 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3114 ac_cv_exeext=
3115 # b.out is created by i960 compilers.
3116 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3117 do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3121 ;;
3122 conftest.$ac_ext )
3123 # This is the source file.
3124 ;;
3125 [ab].out )
3126 # We found the default executable, but exeext='' is most
3127 # certainly right.
3128 break;;
3129 *.* )
3130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131 # FIXME: I believe we export ac_cv_exeext for Libtool,
3132 # but it would be cool to find out if it's true. Does anybody
3133 # maintain Libtool? --akim.
3134 export ac_cv_exeext
3135 break;;
3136 * )
3137 break;;
3138 esac
3139 done
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: C compiler cannot create executables
3147 See \`config.log' for more details." >&2;}
3148 { (exit 77); exit 77; }; }
3149 fi
3150
3151 ac_exeext=$ac_cv_exeext
3152 echo "$as_me:$LINENO: result: $ac_file" >&5
3153 echo "${ECHO_T}$ac_file" >&6
3154
3155 # Check the compiler produces executables we can run. If not, either
3156 # the compiler is broken, or we cross compile.
3157 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3158 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3159 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3160 # If not cross compiling, check that we can run a simple program.
3161 if test "$cross_compiling" != yes; then
3162 if { ac_try='./$ac_file'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 cross_compiling=no
3169 else
3170 if test "$cross_compiling" = maybe; then
3171 cross_compiling=yes
3172 else
3173 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3174 If you meant to cross compile, use \`--host'.
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: cannot run C compiled programs.
3177 If you meant to cross compile, use \`--host'.
3178 See \`config.log' for more details." >&2;}
3179 { (exit 1); exit 1; }; }
3180 fi
3181 fi
3182 fi
3183 echo "$as_me:$LINENO: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3185
3186 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3187 ac_clean_files=$ac_clean_files_save
3188 # Check the compiler produces executables we can run. If not, either
3189 # the compiler is broken, or we cross compile.
3190 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3191 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3192 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3193 echo "${ECHO_T}$cross_compiling" >&6
3194
3195 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3196 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3198 (eval $ac_link) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; then
3202 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3204 # work properly (i.e., refer to `conftest.exe'), while it won't with
3205 # `rm'.
3206 for ac_file in conftest.exe conftest conftest.*; do
3207 test -f "$ac_file" || continue
3208 case $ac_file in
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211 export ac_cv_exeext
3212 break;;
3213 * ) break;;
3214 esac
3215 done
3216 else
3217 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3218 See \`config.log' for more details." >&5
3219 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }
3222 fi
3223
3224 rm -f conftest$ac_cv_exeext
3225 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3226 echo "${ECHO_T}$ac_cv_exeext" >&6
3227
3228 rm -f conftest.$ac_ext
3229 EXEEXT=$ac_cv_exeext
3230 ac_exeext=$EXEEXT
3231 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3232 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3233 if test "${ac_cv_objext+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242
3243 int
3244 main ()
3245 {
3246
3247 ;
3248 return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.o conftest.obj
3252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253 (eval $ac_compile) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; then
3257 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3260 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3261 break;;
3262 esac
3263 done
3264 else
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3269 See \`config.log' for more details." >&5
3270 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3271 See \`config.log' for more details." >&2;}
3272 { (exit 1); exit 1; }; }
3273 fi
3274
3275 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3276 fi
3277 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3278 echo "${ECHO_T}$ac_cv_objext" >&6
3279 OBJEXT=$ac_cv_objext
3280 ac_objext=$OBJEXT
3281 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h. */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292
3293 int
3294 main ()
3295 {
3296 #ifndef __GNUC__
3297 choke me
3298 #endif
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306 (eval $ac_compile) 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -z "$ac_c_werror_flag"
3314 || test ! -s conftest.err'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 (eval $ac_try) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; } &&
3320 { ac_try='test -s conftest.$ac_objext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 (eval $ac_try) 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 ac_compiler_gnu=yes
3327 else
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331 ac_compiler_gnu=no
3332 fi
3333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3335
3336 fi
3337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3339 GCC=`test $ac_compiler_gnu = yes && echo yes`
3340 ac_test_CFLAGS=${CFLAGS+set}
3341 ac_save_CFLAGS=$CFLAGS
3342 CFLAGS="-g"
3343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3345 if test "${ac_cv_prog_cc_g+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h. */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3354
3355 int
3356 main ()
3357 {
3358
3359 ;
3360 return 0;
3361 }
3362 _ACEOF
3363 rm -f conftest.$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 ac_cv_prog_cc_g=yes
3386 else
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 ac_cv_prog_cc_g=no
3391 fi
3392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3393 fi
3394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3396 if test "$ac_test_CFLAGS" = set; then
3397 CFLAGS=$ac_save_CFLAGS
3398 elif test $ac_cv_prog_cc_g = yes; then
3399 if test "$GCC" = yes; then
3400 CFLAGS="-g -O2"
3401 else
3402 CFLAGS="-g"
3403 fi
3404 else
3405 if test "$GCC" = yes; then
3406 CFLAGS="-O2"
3407 else
3408 CFLAGS=
3409 fi
3410 fi
3411 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3412 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3413 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 ac_cv_prog_cc_stdc=no
3417 ac_save_CC=$CC
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include <stdarg.h>
3425 #include <stdio.h>
3426 #include <sys/types.h>
3427 #include <sys/stat.h>
3428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429 struct buf { int x; };
3430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431 static char *e (p, i)
3432 char **p;
3433 int i;
3434 {
3435 return p[i];
3436 }
3437 static char *f (char * (*g) (char **, int), char **p, ...)
3438 {
3439 char *s;
3440 va_list v;
3441 va_start (v,p);
3442 s = g (p, va_arg (v,int));
3443 va_end (v);
3444 return s;
3445 }
3446
3447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std1 is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std1. */
3454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3455
3456 int test (int i, double x);
3457 struct s1 {int (*f) (int a);};
3458 struct s2 {int (*f) (double a);};
3459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3460 int argc;
3461 char **argv;
3462 int
3463 main ()
3464 {
3465 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 # Don't try gcc -ansi; that turns off useful extensions and
3471 # breaks some systems' header files.
3472 # AIX -qlanglvl=ansi
3473 # Ultrix and OSF/1 -std1
3474 # HP-UX 10.20 and later -Ae
3475 # HP-UX older versions -Aa -D_HPUX_SOURCE
3476 # SVR4 -Xc -D__EXTENSIONS__
3477 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3478 do
3479 CC="$ac_save_CC $ac_arg"
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -z "$ac_c_werror_flag"
3490 || test ! -s conftest.err'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest.$ac_objext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 (eval $ac_try) 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 ac_cv_prog_cc_stdc=$ac_arg
3503 break
3504 else
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 fi
3509 rm -f conftest.err conftest.$ac_objext
3510 done
3511 rm -f conftest.$ac_ext conftest.$ac_objext
3512 CC=$ac_save_CC
3513
3514 fi
3515
3516 case "x$ac_cv_prog_cc_stdc" in
3517 x|xno)
3518 echo "$as_me:$LINENO: result: none needed" >&5
3519 echo "${ECHO_T}none needed" >&6 ;;
3520 *)
3521 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3522 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3523 CC="$CC $ac_cv_prog_cc_stdc" ;;
3524 esac
3525
3526 # Some people use a C++ compiler to compile C. Since we use `exit',
3527 # in C++ we need to declare it. In case someone uses the same compiler
3528 # for both compiling C and C++ we need to have the C++ compiler decide
3529 # the declaration of exit, since it's the most demanding environment.
3530 cat >conftest.$ac_ext <<_ACEOF
3531 #ifndef __cplusplus
3532 choke me
3533 #endif
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_c_werror_flag"
3545 || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 for ac_declaration in \
3558 '' \
3559 'extern "C" void std::exit (int) throw (); using std::exit;' \
3560 'extern "C" void std::exit (int); using std::exit;' \
3561 'extern "C" void exit (int) throw ();' \
3562 'extern "C" void exit (int);' \
3563 'void exit (int);'
3564 do
3565 cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h. */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 $ac_declaration
3572 #include <stdlib.h>
3573 int
3574 main ()
3575 {
3576 exit (42);
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_c_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 (eval $ac_try) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 :
3604 else
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608 continue
3609 fi
3610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 $ac_declaration
3618 int
3619 main ()
3620 {
3621 exit (42);
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 break
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653 fi
3654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3655 done
3656 rm -f conftest*
3657 if test -n "$ac_declaration"; then
3658 echo '#ifdef __cplusplus' >>confdefs.h
3659 echo $ac_declaration >>confdefs.h
3660 echo '#endif' >>confdefs.h
3661 fi
3662
3663 else
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667 fi
3668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
3675
3676 # On Suns, sometimes $CPP names a directory.
3677 if test -n "$CPP" && test -d "$CPP"; then
3678 CPP=
3679 fi
3680
3681 #### Some systems specify a CPP to use unless we are using GCC.
3682 #### Now that we know whether we are using GCC, we can decide whether
3683 #### to use that one.
3684 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3685 then
3686 CPP="$NON_GNU_CPP"
3687 fi
3688
3689 #### Some systems specify a CC to use unless we are using GCC.
3690 #### Now that we know whether we are using GCC, we can decide whether
3691 #### to use that one.
3692 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3693 test x$cc_specified != xyes
3694 then
3695 CC="$NON_GNU_CC"
3696 fi
3697
3698 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3699 then
3700 CC="$CC $GCC_TEST_OPTIONS"
3701 fi
3702
3703 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3704 then
3705 CC="$CC $NON_GCC_TEST_OPTIONS"
3706 fi
3707
3708
3709 ac_ext=c
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3715 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3716 # On Suns, sometimes $CPP names a directory.
3717 if test -n "$CPP" && test -d "$CPP"; then
3718 CPP=
3719 fi
3720 if test -z "$CPP"; then
3721 if test "${ac_cv_prog_CPP+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 # Double quotes because CPP needs to be expanded
3725 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3726 do
3727 ac_preproc_ok=false
3728 for ac_c_preproc_warn_flag in '' yes
3729 do
3730 # Use a header file that comes with gcc, so configuring glibc
3731 # with a fresh cross-compiler works.
3732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3733 # <limits.h> exists even on freestanding compilers.
3734 # On the NeXT, cc -E runs the code through the compiler's parser,
3735 # not just through cpp. "Syntax error" is here to catch this case.
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #ifdef __STDC__
3743 # include <limits.h>
3744 #else
3745 # include <assert.h>
3746 #endif
3747 Syntax error
3748 _ACEOF
3749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3751 ac_status=$?
3752 grep -v '^ *+' conftest.er1 >conftest.err
3753 rm -f conftest.er1
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } >/dev/null; then
3757 if test -s conftest.err; then
3758 ac_cpp_err=$ac_c_preproc_warn_flag
3759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3760 else
3761 ac_cpp_err=
3762 fi
3763 else
3764 ac_cpp_err=yes
3765 fi
3766 if test -z "$ac_cpp_err"; then
3767 :
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772 # Broken: fails on valid input.
3773 continue
3774 fi
3775 rm -f conftest.err conftest.$ac_ext
3776
3777 # OK, works on sane cases. Now check whether non-existent headers
3778 # can be detected and how.
3779 cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h. */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 #include <ac_nonexistent.h>
3786 _ACEOF
3787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null; then
3795 if test -s conftest.err; then
3796 ac_cpp_err=$ac_c_preproc_warn_flag
3797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3798 else
3799 ac_cpp_err=
3800 fi
3801 else
3802 ac_cpp_err=yes
3803 fi
3804 if test -z "$ac_cpp_err"; then
3805 # Broken: success on invalid input.
3806 continue
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 # Passes both tests.
3812 ac_preproc_ok=:
3813 break
3814 fi
3815 rm -f conftest.err conftest.$ac_ext
3816
3817 done
3818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3819 rm -f conftest.err conftest.$ac_ext
3820 if $ac_preproc_ok; then
3821 break
3822 fi
3823
3824 done
3825 ac_cv_prog_CPP=$CPP
3826
3827 fi
3828 CPP=$ac_cv_prog_CPP
3829 else
3830 ac_cv_prog_CPP=$CPP
3831 fi
3832 echo "$as_me:$LINENO: result: $CPP" >&5
3833 echo "${ECHO_T}$CPP" >&6
3834 ac_preproc_ok=false
3835 for ac_c_preproc_warn_flag in '' yes
3836 do
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #ifdef __STDC__
3850 # include <limits.h>
3851 #else
3852 # include <assert.h>
3853 #endif
3854 Syntax error
3855 _ACEOF
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3867 else
3868 ac_cpp_err=
3869 fi
3870 else
3871 ac_cpp_err=yes
3872 fi
3873 if test -z "$ac_cpp_err"; then
3874 :
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 # Broken: fails on valid input.
3880 continue
3881 fi
3882 rm -f conftest.err conftest.$ac_ext
3883
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3893 _ACEOF
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905 else
3906 ac_cpp_err=
3907 fi
3908 else
3909 ac_cpp_err=yes
3910 fi
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3913 continue
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 # Passes both tests.
3919 ac_preproc_ok=:
3920 break
3921 fi
3922 rm -f conftest.err conftest.$ac_ext
3923
3924 done
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.$ac_ext
3927 if $ac_preproc_ok; then
3928 :
3929 else
3930 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3931 See \`config.log' for more details." >&5
3932 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3933 See \`config.log' for more details." >&2;}
3934 { (exit 1); exit 1; }; }
3935 fi
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943
3944 echo "$as_me:$LINENO: checking for egrep" >&5
3945 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3946 if test "${ac_cv_prog_egrep+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3950 then ac_cv_prog_egrep='grep -E'
3951 else ac_cv_prog_egrep='egrep'
3952 fi
3953 fi
3954 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3955 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3956 EGREP=$ac_cv_prog_egrep
3957
3958
3959
3960 echo "$as_me:$LINENO: checking for AIX" >&5
3961 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968 #ifdef _AIX
3969 yes
3970 #endif
3971
3972 _ACEOF
3973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3974 $EGREP "yes" >/dev/null 2>&1; then
3975 echo "$as_me:$LINENO: result: yes" >&5
3976 echo "${ECHO_T}yes" >&6
3977 cat >>confdefs.h <<\_ACEOF
3978 #define _ALL_SOURCE 1
3979 _ACEOF
3980
3981 else
3982 echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3984 fi
3985 rm -f conftest*
3986
3987
3988
3989 cat >>confdefs.h <<\_ACEOF
3990 #define _GNU_SOURCE 1
3991 _ACEOF
3992
3993
3994
3995 ### Use -Wno-pointer-sign if the compiler supports it
3996 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3997 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3998 SAVE_CFLAGS="$CFLAGS"
3999 CFLAGS="$CFLAGS -Wno-pointer-sign"
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006
4007 int
4008 main ()
4009 {
4010
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
4018 ac_status=$?
4019 grep -v '^ *+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_c_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 (eval $ac_try) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 has_option=yes
4038 else
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 has_option=no
4043 fi
4044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045 if test $has_option = yes; then
4046 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4047 fi
4048 echo "$as_me:$LINENO: result: $has_option" >&5
4049 echo "${ECHO_T}$has_option" >&6
4050 CFLAGS="$SAVE_CFLAGS"
4051 unset has_option
4052 unset SAVE_CFLAGS
4053
4054 #### Some other nice autoconf tests.
4055
4056 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4058 LN_S=$as_ln_s
4059 if test "$LN_S" = "ln -s"; then
4060 echo "$as_me:$LINENO: result: yes" >&5
4061 echo "${ECHO_T}yes" >&6
4062 else
4063 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4064 echo "${ECHO_T}no, using $LN_S" >&6
4065 fi
4066
4067 ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4073 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4074 # On Suns, sometimes $CPP names a directory.
4075 if test -n "$CPP" && test -d "$CPP"; then
4076 CPP=
4077 fi
4078 if test -z "$CPP"; then
4079 if test "${ac_cv_prog_CPP+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 # Double quotes because CPP needs to be expanded
4083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4084 do
4085 ac_preproc_ok=false
4086 for ac_c_preproc_warn_flag in '' yes
4087 do
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error" is here to catch this case.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #ifdef __STDC__
4101 # include <limits.h>
4102 #else
4103 # include <assert.h>
4104 #endif
4105 Syntax error
4106 _ACEOF
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null; then
4115 if test -s conftest.err; then
4116 ac_cpp_err=$ac_c_preproc_warn_flag
4117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4118 else
4119 ac_cpp_err=
4120 fi
4121 else
4122 ac_cpp_err=yes
4123 fi
4124 if test -z "$ac_cpp_err"; then
4125 :
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 # Broken: fails on valid input.
4131 continue
4132 fi
4133 rm -f conftest.err conftest.$ac_ext
4134
4135 # OK, works on sane cases. Now check whether non-existent headers
4136 # can be detected and how.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <ac_nonexistent.h>
4144 _ACEOF
4145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } >/dev/null; then
4153 if test -s conftest.err; then
4154 ac_cpp_err=$ac_c_preproc_warn_flag
4155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4156 else
4157 ac_cpp_err=
4158 fi
4159 else
4160 ac_cpp_err=yes
4161 fi
4162 if test -z "$ac_cpp_err"; then
4163 # Broken: success on invalid input.
4164 continue
4165 else
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 # Passes both tests.
4170 ac_preproc_ok=:
4171 break
4172 fi
4173 rm -f conftest.err conftest.$ac_ext
4174
4175 done
4176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4177 rm -f conftest.err conftest.$ac_ext
4178 if $ac_preproc_ok; then
4179 break
4180 fi
4181
4182 done
4183 ac_cv_prog_CPP=$CPP
4184
4185 fi
4186 CPP=$ac_cv_prog_CPP
4187 else
4188 ac_cv_prog_CPP=$CPP
4189 fi
4190 echo "$as_me:$LINENO: result: $CPP" >&5
4191 echo "${ECHO_T}$CPP" >&6
4192 ac_preproc_ok=false
4193 for ac_c_preproc_warn_flag in '' yes
4194 do
4195 # Use a header file that comes with gcc, so configuring glibc
4196 # with a fresh cross-compiler works.
4197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198 # <limits.h> exists even on freestanding compilers.
4199 # On the NeXT, cc -E runs the code through the compiler's parser,
4200 # not just through cpp. "Syntax error" is here to catch this case.
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #ifdef __STDC__
4208 # include <limits.h>
4209 #else
4210 # include <assert.h>
4211 #endif
4212 Syntax error
4213 _ACEOF
4214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } >/dev/null; then
4222 if test -s conftest.err; then
4223 ac_cpp_err=$ac_c_preproc_warn_flag
4224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4225 else
4226 ac_cpp_err=
4227 fi
4228 else
4229 ac_cpp_err=yes
4230 fi
4231 if test -z "$ac_cpp_err"; then
4232 :
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 # Broken: fails on valid input.
4238 continue
4239 fi
4240 rm -f conftest.err conftest.$ac_ext
4241
4242 # OK, works on sane cases. Now check whether non-existent headers
4243 # can be detected and how.
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4251 _ACEOF
4252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4254 ac_status=$?
4255 grep -v '^ *+' conftest.er1 >conftest.err
4256 rm -f conftest.er1
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } >/dev/null; then
4260 if test -s conftest.err; then
4261 ac_cpp_err=$ac_c_preproc_warn_flag
4262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4263 else
4264 ac_cpp_err=
4265 fi
4266 else
4267 ac_cpp_err=yes
4268 fi
4269 if test -z "$ac_cpp_err"; then
4270 # Broken: success on invalid input.
4271 continue
4272 else
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4275
4276 # Passes both tests.
4277 ac_preproc_ok=:
4278 break
4279 fi
4280 rm -f conftest.err conftest.$ac_ext
4281
4282 done
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.err conftest.$ac_ext
4285 if $ac_preproc_ok; then
4286 :
4287 else
4288 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4289 See \`config.log' for more details." >&5
4290 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4291 See \`config.log' for more details." >&2;}
4292 { (exit 1); exit 1; }; }
4293 fi
4294
4295 ac_ext=c
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300
4301 # Find a good install program. We prefer a C program (faster),
4302 # so one script is as good as another. But avoid the broken or
4303 # incompatible versions:
4304 # SysV /etc/install, /usr/sbin/install
4305 # SunOS /usr/etc/install
4306 # IRIX /sbin/install
4307 # AIX /bin/install
4308 # AmigaOS /C/install, which installs bootblocks on floppy discs
4309 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4310 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4311 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4312 # OS/2's system install, which has a completely different semantic
4313 # ./install, which can be erroneously created by make from ./install.sh.
4314 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4315 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4316 if test -z "$INSTALL"; then
4317 if test "${ac_cv_path_install+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 # Account for people who put trailing slashes in PATH elements.
4326 case $as_dir/ in
4327 ./ | .// | /cC/* | \
4328 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4329 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4330 /usr/ucb/* ) ;;
4331 *)
4332 # OSF1 and SCO ODT 3.0 have their own names for install.
4333 # Don't use installbsd from OSF since it installs stuff as root
4334 # by default.
4335 for ac_prog in ginstall scoinst install; do
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4338 if test $ac_prog = install &&
4339 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4340 # AIX install. It has an incompatible calling convention.
4341 :
4342 elif test $ac_prog = install &&
4343 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4344 # program-specific install script used by HP pwplus--don't use.
4345 :
4346 else
4347 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4348 break 3
4349 fi
4350 fi
4351 done
4352 done
4353 ;;
4354 esac
4355 done
4356
4357
4358 fi
4359 if test "${ac_cv_path_install+set}" = set; then
4360 INSTALL=$ac_cv_path_install
4361 else
4362 # As a last resort, use the slow shell script. We don't cache a
4363 # path for INSTALL within a source directory, because that will
4364 # break other packages using the cache if that directory is
4365 # removed, or if the path is relative.
4366 INSTALL=$ac_install_sh
4367 fi
4368 fi
4369 echo "$as_me:$LINENO: result: $INSTALL" >&5
4370 echo "${ECHO_T}$INSTALL" >&6
4371
4372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4373 # It thinks the first close brace ends the variable substitution.
4374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4375
4376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4377
4378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4379
4380 if test "x$RANLIB" = x; then
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4384 echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386 if test "${ac_cv_prog_RANLIB+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 if test -n "$RANLIB"; then
4390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403 done
4404 done
4405
4406 fi
4407 fi
4408 RANLIB=$ac_cv_prog_RANLIB
4409 if test -n "$RANLIB"; then
4410 echo "$as_me:$LINENO: result: $RANLIB" >&5
4411 echo "${ECHO_T}$RANLIB" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6
4415 fi
4416
4417 fi
4418 if test -z "$ac_cv_prog_RANLIB"; then
4419 ac_ct_RANLIB=$RANLIB
4420 # Extract the first word of "ranlib", so it can be a program name with args.
4421 set dummy ranlib; ac_word=$2
4422 echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4424 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 if test -n "$ac_ct_RANLIB"; then
4428 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_ac_ct_RANLIB="ranlib"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441 done
4442 done
4443
4444 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4445 fi
4446 fi
4447 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4448 if test -n "$ac_ct_RANLIB"; then
4449 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4450 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4451 else
4452 echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4454 fi
4455
4456 RANLIB=$ac_ct_RANLIB
4457 else
4458 RANLIB="$ac_cv_prog_RANLIB"
4459 fi
4460
4461 fi
4462 # Extract the first word of "install-info", so it can be a program name with args.
4463 set dummy install-info; ac_word=$2
4464 echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469 case $INSTALL_INFO in
4470 [\\/]* | ?:[\\/]*)
4471 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4472 ;;
4473 *)
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4484 fi
4485 done
4486 done
4487
4488 ;;
4489 esac
4490 fi
4491 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4492
4493 if test -n "$INSTALL_INFO"; then
4494 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4495 echo "${ECHO_T}$INSTALL_INFO" >&6
4496 else
4497 echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4499 fi
4500
4501 # Extract the first word of "install-info", so it can be a program name with args.
4502 set dummy install-info; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 case $INSTALL_INFO in
4509 [\\/]* | ?:[\\/]*)
4510 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4511 ;;
4512 *)
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in /usr/sbin
4515 do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524 done
4525 done
4526
4527 ;;
4528 esac
4529 fi
4530 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4531
4532 if test -n "$INSTALL_INFO"; then
4533 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4534 echo "${ECHO_T}$INSTALL_INFO" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6
4538 fi
4539
4540 # Extract the first word of "install-info", so it can be a program name with args.
4541 set dummy install-info; ac_word=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 case $INSTALL_INFO in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4550 ;;
4551 *)
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in /sbin
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563 done
4564 done
4565
4566 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4567 ;;
4568 esac
4569 fi
4570 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4571
4572 if test -n "$INSTALL_INFO"; then
4573 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4574 echo "${ECHO_T}$INSTALL_INFO" >&6
4575 else
4576 echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4578 fi
4579
4580 # Extract the first word of "gzip", so it can be a program name with args.
4581 set dummy gzip; ac_word=$2
4582 echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 case $GZIP_PROG in
4588 [\\/]* | ?:[\\/]*)
4589 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4590 ;;
4591 *)
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603 done
4604 done
4605
4606 ;;
4607 esac
4608 fi
4609 GZIP_PROG=$ac_cv_path_GZIP_PROG
4610
4611 if test -n "$GZIP_PROG"; then
4612 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4613 echo "${ECHO_T}$GZIP_PROG" >&6
4614 else
4615 echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4617 fi
4618
4619
4620
4621 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4622 then
4623 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4624 fi
4625
4626 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4627 then
4628 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4629 fi
4630
4631
4632 late_LDFLAGS=$LDFLAGS
4633 if test "$GCC" = yes; then
4634 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4635 else
4636 LDFLAGS="$LDFLAGS -znocombreloc"
4637 fi
4638
4639 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4640 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4641 cat >conftest.$ac_ext <<_ACEOF
4642 main(){return 0;}
4643 _ACEOF
4644 rm -f conftest.$ac_objext conftest$ac_exeext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646 (eval $ac_link) 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -z "$ac_c_werror_flag"
4654 || test ! -s conftest.err'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest$ac_exeext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 (eval $ac_try) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 echo "$as_me:$LINENO: result: yes" >&5
4667 echo "${ECHO_T}yes" >&6
4668 else
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 LDFLAGS=$late_LDFLAGS
4673 echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6
4675 fi
4676 rm -f conftest.err conftest.$ac_objext \
4677 conftest$ac_exeext conftest.$ac_ext
4678
4679 #### Extract some information from the operating system and machine files.
4680
4681 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4682 - which libraries the lib-src programs will want, and
4683 - whether the GNU malloc routines are usable..." >&5
4684 echo "$as_me: checking the machine- and system-dependent files to find out
4685 - which libraries the lib-src programs will want, and
4686 - whether the GNU malloc routines are usable..." >&6;}
4687
4688 ### First figure out CFLAGS (which we use for running the compiler here)
4689 ### and REAL_CFLAGS (which we use for real compilation).
4690 ### The two are the same except on a few systems, where they are made
4691 ### different to work around various lossages. For example,
4692 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4693 ### as implying static linking.
4694
4695 ### If the CFLAGS env var is specified, we use that value
4696 ### instead of the default.
4697
4698 ### It's not important that this name contain the PID; you can't run
4699 ### two configures in the same directory and have anything work
4700 ### anyway.
4701 tempcname="conftest.c"
4702
4703 echo '
4704 #include "'${srcdir}'/src/'${opsysfile}'"
4705 #include "'${srcdir}'/src/'${machfile}'"
4706 #ifndef LIBS_MACHINE
4707 #define LIBS_MACHINE
4708 #endif
4709 #ifndef LIBS_SYSTEM
4710 #define LIBS_SYSTEM
4711 #endif
4712 #ifndef C_SWITCH_SYSTEM
4713 #define C_SWITCH_SYSTEM
4714 #endif
4715 #ifndef C_SWITCH_MACHINE
4716 #define C_SWITCH_MACHINE
4717 #endif
4718 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4719 configure___ c_switch_system=C_SWITCH_SYSTEM
4720 configure___ c_switch_machine=C_SWITCH_MACHINE
4721
4722 #ifndef LIB_X11_LIB
4723 #define LIB_X11_LIB -lX11
4724 #endif
4725
4726 #ifndef LIBX11_MACHINE
4727 #define LIBX11_MACHINE
4728 #endif
4729
4730 #ifndef LIBX11_SYSTEM
4731 #define LIBX11_SYSTEM
4732 #endif
4733 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4734
4735 #ifdef UNEXEC
4736 configure___ unexec=UNEXEC
4737 #else
4738 configure___ unexec=unexec.o
4739 #endif
4740
4741 #ifdef SYSTEM_MALLOC
4742 configure___ system_malloc=yes
4743 #else
4744 configure___ system_malloc=no
4745 #endif
4746
4747 #ifdef USE_MMAP_FOR_BUFFERS
4748 configure___ use_mmap_for_buffers=yes
4749 #else
4750 configure___ use_mmap_for_buffers=no
4751 #endif
4752
4753 #ifndef C_DEBUG_SWITCH
4754 #define C_DEBUG_SWITCH -g
4755 #endif
4756
4757 #ifndef C_OPTIMIZE_SWITCH
4758 #ifdef __GNUC__
4759 #define C_OPTIMIZE_SWITCH -O2
4760 #else
4761 #define C_OPTIMIZE_SWITCH -O
4762 #endif
4763 #endif
4764
4765 #ifndef C_WARNINGS_SWITCH
4766 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4767 #endif
4768
4769 #ifndef LD_SWITCH_MACHINE
4770 #define LD_SWITCH_MACHINE
4771 #endif
4772
4773 #ifndef LD_SWITCH_SYSTEM
4774 #define LD_SWITCH_SYSTEM
4775 #endif
4776
4777 #ifndef LD_SWITCH_X_SITE_AUX
4778 #define LD_SWITCH_X_SITE_AUX
4779 #endif
4780
4781 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4782 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4783
4784 #ifdef THIS_IS_CONFIGURE
4785
4786 /* Get the CFLAGS for tests in configure. */
4787 #ifdef __GNUC__
4788 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4789 #else
4790 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4791 #endif
4792
4793 #else /* not THIS_IS_CONFIGURE */
4794
4795 /* Get the CFLAGS for real compilation. */
4796 #ifdef __GNUC__
4797 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4798 #else
4799 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4800 #endif
4801
4802 #endif /* not THIS_IS_CONFIGURE */
4803 ' > ${tempcname}
4804
4805 # The value of CPP is a quoted variable reference, so we need to do this
4806 # to get its actual value...
4807 CPP=`eval "echo $CPP"`
4808 eval `${CPP} -Isrc ${tempcname} \
4809 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4810 if test "x$SPECIFIED_CFLAGS" = x; then
4811 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4812 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4813 else
4814 REAL_CFLAGS="$CFLAGS"
4815 fi
4816 rm ${tempcname}
4817
4818 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4819
4820 ### Make sure subsequent tests use flags consistent with the build flags.
4821
4822 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4823 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4824 else
4825 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4826 fi
4827
4828
4829
4830 # Check whether --enable-largefile or --disable-largefile was given.
4831 if test "${enable_largefile+set}" = set; then
4832 enableval="$enable_largefile"
4833
4834 fi;
4835 if test "$enable_largefile" != no; then
4836
4837 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4838 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4839 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842 ac_cv_sys_largefile_CC=no
4843 if test "$GCC" != yes; then
4844 ac_save_CC=$CC
4845 while :; do
4846 # IRIX 6.2 and later do not support large files by default,
4847 # so use the C compiler's -n32 option if that helps.
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <sys/types.h>
4855 /* Check that off_t can represent 2**63 - 1 correctly.
4856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4857 since some C++ compilers masquerading as C compilers
4858 incorrectly reject 9223372036854775807. */
4859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4861 && LARGE_OFF_T % 2147483647 == 1)
4862 ? 1 : -1];
4863 int
4864 main ()
4865 {
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try='test -s conftest.$ac_objext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 break
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4897
4898 fi
4899 rm -f conftest.err conftest.$ac_objext
4900 CC="$CC -n32"
4901 rm -f conftest.$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try='test -z "$ac_c_werror_flag"
4911 || test ! -s conftest.err'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; } &&
4917 { ac_try='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_sys_largefile_CC=' -n32'; break
4924 else
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 fi
4929 rm -f conftest.err conftest.$ac_objext
4930 break
4931 done
4932 CC=$ac_save_CC
4933 rm -f conftest.$ac_ext
4934 fi
4935 fi
4936 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4937 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4938 if test "$ac_cv_sys_largefile_CC" != no; then
4939 CC=$CC$ac_cv_sys_largefile_CC
4940 fi
4941
4942 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4943 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4944 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947 while :; do
4948 ac_cv_sys_file_offset_bits=no
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h. */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 #include <sys/types.h>
4956 /* Check that off_t can represent 2**63 - 1 correctly.
4957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4958 since some C++ compilers masquerading as C compilers
4959 incorrectly reject 9223372036854775807. */
4960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4962 && LARGE_OFF_T % 2147483647 == 1)
4963 ? 1 : -1];
4964 int
4965 main ()
4966 {
4967
4968 ;
4969 return 0;
4970 }
4971 _ACEOF
4972 rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -z "$ac_c_werror_flag"
4982 || test ! -s conftest.err'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 break
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999 fi
5000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5001 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h. */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #define _FILE_OFFSET_BITS 64
5008 #include <sys/types.h>
5009 /* Check that off_t can represent 2**63 - 1 correctly.
5010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5011 since some C++ compilers masquerading as C compilers
5012 incorrectly reject 9223372036854775807. */
5013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5015 && LARGE_OFF_T % 2147483647 == 1)
5016 ? 1 : -1];
5017 int
5018 main ()
5019 {
5020
5021 ;
5022 return 0;
5023 }
5024 _ACEOF
5025 rm -f conftest.$ac_objext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5027 (eval $ac_compile) 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try='test -z "$ac_c_werror_flag"
5035 || test ! -s conftest.err'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 (eval $ac_try) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; } &&
5041 { ac_try='test -s conftest.$ac_objext'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 (eval $ac_try) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_cv_sys_file_offset_bits=64; break
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5051
5052 fi
5053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5054 break
5055 done
5056 fi
5057 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5058 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5059 if test "$ac_cv_sys_file_offset_bits" != no; then
5060
5061 cat >>confdefs.h <<_ACEOF
5062 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5063 _ACEOF
5064
5065 fi
5066 rm -f conftest*
5067 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5068 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5069 if test "${ac_cv_sys_large_files+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 while :; do
5073 ac_cv_sys_large_files=no
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 #include <sys/types.h>
5081 /* Check that off_t can represent 2**63 - 1 correctly.
5082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5083 since some C++ compilers masquerading as C compilers
5084 incorrectly reject 9223372036854775807. */
5085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5087 && LARGE_OFF_T % 2147483647 == 1)
5088 ? 1 : -1];
5089 int
5090 main ()
5091 {
5092
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -z "$ac_c_werror_flag"
5107 || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest.$ac_objext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 (eval $ac_try) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 break
5120 else
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 fi
5125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5126 cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h. */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 #define _LARGE_FILES 1
5133 #include <sys/types.h>
5134 /* Check that off_t can represent 2**63 - 1 correctly.
5135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5136 since some C++ compilers masquerading as C compilers
5137 incorrectly reject 9223372036854775807. */
5138 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5140 && LARGE_OFF_T % 2147483647 == 1)
5141 ? 1 : -1];
5142 int
5143 main ()
5144 {
5145
5146 ;
5147 return 0;
5148 }
5149 _ACEOF
5150 rm -f conftest.$ac_objext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5152 (eval $ac_compile) 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try='test -z "$ac_c_werror_flag"
5160 || test ! -s conftest.err'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; } &&
5166 { ac_try='test -s conftest.$ac_objext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 (eval $ac_try) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_sys_large_files=1; break
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177 fi
5178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5179 break
5180 done
5181 fi
5182 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5183 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5184 if test "$ac_cv_sys_large_files" != no; then
5185
5186 cat >>confdefs.h <<_ACEOF
5187 #define _LARGE_FILES $ac_cv_sys_large_files
5188 _ACEOF
5189
5190 fi
5191 rm -f conftest*
5192 fi
5193
5194
5195
5196 ### The standard library on x86-64 GNU/Linux distributions can
5197 ### be located in either /usr/lib64 or /usr/lib.
5198 case "${canonical}" in
5199 x86_64-*-linux-gnu* )
5200 if test -d /usr/lib64; then
5201
5202 cat >>confdefs.h <<\_ACEOF
5203 #define HAVE_X86_64_LIB64_DIR 1
5204 _ACEOF
5205
5206 fi
5207 esac
5208
5209
5210
5211
5212 if test "${with_sound}" != "no"; then
5213 # Sound support for GNU/Linux and the free BSDs.
5214 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5215 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5216 if test "${ac_cv_header_stdc+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219 cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h. */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5225 #include <stdlib.h>
5226 #include <stdarg.h>
5227 #include <string.h>
5228 #include <float.h>
5229
5230 int
5231 main ()
5232 {
5233
5234 ;
5235 return 0;
5236 }
5237 _ACEOF
5238 rm -f conftest.$ac_objext
5239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240 (eval $ac_compile) 2>conftest.er1
5241 ac_status=$?
5242 grep -v '^ *+' conftest.er1 >conftest.err
5243 rm -f conftest.er1
5244 cat conftest.err >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } &&
5247 { ac_try='test -z "$ac_c_werror_flag"
5248 || test ! -s conftest.err'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; } &&
5254 { ac_try='test -s conftest.$ac_objext'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 (eval $ac_try) 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 ac_cv_header_stdc=yes
5261 else
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 ac_cv_header_stdc=no
5266 fi
5267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5268
5269 if test $ac_cv_header_stdc = yes; then
5270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5271 cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h. */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5277 #include <string.h>
5278
5279 _ACEOF
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 $EGREP "memchr" >/dev/null 2>&1; then
5282 :
5283 else
5284 ac_cv_header_stdc=no
5285 fi
5286 rm -f conftest*
5287
5288 fi
5289
5290 if test $ac_cv_header_stdc = yes; then
5291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 #include <stdlib.h>
5299
5300 _ACEOF
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "free" >/dev/null 2>&1; then
5303 :
5304 else
5305 ac_cv_header_stdc=no
5306 fi
5307 rm -f conftest*
5308
5309 fi
5310
5311 if test $ac_cv_header_stdc = yes; then
5312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313 if test "$cross_compiling" = yes; then
5314 :
5315 else
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 #include <ctype.h>
5323 #if ((' ' & 0x0FF) == 0x020)
5324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5326 #else
5327 # define ISLOWER(c) \
5328 (('a' <= (c) && (c) <= 'i') \
5329 || ('j' <= (c) && (c) <= 'r') \
5330 || ('s' <= (c) && (c) <= 'z'))
5331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5332 #endif
5333
5334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5335 int
5336 main ()
5337 {
5338 int i;
5339 for (i = 0; i < 256; i++)
5340 if (XOR (islower (i), ISLOWER (i))
5341 || toupper (i) != TOUPPER (i))
5342 exit(2);
5343 exit (0);
5344 }
5345 _ACEOF
5346 rm -f conftest$ac_exeext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5348 (eval $ac_link) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 :
5358 else
5359 echo "$as_me: program exited with status $ac_status" >&5
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 ( exit $ac_status )
5364 ac_cv_header_stdc=no
5365 fi
5366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5367 fi
5368 fi
5369 fi
5370 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5371 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5372 if test $ac_cv_header_stdc = yes; then
5373
5374 cat >>confdefs.h <<\_ACEOF
5375 #define STDC_HEADERS 1
5376 _ACEOF
5377
5378 fi
5379
5380 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5391 inttypes.h stdint.h unistd.h
5392 do
5393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5394 echo "$as_me:$LINENO: checking for $ac_header" >&5
5395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399 cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h. */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 $ac_includes_default
5406
5407 #include <$ac_header>
5408 _ACEOF
5409 rm -f conftest.$ac_objext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411 (eval $ac_compile) 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -z "$ac_c_werror_flag"
5419 || test ! -s conftest.err'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; } &&
5425 { ac_try='test -s conftest.$ac_objext'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 (eval $ac_try) 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 eval "$as_ac_Header=yes"
5432 else
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 eval "$as_ac_Header=no"
5437 fi
5438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5439 fi
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5443 cat >>confdefs.h <<_ACEOF
5444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5445 _ACEOF
5446
5447 fi
5448
5449 done
5450
5451
5452
5453
5454
5455 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5456 do
5457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5459 echo "$as_me:$LINENO: checking for $ac_header" >&5
5460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 fi
5464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5466 else
5467 # Is the header compilable?
5468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5470 cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h. */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 $ac_includes_default
5477 #include <$ac_header>
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -z "$ac_c_werror_flag"
5489 || test ! -s conftest.err'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_header_compiler=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_header_compiler=no
5507 fi
5508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5510 echo "${ECHO_T}$ac_header_compiler" >&6
5511
5512 # Is the header present?
5513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 #include <$ac_header>
5522 _ACEOF
5523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } >/dev/null; then
5531 if test -s conftest.err; then
5532 ac_cpp_err=$ac_c_preproc_warn_flag
5533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5534 else
5535 ac_cpp_err=
5536 fi
5537 else
5538 ac_cpp_err=yes
5539 fi
5540 if test -z "$ac_cpp_err"; then
5541 ac_header_preproc=yes
5542 else
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5545
5546 ac_header_preproc=no
5547 fi
5548 rm -f conftest.err conftest.$ac_ext
5549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5550 echo "${ECHO_T}$ac_header_preproc" >&6
5551
5552 # So? What about this header?
5553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5554 yes:no: )
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5559 ac_header_preproc=yes
5560 ;;
5561 no:yes:* )
5562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5574 (
5575 cat <<\_ASBOX
5576 ## ------------------------------------------ ##
5577 ## Report this to the AC_PACKAGE_NAME lists. ##
5578 ## ------------------------------------------ ##
5579 _ASBOX
5580 ) |
5581 sed "s/^/$as_me: WARNING: /" >&2
5582 ;;
5583 esac
5584 echo "$as_me:$LINENO: checking for $ac_header" >&5
5585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589 eval "$as_ac_Header=\$ac_header_preproc"
5590 fi
5591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5593
5594 fi
5595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5596 cat >>confdefs.h <<_ACEOF
5597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5598 _ACEOF
5599
5600 fi
5601
5602 done
5603
5604 # Emulation library used on NetBSD.
5605 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5606 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5607 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610 ac_check_lib_save_LIBS=$LIBS
5611 LIBS="-lossaudio $LIBS"
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618
5619 /* Override any gcc2 internal prototype to avoid an error. */
5620 #ifdef __cplusplus
5621 extern "C"
5622 #endif
5623 /* We use char because int might match the return type of a gcc2
5624 builtin and then its argument prototype would still apply. */
5625 char _oss_ioctl ();
5626 int
5627 main ()
5628 {
5629 _oss_ioctl ();
5630 ;
5631 return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext conftest$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_c_werror_flag"
5644 || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest$ac_exeext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5656 ac_cv_lib_ossaudio__oss_ioctl=yes
5657 else
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5660
5661 ac_cv_lib_ossaudio__oss_ioctl=no
5662 fi
5663 rm -f conftest.err conftest.$ac_objext \
5664 conftest$ac_exeext conftest.$ac_ext
5665 LIBS=$ac_check_lib_save_LIBS
5666 fi
5667 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5668 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5669 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5670 LIBSOUND=-lossaudio
5671 else
5672 LIBSOUND=
5673 fi
5674
5675
5676
5677 ALSA_REQUIRED=1.0.0
5678 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5679 if test "X${with_pkg_config_prog}" != X; then
5680 PKG_CONFIG="${with_pkg_config_prog}"
5681 fi
5682
5683 succeeded=no
5684
5685 if test -z "$PKG_CONFIG"; then
5686 # Extract the first word of "pkg-config", so it can be a program name with args.
5687 set dummy pkg-config; ac_word=$2
5688 echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5690 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693 case $PKG_CONFIG in
5694 [\\/]* | ?:[\\/]*)
5695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5696 ;;
5697 *)
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5708 fi
5709 done
5710 done
5711
5712 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5713 ;;
5714 esac
5715 fi
5716 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5717
5718 if test -n "$PKG_CONFIG"; then
5719 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5720 echo "${ECHO_T}$PKG_CONFIG" >&6
5721 else
5722 echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6
5724 fi
5725
5726 fi
5727
5728 if test "$PKG_CONFIG" = "no" ; then
5729 HAVE_ALSA=no
5730 else
5731 PKG_CONFIG_MIN_VERSION=0.9.0
5732 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5733 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5734 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5735
5736 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5737 echo "$as_me:$LINENO: result: yes" >&5
5738 echo "${ECHO_T}yes" >&6
5739 succeeded=yes
5740
5741 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5742 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5743 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5744 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5745 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5746
5747 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5748 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5749 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5750 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5751 echo "${ECHO_T}$ALSA_LIBS" >&6
5752 else
5753 echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6
5755 ALSA_CFLAGS=""
5756 ALSA_LIBS=""
5757 ## If we have a custom action on failure, don't print errors, but
5758 ## do set a variable so people can do so.
5759 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5760
5761 fi
5762
5763
5764
5765 else
5766 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5767 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5768 fi
5769 fi
5770
5771 if test $succeeded = yes; then
5772 HAVE_ALSA=yes
5773 else
5774 HAVE_ALSA=no
5775 fi
5776
5777 if test $HAVE_ALSA = yes; then
5778 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5779 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5780
5781 cat >>confdefs.h <<\_ACEOF
5782 #define HAVE_ALSA 1
5783 _ACEOF
5784
5785 fi
5786
5787 fi
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5815 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5816 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5817 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5818 sys/utsname.h pwd.h
5819 do
5820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822 echo "$as_me:$LINENO: checking for $ac_header" >&5
5823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 fi
5827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5829 else
5830 # Is the header compilable?
5831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 $ac_includes_default
5840 #include <$ac_header>
5841 _ACEOF
5842 rm -f conftest.$ac_objext
5843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844 (eval $ac_compile) 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try='test -z "$ac_c_werror_flag"
5852 || test ! -s conftest.err'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 (eval $ac_try) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; } &&
5858 { ac_try='test -s conftest.$ac_objext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 ac_header_compiler=yes
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 ac_header_compiler=no
5870 fi
5871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5873 echo "${ECHO_T}$ac_header_compiler" >&6
5874
5875 # Is the header present?
5876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <$ac_header>
5885 _ACEOF
5886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } >/dev/null; then
5894 if test -s conftest.err; then
5895 ac_cpp_err=$ac_c_preproc_warn_flag
5896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5897 else
5898 ac_cpp_err=
5899 fi
5900 else
5901 ac_cpp_err=yes
5902 fi
5903 if test -z "$ac_cpp_err"; then
5904 ac_header_preproc=yes
5905 else
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 ac_header_preproc=no
5910 fi
5911 rm -f conftest.err conftest.$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5913 echo "${ECHO_T}$ac_header_preproc" >&6
5914
5915 # So? What about this header?
5916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5917 yes:no: )
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5922 ac_header_preproc=yes
5923 ;;
5924 no:yes:* )
5925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5937 (
5938 cat <<\_ASBOX
5939 ## ------------------------------------------ ##
5940 ## Report this to the AC_PACKAGE_NAME lists. ##
5941 ## ------------------------------------------ ##
5942 _ASBOX
5943 ) |
5944 sed "s/^/$as_me: WARNING: /" >&2
5945 ;;
5946 esac
5947 echo "$as_me:$LINENO: checking for $ac_header" >&5
5948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 eval "$as_ac_Header=\$ac_header_preproc"
5953 fi
5954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5956
5957 fi
5958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5959 cat >>confdefs.h <<_ACEOF
5960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5961 _ACEOF
5962
5963 fi
5964
5965 done
5966
5967
5968 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5969 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 #include <sys/personality.h>
5977 int
5978 main ()
5979 {
5980 personality (PER_LINUX32)
5981 ;
5982 return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 emacs_cv_personality_linux32=yes
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012 emacs_cv_personality_linux32=no
6013 fi
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6016 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
6017
6018 if test $emacs_cv_personality_linux32 = yes; then
6019
6020 cat >>confdefs.h <<\_ACEOF
6021 #define HAVE_PERSONALITY_LINUX32 1
6022 _ACEOF
6023
6024 fi
6025
6026
6027 for ac_header in term.h
6028 do
6029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6030 echo "$as_me:$LINENO: checking for $ac_header" >&5
6031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <$ac_header>
6042 _ACEOF
6043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } >/dev/null; then
6051 if test -s conftest.err; then
6052 ac_cpp_err=$ac_c_preproc_warn_flag
6053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6054 else
6055 ac_cpp_err=
6056 fi
6057 else
6058 ac_cpp_err=yes
6059 fi
6060 if test -z "$ac_cpp_err"; then
6061 eval "$as_ac_Header=yes"
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 eval "$as_ac_Header=no"
6067 fi
6068 rm -f conftest.err conftest.$ac_ext
6069 fi
6070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6073 cat >>confdefs.h <<_ACEOF
6074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6075 _ACEOF
6076
6077 fi
6078
6079 done
6080
6081 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6082 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6083 if test "${ac_cv_header_stdc+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h. */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <stdlib.h>
6093 #include <stdarg.h>
6094 #include <string.h>
6095 #include <float.h>
6096
6097 int
6098 main ()
6099 {
6100
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_header_stdc=yes
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 ac_cv_header_stdc=no
6133 fi
6134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135
6136 if test $ac_cv_header_stdc = yes; then
6137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <string.h>
6145
6146 _ACEOF
6147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148 $EGREP "memchr" >/dev/null 2>&1; then
6149 :
6150 else
6151 ac_cv_header_stdc=no
6152 fi
6153 rm -f conftest*
6154
6155 fi
6156
6157 if test $ac_cv_header_stdc = yes; then
6158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6159 cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h. */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 #include <stdlib.h>
6166
6167 _ACEOF
6168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6169 $EGREP "free" >/dev/null 2>&1; then
6170 :
6171 else
6172 ac_cv_header_stdc=no
6173 fi
6174 rm -f conftest*
6175
6176 fi
6177
6178 if test $ac_cv_header_stdc = yes; then
6179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6180 if test "$cross_compiling" = yes; then
6181 :
6182 else
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 #include <ctype.h>
6190 #if ((' ' & 0x0FF) == 0x020)
6191 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6192 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6193 #else
6194 # define ISLOWER(c) \
6195 (('a' <= (c) && (c) <= 'i') \
6196 || ('j' <= (c) && (c) <= 'r') \
6197 || ('s' <= (c) && (c) <= 'z'))
6198 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6199 #endif
6200
6201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6202 int
6203 main ()
6204 {
6205 int i;
6206 for (i = 0; i < 256; i++)
6207 if (XOR (islower (i), ISLOWER (i))
6208 || toupper (i) != TOUPPER (i))
6209 exit(2);
6210 exit (0);
6211 }
6212 _ACEOF
6213 rm -f conftest$ac_exeext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6215 (eval $ac_link) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 :
6225 else
6226 echo "$as_me: program exited with status $ac_status" >&5
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6229
6230 ( exit $ac_status )
6231 ac_cv_header_stdc=no
6232 fi
6233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6234 fi
6235 fi
6236 fi
6237 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6238 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6239 if test $ac_cv_header_stdc = yes; then
6240
6241 cat >>confdefs.h <<\_ACEOF
6242 #define STDC_HEADERS 1
6243 _ACEOF
6244
6245 fi
6246
6247 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6248 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6249 if test "${ac_cv_header_time+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 #include <sys/types.h>
6259 #include <sys/time.h>
6260 #include <time.h>
6261
6262 int
6263 main ()
6264 {
6265 if ((struct tm *) 0)
6266 return 0;
6267 ;
6268 return 0;
6269 }
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_cv_header_time=yes
6294 else
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6297
6298 ac_cv_header_time=no
6299 fi
6300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6301 fi
6302 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6303 echo "${ECHO_T}$ac_cv_header_time" >&6
6304 if test $ac_cv_header_time = yes; then
6305
6306 cat >>confdefs.h <<\_ACEOF
6307 #define TIME_WITH_SYS_TIME 1
6308 _ACEOF
6309
6310 fi
6311
6312 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6313 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6314 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 $ac_includes_default
6324 int
6325 main ()
6326 {
6327 #ifndef sys_siglist
6328 char *p = (char *) sys_siglist;
6329 #endif
6330
6331 ;
6332 return 0;
6333 }
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 { ac_try='test -z "$ac_c_werror_flag"
6345 || test ! -s conftest.err'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 (eval $ac_try) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; } &&
6351 { ac_try='test -s conftest.$ac_objext'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6357 ac_cv_have_decl_sys_siglist=yes
6358 else
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6361
6362 ac_cv_have_decl_sys_siglist=no
6363 fi
6364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6365 fi
6366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6367 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6368 if test $ac_cv_have_decl_sys_siglist = yes; then
6369
6370 cat >>confdefs.h <<_ACEOF
6371 #define HAVE_DECL_SYS_SIGLIST 1
6372 _ACEOF
6373
6374
6375 else
6376 cat >>confdefs.h <<_ACEOF
6377 #define HAVE_DECL_SYS_SIGLIST 0
6378 _ACEOF
6379
6380
6381 fi
6382
6383
6384 if test $ac_cv_have_decl_sys_siglist != yes; then
6385 # For Tru64, at least:
6386 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6387 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6388 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6398 int
6399 main ()
6400 {
6401 #ifndef __sys_siglist
6402 char *p = (char *) __sys_siglist;
6403 #endif
6404
6405 ;
6406 return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_c_werror_flag"
6419 || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try='test -s conftest.$ac_objext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 ac_cv_have_decl___sys_siglist=yes
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 ac_cv_have_decl___sys_siglist=no
6437 fi
6438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 fi
6440 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6441 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6442 if test $ac_cv_have_decl___sys_siglist = yes; then
6443
6444 cat >>confdefs.h <<_ACEOF
6445 #define HAVE_DECL___SYS_SIGLIST 1
6446 _ACEOF
6447
6448
6449 else
6450 cat >>confdefs.h <<_ACEOF
6451 #define HAVE_DECL___SYS_SIGLIST 0
6452 _ACEOF
6453
6454
6455 fi
6456
6457
6458 if test $ac_cv_have_decl___sys_siglist = yes; then
6459
6460 cat >>confdefs.h <<\_ACEOF
6461 #define sys_siglist __sys_siglist
6462 _ACEOF
6463
6464 fi
6465 fi
6466 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6467 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6468 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <sys/types.h>
6478 #include <sys/wait.h>
6479 #ifndef WEXITSTATUS
6480 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6481 #endif
6482 #ifndef WIFEXITED
6483 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6484 #endif
6485
6486 int
6487 main ()
6488 {
6489 int s;
6490 wait (&s);
6491 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6492 ;
6493 return 0;
6494 }
6495 _ACEOF
6496 rm -f conftest.$ac_objext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498 (eval $ac_compile) 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_c_werror_flag"
6506 || test ! -s conftest.err'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try='test -s conftest.$ac_objext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_cv_header_sys_wait_h=yes
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523 ac_cv_header_sys_wait_h=no
6524 fi
6525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6526 fi
6527 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6528 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6529 if test $ac_cv_header_sys_wait_h = yes; then
6530
6531 cat >>confdefs.h <<\_ACEOF
6532 #define HAVE_SYS_WAIT_H 1
6533 _ACEOF
6534
6535 fi
6536
6537
6538 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6539 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6540 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 #ifdef TIME_WITH_SYS_TIME
6550 #include <sys/time.h>
6551 #include <time.h>
6552 #else
6553 #ifdef HAVE_SYS_TIME_H
6554 #include <sys/time.h>
6555 #else
6556 #include <time.h>
6557 #endif
6558 #endif
6559 #ifdef HAVE_UTIME_H
6560 #include <utime.h>
6561 #endif
6562 int
6563 main ()
6564 {
6565 static struct utimbuf x; x.actime = x.modtime;
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 rm -f conftest.$ac_objext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6572 (eval $ac_compile) 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_c_werror_flag"
6580 || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest.$ac_objext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 emacs_cv_struct_utimbuf=yes
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 emacs_cv_struct_utimbuf=no
6598 fi
6599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6600 fi
6601 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6602 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6603 if test $emacs_cv_struct_utimbuf = yes; then
6604
6605 cat >>confdefs.h <<\_ACEOF
6606 #define HAVE_STRUCT_UTIMBUF 1
6607 _ACEOF
6608
6609 fi
6610
6611 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6612 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6613 if test "${ac_cv_type_signal+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <sys/types.h>
6623 #include <signal.h>
6624 #ifdef signal
6625 # undef signal
6626 #endif
6627 #ifdef __cplusplus
6628 extern "C" void (*signal (int, void (*)(int)))(int);
6629 #else
6630 void (*signal ()) ();
6631 #endif
6632
6633 int
6634 main ()
6635 {
6636 int i;
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest.$ac_objext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_type_signal=void
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 ac_cv_type_signal=int
6669 fi
6670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6671 fi
6672 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6673 echo "${ECHO_T}$ac_cv_type_signal" >&6
6674
6675 cat >>confdefs.h <<_ACEOF
6676 #define RETSIGTYPE $ac_cv_type_signal
6677 _ACEOF
6678
6679
6680
6681 echo "$as_me:$LINENO: checking for speed_t" >&5
6682 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6683 if test "${emacs_cv_speed_t+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <termios.h>
6693 int
6694 main ()
6695 {
6696 speed_t x = 1;
6697 ;
6698 return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6703 (eval $ac_compile) 2>conftest.er1
6704 ac_status=$?
6705 grep -v '^ *+' conftest.er1 >conftest.err
6706 rm -f conftest.er1
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -z "$ac_c_werror_flag"
6711 || test ! -s conftest.err'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 (eval $ac_try) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 emacs_cv_speed_t=yes
6724 else
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 emacs_cv_speed_t=no
6729 fi
6730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6731 fi
6732 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6733 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6734 if test $emacs_cv_speed_t = yes; then
6735
6736 cat >>confdefs.h <<\_ACEOF
6737 #define HAVE_SPEED_T 1
6738 _ACEOF
6739
6740 fi
6741
6742 echo "$as_me:$LINENO: checking for struct timeval" >&5
6743 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6744 if test "${emacs_cv_struct_timeval+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #ifdef TIME_WITH_SYS_TIME
6754 #include <sys/time.h>
6755 #include <time.h>
6756 #else
6757 #ifdef HAVE_SYS_TIME_H
6758 #include <sys/time.h>
6759 #else
6760 #include <time.h>
6761 #endif
6762 #endif
6763 int
6764 main ()
6765 {
6766 static struct timeval x; x.tv_sec = x.tv_usec;
6767 ;
6768 return 0;
6769 }
6770 _ACEOF
6771 rm -f conftest.$ac_objext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773 (eval $ac_compile) 2>conftest.er1
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try='test -z "$ac_c_werror_flag"
6781 || test ! -s conftest.err'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; } &&
6787 { ac_try='test -s conftest.$ac_objext'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 (eval $ac_try) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }; then
6793 emacs_cv_struct_timeval=yes
6794 else
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6797
6798 emacs_cv_struct_timeval=no
6799 fi
6800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6801 fi
6802 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6803 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6804 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6805 if test $emacs_cv_struct_timeval = yes; then
6806
6807 cat >>confdefs.h <<\_ACEOF
6808 #define HAVE_TIMEVAL 1
6809 _ACEOF
6810
6811 fi
6812
6813 echo "$as_me:$LINENO: checking for struct exception" >&5
6814 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6815 if test "${emacs_cv_struct_exception+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818 cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h. */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 #include <math.h>
6825 int
6826 main ()
6827 {
6828 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835 (eval $ac_compile) 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try='test -z "$ac_c_werror_flag"
6843 || test ! -s conftest.err'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; } &&
6849 { ac_try='test -s conftest.$ac_objext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 emacs_cv_struct_exception=yes
6856 else
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6859
6860 emacs_cv_struct_exception=no
6861 fi
6862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6863 fi
6864 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6865 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6866 HAVE_EXCEPTION=$emacs_cv_struct_exception
6867 if test $emacs_cv_struct_exception != yes; then
6868
6869 cat >>confdefs.h <<\_ACEOF
6870 #define NO_MATHERR 1
6871 _ACEOF
6872
6873 fi
6874
6875
6876 for ac_header in sys/socket.h
6877 do
6878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6880 echo "$as_me:$LINENO: checking for $ac_header" >&5
6881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 fi
6885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6887 else
6888 # Is the header compilable?
6889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 $ac_includes_default
6898 #include <$ac_header>
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try='test -z "$ac_c_werror_flag"
6910 || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest.$ac_objext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_header_compiler=yes
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927 ac_header_compiler=no
6928 fi
6929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6931 echo "${ECHO_T}$ac_header_compiler" >&6
6932
6933 # Is the header present?
6934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #include <$ac_header>
6943 _ACEOF
6944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } >/dev/null; then
6952 if test -s conftest.err; then
6953 ac_cpp_err=$ac_c_preproc_warn_flag
6954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6955 else
6956 ac_cpp_err=
6957 fi
6958 else
6959 ac_cpp_err=yes
6960 fi
6961 if test -z "$ac_cpp_err"; then
6962 ac_header_preproc=yes
6963 else
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 ac_header_preproc=no
6968 fi
6969 rm -f conftest.err conftest.$ac_ext
6970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6971 echo "${ECHO_T}$ac_header_preproc" >&6
6972
6973 # So? What about this header?
6974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6975 yes:no: )
6976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6980 ac_header_preproc=yes
6981 ;;
6982 no:yes:* )
6983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6995 (
6996 cat <<\_ASBOX
6997 ## ------------------------------------------ ##
6998 ## Report this to the AC_PACKAGE_NAME lists. ##
6999 ## ------------------------------------------ ##
7000 _ASBOX
7001 ) |
7002 sed "s/^/$as_me: WARNING: /" >&2
7003 ;;
7004 esac
7005 echo "$as_me:$LINENO: checking for $ac_header" >&5
7006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010 eval "$as_ac_Header=\$ac_header_preproc"
7011 fi
7012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7014
7015 fi
7016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7017 cat >>confdefs.h <<_ACEOF
7018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7019 _ACEOF
7020
7021 fi
7022
7023 done
7024
7025
7026 for ac_header in net/if.h
7027 do
7028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7029 echo "$as_me:$LINENO: checking for $ac_header" >&5
7030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h. */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 $ac_includes_default
7041 #if HAVE_SYS_SOCKET_H
7042 #include <sys/socket.h>
7043 #endif
7044
7045 #include <$ac_header>
7046 _ACEOF
7047 rm -f conftest.$ac_objext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7049 (eval $ac_compile) 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } &&
7056 { ac_try='test -z "$ac_c_werror_flag"
7057 || test ! -s conftest.err'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; } &&
7063 { ac_try='test -s conftest.$ac_objext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 eval "$as_ac_Header=yes"
7070 else
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7073
7074 eval "$as_ac_Header=no"
7075 fi
7076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7077 fi
7078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7081 cat >>confdefs.h <<_ACEOF
7082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7083 _ACEOF
7084
7085 fi
7086
7087 done
7088
7089
7090 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7091 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7092 if test "${ac_cv_struct_tm+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 #include <sys/types.h>
7102 #include <time.h>
7103
7104 int
7105 main ()
7106 {
7107 struct tm *tp; tp->tm_sec;
7108 ;
7109 return 0;
7110 }
7111 _ACEOF
7112 rm -f conftest.$ac_objext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114 (eval $ac_compile) 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try='test -z "$ac_c_werror_flag"
7122 || test ! -s conftest.err'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; } &&
7128 { ac_try='test -s conftest.$ac_objext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 ac_cv_struct_tm=time.h
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7138
7139 ac_cv_struct_tm=sys/time.h
7140 fi
7141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7142 fi
7143 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7144 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7145 if test $ac_cv_struct_tm = sys/time.h; then
7146
7147 cat >>confdefs.h <<\_ACEOF
7148 #define TM_IN_SYS_TIME 1
7149 _ACEOF
7150
7151 fi
7152
7153 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7154 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7155 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158 cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h. */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7164 #include <sys/types.h>
7165 #include <$ac_cv_struct_tm>
7166
7167
7168 int
7169 main ()
7170 {
7171 static struct tm ac_aggr;
7172 if (ac_aggr.tm_zone)
7173 return 0;
7174 ;
7175 return 0;
7176 }
7177 _ACEOF
7178 rm -f conftest.$ac_objext
7179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180 (eval $ac_compile) 2>conftest.er1
7181 ac_status=$?
7182 grep -v '^ *+' conftest.er1 >conftest.err
7183 rm -f conftest.er1
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try='test -z "$ac_c_werror_flag"
7188 || test ! -s conftest.err'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; } &&
7194 { ac_try='test -s conftest.$ac_objext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 ac_cv_member_struct_tm_tm_zone=yes
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h. */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 #include <sys/types.h>
7212 #include <$ac_cv_struct_tm>
7213
7214
7215 int
7216 main ()
7217 {
7218 static struct tm ac_aggr;
7219 if (sizeof ac_aggr.tm_zone)
7220 return 0;
7221 ;
7222 return 0;
7223 }
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_c_werror_flag"
7235 || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 (eval $ac_try) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_cv_member_struct_tm_tm_zone=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 ac_cv_member_struct_tm_tm_zone=no
7253 fi
7254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7255 fi
7256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7257 fi
7258 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7259 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7260 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7261
7262 cat >>confdefs.h <<_ACEOF
7263 #define HAVE_STRUCT_TM_TM_ZONE 1
7264 _ACEOF
7265
7266
7267 fi
7268
7269 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7270
7271 cat >>confdefs.h <<\_ACEOF
7272 #define HAVE_TM_ZONE 1
7273 _ACEOF
7274
7275 else
7276 echo "$as_me:$LINENO: checking for tzname" >&5
7277 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7278 if test "${ac_cv_var_tzname+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 #include <time.h>
7288 #ifndef tzname /* For SGI. */
7289 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7290 #endif
7291
7292 int
7293 main ()
7294 {
7295 atoi(*tzname);
7296 ;
7297 return 0;
7298 }
7299 _ACEOF
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302 (eval $ac_link) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_cv_var_tzname=yes
7323 else
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 ac_cv_var_tzname=no
7328 fi
7329 rm -f conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331 fi
7332 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7333 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7334 if test $ac_cv_var_tzname = yes; then
7335
7336 cat >>confdefs.h <<\_ACEOF
7337 #define HAVE_TZNAME 1
7338 _ACEOF
7339
7340 fi
7341 fi
7342
7343 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7344 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7345 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348 cat >conftest.$ac_ext <<_ACEOF
7349 /* confdefs.h. */
7350 _ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7354 #include <time.h>
7355
7356 int
7357 main ()
7358 {
7359 static struct tm ac_aggr;
7360 if (ac_aggr.tm_gmtoff)
7361 return 0;
7362 ;
7363 return 0;
7364 }
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7368 (eval $ac_compile) 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try='test -z "$ac_c_werror_flag"
7376 || test ! -s conftest.err'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 (eval $ac_try) 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try='test -s conftest.$ac_objext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 (eval $ac_try) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
7388 ac_cv_member_struct_tm_tm_gmtoff=yes
7389 else
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7392
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 #include <time.h>
7400
7401 int
7402 main ()
7403 {
7404 static struct tm ac_aggr;
7405 if (sizeof ac_aggr.tm_gmtoff)
7406 return 0;
7407 ;
7408 return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7413 (eval $ac_compile) 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -z "$ac_c_werror_flag"
7421 || test ! -s conftest.err'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 (eval $ac_try) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; } &&
7427 { ac_try='test -s conftest.$ac_objext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 (eval $ac_try) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 ac_cv_member_struct_tm_tm_gmtoff=yes
7434 else
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7437
7438 ac_cv_member_struct_tm_tm_gmtoff=no
7439 fi
7440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7441 fi
7442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7443 fi
7444 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7445 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7446 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7447
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_TM_GMTOFF 1
7450 _ACEOF
7451
7452 fi
7453
7454 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7455 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7456 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 $ac_includes_default
7466 #if HAVE_SYS_SOCKET_H
7467 #include <sys/socket.h>
7468 #endif
7469 #if HAVE_NET_IF_H
7470 #include <net/if.h>
7471 #endif
7472
7473 int
7474 main ()
7475 {
7476 static struct ifreq ac_aggr;
7477 if (ac_aggr.ifr_flags)
7478 return 0;
7479 ;
7480 return 0;
7481 }
7482 _ACEOF
7483 rm -f conftest.$ac_objext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>conftest.er1
7486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try='test -s conftest.$ac_objext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_member_struct_ifreq_ifr_flags=yes
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7509
7510 cat >conftest.$ac_ext <<_ACEOF
7511 /* confdefs.h. */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 $ac_includes_default
7517 #if HAVE_SYS_SOCKET_H
7518 #include <sys/socket.h>
7519 #endif
7520 #if HAVE_NET_IF_H
7521 #include <net/if.h>
7522 #endif
7523
7524 int
7525 main ()
7526 {
7527 static struct ifreq ac_aggr;
7528 if (sizeof ac_aggr.ifr_flags)
7529 return 0;
7530 ;
7531 return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>conftest.er1
7537 ac_status=$?
7538 grep -v '^ *+' conftest.er1 >conftest.err
7539 rm -f conftest.er1
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try='test -z "$ac_c_werror_flag"
7544 || test ! -s conftest.err'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 (eval $ac_try) 2>&5
7547 ac_status=$?
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; } &&
7550 { ac_try='test -s conftest.$ac_objext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 ac_cv_member_struct_ifreq_ifr_flags=yes
7557 else
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7560
7561 ac_cv_member_struct_ifreq_ifr_flags=no
7562 fi
7563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7564 fi
7565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7566 fi
7567 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7568 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7569 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7570
7571 cat >>confdefs.h <<_ACEOF
7572 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7573 _ACEOF
7574
7575
7576 fi
7577 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7578 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7579 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 cat >conftest.$ac_ext <<_ACEOF
7583 /* confdefs.h. */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7588 $ac_includes_default
7589 #if HAVE_SYS_SOCKET_H
7590 #include <sys/socket.h>
7591 #endif
7592 #if HAVE_NET_IF_H
7593 #include <net/if.h>
7594 #endif
7595
7596 int
7597 main ()
7598 {
7599 static struct ifreq ac_aggr;
7600 if (ac_aggr.ifr_hwaddr)
7601 return 0;
7602 ;
7603 return 0;
7604 }
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>conftest.er1
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -z "$ac_c_werror_flag"
7616 || test ! -s conftest.err'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; } &&
7622 { ac_try='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h. */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 $ac_includes_default
7640 #if HAVE_SYS_SOCKET_H
7641 #include <sys/socket.h>
7642 #endif
7643 #if HAVE_NET_IF_H
7644 #include <net/if.h>
7645 #endif
7646
7647 int
7648 main ()
7649 {
7650 static struct ifreq ac_aggr;
7651 if (sizeof ac_aggr.ifr_hwaddr)
7652 return 0;
7653 ;
7654 return 0;
7655 }
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7659 (eval $ac_compile) 2>conftest.er1
7660 ac_status=$?
7661 grep -v '^ *+' conftest.er1 >conftest.err
7662 rm -f conftest.er1
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -z "$ac_c_werror_flag"
7667 || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try='test -s conftest.$ac_objext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 (eval $ac_try) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7685 fi
7686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7687 fi
7688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7689 fi
7690 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7691 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7692 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7693
7694 cat >>confdefs.h <<_ACEOF
7695 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7696 _ACEOF
7697
7698
7699 fi
7700 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7701 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7702 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 $ac_includes_default
7712 #if HAVE_SYS_SOCKET_H
7713 #include <sys/socket.h>
7714 #endif
7715 #if HAVE_NET_IF_H
7716 #include <net/if.h>
7717 #endif
7718
7719 int
7720 main ()
7721 {
7722 static struct ifreq ac_aggr;
7723 if (ac_aggr.ifr_netmask)
7724 return 0;
7725 ;
7726 return 0;
7727 }
7728 _ACEOF
7729 rm -f conftest.$ac_objext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7731 (eval $ac_compile) 2>conftest.er1
7732 ac_status=$?
7733 grep -v '^ *+' conftest.er1 >conftest.err
7734 rm -f conftest.er1
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -z "$ac_c_werror_flag"
7739 || test ! -s conftest.err'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; } &&
7745 { ac_try='test -s conftest.$ac_objext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 (eval $ac_try) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751 ac_cv_member_struct_ifreq_ifr_netmask=yes
7752 else
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h. */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7762 $ac_includes_default
7763 #if HAVE_SYS_SOCKET_H
7764 #include <sys/socket.h>
7765 #endif
7766 #if HAVE_NET_IF_H
7767 #include <net/if.h>
7768 #endif
7769
7770 int
7771 main ()
7772 {
7773 static struct ifreq ac_aggr;
7774 if (sizeof ac_aggr.ifr_netmask)
7775 return 0;
7776 ;
7777 return 0;
7778 }
7779 _ACEOF
7780 rm -f conftest.$ac_objext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782 (eval $ac_compile) 2>conftest.er1
7783 ac_status=$?
7784 grep -v '^ *+' conftest.er1 >conftest.err
7785 rm -f conftest.er1
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -z "$ac_c_werror_flag"
7790 || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_member_struct_ifreq_ifr_netmask=yes
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7806
7807 ac_cv_member_struct_ifreq_ifr_netmask=no
7808 fi
7809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7810 fi
7811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7812 fi
7813 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7814 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7815 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7816
7817 cat >>confdefs.h <<_ACEOF
7818 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7819 _ACEOF
7820
7821
7822 fi
7823 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7824 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7825 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 $ac_includes_default
7835 #if HAVE_SYS_SOCKET_H
7836 #include <sys/socket.h>
7837 #endif
7838 #if HAVE_NET_IF_H
7839 #include <net/if.h>
7840 #endif
7841
7842 int
7843 main ()
7844 {
7845 static struct ifreq ac_aggr;
7846 if (ac_aggr.ifr_broadaddr)
7847 return 0;
7848 ;
7849 return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext
7853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7854 (eval $ac_compile) 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -z "$ac_c_werror_flag"
7862 || test ! -s conftest.err'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; } &&
7868 { ac_try='test -s conftest.$ac_objext'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 (eval $ac_try) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7875 else
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 $ac_includes_default
7886 #if HAVE_SYS_SOCKET_H
7887 #include <sys/socket.h>
7888 #endif
7889 #if HAVE_NET_IF_H
7890 #include <net/if.h>
7891 #endif
7892
7893 int
7894 main ()
7895 {
7896 static struct ifreq ac_aggr;
7897 if (sizeof ac_aggr.ifr_broadaddr)
7898 return 0;
7899 ;
7900 return 0;
7901 }
7902 _ACEOF
7903 rm -f conftest.$ac_objext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7905 (eval $ac_compile) 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try='test -z "$ac_c_werror_flag"
7913 || test ! -s conftest.err'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; } &&
7919 { ac_try='test -s conftest.$ac_objext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 (eval $ac_try) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7929
7930 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7931 fi
7932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7933 fi
7934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7935 fi
7936 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7937 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7938 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7939
7940 cat >>confdefs.h <<_ACEOF
7941 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7942 _ACEOF
7943
7944
7945 fi
7946 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7947 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7948 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951 cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h. */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7958 #if HAVE_SYS_SOCKET_H
7959 #include <sys/socket.h>
7960 #endif
7961 #if HAVE_NET_IF_H
7962 #include <net/if.h>
7963 #endif
7964
7965 int
7966 main ()
7967 {
7968 static struct ifreq ac_aggr;
7969 if (ac_aggr.ifr_addr)
7970 return 0;
7971 ;
7972 return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try='test -z "$ac_c_werror_flag"
7985 || test ! -s conftest.err'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try='test -s conftest.$ac_objext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_member_struct_ifreq_ifr_addr=yes
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8001
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 $ac_includes_default
8009 #if HAVE_SYS_SOCKET_H
8010 #include <sys/socket.h>
8011 #endif
8012 #if HAVE_NET_IF_H
8013 #include <net/if.h>
8014 #endif
8015
8016 int
8017 main ()
8018 {
8019 static struct ifreq ac_aggr;
8020 if (sizeof ac_aggr.ifr_addr)
8021 return 0;
8022 ;
8023 return 0;
8024 }
8025 _ACEOF
8026 rm -f conftest.$ac_objext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8028 (eval $ac_compile) 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag"
8036 || test ! -s conftest.err'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try='test -s conftest.$ac_objext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_member_struct_ifreq_ifr_addr=yes
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 ac_cv_member_struct_ifreq_ifr_addr=no
8054 fi
8055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8056 fi
8057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8058 fi
8059 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8060 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8061 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8062
8063 cat >>confdefs.h <<_ACEOF
8064 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8065 _ACEOF
8066
8067
8068 fi
8069
8070
8071
8072 echo "$as_me:$LINENO: checking for function prototypes" >&5
8073 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8074 if test "$ac_cv_prog_cc_stdc" != no; then
8075 echo "$as_me:$LINENO: result: yes" >&5
8076 echo "${ECHO_T}yes" >&6
8077
8078 cat >>confdefs.h <<\_ACEOF
8079 #define PROTOTYPES 1
8080 _ACEOF
8081
8082
8083 cat >>confdefs.h <<\_ACEOF
8084 #define __PROTOTYPES 1
8085 _ACEOF
8086
8087 else
8088 echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8090 fi
8091
8092 echo "$as_me:$LINENO: checking for working volatile" >&5
8093 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8094 if test "${ac_cv_c_volatile+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103
8104 int
8105 main ()
8106 {
8107
8108 volatile int x;
8109 int * volatile y;
8110 ;
8111 return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116 (eval $ac_compile) 2>conftest.er1
8117 ac_status=$?
8118 grep -v '^ *+' conftest.er1 >conftest.err
8119 rm -f conftest.er1
8120 cat conftest.err >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } &&
8123 { ac_try='test -z "$ac_c_werror_flag"
8124 || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_cv_c_volatile=yes
8137 else
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8140
8141 ac_cv_c_volatile=no
8142 fi
8143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 fi
8145 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8146 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8147 if test $ac_cv_c_volatile = no; then
8148
8149 cat >>confdefs.h <<\_ACEOF
8150 #define volatile
8151 _ACEOF
8152
8153 fi
8154
8155 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8156 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8157 if test "${ac_cv_c_const+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166
8167 int
8168 main ()
8169 {
8170 /* FIXME: Include the comments suggested by Paul. */
8171 #ifndef __cplusplus
8172 /* Ultrix mips cc rejects this. */
8173 typedef int charset[2];
8174 const charset x;
8175 /* SunOS 4.1.1 cc rejects this. */
8176 char const *const *ccp;
8177 char **p;
8178 /* NEC SVR4.0.2 mips cc rejects this. */
8179 struct point {int x, y;};
8180 static struct point const zero = {0,0};
8181 /* AIX XL C 1.02.0.0 rejects this.
8182 It does not let you subtract one const X* pointer from another in
8183 an arm of an if-expression whose if-part is not a constant
8184 expression */
8185 const char *g = "string";
8186 ccp = &g + (g ? g-g : 0);
8187 /* HPUX 7.0 cc rejects these. */
8188 ++ccp;
8189 p = (char**) ccp;
8190 ccp = (char const *const *) p;
8191 { /* SCO 3.2v4 cc rejects this. */
8192 char *t;
8193 char const *s = 0 ? (char *) 0 : (char const *) 0;
8194
8195 *t++ = 0;
8196 }
8197 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8198 int x[] = {25, 17};
8199 const int *foo = &x[0];
8200 ++foo;
8201 }
8202 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8203 typedef const int *iptr;
8204 iptr p = 0;
8205 ++p;
8206 }
8207 { /* AIX XL C 1.02.0.0 rejects this saying
8208 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8209 struct s { int j; const int *ap[3]; };
8210 struct s *b; b->j = 5;
8211 }
8212 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8213 const int foo = 10;
8214 }
8215 #endif
8216
8217 ;
8218 return 0;
8219 }
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223 (eval $ac_compile) 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest.$ac_objext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_c_const=yes
8244 else
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 ac_cv_c_const=no
8249 fi
8250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8251 fi
8252 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8253 echo "${ECHO_T}$ac_cv_c_const" >&6
8254 if test $ac_cv_c_const = no; then
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define const
8258 _ACEOF
8259
8260 fi
8261
8262 echo "$as_me:$LINENO: checking for void * support" >&5
8263 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8264 if test "${emacs_cv_void_star+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h. */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273
8274 int
8275 main ()
8276 {
8277 void * foo;
8278 ;
8279 return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8284 (eval $ac_compile) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 emacs_cv_void_star=yes
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 emacs_cv_void_star=no
8310 fi
8311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8312 fi
8313 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8314 echo "${ECHO_T}$emacs_cv_void_star" >&6
8315 if test $emacs_cv_void_star = yes; then
8316 cat >>confdefs.h <<\_ACEOF
8317 #define POINTER_TYPE void
8318 _ACEOF
8319
8320 else
8321 cat >>confdefs.h <<\_ACEOF
8322 #define POINTER_TYPE char
8323 _ACEOF
8324
8325 fi
8326
8327
8328
8329
8330
8331 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8332 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8333 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8334 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337 cat >conftest.make <<\_ACEOF
8338 all:
8339 @echo 'ac_maketemp="$(MAKE)"'
8340 _ACEOF
8341 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8342 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8343 if test -n "$ac_maketemp"; then
8344 eval ac_cv_prog_make_${ac_make}_set=yes
8345 else
8346 eval ac_cv_prog_make_${ac_make}_set=no
8347 fi
8348 rm -f conftest.make
8349 fi
8350 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8351 echo "$as_me:$LINENO: result: yes" >&5
8352 echo "${ECHO_T}yes" >&6
8353 SET_MAKE=
8354 else
8355 echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8357 SET_MAKE="MAKE=${MAKE-make}"
8358 fi
8359
8360
8361 echo "$as_me:$LINENO: checking for long file names" >&5
8362 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8363 if test "${ac_cv_sys_long_file_names+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366 ac_cv_sys_long_file_names=yes
8367 # Test for long file names in all the places we know might matter:
8368 # . the current directory, where building will happen
8369 # $prefix/lib where we will be installing things
8370 # $exec_prefix/lib likewise
8371 # eval it to expand exec_prefix.
8372 # $TMPDIR if set, where it might want to write temporary files
8373 # if $TMPDIR is not set:
8374 # /tmp where it might want to write temporary files
8375 # /var/tmp likewise
8376 # /usr/tmp likewise
8377 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8378 ac_tmpdirs=$TMPDIR
8379 else
8380 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8381 fi
8382 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8383 test -d $ac_dir || continue
8384 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8385 ac_xdir=$ac_dir/cf$$
8386 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8387 ac_tf1=$ac_xdir/conftest9012345
8388 ac_tf2=$ac_xdir/conftest9012346
8389 (echo 1 >$ac_tf1) 2>/dev/null
8390 (echo 2 >$ac_tf2) 2>/dev/null
8391 ac_val=`cat $ac_tf1 2>/dev/null`
8392 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8393 ac_cv_sys_long_file_names=no
8394 rm -rf $ac_xdir 2>/dev/null
8395 break
8396 fi
8397 rm -rf $ac_xdir 2>/dev/null
8398 done
8399 fi
8400 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8401 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8402 if test $ac_cv_sys_long_file_names = yes; then
8403
8404 cat >>confdefs.h <<\_ACEOF
8405 #define HAVE_LONG_FILE_NAMES 1
8406 _ACEOF
8407
8408 fi
8409
8410
8411 #### Choose a window system.
8412
8413 echo "$as_me:$LINENO: checking for X" >&5
8414 echo $ECHO_N "checking for X... $ECHO_C" >&6
8415
8416
8417 # Check whether --with-x or --without-x was given.
8418 if test "${with_x+set}" = set; then
8419 withval="$with_x"
8420
8421 fi;
8422 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8423 if test "x$with_x" = xno; then
8424 # The user explicitly disabled X.
8425 have_x=disabled
8426 else
8427 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8428 # Both variables are already set.
8429 have_x=yes
8430 else
8431 if test "${ac_cv_have_x+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434 # One or both of the vars are not set, and there is no cached value.
8435 ac_x_includes=no ac_x_libraries=no
8436 rm -fr conftest.dir
8437 if mkdir conftest.dir; then
8438 cd conftest.dir
8439 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8440 cat >Imakefile <<'_ACEOF'
8441 acfindx:
8442 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8443 _ACEOF
8444 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8446 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8447 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8448 for ac_extension in a so sl; do
8449 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8450 test -f $ac_im_libdir/libX11.$ac_extension; then
8451 ac_im_usrlibdir=$ac_im_libdir; break
8452 fi
8453 done
8454 # Screen out bogus values from the imake configuration. They are
8455 # bogus both because they are the default anyway, and because
8456 # using them would break gcc on systems where it needs fixed includes.
8457 case $ac_im_incroot in
8458 /usr/include) ;;
8459 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8460 esac
8461 case $ac_im_usrlibdir in
8462 /usr/lib | /lib) ;;
8463 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8464 esac
8465 fi
8466 cd ..
8467 rm -fr conftest.dir
8468 fi
8469
8470 # Standard set of common directories for X headers.
8471 # Check X11 before X11Rn because it is often a symlink to the current release.
8472 ac_x_header_dirs='
8473 /usr/X11/include
8474 /usr/X11R6/include
8475 /usr/X11R5/include
8476 /usr/X11R4/include
8477
8478 /usr/include/X11
8479 /usr/include/X11R6
8480 /usr/include/X11R5
8481 /usr/include/X11R4
8482
8483 /usr/local/X11/include
8484 /usr/local/X11R6/include
8485 /usr/local/X11R5/include
8486 /usr/local/X11R4/include
8487
8488 /usr/local/include/X11
8489 /usr/local/include/X11R6
8490 /usr/local/include/X11R5
8491 /usr/local/include/X11R4
8492
8493 /usr/X386/include
8494 /usr/x386/include
8495 /usr/XFree86/include/X11
8496
8497 /usr/include
8498 /usr/local/include
8499 /usr/unsupported/include
8500 /usr/athena/include
8501 /usr/local/x11r5/include
8502 /usr/lpp/Xamples/include
8503
8504 /usr/openwin/include
8505 /usr/openwin/share/include'
8506
8507 if test "$ac_x_includes" = no; then
8508 # Guess where to find include files, by looking for Intrinsic.h.
8509 # First, try using that file with no special directory specified.
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h. */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 #include <X11/Intrinsic.h>
8517 _ACEOF
8518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } >/dev/null; then
8526 if test -s conftest.err; then
8527 ac_cpp_err=$ac_c_preproc_warn_flag
8528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8529 else
8530 ac_cpp_err=
8531 fi
8532 else
8533 ac_cpp_err=yes
8534 fi
8535 if test -z "$ac_cpp_err"; then
8536 # We can compile using X headers with no special include directory.
8537 ac_x_includes=
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542 for ac_dir in $ac_x_header_dirs; do
8543 if test -r "$ac_dir/X11/Intrinsic.h"; then
8544 ac_x_includes=$ac_dir
8545 break
8546 fi
8547 done
8548 fi
8549 rm -f conftest.err conftest.$ac_ext
8550 fi # $ac_x_includes = no
8551
8552 if test "$ac_x_libraries" = no; then
8553 # Check for the libraries.
8554 # See if we find them without any special options.
8555 # Don't add to $LIBS permanently.
8556 ac_save_LIBS=$LIBS
8557 LIBS="-lXt $LIBS"
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 #include <X11/Intrinsic.h>
8565 int
8566 main ()
8567 {
8568 XtMalloc (0)
8569 ;
8570 return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8575 (eval $ac_link) 2>conftest.er1
8576 ac_status=$?
8577 grep -v '^ *+' conftest.er1 >conftest.err
8578 rm -f conftest.er1
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try='test -z "$ac_c_werror_flag"
8583 || test ! -s conftest.err'
8584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 (eval $ac_try) 2>&5
8586 ac_status=$?
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; } &&
8589 { ac_try='test -s conftest$ac_exeext'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; }; then
8595 LIBS=$ac_save_LIBS
8596 # We can link X programs with no special library path.
8597 ac_x_libraries=
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8601
8602 LIBS=$ac_save_LIBS
8603 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8604 do
8605 # Don't even attempt the hair of trying to link an X program!
8606 for ac_extension in a so sl; do
8607 if test -r $ac_dir/libXt.$ac_extension; then
8608 ac_x_libraries=$ac_dir
8609 break 2
8610 fi
8611 done
8612 done
8613 fi
8614 rm -f conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 fi # $ac_x_libraries = no
8617
8618 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8619 # Didn't find X anywhere. Cache the known absence of X.
8620 ac_cv_have_x="have_x=no"
8621 else
8622 # Record where we found X for the cache.
8623 ac_cv_have_x="have_x=yes \
8624 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8625 fi
8626 fi
8627
8628 fi
8629 eval "$ac_cv_have_x"
8630 fi # $with_x != no
8631
8632 if test "$have_x" != yes; then
8633 echo "$as_me:$LINENO: result: $have_x" >&5
8634 echo "${ECHO_T}$have_x" >&6
8635 no_x=yes
8636 else
8637 # If each of the values was on the command line, it overrides each guess.
8638 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8639 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8640 # Update the cache value to reflect the command line values.
8641 ac_cv_have_x="have_x=yes \
8642 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8643 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8644 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8645 fi
8646
8647 if test "$no_x" = yes; then
8648 window_system=none
8649 else
8650 window_system=x11
8651 fi
8652
8653 if test "${x_libraries}" != NONE; then
8654 if test -n "${x_libraries}"; then
8655 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8656 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8657 fi
8658 x_default_search_path=""
8659 x_search_path=${x_libraries}
8660 if test -z "${x_search_path}"; then
8661 x_search_path=/usr/lib
8662 fi
8663 for x_library in `echo ${x_search_path}: | \
8664 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8665 x_search_path="\
8666 ${x_library}/X11/%L/%T/%N%C%S:\
8667 ${x_library}/X11/%l/%T/%N%C%S:\
8668 ${x_library}/X11/%T/%N%C%S:\
8669 ${x_library}/X11/%L/%T/%N%S:\
8670 ${x_library}/X11/%l/%T/%N%S:\
8671 ${x_library}/X11/%T/%N%S"
8672 if test x"${x_default_search_path}" = x; then
8673 x_default_search_path=${x_search_path}
8674 else
8675 x_default_search_path="${x_search_path}:${x_default_search_path}"
8676 fi
8677 done
8678 fi
8679 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8680 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8681 fi
8682
8683 if test x"${x_includes}" = x; then
8684 bitmapdir=/usr/include/X11/bitmaps
8685 else
8686 # accumulate include directories that have X11 bitmap subdirectories
8687 bmd_acc="dummyval"
8688 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8689 if test -d "${bmd}/X11/bitmaps"; then
8690 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8691 fi
8692 if test -d "${bmd}/bitmaps"; then
8693 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8694 fi
8695 done
8696 if test ${bmd_acc} != "dummyval"; then
8697 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8698 fi
8699 fi
8700
8701 HAVE_CARBON=no
8702 if test "${with_carbon}" != no; then
8703 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8704 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8705 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8706 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 fi
8709 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8710 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8711 else
8712 # Is the header compilable?
8713 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8714 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h. */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8722 #include <Carbon/Carbon.h>
8723 _ACEOF
8724 rm -f conftest.$ac_objext
8725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8726 (eval $ac_compile) 2>conftest.er1
8727 ac_status=$?
8728 grep -v '^ *+' conftest.er1 >conftest.err
8729 rm -f conftest.er1
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -z "$ac_c_werror_flag"
8734 || test ! -s conftest.err'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; } &&
8740 { ac_try='test -s conftest.$ac_objext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 (eval $ac_try) 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_header_compiler=yes
8747 else
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8750
8751 ac_header_compiler=no
8752 fi
8753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8755 echo "${ECHO_T}$ac_header_compiler" >&6
8756
8757 # Is the header present?
8758 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8759 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h. */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8766 #include <Carbon/Carbon.h>
8767 _ACEOF
8768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8770 ac_status=$?
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } >/dev/null; then
8776 if test -s conftest.err; then
8777 ac_cpp_err=$ac_c_preproc_warn_flag
8778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8779 else
8780 ac_cpp_err=
8781 fi
8782 else
8783 ac_cpp_err=yes
8784 fi
8785 if test -z "$ac_cpp_err"; then
8786 ac_header_preproc=yes
8787 else
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 ac_header_preproc=no
8792 fi
8793 rm -f conftest.err conftest.$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8795 echo "${ECHO_T}$ac_header_preproc" >&6
8796
8797 # So? What about this header?
8798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8799 yes:no: )
8800 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8801 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8802 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8803 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8804 ac_header_preproc=yes
8805 ;;
8806 no:yes:* )
8807 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8808 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8810 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8812 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8814 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8816 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8818 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8819 (
8820 cat <<\_ASBOX
8821 ## ------------------------------------------ ##
8822 ## Report this to the AC_PACKAGE_NAME lists. ##
8823 ## ------------------------------------------ ##
8824 _ASBOX
8825 ) |
8826 sed "s/^/$as_me: WARNING: /" >&2
8827 ;;
8828 esac
8829 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8830 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8831 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8835 fi
8836 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8837 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8838
8839 fi
8840 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8841 HAVE_CARBON=yes
8842 fi
8843
8844
8845 fi
8846 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8847 if test "${with_carbon+set}" != set \
8848 && test "${carbon_appdir_x+set}" != set; then
8849 for var in with_x with_x_toolkit with_gtk with_xim \
8850 with_xpm with_jpeg with_tiff with_gif with_png; do
8851 if eval test \"\${$var+set}\" = set; then
8852 HAVE_CARBON=no
8853 break
8854 fi
8855 done
8856 fi
8857 fi
8858 if test "${HAVE_CARBON}" = yes; then
8859 window_system=mac
8860 fi
8861
8862 case "${window_system}" in
8863 x11 )
8864 HAVE_X_WINDOWS=yes
8865 HAVE_X11=yes
8866 case "${with_x_toolkit}" in
8867 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8868 motif ) USE_X_TOOLKIT=MOTIF ;;
8869 gtk ) with_gtk=yes
8870 USE_X_TOOLKIT=none ;;
8871 no ) USE_X_TOOLKIT=none ;;
8872 * ) USE_X_TOOLKIT=maybe ;;
8873 esac
8874 ;;
8875 mac | none )
8876 HAVE_X_WINDOWS=no
8877 HAVE_X11=no
8878 USE_X_TOOLKIT=none
8879 ;;
8880 esac
8881
8882 ### If we're using X11, we should use the X menu package.
8883 HAVE_MENUS=no
8884 case ${HAVE_X11} in
8885 yes ) HAVE_MENUS=yes ;;
8886 esac
8887
8888 if test "${opsys}" = "hpux9"; then
8889 case "${x_libraries}" in
8890 *X11R4* )
8891 opsysfile="s/hpux9-x11r4.h"
8892 ;;
8893 esac
8894 fi
8895
8896 if test "${opsys}" = "hpux9shr"; then
8897 case "${x_libraries}" in
8898 *X11R4* )
8899 opsysfile="s/hpux9shxr4.h"
8900 ;;
8901 esac
8902 fi
8903
8904 ### Compute the unexec source name from the object name.
8905 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8906
8907 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8908 # Assume not, until told otherwise.
8909 GNU_MALLOC=yes
8910 doug_lea_malloc=yes
8911 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8912 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8913 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8924 #define malloc_get_state innocuous_malloc_get_state
8925
8926 /* System header to define __stub macros and hopefully few prototypes,
8927 which can conflict with char malloc_get_state (); below.
8928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8929 <limits.h> exists even on freestanding compilers. */
8930
8931 #ifdef __STDC__
8932 # include <limits.h>
8933 #else
8934 # include <assert.h>
8935 #endif
8936
8937 #undef malloc_get_state
8938
8939 /* Override any gcc2 internal prototype to avoid an error. */
8940 #ifdef __cplusplus
8941 extern "C"
8942 {
8943 #endif
8944 /* We use char because int might match the return type of a gcc2
8945 builtin and then its argument prototype would still apply. */
8946 char malloc_get_state ();
8947 /* The GNU C library defines this for functions which it implements
8948 to always fail with ENOSYS. Some functions are actually named
8949 something starting with __ and the normal name is an alias. */
8950 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8951 choke me
8952 #else
8953 char (*f) () = malloc_get_state;
8954 #endif
8955 #ifdef __cplusplus
8956 }
8957 #endif
8958
8959 int
8960 main ()
8961 {
8962 return f != malloc_get_state;
8963 ;
8964 return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969 (eval $ac_link) 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag"
8977 || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_func_malloc_get_state=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 ac_cv_func_malloc_get_state=no
8995 fi
8996 rm -f conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 fi
8999 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9000 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
9001 if test $ac_cv_func_malloc_get_state = yes; then
9002 :
9003 else
9004 doug_lea_malloc=no
9005 fi
9006
9007 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9008 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
9009 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012 cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9020 #define malloc_set_state innocuous_malloc_set_state
9021
9022 /* System header to define __stub macros and hopefully few prototypes,
9023 which can conflict with char malloc_set_state (); below.
9024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9025 <limits.h> exists even on freestanding compilers. */
9026
9027 #ifdef __STDC__
9028 # include <limits.h>
9029 #else
9030 # include <assert.h>
9031 #endif
9032
9033 #undef malloc_set_state
9034
9035 /* Override any gcc2 internal prototype to avoid an error. */
9036 #ifdef __cplusplus
9037 extern "C"
9038 {
9039 #endif
9040 /* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042 char malloc_set_state ();
9043 /* The GNU C library defines this for functions which it implements
9044 to always fail with ENOSYS. Some functions are actually named
9045 something starting with __ and the normal name is an alias. */
9046 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9047 choke me
9048 #else
9049 char (*f) () = malloc_set_state;
9050 #endif
9051 #ifdef __cplusplus
9052 }
9053 #endif
9054
9055 int
9056 main ()
9057 {
9058 return f != malloc_set_state;
9059 ;
9060 return 0;
9061 }
9062 _ACEOF
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest$ac_exeext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_func_malloc_set_state=yes
9086 else
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9089
9090 ac_cv_func_malloc_set_state=no
9091 fi
9092 rm -f conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094 fi
9095 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9096 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9097 if test $ac_cv_func_malloc_set_state = yes; then
9098 :
9099 else
9100 doug_lea_malloc=no
9101 fi
9102
9103 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9104 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9105 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 extern void (* __after_morecore_hook)();
9115 int
9116 main ()
9117 {
9118 __after_morecore_hook = 0
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 rm -f conftest.$ac_objext conftest$ac_exeext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_c_werror_flag"
9133 || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 (eval $ac_try) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 emacs_cv_var___after_morecore_hook=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 emacs_cv_var___after_morecore_hook=no
9151 fi
9152 rm -f conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 fi
9155 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9156 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9157 if test $emacs_cv_var___after_morecore_hook = no; then
9158 doug_lea_malloc=no
9159 fi
9160 if test "${system_malloc}" = "yes"; then
9161 GNU_MALLOC=no
9162 GNU_MALLOC_reason="
9163 (The GNU allocators don't work with this system configuration.)"
9164 fi
9165 if test "$doug_lea_malloc" = "yes" ; then
9166 if test "$GNU_MALLOC" = yes ; then
9167 GNU_MALLOC_reason="
9168 (Using Doug Lea's new malloc from the GNU C Library.)"
9169 fi
9170
9171 cat >>confdefs.h <<\_ACEOF
9172 #define DOUG_LEA_MALLOC 1
9173 _ACEOF
9174
9175 fi
9176
9177 if test x"${REL_ALLOC}" = x; then
9178 REL_ALLOC=${GNU_MALLOC}
9179 fi
9180
9181
9182
9183
9184 for ac_header in stdlib.h unistd.h
9185 do
9186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9188 echo "$as_me:$LINENO: checking for $ac_header" >&5
9189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 fi
9193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9195 else
9196 # Is the header compilable?
9197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9206 #include <$ac_header>
9207 _ACEOF
9208 rm -f conftest.$ac_objext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9210 (eval $ac_compile) 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag"
9218 || test ! -s conftest.err'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; } &&
9224 { ac_try='test -s conftest.$ac_objext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 ac_header_compiler=yes
9231 else
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9234
9235 ac_header_compiler=no
9236 fi
9237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9239 echo "${ECHO_T}$ac_header_compiler" >&6
9240
9241 # Is the header present?
9242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9244 cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h. */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 #include <$ac_header>
9251 _ACEOF
9252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } >/dev/null; then
9260 if test -s conftest.err; then
9261 ac_cpp_err=$ac_c_preproc_warn_flag
9262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9263 else
9264 ac_cpp_err=
9265 fi
9266 else
9267 ac_cpp_err=yes
9268 fi
9269 if test -z "$ac_cpp_err"; then
9270 ac_header_preproc=yes
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275 ac_header_preproc=no
9276 fi
9277 rm -f conftest.err conftest.$ac_ext
9278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9279 echo "${ECHO_T}$ac_header_preproc" >&6
9280
9281 # So? What about this header?
9282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9283 yes:no: )
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9288 ac_header_preproc=yes
9289 ;;
9290 no:yes:* )
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9303 (
9304 cat <<\_ASBOX
9305 ## ------------------------------------------ ##
9306 ## Report this to the AC_PACKAGE_NAME lists. ##
9307 ## ------------------------------------------ ##
9308 _ASBOX
9309 ) |
9310 sed "s/^/$as_me: WARNING: /" >&2
9311 ;;
9312 esac
9313 echo "$as_me:$LINENO: checking for $ac_header" >&5
9314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318 eval "$as_ac_Header=\$ac_header_preproc"
9319 fi
9320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9322
9323 fi
9324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9325 cat >>confdefs.h <<_ACEOF
9326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9327 _ACEOF
9328
9329 fi
9330
9331 done
9332
9333
9334 for ac_func in getpagesize
9335 do
9336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9337 echo "$as_me:$LINENO: checking for $ac_func" >&5
9338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9339 if eval "test \"\${$as_ac_var+set}\" = set"; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9350 #define $ac_func innocuous_$ac_func
9351
9352 /* System header to define __stub macros and hopefully few prototypes,
9353 which can conflict with char $ac_func (); below.
9354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9355 <limits.h> exists even on freestanding compilers. */
9356
9357 #ifdef __STDC__
9358 # include <limits.h>
9359 #else
9360 # include <assert.h>
9361 #endif
9362
9363 #undef $ac_func
9364
9365 /* Override any gcc2 internal prototype to avoid an error. */
9366 #ifdef __cplusplus
9367 extern "C"
9368 {
9369 #endif
9370 /* We use char because int might match the return type of a gcc2
9371 builtin and then its argument prototype would still apply. */
9372 char $ac_func ();
9373 /* The GNU C library defines this for functions which it implements
9374 to always fail with ENOSYS. Some functions are actually named
9375 something starting with __ and the normal name is an alias. */
9376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9377 choke me
9378 #else
9379 char (*f) () = $ac_func;
9380 #endif
9381 #ifdef __cplusplus
9382 }
9383 #endif
9384
9385 int
9386 main ()
9387 {
9388 return f != $ac_func;
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try='test -z "$ac_c_werror_flag"
9403 || test ! -s conftest.err'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; } &&
9409 { ac_try='test -s conftest$ac_exeext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 (eval $ac_try) 2>&5
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 eval "$as_ac_var=yes"
9416 else
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420 eval "$as_ac_var=no"
9421 fi
9422 rm -f conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext conftest.$ac_ext
9424 fi
9425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9427 if test `eval echo '${'$as_ac_var'}'` = yes; then
9428 cat >>confdefs.h <<_ACEOF
9429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9430 _ACEOF
9431
9432 fi
9433 done
9434
9435 echo "$as_me:$LINENO: checking for working mmap" >&5
9436 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9437 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440 if test "$cross_compiling" = yes; then
9441 ac_cv_func_mmap_fixed_mapped=no
9442 else
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9450 /* malloc might have been renamed as rpl_malloc. */
9451 #undef malloc
9452
9453 /* Thanks to Mike Haertel and Jim Avera for this test.
9454 Here is a matrix of mmap possibilities:
9455 mmap private not fixed
9456 mmap private fixed at somewhere currently unmapped
9457 mmap private fixed at somewhere already mapped
9458 mmap shared not fixed
9459 mmap shared fixed at somewhere currently unmapped
9460 mmap shared fixed at somewhere already mapped
9461 For private mappings, we should verify that changes cannot be read()
9462 back from the file, nor mmap's back from the file at a different
9463 address. (There have been systems where private was not correctly
9464 implemented like the infamous i386 svr4.0, and systems where the
9465 VM page cache was not coherent with the file system buffer cache
9466 like early versions of FreeBSD and possibly contemporary NetBSD.)
9467 For shared mappings, we should conversely verify that changes get
9468 propagated back to all the places they're supposed to be.
9469
9470 Grep wants private fixed already mapped.
9471 The main things grep needs to know about mmap are:
9472 * does it exist and is it safe to write into the mmap'd area
9473 * how to use it (BSD variants) */
9474
9475 #include <fcntl.h>
9476 #include <sys/mman.h>
9477
9478 #if !STDC_HEADERS && !HAVE_STDLIB_H
9479 char *malloc ();
9480 #endif
9481
9482 /* This mess was copied from the GNU getpagesize.h. */
9483 #if !HAVE_GETPAGESIZE
9484 /* Assume that all systems that can run configure have sys/param.h. */
9485 # if !HAVE_SYS_PARAM_H
9486 # define HAVE_SYS_PARAM_H 1
9487 # endif
9488
9489 # ifdef _SC_PAGESIZE
9490 # define getpagesize() sysconf(_SC_PAGESIZE)
9491 # else /* no _SC_PAGESIZE */
9492 # if HAVE_SYS_PARAM_H
9493 # include <sys/param.h>
9494 # ifdef EXEC_PAGESIZE
9495 # define getpagesize() EXEC_PAGESIZE
9496 # else /* no EXEC_PAGESIZE */
9497 # ifdef NBPG
9498 # define getpagesize() NBPG * CLSIZE
9499 # ifndef CLSIZE
9500 # define CLSIZE 1
9501 # endif /* no CLSIZE */
9502 # else /* no NBPG */
9503 # ifdef NBPC
9504 # define getpagesize() NBPC
9505 # else /* no NBPC */
9506 # ifdef PAGESIZE
9507 # define getpagesize() PAGESIZE
9508 # endif /* PAGESIZE */
9509 # endif /* no NBPC */
9510 # endif /* no NBPG */
9511 # endif /* no EXEC_PAGESIZE */
9512 # else /* no HAVE_SYS_PARAM_H */
9513 # define getpagesize() 8192 /* punt totally */
9514 # endif /* no HAVE_SYS_PARAM_H */
9515 # endif /* no _SC_PAGESIZE */
9516
9517 #endif /* no HAVE_GETPAGESIZE */
9518
9519 int
9520 main ()
9521 {
9522 char *data, *data2, *data3;
9523 int i, pagesize;
9524 int fd;
9525
9526 pagesize = getpagesize ();
9527
9528 /* First, make a file with some known garbage in it. */
9529 data = (char *) malloc (pagesize);
9530 if (!data)
9531 exit (1);
9532 for (i = 0; i < pagesize; ++i)
9533 *(data + i) = rand ();
9534 umask (0);
9535 fd = creat ("conftest.mmap", 0600);
9536 if (fd < 0)
9537 exit (1);
9538 if (write (fd, data, pagesize) != pagesize)
9539 exit (1);
9540 close (fd);
9541
9542 /* Next, try to mmap the file at a fixed address which already has
9543 something else allocated at it. If we can, also make sure that
9544 we see the same garbage. */
9545 fd = open ("conftest.mmap", O_RDWR);
9546 if (fd < 0)
9547 exit (1);
9548 data2 = (char *) malloc (2 * pagesize);
9549 if (!data2)
9550 exit (1);
9551 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9552 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9553 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9554 exit (1);
9555 for (i = 0; i < pagesize; ++i)
9556 if (*(data + i) != *(data2 + i))
9557 exit (1);
9558
9559 /* Finally, make sure that changes to the mapped area do not
9560 percolate back to the file as seen by read(). (This is a bug on
9561 some variants of i386 svr4.0.) */
9562 for (i = 0; i < pagesize; ++i)
9563 *(data2 + i) = *(data2 + i) + 1;
9564 data3 = (char *) malloc (pagesize);
9565 if (!data3)
9566 exit (1);
9567 if (read (fd, data3, pagesize) != pagesize)
9568 exit (1);
9569 for (i = 0; i < pagesize; ++i)
9570 if (*(data + i) != *(data3 + i))
9571 exit (1);
9572 close (fd);
9573 exit (0);
9574 }
9575 _ACEOF
9576 rm -f conftest$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 ac_cv_func_mmap_fixed_mapped=yes
9588 else
9589 echo "$as_me: program exited with status $ac_status" >&5
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593 ( exit $ac_status )
9594 ac_cv_func_mmap_fixed_mapped=no
9595 fi
9596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9597 fi
9598 fi
9599 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9600 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9601 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9602
9603 cat >>confdefs.h <<\_ACEOF
9604 #define HAVE_MMAP 1
9605 _ACEOF
9606
9607 fi
9608 rm -f conftest.mmap
9609
9610 if test $use_mmap_for_buffers = yes; then
9611 REL_ALLOC=no
9612 fi
9613
9614 LIBS="$libsrc_libs $LIBS"
9615
9616
9617 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9618 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9619 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622 ac_check_lib_save_LIBS=$LIBS
9623 LIBS="-ldnet $LIBS"
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h. */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630
9631 /* Override any gcc2 internal prototype to avoid an error. */
9632 #ifdef __cplusplus
9633 extern "C"
9634 #endif
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9637 char dnet_ntoa ();
9638 int
9639 main ()
9640 {
9641 dnet_ntoa ();
9642 ;
9643 return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag"
9656 || test ! -s conftest.err'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; } &&
9662 { ac_try='test -s conftest$ac_exeext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_lib_dnet_dnet_ntoa=yes
9669 else
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 ac_cv_lib_dnet_dnet_ntoa=no
9674 fi
9675 rm -f conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_lib_save_LIBS
9678 fi
9679 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9680 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9681 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9682 cat >>confdefs.h <<_ACEOF
9683 #define HAVE_LIBDNET 1
9684 _ACEOF
9685
9686 LIBS="-ldnet $LIBS"
9687
9688 fi
9689
9690
9691 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9692 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9693 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696 ac_check_lib_save_LIBS=$LIBS
9697 LIBS="-lXbsd $LIBS"
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704
9705
9706 int
9707 main ()
9708 {
9709 main ();
9710 ;
9711 return 0;
9712 }
9713 _ACEOF
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>conftest.er1
9717 ac_status=$?
9718 grep -v '^ *+' conftest.er1 >conftest.err
9719 rm -f conftest.er1
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try='test -z "$ac_c_werror_flag"
9724 || test ! -s conftest.err'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 (eval $ac_try) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; } &&
9730 { ac_try='test -s conftest$ac_exeext'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736 ac_cv_lib_Xbsd_main=yes
9737 else
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9740
9741 ac_cv_lib_Xbsd_main=no
9742 fi
9743 rm -f conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9746 fi
9747 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9748 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9749 if test $ac_cv_lib_Xbsd_main = yes; then
9750 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9751 fi
9752
9753
9754
9755 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9756 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9757 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760 ac_check_lib_save_LIBS=$LIBS
9761 LIBS="-lpthreads $LIBS"
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h. */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768
9769 /* Override any gcc2 internal prototype to avoid an error. */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 /* We use char because int might match the return type of a gcc2
9774 builtin and then its argument prototype would still apply. */
9775 char cma_open ();
9776 int
9777 main ()
9778 {
9779 cma_open ();
9780 ;
9781 return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786 (eval $ac_link) 2>conftest.er1
9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -z "$ac_c_werror_flag"
9794 || test ! -s conftest.err'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 (eval $ac_try) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_lib_pthreads_cma_open=yes
9807 else
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811 ac_cv_lib_pthreads_cma_open=no
9812 fi
9813 rm -f conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815 LIBS=$ac_check_lib_save_LIBS
9816 fi
9817 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9818 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9819 if test $ac_cv_lib_pthreads_cma_open = yes; then
9820 cat >>confdefs.h <<_ACEOF
9821 #define HAVE_LIBPTHREADS 1
9822 _ACEOF
9823
9824 LIBS="-lpthreads $LIBS"
9825
9826 fi
9827
9828
9829 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9830 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9831 if test -d /usr/X386/include; then
9832 HAVE_XFREE386=yes
9833 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9834 else
9835 HAVE_XFREE386=no
9836 fi
9837 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9838 echo "${ECHO_T}$HAVE_XFREE386" >&6
9839
9840
9841 case ${host_os} in
9842 aix*)
9843 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9844 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9845 if test "${gdb_cv_bigtoc+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848
9849 case $GCC in
9850 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9851 *) gdb_cv_bigtoc=-bbigtoc ;;
9852 esac
9853
9854 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9855 cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h. */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861
9862 int
9863 main ()
9864 {
9865 int i;
9866 ;
9867 return 0;
9868 }
9869 _ACEOF
9870 rm -f conftest.$ac_objext conftest$ac_exeext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9872 (eval $ac_link) 2>conftest.er1
9873 ac_status=$?
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag"
9880 || test ! -s conftest.err'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 (eval $ac_try) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 :
9893 else
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 gdb_cv_bigtoc=
9898 fi
9899 rm -f conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
9901
9902 fi
9903 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9904 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9905 ;;
9906 esac
9907
9908 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9909 # used for the tests that follow. We set them back to REAL_CFLAGS and
9910 # REAL_CPPFLAGS later on.
9911
9912 REAL_CPPFLAGS="$CPPFLAGS"
9913
9914 if test "${HAVE_X11}" = "yes"; then
9915 DEFS="$C_SWITCH_X_SITE $DEFS"
9916 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9917 LIBS="$LIBX $LIBS"
9918 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9919 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9920
9921 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9922 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9923 # but it's more convenient here to set LD_RUN_PATH
9924 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9925 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9926 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9927 export LD_RUN_PATH
9928 fi
9929
9930 if test "${opsys}" = "gnu-linux"; then
9931 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9932 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939
9940 int
9941 main ()
9942 {
9943 XOpenDisplay ("foo");
9944 ;
9945 return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950 (eval $ac_link) 2>conftest.er1
9951 ac_status=$?
9952 grep -v '^ *+' conftest.er1 >conftest.err
9953 rm -f conftest.er1
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try='test -z "$ac_c_werror_flag"
9958 || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try='test -s conftest$ac_exeext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 (eval $ac_try) 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 xlinux_first_failure=no
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 xlinux_first_failure=yes
9976 fi
9977 rm -f conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 if test "${xlinux_first_failure}" = "yes"; then
9980 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9981 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9982 OLD_CPPFLAGS="$CPPFLAGS"
9983 OLD_LIBS="$LIBS"
9984 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9985 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9986 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9987 LIBS="$LIBS -b i486-linuxaout"
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h. */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994
9995 int
9996 main ()
9997 {
9998 XOpenDisplay ("foo");
9999 ;
10000 return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005 (eval $ac_link) 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_c_werror_flag"
10013 || test ! -s conftest.err'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 xlinux_second_failure=no
10026 else
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 xlinux_second_failure=yes
10031 fi
10032 rm -f conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034 if test "${xlinux_second_failure}" = "yes"; then
10035 # If we get the same failure with -b, there is no use adding -b.
10036 # So take it out. This plays safe.
10037 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10038 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10039 CPPFLAGS="$OLD_CPPFLAGS"
10040 LIBS="$OLD_LIBS"
10041 echo "$as_me:$LINENO: result: no" >&5
10042 echo "${ECHO_T}no" >&6
10043 else
10044 echo "$as_me:$LINENO: result: yes" >&5
10045 echo "${ECHO_T}yes" >&6
10046 fi
10047 else
10048 echo "$as_me:$LINENO: result: no" >&5
10049 echo "${ECHO_T}no" >&6
10050 fi
10051 fi
10052
10053 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10054 # header files included from there.
10055 echo "$as_me:$LINENO: checking for Xkb" >&5
10056 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h. */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 #include <X11/Xlib.h>
10064 #include <X11/XKBlib.h>
10065 int
10066 main ()
10067 {
10068 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10069 ;
10070 return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10076 ac_status=$?
10077 grep -v '^ *+' conftest.er1 >conftest.err
10078 rm -f conftest.er1
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -z "$ac_c_werror_flag"
10083 || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 emacs_xkb=yes
10096 else
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10099
10100 emacs_xkb=no
10101 fi
10102 rm -f conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10105 echo "${ECHO_T}$emacs_xkb" >&6
10106 if test $emacs_xkb = yes; then
10107
10108 cat >>confdefs.h <<\_ACEOF
10109 #define HAVE_XKBGETKEYBOARD 1
10110 _ACEOF
10111
10112 fi
10113
10114
10115
10116
10117
10118 for ac_func in XrmSetDatabase XScreenResourceString \
10119 XScreenNumberOfScreen XSetWMProtocols
10120 do
10121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10122 echo "$as_me:$LINENO: checking for $ac_func" >&5
10123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10124 if eval "test \"\${$as_ac_var+set}\" = set"; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10135 #define $ac_func innocuous_$ac_func
10136
10137 /* System header to define __stub macros and hopefully few prototypes,
10138 which can conflict with char $ac_func (); below.
10139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10140 <limits.h> exists even on freestanding compilers. */
10141
10142 #ifdef __STDC__
10143 # include <limits.h>
10144 #else
10145 # include <assert.h>
10146 #endif
10147
10148 #undef $ac_func
10149
10150 /* Override any gcc2 internal prototype to avoid an error. */
10151 #ifdef __cplusplus
10152 extern "C"
10153 {
10154 #endif
10155 /* We use char because int might match the return type of a gcc2
10156 builtin and then its argument prototype would still apply. */
10157 char $ac_func ();
10158 /* The GNU C library defines this for functions which it implements
10159 to always fail with ENOSYS. Some functions are actually named
10160 something starting with __ and the normal name is an alias. */
10161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10162 choke me
10163 #else
10164 char (*f) () = $ac_func;
10165 #endif
10166 #ifdef __cplusplus
10167 }
10168 #endif
10169
10170 int
10171 main ()
10172 {
10173 return f != $ac_func;
10174 ;
10175 return 0;
10176 }
10177 _ACEOF
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10180 (eval $ac_link) 2>conftest.er1
10181 ac_status=$?
10182 grep -v '^ *+' conftest.er1 >conftest.err
10183 rm -f conftest.er1
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
10187 { ac_try='test -z "$ac_c_werror_flag"
10188 || test ! -s conftest.err'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; } &&
10194 { ac_try='test -s conftest$ac_exeext'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 eval "$as_ac_var=yes"
10201 else
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10204
10205 eval "$as_ac_var=no"
10206 fi
10207 rm -f conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 fi
10210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10212 if test `eval echo '${'$as_ac_var'}'` = yes; then
10213 cat >>confdefs.h <<_ACEOF
10214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10215 _ACEOF
10216
10217 fi
10218 done
10219
10220 fi
10221
10222 if test "${window_system}" = "x11"; then
10223 echo "$as_me:$LINENO: checking X11 version 6" >&5
10224 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10225 if test "${emacs_cv_x11_version_6+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 else
10228 cat >conftest.$ac_ext <<_ACEOF
10229 /* confdefs.h. */
10230 _ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10234 #include <X11/Xlib.h>
10235 int
10236 main ()
10237 {
10238 #if XlibSpecificationRelease < 6
10239 fail;
10240 #endif
10241
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>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -z "$ac_c_werror_flag"
10256 || test ! -s conftest.err'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 emacs_cv_x11_version_6=yes
10269 else
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 emacs_cv_x11_version_6=no
10274 fi
10275 rm -f conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10277 fi
10278
10279 if test $emacs_cv_x11_version_6 = yes; then
10280 echo "$as_me:$LINENO: result: 6 or newer" >&5
10281 echo "${ECHO_T}6 or newer" >&6
10282
10283 cat >>confdefs.h <<\_ACEOF
10284 #define HAVE_X11R6 1
10285 _ACEOF
10286
10287 else
10288 echo "$as_me:$LINENO: result: before 6" >&5
10289 echo "${ECHO_T}before 6" >&6
10290 fi
10291 fi
10292
10293 if test "${window_system}" = "x11"; then
10294 echo "$as_me:$LINENO: checking X11 version 5" >&5
10295 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10296 if test "${emacs_cv_x11_version_5+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <X11/Xlib.h>
10306 int
10307 main ()
10308 {
10309 #if XlibSpecificationRelease < 5
10310 fail;
10311 #endif
10312
10313 ;
10314 return 0;
10315 }
10316 _ACEOF
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10319 (eval $ac_link) 2>conftest.er1
10320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag"
10327 || test ! -s conftest.err'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try='test -s conftest$ac_exeext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 emacs_cv_x11_version_5=yes
10340 else
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10343
10344 emacs_cv_x11_version_5=no
10345 fi
10346 rm -f conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext conftest.$ac_ext
10348 fi
10349
10350 if test $emacs_cv_x11_version_5 = yes; then
10351 echo "$as_me:$LINENO: result: 5 or newer" >&5
10352 echo "${ECHO_T}5 or newer" >&6
10353 HAVE_X11R5=yes
10354
10355 cat >>confdefs.h <<\_ACEOF
10356 #define HAVE_X11R5 1
10357 _ACEOF
10358
10359 else
10360 HAVE_X11R5=no
10361 echo "$as_me:$LINENO: result: before 5" >&5
10362 echo "${ECHO_T}before 5" >&6
10363 fi
10364 fi
10365
10366 HAVE_GTK=no
10367 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10368 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10369 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10370 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10371 { (exit 1); exit 1; }; };
10372 fi
10373 GLIB_REQUIRED=2.4
10374 GTK_REQUIRED=2.4
10375 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10376
10377 if test "X${with_pkg_config_prog}" != X; then
10378 PKG_CONFIG="${with_pkg_config_prog}"
10379 fi
10380
10381 succeeded=no
10382
10383 if test -z "$PKG_CONFIG"; then
10384 # Extract the first word of "pkg-config", so it can be a program name with args.
10385 set dummy pkg-config; ac_word=$2
10386 echo "$as_me:$LINENO: checking for $ac_word" >&5
10387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10388 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391 case $PKG_CONFIG in
10392 [\\/]* | ?:[\\/]*)
10393 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10394 ;;
10395 *)
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10398 do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10406 fi
10407 done
10408 done
10409
10410 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10411 ;;
10412 esac
10413 fi
10414 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10415
10416 if test -n "$PKG_CONFIG"; then
10417 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10418 echo "${ECHO_T}$PKG_CONFIG" >&6
10419 else
10420 echo "$as_me:$LINENO: result: no" >&5
10421 echo "${ECHO_T}no" >&6
10422 fi
10423
10424 fi
10425
10426 if test "$PKG_CONFIG" = "no" ; then
10427 { { echo "$as_me:$LINENO: error:
10428 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10429 echo "$as_me: error:
10430 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10431 { (exit 1); exit 1; }; }
10432 else
10433 PKG_CONFIG_MIN_VERSION=0.9.0
10434 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10435 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10436 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10437
10438 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10439 echo "$as_me:$LINENO: result: yes" >&5
10440 echo "${ECHO_T}yes" >&6
10441 succeeded=yes
10442
10443 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10444 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10445 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10446 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10447 echo "${ECHO_T}$GTK_CFLAGS" >&6
10448
10449 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10450 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10451 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10452 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10453 echo "${ECHO_T}$GTK_LIBS" >&6
10454 else
10455 echo "$as_me:$LINENO: result: no" >&5
10456 echo "${ECHO_T}no" >&6
10457 GTK_CFLAGS=""
10458 GTK_LIBS=""
10459 ## If we have a custom action on failure, don't print errors, but
10460 ## do set a variable so people can do so.
10461 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10462 echo $GTK_PKG_ERRORS
10463 fi
10464
10465
10466
10467 else
10468 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10469 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10470 fi
10471 fi
10472
10473 if test $succeeded = yes; then
10474 :
10475 else
10476 { { 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
10477 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;}
10478 { (exit 1); exit 1; }; }
10479 fi
10480
10481
10482
10483 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10484 CFLAGS="$CFLAGS $GTK_CFLAGS"
10485 LIBS="$GTK_LIBS $LIBS"
10486 HAVE_GTK=yes
10487
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_GTK 1
10490 _ACEOF
10491
10492 USE_X_TOOLKIT=none
10493
10494 if test "$with_toolkit_scroll_bars" != no; then
10495 with_toolkit_scroll_bars=yes
10496 fi
10497
10498 HAVE_GTK_MULTIDISPLAY=no
10499
10500 for ac_func in gdk_display_open
10501 do
10502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10503 echo "$as_me:$LINENO: checking for $ac_func" >&5
10504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10505 if eval "test \"\${$as_ac_var+set}\" = set"; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10516 #define $ac_func innocuous_$ac_func
10517
10518 /* System header to define __stub macros and hopefully few prototypes,
10519 which can conflict with char $ac_func (); below.
10520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10521 <limits.h> exists even on freestanding compilers. */
10522
10523 #ifdef __STDC__
10524 # include <limits.h>
10525 #else
10526 # include <assert.h>
10527 #endif
10528
10529 #undef $ac_func
10530
10531 /* Override any gcc2 internal prototype to avoid an error. */
10532 #ifdef __cplusplus
10533 extern "C"
10534 {
10535 #endif
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10538 char $ac_func ();
10539 /* The GNU C library defines this for functions which it implements
10540 to always fail with ENOSYS. Some functions are actually named
10541 something starting with __ and the normal name is an alias. */
10542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10543 choke me
10544 #else
10545 char (*f) () = $ac_func;
10546 #endif
10547 #ifdef __cplusplus
10548 }
10549 #endif
10550
10551 int
10552 main ()
10553 {
10554 return f != $ac_func;
10555 ;
10556 return 0;
10557 }
10558 _ACEOF
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_c_werror_flag"
10569 || test ! -s conftest.err'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; } &&
10575 { ac_try='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 eval "$as_ac_var=yes"
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 eval "$as_ac_var=no"
10587 fi
10588 rm -f conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 fi
10591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10593 if test `eval echo '${'$as_ac_var'}'` = yes; then
10594 cat >>confdefs.h <<_ACEOF
10595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10596 _ACEOF
10597 HAVE_GTK_MULTIDISPLAY=yes
10598 fi
10599 done
10600
10601 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10602
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_GTK_MULTIDISPLAY 1
10605 _ACEOF
10606
10607 fi
10608 HAVE_GTK_FILE_SELECTION=no
10609
10610 for ac_func in gtk_file_selection_new
10611 do
10612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10613 echo "$as_me:$LINENO: checking for $ac_func" >&5
10614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10615 if eval "test \"\${$as_ac_var+set}\" = set"; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h. */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10626 #define $ac_func innocuous_$ac_func
10627
10628 /* System header to define __stub macros and hopefully few prototypes,
10629 which can conflict with char $ac_func (); below.
10630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10631 <limits.h> exists even on freestanding compilers. */
10632
10633 #ifdef __STDC__
10634 # include <limits.h>
10635 #else
10636 # include <assert.h>
10637 #endif
10638
10639 #undef $ac_func
10640
10641 /* Override any gcc2 internal prototype to avoid an error. */
10642 #ifdef __cplusplus
10643 extern "C"
10644 {
10645 #endif
10646 /* We use char because int might match the return type of a gcc2
10647 builtin and then its argument prototype would still apply. */
10648 char $ac_func ();
10649 /* The GNU C library defines this for functions which it implements
10650 to always fail with ENOSYS. Some functions are actually named
10651 something starting with __ and the normal name is an alias. */
10652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10653 choke me
10654 #else
10655 char (*f) () = $ac_func;
10656 #endif
10657 #ifdef __cplusplus
10658 }
10659 #endif
10660
10661 int
10662 main ()
10663 {
10664 return f != $ac_func;
10665 ;
10666 return 0;
10667 }
10668 _ACEOF
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671 (eval $ac_link) 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -z "$ac_c_werror_flag"
10679 || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try='test -s conftest$ac_exeext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 eval "$as_ac_var=yes"
10692 else
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696 eval "$as_ac_var=no"
10697 fi
10698 rm -f conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 fi
10701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10703 if test `eval echo '${'$as_ac_var'}'` = yes; then
10704 cat >>confdefs.h <<_ACEOF
10705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10706 _ACEOF
10707 HAVE_GTK_FILE_SELECTION=yes
10708 fi
10709 done
10710
10711
10712 HAVE_GTK_FILE_CHOOSER=no
10713
10714 for ac_func in gtk_file_chooser_dialog_new
10715 do
10716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10717 echo "$as_me:$LINENO: checking for $ac_func" >&5
10718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10719 if eval "test \"\${$as_ac_var+set}\" = set"; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 else
10722 cat >conftest.$ac_ext <<_ACEOF
10723 /* confdefs.h. */
10724 _ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10730 #define $ac_func innocuous_$ac_func
10731
10732 /* System header to define __stub macros and hopefully few prototypes,
10733 which can conflict with char $ac_func (); below.
10734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10735 <limits.h> exists even on freestanding compilers. */
10736
10737 #ifdef __STDC__
10738 # include <limits.h>
10739 #else
10740 # include <assert.h>
10741 #endif
10742
10743 #undef $ac_func
10744
10745 /* Override any gcc2 internal prototype to avoid an error. */
10746 #ifdef __cplusplus
10747 extern "C"
10748 {
10749 #endif
10750 /* We use char because int might match the return type of a gcc2
10751 builtin and then its argument prototype would still apply. */
10752 char $ac_func ();
10753 /* The GNU C library defines this for functions which it implements
10754 to always fail with ENOSYS. Some functions are actually named
10755 something starting with __ and the normal name is an alias. */
10756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10757 choke me
10758 #else
10759 char (*f) () = $ac_func;
10760 #endif
10761 #ifdef __cplusplus
10762 }
10763 #endif
10764
10765 int
10766 main ()
10767 {
10768 return f != $ac_func;
10769 ;
10770 return 0;
10771 }
10772 _ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10775 (eval $ac_link) 2>conftest.er1
10776 ac_status=$?
10777 grep -v '^ *+' conftest.er1 >conftest.err
10778 rm -f conftest.er1
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -z "$ac_c_werror_flag"
10783 || test ! -s conftest.err'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 eval "$as_ac_var=yes"
10796 else
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800 eval "$as_ac_var=no"
10801 fi
10802 rm -f conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 fi
10805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10807 if test `eval echo '${'$as_ac_var'}'` = yes; then
10808 cat >>confdefs.h <<_ACEOF
10809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10810 _ACEOF
10811 HAVE_GTK_FILE_CHOOSER=yes
10812 fi
10813 done
10814
10815
10816 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10817 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10818
10819 cat >>confdefs.h <<\_ACEOF
10820 #define HAVE_GTK_FILE_BOTH 1
10821 _ACEOF
10822
10823 fi
10824
10825 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10826 HAVE_GTK_AND_PTHREAD=no
10827
10828 for ac_header in pthread.h
10829 do
10830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10832 echo "$as_me:$LINENO: checking for $ac_header" >&5
10833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 fi
10837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10839 else
10840 # Is the header compilable?
10841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 $ac_includes_default
10850 #include <$ac_header>
10851 _ACEOF
10852 rm -f conftest.$ac_objext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10854 (eval $ac_compile) 2>conftest.er1
10855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag"
10862 || test ! -s conftest.err'
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; } &&
10868 { ac_try='test -s conftest.$ac_objext'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_header_compiler=yes
10875 else
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 ac_header_compiler=no
10880 fi
10881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10883 echo "${ECHO_T}$ac_header_compiler" >&6
10884
10885 # Is the header present?
10886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10888 cat >conftest.$ac_ext <<_ACEOF
10889 /* confdefs.h. */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 #include <$ac_header>
10895 _ACEOF
10896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } >/dev/null; then
10904 if test -s conftest.err; then
10905 ac_cpp_err=$ac_c_preproc_warn_flag
10906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10907 else
10908 ac_cpp_err=
10909 fi
10910 else
10911 ac_cpp_err=yes
10912 fi
10913 if test -z "$ac_cpp_err"; then
10914 ac_header_preproc=yes
10915 else
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10918
10919 ac_header_preproc=no
10920 fi
10921 rm -f conftest.err conftest.$ac_ext
10922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10923 echo "${ECHO_T}$ac_header_preproc" >&6
10924
10925 # So? What about this header?
10926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10927 yes:no: )
10928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10932 ac_header_preproc=yes
10933 ;;
10934 no:yes:* )
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10947 (
10948 cat <<\_ASBOX
10949 ## ------------------------------------------ ##
10950 ## Report this to the AC_PACKAGE_NAME lists. ##
10951 ## ------------------------------------------ ##
10952 _ASBOX
10953 ) |
10954 sed "s/^/$as_me: WARNING: /" >&2
10955 ;;
10956 esac
10957 echo "$as_me:$LINENO: checking for $ac_header" >&5
10958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962 eval "$as_ac_Header=\$ac_header_preproc"
10963 fi
10964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10966
10967 fi
10968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10969 cat >>confdefs.h <<_ACEOF
10970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10971 _ACEOF
10972
10973 fi
10974
10975 done
10976
10977 if test "$ac_cv_header_pthread_h"; then
10978 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10979 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10980 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983 ac_check_lib_save_LIBS=$LIBS
10984 LIBS="-lpthread $LIBS"
10985 cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h. */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991
10992 /* Override any gcc2 internal prototype to avoid an error. */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998 char pthread_self ();
10999 int
11000 main ()
11001 {
11002 pthread_self ();
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009 (eval $ac_link) 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag"
11017 || test ! -s conftest.err'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_lib_pthread_pthread_self=yes
11030 else
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 ac_cv_lib_pthread_pthread_self=no
11035 fi
11036 rm -f conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11039 fi
11040 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11041 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11042 if test $ac_cv_lib_pthread_pthread_self = yes; then
11043 HAVE_GTK_AND_PTHREAD=yes
11044 fi
11045
11046 fi
11047 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11048 GTK_LIBS="$GTK_LIBS -lpthread"
11049
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_GTK_AND_PTHREAD 1
11052 _ACEOF
11053
11054 fi
11055 fi
11056 fi
11057
11058 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11059 if test x"${HAVE_X11R5}" = xyes; then
11060 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11061 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11062 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065 cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h. */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071
11072 #include <X11/Intrinsic.h>
11073 #include <X11/Xaw/Simple.h>
11074 int
11075 main ()
11076 {
11077
11078 ;
11079 return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>conftest.er1
11085 ac_status=$?
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try='test -z "$ac_c_werror_flag"
11092 || test ! -s conftest.err'
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try='test -s conftest$ac_exeext'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 emacs_cv_x11_version_5_with_xaw=yes
11105 else
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109 emacs_cv_x11_version_5_with_xaw=no
11110 fi
11111 rm -f conftest.err conftest.$ac_objext \
11112 conftest$ac_exeext conftest.$ac_ext
11113 fi
11114
11115 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11116 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11117 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11118 USE_X_TOOLKIT=LUCID
11119 else
11120 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11121 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11122 USE_X_TOOLKIT=none
11123 fi
11124 else
11125 USE_X_TOOLKIT=none
11126 fi
11127 fi
11128
11129 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11130
11131 if test "${USE_X_TOOLKIT}" != "none"; then
11132 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11133 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11134 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137 cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h. */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11143 #include <X11/Intrinsic.h>
11144 int
11145 main ()
11146 {
11147 #if XtSpecificationRelease < 6
11148 fail;
11149 #endif
11150
11151 ;
11152 return 0;
11153 }
11154 _ACEOF
11155 rm -f conftest.$ac_objext conftest$ac_exeext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11157 (eval $ac_link) 2>conftest.er1
11158 ac_status=$?
11159 grep -v '^ *+' conftest.er1 >conftest.err
11160 rm -f conftest.er1
11161 cat conftest.err >&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try='test -z "$ac_c_werror_flag"
11165 || test ! -s conftest.err'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; } &&
11171 { ac_try='test -s conftest$ac_exeext'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 emacs_cv_x11_toolkit_version_6=yes
11178 else
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 emacs_cv_x11_toolkit_version_6=no
11183 fi
11184 rm -f conftest.err conftest.$ac_objext \
11185 conftest$ac_exeext conftest.$ac_ext
11186 fi
11187
11188 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11189 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11190 echo "$as_me:$LINENO: result: 6 or newer" >&5
11191 echo "${ECHO_T}6 or newer" >&6
11192
11193 cat >>confdefs.h <<\_ACEOF
11194 #define HAVE_X11XTR6 1
11195 _ACEOF
11196
11197 else
11198 echo "$as_me:$LINENO: result: before 6" >&5
11199 echo "${ECHO_T}before 6" >&6
11200 fi
11201
11202 OLDLIBS="$LIBS"
11203 if test x$HAVE_X11XTR6 = xyes; then
11204 LIBS="-lXt -lSM -lICE $LIBS"
11205 else
11206 LIBS="-lXt $LIBS"
11207 fi
11208
11209 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11210 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11211 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 ac_check_lib_save_LIBS=$LIBS
11215 LIBS="-lXmu $LIBS"
11216 cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h. */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222
11223 /* Override any gcc2 internal prototype to avoid an error. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 /* We use char because int might match the return type of a gcc2
11228 builtin and then its argument prototype would still apply. */
11229 char XmuConvertStandardSelection ();
11230 int
11231 main ()
11232 {
11233 XmuConvertStandardSelection ();
11234 ;
11235 return 0;
11236 }
11237 _ACEOF
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240 (eval $ac_link) 2>conftest.er1
11241 ac_status=$?
11242 grep -v '^ *+' conftest.er1 >conftest.err
11243 rm -f conftest.er1
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -z "$ac_c_werror_flag"
11248 || test ! -s conftest.err'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest$ac_exeext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11261 else
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11266 fi
11267 rm -f conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_lib_save_LIBS
11270 fi
11271 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11272 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11273 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275 #define HAVE_LIBXMU 1
11276 _ACEOF
11277
11278 LIBS="-lXmu $LIBS"
11279
11280 fi
11281
11282 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11283 fi
11284
11285 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11286 if test "${HAVE_X11}" = "yes"; then
11287 if test "${USE_X_TOOLKIT}" != "none"; then
11288
11289 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11290 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11291 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294 ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-lXext $LIBS"
11296 cat >conftest.$ac_ext <<_ACEOF
11297 /* confdefs.h. */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11302
11303 /* Override any gcc2 internal prototype to avoid an error. */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 /* We use char because int might match the return type of a gcc2
11308 builtin and then its argument prototype would still apply. */
11309 char XShapeQueryExtension ();
11310 int
11311 main ()
11312 {
11313 XShapeQueryExtension ();
11314 ;
11315 return 0;
11316 }
11317 _ACEOF
11318 rm -f conftest.$ac_objext conftest$ac_exeext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11320 (eval $ac_link) 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest$ac_exeext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_lib_Xext_XShapeQueryExtension=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345 ac_cv_lib_Xext_XShapeQueryExtension=no
11346 fi
11347 rm -f conftest.err conftest.$ac_objext \
11348 conftest$ac_exeext conftest.$ac_ext
11349 LIBS=$ac_check_lib_save_LIBS
11350 fi
11351 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11352 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11353 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11354 cat >>confdefs.h <<_ACEOF
11355 #define HAVE_LIBXEXT 1
11356 _ACEOF
11357
11358 LIBS="-lXext $LIBS"
11359
11360 fi
11361
11362 fi
11363 fi
11364
11365 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11366 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11367 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11368 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h. */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 #include <Xm/Xm.h>
11378 int
11379 main ()
11380 {
11381 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11382 int x = 5;
11383 #else
11384 Motif version prior to 2.1.
11385 #endif
11386 ;
11387 return 0;
11388 }
11389 _ACEOF
11390 rm -f conftest.$ac_objext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392 (eval $ac_compile) 2>conftest.er1
11393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -z "$ac_c_werror_flag"
11400 || test ! -s conftest.err'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 emacs_cv_motif_version_2_1=yes
11413 else
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417 emacs_cv_motif_version_2_1=no
11418 fi
11419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11420 fi
11421 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11422 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11423 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11424 if test $emacs_cv_motif_version_2_1 = yes; then
11425 HAVE_LIBXP=no
11426
11427 cat >>confdefs.h <<\_ACEOF
11428 #define HAVE_MOTIF_2_1 1
11429 _ACEOF
11430
11431 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11432 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11433 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436 ac_check_lib_save_LIBS=$LIBS
11437 LIBS="-lXp $LIBS"
11438 cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h. */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11444
11445 /* Override any gcc2 internal prototype to avoid an error. */
11446 #ifdef __cplusplus
11447 extern "C"
11448 #endif
11449 /* We use char because int might match the return type of a gcc2
11450 builtin and then its argument prototype would still apply. */
11451 char XpCreateContext ();
11452 int
11453 main ()
11454 {
11455 XpCreateContext ();
11456 ;
11457 return 0;
11458 }
11459 _ACEOF
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11462 (eval $ac_link) 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } &&
11469 { ac_try='test -z "$ac_c_werror_flag"
11470 || test ! -s conftest.err'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try='test -s conftest$ac_exeext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_cv_lib_Xp_XpCreateContext=yes
11483 else
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11486
11487 ac_cv_lib_Xp_XpCreateContext=no
11488 fi
11489 rm -f conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11492 fi
11493 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11494 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11495 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11496 HAVE_LIBXP=yes
11497 fi
11498
11499 if test ${HAVE_LIBXP} = yes; then
11500
11501 cat >>confdefs.h <<\_ACEOF
11502 #define HAVE_LIBXP 1
11503 _ACEOF
11504
11505 fi
11506 else
11507 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11508 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11509 if test "${emacs_cv_lesstif+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512 # We put this in CFLAGS temporarily to precede other -I options
11513 # that might be in CFLAGS temporarily.
11514 # We put this in CPPFLAGS where it precedes the other -I options.
11515 OLD_CPPFLAGS=$CPPFLAGS
11516 OLD_CFLAGS=$CFLAGS
11517 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11518 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11519 cat >conftest.$ac_ext <<_ACEOF
11520 /* confdefs.h. */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11525 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11526 int
11527 main ()
11528 {
11529 int x = 5;
11530 ;
11531 return 0;
11532 }
11533 _ACEOF
11534 rm -f conftest.$ac_objext
11535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11536 (eval $ac_compile) 2>conftest.er1
11537 ac_status=$?
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
11543 { ac_try='test -z "$ac_c_werror_flag"
11544 || test ! -s conftest.err'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest.$ac_objext'
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 emacs_cv_lesstif=yes
11557 else
11558 echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11560
11561 emacs_cv_lesstif=no
11562 fi
11563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11564 fi
11565 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11566 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11567 if test $emacs_cv_lesstif = yes; then
11568 # Make sure this -I option remains in CPPFLAGS after it is set
11569 # back to REAL_CPPFLAGS.
11570 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11571 # have those other -I options anyway. Ultimately, having this
11572 # directory ultimately in CPPFLAGS will be enough.
11573 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11574 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11575 else
11576 CFLAGS=$OLD_CFLAGS
11577 CPPFLAGS=$OLD_CPPFLAGS
11578 fi
11579 fi
11580 fi
11581
11582 ### Is -lXaw3d available?
11583 HAVE_XAW3D=no
11584 if test "${HAVE_X11}" = "yes"; then
11585 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11586 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11587 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11588 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591 cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h. */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 #include <X11/Xaw3d/Scrollbar.h>
11598 _ACEOF
11599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } >/dev/null; then
11607 if test -s conftest.err; then
11608 ac_cpp_err=$ac_c_preproc_warn_flag
11609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11610 else
11611 ac_cpp_err=
11612 fi
11613 else
11614 ac_cpp_err=yes
11615 fi
11616 if test -z "$ac_cpp_err"; then
11617 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11618 else
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11623 fi
11624 rm -f conftest.err conftest.$ac_ext
11625 fi
11626 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11627 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11628 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11629 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11630 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11631 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634 ac_check_lib_save_LIBS=$LIBS
11635 LIBS="-lXaw3d $LIBS"
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642
11643 /* Override any gcc2 internal prototype to avoid an error. */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 /* We use char because int might match the return type of a gcc2
11648 builtin and then its argument prototype would still apply. */
11649 char XawScrollbarSetThumb ();
11650 int
11651 main ()
11652 {
11653 XawScrollbarSetThumb ();
11654 ;
11655 return 0;
11656 }
11657 _ACEOF
11658 rm -f conftest.$ac_objext conftest$ac_exeext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11660 (eval $ac_link) 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag"
11668 || test ! -s conftest.err'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11686 fi
11687 rm -f conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11689 LIBS=$ac_check_lib_save_LIBS
11690 fi
11691 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11692 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11693 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11694 HAVE_XAW3D=yes
11695 fi
11696
11697 fi
11698
11699
11700 if test "${HAVE_XAW3D}" = "yes"; then
11701
11702 cat >>confdefs.h <<\_ACEOF
11703 #define HAVE_XAW3D 1
11704 _ACEOF
11705
11706 fi
11707 fi
11708 fi
11709
11710
11711
11712 USE_TOOLKIT_SCROLL_BARS=no
11713 if test "${with_toolkit_scroll_bars}" != "no"; then
11714 if test "${USE_X_TOOLKIT}" != "none"; then
11715 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11716 cat >>confdefs.h <<\_ACEOF
11717 #define USE_TOOLKIT_SCROLL_BARS 1
11718 _ACEOF
11719
11720 HAVE_XAW3D=no
11721 USE_TOOLKIT_SCROLL_BARS=yes
11722 elif test "${HAVE_XAW3D}" = "yes"; then
11723 cat >>confdefs.h <<\_ACEOF
11724 #define USE_TOOLKIT_SCROLL_BARS 1
11725 _ACEOF
11726
11727 USE_TOOLKIT_SCROLL_BARS=yes
11728 fi
11729 elif test "${HAVE_GTK}" = "yes"; then
11730 cat >>confdefs.h <<\_ACEOF
11731 #define USE_TOOLKIT_SCROLL_BARS 1
11732 _ACEOF
11733
11734 USE_TOOLKIT_SCROLL_BARS=yes
11735 elif test "${HAVE_CARBON}" = "yes"; then
11736 cat >>confdefs.h <<\_ACEOF
11737 #define USE_TOOLKIT_SCROLL_BARS 1
11738 _ACEOF
11739
11740 USE_TOOLKIT_SCROLL_BARS=yes
11741 fi
11742 fi
11743
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h. */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750
11751 #include <X11/Xlib.h>
11752 #include <X11/Xresource.h>
11753 int
11754 main ()
11755 {
11756 XIMProc callback;
11757 ;
11758 return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest.$ac_objext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 HAVE_XIM=yes
11784
11785 cat >>confdefs.h <<\_ACEOF
11786 #define HAVE_XIM 1
11787 _ACEOF
11788
11789 else
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11792
11793 HAVE_XIM=no
11794 fi
11795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11796
11797
11798 if test "${with_xim}" != "no"; then
11799
11800 cat >>confdefs.h <<\_ACEOF
11801 #define USE_XIM 1
11802 _ACEOF
11803
11804 fi
11805
11806
11807 if test "${HAVE_XIM}" != "no"; then
11808 late_CFLAGS=$CFLAGS
11809 if test "$GCC" = yes; then
11810 CFLAGS="$CFLAGS --pedantic-errors"
11811 fi
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h. */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818
11819 #include <X11/Xlib.h>
11820 #include <X11/Xresource.h>
11821 int
11822 main ()
11823 {
11824 Display *display;
11825 XrmDatabase db;
11826 char *res_name;
11827 char *res_class;
11828 XIMProc callback;
11829 XPointer *client_data;
11830 #ifndef __GNUC__
11831 /* If we're not using GCC, it's probably not XFree86, and this is
11832 probably right, but we can't use something like --pedantic-errors. */
11833 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11834 char*, XIMProc, XPointer*);
11835 #endif
11836 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11837 client_data);
11838 ;
11839 return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } &&
11851 { ac_try='test -z "$ac_c_werror_flag"
11852 || test ! -s conftest.err'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; } &&
11858 { ac_try='test -s conftest.$ac_objext'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
11864 emacs_cv_arg6_star=yes
11865 else
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11868
11869 fi
11870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11871
11872 if test "$emacs_cv_arg6_star" = yes; then
11873 cat >>confdefs.h <<\_ACEOF
11874 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11875 _ACEOF
11876
11877 else
11878 cat >>confdefs.h <<\_ACEOF
11879 #define XRegisterIMInstantiateCallback_arg6 XPointer
11880 _ACEOF
11881
11882 fi
11883 CFLAGS=$late_CFLAGS
11884 fi
11885
11886 ### For font-backend
11887 if test "${USE_FONT_BACKEND}" = "yes"; then
11888
11889
11890 cat >>confdefs.h <<\_ACEOF
11891 #define USE_FONT_BACKEND 1
11892 _ACEOF
11893
11894
11895 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
11896 HAVE_XFT=maybe
11897 if test "${HAVE_X11}" = "yes"; then
11898 if test "x${with_freetype}" = "xno"; then
11899 with_xft="no";
11900 fi
11901 if test "x${with_xft}" != "xno"; then
11902
11903 if test "X${with_pkg_config_prog}" != X; then
11904 PKG_CONFIG="${with_pkg_config_prog}"
11905 fi
11906
11907
11908 succeeded=no
11909
11910 if test -z "$PKG_CONFIG"; then
11911 # Extract the first word of "pkg-config", so it can be a program name with args.
11912 set dummy pkg-config; ac_word=$2
11913 echo "$as_me:$LINENO: checking for $ac_word" >&5
11914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11915 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918 case $PKG_CONFIG in
11919 [\\/]* | ?:[\\/]*)
11920 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11921 ;;
11922 *)
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11925 do
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11933 fi
11934 done
11935 done
11936
11937 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11938 ;;
11939 esac
11940 fi
11941 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11942
11943 if test -n "$PKG_CONFIG"; then
11944 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11945 echo "${ECHO_T}$PKG_CONFIG" >&6
11946 else
11947 echo "$as_me:$LINENO: result: no" >&5
11948 echo "${ECHO_T}no" >&6
11949 fi
11950
11951 fi
11952
11953 if test "$PKG_CONFIG" = "no" ; then
11954 echo "*** The pkg-config script could not be found. Make sure it is"
11955 echo "*** in your path, or give the full path to pkg-config with"
11956 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
11957 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11958 else
11959 PKG_CONFIG_MIN_VERSION=0.9.0
11960 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11961 echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11962 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6
11963
11964 if $PKG_CONFIG --exists "xft >= 0.13.0" ; then
11965 echo "$as_me:$LINENO: result: yes" >&5
11966 echo "${ECHO_T}yes" >&6
11967 succeeded=yes
11968
11969 echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11970 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6
11971 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11972 echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11973 echo "${ECHO_T}$XFT_CFLAGS" >&6
11974
11975 echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11976 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6
11977 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11978 echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11979 echo "${ECHO_T}$XFT_LIBS" >&6
11980 else
11981 XFT_CFLAGS=""
11982 XFT_LIBS=""
11983 ## If we have a custom action on failure, don't print errors, but
11984 ## do set a variable so people can do so.
11985 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11986
11987 fi
11988
11989
11990
11991 else
11992 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11993 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11994 fi
11995 fi
11996
11997 if test $succeeded = yes; then
11998 :
11999 else
12000 HAVE_XFT=no
12001 fi
12002
12003 if test "$HAVE_XFT" != no; then
12004 OLD_CPPFLAGS="$CPPFLAGS"
12005 OLD_CFLAGS="$CFLAGS"
12006 OLD_LIBS="$LIBS"
12007 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12008 CFLAGS="$CFLAGS $XFT_CFLAGS"
12009 LIBS="$XFT_LIBS $LIBS"
12010 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12011 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12012 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
12013 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 fi
12016 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12017 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
12018 else
12019 # Is the header compilable?
12020 echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12021 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6
12022 cat >conftest.$ac_ext <<_ACEOF
12023 /* confdefs.h. */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 $ac_includes_default
12029 #include <X11/Xft/Xft.h>
12030 _ACEOF
12031 rm -f conftest.$ac_objext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12033 (eval $ac_compile) 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest.$ac_objext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 ac_header_compiler=yes
12054 else
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 ac_header_compiler=no
12059 fi
12060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12062 echo "${ECHO_T}$ac_header_compiler" >&6
12063
12064 # Is the header present?
12065 echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12066 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6
12067 cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h. */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 #include <X11/Xft/Xft.h>
12074 _ACEOF
12075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } >/dev/null; then
12083 if test -s conftest.err; then
12084 ac_cpp_err=$ac_c_preproc_warn_flag
12085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12086 else
12087 ac_cpp_err=
12088 fi
12089 else
12090 ac_cpp_err=yes
12091 fi
12092 if test -z "$ac_cpp_err"; then
12093 ac_header_preproc=yes
12094 else
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 ac_header_preproc=no
12099 fi
12100 rm -f conftest.err conftest.$ac_ext
12101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12102 echo "${ECHO_T}$ac_header_preproc" >&6
12103
12104 # So? What about this header?
12105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12106 yes:no: )
12107 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12108 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12110 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12111 ac_header_preproc=yes
12112 ;;
12113 no:yes:* )
12114 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12115 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12117 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12119 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12121 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12123 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12125 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12126 (
12127 cat <<\_ASBOX
12128 ## ------------------------------------------ ##
12129 ## Report this to the AC_PACKAGE_NAME lists. ##
12130 ## ------------------------------------------ ##
12131 _ASBOX
12132 ) |
12133 sed "s/^/$as_me: WARNING: /" >&2
12134 ;;
12135 esac
12136 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12137 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
12138 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12142 fi
12143 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12144 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
12145
12146 fi
12147 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12148 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12149 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
12150 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153 ac_check_lib_save_LIBS=$LIBS
12154 LIBS="-lXft $XFT_LIBS $LIBS"
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161
12162 /* Override any gcc2 internal prototype to avoid an error. */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 /* We use char because int might match the return type of a gcc2
12167 builtin and then its argument prototype would still apply. */
12168 char XftFontOpen ();
12169 int
12170 main ()
12171 {
12172 XftFontOpen ();
12173 ;
12174 return 0;
12175 }
12176 _ACEOF
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag"
12187 || test ! -s conftest.err'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try='test -s conftest$ac_exeext'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 ac_cv_lib_Xft_XftFontOpen=yes
12200 else
12201 echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12203
12204 ac_cv_lib_Xft_XftFontOpen=no
12205 fi
12206 rm -f conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12209 fi
12210 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12211 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
12212 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12213 HAVE_XFT=yes
12214 fi
12215
12216 fi
12217
12218
12219
12220 if test "${HAVE_XFT}" = "yes"; then
12221
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_XFT 1
12224 _ACEOF
12225
12226
12227 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12228 else
12229 CFLAGS="$OLD_CPPFLAGS"
12230 CFLAGS="$OLD_CFLAGS"
12231 LIBS="$OLD_LIBS"
12232 fi
12233 fi
12234 fi
12235 fi
12236
12237 HAVE_FREETYPE=no
12238 ### Use -lfreetype if available, unless `--with-freetype=no'.
12239 if test "${HAVE_XFT}" = "yes"; then
12240 HAVE_FREETYPE=yes
12241 elif test "x${with_freetype}" != "xno"; then
12242 if test "X${with_pkg_config_prog}" != X; then
12243 PKG_CONFIG="${with_pkg_config_prog}"
12244 fi
12245
12246
12247 succeeded=no
12248
12249 if test -z "$PKG_CONFIG"; then
12250 # Extract the first word of "pkg-config", so it can be a program name with args.
12251 set dummy pkg-config; ac_word=$2
12252 echo "$as_me:$LINENO: checking for $ac_word" >&5
12253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12254 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257 case $PKG_CONFIG in
12258 [\\/]* | ?:[\\/]*)
12259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12260 ;;
12261 *)
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12264 do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12269 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12272 fi
12273 done
12274 done
12275
12276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12277 ;;
12278 esac
12279 fi
12280 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12281
12282 if test -n "$PKG_CONFIG"; then
12283 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12284 echo "${ECHO_T}$PKG_CONFIG" >&6
12285 else
12286 echo "$as_me:$LINENO: result: no" >&5
12287 echo "${ECHO_T}no" >&6
12288 fi
12289
12290 fi
12291
12292 if test "$PKG_CONFIG" = "no" ; then
12293 echo "*** The pkg-config script could not be found. Make sure it is"
12294 echo "*** in your path, or give the full path to pkg-config with"
12295 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12296 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12297 else
12298 PKG_CONFIG_MIN_VERSION=0.9.0
12299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12300 echo "$as_me:$LINENO: checking for freetype2" >&5
12301 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12302
12303 if $PKG_CONFIG --exists "freetype2" ; then
12304 echo "$as_me:$LINENO: result: yes" >&5
12305 echo "${ECHO_T}yes" >&6
12306 succeeded=yes
12307
12308 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12309 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6
12310 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12311 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12312 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6
12313
12314 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12315 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6
12316 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12317 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12318 echo "${ECHO_T}$FREETYPE_LIBS" >&6
12319 else
12320 FREETYPE_CFLAGS=""
12321 FREETYPE_LIBS=""
12322 ## If we have a custom action on failure, don't print errors, but
12323 ## do set a variable so people can do so.
12324 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12325
12326 fi
12327
12328
12329
12330 else
12331 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12332 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12333 fi
12334 fi
12335
12336 if test $succeeded = yes; then
12337 HAVE_FREETYPE=yes
12338 else
12339 HAVE_FREETYPE=no
12340 fi
12341
12342 if test "${HAVE_FREETYPE}" = "yes"; then
12343
12344 succeeded=no
12345
12346 if test -z "$PKG_CONFIG"; then
12347 # Extract the first word of "pkg-config", so it can be a program name with args.
12348 set dummy pkg-config; ac_word=$2
12349 echo "$as_me:$LINENO: checking for $ac_word" >&5
12350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12351 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354 case $PKG_CONFIG in
12355 [\\/]* | ?:[\\/]*)
12356 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12357 ;;
12358 *)
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12361 do
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
12364 for ac_exec_ext in '' $ac_executable_extensions; do
12365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12366 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 break 2
12369 fi
12370 done
12371 done
12372
12373 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12374 ;;
12375 esac
12376 fi
12377 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12378
12379 if test -n "$PKG_CONFIG"; then
12380 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12381 echo "${ECHO_T}$PKG_CONFIG" >&6
12382 else
12383 echo "$as_me:$LINENO: result: no" >&5
12384 echo "${ECHO_T}no" >&6
12385 fi
12386
12387 fi
12388
12389 if test "$PKG_CONFIG" = "no" ; then
12390 echo "*** The pkg-config script could not be found. Make sure it is"
12391 echo "*** in your path, or give the full path to pkg-config with"
12392 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12393 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12394 else
12395 PKG_CONFIG_MIN_VERSION=0.9.0
12396 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12397 echo "$as_me:$LINENO: checking for fontconfig" >&5
12398 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6
12399
12400 if $PKG_CONFIG --exists "fontconfig" ; then
12401 echo "$as_me:$LINENO: result: yes" >&5
12402 echo "${ECHO_T}yes" >&6
12403 succeeded=yes
12404
12405 echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12406 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6
12407 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"`
12408 echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12409 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6
12410
12411 echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12412 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6
12413 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"`
12414 echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12415 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6
12416 else
12417 FONTCONFIG_CFLAGS=""
12418 FONTCONFIG_LIBS=""
12419 ## If we have a custom action on failure, don't print errors, but
12420 ## do set a variable so people can do so.
12421 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12422
12423 fi
12424
12425
12426
12427 else
12428 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12429 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12430 fi
12431 fi
12432
12433 if test $succeeded = yes; then
12434 HAVE_FC=yes
12435 else
12436 HAVE_FC=no
12437 fi
12438
12439 if test "${HAVE_FC}" = "no"; then
12440 HAVE_FREETYPE=no
12441 fi
12442 fi
12443 fi
12444 if test "${HAVE_FREETYPE}" = "yes"; then
12445
12446 cat >>confdefs.h <<\_ACEOF
12447 #define HAVE_FREETYPE 1
12448 _ACEOF
12449
12450 # Extract the first word of "libotf-config", so it can be a program name with args.
12451 set dummy libotf-config; ac_word=$2
12452 echo "$as_me:$LINENO: checking for $ac_word" >&5
12453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12454 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457 if test -n "$HAVE_LIBOTF"; then
12458 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12462 do
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_prog_HAVE_LIBOTF="yes"
12468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12470 fi
12471 done
12472 done
12473
12474 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
12475 fi
12476 fi
12477 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
12478 if test -n "$HAVE_LIBOTF"; then
12479 echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
12480 echo "${ECHO_T}$HAVE_LIBOTF" >&6
12481 else
12482 echo "$as_me:$LINENO: result: no" >&5
12483 echo "${ECHO_T}no" >&6
12484 fi
12485
12486 if test "${HAVE_LIBOTF}" = "yes"; then
12487
12488 cat >>confdefs.h <<\_ACEOF
12489 #define HAVE_LIBOTF 1
12490 _ACEOF
12491
12492 LIBOTF_CFLAGS=`libotf-config --cflags`
12493 LIBOTF_LIBS=`libotf-config --libs`
12494 fi
12495 fi
12496
12497
12498
12499
12500
12501
12502
12503 fi
12504
12505 ### Use -lXpm if available, unless `--with-xpm=no'.
12506 HAVE_XPM=no
12507 if test "${HAVE_X11}" = "yes"; then
12508 if test "${with_xpm}" != "no"; then
12509 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12510 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12511 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12512 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 fi
12515 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12516 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12517 else
12518 # Is the header compilable?
12519 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12520 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 $ac_includes_default
12528 #include <X11/xpm.h>
12529 _ACEOF
12530 rm -f conftest.$ac_objext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12532 (eval $ac_compile) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_header_compiler=yes
12553 else
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557 ac_header_compiler=no
12558 fi
12559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12561 echo "${ECHO_T}$ac_header_compiler" >&6
12562
12563 # Is the header present?
12564 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12565 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h. */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 #include <X11/xpm.h>
12573 _ACEOF
12574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } >/dev/null; then
12582 if test -s conftest.err; then
12583 ac_cpp_err=$ac_c_preproc_warn_flag
12584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12585 else
12586 ac_cpp_err=
12587 fi
12588 else
12589 ac_cpp_err=yes
12590 fi
12591 if test -z "$ac_cpp_err"; then
12592 ac_header_preproc=yes
12593 else
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597 ac_header_preproc=no
12598 fi
12599 rm -f conftest.err conftest.$ac_ext
12600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12601 echo "${ECHO_T}$ac_header_preproc" >&6
12602
12603 # So? What about this header?
12604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12605 yes:no: )
12606 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12607 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12609 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12610 ac_header_preproc=yes
12611 ;;
12612 no:yes:* )
12613 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12614 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12615 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12616 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12617 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12618 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12620 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12621 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12622 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12623 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12624 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12625 (
12626 cat <<\_ASBOX
12627 ## ------------------------------------------ ##
12628 ## Report this to the AC_PACKAGE_NAME lists. ##
12629 ## ------------------------------------------ ##
12630 _ASBOX
12631 ) |
12632 sed "s/^/$as_me: WARNING: /" >&2
12633 ;;
12634 esac
12635 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12636 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12637 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640 ac_cv_header_X11_xpm_h=$ac_header_preproc
12641 fi
12642 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12643 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12644
12645 fi
12646 if test $ac_cv_header_X11_xpm_h = yes; then
12647 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12648 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12649 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652 ac_check_lib_save_LIBS=$LIBS
12653 LIBS="-lXpm -lX11 $LIBS"
12654 cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h. */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660
12661 /* Override any gcc2 internal prototype to avoid an error. */
12662 #ifdef __cplusplus
12663 extern "C"
12664 #endif
12665 /* We use char because int might match the return type of a gcc2
12666 builtin and then its argument prototype would still apply. */
12667 char XpmReadFileToPixmap ();
12668 int
12669 main ()
12670 {
12671 XpmReadFileToPixmap ();
12672 ;
12673 return 0;
12674 }
12675 _ACEOF
12676 rm -f conftest.$ac_objext conftest$ac_exeext
12677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12678 (eval $ac_link) 2>conftest.er1
12679 ac_status=$?
12680 grep -v '^ *+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } &&
12685 { ac_try='test -z "$ac_c_werror_flag"
12686 || test ! -s conftest.err'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; } &&
12692 { ac_try='test -s conftest$ac_exeext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12699 else
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12704 fi
12705 rm -f conftest.err conftest.$ac_objext \
12706 conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12708 fi
12709 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12710 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12711 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12712 HAVE_XPM=yes
12713 fi
12714
12715 fi
12716
12717
12718 if test "${HAVE_XPM}" = "yes"; then
12719 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12720 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12721 cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h. */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 #include "X11/xpm.h"
12728 #ifndef XpmReturnAllocPixels
12729 no_return_alloc_pixels
12730 #endif
12731
12732 _ACEOF
12733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12734 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12735 HAVE_XPM=no
12736 else
12737 HAVE_XPM=yes
12738 fi
12739 rm -f conftest*
12740
12741
12742 if test "${HAVE_XPM}" = "yes"; then
12743 echo "$as_me:$LINENO: result: yes" >&5
12744 echo "${ECHO_T}yes" >&6
12745 else
12746 echo "$as_me:$LINENO: result: no" >&5
12747 echo "${ECHO_T}no" >&6
12748 fi
12749 fi
12750 fi
12751
12752 if test "${HAVE_XPM}" = "yes"; then
12753
12754 cat >>confdefs.h <<\_ACEOF
12755 #define HAVE_XPM 1
12756 _ACEOF
12757
12758 fi
12759 fi
12760
12761 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12762 HAVE_JPEG=no
12763 if test "${HAVE_X11}" = "yes"; then
12764 if test "${with_jpeg}" != "no"; then
12765 if test "${ac_cv_header_jerror_h+set}" = set; then
12766 echo "$as_me:$LINENO: checking for jerror.h" >&5
12767 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12768 if test "${ac_cv_header_jerror_h+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 fi
12771 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12772 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12773 else
12774 # Is the header compilable?
12775 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12776 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h. */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 $ac_includes_default
12784 #include <jerror.h>
12785 _ACEOF
12786 rm -f conftest.$ac_objext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788 (eval $ac_compile) 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -z "$ac_c_werror_flag"
12796 || test ! -s conftest.err'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest.$ac_objext'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 ac_header_compiler=yes
12809 else
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813 ac_header_compiler=no
12814 fi
12815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12817 echo "${ECHO_T}$ac_header_compiler" >&6
12818
12819 # Is the header present?
12820 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12821 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12822 cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h. */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 #include <jerror.h>
12829 _ACEOF
12830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } >/dev/null; then
12838 if test -s conftest.err; then
12839 ac_cpp_err=$ac_c_preproc_warn_flag
12840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12841 else
12842 ac_cpp_err=
12843 fi
12844 else
12845 ac_cpp_err=yes
12846 fi
12847 if test -z "$ac_cpp_err"; then
12848 ac_header_preproc=yes
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_header_preproc=no
12854 fi
12855 rm -f conftest.err conftest.$ac_ext
12856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12857 echo "${ECHO_T}$ac_header_preproc" >&6
12858
12859 # So? What about this header?
12860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12861 yes:no: )
12862 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12863 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12864 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12865 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12866 ac_header_preproc=yes
12867 ;;
12868 no:yes:* )
12869 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12870 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12871 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12872 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12874 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12875 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12876 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12877 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12878 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12879 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12880 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12881 (
12882 cat <<\_ASBOX
12883 ## ------------------------------------------ ##
12884 ## Report this to the AC_PACKAGE_NAME lists. ##
12885 ## ------------------------------------------ ##
12886 _ASBOX
12887 ) |
12888 sed "s/^/$as_me: WARNING: /" >&2
12889 ;;
12890 esac
12891 echo "$as_me:$LINENO: checking for jerror.h" >&5
12892 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12893 if test "${ac_cv_header_jerror_h+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 else
12896 ac_cv_header_jerror_h=$ac_header_preproc
12897 fi
12898 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12899 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12900
12901 fi
12902 if test $ac_cv_header_jerror_h = yes; then
12903 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12904 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12905 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 else
12908 ac_check_lib_save_LIBS=$LIBS
12909 LIBS="-ljpeg $LIBS"
12910 cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h. */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12916
12917 /* Override any gcc2 internal prototype to avoid an error. */
12918 #ifdef __cplusplus
12919 extern "C"
12920 #endif
12921 /* We use char because int might match the return type of a gcc2
12922 builtin and then its argument prototype would still apply. */
12923 char jpeg_destroy_compress ();
12924 int
12925 main ()
12926 {
12927 jpeg_destroy_compress ();
12928 ;
12929 return 0;
12930 }
12931 _ACEOF
12932 rm -f conftest.$ac_objext conftest$ac_exeext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12934 (eval $ac_link) 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag"
12942 || test ! -s conftest.err'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; } &&
12948 { ac_try='test -s conftest$ac_exeext'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12955 else
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12960 fi
12961 rm -f conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12963 LIBS=$ac_check_lib_save_LIBS
12964 fi
12965 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12966 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12967 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12968 HAVE_JPEG=yes
12969 fi
12970
12971 fi
12972
12973
12974 fi
12975
12976
12977 if test "${HAVE_JPEG}" = "yes"; then
12978 cat >>confdefs.h <<\_ACEOF
12979 #define HAVE_JPEG 1
12980 _ACEOF
12981
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h. */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 #include <jpeglib.h>
12989 version=JPEG_LIB_VERSION
12990
12991 _ACEOF
12992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12993 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12994 cat >>confdefs.h <<\_ACEOF
12995 #define HAVE_JPEG 1
12996 _ACEOF
12997
12998 else
12999 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13000 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13001 HAVE_JPEG=no
13002 fi
13003 rm -f conftest*
13004
13005 fi
13006 fi
13007
13008 ### Use -lpng if available, unless `--with-png=no'.
13009 HAVE_PNG=no
13010 if test "${HAVE_X11}" = "yes"; then
13011 if test "${with_png}" != "no"; then
13012 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13013 # in /usr/include/libpng.
13014
13015
13016 for ac_header in png.h libpng/png.h
13017 do
13018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13020 echo "$as_me:$LINENO: checking for $ac_header" >&5
13021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 fi
13025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13027 else
13028 # Is the header compilable?
13029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13031 cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h. */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 $ac_includes_default
13038 #include <$ac_header>
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag"
13050 || test ! -s conftest.err'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest.$ac_objext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_header_compiler=yes
13063 else
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067 ac_header_compiler=no
13068 fi
13069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13071 echo "${ECHO_T}$ac_header_compiler" >&6
13072
13073 # Is the header present?
13074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13076 cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h. */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 #include <$ac_header>
13083 _ACEOF
13084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13086 ac_status=$?
13087 grep -v '^ *+' conftest.er1 >conftest.err
13088 rm -f conftest.er1
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } >/dev/null; then
13092 if test -s conftest.err; then
13093 ac_cpp_err=$ac_c_preproc_warn_flag
13094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13095 else
13096 ac_cpp_err=
13097 fi
13098 else
13099 ac_cpp_err=yes
13100 fi
13101 if test -z "$ac_cpp_err"; then
13102 ac_header_preproc=yes
13103 else
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13106
13107 ac_header_preproc=no
13108 fi
13109 rm -f conftest.err conftest.$ac_ext
13110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13111 echo "${ECHO_T}$ac_header_preproc" >&6
13112
13113 # So? What about this header?
13114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13115 yes:no: )
13116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13120 ac_header_preproc=yes
13121 ;;
13122 no:yes:* )
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13135 (
13136 cat <<\_ASBOX
13137 ## ------------------------------------------ ##
13138 ## Report this to the AC_PACKAGE_NAME lists. ##
13139 ## ------------------------------------------ ##
13140 _ASBOX
13141 ) |
13142 sed "s/^/$as_me: WARNING: /" >&2
13143 ;;
13144 esac
13145 echo "$as_me:$LINENO: checking for $ac_header" >&5
13146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150 eval "$as_ac_Header=\$ac_header_preproc"
13151 fi
13152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13154
13155 fi
13156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13157 cat >>confdefs.h <<_ACEOF
13158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13159 _ACEOF
13160
13161 fi
13162
13163 done
13164
13165 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13166 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13167 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
13168 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171 ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-lpng -lz -lm $LIBS"
13173 cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h. */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13179
13180 /* Override any gcc2 internal prototype to avoid an error. */
13181 #ifdef __cplusplus
13182 extern "C"
13183 #endif
13184 /* We use char because int might match the return type of a gcc2
13185 builtin and then its argument prototype would still apply. */
13186 char png_get_channels ();
13187 int
13188 main ()
13189 {
13190 png_get_channels ();
13191 ;
13192 return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13197 (eval $ac_link) 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -z "$ac_c_werror_flag"
13205 || test ! -s conftest.err'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_cv_lib_png_png_get_channels=yes
13218 else
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13221
13222 ac_cv_lib_png_png_get_channels=no
13223 fi
13224 rm -f conftest.err conftest.$ac_objext \
13225 conftest$ac_exeext conftest.$ac_ext
13226 LIBS=$ac_check_lib_save_LIBS
13227 fi
13228 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13229 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
13230 if test $ac_cv_lib_png_png_get_channels = yes; then
13231 HAVE_PNG=yes
13232 fi
13233
13234 fi
13235 fi
13236
13237 if test "${HAVE_PNG}" = "yes"; then
13238
13239 cat >>confdefs.h <<\_ACEOF
13240 #define HAVE_PNG 1
13241 _ACEOF
13242
13243 fi
13244 fi
13245
13246 ### Use -ltiff if available, unless `--with-tiff=no'.
13247 HAVE_TIFF=no
13248 if test "${HAVE_X11}" = "yes"; then
13249 if test "${with_tiff}" != "no"; then
13250 if test "${ac_cv_header_tiffio_h+set}" = set; then
13251 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13252 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13253 if test "${ac_cv_header_tiffio_h+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 fi
13256 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13257 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13258 else
13259 # Is the header compilable?
13260 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13261 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
13262 cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h. */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13268 $ac_includes_default
13269 #include <tiffio.h>
13270 _ACEOF
13271 rm -f conftest.$ac_objext
13272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13273 (eval $ac_compile) 2>conftest.er1
13274 ac_status=$?
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -z "$ac_c_werror_flag"
13281 || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try='test -s conftest.$ac_objext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 ac_header_compiler=yes
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13297
13298 ac_header_compiler=no
13299 fi
13300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13302 echo "${ECHO_T}$ac_header_compiler" >&6
13303
13304 # Is the header present?
13305 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13306 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
13307 cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h. */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 #include <tiffio.h>
13314 _ACEOF
13315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13317 ac_status=$?
13318 grep -v '^ *+' conftest.er1 >conftest.err
13319 rm -f conftest.er1
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } >/dev/null; then
13323 if test -s conftest.err; then
13324 ac_cpp_err=$ac_c_preproc_warn_flag
13325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13326 else
13327 ac_cpp_err=
13328 fi
13329 else
13330 ac_cpp_err=yes
13331 fi
13332 if test -z "$ac_cpp_err"; then
13333 ac_header_preproc=yes
13334 else
13335 echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338 ac_header_preproc=no
13339 fi
13340 rm -f conftest.err conftest.$ac_ext
13341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13342 echo "${ECHO_T}$ac_header_preproc" >&6
13343
13344 # So? What about this header?
13345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13346 yes:no: )
13347 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13348 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13349 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13350 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13351 ac_header_preproc=yes
13352 ;;
13353 no:yes:* )
13354 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13355 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13356 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13357 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13358 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13359 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13360 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13361 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13362 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13363 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13364 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13365 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13366 (
13367 cat <<\_ASBOX
13368 ## ------------------------------------------ ##
13369 ## Report this to the AC_PACKAGE_NAME lists. ##
13370 ## ------------------------------------------ ##
13371 _ASBOX
13372 ) |
13373 sed "s/^/$as_me: WARNING: /" >&2
13374 ;;
13375 esac
13376 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13377 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13378 if test "${ac_cv_header_tiffio_h+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381 ac_cv_header_tiffio_h=$ac_header_preproc
13382 fi
13383 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13384 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13385
13386 fi
13387 if test $ac_cv_header_tiffio_h = yes; then
13388 tifflibs="-lz -lm"
13389 # At least one tiff package requires the jpeg library.
13390 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13391 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13392 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
13393 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 else
13396 ac_check_lib_save_LIBS=$LIBS
13397 LIBS="-ltiff $tifflibs $LIBS"
13398 cat >conftest.$ac_ext <<_ACEOF
13399 /* confdefs.h. */
13400 _ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13404
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 #ifdef __cplusplus
13407 extern "C"
13408 #endif
13409 /* We use char because int might match the return type of a gcc2
13410 builtin and then its argument prototype would still apply. */
13411 char TIFFGetVersion ();
13412 int
13413 main ()
13414 {
13415 TIFFGetVersion ();
13416 ;
13417 return 0;
13418 }
13419 _ACEOF
13420 rm -f conftest.$ac_objext conftest$ac_exeext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13422 (eval $ac_link) 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -z "$ac_c_werror_flag"
13430 || test ! -s conftest.err'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_cv_lib_tiff_TIFFGetVersion=yes
13443 else
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13446
13447 ac_cv_lib_tiff_TIFFGetVersion=no
13448 fi
13449 rm -f conftest.err conftest.$ac_objext \
13450 conftest$ac_exeext conftest.$ac_ext
13451 LIBS=$ac_check_lib_save_LIBS
13452 fi
13453 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13454 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
13455 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13456 HAVE_TIFF=yes
13457 fi
13458
13459 fi
13460
13461
13462 fi
13463
13464 if test "${HAVE_TIFF}" = "yes"; then
13465
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_TIFF 1
13468 _ACEOF
13469
13470 fi
13471 fi
13472
13473 ### Use -lgif if available, unless `--with-gif=no'.
13474 HAVE_GIF=no
13475 if test "${HAVE_X11}" = "yes"; then
13476 if test "${with_gif}" != "no"; then
13477 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13478 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13479 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13480 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 fi
13483 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13484 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13485 else
13486 # Is the header compilable?
13487 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13488 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
13489 cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h. */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 $ac_includes_default
13496 #include <gif_lib.h>
13497 _ACEOF
13498 rm -f conftest.$ac_objext
13499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500 (eval $ac_compile) 2>conftest.er1
13501 ac_status=$?
13502 grep -v '^ *+' conftest.er1 >conftest.err
13503 rm -f conftest.er1
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag"
13508 || test ! -s conftest.err'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try='test -s conftest.$ac_objext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 ac_header_compiler=yes
13521 else
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13524
13525 ac_header_compiler=no
13526 fi
13527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13529 echo "${ECHO_T}$ac_header_compiler" >&6
13530
13531 # Is the header present?
13532 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13533 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h. */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 #include <gif_lib.h>
13541 _ACEOF
13542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13544 ac_status=$?
13545 grep -v '^ *+' conftest.er1 >conftest.err
13546 rm -f conftest.er1
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } >/dev/null; then
13550 if test -s conftest.err; then
13551 ac_cpp_err=$ac_c_preproc_warn_flag
13552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13553 else
13554 ac_cpp_err=
13555 fi
13556 else
13557 ac_cpp_err=yes
13558 fi
13559 if test -z "$ac_cpp_err"; then
13560 ac_header_preproc=yes
13561 else
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 ac_header_preproc=no
13566 fi
13567 rm -f conftest.err conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13569 echo "${ECHO_T}$ac_header_preproc" >&6
13570
13571 # So? What about this header?
13572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13573 yes:no: )
13574 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13575 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13577 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13578 ac_header_preproc=yes
13579 ;;
13580 no:yes:* )
13581 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13582 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13583 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13584 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13585 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13586 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13587 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13588 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13589 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13590 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13591 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13592 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13593 (
13594 cat <<\_ASBOX
13595 ## ------------------------------------------ ##
13596 ## Report this to the AC_PACKAGE_NAME lists. ##
13597 ## ------------------------------------------ ##
13598 _ASBOX
13599 ) |
13600 sed "s/^/$as_me: WARNING: /" >&2
13601 ;;
13602 esac
13603 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13604 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13605 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608 ac_cv_header_gif_lib_h=$ac_header_preproc
13609 fi
13610 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13611 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13612
13613 fi
13614 if test $ac_cv_header_gif_lib_h = yes; then
13615 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13616 # Earlier versions can crash Emacs.
13617 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13618 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
13619 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 else
13622 ac_check_lib_save_LIBS=$LIBS
13623 LIBS="-lungif $LIBS"
13624 cat >conftest.$ac_ext <<_ACEOF
13625 /* confdefs.h. */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13630
13631 /* Override any gcc2 internal prototype to avoid an error. */
13632 #ifdef __cplusplus
13633 extern "C"
13634 #endif
13635 /* We use char because int might match the return type of a gcc2
13636 builtin and then its argument prototype would still apply. */
13637 char EGifPutExtensionLast ();
13638 int
13639 main ()
13640 {
13641 EGifPutExtensionLast ();
13642 ;
13643 return 0;
13644 }
13645 _ACEOF
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13648 (eval $ac_link) 2>conftest.er1
13649 ac_status=$?
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try='test -z "$ac_c_werror_flag"
13656 || test ! -s conftest.err'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; } &&
13662 { ac_try='test -s conftest$ac_exeext'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13669 else
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13672
13673 ac_cv_lib_ungif_EGifPutExtensionLast=no
13674 fi
13675 rm -f conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13677 LIBS=$ac_check_lib_save_LIBS
13678 fi
13679 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13680 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13681 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13682 HAVE_GIF=yes
13683 fi
13684
13685 fi
13686
13687
13688 fi
13689
13690 if test "${HAVE_GIF}" = "yes"; then
13691
13692 cat >>confdefs.h <<\_ACEOF
13693 #define HAVE_GIF 1
13694 _ACEOF
13695
13696 fi
13697 fi
13698
13699 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13700 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13701 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13702 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 fi
13705 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13706 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13707 else
13708 # Is the header compilable?
13709 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13710 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h. */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 $ac_includes_default
13718 #include <malloc/malloc.h>
13719 _ACEOF
13720 rm -f conftest.$ac_objext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13722 (eval $ac_compile) 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest.$ac_objext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 ac_header_compiler=yes
13742 else
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13745
13746 ac_header_compiler=no
13747 fi
13748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13750 echo "${ECHO_T}$ac_header_compiler" >&6
13751
13752 # Is the header present?
13753 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13754 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h. */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 #include <malloc/malloc.h>
13762 _ACEOF
13763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev/null; then
13771 if test -s conftest.err; then
13772 ac_cpp_err=$ac_c_preproc_warn_flag
13773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13774 else
13775 ac_cpp_err=
13776 fi
13777 else
13778 ac_cpp_err=yes
13779 fi
13780 if test -z "$ac_cpp_err"; then
13781 ac_header_preproc=yes
13782 else
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13785
13786 ac_header_preproc=no
13787 fi
13788 rm -f conftest.err conftest.$ac_ext
13789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13790 echo "${ECHO_T}$ac_header_preproc" >&6
13791
13792 # So? What about this header?
13793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13794 yes:no: )
13795 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13796 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13798 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13799 ac_header_preproc=yes
13800 ;;
13801 no:yes:* )
13802 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13803 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13805 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13807 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13809 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13811 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13813 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13814 (
13815 cat <<\_ASBOX
13816 ## ------------------------------------------ ##
13817 ## Report this to the AC_PACKAGE_NAME lists. ##
13818 ## ------------------------------------------ ##
13819 _ASBOX
13820 ) |
13821 sed "s/^/$as_me: WARNING: /" >&2
13822 ;;
13823 esac
13824 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13825 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13826 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13830 fi
13831 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13832 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13833
13834 fi
13835 if test $ac_cv_header_malloc_malloc_h = yes; then
13836
13837 cat >>confdefs.h <<\_ACEOF
13838 #define HAVE_MALLOC_MALLOC_H 1
13839 _ACEOF
13840
13841 fi
13842
13843
13844
13845 ### Use Mac OS X Carbon API to implement GUI.
13846 if test "${HAVE_CARBON}" = "yes"; then
13847
13848 cat >>confdefs.h <<\_ACEOF
13849 #define HAVE_CARBON 1
13850 _ACEOF
13851
13852 ## Specify the install directory
13853 carbon_appdir=
13854 if test "${carbon_appdir_x}" != ""; then
13855 case ${carbon_appdir_x} in
13856 y | ye | yes) carbon_appdir=/Applications ;;
13857 * ) carbon_appdir=${carbon_appdir_x} ;;
13858 esac
13859 fi
13860 # We also have mouse menus.
13861 HAVE_MENUS=yes
13862 fi
13863
13864 ### Use session management (-lSM -lICE) if available
13865 HAVE_X_SM=no
13866 if test "${HAVE_X11}" = "yes"; then
13867 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13868 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13869 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13870 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 fi
13873 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13874 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13875 else
13876 # Is the header compilable?
13877 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13878 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13879 cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h. */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 $ac_includes_default
13886 #include <X11/SM/SMlib.h>
13887 _ACEOF
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>conftest.er1
13891 ac_status=$?
13892 grep -v '^ *+' conftest.er1 >conftest.err
13893 rm -f conftest.er1
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try='test -z "$ac_c_werror_flag"
13898 || test ! -s conftest.err'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest.$ac_objext'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
13910 ac_header_compiler=yes
13911 else
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915 ac_header_compiler=no
13916 fi
13917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13919 echo "${ECHO_T}$ac_header_compiler" >&6
13920
13921 # Is the header present?
13922 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13923 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <X11/SM/SMlib.h>
13931 _ACEOF
13932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13934 ac_status=$?
13935 grep -v '^ *+' conftest.er1 >conftest.err
13936 rm -f conftest.er1
13937 cat conftest.err >&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } >/dev/null; then
13940 if test -s conftest.err; then
13941 ac_cpp_err=$ac_c_preproc_warn_flag
13942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13943 else
13944 ac_cpp_err=
13945 fi
13946 else
13947 ac_cpp_err=yes
13948 fi
13949 if test -z "$ac_cpp_err"; then
13950 ac_header_preproc=yes
13951 else
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13954
13955 ac_header_preproc=no
13956 fi
13957 rm -f conftest.err conftest.$ac_ext
13958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13959 echo "${ECHO_T}$ac_header_preproc" >&6
13960
13961 # So? What about this header?
13962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13963 yes:no: )
13964 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13965 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13967 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13968 ac_header_preproc=yes
13969 ;;
13970 no:yes:* )
13971 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13972 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13974 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13976 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13978 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13980 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13982 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13983 (
13984 cat <<\_ASBOX
13985 ## ------------------------------------------ ##
13986 ## Report this to the AC_PACKAGE_NAME lists. ##
13987 ## ------------------------------------------ ##
13988 _ASBOX
13989 ) |
13990 sed "s/^/$as_me: WARNING: /" >&2
13991 ;;
13992 esac
13993 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13994 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13995 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13999 fi
14000 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14001 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
14002
14003 fi
14004 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14005 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14006 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
14007 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010 ac_check_lib_save_LIBS=$LIBS
14011 LIBS="-lSM -lICE $LIBS"
14012 cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h. */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14018
14019 /* Override any gcc2 internal prototype to avoid an error. */
14020 #ifdef __cplusplus
14021 extern "C"
14022 #endif
14023 /* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14025 char SmcOpenConnection ();
14026 int
14027 main ()
14028 {
14029 SmcOpenConnection ();
14030 ;
14031 return 0;
14032 }
14033 _ACEOF
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14036 (eval $ac_link) 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest$ac_exeext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_lib_SM_SmcOpenConnection=yes
14057 else
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061 ac_cv_lib_SM_SmcOpenConnection=no
14062 fi
14063 rm -f conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
14065 LIBS=$ac_check_lib_save_LIBS
14066 fi
14067 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14068 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
14069 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14070 HAVE_X_SM=yes
14071 fi
14072
14073 fi
14074
14075
14076
14077 if test "${HAVE_X_SM}" = "yes"; then
14078
14079 cat >>confdefs.h <<\_ACEOF
14080 #define HAVE_X_SM 1
14081 _ACEOF
14082
14083 case "$LIBS" in
14084 *-lSM*) ;;
14085 *) LIBS="-lSM -lICE $LIBS" ;;
14086 esac
14087 fi
14088 fi
14089
14090 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14091 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14092 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
14093 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096 cat >conftest.$ac_ext <<_ACEOF
14097 /* confdefs.h. */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14102 #include <netdb.h>
14103 int
14104 main ()
14105 {
14106 return h_errno;
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -z "$ac_c_werror_flag"
14121 || test ! -s conftest.err'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; } &&
14127 { ac_try='test -s conftest$ac_exeext'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }; then
14133 emacs_cv_netdb_declares_h_errno=yes
14134 else
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14137
14138 emacs_cv_netdb_declares_h_errno=no
14139 fi
14140 rm -f conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 fi
14143 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14144 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
14145 if test $emacs_cv_netdb_declares_h_errno = yes; then
14146
14147 cat >>confdefs.h <<\_ACEOF
14148 #define HAVE_H_ERRNO 1
14149 _ACEOF
14150
14151 fi
14152
14153 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14154 # for constant arguments. Useless!
14155 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14156 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14157 if test "${ac_cv_working_alloca_h+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160 cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h. */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14166 #include <alloca.h>
14167 int
14168 main ()
14169 {
14170 char *p = (char *) alloca (2 * sizeof (int));
14171 ;
14172 return 0;
14173 }
14174 _ACEOF
14175 rm -f conftest.$ac_objext conftest$ac_exeext
14176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14177 (eval $ac_link) 2>conftest.er1
14178 ac_status=$?
14179 grep -v '^ *+' conftest.er1 >conftest.err
14180 rm -f conftest.er1
14181 cat conftest.err >&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
14184 { ac_try='test -z "$ac_c_werror_flag"
14185 || test ! -s conftest.err'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; } &&
14191 { ac_try='test -s conftest$ac_exeext'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
14197 ac_cv_working_alloca_h=yes
14198 else
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14201
14202 ac_cv_working_alloca_h=no
14203 fi
14204 rm -f conftest.err conftest.$ac_objext \
14205 conftest$ac_exeext conftest.$ac_ext
14206 fi
14207 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14208 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14209 if test $ac_cv_working_alloca_h = yes; then
14210
14211 cat >>confdefs.h <<\_ACEOF
14212 #define HAVE_ALLOCA_H 1
14213 _ACEOF
14214
14215 fi
14216
14217 echo "$as_me:$LINENO: checking for alloca" >&5
14218 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14219 if test "${ac_cv_func_alloca_works+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 #ifdef __GNUC__
14229 # define alloca __builtin_alloca
14230 #else
14231 # ifdef _MSC_VER
14232 # include <malloc.h>
14233 # define alloca _alloca
14234 # else
14235 # if HAVE_ALLOCA_H
14236 # include <alloca.h>
14237 # else
14238 # ifdef _AIX
14239 #pragma alloca
14240 # else
14241 # ifndef alloca /* predefined by HP cc +Olibcalls */
14242 char *alloca ();
14243 # endif
14244 # endif
14245 # endif
14246 # endif
14247 #endif
14248
14249 int
14250 main ()
14251 {
14252 char *p = (char *) alloca (1);
14253 ;
14254 return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>conftest.er1
14260 ac_status=$?
14261 grep -v '^ *+' conftest.er1 >conftest.err
14262 rm -f conftest.er1
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest$ac_exeext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_cv_func_alloca_works=yes
14280 else
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 ac_cv_func_alloca_works=no
14285 fi
14286 rm -f conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 fi
14289 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14290 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14291
14292 if test $ac_cv_func_alloca_works = yes; then
14293
14294 cat >>confdefs.h <<\_ACEOF
14295 #define HAVE_ALLOCA 1
14296 _ACEOF
14297
14298 else
14299 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14300 # that cause trouble. Some versions do not even contain alloca or
14301 # contain a buggy version. If you still want to use their alloca,
14302 # use ar to extract alloca.o from them instead of compiling alloca.c.
14303
14304 ALLOCA=alloca.$ac_objext
14305
14306 cat >>confdefs.h <<\_ACEOF
14307 #define C_ALLOCA 1
14308 _ACEOF
14309
14310
14311 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14312 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14313 if test "${ac_cv_os_cray+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h. */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 #if defined(CRAY) && ! defined(CRAY2)
14323 webecray
14324 #else
14325 wenotbecray
14326 #endif
14327
14328 _ACEOF
14329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14330 $EGREP "webecray" >/dev/null 2>&1; then
14331 ac_cv_os_cray=yes
14332 else
14333 ac_cv_os_cray=no
14334 fi
14335 rm -f conftest*
14336
14337 fi
14338 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14339 echo "${ECHO_T}$ac_cv_os_cray" >&6
14340 if test $ac_cv_os_cray = yes; then
14341 for ac_func in _getb67 GETB67 getb67; do
14342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14343 echo "$as_me:$LINENO: checking for $ac_func" >&5
14344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14345 if eval "test \"\${$as_ac_var+set}\" = set"; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h. */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14356 #define $ac_func innocuous_$ac_func
14357
14358 /* System header to define __stub macros and hopefully few prototypes,
14359 which can conflict with char $ac_func (); below.
14360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14361 <limits.h> exists even on freestanding compilers. */
14362
14363 #ifdef __STDC__
14364 # include <limits.h>
14365 #else
14366 # include <assert.h>
14367 #endif
14368
14369 #undef $ac_func
14370
14371 /* Override any gcc2 internal prototype to avoid an error. */
14372 #ifdef __cplusplus
14373 extern "C"
14374 {
14375 #endif
14376 /* We use char because int might match the return type of a gcc2
14377 builtin and then its argument prototype would still apply. */
14378 char $ac_func ();
14379 /* The GNU C library defines this for functions which it implements
14380 to always fail with ENOSYS. Some functions are actually named
14381 something starting with __ and the normal name is an alias. */
14382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14383 choke me
14384 #else
14385 char (*f) () = $ac_func;
14386 #endif
14387 #ifdef __cplusplus
14388 }
14389 #endif
14390
14391 int
14392 main ()
14393 {
14394 return f != $ac_func;
14395 ;
14396 return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401 (eval $ac_link) 2>conftest.er1
14402 ac_status=$?
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag"
14409 || test ! -s conftest.err'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest$ac_exeext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 eval "$as_ac_var=yes"
14422 else
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 eval "$as_ac_var=no"
14427 fi
14428 rm -f conftest.err conftest.$ac_objext \
14429 conftest$ac_exeext conftest.$ac_ext
14430 fi
14431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14433 if test `eval echo '${'$as_ac_var'}'` = yes; then
14434
14435 cat >>confdefs.h <<_ACEOF
14436 #define CRAY_STACKSEG_END $ac_func
14437 _ACEOF
14438
14439 break
14440 fi
14441
14442 done
14443 fi
14444
14445 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14446 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14447 if test "${ac_cv_c_stack_direction+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450 if test "$cross_compiling" = yes; then
14451 ac_cv_c_stack_direction=0
14452 else
14453 cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h. */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 int
14460 find_stack_direction ()
14461 {
14462 static char *addr = 0;
14463 auto char dummy;
14464 if (addr == 0)
14465 {
14466 addr = &dummy;
14467 return find_stack_direction ();
14468 }
14469 else
14470 return (&dummy > addr) ? 1 : -1;
14471 }
14472
14473 int
14474 main ()
14475 {
14476 exit (find_stack_direction () < 0);
14477 }
14478 _ACEOF
14479 rm -f conftest$ac_exeext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14481 (eval $ac_link) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 ac_cv_c_stack_direction=1
14491 else
14492 echo "$as_me: program exited with status $ac_status" >&5
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496 ( exit $ac_status )
14497 ac_cv_c_stack_direction=-1
14498 fi
14499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14500 fi
14501 fi
14502 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14503 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14504
14505 cat >>confdefs.h <<_ACEOF
14506 #define STACK_DIRECTION $ac_cv_c_stack_direction
14507 _ACEOF
14508
14509
14510 fi
14511
14512
14513 # fmod, logb, and frexp are found in -lm on most systems.
14514 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14515
14516 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14517 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
14518 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 else
14521 ac_check_lib_save_LIBS=$LIBS
14522 LIBS="-lm $LIBS"
14523 cat >conftest.$ac_ext <<_ACEOF
14524 /* confdefs.h. */
14525 _ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14529
14530 /* Override any gcc2 internal prototype to avoid an error. */
14531 #ifdef __cplusplus
14532 extern "C"
14533 #endif
14534 /* We use char because int might match the return type of a gcc2
14535 builtin and then its argument prototype would still apply. */
14536 char sqrt ();
14537 int
14538 main ()
14539 {
14540 sqrt ();
14541 ;
14542 return 0;
14543 }
14544 _ACEOF
14545 rm -f conftest.$ac_objext conftest$ac_exeext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14547 (eval $ac_link) 2>conftest.er1
14548 ac_status=$?
14549 grep -v '^ *+' conftest.er1 >conftest.err
14550 rm -f conftest.er1
14551 cat conftest.err >&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } &&
14554 { ac_try='test -z "$ac_c_werror_flag"
14555 || test ! -s conftest.err'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try='test -s conftest$ac_exeext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 ac_cv_lib_m_sqrt=yes
14568 else
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572 ac_cv_lib_m_sqrt=no
14573 fi
14574 rm -f conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14577 fi
14578 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14579 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14580 if test $ac_cv_lib_m_sqrt = yes; then
14581 cat >>confdefs.h <<_ACEOF
14582 #define HAVE_LIBM 1
14583 _ACEOF
14584
14585 LIBS="-lm $LIBS"
14586
14587 fi
14588
14589
14590 # Check for mail-locking functions in a "mail" library. Probably this should
14591 # have the same check as for liblockfile below.
14592
14593 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14594 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14595 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 else
14598 ac_check_lib_save_LIBS=$LIBS
14599 LIBS="-lmail $LIBS"
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606
14607 /* Override any gcc2 internal prototype to avoid an error. */
14608 #ifdef __cplusplus
14609 extern "C"
14610 #endif
14611 /* We use char because int might match the return type of a gcc2
14612 builtin and then its argument prototype would still apply. */
14613 char maillock ();
14614 int
14615 main ()
14616 {
14617 maillock ();
14618 ;
14619 return 0;
14620 }
14621 _ACEOF
14622 rm -f conftest.$ac_objext conftest$ac_exeext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624 (eval $ac_link) 2>conftest.er1
14625 ac_status=$?
14626 grep -v '^ *+' conftest.er1 >conftest.err
14627 rm -f conftest.er1
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try='test -z "$ac_c_werror_flag"
14632 || test ! -s conftest.err'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try='test -s conftest$ac_exeext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_cv_lib_mail_maillock=yes
14645 else
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 ac_cv_lib_mail_maillock=no
14650 fi
14651 rm -f conftest.err conftest.$ac_objext \
14652 conftest$ac_exeext conftest.$ac_ext
14653 LIBS=$ac_check_lib_save_LIBS
14654 fi
14655 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14656 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14657 if test $ac_cv_lib_mail_maillock = yes; then
14658 cat >>confdefs.h <<_ACEOF
14659 #define HAVE_LIBMAIL 1
14660 _ACEOF
14661
14662 LIBS="-lmail $LIBS"
14663
14664 fi
14665
14666
14667 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14668 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14669 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672 ac_check_lib_save_LIBS=$LIBS
14673 LIBS="-llockfile $LIBS"
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h. */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680
14681 /* Override any gcc2 internal prototype to avoid an error. */
14682 #ifdef __cplusplus
14683 extern "C"
14684 #endif
14685 /* We use char because int might match the return type of a gcc2
14686 builtin and then its argument prototype would still apply. */
14687 char maillock ();
14688 int
14689 main ()
14690 {
14691 maillock ();
14692 ;
14693 return 0;
14694 }
14695 _ACEOF
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>conftest.er1
14699 ac_status=$?
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_c_werror_flag"
14706 || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_lib_lockfile_maillock=yes
14719 else
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14722
14723 ac_cv_lib_lockfile_maillock=no
14724 fi
14725 rm -f conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727 LIBS=$ac_check_lib_save_LIBS
14728 fi
14729 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14730 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14731 if test $ac_cv_lib_lockfile_maillock = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_LIBLOCKFILE 1
14734 _ACEOF
14735
14736 LIBS="-llockfile $LIBS"
14737
14738 fi
14739
14740 # If we have the shared liblockfile, assume we must use it for mail
14741 # locking (e.g. Debian). If we couldn't link against liblockfile
14742 # (no liblockfile.a installed), ensure that we don't need to.
14743 if test "$ac_cv_lib_lockfile_maillock" = no; then
14744 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14745 set dummy liblockfile.so; ac_word=$2
14746 echo "$as_me:$LINENO: checking for $ac_word" >&5
14747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14748 if test "${ac_cv_prog_liblockfile+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751 if test -n "$liblockfile"; then
14752 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14753 else
14754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14755 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14756 for as_dir in $as_dummy
14757 do
14758 IFS=$as_save_IFS
14759 test -z "$as_dir" && as_dir=.
14760 for ac_exec_ext in '' $ac_executable_extensions; do
14761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14762 ac_cv_prog_liblockfile="yes"
14763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14764 break 2
14765 fi
14766 done
14767 done
14768
14769 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14770 fi
14771 fi
14772 liblockfile=$ac_cv_prog_liblockfile
14773 if test -n "$liblockfile"; then
14774 echo "$as_me:$LINENO: result: $liblockfile" >&5
14775 echo "${ECHO_T}$liblockfile" >&6
14776 else
14777 echo "$as_me:$LINENO: result: no" >&5
14778 echo "${ECHO_T}no" >&6
14779 fi
14780
14781 if test $ac_cv_prog_liblockfile = yes; then
14782 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14783 This probably means that movemail could lose mail.
14784 There may be a \`development' package to install containing liblockfile." >&5
14785 echo "$as_me: error: Shared liblockfile found but can't link against it.
14786 This probably means that movemail could lose mail.
14787 There may be a \`development' package to install containing liblockfile." >&2;}
14788 { (exit 1); exit 1; }; }
14789 else :
14790 fi
14791 fi
14792
14793 for ac_func in touchlock
14794 do
14795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14796 echo "$as_me:$LINENO: checking for $ac_func" >&5
14797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14798 if eval "test \"\${$as_ac_var+set}\" = set"; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 else
14801 cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h. */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14809 #define $ac_func innocuous_$ac_func
14810
14811 /* System header to define __stub macros and hopefully few prototypes,
14812 which can conflict with char $ac_func (); below.
14813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14814 <limits.h> exists even on freestanding compilers. */
14815
14816 #ifdef __STDC__
14817 # include <limits.h>
14818 #else
14819 # include <assert.h>
14820 #endif
14821
14822 #undef $ac_func
14823
14824 /* Override any gcc2 internal prototype to avoid an error. */
14825 #ifdef __cplusplus
14826 extern "C"
14827 {
14828 #endif
14829 /* We use char because int might match the return type of a gcc2
14830 builtin and then its argument prototype would still apply. */
14831 char $ac_func ();
14832 /* The GNU C library defines this for functions which it implements
14833 to always fail with ENOSYS. Some functions are actually named
14834 something starting with __ and the normal name is an alias. */
14835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14836 choke me
14837 #else
14838 char (*f) () = $ac_func;
14839 #endif
14840 #ifdef __cplusplus
14841 }
14842 #endif
14843
14844 int
14845 main ()
14846 {
14847 return f != $ac_func;
14848 ;
14849 return 0;
14850 }
14851 _ACEOF
14852 rm -f conftest.$ac_objext conftest$ac_exeext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14854 (eval $ac_link) 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try='test -z "$ac_c_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest$ac_exeext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 eval "$as_ac_var=yes"
14875 else
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879 eval "$as_ac_var=no"
14880 fi
14881 rm -f conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14883 fi
14884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14886 if test `eval echo '${'$as_ac_var'}'` = yes; then
14887 cat >>confdefs.h <<_ACEOF
14888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14889 _ACEOF
14890
14891 fi
14892 done
14893
14894
14895 for ac_header in maillock.h
14896 do
14897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14899 echo "$as_me:$LINENO: checking for $ac_header" >&5
14900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 fi
14904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14906 else
14907 # Is the header compilable?
14908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14910 cat >conftest.$ac_ext <<_ACEOF
14911 /* confdefs.h. */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 $ac_includes_default
14917 #include <$ac_header>
14918 _ACEOF
14919 rm -f conftest.$ac_objext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921 (eval $ac_compile) 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -z "$ac_c_werror_flag"
14929 || test ! -s conftest.err'
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); }; } &&
14935 { ac_try='test -s conftest.$ac_objext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_header_compiler=yes
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14945
14946 ac_header_compiler=no
14947 fi
14948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14950 echo "${ECHO_T}$ac_header_compiler" >&6
14951
14952 # Is the header present?
14953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h. */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <$ac_header>
14962 _ACEOF
14963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14965 ac_status=$?
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } >/dev/null; then
14971 if test -s conftest.err; then
14972 ac_cpp_err=$ac_c_preproc_warn_flag
14973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14974 else
14975 ac_cpp_err=
14976 fi
14977 else
14978 ac_cpp_err=yes
14979 fi
14980 if test -z "$ac_cpp_err"; then
14981 ac_header_preproc=yes
14982 else
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14985
14986 ac_header_preproc=no
14987 fi
14988 rm -f conftest.err conftest.$ac_ext
14989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14990 echo "${ECHO_T}$ac_header_preproc" >&6
14991
14992 # So? What about this header?
14993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14994 yes:no: )
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14999 ac_header_preproc=yes
15000 ;;
15001 no:yes:* )
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15014 (
15015 cat <<\_ASBOX
15016 ## ------------------------------------------ ##
15017 ## Report this to the AC_PACKAGE_NAME lists. ##
15018 ## ------------------------------------------ ##
15019 _ASBOX
15020 ) |
15021 sed "s/^/$as_me: WARNING: /" >&2
15022 ;;
15023 esac
15024 echo "$as_me:$LINENO: checking for $ac_header" >&5
15025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029 eval "$as_ac_Header=\$ac_header_preproc"
15030 fi
15031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15033
15034 fi
15035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15036 cat >>confdefs.h <<_ACEOF
15037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15038 _ACEOF
15039
15040 fi
15041
15042 done
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114 for ac_func in gethostname getdomainname dup2 \
15115 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15116 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15117 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15118 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15119 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15120 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15121 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15122 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15123 do
15124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15125 echo "$as_me:$LINENO: checking for $ac_func" >&5
15126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15127 if eval "test \"\${$as_ac_var+set}\" = set"; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15138 #define $ac_func innocuous_$ac_func
15139
15140 /* System header to define __stub macros and hopefully few prototypes,
15141 which can conflict with char $ac_func (); below.
15142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15143 <limits.h> exists even on freestanding compilers. */
15144
15145 #ifdef __STDC__
15146 # include <limits.h>
15147 #else
15148 # include <assert.h>
15149 #endif
15150
15151 #undef $ac_func
15152
15153 /* Override any gcc2 internal prototype to avoid an error. */
15154 #ifdef __cplusplus
15155 extern "C"
15156 {
15157 #endif
15158 /* We use char because int might match the return type of a gcc2
15159 builtin and then its argument prototype would still apply. */
15160 char $ac_func ();
15161 /* The GNU C library defines this for functions which it implements
15162 to always fail with ENOSYS. Some functions are actually named
15163 something starting with __ and the normal name is an alias. */
15164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15165 choke me
15166 #else
15167 char (*f) () = $ac_func;
15168 #endif
15169 #ifdef __cplusplus
15170 }
15171 #endif
15172
15173 int
15174 main ()
15175 {
15176 return f != $ac_func;
15177 ;
15178 return 0;
15179 }
15180 _ACEOF
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183 (eval $ac_link) 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag"
15191 || test ! -s conftest.err'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; } &&
15197 { ac_try='test -s conftest$ac_exeext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15200 ac_status=$?
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 eval "$as_ac_var=yes"
15204 else
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208 eval "$as_ac_var=no"
15209 fi
15210 rm -f conftest.err conftest.$ac_objext \
15211 conftest$ac_exeext conftest.$ac_ext
15212 fi
15213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15215 if test `eval echo '${'$as_ac_var'}'` = yes; then
15216 cat >>confdefs.h <<_ACEOF
15217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15218 _ACEOF
15219
15220 fi
15221 done
15222
15223
15224
15225 for ac_header in sys/un.h
15226 do
15227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15229 echo "$as_me:$LINENO: checking for $ac_header" >&5
15230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 fi
15234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15236 else
15237 # Is the header compilable?
15238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15240 cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h. */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 $ac_includes_default
15247 #include <$ac_header>
15248 _ACEOF
15249 rm -f conftest.$ac_objext
15250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15251 (eval $ac_compile) 2>conftest.er1
15252 ac_status=$?
15253 grep -v '^ *+' conftest.er1 >conftest.err
15254 rm -f conftest.er1
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } &&
15258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest.$ac_objext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_header_compiler=yes
15271 else
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275 ac_header_compiler=no
15276 fi
15277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 echo "${ECHO_T}$ac_header_compiler" >&6
15280
15281 # Is the header present?
15282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <$ac_header>
15291 _ACEOF
15292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15294 ac_status=$?
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } >/dev/null; then
15300 if test -s conftest.err; then
15301 ac_cpp_err=$ac_c_preproc_warn_flag
15302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15303 else
15304 ac_cpp_err=
15305 fi
15306 else
15307 ac_cpp_err=yes
15308 fi
15309 if test -z "$ac_cpp_err"; then
15310 ac_header_preproc=yes
15311 else
15312 echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15314
15315 ac_header_preproc=no
15316 fi
15317 rm -f conftest.err conftest.$ac_ext
15318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 echo "${ECHO_T}$ac_header_preproc" >&6
15320
15321 # So? What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15323 yes:no: )
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15328 ac_header_preproc=yes
15329 ;;
15330 no:yes:* )
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15343 (
15344 cat <<\_ASBOX
15345 ## ------------------------------------------ ##
15346 ## Report this to the AC_PACKAGE_NAME lists. ##
15347 ## ------------------------------------------ ##
15348 _ASBOX
15349 ) |
15350 sed "s/^/$as_me: WARNING: /" >&2
15351 ;;
15352 esac
15353 echo "$as_me:$LINENO: checking for $ac_header" >&5
15354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 else
15358 eval "$as_ac_Header=\$ac_header_preproc"
15359 fi
15360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15362
15363 fi
15364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15365 cat >>confdefs.h <<_ACEOF
15366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15367 _ACEOF
15368
15369 fi
15370
15371 done
15372
15373
15374
15375
15376
15377 for ac_header in stdlib.h sys/time.h unistd.h
15378 do
15379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15381 echo "$as_me:$LINENO: checking for $ac_header" >&5
15382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 fi
15386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15388 else
15389 # Is the header compilable?
15390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h. */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 $ac_includes_default
15399 #include <$ac_header>
15400 _ACEOF
15401 rm -f conftest.$ac_objext
15402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15403 (eval $ac_compile) 2>conftest.er1
15404 ac_status=$?
15405 grep -v '^ *+' conftest.er1 >conftest.err
15406 rm -f conftest.er1
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } &&
15410 { ac_try='test -z "$ac_c_werror_flag"
15411 || test ! -s conftest.err'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15414 ac_status=$?
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; } &&
15417 { ac_try='test -s conftest.$ac_objext'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15423 ac_header_compiler=yes
15424 else
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15427
15428 ac_header_compiler=no
15429 fi
15430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15432 echo "${ECHO_T}$ac_header_compiler" >&6
15433
15434 # Is the header present?
15435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15437 cat >conftest.$ac_ext <<_ACEOF
15438 /* confdefs.h. */
15439 _ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15443 #include <$ac_header>
15444 _ACEOF
15445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15447 ac_status=$?
15448 grep -v '^ *+' conftest.er1 >conftest.err
15449 rm -f conftest.er1
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } >/dev/null; then
15453 if test -s conftest.err; then
15454 ac_cpp_err=$ac_c_preproc_warn_flag
15455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15456 else
15457 ac_cpp_err=
15458 fi
15459 else
15460 ac_cpp_err=yes
15461 fi
15462 if test -z "$ac_cpp_err"; then
15463 ac_header_preproc=yes
15464 else
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 ac_header_preproc=no
15469 fi
15470 rm -f conftest.err conftest.$ac_ext
15471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15472 echo "${ECHO_T}$ac_header_preproc" >&6
15473
15474 # So? What about this header?
15475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15476 yes:no: )
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15481 ac_header_preproc=yes
15482 ;;
15483 no:yes:* )
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15496 (
15497 cat <<\_ASBOX
15498 ## ------------------------------------------ ##
15499 ## Report this to the AC_PACKAGE_NAME lists. ##
15500 ## ------------------------------------------ ##
15501 _ASBOX
15502 ) |
15503 sed "s/^/$as_me: WARNING: /" >&2
15504 ;;
15505 esac
15506 echo "$as_me:$LINENO: checking for $ac_header" >&5
15507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 else
15511 eval "$as_ac_Header=\$ac_header_preproc"
15512 fi
15513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15515
15516 fi
15517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15518 cat >>confdefs.h <<_ACEOF
15519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15520 _ACEOF
15521
15522 fi
15523
15524 done
15525
15526
15527 for ac_func in alarm
15528 do
15529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15530 echo "$as_me:$LINENO: checking for $ac_func" >&5
15531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15532 if eval "test \"\${$as_ac_var+set}\" = set"; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535 cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h. */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15543 #define $ac_func innocuous_$ac_func
15544
15545 /* System header to define __stub macros and hopefully few prototypes,
15546 which can conflict with char $ac_func (); below.
15547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15548 <limits.h> exists even on freestanding compilers. */
15549
15550 #ifdef __STDC__
15551 # include <limits.h>
15552 #else
15553 # include <assert.h>
15554 #endif
15555
15556 #undef $ac_func
15557
15558 /* Override any gcc2 internal prototype to avoid an error. */
15559 #ifdef __cplusplus
15560 extern "C"
15561 {
15562 #endif
15563 /* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
15565 char $ac_func ();
15566 /* The GNU C library defines this for functions which it implements
15567 to always fail with ENOSYS. Some functions are actually named
15568 something starting with __ and the normal name is an alias. */
15569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15570 choke me
15571 #else
15572 char (*f) () = $ac_func;
15573 #endif
15574 #ifdef __cplusplus
15575 }
15576 #endif
15577
15578 int
15579 main ()
15580 {
15581 return f != $ac_func;
15582 ;
15583 return 0;
15584 }
15585 _ACEOF
15586 rm -f conftest.$ac_objext conftest$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag"
15596 || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 eval "$as_ac_var=yes"
15609 else
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 eval "$as_ac_var=no"
15614 fi
15615 rm -f conftest.err conftest.$ac_objext \
15616 conftest$ac_exeext conftest.$ac_ext
15617 fi
15618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15620 if test `eval echo '${'$as_ac_var'}'` = yes; then
15621 cat >>confdefs.h <<_ACEOF
15622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15623 _ACEOF
15624
15625 fi
15626 done
15627
15628 echo "$as_me:$LINENO: checking for working mktime" >&5
15629 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15630 if test "${ac_cv_func_working_mktime+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633 if test "$cross_compiling" = yes; then
15634 ac_cv_func_working_mktime=no
15635 else
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h. */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 /* Test program from Paul Eggert and Tony Leneis. */
15643 #if TIME_WITH_SYS_TIME
15644 # include <sys/time.h>
15645 # include <time.h>
15646 #else
15647 # if HAVE_SYS_TIME_H
15648 # include <sys/time.h>
15649 # else
15650 # include <time.h>
15651 # endif
15652 #endif
15653
15654 #if HAVE_STDLIB_H
15655 # include <stdlib.h>
15656 #endif
15657
15658 #if HAVE_UNISTD_H
15659 # include <unistd.h>
15660 #endif
15661
15662 #if !HAVE_ALARM
15663 # define alarm(X) /* empty */
15664 #endif
15665
15666 /* Work around redefinition to rpl_putenv by other config tests. */
15667 #undef putenv
15668
15669 static time_t time_t_max;
15670 static time_t time_t_min;
15671
15672 /* Values we'll use to set the TZ environment variable. */
15673 static char *tz_strings[] = {
15674 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15675 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15676 };
15677 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15678
15679 /* Fail if mktime fails to convert a date in the spring-forward gap.
15680 Based on a problem report from Andreas Jaeger. */
15681 static void
15682 spring_forward_gap ()
15683 {
15684 /* glibc (up to about 1998-10-07) failed this test. */
15685 struct tm tm;
15686
15687 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15688 instead of "TZ=America/Vancouver" in order to detect the bug even
15689 on systems that don't support the Olson extension, or don't have the
15690 full zoneinfo tables installed. */
15691 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15692
15693 tm.tm_year = 98;
15694 tm.tm_mon = 3;
15695 tm.tm_mday = 5;
15696 tm.tm_hour = 2;
15697 tm.tm_min = 0;
15698 tm.tm_sec = 0;
15699 tm.tm_isdst = -1;
15700 if (mktime (&tm) == (time_t)-1)
15701 exit (1);
15702 }
15703
15704 static void
15705 mktime_test1 (now)
15706 time_t now;
15707 {
15708 struct tm *lt;
15709 if ((lt = localtime (&now)) && mktime (lt) != now)
15710 exit (1);
15711 }
15712
15713 static void
15714 mktime_test (now)
15715 time_t now;
15716 {
15717 mktime_test1 (now);
15718 mktime_test1 ((time_t) (time_t_max - now));
15719 mktime_test1 ((time_t) (time_t_min + now));
15720 }
15721
15722 static void
15723 irix_6_4_bug ()
15724 {
15725 /* Based on code from Ariel Faigon. */
15726 struct tm tm;
15727 tm.tm_year = 96;
15728 tm.tm_mon = 3;
15729 tm.tm_mday = 0;
15730 tm.tm_hour = 0;
15731 tm.tm_min = 0;
15732 tm.tm_sec = 0;
15733 tm.tm_isdst = -1;
15734 mktime (&tm);
15735 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15736 exit (1);
15737 }
15738
15739 static void
15740 bigtime_test (j)
15741 int j;
15742 {
15743 struct tm tm;
15744 time_t now;
15745 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15746 now = mktime (&tm);
15747 if (now != (time_t) -1)
15748 {
15749 struct tm *lt = localtime (&now);
15750 if (! (lt
15751 && lt->tm_year == tm.tm_year
15752 && lt->tm_mon == tm.tm_mon
15753 && lt->tm_mday == tm.tm_mday
15754 && lt->tm_hour == tm.tm_hour
15755 && lt->tm_min == tm.tm_min
15756 && lt->tm_sec == tm.tm_sec
15757 && lt->tm_yday == tm.tm_yday
15758 && lt->tm_wday == tm.tm_wday
15759 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15760 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15761 exit (1);
15762 }
15763 }
15764
15765 int
15766 main ()
15767 {
15768 time_t t, delta;
15769 int i, j;
15770
15771 /* This test makes some buggy mktime implementations loop.
15772 Give up after 60 seconds; a mktime slower than that
15773 isn't worth using anyway. */
15774 alarm (60);
15775
15776 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15777 continue;
15778 time_t_max--;
15779 if ((time_t) -1 < 0)
15780 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15781 continue;
15782 delta = time_t_max / 997; /* a suitable prime number */
15783 for (i = 0; i < N_STRINGS; i++)
15784 {
15785 if (tz_strings[i])
15786 putenv (tz_strings[i]);
15787
15788 for (t = 0; t <= time_t_max - delta; t += delta)
15789 mktime_test (t);
15790 mktime_test ((time_t) 1);
15791 mktime_test ((time_t) (60 * 60));
15792 mktime_test ((time_t) (60 * 60 * 24));
15793
15794 for (j = 1; 0 < j; j *= 2)
15795 bigtime_test (j);
15796 bigtime_test (j - 1);
15797 }
15798 irix_6_4_bug ();
15799 spring_forward_gap ();
15800 exit (0);
15801 }
15802 _ACEOF
15803 rm -f conftest$ac_exeext
15804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805 (eval $ac_link) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_cv_func_working_mktime=yes
15815 else
15816 echo "$as_me: program exited with status $ac_status" >&5
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 ( exit $ac_status )
15821 ac_cv_func_working_mktime=no
15822 fi
15823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15824 fi
15825 fi
15826 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15827 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15828 if test $ac_cv_func_working_mktime = no; then
15829 case $LIBOBJS in
15830 "mktime.$ac_objext" | \
15831 *" mktime.$ac_objext" | \
15832 "mktime.$ac_objext "* | \
15833 *" mktime.$ac_objext "* ) ;;
15834 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15835 esac
15836
15837 fi
15838
15839 if test "$ac_cv_func_working_mktime" = no; then
15840
15841 cat >>confdefs.h <<\_ACEOF
15842 #define BROKEN_MKTIME 1
15843 _ACEOF
15844
15845 fi
15846
15847 ac_have_func=no # yes means we've found a way to get the load average.
15848
15849 # Make sure getloadavg.c is where it belongs, at configure-time.
15850 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15851 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15852 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15853 { (exit 1); exit 1; }; }
15854
15855 ac_save_LIBS=$LIBS
15856
15857 # Check for getloadavg, but be sure not to touch the cache variable.
15858 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15859 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15860 if test "${ac_cv_func_getloadavg+set}" = set; then
15861 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 else
15863 cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h. */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15871 #define getloadavg innocuous_getloadavg
15872
15873 /* System header to define __stub macros and hopefully few prototypes,
15874 which can conflict with char getloadavg (); below.
15875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15876 <limits.h> exists even on freestanding compilers. */
15877
15878 #ifdef __STDC__
15879 # include <limits.h>
15880 #else
15881 # include <assert.h>
15882 #endif
15883
15884 #undef getloadavg
15885
15886 /* Override any gcc2 internal prototype to avoid an error. */
15887 #ifdef __cplusplus
15888 extern "C"
15889 {
15890 #endif
15891 /* We use char because int might match the return type of a gcc2
15892 builtin and then its argument prototype would still apply. */
15893 char getloadavg ();
15894 /* The GNU C library defines this for functions which it implements
15895 to always fail with ENOSYS. Some functions are actually named
15896 something starting with __ and the normal name is an alias. */
15897 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15898 choke me
15899 #else
15900 char (*f) () = getloadavg;
15901 #endif
15902 #ifdef __cplusplus
15903 }
15904 #endif
15905
15906 int
15907 main ()
15908 {
15909 return f != getloadavg;
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916 (eval $ac_link) 2>conftest.er1
15917 ac_status=$?
15918 grep -v '^ *+' conftest.er1 >conftest.err
15919 rm -f conftest.er1
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -z "$ac_c_werror_flag"
15924 || test ! -s conftest.err'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest$ac_exeext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 ac_cv_func_getloadavg=yes
15937 else
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941 ac_cv_func_getloadavg=no
15942 fi
15943 rm -f conftest.err conftest.$ac_objext \
15944 conftest$ac_exeext conftest.$ac_ext
15945 fi
15946 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15947 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15948 if test $ac_cv_func_getloadavg = yes; then
15949 exit 0
15950 else
15951 exit 1
15952 fi
15953 ) && ac_have_func=yes
15954
15955 # On HPUX9, an unprivileged user can get load averages through this function.
15956
15957 for ac_func in pstat_getdynamic
15958 do
15959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15960 echo "$as_me:$LINENO: checking for $ac_func" >&5
15961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15962 if eval "test \"\${$as_ac_var+set}\" = set"; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965 cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h. */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15973 #define $ac_func innocuous_$ac_func
15974
15975 /* System header to define __stub macros and hopefully few prototypes,
15976 which can conflict with char $ac_func (); below.
15977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15978 <limits.h> exists even on freestanding compilers. */
15979
15980 #ifdef __STDC__
15981 # include <limits.h>
15982 #else
15983 # include <assert.h>
15984 #endif
15985
15986 #undef $ac_func
15987
15988 /* Override any gcc2 internal prototype to avoid an error. */
15989 #ifdef __cplusplus
15990 extern "C"
15991 {
15992 #endif
15993 /* We use char because int might match the return type of a gcc2
15994 builtin and then its argument prototype would still apply. */
15995 char $ac_func ();
15996 /* The GNU C library defines this for functions which it implements
15997 to always fail with ENOSYS. Some functions are actually named
15998 something starting with __ and the normal name is an alias. */
15999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16000 choke me
16001 #else
16002 char (*f) () = $ac_func;
16003 #endif
16004 #ifdef __cplusplus
16005 }
16006 #endif
16007
16008 int
16009 main ()
16010 {
16011 return f != $ac_func;
16012 ;
16013 return 0;
16014 }
16015 _ACEOF
16016 rm -f conftest.$ac_objext conftest$ac_exeext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16018 (eval $ac_link) 2>conftest.er1
16019 ac_status=$?
16020 grep -v '^ *+' conftest.er1 >conftest.err
16021 rm -f conftest.er1
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; } &&
16031 { ac_try='test -s conftest$ac_exeext'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; }; then
16037 eval "$as_ac_var=yes"
16038 else
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16041
16042 eval "$as_ac_var=no"
16043 fi
16044 rm -f conftest.err conftest.$ac_objext \
16045 conftest$ac_exeext conftest.$ac_ext
16046 fi
16047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16049 if test `eval echo '${'$as_ac_var'}'` = yes; then
16050 cat >>confdefs.h <<_ACEOF
16051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16052 _ACEOF
16053
16054 fi
16055 done
16056
16057
16058 # Solaris has libkstat which does not require root.
16059
16060 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16061 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
16062 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065 ac_check_lib_save_LIBS=$LIBS
16066 LIBS="-lkstat $LIBS"
16067 cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h. */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073
16074 /* Override any gcc2 internal prototype to avoid an error. */
16075 #ifdef __cplusplus
16076 extern "C"
16077 #endif
16078 /* We use char because int might match the return type of a gcc2
16079 builtin and then its argument prototype would still apply. */
16080 char kstat_open ();
16081 int
16082 main ()
16083 {
16084 kstat_open ();
16085 ;
16086 return 0;
16087 }
16088 _ACEOF
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16091 (eval $ac_link) 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag"
16099 || test ! -s conftest.err'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try='test -s conftest$ac_exeext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_cv_lib_kstat_kstat_open=yes
16112 else
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 ac_cv_lib_kstat_kstat_open=no
16117 fi
16118 rm -f conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
16120 LIBS=$ac_check_lib_save_LIBS
16121 fi
16122 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16123 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
16124 if test $ac_cv_lib_kstat_kstat_open = yes; then
16125 cat >>confdefs.h <<_ACEOF
16126 #define HAVE_LIBKSTAT 1
16127 _ACEOF
16128
16129 LIBS="-lkstat $LIBS"
16130
16131 fi
16132
16133 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16134
16135 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16136 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16137 # to get the right answer into the cache.
16138 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16139 if test $ac_have_func = no; then
16140 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16141 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
16142 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145 ac_check_lib_save_LIBS=$LIBS
16146 LIBS="-lelf $LIBS"
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h. */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153
16154 /* Override any gcc2 internal prototype to avoid an error. */
16155 #ifdef __cplusplus
16156 extern "C"
16157 #endif
16158 /* We use char because int might match the return type of a gcc2
16159 builtin and then its argument prototype would still apply. */
16160 char elf_begin ();
16161 int
16162 main ()
16163 {
16164 elf_begin ();
16165 ;
16166 return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16171 (eval $ac_link) 2>conftest.er1
16172 ac_status=$?
16173 grep -v '^ *+' conftest.er1 >conftest.err
16174 rm -f conftest.er1
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16181 ac_status=$?
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; } &&
16184 { ac_try='test -s conftest$ac_exeext'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_cv_lib_elf_elf_begin=yes
16191 else
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 ac_cv_lib_elf_elf_begin=no
16196 fi
16197 rm -f conftest.err conftest.$ac_objext \
16198 conftest$ac_exeext conftest.$ac_ext
16199 LIBS=$ac_check_lib_save_LIBS
16200 fi
16201 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16202 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
16203 if test $ac_cv_lib_elf_elf_begin = yes; then
16204 LIBS="-lelf $LIBS"
16205 fi
16206
16207 fi
16208 if test $ac_have_func = no; then
16209 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16210 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
16211 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 else
16214 ac_check_lib_save_LIBS=$LIBS
16215 LIBS="-lkvm $LIBS"
16216 cat >conftest.$ac_ext <<_ACEOF
16217 /* confdefs.h. */
16218 _ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222
16223 /* Override any gcc2 internal prototype to avoid an error. */
16224 #ifdef __cplusplus
16225 extern "C"
16226 #endif
16227 /* We use char because int might match the return type of a gcc2
16228 builtin and then its argument prototype would still apply. */
16229 char kvm_open ();
16230 int
16231 main ()
16232 {
16233 kvm_open ();
16234 ;
16235 return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest.$ac_objext conftest$ac_exeext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240 (eval $ac_link) 2>conftest.er1
16241 ac_status=$?
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest$ac_exeext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_cv_lib_kvm_kvm_open=yes
16260 else
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 ac_cv_lib_kvm_kvm_open=no
16265 fi
16266 rm -f conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16268 LIBS=$ac_check_lib_save_LIBS
16269 fi
16270 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16271 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
16272 if test $ac_cv_lib_kvm_kvm_open = yes; then
16273 LIBS="-lkvm $LIBS"
16274 fi
16275
16276 # Check for the 4.4BSD definition of getloadavg.
16277 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16278 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
16279 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282 ac_check_lib_save_LIBS=$LIBS
16283 LIBS="-lutil $LIBS"
16284 cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h. */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290
16291 /* Override any gcc2 internal prototype to avoid an error. */
16292 #ifdef __cplusplus
16293 extern "C"
16294 #endif
16295 /* We use char because int might match the return type of a gcc2
16296 builtin and then its argument prototype would still apply. */
16297 char getloadavg ();
16298 int
16299 main ()
16300 {
16301 getloadavg ();
16302 ;
16303 return 0;
16304 }
16305 _ACEOF
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16308 (eval $ac_link) 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
16315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; } &&
16321 { ac_try='test -s conftest$ac_exeext'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_cv_lib_util_getloadavg=yes
16328 else
16329 echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16331
16332 ac_cv_lib_util_getloadavg=no
16333 fi
16334 rm -f conftest.err conftest.$ac_objext \
16335 conftest$ac_exeext conftest.$ac_ext
16336 LIBS=$ac_check_lib_save_LIBS
16337 fi
16338 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16339 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
16340 if test $ac_cv_lib_util_getloadavg = yes; then
16341 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16342 fi
16343
16344 fi
16345
16346 if test $ac_have_func = no; then
16347 # There is a commonly available library for RS/6000 AIX.
16348 # Since it is not a standard part of AIX, it might be installed locally.
16349 ac_getloadavg_LIBS=$LIBS
16350 LIBS="-L/usr/local/lib $LIBS"
16351 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16352 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
16353 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16355 else
16356 ac_check_lib_save_LIBS=$LIBS
16357 LIBS="-lgetloadavg $LIBS"
16358 cat >conftest.$ac_ext <<_ACEOF
16359 /* confdefs.h. */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16364
16365 /* Override any gcc2 internal prototype to avoid an error. */
16366 #ifdef __cplusplus
16367 extern "C"
16368 #endif
16369 /* We use char because int might match the return type of a gcc2
16370 builtin and then its argument prototype would still apply. */
16371 char getloadavg ();
16372 int
16373 main ()
16374 {
16375 getloadavg ();
16376 ;
16377 return 0;
16378 }
16379 _ACEOF
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag"
16390 || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest$ac_exeext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_lib_getloadavg_getloadavg=yes
16403 else
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407 ac_cv_lib_getloadavg_getloadavg=no
16408 fi
16409 rm -f conftest.err conftest.$ac_objext \
16410 conftest$ac_exeext conftest.$ac_ext
16411 LIBS=$ac_check_lib_save_LIBS
16412 fi
16413 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16414 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
16415 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16416 LIBS="-lgetloadavg $LIBS"
16417 else
16418 LIBS=$ac_getloadavg_LIBS
16419 fi
16420
16421 fi
16422
16423 # Make sure it is really in the library, if we think we found it,
16424 # otherwise set up the replacement function.
16425
16426 for ac_func in getloadavg
16427 do
16428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16429 echo "$as_me:$LINENO: checking for $ac_func" >&5
16430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16431 if eval "test \"\${$as_ac_var+set}\" = set"; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434 cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h. */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16442 #define $ac_func innocuous_$ac_func
16443
16444 /* System header to define __stub macros and hopefully few prototypes,
16445 which can conflict with char $ac_func (); below.
16446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16447 <limits.h> exists even on freestanding compilers. */
16448
16449 #ifdef __STDC__
16450 # include <limits.h>
16451 #else
16452 # include <assert.h>
16453 #endif
16454
16455 #undef $ac_func
16456
16457 /* Override any gcc2 internal prototype to avoid an error. */
16458 #ifdef __cplusplus
16459 extern "C"
16460 {
16461 #endif
16462 /* We use char because int might match the return type of a gcc2
16463 builtin and then its argument prototype would still apply. */
16464 char $ac_func ();
16465 /* The GNU C library defines this for functions which it implements
16466 to always fail with ENOSYS. Some functions are actually named
16467 something starting with __ and the normal name is an alias. */
16468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16469 choke me
16470 #else
16471 char (*f) () = $ac_func;
16472 #endif
16473 #ifdef __cplusplus
16474 }
16475 #endif
16476
16477 int
16478 main ()
16479 {
16480 return f != $ac_func;
16481 ;
16482 return 0;
16483 }
16484 _ACEOF
16485 rm -f conftest.$ac_objext conftest$ac_exeext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16487 (eval $ac_link) 2>conftest.er1
16488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try='test -z "$ac_c_werror_flag"
16495 || test ! -s conftest.err'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try='test -s conftest$ac_exeext'
16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503 (eval $ac_try) 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 eval "$as_ac_var=yes"
16508 else
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16511
16512 eval "$as_ac_var=no"
16513 fi
16514 rm -f conftest.err conftest.$ac_objext \
16515 conftest$ac_exeext conftest.$ac_ext
16516 fi
16517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16519 if test `eval echo '${'$as_ac_var'}'` = yes; then
16520 cat >>confdefs.h <<_ACEOF
16521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16522 _ACEOF
16523
16524 else
16525 case $LIBOBJS in
16526 "getloadavg.$ac_objext" | \
16527 *" getloadavg.$ac_objext" | \
16528 "getloadavg.$ac_objext "* | \
16529 *" getloadavg.$ac_objext "* ) ;;
16530 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
16531 esac
16532
16533
16534 cat >>confdefs.h <<\_ACEOF
16535 #define C_GETLOADAVG 1
16536 _ACEOF
16537
16538 # Figure out what our getloadavg.c needs.
16539 ac_have_func=no
16540 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16541 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16542 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16543 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 fi
16546 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16547 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16548 else
16549 # Is the header compilable?
16550 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16551 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 $ac_includes_default
16559 #include <sys/dg_sys_info.h>
16560 _ACEOF
16561 rm -f conftest.$ac_objext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16563 (eval $ac_compile) 2>conftest.er1
16564 ac_status=$?
16565 grep -v '^ *+' conftest.er1 >conftest.err
16566 rm -f conftest.er1
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
16570 { ac_try='test -z "$ac_c_werror_flag"
16571 || test ! -s conftest.err'
16572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; } &&
16577 { ac_try='test -s conftest.$ac_objext'
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 ac_header_compiler=yes
16584 else
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16587
16588 ac_header_compiler=no
16589 fi
16590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16592 echo "${ECHO_T}$ac_header_compiler" >&6
16593
16594 # Is the header present?
16595 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16596 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16597 cat >conftest.$ac_ext <<_ACEOF
16598 /* confdefs.h. */
16599 _ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16603 #include <sys/dg_sys_info.h>
16604 _ACEOF
16605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16607 ac_status=$?
16608 grep -v '^ *+' conftest.er1 >conftest.err
16609 rm -f conftest.er1
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } >/dev/null; then
16613 if test -s conftest.err; then
16614 ac_cpp_err=$ac_c_preproc_warn_flag
16615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16616 else
16617 ac_cpp_err=
16618 fi
16619 else
16620 ac_cpp_err=yes
16621 fi
16622 if test -z "$ac_cpp_err"; then
16623 ac_header_preproc=yes
16624 else
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16627
16628 ac_header_preproc=no
16629 fi
16630 rm -f conftest.err conftest.$ac_ext
16631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16632 echo "${ECHO_T}$ac_header_preproc" >&6
16633
16634 # So? What about this header?
16635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16636 yes:no: )
16637 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16638 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16639 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16640 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16641 ac_header_preproc=yes
16642 ;;
16643 no:yes:* )
16644 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16645 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16646 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16647 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16649 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16651 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16653 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16654 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16655 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16656 (
16657 cat <<\_ASBOX
16658 ## ------------------------------------------ ##
16659 ## Report this to the AC_PACKAGE_NAME lists. ##
16660 ## ------------------------------------------ ##
16661 _ASBOX
16662 ) |
16663 sed "s/^/$as_me: WARNING: /" >&2
16664 ;;
16665 esac
16666 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16667 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16668 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16672 fi
16673 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16674 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16675
16676 fi
16677 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16678 ac_have_func=yes
16679
16680 cat >>confdefs.h <<\_ACEOF
16681 #define DGUX 1
16682 _ACEOF
16683
16684
16685 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16686 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16687 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690 ac_check_lib_save_LIBS=$LIBS
16691 LIBS="-ldgc $LIBS"
16692 cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h. */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698
16699 /* Override any gcc2 internal prototype to avoid an error. */
16700 #ifdef __cplusplus
16701 extern "C"
16702 #endif
16703 /* We use char because int might match the return type of a gcc2
16704 builtin and then its argument prototype would still apply. */
16705 char dg_sys_info ();
16706 int
16707 main ()
16708 {
16709 dg_sys_info ();
16710 ;
16711 return 0;
16712 }
16713 _ACEOF
16714 rm -f conftest.$ac_objext conftest$ac_exeext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16716 (eval $ac_link) 2>conftest.er1
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
16723 { ac_try='test -z "$ac_c_werror_flag"
16724 || test ! -s conftest.err'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest$ac_exeext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_lib_dgc_dg_sys_info=yes
16737 else
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16740
16741 ac_cv_lib_dgc_dg_sys_info=no
16742 fi
16743 rm -f conftest.err conftest.$ac_objext \
16744 conftest$ac_exeext conftest.$ac_ext
16745 LIBS=$ac_check_lib_save_LIBS
16746 fi
16747 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16748 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16749 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16750 cat >>confdefs.h <<_ACEOF
16751 #define HAVE_LIBDGC 1
16752 _ACEOF
16753
16754 LIBS="-ldgc $LIBS"
16755
16756 fi
16757
16758 fi
16759
16760
16761
16762 if test "${ac_cv_header_locale_h+set}" = set; then
16763 echo "$as_me:$LINENO: checking for locale.h" >&5
16764 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16765 if test "${ac_cv_header_locale_h+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 fi
16768 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16769 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16770 else
16771 # Is the header compilable?
16772 echo "$as_me:$LINENO: checking locale.h usability" >&5
16773 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h. */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 $ac_includes_default
16781 #include <locale.h>
16782 _ACEOF
16783 rm -f conftest.$ac_objext
16784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16785 (eval $ac_compile) 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -z "$ac_c_werror_flag"
16793 || test ! -s conftest.err'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try='test -s conftest.$ac_objext'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 ac_header_compiler=yes
16806 else
16807 echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16809
16810 ac_header_compiler=no
16811 fi
16812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16814 echo "${ECHO_T}$ac_header_compiler" >&6
16815
16816 # Is the header present?
16817 echo "$as_me:$LINENO: checking locale.h presence" >&5
16818 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h. */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 #include <locale.h>
16826 _ACEOF
16827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } >/dev/null; then
16835 if test -s conftest.err; then
16836 ac_cpp_err=$ac_c_preproc_warn_flag
16837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16838 else
16839 ac_cpp_err=
16840 fi
16841 else
16842 ac_cpp_err=yes
16843 fi
16844 if test -z "$ac_cpp_err"; then
16845 ac_header_preproc=yes
16846 else
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 ac_header_preproc=no
16851 fi
16852 rm -f conftest.err conftest.$ac_ext
16853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16854 echo "${ECHO_T}$ac_header_preproc" >&6
16855
16856 # So? What about this header?
16857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16858 yes:no: )
16859 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16860 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16861 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16862 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16863 ac_header_preproc=yes
16864 ;;
16865 no:yes:* )
16866 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16867 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16868 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16869 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16871 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16872 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16873 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16875 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16876 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16877 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16878 (
16879 cat <<\_ASBOX
16880 ## ------------------------------------------ ##
16881 ## Report this to the AC_PACKAGE_NAME lists. ##
16882 ## ------------------------------------------ ##
16883 _ASBOX
16884 ) |
16885 sed "s/^/$as_me: WARNING: /" >&2
16886 ;;
16887 esac
16888 echo "$as_me:$LINENO: checking for locale.h" >&5
16889 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16890 if test "${ac_cv_header_locale_h+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893 ac_cv_header_locale_h=$ac_header_preproc
16894 fi
16895 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16896 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16897
16898 fi
16899
16900
16901
16902 for ac_func in setlocale
16903 do
16904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16905 echo "$as_me:$LINENO: checking for $ac_func" >&5
16906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16907 if eval "test \"\${$as_ac_var+set}\" = set"; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910 cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h. */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16918 #define $ac_func innocuous_$ac_func
16919
16920 /* System header to define __stub macros and hopefully few prototypes,
16921 which can conflict with char $ac_func (); below.
16922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16923 <limits.h> exists even on freestanding compilers. */
16924
16925 #ifdef __STDC__
16926 # include <limits.h>
16927 #else
16928 # include <assert.h>
16929 #endif
16930
16931 #undef $ac_func
16932
16933 /* Override any gcc2 internal prototype to avoid an error. */
16934 #ifdef __cplusplus
16935 extern "C"
16936 {
16937 #endif
16938 /* We use char because int might match the return type of a gcc2
16939 builtin and then its argument prototype would still apply. */
16940 char $ac_func ();
16941 /* The GNU C library defines this for functions which it implements
16942 to always fail with ENOSYS. Some functions are actually named
16943 something starting with __ and the normal name is an alias. */
16944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16945 choke me
16946 #else
16947 char (*f) () = $ac_func;
16948 #endif
16949 #ifdef __cplusplus
16950 }
16951 #endif
16952
16953 int
16954 main ()
16955 {
16956 return f != $ac_func;
16957 ;
16958 return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16963 (eval $ac_link) 2>conftest.er1
16964 ac_status=$?
16965 grep -v '^ *+' conftest.er1 >conftest.err
16966 rm -f conftest.er1
16967 cat conftest.err >&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try='test -z "$ac_c_werror_flag"
16971 || test ! -s conftest.err'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try='test -s conftest$ac_exeext'
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16983 eval "$as_ac_var=yes"
16984 else
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16987
16988 eval "$as_ac_var=no"
16989 fi
16990 rm -f conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16992 fi
16993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16995 if test `eval echo '${'$as_ac_var'}'` = yes; then
16996 cat >>confdefs.h <<_ACEOF
16997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16998 _ACEOF
16999
17000 fi
17001 done
17002
17003
17004 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17005 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17006 # Irix 4.0.5F has the header but not the library.
17007 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17008 ac_have_func=yes
17009
17010 cat >>confdefs.h <<\_ACEOF
17011 #define SVR4 1
17012 _ACEOF
17013
17014 fi
17015
17016 if test $ac_have_func = no; then
17017 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17018 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17019 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17020 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 fi
17023 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17024 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17025 else
17026 # Is the header compilable?
17027 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17028 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
17029 cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h. */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 $ac_includes_default
17036 #include <inq_stats/cpustats.h>
17037 _ACEOF
17038 rm -f conftest.$ac_objext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17040 (eval $ac_compile) 2>conftest.er1
17041 ac_status=$?
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -z "$ac_c_werror_flag"
17048 || test ! -s conftest.err'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest.$ac_objext'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_header_compiler=yes
17061 else
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065 ac_header_compiler=no
17066 fi
17067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17069 echo "${ECHO_T}$ac_header_compiler" >&6
17070
17071 # Is the header present?
17072 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17073 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
17074 cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h. */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 #include <inq_stats/cpustats.h>
17081 _ACEOF
17082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17084 ac_status=$?
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } >/dev/null; then
17090 if test -s conftest.err; then
17091 ac_cpp_err=$ac_c_preproc_warn_flag
17092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17093 else
17094 ac_cpp_err=
17095 fi
17096 else
17097 ac_cpp_err=yes
17098 fi
17099 if test -z "$ac_cpp_err"; then
17100 ac_header_preproc=yes
17101 else
17102 echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105 ac_header_preproc=no
17106 fi
17107 rm -f conftest.err conftest.$ac_ext
17108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17109 echo "${ECHO_T}$ac_header_preproc" >&6
17110
17111 # So? What about this header?
17112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17113 yes:no: )
17114 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17115 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17117 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17118 ac_header_preproc=yes
17119 ;;
17120 no:yes:* )
17121 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17122 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17123 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17124 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17125 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17126 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17127 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17128 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17129 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17130 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17131 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17132 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17133 (
17134 cat <<\_ASBOX
17135 ## ------------------------------------------ ##
17136 ## Report this to the AC_PACKAGE_NAME lists. ##
17137 ## ------------------------------------------ ##
17138 _ASBOX
17139 ) |
17140 sed "s/^/$as_me: WARNING: /" >&2
17141 ;;
17142 esac
17143 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17144 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17145 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17149 fi
17150 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17151 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17152
17153 fi
17154 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17155 ac_have_func=yes
17156
17157 cat >>confdefs.h <<\_ACEOF
17158 #define UMAX 1
17159 _ACEOF
17160
17161
17162 cat >>confdefs.h <<\_ACEOF
17163 #define UMAX4_3 1
17164 _ACEOF
17165
17166 fi
17167
17168
17169 fi
17170
17171 if test $ac_have_func = no; then
17172 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17173 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17174 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17175 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 fi
17178 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17179 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17180 else
17181 # Is the header compilable?
17182 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17183 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
17184 cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h. */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17191 #include <sys/cpustats.h>
17192 _ACEOF
17193 rm -f conftest.$ac_objext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17195 (eval $ac_compile) 2>conftest.er1
17196 ac_status=$?
17197 grep -v '^ *+' conftest.er1 >conftest.err
17198 rm -f conftest.er1
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -z "$ac_c_werror_flag"
17203 || test ! -s conftest.err'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; } &&
17209 { ac_try='test -s conftest.$ac_objext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ac_header_compiler=yes
17216 else
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17219
17220 ac_header_compiler=no
17221 fi
17222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17224 echo "${ECHO_T}$ac_header_compiler" >&6
17225
17226 # Is the header present?
17227 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17228 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 #include <sys/cpustats.h>
17236 _ACEOF
17237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17239 ac_status=$?
17240 grep -v '^ *+' conftest.er1 >conftest.err
17241 rm -f conftest.er1
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } >/dev/null; then
17245 if test -s conftest.err; then
17246 ac_cpp_err=$ac_c_preproc_warn_flag
17247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17248 else
17249 ac_cpp_err=
17250 fi
17251 else
17252 ac_cpp_err=yes
17253 fi
17254 if test -z "$ac_cpp_err"; then
17255 ac_header_preproc=yes
17256 else
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17259
17260 ac_header_preproc=no
17261 fi
17262 rm -f conftest.err conftest.$ac_ext
17263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17264 echo "${ECHO_T}$ac_header_preproc" >&6
17265
17266 # So? What about this header?
17267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17268 yes:no: )
17269 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17270 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17271 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17272 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17273 ac_header_preproc=yes
17274 ;;
17275 no:yes:* )
17276 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17277 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17278 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17279 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17280 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17281 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17283 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17284 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17285 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17287 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17288 (
17289 cat <<\_ASBOX
17290 ## ------------------------------------------ ##
17291 ## Report this to the AC_PACKAGE_NAME lists. ##
17292 ## ------------------------------------------ ##
17293 _ASBOX
17294 ) |
17295 sed "s/^/$as_me: WARNING: /" >&2
17296 ;;
17297 esac
17298 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17299 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17300 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 else
17303 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17304 fi
17305 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17306 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17307
17308 fi
17309 if test $ac_cv_header_sys_cpustats_h = yes; then
17310 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17311 #define UMAX 1
17312 _ACEOF
17313
17314 fi
17315
17316
17317 fi
17318
17319 if test $ac_have_func = no; then
17320
17321 for ac_header in mach/mach.h
17322 do
17323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17325 echo "$as_me:$LINENO: checking for $ac_header" >&5
17326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 fi
17330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17332 else
17333 # Is the header compilable?
17334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17336 cat >conftest.$ac_ext <<_ACEOF
17337 /* confdefs.h. */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h. */
17342 $ac_includes_default
17343 #include <$ac_header>
17344 _ACEOF
17345 rm -f conftest.$ac_objext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17347 (eval $ac_compile) 2>conftest.er1
17348 ac_status=$?
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try='test -z "$ac_c_werror_flag"
17355 || test ! -s conftest.err'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest.$ac_objext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_header_compiler=yes
17368 else
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 ac_header_compiler=no
17373 fi
17374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17376 echo "${ECHO_T}$ac_header_compiler" >&6
17377
17378 # Is the header present?
17379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <$ac_header>
17388 _ACEOF
17389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } >/dev/null; then
17397 if test -s conftest.err; then
17398 ac_cpp_err=$ac_c_preproc_warn_flag
17399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17400 else
17401 ac_cpp_err=
17402 fi
17403 else
17404 ac_cpp_err=yes
17405 fi
17406 if test -z "$ac_cpp_err"; then
17407 ac_header_preproc=yes
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17411
17412 ac_header_preproc=no
17413 fi
17414 rm -f conftest.err conftest.$ac_ext
17415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17416 echo "${ECHO_T}$ac_header_preproc" >&6
17417
17418 # So? What about this header?
17419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17420 yes:no: )
17421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17425 ac_header_preproc=yes
17426 ;;
17427 no:yes:* )
17428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17440 (
17441 cat <<\_ASBOX
17442 ## ------------------------------------------ ##
17443 ## Report this to the AC_PACKAGE_NAME lists. ##
17444 ## ------------------------------------------ ##
17445 _ASBOX
17446 ) |
17447 sed "s/^/$as_me: WARNING: /" >&2
17448 ;;
17449 esac
17450 echo "$as_me:$LINENO: checking for $ac_header" >&5
17451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 else
17455 eval "$as_ac_Header=\$ac_header_preproc"
17456 fi
17457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17459
17460 fi
17461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17462 cat >>confdefs.h <<_ACEOF
17463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17464 _ACEOF
17465
17466 fi
17467
17468 done
17469
17470 fi
17471
17472
17473 for ac_header in nlist.h
17474 do
17475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17477 echo "$as_me:$LINENO: checking for $ac_header" >&5
17478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 fi
17482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17484 else
17485 # Is the header compilable?
17486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17488 cat >conftest.$ac_ext <<_ACEOF
17489 /* confdefs.h. */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17494 $ac_includes_default
17495 #include <$ac_header>
17496 _ACEOF
17497 rm -f conftest.$ac_objext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499 (eval $ac_compile) 2>conftest.er1
17500 ac_status=$?
17501 grep -v '^ *+' conftest.er1 >conftest.err
17502 rm -f conftest.er1
17503 cat conftest.err >&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
17506 { ac_try='test -z "$ac_c_werror_flag"
17507 || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try='test -s conftest.$ac_objext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_header_compiler=yes
17520 else
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 ac_header_compiler=no
17525 fi
17526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17528 echo "${ECHO_T}$ac_header_compiler" >&6
17529
17530 # Is the header present?
17531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17533 cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h. */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539 #include <$ac_header>
17540 _ACEOF
17541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17543 ac_status=$?
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } >/dev/null; then
17549 if test -s conftest.err; then
17550 ac_cpp_err=$ac_c_preproc_warn_flag
17551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17552 else
17553 ac_cpp_err=
17554 fi
17555 else
17556 ac_cpp_err=yes
17557 fi
17558 if test -z "$ac_cpp_err"; then
17559 ac_header_preproc=yes
17560 else
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564 ac_header_preproc=no
17565 fi
17566 rm -f conftest.err conftest.$ac_ext
17567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17568 echo "${ECHO_T}$ac_header_preproc" >&6
17569
17570 # So? What about this header?
17571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17572 yes:no: )
17573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17577 ac_header_preproc=yes
17578 ;;
17579 no:yes:* )
17580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17592 (
17593 cat <<\_ASBOX
17594 ## ------------------------------------------ ##
17595 ## Report this to the AC_PACKAGE_NAME lists. ##
17596 ## ------------------------------------------ ##
17597 _ASBOX
17598 ) |
17599 sed "s/^/$as_me: WARNING: /" >&2
17600 ;;
17601 esac
17602 echo "$as_me:$LINENO: checking for $ac_header" >&5
17603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 else
17607 eval "$as_ac_Header=\$ac_header_preproc"
17608 fi
17609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17611
17612 fi
17613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17614 cat >>confdefs.h <<_ACEOF
17615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17616 _ACEOF
17617 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17618 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17619 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 else
17622 cat >conftest.$ac_ext <<_ACEOF
17623 /* confdefs.h. */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 #include <nlist.h>
17629
17630 int
17631 main ()
17632 {
17633 static struct nlist ac_aggr;
17634 if (ac_aggr.n_un.n_name)
17635 return 0;
17636 ;
17637 return 0;
17638 }
17639 _ACEOF
17640 rm -f conftest.$ac_objext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -z "$ac_c_werror_flag"
17650 || test ! -s conftest.err'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 ac_cv_member_struct_nlist_n_un_n_name=yes
17663 else
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17666
17667 cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h. */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 #include <nlist.h>
17674
17675 int
17676 main ()
17677 {
17678 static struct nlist ac_aggr;
17679 if (sizeof ac_aggr.n_un.n_name)
17680 return 0;
17681 ;
17682 return 0;
17683 }
17684 _ACEOF
17685 rm -f conftest.$ac_objext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17687 (eval $ac_compile) 2>conftest.er1
17688 ac_status=$?
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest.$ac_objext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_member_struct_nlist_n_un_n_name=yes
17707 else
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711 ac_cv_member_struct_nlist_n_un_n_name=no
17712 fi
17713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17714 fi
17715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17716 fi
17717 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17718 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17719 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17720
17721 cat >>confdefs.h <<_ACEOF
17722 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17723 _ACEOF
17724
17725
17726 cat >>confdefs.h <<\_ACEOF
17727 #define NLIST_NAME_UNION 1
17728 _ACEOF
17729
17730 fi
17731
17732
17733 fi
17734
17735 done
17736
17737 fi
17738 done
17739
17740
17741 # Some definitions of getloadavg require that the program be installed setgid.
17742 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17743 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17744 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 else
17747 cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h. */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17754 #ifdef LDAV_PRIVILEGED
17755 Yowza Am I SETGID yet
17756 #endif
17757 _ACEOF
17758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17759 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17760 ac_cv_func_getloadavg_setgid=yes
17761 else
17762 ac_cv_func_getloadavg_setgid=no
17763 fi
17764 rm -f conftest*
17765
17766 fi
17767 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17768 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17769 if test $ac_cv_func_getloadavg_setgid = yes; then
17770 NEED_SETGID=true
17771
17772 cat >>confdefs.h <<\_ACEOF
17773 #define GETLOADAVG_PRIVILEGED 1
17774 _ACEOF
17775
17776 else
17777 NEED_SETGID=false
17778 fi
17779
17780 if test $ac_cv_func_getloadavg_setgid = yes; then
17781 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17782 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17783 if test "${ac_cv_group_kmem+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17787 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17788 # If we got an error (system does not support symlinks), try without -L.
17789 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17790 ac_cv_group_kmem=`echo $ac_ls_output \
17791 | sed -ne 's/[ ][ ]*/ /g;
17792 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17793 / /s/.* //;p;'`
17794
17795 fi
17796 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17797 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17798 KMEM_GROUP=$ac_cv_group_kmem
17799 fi
17800 if test "x$ac_save_LIBS" = x; then
17801 GETLOADAVG_LIBS=$LIBS
17802 else
17803 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17804 fi
17805 LIBS=$ac_save_LIBS
17806
17807
17808
17809 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17810 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17811 if test "${ac_cv_sys_largefile_source+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17814 while :; do
17815 ac_cv_sys_largefile_source=no
17816 cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h. */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822 #include <stdio.h>
17823 int
17824 main ()
17825 {
17826 return !fseeko;
17827 ;
17828 return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>conftest.er1
17834 ac_status=$?
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try='test -z "$ac_c_werror_flag"
17841 || test ! -s conftest.err'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest.$ac_objext'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 break
17854 else
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 fi
17859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17860 cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h. */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 #define _LARGEFILE_SOURCE 1
17867 #include <stdio.h>
17868 int
17869 main ()
17870 {
17871 return !fseeko;
17872 ;
17873 return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest.$ac_objext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17878 (eval $ac_compile) 2>conftest.er1
17879 ac_status=$?
17880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -f conftest.er1
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_sys_largefile_source=1; break
17899 else
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17902
17903 fi
17904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17905 break
17906 done
17907 fi
17908 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17909 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17910 if test "$ac_cv_sys_largefile_source" != no; then
17911
17912 cat >>confdefs.h <<_ACEOF
17913 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17914 _ACEOF
17915
17916 fi
17917 rm -f conftest*
17918
17919 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17920 # in glibc 2.1.3, but that breaks too many other things.
17921 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17922 echo "$as_me:$LINENO: checking for fseeko" >&5
17923 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17924 if test "${ac_cv_func_fseeko+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927 cat >conftest.$ac_ext <<_ACEOF
17928 /* confdefs.h. */
17929 _ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17933 #include <stdio.h>
17934 int
17935 main ()
17936 {
17937 return fseeko && fseeko (stdin, 0, 0);
17938 ;
17939 return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest.$ac_objext conftest$ac_exeext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17944 (eval $ac_link) 2>conftest.er1
17945 ac_status=$?
17946 grep -v '^ *+' conftest.er1 >conftest.err
17947 rm -f conftest.er1
17948 cat conftest.err >&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } &&
17951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest$ac_exeext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_cv_func_fseeko=yes
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968 ac_cv_func_fseeko=no
17969 fi
17970 rm -f conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
17972 fi
17973 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17974 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17975 if test $ac_cv_func_fseeko = yes; then
17976
17977 cat >>confdefs.h <<\_ACEOF
17978 #define HAVE_FSEEKO 1
17979 _ACEOF
17980
17981 fi
17982
17983
17984 # Configure getopt.
17985 # getopt.m4 serial 10
17986
17987 # The getopt module assume you want GNU getopt, with getopt_long etc,
17988 # rather than vanilla POSIX getopt. This means your your code should
17989 # always include <getopt.h> for the getopt prototypes.
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001 # Prerequisites of lib/getopt*.
18002
18003
18004
18005
18006 GETOPT_H=
18007
18008 for ac_header in getopt.h
18009 do
18010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18012 echo "$as_me:$LINENO: checking for $ac_header" >&5
18013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18016 fi
18017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18019 else
18020 # Is the header compilable?
18021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18023 cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h. */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18029 $ac_includes_default
18030 #include <$ac_header>
18031 _ACEOF
18032 rm -f conftest.$ac_objext
18033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18034 (eval $ac_compile) 2>conftest.er1
18035 ac_status=$?
18036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
18041 { ac_try='test -z "$ac_c_werror_flag"
18042 || test ! -s conftest.err'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try='test -s conftest.$ac_objext'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_header_compiler=yes
18055 else
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059 ac_header_compiler=no
18060 fi
18061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18063 echo "${ECHO_T}$ac_header_compiler" >&6
18064
18065 # Is the header present?
18066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18068 cat >conftest.$ac_ext <<_ACEOF
18069 /* confdefs.h. */
18070 _ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18074 #include <$ac_header>
18075 _ACEOF
18076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } >/dev/null; then
18084 if test -s conftest.err; then
18085 ac_cpp_err=$ac_c_preproc_warn_flag
18086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18087 else
18088 ac_cpp_err=
18089 fi
18090 else
18091 ac_cpp_err=yes
18092 fi
18093 if test -z "$ac_cpp_err"; then
18094 ac_header_preproc=yes
18095 else
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18098
18099 ac_header_preproc=no
18100 fi
18101 rm -f conftest.err conftest.$ac_ext
18102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18103 echo "${ECHO_T}$ac_header_preproc" >&6
18104
18105 # So? What about this header?
18106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18107 yes:no: )
18108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18112 ac_header_preproc=yes
18113 ;;
18114 no:yes:* )
18115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18127 (
18128 cat <<\_ASBOX
18129 ## ------------------------------------------ ##
18130 ## Report this to the AC_PACKAGE_NAME lists. ##
18131 ## ------------------------------------------ ##
18132 _ASBOX
18133 ) |
18134 sed "s/^/$as_me: WARNING: /" >&2
18135 ;;
18136 esac
18137 echo "$as_me:$LINENO: checking for $ac_header" >&5
18138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 else
18142 eval "$as_ac_Header=\$ac_header_preproc"
18143 fi
18144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18146
18147 fi
18148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18149 cat >>confdefs.h <<_ACEOF
18150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18151 _ACEOF
18152
18153 else
18154 GETOPT_H=getopt.h
18155 fi
18156
18157 done
18158
18159 if test -z "$GETOPT_H"; then
18160
18161 for ac_func in getopt_long_only
18162 do
18163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18164 echo "$as_me:$LINENO: checking for $ac_func" >&5
18165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18166 if eval "test \"\${$as_ac_var+set}\" = set"; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 else
18169 cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h. */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18177 #define $ac_func innocuous_$ac_func
18178
18179 /* System header to define __stub macros and hopefully few prototypes,
18180 which can conflict with char $ac_func (); below.
18181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18182 <limits.h> exists even on freestanding compilers. */
18183
18184 #ifdef __STDC__
18185 # include <limits.h>
18186 #else
18187 # include <assert.h>
18188 #endif
18189
18190 #undef $ac_func
18191
18192 /* Override any gcc2 internal prototype to avoid an error. */
18193 #ifdef __cplusplus
18194 extern "C"
18195 {
18196 #endif
18197 /* We use char because int might match the return type of a gcc2
18198 builtin and then its argument prototype would still apply. */
18199 char $ac_func ();
18200 /* The GNU C library defines this for functions which it implements
18201 to always fail with ENOSYS. Some functions are actually named
18202 something starting with __ and the normal name is an alias. */
18203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18204 choke me
18205 #else
18206 char (*f) () = $ac_func;
18207 #endif
18208 #ifdef __cplusplus
18209 }
18210 #endif
18211
18212 int
18213 main ()
18214 {
18215 return f != $ac_func;
18216 ;
18217 return 0;
18218 }
18219 _ACEOF
18220 rm -f conftest.$ac_objext conftest$ac_exeext
18221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18222 (eval $ac_link) 2>conftest.er1
18223 ac_status=$?
18224 grep -v '^ *+' conftest.er1 >conftest.err
18225 rm -f conftest.er1
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -z "$ac_c_werror_flag"
18230 || test ! -s conftest.err'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; } &&
18236 { ac_try='test -s conftest$ac_exeext'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18239 ac_status=$?
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; }; then
18242 eval "$as_ac_var=yes"
18243 else
18244 echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18246
18247 eval "$as_ac_var=no"
18248 fi
18249 rm -f conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18251 fi
18252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18254 if test `eval echo '${'$as_ac_var'}'` = yes; then
18255 cat >>confdefs.h <<_ACEOF
18256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18257 _ACEOF
18258
18259 else
18260 GETOPT_H=getopt.h
18261 fi
18262 done
18263
18264 fi
18265
18266 if test -z "$GETOPT_H"; then
18267 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18268 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
18269 if test "${ac_cv_have_decl_optreset+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18271 else
18272 cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h. */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18278 #include <getopt.h>
18279
18280 int
18281 main ()
18282 {
18283 #ifndef optreset
18284 char *p = (char *) optreset;
18285 #endif
18286
18287 ;
18288 return 0;
18289 }
18290 _ACEOF
18291 rm -f conftest.$ac_objext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293 (eval $ac_compile) 2>conftest.er1
18294 ac_status=$?
18295 grep -v '^ *+' conftest.er1 >conftest.err
18296 rm -f conftest.er1
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest.$ac_objext'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; }; then
18312 ac_cv_have_decl_optreset=yes
18313 else
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18316
18317 ac_cv_have_decl_optreset=no
18318 fi
18319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18320 fi
18321 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18322 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
18323 if test $ac_cv_have_decl_optreset = yes; then
18324 GETOPT_H=getopt.h
18325 fi
18326
18327 fi
18328
18329 if test -z "$GETOPT_H"; then
18330 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18331 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
18332 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 else
18335 if test "$cross_compiling" = yes; then
18336 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18337 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
18338 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 else
18341 cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h. */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18347 #include <getopt.h>
18348
18349 int
18350 main ()
18351 {
18352 #ifndef getopt_clip
18353 char *p = (char *) getopt_clip;
18354 #endif
18355
18356 ;
18357 return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18362 (eval $ac_compile) 2>conftest.er1
18363 ac_status=$?
18364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try='test -z "$ac_c_werror_flag"
18370 || test ! -s conftest.err'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest.$ac_objext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_cv_have_decl_getopt_clip=yes
18383 else
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387 ac_cv_have_decl_getopt_clip=no
18388 fi
18389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18390 fi
18391 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18392 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
18393 if test $ac_cv_have_decl_getopt_clip = yes; then
18394 gl_cv_func_gnu_getopt=no
18395 else
18396 gl_cv_func_gnu_getopt=yes
18397 fi
18398
18399 else
18400 cat >conftest.$ac_ext <<_ACEOF
18401 /* confdefs.h. */
18402 _ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h. */
18406 #include <getopt.h>
18407 int
18408 main ()
18409 {
18410
18411 char *myargv[3];
18412 myargv[0] = "conftest";
18413 myargv[1] = "-+";
18414 myargv[2] = 0;
18415 return getopt (2, myargv, "+a") != '?';
18416
18417 ;
18418 return 0;
18419 }
18420 _ACEOF
18421 rm -f conftest$ac_exeext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18423 (eval $ac_link) 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 gl_cv_func_gnu_getopt=yes
18433 else
18434 echo "$as_me: program exited with status $ac_status" >&5
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18437
18438 ( exit $ac_status )
18439 gl_cv_func_gnu_getopt=no
18440 fi
18441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18442 fi
18443 fi
18444 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18445 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
18446 if test "$gl_cv_func_gnu_getopt" = "no"; then
18447 GETOPT_H=getopt.h
18448 fi
18449 fi
18450
18451
18452
18453 if test -n "$GETOPT_H"; then
18454
18455
18456 GETOPT_H=getopt.h
18457
18458 cat >>confdefs.h <<\_ACEOF
18459 #define __GETOPT_PREFIX rpl_
18460 _ACEOF
18461
18462
18463
18464 :
18465 GETOPTOBJS='getopt.o getopt1.o'
18466
18467 fi
18468
18469
18470
18471
18472 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18473 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
18474 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477 # Use it with a single arg.
18478 cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h. */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18484 $ac_includes_default
18485 int
18486 main ()
18487 {
18488 getpgrp (0);
18489 ;
18490 return 0;
18491 }
18492 _ACEOF
18493 rm -f conftest.$ac_objext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18495 (eval $ac_compile) 2>conftest.er1
18496 ac_status=$?
18497 grep -v '^ *+' conftest.er1 >conftest.err
18498 rm -f conftest.er1
18499 cat conftest.err >&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try='test -z "$ac_c_werror_flag"
18503 || test ! -s conftest.err'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try='test -s conftest.$ac_objext'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18512 ac_status=$?
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; }; then
18515 ac_cv_func_getpgrp_void=no
18516 else
18517 echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18519
18520 ac_cv_func_getpgrp_void=yes
18521 fi
18522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18523
18524 fi
18525 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18526 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
18527 if test $ac_cv_func_getpgrp_void = yes; then
18528
18529 cat >>confdefs.h <<\_ACEOF
18530 #define GETPGRP_VOID 1
18531 _ACEOF
18532
18533 fi
18534
18535
18536
18537 for ac_func in strftime
18538 do
18539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18540 echo "$as_me:$LINENO: checking for $ac_func" >&5
18541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18542 if eval "test \"\${$as_ac_var+set}\" = set"; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545 cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h. */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18553 #define $ac_func innocuous_$ac_func
18554
18555 /* System header to define __stub macros and hopefully few prototypes,
18556 which can conflict with char $ac_func (); below.
18557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18558 <limits.h> exists even on freestanding compilers. */
18559
18560 #ifdef __STDC__
18561 # include <limits.h>
18562 #else
18563 # include <assert.h>
18564 #endif
18565
18566 #undef $ac_func
18567
18568 /* Override any gcc2 internal prototype to avoid an error. */
18569 #ifdef __cplusplus
18570 extern "C"
18571 {
18572 #endif
18573 /* We use char because int might match the return type of a gcc2
18574 builtin and then its argument prototype would still apply. */
18575 char $ac_func ();
18576 /* The GNU C library defines this for functions which it implements
18577 to always fail with ENOSYS. Some functions are actually named
18578 something starting with __ and the normal name is an alias. */
18579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18580 choke me
18581 #else
18582 char (*f) () = $ac_func;
18583 #endif
18584 #ifdef __cplusplus
18585 }
18586 #endif
18587
18588 int
18589 main ()
18590 {
18591 return f != $ac_func;
18592 ;
18593 return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598 (eval $ac_link) 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 eval "$as_ac_var=yes"
18619 else
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 eval "$as_ac_var=no"
18624 fi
18625 rm -f conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627 fi
18628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18630 if test `eval echo '${'$as_ac_var'}'` = yes; then
18631 cat >>confdefs.h <<_ACEOF
18632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18633 _ACEOF
18634
18635 else
18636 # strftime is in -lintl on SCO UNIX.
18637 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18638 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18639 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 else
18642 ac_check_lib_save_LIBS=$LIBS
18643 LIBS="-lintl $LIBS"
18644 cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h. */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18650
18651 /* Override any gcc2 internal prototype to avoid an error. */
18652 #ifdef __cplusplus
18653 extern "C"
18654 #endif
18655 /* We use char because int might match the return type of a gcc2
18656 builtin and then its argument prototype would still apply. */
18657 char strftime ();
18658 int
18659 main ()
18660 {
18661 strftime ();
18662 ;
18663 return 0;
18664 }
18665 _ACEOF
18666 rm -f conftest.$ac_objext conftest$ac_exeext
18667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18668 (eval $ac_link) 2>conftest.er1
18669 ac_status=$?
18670 grep -v '^ *+' conftest.er1 >conftest.err
18671 rm -f conftest.er1
18672 cat conftest.err >&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } &&
18675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; } &&
18681 { ac_try='test -s conftest$ac_exeext'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
18687 ac_cv_lib_intl_strftime=yes
18688 else
18689 echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18691
18692 ac_cv_lib_intl_strftime=no
18693 fi
18694 rm -f conftest.err conftest.$ac_objext \
18695 conftest$ac_exeext conftest.$ac_ext
18696 LIBS=$ac_check_lib_save_LIBS
18697 fi
18698 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18699 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18700 if test $ac_cv_lib_intl_strftime = yes; then
18701 cat >>confdefs.h <<\_ACEOF
18702 #define HAVE_STRFTIME 1
18703 _ACEOF
18704
18705 LIBS="-lintl $LIBS"
18706 fi
18707
18708 fi
18709 done
18710
18711
18712 # UNIX98 PTYs.
18713
18714 for ac_func in grantpt
18715 do
18716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18717 echo "$as_me:$LINENO: checking for $ac_func" >&5
18718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18719 if eval "test \"\${$as_ac_var+set}\" = set"; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 else
18722 cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h. */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18730 #define $ac_func innocuous_$ac_func
18731
18732 /* System header to define __stub macros and hopefully few prototypes,
18733 which can conflict with char $ac_func (); below.
18734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18735 <limits.h> exists even on freestanding compilers. */
18736
18737 #ifdef __STDC__
18738 # include <limits.h>
18739 #else
18740 # include <assert.h>
18741 #endif
18742
18743 #undef $ac_func
18744
18745 /* Override any gcc2 internal prototype to avoid an error. */
18746 #ifdef __cplusplus
18747 extern "C"
18748 {
18749 #endif
18750 /* We use char because int might match the return type of a gcc2
18751 builtin and then its argument prototype would still apply. */
18752 char $ac_func ();
18753 /* The GNU C library defines this for functions which it implements
18754 to always fail with ENOSYS. Some functions are actually named
18755 something starting with __ and the normal name is an alias. */
18756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18757 choke me
18758 #else
18759 char (*f) () = $ac_func;
18760 #endif
18761 #ifdef __cplusplus
18762 }
18763 #endif
18764
18765 int
18766 main ()
18767 {
18768 return f != $ac_func;
18769 ;
18770 return 0;
18771 }
18772 _ACEOF
18773 rm -f conftest.$ac_objext conftest$ac_exeext
18774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18775 (eval $ac_link) 2>conftest.er1
18776 ac_status=$?
18777 grep -v '^ *+' conftest.er1 >conftest.err
18778 rm -f conftest.er1
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_c_werror_flag"
18783 || test ! -s conftest.err'
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; } &&
18789 { ac_try='test -s conftest$ac_exeext'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
18795 eval "$as_ac_var=yes"
18796 else
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18799
18800 eval "$as_ac_var=no"
18801 fi
18802 rm -f conftest.err conftest.$ac_objext \
18803 conftest$ac_exeext conftest.$ac_ext
18804 fi
18805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18807 if test `eval echo '${'$as_ac_var'}'` = yes; then
18808 cat >>confdefs.h <<_ACEOF
18809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18810 _ACEOF
18811
18812 fi
18813 done
18814
18815
18816 # PTY-related GNU extensions.
18817
18818 for ac_func in getpt
18819 do
18820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18821 echo "$as_me:$LINENO: checking for $ac_func" >&5
18822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18823 if eval "test \"\${$as_ac_var+set}\" = set"; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826 cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h. */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18834 #define $ac_func innocuous_$ac_func
18835
18836 /* System header to define __stub macros and hopefully few prototypes,
18837 which can conflict with char $ac_func (); below.
18838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18839 <limits.h> exists even on freestanding compilers. */
18840
18841 #ifdef __STDC__
18842 # include <limits.h>
18843 #else
18844 # include <assert.h>
18845 #endif
18846
18847 #undef $ac_func
18848
18849 /* Override any gcc2 internal prototype to avoid an error. */
18850 #ifdef __cplusplus
18851 extern "C"
18852 {
18853 #endif
18854 /* We use char because int might match the return type of a gcc2
18855 builtin and then its argument prototype would still apply. */
18856 char $ac_func ();
18857 /* The GNU C library defines this for functions which it implements
18858 to always fail with ENOSYS. Some functions are actually named
18859 something starting with __ and the normal name is an alias. */
18860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18861 choke me
18862 #else
18863 char (*f) () = $ac_func;
18864 #endif
18865 #ifdef __cplusplus
18866 }
18867 #endif
18868
18869 int
18870 main ()
18871 {
18872 return f != $ac_func;
18873 ;
18874 return 0;
18875 }
18876 _ACEOF
18877 rm -f conftest.$ac_objext conftest$ac_exeext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18879 (eval $ac_link) 2>conftest.er1
18880 ac_status=$?
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest$ac_exeext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 eval "$as_ac_var=yes"
18900 else
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904 eval "$as_ac_var=no"
18905 fi
18906 rm -f conftest.err conftest.$ac_objext \
18907 conftest$ac_exeext conftest.$ac_ext
18908 fi
18909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18911 if test `eval echo '${'$as_ac_var'}'` = yes; then
18912 cat >>confdefs.h <<_ACEOF
18913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18914 _ACEOF
18915
18916 fi
18917 done
18918
18919
18920 # Check this now, so that we will NOT find the above functions in ncurses.
18921 # That is because we have not set up to link ncurses in lib-src.
18922 # It's better to believe a function is not available
18923 # than to expect to find it in ncurses.
18924
18925 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18926 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18927 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 else
18930 ac_check_lib_save_LIBS=$LIBS
18931 LIBS="-lncurses $LIBS"
18932 cat >conftest.$ac_ext <<_ACEOF
18933 /* confdefs.h. */
18934 _ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18938
18939 /* Override any gcc2 internal prototype to avoid an error. */
18940 #ifdef __cplusplus
18941 extern "C"
18942 #endif
18943 /* We use char because int might match the return type of a gcc2
18944 builtin and then its argument prototype would still apply. */
18945 char tparm ();
18946 int
18947 main ()
18948 {
18949 tparm ();
18950 ;
18951 return 0;
18952 }
18953 _ACEOF
18954 rm -f conftest.$ac_objext conftest$ac_exeext
18955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18956 (eval $ac_link) 2>conftest.er1
18957 ac_status=$?
18958 grep -v '^ *+' conftest.er1 >conftest.err
18959 rm -f conftest.er1
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
18963 { ac_try='test -z "$ac_c_werror_flag"
18964 || test ! -s conftest.err'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; } &&
18970 { ac_try='test -s conftest$ac_exeext'
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 ac_cv_lib_ncurses_tparm=yes
18977 else
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18980
18981 ac_cv_lib_ncurses_tparm=no
18982 fi
18983 rm -f conftest.err conftest.$ac_objext \
18984 conftest$ac_exeext conftest.$ac_ext
18985 LIBS=$ac_check_lib_save_LIBS
18986 fi
18987 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18988 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18989 if test $ac_cv_lib_ncurses_tparm = yes; then
18990 cat >>confdefs.h <<_ACEOF
18991 #define HAVE_LIBNCURSES 1
18992 _ACEOF
18993
18994 LIBS="-lncurses $LIBS"
18995
18996 fi
18997
18998
18999 # Do we need the Hesiod library to provide the support routines?
19000 if test "$with_hesiod" = yes ; then
19001 # Don't set $LIBS here -- see comments above.
19002 resolv=no
19003 echo "$as_me:$LINENO: checking for res_send" >&5
19004 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
19005 if test "${ac_cv_func_res_send+set}" = set; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19007 else
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h. */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19016 #define res_send innocuous_res_send
19017
19018 /* System header to define __stub macros and hopefully few prototypes,
19019 which can conflict with char res_send (); below.
19020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19021 <limits.h> exists even on freestanding compilers. */
19022
19023 #ifdef __STDC__
19024 # include <limits.h>
19025 #else
19026 # include <assert.h>
19027 #endif
19028
19029 #undef res_send
19030
19031 /* Override any gcc2 internal prototype to avoid an error. */
19032 #ifdef __cplusplus
19033 extern "C"
19034 {
19035 #endif
19036 /* We use char because int might match the return type of a gcc2
19037 builtin and then its argument prototype would still apply. */
19038 char res_send ();
19039 /* The GNU C library defines this for functions which it implements
19040 to always fail with ENOSYS. Some functions are actually named
19041 something starting with __ and the normal name is an alias. */
19042 #if defined (__stub_res_send) || defined (__stub___res_send)
19043 choke me
19044 #else
19045 char (*f) () = res_send;
19046 #endif
19047 #ifdef __cplusplus
19048 }
19049 #endif
19050
19051 int
19052 main ()
19053 {
19054 return f != res_send;
19055 ;
19056 return 0;
19057 }
19058 _ACEOF
19059 rm -f conftest.$ac_objext conftest$ac_exeext
19060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19061 (eval $ac_link) 2>conftest.er1
19062 ac_status=$?
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -z "$ac_c_werror_flag"
19069 || test ! -s conftest.err'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; } &&
19075 { ac_try='test -s conftest$ac_exeext'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 ac_cv_func_res_send=yes
19082 else
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086 ac_cv_func_res_send=no
19087 fi
19088 rm -f conftest.err conftest.$ac_objext \
19089 conftest$ac_exeext conftest.$ac_ext
19090 fi
19091 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19092 echo "${ECHO_T}$ac_cv_func_res_send" >&6
19093 if test $ac_cv_func_res_send = yes; then
19094 :
19095 else
19096 echo "$as_me:$LINENO: checking for __res_send" >&5
19097 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
19098 if test "${ac_cv_func___res_send+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h. */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19109 #define __res_send innocuous___res_send
19110
19111 /* System header to define __stub macros and hopefully few prototypes,
19112 which can conflict with char __res_send (); below.
19113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19114 <limits.h> exists even on freestanding compilers. */
19115
19116 #ifdef __STDC__
19117 # include <limits.h>
19118 #else
19119 # include <assert.h>
19120 #endif
19121
19122 #undef __res_send
19123
19124 /* Override any gcc2 internal prototype to avoid an error. */
19125 #ifdef __cplusplus
19126 extern "C"
19127 {
19128 #endif
19129 /* We use char because int might match the return type of a gcc2
19130 builtin and then its argument prototype would still apply. */
19131 char __res_send ();
19132 /* The GNU C library defines this for functions which it implements
19133 to always fail with ENOSYS. Some functions are actually named
19134 something starting with __ and the normal name is an alias. */
19135 #if defined (__stub___res_send) || defined (__stub_____res_send)
19136 choke me
19137 #else
19138 char (*f) () = __res_send;
19139 #endif
19140 #ifdef __cplusplus
19141 }
19142 #endif
19143
19144 int
19145 main ()
19146 {
19147 return f != __res_send;
19148 ;
19149 return 0;
19150 }
19151 _ACEOF
19152 rm -f conftest.$ac_objext conftest$ac_exeext
19153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19154 (eval $ac_link) 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; } &&
19167 { ac_try='test -s conftest$ac_exeext'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_cv_func___res_send=yes
19174 else
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19177
19178 ac_cv_func___res_send=no
19179 fi
19180 rm -f conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182 fi
19183 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19184 echo "${ECHO_T}$ac_cv_func___res_send" >&6
19185 if test $ac_cv_func___res_send = yes; then
19186 :
19187 else
19188 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19189 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19190 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193 ac_check_lib_save_LIBS=$LIBS
19194 LIBS="-lresolv $LIBS"
19195 cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h. */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19201
19202 /* Override any gcc2 internal prototype to avoid an error. */
19203 #ifdef __cplusplus
19204 extern "C"
19205 #endif
19206 /* We use char because int might match the return type of a gcc2
19207 builtin and then its argument prototype would still apply. */
19208 char res_send ();
19209 int
19210 main ()
19211 {
19212 res_send ();
19213 ;
19214 return 0;
19215 }
19216 _ACEOF
19217 rm -f conftest.$ac_objext conftest$ac_exeext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19219 (eval $ac_link) 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try='test -z "$ac_c_werror_flag"
19227 || test ! -s conftest.err'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try='test -s conftest$ac_exeext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_lib_resolv_res_send=yes
19240 else
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ac_cv_lib_resolv_res_send=no
19245 fi
19246 rm -f conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
19248 LIBS=$ac_check_lib_save_LIBS
19249 fi
19250 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19251 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19252 if test $ac_cv_lib_resolv_res_send = yes; then
19253 resolv=yes
19254 else
19255 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19256 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
19257 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19259 else
19260 ac_check_lib_save_LIBS=$LIBS
19261 LIBS="-lresolv $LIBS"
19262 cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h. */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19268
19269 /* Override any gcc2 internal prototype to avoid an error. */
19270 #ifdef __cplusplus
19271 extern "C"
19272 #endif
19273 /* We use char because int might match the return type of a gcc2
19274 builtin and then its argument prototype would still apply. */
19275 char __res_send ();
19276 int
19277 main ()
19278 {
19279 __res_send ();
19280 ;
19281 return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286 (eval $ac_link) 2>conftest.er1
19287 ac_status=$?
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -z "$ac_c_werror_flag"
19294 || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest$ac_exeext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_lib_resolv___res_send=yes
19307 else
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 ac_cv_lib_resolv___res_send=no
19312 fi
19313 rm -f conftest.err conftest.$ac_objext \
19314 conftest$ac_exeext conftest.$ac_ext
19315 LIBS=$ac_check_lib_save_LIBS
19316 fi
19317 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19318 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
19319 if test $ac_cv_lib_resolv___res_send = yes; then
19320 resolv=yes
19321 fi
19322
19323 fi
19324
19325 fi
19326
19327 fi
19328
19329 if test "$resolv" = yes ; then
19330 RESOLVLIB=-lresolv
19331
19332 cat >>confdefs.h <<\_ACEOF
19333 #define HAVE_LIBRESOLV 1
19334 _ACEOF
19335
19336 else
19337 RESOLVLIB=
19338 fi
19339 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19340 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
19341 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 else
19344 cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h. */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19350 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19352 #define hes_getmailhost innocuous_hes_getmailhost
19353
19354 /* System header to define __stub macros and hopefully few prototypes,
19355 which can conflict with char hes_getmailhost (); below.
19356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19357 <limits.h> exists even on freestanding compilers. */
19358
19359 #ifdef __STDC__
19360 # include <limits.h>
19361 #else
19362 # include <assert.h>
19363 #endif
19364
19365 #undef hes_getmailhost
19366
19367 /* Override any gcc2 internal prototype to avoid an error. */
19368 #ifdef __cplusplus
19369 extern "C"
19370 {
19371 #endif
19372 /* We use char because int might match the return type of a gcc2
19373 builtin and then its argument prototype would still apply. */
19374 char hes_getmailhost ();
19375 /* The GNU C library defines this for functions which it implements
19376 to always fail with ENOSYS. Some functions are actually named
19377 something starting with __ and the normal name is an alias. */
19378 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
19379 choke me
19380 #else
19381 char (*f) () = hes_getmailhost;
19382 #endif
19383 #ifdef __cplusplus
19384 }
19385 #endif
19386
19387 int
19388 main ()
19389 {
19390 return f != hes_getmailhost;
19391 ;
19392 return 0;
19393 }
19394 _ACEOF
19395 rm -f conftest.$ac_objext conftest$ac_exeext
19396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19397 (eval $ac_link) 2>conftest.er1
19398 ac_status=$?
19399 grep -v '^ *+' conftest.er1 >conftest.err
19400 rm -f conftest.er1
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -z "$ac_c_werror_flag"
19405 || test ! -s conftest.err'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try='test -s conftest$ac_exeext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19417 ac_cv_func_hes_getmailhost=yes
19418 else
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19421
19422 ac_cv_func_hes_getmailhost=no
19423 fi
19424 rm -f conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19426 fi
19427 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19428 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
19429 if test $ac_cv_func_hes_getmailhost = yes; then
19430 :
19431 else
19432 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19433 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
19434 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19435 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 else
19437 ac_check_lib_save_LIBS=$LIBS
19438 LIBS="-lhesiod $RESOLVLIB $LIBS"
19439 cat >conftest.$ac_ext <<_ACEOF
19440 /* confdefs.h. */
19441 _ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19445
19446 /* Override any gcc2 internal prototype to avoid an error. */
19447 #ifdef __cplusplus
19448 extern "C"
19449 #endif
19450 /* We use char because int might match the return type of a gcc2
19451 builtin and then its argument prototype would still apply. */
19452 char hes_getmailhost ();
19453 int
19454 main ()
19455 {
19456 hes_getmailhost ();
19457 ;
19458 return 0;
19459 }
19460 _ACEOF
19461 rm -f conftest.$ac_objext conftest$ac_exeext
19462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19463 (eval $ac_link) 2>conftest.er1
19464 ac_status=$?
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest$ac_exeext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_lib_hesiod_hes_getmailhost=yes
19483 else
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ac_cv_lib_hesiod_hes_getmailhost=no
19488 fi
19489 rm -f conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19492 fi
19493 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19494 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
19495 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19496
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE_LIBHESIOD 1
19499 _ACEOF
19500
19501 else
19502 :
19503 fi
19504
19505 fi
19506
19507 fi
19508
19509 # These tell us which Kerberos-related libraries to use.
19510 if test "${with_kerberos+set}" = set; then
19511
19512 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19513 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
19514 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 else
19517 ac_check_lib_save_LIBS=$LIBS
19518 LIBS="-lcom_err $LIBS"
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h. */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19525
19526 /* Override any gcc2 internal prototype to avoid an error. */
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 /* We use char because int might match the return type of a gcc2
19531 builtin and then its argument prototype would still apply. */
19532 char com_err ();
19533 int
19534 main ()
19535 {
19536 com_err ();
19537 ;
19538 return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext conftest$ac_exeext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19543 (eval $ac_link) 2>conftest.er1
19544 ac_status=$?
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try='test -z "$ac_c_werror_flag"
19551 || test ! -s conftest.err'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest$ac_exeext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_lib_com_err_com_err=yes
19564 else
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19567
19568 ac_cv_lib_com_err_com_err=no
19569 fi
19570 rm -f conftest.err conftest.$ac_objext \
19571 conftest$ac_exeext conftest.$ac_ext
19572 LIBS=$ac_check_lib_save_LIBS
19573 fi
19574 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19575 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19576 if test $ac_cv_lib_com_err_com_err = yes; then
19577 cat >>confdefs.h <<_ACEOF
19578 #define HAVE_LIBCOM_ERR 1
19579 _ACEOF
19580
19581 LIBS="-lcom_err $LIBS"
19582
19583 fi
19584
19585
19586 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19587 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19588 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 else
19591 ac_check_lib_save_LIBS=$LIBS
19592 LIBS="-lk5crypto $LIBS"
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h. */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599
19600 /* Override any gcc2 internal prototype to avoid an error. */
19601 #ifdef __cplusplus
19602 extern "C"
19603 #endif
19604 /* We use char because int might match the return type of a gcc2
19605 builtin and then its argument prototype would still apply. */
19606 char mit_des_cbc_encrypt ();
19607 int
19608 main ()
19609 {
19610 mit_des_cbc_encrypt ();
19611 ;
19612 return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19617 (eval $ac_link) 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -z "$ac_c_werror_flag"
19625 || test ! -s conftest.err'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try='test -s conftest$ac_exeext'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19638 else
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19641
19642 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19643 fi
19644 rm -f conftest.err conftest.$ac_objext \
19645 conftest$ac_exeext conftest.$ac_ext
19646 LIBS=$ac_check_lib_save_LIBS
19647 fi
19648 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19649 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19650 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19651 cat >>confdefs.h <<_ACEOF
19652 #define HAVE_LIBK5CRYPTO 1
19653 _ACEOF
19654
19655 LIBS="-lk5crypto $LIBS"
19656
19657 fi
19658
19659
19660 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19661 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19662 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 else
19665 ac_check_lib_save_LIBS=$LIBS
19666 LIBS="-lcrypto $LIBS"
19667 cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h. */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673
19674 /* Override any gcc2 internal prototype to avoid an error. */
19675 #ifdef __cplusplus
19676 extern "C"
19677 #endif
19678 /* We use char because int might match the return type of a gcc2
19679 builtin and then its argument prototype would still apply. */
19680 char mit_des_cbc_encrypt ();
19681 int
19682 main ()
19683 {
19684 mit_des_cbc_encrypt ();
19685 ;
19686 return 0;
19687 }
19688 _ACEOF
19689 rm -f conftest.$ac_objext conftest$ac_exeext
19690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19691 (eval $ac_link) 2>conftest.er1
19692 ac_status=$?
19693 grep -v '^ *+' conftest.er1 >conftest.err
19694 rm -f conftest.er1
19695 cat conftest.err >&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } &&
19698 { ac_try='test -z "$ac_c_werror_flag"
19699 || test ! -s conftest.err'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try='test -s conftest$ac_exeext'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19712 else
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19717 fi
19718 rm -f conftest.err conftest.$ac_objext \
19719 conftest$ac_exeext conftest.$ac_ext
19720 LIBS=$ac_check_lib_save_LIBS
19721 fi
19722 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19723 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19724 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19725 cat >>confdefs.h <<_ACEOF
19726 #define HAVE_LIBCRYPTO 1
19727 _ACEOF
19728
19729 LIBS="-lcrypto $LIBS"
19730
19731 fi
19732
19733
19734 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19735 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19736 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739 ac_check_lib_save_LIBS=$LIBS
19740 LIBS="-lkrb5 $LIBS"
19741 cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h. */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19747
19748 /* Override any gcc2 internal prototype to avoid an error. */
19749 #ifdef __cplusplus
19750 extern "C"
19751 #endif
19752 /* We use char because int might match the return type of a gcc2
19753 builtin and then its argument prototype would still apply. */
19754 char krb5_init_context ();
19755 int
19756 main ()
19757 {
19758 krb5_init_context ();
19759 ;
19760 return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765 (eval $ac_link) 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_c_werror_flag"
19773 || test ! -s conftest.err'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; } &&
19779 { ac_try='test -s conftest$ac_exeext'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_cv_lib_krb5_krb5_init_context=yes
19786 else
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 ac_cv_lib_krb5_krb5_init_context=no
19791 fi
19792 rm -f conftest.err conftest.$ac_objext \
19793 conftest$ac_exeext conftest.$ac_ext
19794 LIBS=$ac_check_lib_save_LIBS
19795 fi
19796 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19797 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19798 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19799 cat >>confdefs.h <<_ACEOF
19800 #define HAVE_LIBKRB5 1
19801 _ACEOF
19802
19803 LIBS="-lkrb5 $LIBS"
19804
19805 fi
19806
19807 if test "${with_kerberos5+set}" != set; then
19808
19809 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19810 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19811 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814 ac_check_lib_save_LIBS=$LIBS
19815 LIBS="-ldes425 $LIBS"
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822
19823 /* Override any gcc2 internal prototype to avoid an error. */
19824 #ifdef __cplusplus
19825 extern "C"
19826 #endif
19827 /* We use char because int might match the return type of a gcc2
19828 builtin and then its argument prototype would still apply. */
19829 char des_cbc_encrypt ();
19830 int
19831 main ()
19832 {
19833 des_cbc_encrypt ();
19834 ;
19835 return 0;
19836 }
19837 _ACEOF
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19840 (eval $ac_link) 2>conftest.er1
19841 ac_status=$?
19842 grep -v '^ *+' conftest.er1 >conftest.err
19843 rm -f conftest.er1
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_c_werror_flag"
19848 || test ! -s conftest.err'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; } &&
19854 { ac_try='test -s conftest$ac_exeext'
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; }; then
19860 ac_cv_lib_des425_des_cbc_encrypt=yes
19861 else
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19864
19865 ac_cv_lib_des425_des_cbc_encrypt=no
19866 fi
19867 rm -f conftest.err conftest.$ac_objext \
19868 conftest$ac_exeext conftest.$ac_ext
19869 LIBS=$ac_check_lib_save_LIBS
19870 fi
19871 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19872 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19873 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19874 cat >>confdefs.h <<_ACEOF
19875 #define HAVE_LIBDES425 1
19876 _ACEOF
19877
19878 LIBS="-ldes425 $LIBS"
19879
19880 else
19881
19882 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19883 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19884 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887 ac_check_lib_save_LIBS=$LIBS
19888 LIBS="-ldes $LIBS"
19889 cat >conftest.$ac_ext <<_ACEOF
19890 /* confdefs.h. */
19891 _ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h. */
19895
19896 /* Override any gcc2 internal prototype to avoid an error. */
19897 #ifdef __cplusplus
19898 extern "C"
19899 #endif
19900 /* We use char because int might match the return type of a gcc2
19901 builtin and then its argument prototype would still apply. */
19902 char des_cbc_encrypt ();
19903 int
19904 main ()
19905 {
19906 des_cbc_encrypt ();
19907 ;
19908 return 0;
19909 }
19910 _ACEOF
19911 rm -f conftest.$ac_objext conftest$ac_exeext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19913 (eval $ac_link) 2>conftest.er1
19914 ac_status=$?
19915 grep -v '^ *+' conftest.er1 >conftest.err
19916 rm -f conftest.er1
19917 cat conftest.err >&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } &&
19920 { ac_try='test -z "$ac_c_werror_flag"
19921 || test ! -s conftest.err'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; } &&
19927 { ac_try='test -s conftest$ac_exeext'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 ac_cv_lib_des_des_cbc_encrypt=yes
19934 else
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19937
19938 ac_cv_lib_des_des_cbc_encrypt=no
19939 fi
19940 rm -f conftest.err conftest.$ac_objext \
19941 conftest$ac_exeext conftest.$ac_ext
19942 LIBS=$ac_check_lib_save_LIBS
19943 fi
19944 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19945 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19946 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19947 cat >>confdefs.h <<_ACEOF
19948 #define HAVE_LIBDES 1
19949 _ACEOF
19950
19951 LIBS="-ldes $LIBS"
19952
19953 fi
19954
19955 fi
19956
19957
19958 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19959 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19960 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963 ac_check_lib_save_LIBS=$LIBS
19964 LIBS="-lkrb4 $LIBS"
19965 cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h. */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971
19972 /* Override any gcc2 internal prototype to avoid an error. */
19973 #ifdef __cplusplus
19974 extern "C"
19975 #endif
19976 /* We use char because int might match the return type of a gcc2
19977 builtin and then its argument prototype would still apply. */
19978 char krb_get_cred ();
19979 int
19980 main ()
19981 {
19982 krb_get_cred ();
19983 ;
19984 return 0;
19985 }
19986 _ACEOF
19987 rm -f conftest.$ac_objext conftest$ac_exeext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19989 (eval $ac_link) 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest$ac_exeext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20009 ac_cv_lib_krb4_krb_get_cred=yes
20010 else
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_cv_lib_krb4_krb_get_cred=no
20015 fi
20016 rm -f conftest.err conftest.$ac_objext \
20017 conftest$ac_exeext conftest.$ac_ext
20018 LIBS=$ac_check_lib_save_LIBS
20019 fi
20020 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20021 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
20022 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20023 cat >>confdefs.h <<_ACEOF
20024 #define HAVE_LIBKRB4 1
20025 _ACEOF
20026
20027 LIBS="-lkrb4 $LIBS"
20028
20029 else
20030
20031 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20032 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
20033 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 else
20036 ac_check_lib_save_LIBS=$LIBS
20037 LIBS="-lkrb $LIBS"
20038 cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h. */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20044
20045 /* Override any gcc2 internal prototype to avoid an error. */
20046 #ifdef __cplusplus
20047 extern "C"
20048 #endif
20049 /* We use char because int might match the return type of a gcc2
20050 builtin and then its argument prototype would still apply. */
20051 char krb_get_cred ();
20052 int
20053 main ()
20054 {
20055 krb_get_cred ();
20056 ;
20057 return 0;
20058 }
20059 _ACEOF
20060 rm -f conftest.$ac_objext conftest$ac_exeext
20061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20062 (eval $ac_link) 2>conftest.er1
20063 ac_status=$?
20064 grep -v '^ *+' conftest.er1 >conftest.err
20065 rm -f conftest.er1
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } &&
20069 { ac_try='test -z "$ac_c_werror_flag"
20070 || test ! -s conftest.err'
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest$ac_exeext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_cv_lib_krb_krb_get_cred=yes
20083 else
20084 echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20086
20087 ac_cv_lib_krb_krb_get_cred=no
20088 fi
20089 rm -f conftest.err conftest.$ac_objext \
20090 conftest$ac_exeext conftest.$ac_ext
20091 LIBS=$ac_check_lib_save_LIBS
20092 fi
20093 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20094 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
20095 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20096 cat >>confdefs.h <<_ACEOF
20097 #define HAVE_LIBKRB 1
20098 _ACEOF
20099
20100 LIBS="-lkrb $LIBS"
20101
20102 fi
20103
20104 fi
20105
20106 fi
20107
20108 if test "${with_kerberos5+set}" = set; then
20109
20110 for ac_header in krb5.h
20111 do
20112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20114 echo "$as_me:$LINENO: checking for $ac_header" >&5
20115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 fi
20119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20121 else
20122 # Is the header compilable?
20123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20125 cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h. */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 $ac_includes_default
20132 #include <$ac_header>
20133 _ACEOF
20134 rm -f conftest.$ac_objext
20135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20136 (eval $ac_compile) 2>conftest.er1
20137 ac_status=$?
20138 grep -v '^ *+' conftest.er1 >conftest.err
20139 rm -f conftest.er1
20140 cat conftest.err >&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } &&
20143 { ac_try='test -z "$ac_c_werror_flag"
20144 || test ! -s conftest.err'
20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146 (eval $ac_try) 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; } &&
20150 { ac_try='test -s conftest.$ac_objext'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20156 ac_header_compiler=yes
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161 ac_header_compiler=no
20162 fi
20163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20165 echo "${ECHO_T}$ac_header_compiler" >&6
20166
20167 # Is the header present?
20168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20170 cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h. */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20176 #include <$ac_header>
20177 _ACEOF
20178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } >/dev/null; then
20186 if test -s conftest.err; then
20187 ac_cpp_err=$ac_c_preproc_warn_flag
20188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20189 else
20190 ac_cpp_err=
20191 fi
20192 else
20193 ac_cpp_err=yes
20194 fi
20195 if test -z "$ac_cpp_err"; then
20196 ac_header_preproc=yes
20197 else
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20200
20201 ac_header_preproc=no
20202 fi
20203 rm -f conftest.err conftest.$ac_ext
20204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20205 echo "${ECHO_T}$ac_header_preproc" >&6
20206
20207 # So? What about this header?
20208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20209 yes:no: )
20210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20214 ac_header_preproc=yes
20215 ;;
20216 no:yes:* )
20217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20229 (
20230 cat <<\_ASBOX
20231 ## ------------------------------------------ ##
20232 ## Report this to the AC_PACKAGE_NAME lists. ##
20233 ## ------------------------------------------ ##
20234 _ASBOX
20235 ) |
20236 sed "s/^/$as_me: WARNING: /" >&2
20237 ;;
20238 esac
20239 echo "$as_me:$LINENO: checking for $ac_header" >&5
20240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 else
20244 eval "$as_ac_Header=\$ac_header_preproc"
20245 fi
20246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20248
20249 fi
20250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20251 cat >>confdefs.h <<_ACEOF
20252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20253 _ACEOF
20254
20255 fi
20256
20257 done
20258
20259 else
20260
20261 for ac_header in des.h
20262 do
20263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20265 echo "$as_me:$LINENO: checking for $ac_header" >&5
20266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 fi
20270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20272 else
20273 # Is the header compilable?
20274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h. */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 $ac_includes_default
20283 #include <$ac_header>
20284 _ACEOF
20285 rm -f conftest.$ac_objext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20287 (eval $ac_compile) 2>conftest.er1
20288 ac_status=$?
20289 grep -v '^ *+' conftest.er1 >conftest.err
20290 rm -f conftest.er1
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } &&
20294 { ac_try='test -z "$ac_c_werror_flag"
20295 || test ! -s conftest.err'
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; } &&
20301 { ac_try='test -s conftest.$ac_objext'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 ac_header_compiler=yes
20308 else
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20311
20312 ac_header_compiler=no
20313 fi
20314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20316 echo "${ECHO_T}$ac_header_compiler" >&6
20317
20318 # Is the header present?
20319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20321 cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h. */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 #include <$ac_header>
20328 _ACEOF
20329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20331 ac_status=$?
20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } >/dev/null; then
20337 if test -s conftest.err; then
20338 ac_cpp_err=$ac_c_preproc_warn_flag
20339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20340 else
20341 ac_cpp_err=
20342 fi
20343 else
20344 ac_cpp_err=yes
20345 fi
20346 if test -z "$ac_cpp_err"; then
20347 ac_header_preproc=yes
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352 ac_header_preproc=no
20353 fi
20354 rm -f conftest.err conftest.$ac_ext
20355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20356 echo "${ECHO_T}$ac_header_preproc" >&6
20357
20358 # So? What about this header?
20359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20360 yes:no: )
20361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20365 ac_header_preproc=yes
20366 ;;
20367 no:yes:* )
20368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20380 (
20381 cat <<\_ASBOX
20382 ## ------------------------------------------ ##
20383 ## Report this to the AC_PACKAGE_NAME lists. ##
20384 ## ------------------------------------------ ##
20385 _ASBOX
20386 ) |
20387 sed "s/^/$as_me: WARNING: /" >&2
20388 ;;
20389 esac
20390 echo "$as_me:$LINENO: checking for $ac_header" >&5
20391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
20394 else
20395 eval "$as_ac_Header=\$ac_header_preproc"
20396 fi
20397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20399
20400 fi
20401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20402 cat >>confdefs.h <<_ACEOF
20403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20404 _ACEOF
20405
20406 else
20407
20408 for ac_header in kerberosIV/des.h
20409 do
20410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20412 echo "$as_me:$LINENO: checking for $ac_header" >&5
20413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20416 fi
20417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20419 else
20420 # Is the header compilable?
20421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 $ac_includes_default
20430 #include <$ac_header>
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20434 (eval $ac_compile) 2>conftest.er1
20435 ac_status=$?
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
20441 { ac_try='test -z "$ac_c_werror_flag"
20442 || test ! -s conftest.err'
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try='test -s conftest.$ac_objext'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_header_compiler=yes
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 ac_header_compiler=no
20460 fi
20461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20463 echo "${ECHO_T}$ac_header_compiler" >&6
20464
20465 # Is the header present?
20466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20468 cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 #include <$ac_header>
20475 _ACEOF
20476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20478 ac_status=$?
20479 grep -v '^ *+' conftest.er1 >conftest.err
20480 rm -f conftest.er1
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } >/dev/null; then
20484 if test -s conftest.err; then
20485 ac_cpp_err=$ac_c_preproc_warn_flag
20486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20487 else
20488 ac_cpp_err=
20489 fi
20490 else
20491 ac_cpp_err=yes
20492 fi
20493 if test -z "$ac_cpp_err"; then
20494 ac_header_preproc=yes
20495 else
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 ac_header_preproc=no
20500 fi
20501 rm -f conftest.err conftest.$ac_ext
20502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20503 echo "${ECHO_T}$ac_header_preproc" >&6
20504
20505 # So? What about this header?
20506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20507 yes:no: )
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20512 ac_header_preproc=yes
20513 ;;
20514 no:yes:* )
20515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20527 (
20528 cat <<\_ASBOX
20529 ## ------------------------------------------ ##
20530 ## Report this to the AC_PACKAGE_NAME lists. ##
20531 ## ------------------------------------------ ##
20532 _ASBOX
20533 ) |
20534 sed "s/^/$as_me: WARNING: /" >&2
20535 ;;
20536 esac
20537 echo "$as_me:$LINENO: checking for $ac_header" >&5
20538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 else
20542 eval "$as_ac_Header=\$ac_header_preproc"
20543 fi
20544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20546
20547 fi
20548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20549 cat >>confdefs.h <<_ACEOF
20550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20551 _ACEOF
20552
20553 else
20554
20555 for ac_header in kerberos/des.h
20556 do
20557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20559 echo "$as_me:$LINENO: checking for $ac_header" >&5
20560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 fi
20564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20566 else
20567 # Is the header compilable?
20568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20570 cat >conftest.$ac_ext <<_ACEOF
20571 /* confdefs.h. */
20572 _ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h. */
20576 $ac_includes_default
20577 #include <$ac_header>
20578 _ACEOF
20579 rm -f conftest.$ac_objext
20580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20581 (eval $ac_compile) 2>conftest.er1
20582 ac_status=$?
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } &&
20588 { ac_try='test -z "$ac_c_werror_flag"
20589 || test ! -s conftest.err'
20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591 (eval $ac_try) 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } &&
20595 { ac_try='test -s conftest.$ac_objext'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 ac_header_compiler=yes
20602 else
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606 ac_header_compiler=no
20607 fi
20608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20610 echo "${ECHO_T}$ac_header_compiler" >&6
20611
20612 # Is the header present?
20613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h. */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 #include <$ac_header>
20622 _ACEOF
20623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20625 ac_status=$?
20626 grep -v '^ *+' conftest.er1 >conftest.err
20627 rm -f conftest.er1
20628 cat conftest.err >&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } >/dev/null; then
20631 if test -s conftest.err; then
20632 ac_cpp_err=$ac_c_preproc_warn_flag
20633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20634 else
20635 ac_cpp_err=
20636 fi
20637 else
20638 ac_cpp_err=yes
20639 fi
20640 if test -z "$ac_cpp_err"; then
20641 ac_header_preproc=yes
20642 else
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646 ac_header_preproc=no
20647 fi
20648 rm -f conftest.err conftest.$ac_ext
20649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20650 echo "${ECHO_T}$ac_header_preproc" >&6
20651
20652 # So? What about this header?
20653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20654 yes:no: )
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20659 ac_header_preproc=yes
20660 ;;
20661 no:yes:* )
20662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20674 (
20675 cat <<\_ASBOX
20676 ## ------------------------------------------ ##
20677 ## Report this to the AC_PACKAGE_NAME lists. ##
20678 ## ------------------------------------------ ##
20679 _ASBOX
20680 ) |
20681 sed "s/^/$as_me: WARNING: /" >&2
20682 ;;
20683 esac
20684 echo "$as_me:$LINENO: checking for $ac_header" >&5
20685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20687 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 else
20689 eval "$as_ac_Header=\$ac_header_preproc"
20690 fi
20691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20693
20694 fi
20695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20696 cat >>confdefs.h <<_ACEOF
20697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20698 _ACEOF
20699
20700 fi
20701
20702 done
20703
20704 fi
20705
20706 done
20707
20708 fi
20709
20710 done
20711
20712
20713 for ac_header in krb.h
20714 do
20715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20717 echo "$as_me:$LINENO: checking for $ac_header" >&5
20718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 fi
20722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20724 else
20725 # Is the header compilable?
20726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h. */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 $ac_includes_default
20735 #include <$ac_header>
20736 _ACEOF
20737 rm -f conftest.$ac_objext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20739 (eval $ac_compile) 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_c_werror_flag"
20747 || test ! -s conftest.err'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest.$ac_objext'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 ac_header_compiler=yes
20760 else
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764 ac_header_compiler=no
20765 fi
20766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20768 echo "${ECHO_T}$ac_header_compiler" >&6
20769
20770 # Is the header present?
20771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20773 cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h. */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20779 #include <$ac_header>
20780 _ACEOF
20781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } >/dev/null; then
20789 if test -s conftest.err; then
20790 ac_cpp_err=$ac_c_preproc_warn_flag
20791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20792 else
20793 ac_cpp_err=
20794 fi
20795 else
20796 ac_cpp_err=yes
20797 fi
20798 if test -z "$ac_cpp_err"; then
20799 ac_header_preproc=yes
20800 else
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 ac_header_preproc=no
20805 fi
20806 rm -f conftest.err conftest.$ac_ext
20807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20808 echo "${ECHO_T}$ac_header_preproc" >&6
20809
20810 # So? What about this header?
20811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20812 yes:no: )
20813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20817 ac_header_preproc=yes
20818 ;;
20819 no:yes:* )
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20832 (
20833 cat <<\_ASBOX
20834 ## ------------------------------------------ ##
20835 ## Report this to the AC_PACKAGE_NAME lists. ##
20836 ## ------------------------------------------ ##
20837 _ASBOX
20838 ) |
20839 sed "s/^/$as_me: WARNING: /" >&2
20840 ;;
20841 esac
20842 echo "$as_me:$LINENO: checking for $ac_header" >&5
20843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847 eval "$as_ac_Header=\$ac_header_preproc"
20848 fi
20849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20851
20852 fi
20853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20854 cat >>confdefs.h <<_ACEOF
20855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20856 _ACEOF
20857
20858 else
20859
20860 for ac_header in kerberosIV/krb.h
20861 do
20862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20864 echo "$as_me:$LINENO: checking for $ac_header" >&5
20865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 fi
20869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20871 else
20872 # Is the header compilable?
20873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20875 cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h. */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20881 $ac_includes_default
20882 #include <$ac_header>
20883 _ACEOF
20884 rm -f conftest.$ac_objext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20886 (eval $ac_compile) 2>conftest.er1
20887 ac_status=$?
20888 grep -v '^ *+' conftest.er1 >conftest.err
20889 rm -f conftest.er1
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
20893 { ac_try='test -z "$ac_c_werror_flag"
20894 || test ! -s conftest.err'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 ac_header_compiler=yes
20907 else
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911 ac_header_compiler=no
20912 fi
20913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20915 echo "${ECHO_T}$ac_header_compiler" >&6
20916
20917 # Is the header present?
20918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20920 cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h. */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 #include <$ac_header>
20927 _ACEOF
20928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20930 ac_status=$?
20931 grep -v '^ *+' conftest.er1 >conftest.err
20932 rm -f conftest.er1
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } >/dev/null; then
20936 if test -s conftest.err; then
20937 ac_cpp_err=$ac_c_preproc_warn_flag
20938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20939 else
20940 ac_cpp_err=
20941 fi
20942 else
20943 ac_cpp_err=yes
20944 fi
20945 if test -z "$ac_cpp_err"; then
20946 ac_header_preproc=yes
20947 else
20948 echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20950
20951 ac_header_preproc=no
20952 fi
20953 rm -f conftest.err conftest.$ac_ext
20954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20955 echo "${ECHO_T}$ac_header_preproc" >&6
20956
20957 # So? What about this header?
20958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20959 yes:no: )
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20964 ac_header_preproc=yes
20965 ;;
20966 no:yes:* )
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20979 (
20980 cat <<\_ASBOX
20981 ## ------------------------------------------ ##
20982 ## Report this to the AC_PACKAGE_NAME lists. ##
20983 ## ------------------------------------------ ##
20984 _ASBOX
20985 ) |
20986 sed "s/^/$as_me: WARNING: /" >&2
20987 ;;
20988 esac
20989 echo "$as_me:$LINENO: checking for $ac_header" >&5
20990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994 eval "$as_ac_Header=\$ac_header_preproc"
20995 fi
20996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20998
20999 fi
21000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21001 cat >>confdefs.h <<_ACEOF
21002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21003 _ACEOF
21004
21005 else
21006
21007 for ac_header in kerberos/krb.h
21008 do
21009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21011 echo "$as_me:$LINENO: checking for $ac_header" >&5
21012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 fi
21016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21018 else
21019 # Is the header compilable?
21020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21022 cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h. */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 $ac_includes_default
21029 #include <$ac_header>
21030 _ACEOF
21031 rm -f conftest.$ac_objext
21032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21033 (eval $ac_compile) 2>conftest.er1
21034 ac_status=$?
21035 grep -v '^ *+' conftest.er1 >conftest.err
21036 rm -f conftest.er1
21037 cat conftest.err >&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } &&
21040 { ac_try='test -z "$ac_c_werror_flag"
21041 || test ! -s conftest.err'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; } &&
21047 { ac_try='test -s conftest.$ac_objext'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_header_compiler=yes
21054 else
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21057
21058 ac_header_compiler=no
21059 fi
21060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21062 echo "${ECHO_T}$ac_header_compiler" >&6
21063
21064 # Is the header present?
21065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21067 cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h. */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 #include <$ac_header>
21074 _ACEOF
21075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } >/dev/null; then
21083 if test -s conftest.err; then
21084 ac_cpp_err=$ac_c_preproc_warn_flag
21085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21086 else
21087 ac_cpp_err=
21088 fi
21089 else
21090 ac_cpp_err=yes
21091 fi
21092 if test -z "$ac_cpp_err"; then
21093 ac_header_preproc=yes
21094 else
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 ac_header_preproc=no
21099 fi
21100 rm -f conftest.err conftest.$ac_ext
21101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21102 echo "${ECHO_T}$ac_header_preproc" >&6
21103
21104 # So? What about this header?
21105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21106 yes:no: )
21107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21111 ac_header_preproc=yes
21112 ;;
21113 no:yes:* )
21114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21126 (
21127 cat <<\_ASBOX
21128 ## ------------------------------------------ ##
21129 ## Report this to the AC_PACKAGE_NAME lists. ##
21130 ## ------------------------------------------ ##
21131 _ASBOX
21132 ) |
21133 sed "s/^/$as_me: WARNING: /" >&2
21134 ;;
21135 esac
21136 echo "$as_me:$LINENO: checking for $ac_header" >&5
21137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141 eval "$as_ac_Header=\$ac_header_preproc"
21142 fi
21143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21145
21146 fi
21147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21148 cat >>confdefs.h <<_ACEOF
21149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21150 _ACEOF
21151
21152 fi
21153
21154 done
21155
21156 fi
21157
21158 done
21159
21160 fi
21161
21162 done
21163
21164 fi
21165
21166 for ac_header in com_err.h
21167 do
21168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21170 echo "$as_me:$LINENO: checking for $ac_header" >&5
21171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 fi
21175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21177 else
21178 # Is the header compilable?
21179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 $ac_includes_default
21188 #include <$ac_header>
21189 _ACEOF
21190 rm -f conftest.$ac_objext
21191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21192 (eval $ac_compile) 2>conftest.er1
21193 ac_status=$?
21194 grep -v '^ *+' conftest.er1 >conftest.err
21195 rm -f conftest.er1
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } &&
21199 { ac_try='test -z "$ac_c_werror_flag"
21200 || test ! -s conftest.err'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21203 ac_status=$?
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; } &&
21206 { ac_try='test -s conftest.$ac_objext'
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
21212 ac_header_compiler=yes
21213 else
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217 ac_header_compiler=no
21218 fi
21219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21221 echo "${ECHO_T}$ac_header_compiler" >&6
21222
21223 # Is the header present?
21224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <$ac_header>
21233 _ACEOF
21234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21236 ac_status=$?
21237 grep -v '^ *+' conftest.er1 >conftest.err
21238 rm -f conftest.er1
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } >/dev/null; then
21242 if test -s conftest.err; then
21243 ac_cpp_err=$ac_c_preproc_warn_flag
21244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21245 else
21246 ac_cpp_err=
21247 fi
21248 else
21249 ac_cpp_err=yes
21250 fi
21251 if test -z "$ac_cpp_err"; then
21252 ac_header_preproc=yes
21253 else
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21256
21257 ac_header_preproc=no
21258 fi
21259 rm -f conftest.err conftest.$ac_ext
21260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21261 echo "${ECHO_T}$ac_header_preproc" >&6
21262
21263 # So? What about this header?
21264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21265 yes:no: )
21266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21270 ac_header_preproc=yes
21271 ;;
21272 no:yes:* )
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21285 (
21286 cat <<\_ASBOX
21287 ## ------------------------------------------ ##
21288 ## Report this to the AC_PACKAGE_NAME lists. ##
21289 ## ------------------------------------------ ##
21290 _ASBOX
21291 ) |
21292 sed "s/^/$as_me: WARNING: /" >&2
21293 ;;
21294 esac
21295 echo "$as_me:$LINENO: checking for $ac_header" >&5
21296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21298 echo $ECHO_N "(cached) $ECHO_C" >&6
21299 else
21300 eval "$as_ac_Header=\$ac_header_preproc"
21301 fi
21302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21304
21305 fi
21306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21307 cat >>confdefs.h <<_ACEOF
21308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21309 _ACEOF
21310
21311 fi
21312
21313 done
21314
21315 fi
21316
21317 # Solaris requires -lintl if you want strerror (which calls dgettext)
21318 # to return localized messages.
21319
21320 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21321 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21322 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 else
21325 ac_check_lib_save_LIBS=$LIBS
21326 LIBS="-lintl $LIBS"
21327 cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h. */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333
21334 /* Override any gcc2 internal prototype to avoid an error. */
21335 #ifdef __cplusplus
21336 extern "C"
21337 #endif
21338 /* We use char because int might match the return type of a gcc2
21339 builtin and then its argument prototype would still apply. */
21340 char dgettext ();
21341 int
21342 main ()
21343 {
21344 dgettext ();
21345 ;
21346 return 0;
21347 }
21348 _ACEOF
21349 rm -f conftest.$ac_objext conftest$ac_exeext
21350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21351 (eval $ac_link) 2>conftest.er1
21352 ac_status=$?
21353 grep -v '^ *+' conftest.er1 >conftest.err
21354 rm -f conftest.er1
21355 cat conftest.err >&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } &&
21358 { ac_try='test -z "$ac_c_werror_flag"
21359 || test ! -s conftest.err'
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21362 ac_status=$?
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; } &&
21365 { ac_try='test -s conftest$ac_exeext'
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; }; then
21371 ac_cv_lib_intl_dgettext=yes
21372 else
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21375
21376 ac_cv_lib_intl_dgettext=no
21377 fi
21378 rm -f conftest.err conftest.$ac_objext \
21379 conftest$ac_exeext conftest.$ac_ext
21380 LIBS=$ac_check_lib_save_LIBS
21381 fi
21382 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21383 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21384 if test $ac_cv_lib_intl_dgettext = yes; then
21385 cat >>confdefs.h <<_ACEOF
21386 #define HAVE_LIBINTL 1
21387 _ACEOF
21388
21389 LIBS="-lintl $LIBS"
21390
21391 fi
21392
21393
21394 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21395 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
21396 if test "${emacs_cv_localtime_cache+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21398 else
21399 if test x$ac_cv_func_tzset = xyes; then
21400 if test "$cross_compiling" = yes; then
21401 # If we have tzset, assume the worst when cross-compiling.
21402 emacs_cv_localtime_cache=yes
21403 else
21404 cat >conftest.$ac_ext <<_ACEOF
21405 /* confdefs.h. */
21406 _ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h. */
21410 #include <time.h>
21411 extern char **environ;
21412 unset_TZ ()
21413 {
21414 char **from, **to;
21415 for (to = from = environ; (*to = *from); from++)
21416 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21417 to++;
21418 }
21419 char TZ_GMT0[] = "TZ=GMT0";
21420 char TZ_PST8[] = "TZ=PST8";
21421 main()
21422 {
21423 time_t now = time ((time_t *) 0);
21424 int hour_GMT0, hour_unset;
21425 if (putenv (TZ_GMT0) != 0)
21426 exit (1);
21427 hour_GMT0 = localtime (&now)->tm_hour;
21428 unset_TZ ();
21429 hour_unset = localtime (&now)->tm_hour;
21430 if (putenv (TZ_PST8) != 0)
21431 exit (1);
21432 if (localtime (&now)->tm_hour == hour_GMT0)
21433 exit (1);
21434 unset_TZ ();
21435 if (localtime (&now)->tm_hour != hour_unset)
21436 exit (1);
21437 exit (0);
21438 }
21439 _ACEOF
21440 rm -f conftest$ac_exeext
21441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21442 (eval $ac_link) 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 emacs_cv_localtime_cache=no
21452 else
21453 echo "$as_me: program exited with status $ac_status" >&5
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457 ( exit $ac_status )
21458 emacs_cv_localtime_cache=yes
21459 fi
21460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21461 fi
21462 else
21463 # If we lack tzset, report that localtime does not cache TZ,
21464 # since we can't invalidate the cache if we don't have tzset.
21465 emacs_cv_localtime_cache=no
21466 fi
21467 fi
21468 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21469 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
21470 if test $emacs_cv_localtime_cache = yes; then
21471
21472 cat >>confdefs.h <<\_ACEOF
21473 #define LOCALTIME_CACHE 1
21474 _ACEOF
21475
21476 fi
21477
21478 if test "x$HAVE_TIMEVAL" = xyes; then
21479
21480 for ac_func in gettimeofday
21481 do
21482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21483 echo "$as_me:$LINENO: checking for $ac_func" >&5
21484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21485 if eval "test \"\${$as_ac_var+set}\" = set"; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 else
21488 cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h. */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21496 #define $ac_func innocuous_$ac_func
21497
21498 /* System header to define __stub macros and hopefully few prototypes,
21499 which can conflict with char $ac_func (); below.
21500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21501 <limits.h> exists even on freestanding compilers. */
21502
21503 #ifdef __STDC__
21504 # include <limits.h>
21505 #else
21506 # include <assert.h>
21507 #endif
21508
21509 #undef $ac_func
21510
21511 /* Override any gcc2 internal prototype to avoid an error. */
21512 #ifdef __cplusplus
21513 extern "C"
21514 {
21515 #endif
21516 /* We use char because int might match the return type of a gcc2
21517 builtin and then its argument prototype would still apply. */
21518 char $ac_func ();
21519 /* The GNU C library defines this for functions which it implements
21520 to always fail with ENOSYS. Some functions are actually named
21521 something starting with __ and the normal name is an alias. */
21522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21523 choke me
21524 #else
21525 char (*f) () = $ac_func;
21526 #endif
21527 #ifdef __cplusplus
21528 }
21529 #endif
21530
21531 int
21532 main ()
21533 {
21534 return f != $ac_func;
21535 ;
21536 return 0;
21537 }
21538 _ACEOF
21539 rm -f conftest.$ac_objext conftest$ac_exeext
21540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21541 (eval $ac_link) 2>conftest.er1
21542 ac_status=$?
21543 grep -v '^ *+' conftest.er1 >conftest.err
21544 rm -f conftest.er1
21545 cat conftest.err >&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); } &&
21548 { ac_try='test -z "$ac_c_werror_flag"
21549 || test ! -s conftest.err'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; } &&
21555 { ac_try='test -s conftest$ac_exeext'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21558 ac_status=$?
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 eval "$as_ac_var=yes"
21562 else
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566 eval "$as_ac_var=no"
21567 fi
21568 rm -f conftest.err conftest.$ac_objext \
21569 conftest$ac_exeext conftest.$ac_ext
21570 fi
21571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21573 if test `eval echo '${'$as_ac_var'}'` = yes; then
21574 cat >>confdefs.h <<_ACEOF
21575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21576 _ACEOF
21577
21578 fi
21579 done
21580
21581 if test $ac_cv_func_gettimeofday = yes; then
21582 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21583 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21584 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
21586 else
21587 cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h. */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21593
21594 #ifdef TIME_WITH_SYS_TIME
21595 #include <sys/time.h>
21596 #include <time.h>
21597 #else
21598 #ifdef HAVE_SYS_TIME_H
21599 #include <sys/time.h>
21600 #else
21601 #include <time.h>
21602 #endif
21603 #endif
21604 int
21605 main ()
21606 {
21607 struct timeval time;
21608 gettimeofday (&time, 0);
21609 ;
21610 return 0;
21611 }
21612 _ACEOF
21613 rm -f conftest.$ac_objext
21614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21615 (eval $ac_compile) 2>conftest.er1
21616 ac_status=$?
21617 grep -v '^ *+' conftest.er1 >conftest.err
21618 rm -f conftest.er1
21619 cat conftest.err >&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } &&
21622 { ac_try='test -z "$ac_c_werror_flag"
21623 || test ! -s conftest.err'
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21626 ac_status=$?
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; } &&
21629 { ac_try='test -s conftest.$ac_objext'
21630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21631 (eval $ac_try) 2>&5
21632 ac_status=$?
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); }; }; then
21635 emacs_cv_gettimeofday_two_arguments=yes
21636 else
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21639
21640 emacs_cv_gettimeofday_two_arguments=no
21641 fi
21642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21643 fi
21644 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21645 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21646 if test $emacs_cv_gettimeofday_two_arguments = no; then
21647
21648 cat >>confdefs.h <<\_ACEOF
21649 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21650 _ACEOF
21651
21652 fi
21653 fi
21654 fi
21655
21656 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21657 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21658 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21659 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 else
21662 cat >conftest.$ac_ext <<_ACEOF
21663 /* confdefs.h. */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 #include <sys/types.h>
21669 #include <$ac_cv_struct_tm>
21670
21671
21672 int
21673 main ()
21674 {
21675 static struct tm ac_aggr;
21676 if (ac_aggr.tm_zone)
21677 return 0;
21678 ;
21679 return 0;
21680 }
21681 _ACEOF
21682 rm -f conftest.$ac_objext
21683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21684 (eval $ac_compile) 2>conftest.er1
21685 ac_status=$?
21686 grep -v '^ *+' conftest.er1 >conftest.err
21687 rm -f conftest.er1
21688 cat conftest.err >&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } &&
21691 { ac_try='test -z "$ac_c_werror_flag"
21692 || test ! -s conftest.err'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; } &&
21698 { ac_try='test -s conftest.$ac_objext'
21699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700 (eval $ac_try) 2>&5
21701 ac_status=$?
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; }; then
21704 ac_cv_member_struct_tm_tm_zone=yes
21705 else
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21708
21709 cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h. */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 #include <sys/types.h>
21716 #include <$ac_cv_struct_tm>
21717
21718
21719 int
21720 main ()
21721 {
21722 static struct tm ac_aggr;
21723 if (sizeof ac_aggr.tm_zone)
21724 return 0;
21725 ;
21726 return 0;
21727 }
21728 _ACEOF
21729 rm -f conftest.$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try='test -z "$ac_c_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21742 ac_status=$?
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_cv_member_struct_tm_tm_zone=yes
21752 else
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ac_cv_member_struct_tm_tm_zone=no
21757 fi
21758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21759 fi
21760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21761 fi
21762 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21763 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21764 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21765
21766 cat >>confdefs.h <<_ACEOF
21767 #define HAVE_STRUCT_TM_TM_ZONE 1
21768 _ACEOF
21769
21770
21771 fi
21772
21773 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21774
21775 cat >>confdefs.h <<\_ACEOF
21776 #define HAVE_TM_ZONE 1
21777 _ACEOF
21778
21779 else
21780 echo "$as_me:$LINENO: checking for tzname" >&5
21781 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21782 if test "${ac_cv_var_tzname+set}" = set; then
21783 echo $ECHO_N "(cached) $ECHO_C" >&6
21784 else
21785 cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h. */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <time.h>
21792 #ifndef tzname /* For SGI. */
21793 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21794 #endif
21795
21796 int
21797 main ()
21798 {
21799 atoi(*tzname);
21800 ;
21801 return 0;
21802 }
21803 _ACEOF
21804 rm -f conftest.$ac_objext conftest$ac_exeext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21806 (eval $ac_link) 2>conftest.er1
21807 ac_status=$?
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
21813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21816 ac_status=$?
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; } &&
21819 { ac_try='test -s conftest$ac_exeext'
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
21822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; }; then
21825 ac_cv_var_tzname=yes
21826 else
21827 echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21829
21830 ac_cv_var_tzname=no
21831 fi
21832 rm -f conftest.err conftest.$ac_objext \
21833 conftest$ac_exeext conftest.$ac_ext
21834 fi
21835 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21836 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21837 if test $ac_cv_var_tzname = yes; then
21838
21839 cat >>confdefs.h <<\_ACEOF
21840 #define HAVE_TZNAME 1
21841 _ACEOF
21842
21843 fi
21844 fi
21845
21846
21847 if test "$ac_cv_func_gettimeofday" = yes; then
21848 echo "$as_me:$LINENO: checking for struct timezone" >&5
21849 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21850 if test "${emacs_cv_struct_timezone+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853 cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h. */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 #include <sys/time.h>
21860 int
21861 main ()
21862 {
21863 struct timezone tz;
21864 ;
21865 return 0;
21866 }
21867 _ACEOF
21868 rm -f conftest.$ac_objext
21869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21870 (eval $ac_compile) 2>conftest.er1
21871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
21877 { ac_try='test -z "$ac_c_werror_flag"
21878 || test ! -s conftest.err'
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21881 ac_status=$?
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; } &&
21884 { ac_try='test -s conftest.$ac_objext'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21890 if test "$cross_compiling" = yes; then
21891 emacs_cv_struct_timezone=yes
21892 else
21893 cat >conftest.$ac_ext <<_ACEOF
21894 /* confdefs.h. */
21895 _ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899
21900 #ifdef TIME_WITH_SYS_TIME
21901 #include <sys/time.h>
21902 #include <time.h>
21903 #else
21904 #ifdef HAVE_SYS_TIME_H
21905 #include <sys/time.h>
21906 #else
21907 #include <time.h>
21908 #endif
21909 #endif
21910 main () {
21911 struct timeval time;
21912 struct timezone dummy;
21913 exit (gettimeofday (&time, &dummy));
21914 }
21915 _ACEOF
21916 rm -f conftest$ac_exeext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918 (eval $ac_link) 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923 (eval $ac_try) 2>&5
21924 ac_status=$?
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; }; then
21927 emacs_cv_struct_timezone=yes
21928 else
21929 echo "$as_me: program exited with status $ac_status" >&5
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 ( exit $ac_status )
21934 emacs_cv_struct_timezone=no
21935 fi
21936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21937 fi
21938 else
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21941
21942 emacs_cv_struct_timezone=no
21943 fi
21944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21945 fi
21946 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21947 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21948 fi
21949
21950 ok_so_far=yes
21951 echo "$as_me:$LINENO: checking for socket" >&5
21952 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21953 if test "${ac_cv_func_socket+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 else
21956 cat >conftest.$ac_ext <<_ACEOF
21957 /* confdefs.h. */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21964 #define socket innocuous_socket
21965
21966 /* System header to define __stub macros and hopefully few prototypes,
21967 which can conflict with char socket (); below.
21968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21969 <limits.h> exists even on freestanding compilers. */
21970
21971 #ifdef __STDC__
21972 # include <limits.h>
21973 #else
21974 # include <assert.h>
21975 #endif
21976
21977 #undef socket
21978
21979 /* Override any gcc2 internal prototype to avoid an error. */
21980 #ifdef __cplusplus
21981 extern "C"
21982 {
21983 #endif
21984 /* We use char because int might match the return type of a gcc2
21985 builtin and then its argument prototype would still apply. */
21986 char socket ();
21987 /* The GNU C library defines this for functions which it implements
21988 to always fail with ENOSYS. Some functions are actually named
21989 something starting with __ and the normal name is an alias. */
21990 #if defined (__stub_socket) || defined (__stub___socket)
21991 choke me
21992 #else
21993 char (*f) () = socket;
21994 #endif
21995 #ifdef __cplusplus
21996 }
21997 #endif
21998
21999 int
22000 main ()
22001 {
22002 return f != socket;
22003 ;
22004 return 0;
22005 }
22006 _ACEOF
22007 rm -f conftest.$ac_objext conftest$ac_exeext
22008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22009 (eval $ac_link) 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
22016 { ac_try='test -z "$ac_c_werror_flag"
22017 || test ! -s conftest.err'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; } &&
22023 { ac_try='test -s conftest$ac_exeext'
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; }; then
22029 ac_cv_func_socket=yes
22030 else
22031 echo "$as_me: failed program was:" >&5
22032 sed 's/^/| /' conftest.$ac_ext >&5
22033
22034 ac_cv_func_socket=no
22035 fi
22036 rm -f conftest.err conftest.$ac_objext \
22037 conftest$ac_exeext conftest.$ac_ext
22038 fi
22039 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22040 echo "${ECHO_T}$ac_cv_func_socket" >&6
22041 if test $ac_cv_func_socket = yes; then
22042 :
22043 else
22044 ok_so_far=no
22045 fi
22046
22047 if test $ok_so_far = yes; then
22048 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22049 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22050 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22051 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22053 fi
22054 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22055 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22056 else
22057 # Is the header compilable?
22058 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22059 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
22060 cat >conftest.$ac_ext <<_ACEOF
22061 /* confdefs.h. */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 $ac_includes_default
22067 #include <netinet/in.h>
22068 _ACEOF
22069 rm -f conftest.$ac_objext
22070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22071 (eval $ac_compile) 2>conftest.er1
22072 ac_status=$?
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } &&
22078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22081 ac_status=$?
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; } &&
22084 { ac_try='test -s conftest.$ac_objext'
22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; }; then
22090 ac_header_compiler=yes
22091 else
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22094
22095 ac_header_compiler=no
22096 fi
22097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22099 echo "${ECHO_T}$ac_header_compiler" >&6
22100
22101 # Is the header present?
22102 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22103 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
22104 cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h. */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 #include <netinet/in.h>
22111 _ACEOF
22112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22114 ac_status=$?
22115 grep -v '^ *+' conftest.er1 >conftest.err
22116 rm -f conftest.er1
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } >/dev/null; then
22120 if test -s conftest.err; then
22121 ac_cpp_err=$ac_c_preproc_warn_flag
22122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22123 else
22124 ac_cpp_err=
22125 fi
22126 else
22127 ac_cpp_err=yes
22128 fi
22129 if test -z "$ac_cpp_err"; then
22130 ac_header_preproc=yes
22131 else
22132 echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.$ac_ext >&5
22134
22135 ac_header_preproc=no
22136 fi
22137 rm -f conftest.err conftest.$ac_ext
22138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22139 echo "${ECHO_T}$ac_header_preproc" >&6
22140
22141 # So? What about this header?
22142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22143 yes:no: )
22144 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22145 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22146 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22147 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22148 ac_header_preproc=yes
22149 ;;
22150 no:yes:* )
22151 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22152 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22154 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22156 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22158 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22160 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22162 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22163 (
22164 cat <<\_ASBOX
22165 ## ------------------------------------------ ##
22166 ## Report this to the AC_PACKAGE_NAME lists. ##
22167 ## ------------------------------------------ ##
22168 _ASBOX
22169 ) |
22170 sed "s/^/$as_me: WARNING: /" >&2
22171 ;;
22172 esac
22173 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22174 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22175 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 else
22178 ac_cv_header_netinet_in_h=$ac_header_preproc
22179 fi
22180 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22181 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22182
22183 fi
22184 if test $ac_cv_header_netinet_in_h = yes; then
22185 :
22186 else
22187 ok_so_far=no
22188 fi
22189
22190
22191 fi
22192 if test $ok_so_far = yes; then
22193 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22194 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22195 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22196 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 fi
22199 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22200 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22201 else
22202 # Is the header compilable?
22203 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22204 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
22205 cat >conftest.$ac_ext <<_ACEOF
22206 /* confdefs.h. */
22207 _ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 $ac_includes_default
22212 #include <arpa/inet.h>
22213 _ACEOF
22214 rm -f conftest.$ac_objext
22215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22216 (eval $ac_compile) 2>conftest.er1
22217 ac_status=$?
22218 grep -v '^ *+' conftest.er1 >conftest.err
22219 rm -f conftest.er1
22220 cat conftest.err >&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } &&
22223 { ac_try='test -z "$ac_c_werror_flag"
22224 || test ! -s conftest.err'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22227 ac_status=$?
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; } &&
22230 { ac_try='test -s conftest.$ac_objext'
22231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22232 (eval $ac_try) 2>&5
22233 ac_status=$?
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; }; then
22236 ac_header_compiler=yes
22237 else
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22240
22241 ac_header_compiler=no
22242 fi
22243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22245 echo "${ECHO_T}$ac_header_compiler" >&6
22246
22247 # Is the header present?
22248 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22249 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
22250 cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h. */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256 #include <arpa/inet.h>
22257 _ACEOF
22258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22260 ac_status=$?
22261 grep -v '^ *+' conftest.er1 >conftest.err
22262 rm -f conftest.er1
22263 cat conftest.err >&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } >/dev/null; then
22266 if test -s conftest.err; then
22267 ac_cpp_err=$ac_c_preproc_warn_flag
22268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22269 else
22270 ac_cpp_err=
22271 fi
22272 else
22273 ac_cpp_err=yes
22274 fi
22275 if test -z "$ac_cpp_err"; then
22276 ac_header_preproc=yes
22277 else
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22280
22281 ac_header_preproc=no
22282 fi
22283 rm -f conftest.err conftest.$ac_ext
22284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22285 echo "${ECHO_T}$ac_header_preproc" >&6
22286
22287 # So? What about this header?
22288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22289 yes:no: )
22290 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22291 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22292 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22293 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22294 ac_header_preproc=yes
22295 ;;
22296 no:yes:* )
22297 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22298 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22300 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22302 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22304 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22306 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22307 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22308 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22309 (
22310 cat <<\_ASBOX
22311 ## ------------------------------------------ ##
22312 ## Report this to the AC_PACKAGE_NAME lists. ##
22313 ## ------------------------------------------ ##
22314 _ASBOX
22315 ) |
22316 sed "s/^/$as_me: WARNING: /" >&2
22317 ;;
22318 esac
22319 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22320 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22321 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324 ac_cv_header_arpa_inet_h=$ac_header_preproc
22325 fi
22326 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22327 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22328
22329 fi
22330 if test $ac_cv_header_arpa_inet_h = yes; then
22331 :
22332 else
22333 ok_so_far=no
22334 fi
22335
22336
22337 fi
22338 if test $ok_so_far = yes; then
22339
22340 cat >>confdefs.h <<\_ACEOF
22341 #define HAVE_INET_SOCKETS 1
22342 _ACEOF
22343
22344 fi
22345
22346
22347 for ac_header in sys/ioctl.h
22348 do
22349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22351 echo "$as_me:$LINENO: checking for $ac_header" >&5
22352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22355 fi
22356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22358 else
22359 # Is the header compilable?
22360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22362 cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h. */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 $ac_includes_default
22369 #include <$ac_header>
22370 _ACEOF
22371 rm -f conftest.$ac_objext
22372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22373 (eval $ac_compile) 2>conftest.er1
22374 ac_status=$?
22375 grep -v '^ *+' conftest.er1 >conftest.err
22376 rm -f conftest.er1
22377 cat conftest.err >&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } &&
22380 { ac_try='test -z "$ac_c_werror_flag"
22381 || test ! -s conftest.err'
22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383 (eval $ac_try) 2>&5
22384 ac_status=$?
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; } &&
22387 { ac_try='test -s conftest.$ac_objext'
22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389 (eval $ac_try) 2>&5
22390 ac_status=$?
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; }; then
22393 ac_header_compiler=yes
22394 else
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22397
22398 ac_header_compiler=no
22399 fi
22400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22402 echo "${ECHO_T}$ac_header_compiler" >&6
22403
22404 # Is the header present?
22405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22407 cat >conftest.$ac_ext <<_ACEOF
22408 /* confdefs.h. */
22409 _ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h. */
22413 #include <$ac_header>
22414 _ACEOF
22415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22417 ac_status=$?
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } >/dev/null; then
22423 if test -s conftest.err; then
22424 ac_cpp_err=$ac_c_preproc_warn_flag
22425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22426 else
22427 ac_cpp_err=
22428 fi
22429 else
22430 ac_cpp_err=yes
22431 fi
22432 if test -z "$ac_cpp_err"; then
22433 ac_header_preproc=yes
22434 else
22435 echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22437
22438 ac_header_preproc=no
22439 fi
22440 rm -f conftest.err conftest.$ac_ext
22441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22442 echo "${ECHO_T}$ac_header_preproc" >&6
22443
22444 # So? What about this header?
22445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22446 yes:no: )
22447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22451 ac_header_preproc=yes
22452 ;;
22453 no:yes:* )
22454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22466 (
22467 cat <<\_ASBOX
22468 ## ------------------------------------------ ##
22469 ## Report this to the AC_PACKAGE_NAME lists. ##
22470 ## ------------------------------------------ ##
22471 _ASBOX
22472 ) |
22473 sed "s/^/$as_me: WARNING: /" >&2
22474 ;;
22475 esac
22476 echo "$as_me:$LINENO: checking for $ac_header" >&5
22477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22479 echo $ECHO_N "(cached) $ECHO_C" >&6
22480 else
22481 eval "$as_ac_Header=\$ac_header_preproc"
22482 fi
22483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22485
22486 fi
22487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22488 cat >>confdefs.h <<_ACEOF
22489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22490 _ACEOF
22491
22492 fi
22493
22494 done
22495
22496
22497 if test -f /usr/lpp/X11/bin/smt.exp; then
22498
22499 cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_AIX_SMT_EXP 1
22501 _ACEOF
22502
22503 fi
22504
22505 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22506 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
22507 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22508 echo "$as_me:$LINENO: result: yes" >&5
22509 echo "${ECHO_T}yes" >&6
22510
22511 cat >>confdefs.h <<\_ACEOF
22512 #define HAVE_DEV_PTMX 1
22513 _ACEOF
22514
22515 else
22516 echo "$as_me:$LINENO: result: no" >&5
22517 echo "${ECHO_T}no" >&6
22518 fi
22519
22520 echo "$as_me:$LINENO: checking for pid_t" >&5
22521 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22522 if test "${ac_cv_type_pid_t+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 else
22525 cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h. */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 $ac_includes_default
22532 int
22533 main ()
22534 {
22535 if ((pid_t *) 0)
22536 return 0;
22537 if (sizeof (pid_t))
22538 return 0;
22539 ;
22540 return 0;
22541 }
22542 _ACEOF
22543 rm -f conftest.$ac_objext
22544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22545 (eval $ac_compile) 2>conftest.er1
22546 ac_status=$?
22547 grep -v '^ *+' conftest.er1 >conftest.err
22548 rm -f conftest.er1
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } &&
22552 { ac_try='test -z "$ac_c_werror_flag"
22553 || test ! -s conftest.err'
22554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22556 ac_status=$?
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); }; } &&
22559 { ac_try='test -s conftest.$ac_objext'
22560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561 (eval $ac_try) 2>&5
22562 ac_status=$?
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }; then
22565 ac_cv_type_pid_t=yes
22566 else
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 ac_cv_type_pid_t=no
22571 fi
22572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22573 fi
22574 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22575 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22576 if test $ac_cv_type_pid_t = yes; then
22577 :
22578 else
22579
22580 cat >>confdefs.h <<_ACEOF
22581 #define pid_t int
22582 _ACEOF
22583
22584 fi
22585
22586
22587
22588 for ac_header in unistd.h vfork.h
22589 do
22590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22592 echo "$as_me:$LINENO: checking for $ac_header" >&5
22593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22596 fi
22597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22599 else
22600 # Is the header compilable?
22601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22603 cat >conftest.$ac_ext <<_ACEOF
22604 /* confdefs.h. */
22605 _ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h. */
22609 $ac_includes_default
22610 #include <$ac_header>
22611 _ACEOF
22612 rm -f conftest.$ac_objext
22613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22614 (eval $ac_compile) 2>conftest.er1
22615 ac_status=$?
22616 grep -v '^ *+' conftest.er1 >conftest.err
22617 rm -f conftest.er1
22618 cat conftest.err >&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } &&
22621 { ac_try='test -z "$ac_c_werror_flag"
22622 || test ! -s conftest.err'
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22625 ac_status=$?
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; } &&
22628 { ac_try='test -s conftest.$ac_objext'
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 ac_header_compiler=yes
22635 else
22636 echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22638
22639 ac_header_compiler=no
22640 fi
22641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22643 echo "${ECHO_T}$ac_header_compiler" >&6
22644
22645 # Is the header present?
22646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22648 cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h. */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22654 #include <$ac_header>
22655 _ACEOF
22656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22658 ac_status=$?
22659 grep -v '^ *+' conftest.er1 >conftest.err
22660 rm -f conftest.er1
22661 cat conftest.err >&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } >/dev/null; then
22664 if test -s conftest.err; then
22665 ac_cpp_err=$ac_c_preproc_warn_flag
22666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22667 else
22668 ac_cpp_err=
22669 fi
22670 else
22671 ac_cpp_err=yes
22672 fi
22673 if test -z "$ac_cpp_err"; then
22674 ac_header_preproc=yes
22675 else
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22678
22679 ac_header_preproc=no
22680 fi
22681 rm -f conftest.err conftest.$ac_ext
22682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22683 echo "${ECHO_T}$ac_header_preproc" >&6
22684
22685 # So? What about this header?
22686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22687 yes:no: )
22688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22692 ac_header_preproc=yes
22693 ;;
22694 no:yes:* )
22695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22707 (
22708 cat <<\_ASBOX
22709 ## ------------------------------------------ ##
22710 ## Report this to the AC_PACKAGE_NAME lists. ##
22711 ## ------------------------------------------ ##
22712 _ASBOX
22713 ) |
22714 sed "s/^/$as_me: WARNING: /" >&2
22715 ;;
22716 esac
22717 echo "$as_me:$LINENO: checking for $ac_header" >&5
22718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 else
22722 eval "$as_ac_Header=\$ac_header_preproc"
22723 fi
22724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22726
22727 fi
22728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22729 cat >>confdefs.h <<_ACEOF
22730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22731 _ACEOF
22732
22733 fi
22734
22735 done
22736
22737
22738
22739 for ac_func in fork vfork
22740 do
22741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22742 echo "$as_me:$LINENO: checking for $ac_func" >&5
22743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22744 if eval "test \"\${$as_ac_var+set}\" = set"; then
22745 echo $ECHO_N "(cached) $ECHO_C" >&6
22746 else
22747 cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h. */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22755 #define $ac_func innocuous_$ac_func
22756
22757 /* System header to define __stub macros and hopefully few prototypes,
22758 which can conflict with char $ac_func (); below.
22759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22760 <limits.h> exists even on freestanding compilers. */
22761
22762 #ifdef __STDC__
22763 # include <limits.h>
22764 #else
22765 # include <assert.h>
22766 #endif
22767
22768 #undef $ac_func
22769
22770 /* Override any gcc2 internal prototype to avoid an error. */
22771 #ifdef __cplusplus
22772 extern "C"
22773 {
22774 #endif
22775 /* We use char because int might match the return type of a gcc2
22776 builtin and then its argument prototype would still apply. */
22777 char $ac_func ();
22778 /* The GNU C library defines this for functions which it implements
22779 to always fail with ENOSYS. Some functions are actually named
22780 something starting with __ and the normal name is an alias. */
22781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22782 choke me
22783 #else
22784 char (*f) () = $ac_func;
22785 #endif
22786 #ifdef __cplusplus
22787 }
22788 #endif
22789
22790 int
22791 main ()
22792 {
22793 return f != $ac_func;
22794 ;
22795 return 0;
22796 }
22797 _ACEOF
22798 rm -f conftest.$ac_objext conftest$ac_exeext
22799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22800 (eval $ac_link) 2>conftest.er1
22801 ac_status=$?
22802 grep -v '^ *+' conftest.er1 >conftest.err
22803 rm -f conftest.er1
22804 cat conftest.err >&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } &&
22807 { ac_try='test -z "$ac_c_werror_flag"
22808 || test ! -s conftest.err'
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; } &&
22814 { ac_try='test -s conftest$ac_exeext'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; }; then
22820 eval "$as_ac_var=yes"
22821 else
22822 echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22824
22825 eval "$as_ac_var=no"
22826 fi
22827 rm -f conftest.err conftest.$ac_objext \
22828 conftest$ac_exeext conftest.$ac_ext
22829 fi
22830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22832 if test `eval echo '${'$as_ac_var'}'` = yes; then
22833 cat >>confdefs.h <<_ACEOF
22834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22835 _ACEOF
22836
22837 fi
22838 done
22839
22840 if test "x$ac_cv_func_fork" = xyes; then
22841 echo "$as_me:$LINENO: checking for working fork" >&5
22842 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22843 if test "${ac_cv_func_fork_works+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846 if test "$cross_compiling" = yes; then
22847 ac_cv_func_fork_works=cross
22848 else
22849 cat >conftest.$ac_ext <<_ACEOF
22850 /* By Ruediger Kuhlmann. */
22851 #include <sys/types.h>
22852 #if HAVE_UNISTD_H
22853 # include <unistd.h>
22854 #endif
22855 /* Some systems only have a dummy stub for fork() */
22856 int main ()
22857 {
22858 if (fork() < 0)
22859 exit (1);
22860 exit (0);
22861 }
22862 _ACEOF
22863 rm -f conftest$ac_exeext
22864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22865 (eval $ac_link) 2>&5
22866 ac_status=$?
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 (eval $ac_try) 2>&5
22871 ac_status=$?
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); }; }; then
22874 ac_cv_func_fork_works=yes
22875 else
22876 echo "$as_me: program exited with status $ac_status" >&5
22877 echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22879
22880 ( exit $ac_status )
22881 ac_cv_func_fork_works=no
22882 fi
22883 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22884 fi
22885 fi
22886 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22887 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22888
22889 else
22890 ac_cv_func_fork_works=$ac_cv_func_fork
22891 fi
22892 if test "x$ac_cv_func_fork_works" = xcross; then
22893 case $host in
22894 *-*-amigaos* | *-*-msdosdjgpp*)
22895 # Override, as these systems have only a dummy fork() stub
22896 ac_cv_func_fork_works=no
22897 ;;
22898 *)
22899 ac_cv_func_fork_works=yes
22900 ;;
22901 esac
22902 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22903 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22904 fi
22905 ac_cv_func_vfork_works=$ac_cv_func_vfork
22906 if test "x$ac_cv_func_vfork" = xyes; then
22907 echo "$as_me:$LINENO: checking for working vfork" >&5
22908 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22909 if test "${ac_cv_func_vfork_works+set}" = set; then
22910 echo $ECHO_N "(cached) $ECHO_C" >&6
22911 else
22912 if test "$cross_compiling" = yes; then
22913 ac_cv_func_vfork_works=cross
22914 else
22915 cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h. */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 /* Thanks to Paul Eggert for this test. */
22922 #include <stdio.h>
22923 #include <stdlib.h>
22924 #include <sys/types.h>
22925 #include <sys/stat.h>
22926 #include <sys/wait.h>
22927 #if HAVE_UNISTD_H
22928 # include <unistd.h>
22929 #endif
22930 #if HAVE_VFORK_H
22931 # include <vfork.h>
22932 #endif
22933 /* On some sparc systems, changes by the child to local and incoming
22934 argument registers are propagated back to the parent. The compiler
22935 is told about this with #include <vfork.h>, but some compilers
22936 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22937 static variable whose address is put into a register that is
22938 clobbered by the vfork. */
22939 static void
22940 #ifdef __cplusplus
22941 sparc_address_test (int arg)
22942 # else
22943 sparc_address_test (arg) int arg;
22944 #endif
22945 {
22946 static pid_t child;
22947 if (!child) {
22948 child = vfork ();
22949 if (child < 0) {
22950 perror ("vfork");
22951 _exit(2);
22952 }
22953 if (!child) {
22954 arg = getpid();
22955 write(-1, "", 0);
22956 _exit (arg);
22957 }
22958 }
22959 }
22960
22961 int
22962 main ()
22963 {
22964 pid_t parent = getpid ();
22965 pid_t child;
22966
22967 sparc_address_test (0);
22968
22969 child = vfork ();
22970
22971 if (child == 0) {
22972 /* Here is another test for sparc vfork register problems. This
22973 test uses lots of local variables, at least as many local
22974 variables as main has allocated so far including compiler
22975 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22976 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22977 reuse the register of parent for one of the local variables,
22978 since it will think that parent can't possibly be used any more
22979 in this routine. Assigning to the local variable will thus
22980 munge parent in the parent process. */
22981 pid_t
22982 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22983 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22984 /* Convince the compiler that p..p7 are live; otherwise, it might
22985 use the same hardware register for all 8 local variables. */
22986 if (p != p1 || p != p2 || p != p3 || p != p4
22987 || p != p5 || p != p6 || p != p7)
22988 _exit(1);
22989
22990 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22991 from child file descriptors. If the child closes a descriptor
22992 before it execs or exits, this munges the parent's descriptor
22993 as well. Test for this by closing stdout in the child. */
22994 _exit(close(fileno(stdout)) != 0);
22995 } else {
22996 int status;
22997 struct stat st;
22998
22999 while (wait(&status) != child)
23000 ;
23001 exit(
23002 /* Was there some problem with vforking? */
23003 child < 0
23004
23005 /* Did the child fail? (This shouldn't happen.) */
23006 || status
23007
23008 /* Did the vfork/compiler bug occur? */
23009 || parent != getpid()
23010
23011 /* Did the file descriptor bug occur? */
23012 || fstat(fileno(stdout), &st) != 0
23013 );
23014 }
23015 }
23016 _ACEOF
23017 rm -f conftest$ac_exeext
23018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23019 (eval $ac_link) 2>&5
23020 ac_status=$?
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; }; then
23028 ac_cv_func_vfork_works=yes
23029 else
23030 echo "$as_me: program exited with status $ac_status" >&5
23031 echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23033
23034 ( exit $ac_status )
23035 ac_cv_func_vfork_works=no
23036 fi
23037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23038 fi
23039 fi
23040 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23041 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23042
23043 fi;
23044 if test "x$ac_cv_func_fork_works" = xcross; then
23045 ac_cv_func_vfork_works=$ac_cv_func_vfork
23046 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23047 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23048 fi
23049
23050 if test "x$ac_cv_func_vfork_works" = xyes; then
23051
23052 cat >>confdefs.h <<\_ACEOF
23053 #define HAVE_WORKING_VFORK 1
23054 _ACEOF
23055
23056 else
23057
23058 cat >>confdefs.h <<\_ACEOF
23059 #define vfork fork
23060 _ACEOF
23061
23062 fi
23063 if test "x$ac_cv_func_fork_works" = xyes; then
23064
23065 cat >>confdefs.h <<\_ACEOF
23066 #define HAVE_WORKING_FORK 1
23067 _ACEOF
23068
23069 fi
23070
23071
23072 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23073 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
23074 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23076 else
23077 cat >conftest.$ac_ext <<_ACEOF
23078 /* confdefs.h. */
23079 _ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23083 #include <langinfo.h>
23084 int
23085 main ()
23086 {
23087 char* cs = nl_langinfo(CODESET);
23088 ;
23089 return 0;
23090 }
23091 _ACEOF
23092 rm -f conftest.$ac_objext conftest$ac_exeext
23093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23094 (eval $ac_link) 2>conftest.er1
23095 ac_status=$?
23096 grep -v '^ *+' conftest.er1 >conftest.err
23097 rm -f conftest.er1
23098 cat conftest.err >&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } &&
23101 { ac_try='test -z "$ac_c_werror_flag"
23102 || test ! -s conftest.err'
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23105 ac_status=$?
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; } &&
23108 { ac_try='test -s conftest$ac_exeext'
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; }; then
23114 emacs_cv_langinfo_codeset=yes
23115 else
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23118
23119 emacs_cv_langinfo_codeset=no
23120 fi
23121 rm -f conftest.err conftest.$ac_objext \
23122 conftest$ac_exeext conftest.$ac_ext
23123
23124 fi
23125 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23126 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
23127 if test $emacs_cv_langinfo_codeset = yes; then
23128
23129 cat >>confdefs.h <<\_ACEOF
23130 #define HAVE_LANGINFO_CODESET 1
23131 _ACEOF
23132
23133 fi
23134
23135 echo "$as_me:$LINENO: checking for size_t" >&5
23136 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23137 if test "${ac_cv_type_size_t+set}" = set; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23139 else
23140 cat >conftest.$ac_ext <<_ACEOF
23141 /* confdefs.h. */
23142 _ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23146 $ac_includes_default
23147 int
23148 main ()
23149 {
23150 if ((size_t *) 0)
23151 return 0;
23152 if (sizeof (size_t))
23153 return 0;
23154 ;
23155 return 0;
23156 }
23157 _ACEOF
23158 rm -f conftest.$ac_objext
23159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23160 (eval $ac_compile) 2>conftest.er1
23161 ac_status=$?
23162 grep -v '^ *+' conftest.er1 >conftest.err
23163 rm -f conftest.er1
23164 cat conftest.err >&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } &&
23167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; } &&
23173 { ac_try='test -s conftest.$ac_objext'
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }; then
23179 ac_cv_type_size_t=yes
23180 else
23181 echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23183
23184 ac_cv_type_size_t=no
23185 fi
23186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23187 fi
23188 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23189 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23190 if test $ac_cv_type_size_t = yes; then
23191
23192 cat >>confdefs.h <<_ACEOF
23193 #define HAVE_SIZE_T 1
23194 _ACEOF
23195
23196
23197 fi
23198
23199
23200 echo "$as_me:$LINENO: checking for mbstate_t" >&5
23201 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
23202 if test "${ac_cv_type_mbstate_t+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23204 else
23205 cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h. */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 $ac_includes_default
23212 # include <wchar.h>
23213 int
23214 main ()
23215 {
23216 mbstate_t x; return sizeof x;
23217 ;
23218 return 0;
23219 }
23220 _ACEOF
23221 rm -f conftest.$ac_objext
23222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23223 (eval $ac_compile) 2>conftest.er1
23224 ac_status=$?
23225 grep -v '^ *+' conftest.er1 >conftest.err
23226 rm -f conftest.er1
23227 cat conftest.err >&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); } &&
23230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; } &&
23236 { ac_try='test -s conftest.$ac_objext'
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; }; then
23242 ac_cv_type_mbstate_t=yes
23243 else
23244 echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23246
23247 ac_cv_type_mbstate_t=no
23248 fi
23249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23250 fi
23251 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23252 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
23253 if test $ac_cv_type_mbstate_t = yes; then
23254
23255 cat >>confdefs.h <<\_ACEOF
23256 #define HAVE_MBSTATE_T 1
23257 _ACEOF
23258
23259 else
23260
23261 cat >>confdefs.h <<\_ACEOF
23262 #define mbstate_t int
23263 _ACEOF
23264
23265 fi
23266
23267 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23268 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
23269 if test "${emacs_cv_c_restrict+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23271 else
23272 cat >conftest.$ac_ext <<_ACEOF
23273 /* confdefs.h. */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h. */
23278 void fred (int *restrict x);
23279 int
23280 main ()
23281 {
23282
23283 ;
23284 return 0;
23285 }
23286 _ACEOF
23287 rm -f conftest.$ac_objext
23288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23289 (eval $ac_compile) 2>conftest.er1
23290 ac_status=$?
23291 grep -v '^ *+' conftest.er1 >conftest.err
23292 rm -f conftest.er1
23293 cat conftest.err >&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } &&
23296 { ac_try='test -z "$ac_c_werror_flag"
23297 || test ! -s conftest.err'
23298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23300 ac_status=$?
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; } &&
23303 { ac_try='test -s conftest.$ac_objext'
23304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23306 ac_status=$?
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; }; then
23309 emacs_cv_c_restrict=yes
23310 else
23311 echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23313
23314 cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h. */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 void fred (int *__restrict x);
23321 int
23322 main ()
23323 {
23324
23325 ;
23326 return 0;
23327 }
23328 _ACEOF
23329 rm -f conftest.$ac_objext
23330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23331 (eval $ac_compile) 2>conftest.er1
23332 ac_status=$?
23333 grep -v '^ *+' conftest.er1 >conftest.err
23334 rm -f conftest.er1
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } &&
23338 { ac_try='test -z "$ac_c_werror_flag"
23339 || test ! -s conftest.err'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; } &&
23345 { ac_try='test -s conftest.$ac_objext'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; }; then
23351 emacs_cv_c_restrict=__restrict
23352 else
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356 emacs_cv_c_restrict=no
23357 fi
23358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23359 fi
23360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23361 fi
23362 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23363 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
23364 case "$emacs_cv_c_restrict" in
23365 yes) emacs_restrict=restrict;;
23366 no) emacs_restrict="";;
23367 *) emacs_restrict="$emacs_cv_c_restrict";;
23368 esac
23369 if test "$emacs_restrict" != __restrict; then
23370
23371 cat >>confdefs.h <<_ACEOF
23372 #define __restrict $emacs_restrict
23373 _ACEOF
23374
23375 fi
23376
23377 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23378 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
23379 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23380 echo $ECHO_N "(cached) $ECHO_C" >&6
23381 else
23382 cat >conftest.$ac_ext <<_ACEOF
23383 /* confdefs.h. */
23384 _ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h. */
23388 void fred (int x[__restrict]);
23389 int
23390 main ()
23391 {
23392
23393 ;
23394 return 0;
23395 }
23396 _ACEOF
23397 rm -f conftest.$ac_objext
23398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23399 (eval $ac_compile) 2>conftest.er1
23400 ac_status=$?
23401 grep -v '^ *+' conftest.er1 >conftest.err
23402 rm -f conftest.er1
23403 cat conftest.err >&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } &&
23406 { ac_try='test -z "$ac_c_werror_flag"
23407 || test ! -s conftest.err'
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23410 ac_status=$?
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; } &&
23413 { ac_try='test -s conftest.$ac_objext'
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 emacs_cv_c_restrict_arr=yes
23420 else
23421 echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424 emacs_cv_c_restrict_arr=no
23425 fi
23426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23427 fi
23428 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23429 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
23430 if test "$emacs_cv_c_restrict_arr" = yes; then
23431
23432 cat >>confdefs.h <<\_ACEOF
23433 #define __restrict_arr __restrict
23434 _ACEOF
23435
23436 fi
23437
23438
23439
23440 # Set up the CFLAGS for real compilation, so we can substitute it.
23441 CFLAGS="$REAL_CFLAGS"
23442 CPPFLAGS="$REAL_CPPFLAGS"
23443
23444 #### Find out which version of Emacs this is.
23445 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23446 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23447 if test x"${version}" = x; then
23448 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23449 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23450 { (exit 1); exit 1; }; }
23451 fi
23452
23453 ### Specify what sort of things we'll be editing into Makefile and config.h.
23454 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490 cat >>confdefs.h <<_ACEOF
23491 #define EMACS_CONFIGURATION "${canonical}"
23492 _ACEOF
23493
23494
23495 cat >>confdefs.h <<_ACEOF
23496 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23497 _ACEOF
23498
23499
23500 cat >>confdefs.h <<_ACEOF
23501 #define config_machfile "${machfile}"
23502 _ACEOF
23503
23504
23505 cat >>confdefs.h <<_ACEOF
23506 #define config_opsysfile "${opsysfile}"
23507 _ACEOF
23508
23509
23510 cat >>confdefs.h <<_ACEOF
23511 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23512 _ACEOF
23513
23514
23515 cat >>confdefs.h <<_ACEOF
23516 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23517 _ACEOF
23518
23519
23520 cat >>confdefs.h <<_ACEOF
23521 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23522 _ACEOF
23523
23524
23525 cat >>confdefs.h <<_ACEOF
23526 #define UNEXEC_SRC ${UNEXEC_SRC}
23527 _ACEOF
23528
23529
23530 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23531
23532 cat >>confdefs.h <<\_ACEOF
23533 #define HAVE_X_WINDOWS 1
23534 _ACEOF
23535
23536 fi
23537 if test "${USE_X_TOOLKIT}" != "none" ; then
23538
23539 cat >>confdefs.h <<\_ACEOF
23540 #define USE_X_TOOLKIT 1
23541 _ACEOF
23542
23543 fi
23544 if test "${HAVE_X11}" = "yes" ; then
23545
23546 cat >>confdefs.h <<\_ACEOF
23547 #define HAVE_X11 1
23548 _ACEOF
23549
23550 fi
23551 if test "${HAVE_XFREE386}" = "yes" ; then
23552
23553 cat >>confdefs.h <<\_ACEOF
23554 #define HAVE_XFREE386 1
23555 _ACEOF
23556
23557 fi
23558 if test "${HAVE_MENUS}" = "yes" ; then
23559
23560 cat >>confdefs.h <<\_ACEOF
23561 #define HAVE_MENUS 1
23562 _ACEOF
23563
23564 fi
23565 if test "${GNU_MALLOC}" = "yes" ; then
23566
23567 cat >>confdefs.h <<\_ACEOF
23568 #define GNU_MALLOC 1
23569 _ACEOF
23570
23571 fi
23572 if test "${REL_ALLOC}" = "yes" ; then
23573
23574 cat >>confdefs.h <<\_ACEOF
23575 #define REL_ALLOC 1
23576 _ACEOF
23577
23578 fi
23579
23580
23581
23582
23583
23584 #### Report on what we decided to do.
23585 #### Report GTK as a toolkit, even if it doesn't use Xt.
23586 #### It makes printing result more understandable as using GTK sets
23587 #### toolkit_scroll_bars to yes by default.
23588 if test "${HAVE_GTK}" = "yes"; then
23589 USE_X_TOOLKIT=GTK
23590 fi
23591
23592 echo "
23593 Configured for \`${canonical}'.
23594
23595 Where should the build process find the source code? ${srcdir}
23596 What operating system and machine description files should Emacs use?
23597 \`${opsysfile}' and \`${machfile}'
23598 What compiler should emacs be built with? ${CC} ${CFLAGS}
23599 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23600 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23601 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23602 What window system should Emacs use? ${window_system}
23603 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23604
23605 if test -n "${x_includes}"; then
23606 echo " Where do we find X Windows header files? ${x_includes}"
23607 else
23608 echo " Where do we find X Windows header files? Standard dirs"
23609 fi
23610 if test -n "${x_libraries}"; then
23611 echo " Where do we find X Windows libraries? ${x_libraries}"
23612 else
23613 echo " Where do we find X Windows libraries? Standard dirs"
23614 fi
23615
23616 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23617 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23618 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23619 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23620 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23621 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23622 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23623 echo
23624
23625 if test $USE_XASSERTS = yes; then
23626 echo " Compiling with asserts turned on."
23627 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23628 echo
23629 fi
23630
23631
23632
23633 # Remove any trailing slashes in these variables.
23634 test "${prefix}" != NONE &&
23635 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23636 test "${exec_prefix}" != NONE &&
23637 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23638
23639 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23640 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23641 ## from Makefile.c can correctly provide the arg `-traditional' to the
23642 ## C preprocessor.
23643
23644 cat >conftest.$ac_ext <<_ACEOF
23645 /* confdefs.h. */
23646 _ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h. */
23650 yes..yes
23651 _ACEOF
23652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23653 $EGREP "yes..yes" >/dev/null 2>&1; then
23654 CPP_NEED_TRADITIONAL=no
23655 else
23656 CPP_NEED_TRADITIONAL=yes
23657 fi
23658 rm -f conftest*
23659
23660
23661 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"
23662 ac_config_commands="$ac_config_commands default"
23663 cat >confcache <<\_ACEOF
23664 # This file is a shell script that caches the results of configure
23665 # tests run on this system so they can be shared between configure
23666 # scripts and configure runs, see configure's option --config-cache.
23667 # It is not useful on other systems. If it contains results you don't
23668 # want to keep, you may remove or edit it.
23669 #
23670 # config.status only pays attention to the cache file if you give it
23671 # the --recheck option to rerun configure.
23672 #
23673 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23674 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23675 # following values.
23676
23677 _ACEOF
23678
23679 # The following way of writing the cache mishandles newlines in values,
23680 # but we know of no workaround that is simple, portable, and efficient.
23681 # So, don't put newlines in cache variables' values.
23682 # Ultrix sh set writes to stderr and can't be redirected directly,
23683 # and sets the high bit in the cache file unless we assign to the vars.
23684 {
23685 (set) 2>&1 |
23686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23687 *ac_space=\ *)
23688 # `set' does not quote correctly, so add quotes (double-quote
23689 # substitution turns \\\\ into \\, and sed turns \\ into \).
23690 sed -n \
23691 "s/'/'\\\\''/g;
23692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23693 ;;
23694 *)
23695 # `set' quotes correctly as required by POSIX, so do not add quotes.
23696 sed -n \
23697 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23698 ;;
23699 esac;
23700 } |
23701 sed '
23702 t clear
23703 : clear
23704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23705 t end
23706 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23707 : end' >>confcache
23708 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23709 if test -w $cache_file; then
23710 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23711 cat confcache >$cache_file
23712 else
23713 echo "not updating unwritable cache $cache_file"
23714 fi
23715 fi
23716 rm -f confcache
23717
23718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23719 # Let make expand exec_prefix.
23720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23721
23722 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23723 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23724 # trailing colons and then remove the whole line if VPATH becomes empty
23725 # (actually we leave an empty line to preserve line numbers).
23726 if test "x$srcdir" = x.; then
23727 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23728 s/:*\$(srcdir):*/:/;
23729 s/:*\${srcdir}:*/:/;
23730 s/:*@srcdir@:*/:/;
23731 s/^\([^=]*=[ ]*\):*/\1/;
23732 s/:*$//;
23733 s/^[^=]*=[ ]*$//;
23734 }'
23735 fi
23736
23737 DEFS=-DHAVE_CONFIG_H
23738
23739 ac_libobjs=
23740 ac_ltlibobjs=
23741 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23742 # 1. Remove the extension, and $U if already installed.
23743 ac_i=`echo "$ac_i" |
23744 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23745 # 2. Add them.
23746 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23747 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23748 done
23749 LIBOBJS=$ac_libobjs
23750
23751 LTLIBOBJS=$ac_ltlibobjs
23752
23753
23754
23755 : ${CONFIG_STATUS=./config.status}
23756 ac_clean_files_save=$ac_clean_files
23757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23760 cat >$CONFIG_STATUS <<_ACEOF
23761 #! $SHELL
23762 # Generated by $as_me.
23763 # Run this file to recreate the current configuration.
23764 # Compiler output produced by configure, useful for debugging
23765 # configure, is in config.log if it exists.
23766
23767 debug=false
23768 ac_cs_recheck=false
23769 ac_cs_silent=false
23770 SHELL=\${CONFIG_SHELL-$SHELL}
23771 _ACEOF
23772
23773 cat >>$CONFIG_STATUS <<\_ACEOF
23774 ## --------------------- ##
23775 ## M4sh Initialization. ##
23776 ## --------------------- ##
23777
23778 # Be Bourne compatible
23779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23780 emulate sh
23781 NULLCMD=:
23782 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23783 # is contrary to our usage. Disable this feature.
23784 alias -g '${1+"$@"}'='"$@"'
23785 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23786 set -o posix
23787 fi
23788 DUALCASE=1; export DUALCASE # for MKS sh
23789
23790 # Support unset when possible.
23791 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23792 as_unset=unset
23793 else
23794 as_unset=false
23795 fi
23796
23797
23798 # Work around bugs in pre-3.0 UWIN ksh.
23799 $as_unset ENV MAIL MAILPATH
23800 PS1='$ '
23801 PS2='> '
23802 PS4='+ '
23803
23804 # NLS nuisances.
23805 for as_var in \
23806 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23807 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23808 LC_TELEPHONE LC_TIME
23809 do
23810 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23811 eval $as_var=C; export $as_var
23812 else
23813 $as_unset $as_var
23814 fi
23815 done
23816
23817 # Required to use basename.
23818 if expr a : '\(a\)' >/dev/null 2>&1; then
23819 as_expr=expr
23820 else
23821 as_expr=false
23822 fi
23823
23824 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23825 as_basename=basename
23826 else
23827 as_basename=false
23828 fi
23829
23830
23831 # Name of the executable.
23832 as_me=`$as_basename "$0" ||
23833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23834 X"$0" : 'X\(//\)$' \| \
23835 X"$0" : 'X\(/\)$' \| \
23836 . : '\(.\)' 2>/dev/null ||
23837 echo X/"$0" |
23838 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23839 /^X\/\(\/\/\)$/{ s//\1/; q; }
23840 /^X\/\(\/\).*/{ s//\1/; q; }
23841 s/.*/./; q'`
23842
23843
23844 # PATH needs CR, and LINENO needs CR and PATH.
23845 # Avoid depending upon Character Ranges.
23846 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23847 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23848 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23849 as_cr_digits='0123456789'
23850 as_cr_alnum=$as_cr_Letters$as_cr_digits
23851
23852 # The user is always right.
23853 if test "${PATH_SEPARATOR+set}" != set; then
23854 echo "#! /bin/sh" >conf$$.sh
23855 echo "exit 0" >>conf$$.sh
23856 chmod +x conf$$.sh
23857 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23858 PATH_SEPARATOR=';'
23859 else
23860 PATH_SEPARATOR=:
23861 fi
23862 rm -f conf$$.sh
23863 fi
23864
23865
23866 as_lineno_1=$LINENO
23867 as_lineno_2=$LINENO
23868 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23869 test "x$as_lineno_1" != "x$as_lineno_2" &&
23870 test "x$as_lineno_3" = "x$as_lineno_2" || {
23871 # Find who we are. Look in the path if we contain no path at all
23872 # relative or not.
23873 case $0 in
23874 *[\\/]* ) as_myself=$0 ;;
23875 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23876 for as_dir in $PATH
23877 do
23878 IFS=$as_save_IFS
23879 test -z "$as_dir" && as_dir=.
23880 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23881 done
23882
23883 ;;
23884 esac
23885 # We did not find ourselves, most probably we were run as `sh COMMAND'
23886 # in which case we are not to be found in the path.
23887 if test "x$as_myself" = x; then
23888 as_myself=$0
23889 fi
23890 if test ! -f "$as_myself"; then
23891 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23892 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23893 { (exit 1); exit 1; }; }
23894 fi
23895 case $CONFIG_SHELL in
23896 '')
23897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23898 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23899 do
23900 IFS=$as_save_IFS
23901 test -z "$as_dir" && as_dir=.
23902 for as_base in sh bash ksh sh5; do
23903 case $as_dir in
23904 /*)
23905 if ("$as_dir/$as_base" -c '
23906 as_lineno_1=$LINENO
23907 as_lineno_2=$LINENO
23908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23909 test "x$as_lineno_1" != "x$as_lineno_2" &&
23910 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23911 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23912 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23913 CONFIG_SHELL=$as_dir/$as_base
23914 export CONFIG_SHELL
23915 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23916 fi;;
23917 esac
23918 done
23919 done
23920 ;;
23921 esac
23922
23923 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23924 # uniformly replaced by the line number. The first 'sed' inserts a
23925 # line-number line before each line; the second 'sed' does the real
23926 # work. The second script uses 'N' to pair each line-number line
23927 # with the numbered line, and appends trailing '-' during
23928 # substitution so that $LINENO is not a special case at line end.
23929 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23930 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23931 sed '=' <$as_myself |
23932 sed '
23933 N
23934 s,$,-,
23935 : loop
23936 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23937 t loop
23938 s,-$,,
23939 s,^['$as_cr_digits']*\n,,
23940 ' >$as_me.lineno &&
23941 chmod +x $as_me.lineno ||
23942 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23943 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23944 { (exit 1); exit 1; }; }
23945
23946 # Don't try to exec as it changes $[0], causing all sort of problems
23947 # (the dirname of $[0] is not the place where we might find the
23948 # original and so on. Autoconf is especially sensible to this).
23949 . ./$as_me.lineno
23950 # Exit status is that of the last command.
23951 exit
23952 }
23953
23954
23955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23956 *c*,-n*) ECHO_N= ECHO_C='
23957 ' ECHO_T=' ' ;;
23958 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23959 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23960 esac
23961
23962 if expr a : '\(a\)' >/dev/null 2>&1; then
23963 as_expr=expr
23964 else
23965 as_expr=false
23966 fi
23967
23968 rm -f conf$$ conf$$.exe conf$$.file
23969 echo >conf$$.file
23970 if ln -s conf$$.file conf$$ 2>/dev/null; then
23971 # We could just check for DJGPP; but this test a) works b) is more generic
23972 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23973 if test -f conf$$.exe; then
23974 # Don't use ln at all; we don't have any links
23975 as_ln_s='cp -p'
23976 else
23977 as_ln_s='ln -s'
23978 fi
23979 elif ln conf$$.file conf$$ 2>/dev/null; then
23980 as_ln_s=ln
23981 else
23982 as_ln_s='cp -p'
23983 fi
23984 rm -f conf$$ conf$$.exe conf$$.file
23985
23986 if mkdir -p . 2>/dev/null; then
23987 as_mkdir_p=:
23988 else
23989 test -d ./-p && rmdir ./-p
23990 as_mkdir_p=false
23991 fi
23992
23993 as_executable_p="test -f"
23994
23995 # Sed expression to map a string onto a valid CPP name.
23996 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23997
23998 # Sed expression to map a string onto a valid variable name.
23999 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24000
24001
24002 # IFS
24003 # We need space, tab and new line, in precisely that order.
24004 as_nl='
24005 '
24006 IFS=" $as_nl"
24007
24008 # CDPATH.
24009 $as_unset CDPATH
24010
24011 exec 6>&1
24012
24013 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24014 # report actual input values of CONFIG_FILES etc. instead of their
24015 # values after options handling. Logging --version etc. is OK.
24016 exec 5>>config.log
24017 {
24018 echo
24019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24020 ## Running $as_me. ##
24021 _ASBOX
24022 } >&5
24023 cat >&5 <<_CSEOF
24024
24025 This file was extended by $as_me, which was
24026 generated by GNU Autoconf 2.59. Invocation command line was
24027
24028 CONFIG_FILES = $CONFIG_FILES
24029 CONFIG_HEADERS = $CONFIG_HEADERS
24030 CONFIG_LINKS = $CONFIG_LINKS
24031 CONFIG_COMMANDS = $CONFIG_COMMANDS
24032 $ $0 $@
24033
24034 _CSEOF
24035 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24036 echo >&5
24037 _ACEOF
24038
24039 # Files that config.status was made for.
24040 if test -n "$ac_config_files"; then
24041 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24042 fi
24043
24044 if test -n "$ac_config_headers"; then
24045 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24046 fi
24047
24048 if test -n "$ac_config_links"; then
24049 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24050 fi
24051
24052 if test -n "$ac_config_commands"; then
24053 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24054 fi
24055
24056 cat >>$CONFIG_STATUS <<\_ACEOF
24057
24058 ac_cs_usage="\
24059 \`$as_me' instantiates files from templates according to the
24060 current configuration.
24061
24062 Usage: $0 [OPTIONS] [FILE]...
24063
24064 -h, --help print this help, then exit
24065 -V, --version print version number, then exit
24066 -q, --quiet do not print progress messages
24067 -d, --debug don't remove temporary files
24068 --recheck update $as_me by reconfiguring in the same conditions
24069 --file=FILE[:TEMPLATE]
24070 instantiate the configuration file FILE
24071 --header=FILE[:TEMPLATE]
24072 instantiate the configuration header FILE
24073
24074 Configuration files:
24075 $config_files
24076
24077 Configuration headers:
24078 $config_headers
24079
24080 Configuration commands:
24081 $config_commands
24082
24083 Report bugs to <bug-autoconf@gnu.org>."
24084 _ACEOF
24085
24086 cat >>$CONFIG_STATUS <<_ACEOF
24087 ac_cs_version="\\
24088 config.status
24089 configured by $0, generated by GNU Autoconf 2.59,
24090 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24091
24092 Copyright (C) 2003 Free Software Foundation, Inc.
24093 This config.status script is free software; the Free Software Foundation
24094 gives unlimited permission to copy, distribute and modify it."
24095 srcdir=$srcdir
24096 INSTALL="$INSTALL"
24097 _ACEOF
24098
24099 cat >>$CONFIG_STATUS <<\_ACEOF
24100 # If no file are specified by the user, then we need to provide default
24101 # value. By we need to know if files were specified by the user.
24102 ac_need_defaults=:
24103 while test $# != 0
24104 do
24105 case $1 in
24106 --*=*)
24107 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24108 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24109 ac_shift=:
24110 ;;
24111 -*)
24112 ac_option=$1
24113 ac_optarg=$2
24114 ac_shift=shift
24115 ;;
24116 *) # This is not an option, so the user has probably given explicit
24117 # arguments.
24118 ac_option=$1
24119 ac_need_defaults=false;;
24120 esac
24121
24122 case $ac_option in
24123 # Handling of the options.
24124 _ACEOF
24125 cat >>$CONFIG_STATUS <<\_ACEOF
24126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24127 ac_cs_recheck=: ;;
24128 --version | --vers* | -V )
24129 echo "$ac_cs_version"; exit 0 ;;
24130 --he | --h)
24131 # Conflict between --help and --header
24132 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24133 Try \`$0 --help' for more information." >&5
24134 echo "$as_me: error: ambiguous option: $1
24135 Try \`$0 --help' for more information." >&2;}
24136 { (exit 1); exit 1; }; };;
24137 --help | --hel | -h )
24138 echo "$ac_cs_usage"; exit 0 ;;
24139 --debug | --d* | -d )
24140 debug=: ;;
24141 --file | --fil | --fi | --f )
24142 $ac_shift
24143 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24144 ac_need_defaults=false;;
24145 --header | --heade | --head | --hea )
24146 $ac_shift
24147 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24148 ac_need_defaults=false;;
24149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24150 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24151 ac_cs_silent=: ;;
24152
24153 # This is an error.
24154 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24155 Try \`$0 --help' for more information." >&5
24156 echo "$as_me: error: unrecognized option: $1
24157 Try \`$0 --help' for more information." >&2;}
24158 { (exit 1); exit 1; }; } ;;
24159
24160 *) ac_config_targets="$ac_config_targets $1" ;;
24161
24162 esac
24163 shift
24164 done
24165
24166 ac_configure_extra_args=
24167
24168 if $ac_cs_silent; then
24169 exec 6>/dev/null
24170 ac_configure_extra_args="$ac_configure_extra_args --silent"
24171 fi
24172
24173 _ACEOF
24174 cat >>$CONFIG_STATUS <<_ACEOF
24175 if \$ac_cs_recheck; then
24176 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24177 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24178 fi
24179
24180 _ACEOF
24181
24182 cat >>$CONFIG_STATUS <<_ACEOF
24183 #
24184 # INIT-COMMANDS section.
24185 #
24186
24187 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24188
24189 _ACEOF
24190
24191
24192
24193 cat >>$CONFIG_STATUS <<\_ACEOF
24194 for ac_config_target in $ac_config_targets
24195 do
24196 case "$ac_config_target" in
24197 # Handling of arguments.
24198 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24199 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24200 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24201 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24202 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24203 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24204 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24205 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24206 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24207 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24208 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24209 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24210 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24211 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24212 { (exit 1); exit 1; }; };;
24213 esac
24214 done
24215
24216 # If the user did not use the arguments to specify the items to instantiate,
24217 # then the envvar interface is used. Set only those that are not.
24218 # We use the long form for the default assignment because of an extremely
24219 # bizarre bug on SunOS 4.1.3.
24220 if $ac_need_defaults; then
24221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24224 fi
24225
24226 # Have a temporary directory for convenience. Make it in the build tree
24227 # simply because there is no reason to put it here, and in addition,
24228 # creating and moving files from /tmp can sometimes cause problems.
24229 # Create a temporary directory, and hook for its removal unless debugging.
24230 $debug ||
24231 {
24232 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24233 trap '{ (exit 1); exit 1; }' 1 2 13 15
24234 }
24235
24236 # Create a (secure) tmp directory for tmp files.
24237
24238 {
24239 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24240 test -n "$tmp" && test -d "$tmp"
24241 } ||
24242 {
24243 tmp=./confstat$$-$RANDOM
24244 (umask 077 && mkdir $tmp)
24245 } ||
24246 {
24247 echo "$me: cannot create a temporary directory in ." >&2
24248 { (exit 1); exit 1; }
24249 }
24250
24251 _ACEOF
24252
24253 cat >>$CONFIG_STATUS <<_ACEOF
24254
24255 #
24256 # CONFIG_FILES section.
24257 #
24258
24259 # No need to generate the scripts if there are no CONFIG_FILES.
24260 # This happens for instance when ./config.status config.h
24261 if test -n "\$CONFIG_FILES"; then
24262 # Protect against being on the right side of a sed subst in config.status.
24263 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24264 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24265 s,@SHELL@,$SHELL,;t t
24266 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24267 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24268 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24269 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24270 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24271 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24272 s,@exec_prefix@,$exec_prefix,;t t
24273 s,@prefix@,$prefix,;t t
24274 s,@program_transform_name@,$program_transform_name,;t t
24275 s,@bindir@,$bindir,;t t
24276 s,@sbindir@,$sbindir,;t t
24277 s,@libexecdir@,$libexecdir,;t t
24278 s,@datadir@,$datadir,;t t
24279 s,@sysconfdir@,$sysconfdir,;t t
24280 s,@sharedstatedir@,$sharedstatedir,;t t
24281 s,@localstatedir@,$localstatedir,;t t
24282 s,@libdir@,$libdir,;t t
24283 s,@includedir@,$includedir,;t t
24284 s,@oldincludedir@,$oldincludedir,;t t
24285 s,@infodir@,$infodir,;t t
24286 s,@mandir@,$mandir,;t t
24287 s,@build_alias@,$build_alias,;t t
24288 s,@host_alias@,$host_alias,;t t
24289 s,@target_alias@,$target_alias,;t t
24290 s,@DEFS@,$DEFS,;t t
24291 s,@ECHO_C@,$ECHO_C,;t t
24292 s,@ECHO_N@,$ECHO_N,;t t
24293 s,@ECHO_T@,$ECHO_T,;t t
24294 s,@LIBS@,$LIBS,;t t
24295 s,@MAINT@,$MAINT,;t t
24296 s,@build@,$build,;t t
24297 s,@build_cpu@,$build_cpu,;t t
24298 s,@build_vendor@,$build_vendor,;t t
24299 s,@build_os@,$build_os,;t t
24300 s,@host@,$host,;t t
24301 s,@host_cpu@,$host_cpu,;t t
24302 s,@host_vendor@,$host_vendor,;t t
24303 s,@host_os@,$host_os,;t t
24304 s,@CC@,$CC,;t t
24305 s,@CFLAGS@,$CFLAGS,;t t
24306 s,@LDFLAGS@,$LDFLAGS,;t t
24307 s,@CPPFLAGS@,$CPPFLAGS,;t t
24308 s,@ac_ct_CC@,$ac_ct_CC,;t t
24309 s,@EXEEXT@,$EXEEXT,;t t
24310 s,@OBJEXT@,$OBJEXT,;t t
24311 s,@CPP@,$CPP,;t t
24312 s,@EGREP@,$EGREP,;t t
24313 s,@LN_S@,$LN_S,;t t
24314 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24315 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24316 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24317 s,@RANLIB@,$RANLIB,;t t
24318 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24319 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
24320 s,@GZIP_PROG@,$GZIP_PROG,;t t
24321 s,@LIBSOUND@,$LIBSOUND,;t t
24322 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24323 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
24324 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
24325 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
24326 s,@SET_MAKE@,$SET_MAKE,;t t
24327 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
24328 s,@GTK_LIBS@,$GTK_LIBS,;t t
24329 s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
24330 s,@XFT_LIBS@,$XFT_LIBS,;t t
24331 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
24332 s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
24333 s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
24334 s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
24335 s,@HAVE_LIBOTF@,$HAVE_LIBOTF,;t t
24336 s,@LIBOTF_CFLAGS@,$LIBOTF_CFLAGS,;t t
24337 s,@LIBOTF_LIBS@,$LIBOTF_LIBS,;t t
24338 s,@ALLOCA@,$ALLOCA,;t t
24339 s,@liblockfile@,$liblockfile,;t t
24340 s,@LIBOBJS@,$LIBOBJS,;t t
24341 s,@NEED_SETGID@,$NEED_SETGID,;t t
24342 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
24343 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
24344 s,@GETOPT_H@,$GETOPT_H,;t t
24345 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
24346 s,@version@,$version,;t t
24347 s,@configuration@,$configuration,;t t
24348 s,@canonical@,$canonical,;t t
24349 s,@srcdir@,$srcdir,;t t
24350 s,@lispdir@,$lispdir,;t t
24351 s,@locallisppath@,$locallisppath,;t t
24352 s,@lisppath@,$lisppath,;t t
24353 s,@x_default_search_path@,$x_default_search_path,;t t
24354 s,@etcdir@,$etcdir,;t t
24355 s,@archlibdir@,$archlibdir,;t t
24356 s,@docdir@,$docdir,;t t
24357 s,@bitmapdir@,$bitmapdir,;t t
24358 s,@gamedir@,$gamedir,;t t
24359 s,@gameuser@,$gameuser,;t t
24360 s,@c_switch_system@,$c_switch_system,;t t
24361 s,@c_switch_machine@,$c_switch_machine,;t t
24362 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
24363 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
24364 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
24365 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
24366 s,@machfile@,$machfile,;t t
24367 s,@opsysfile@,$opsysfile,;t t
24368 s,@carbon_appdir@,$carbon_appdir,;t t
24369 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24370 CEOF
24371
24372 _ACEOF
24373
24374 cat >>$CONFIG_STATUS <<\_ACEOF
24375 # Split the substitutions into bite-sized pieces for seds with
24376 # small command number limits, like on Digital OSF/1 and HP-UX.
24377 ac_max_sed_lines=48
24378 ac_sed_frag=1 # Number of current file.
24379 ac_beg=1 # First line for current file.
24380 ac_end=$ac_max_sed_lines # Line after last line for current file.
24381 ac_more_lines=:
24382 ac_sed_cmds=
24383 while $ac_more_lines; do
24384 if test $ac_beg -gt 1; then
24385 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24386 else
24387 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24388 fi
24389 if test ! -s $tmp/subs.frag; then
24390 ac_more_lines=false
24391 else
24392 # The purpose of the label and of the branching condition is to
24393 # speed up the sed processing (if there are no `@' at all, there
24394 # is no need to browse any of the substitutions).
24395 # These are the two extra sed commands mentioned above.
24396 (echo ':t
24397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24398 if test -z "$ac_sed_cmds"; then
24399 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24400 else
24401 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24402 fi
24403 ac_sed_frag=`expr $ac_sed_frag + 1`
24404 ac_beg=$ac_end
24405 ac_end=`expr $ac_end + $ac_max_sed_lines`
24406 fi
24407 done
24408 if test -z "$ac_sed_cmds"; then
24409 ac_sed_cmds=cat
24410 fi
24411 fi # test -n "$CONFIG_FILES"
24412
24413 _ACEOF
24414 cat >>$CONFIG_STATUS <<\_ACEOF
24415 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24417 case $ac_file in
24418 - | *:- | *:-:* ) # input from stdin
24419 cat >$tmp/stdin
24420 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24421 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24422 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24424 * ) ac_file_in=$ac_file.in ;;
24425 esac
24426
24427 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24428 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24430 X"$ac_file" : 'X\(//\)[^/]' \| \
24431 X"$ac_file" : 'X\(//\)$' \| \
24432 X"$ac_file" : 'X\(/\)' \| \
24433 . : '\(.\)' 2>/dev/null ||
24434 echo X"$ac_file" |
24435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24436 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24437 /^X\(\/\/\)$/{ s//\1/; q; }
24438 /^X\(\/\).*/{ s//\1/; q; }
24439 s/.*/./; q'`
24440 { if $as_mkdir_p; then
24441 mkdir -p "$ac_dir"
24442 else
24443 as_dir="$ac_dir"
24444 as_dirs=
24445 while test ! -d "$as_dir"; do
24446 as_dirs="$as_dir $as_dirs"
24447 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24449 X"$as_dir" : 'X\(//\)[^/]' \| \
24450 X"$as_dir" : 'X\(//\)$' \| \
24451 X"$as_dir" : 'X\(/\)' \| \
24452 . : '\(.\)' 2>/dev/null ||
24453 echo X"$as_dir" |
24454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24456 /^X\(\/\/\)$/{ s//\1/; q; }
24457 /^X\(\/\).*/{ s//\1/; q; }
24458 s/.*/./; q'`
24459 done
24460 test ! -n "$as_dirs" || mkdir $as_dirs
24461 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24462 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24463 { (exit 1); exit 1; }; }; }
24464
24465 ac_builddir=.
24466
24467 if test "$ac_dir" != .; then
24468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24469 # A "../" for each directory in $ac_dir_suffix.
24470 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24471 else
24472 ac_dir_suffix= ac_top_builddir=
24473 fi
24474
24475 case $srcdir in
24476 .) # No --srcdir option. We are building in place.
24477 ac_srcdir=.
24478 if test -z "$ac_top_builddir"; then
24479 ac_top_srcdir=.
24480 else
24481 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24482 fi ;;
24483 [\\/]* | ?:[\\/]* ) # Absolute path.
24484 ac_srcdir=$srcdir$ac_dir_suffix;
24485 ac_top_srcdir=$srcdir ;;
24486 *) # Relative path.
24487 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24488 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24489 esac
24490
24491 # Do not use `cd foo && pwd` to compute absolute paths, because
24492 # the directories may not exist.
24493 case `pwd` in
24494 .) ac_abs_builddir="$ac_dir";;
24495 *)
24496 case "$ac_dir" in
24497 .) ac_abs_builddir=`pwd`;;
24498 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24499 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24500 esac;;
24501 esac
24502 case $ac_abs_builddir in
24503 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24504 *)
24505 case ${ac_top_builddir}. in
24506 .) ac_abs_top_builddir=$ac_abs_builddir;;
24507 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24508 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24509 esac;;
24510 esac
24511 case $ac_abs_builddir in
24512 .) ac_abs_srcdir=$ac_srcdir;;
24513 *)
24514 case $ac_srcdir in
24515 .) ac_abs_srcdir=$ac_abs_builddir;;
24516 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24517 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24518 esac;;
24519 esac
24520 case $ac_abs_builddir in
24521 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24522 *)
24523 case $ac_top_srcdir in
24524 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24525 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24526 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24527 esac;;
24528 esac
24529
24530
24531 case $INSTALL in
24532 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24533 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24534 esac
24535
24536 if test x"$ac_file" != x-; then
24537 { echo "$as_me:$LINENO: creating $ac_file" >&5
24538 echo "$as_me: creating $ac_file" >&6;}
24539 rm -f "$ac_file"
24540 fi
24541 # Let's still pretend it is `configure' which instantiates (i.e., don't
24542 # use $as_me), people would be surprised to read:
24543 # /* config.h. Generated by config.status. */
24544 if test x"$ac_file" = x-; then
24545 configure_input=
24546 else
24547 configure_input="$ac_file. "
24548 fi
24549 configure_input=$configure_input"Generated from `echo $ac_file_in |
24550 sed 's,.*/,,'` by configure."
24551
24552 # First look for the input files in the build tree, otherwise in the
24553 # src tree.
24554 ac_file_inputs=`IFS=:
24555 for f in $ac_file_in; do
24556 case $f in
24557 -) echo $tmp/stdin ;;
24558 [\\/$]*)
24559 # Absolute (can't be DOS-style, as IFS=:)
24560 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24561 echo "$as_me: error: cannot find input file: $f" >&2;}
24562 { (exit 1); exit 1; }; }
24563 echo "$f";;
24564 *) # Relative
24565 if test -f "$f"; then
24566 # Build tree
24567 echo "$f"
24568 elif test -f "$srcdir/$f"; then
24569 # Source tree
24570 echo "$srcdir/$f"
24571 else
24572 # /dev/null tree
24573 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24574 echo "$as_me: error: cannot find input file: $f" >&2;}
24575 { (exit 1); exit 1; }; }
24576 fi;;
24577 esac
24578 done` || { (exit 1); exit 1; }
24579 _ACEOF
24580 cat >>$CONFIG_STATUS <<_ACEOF
24581 sed "$ac_vpsub
24582 $extrasub
24583 _ACEOF
24584 cat >>$CONFIG_STATUS <<\_ACEOF
24585 :t
24586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24587 s,@configure_input@,$configure_input,;t t
24588 s,@srcdir@,$ac_srcdir,;t t
24589 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24590 s,@top_srcdir@,$ac_top_srcdir,;t t
24591 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24592 s,@builddir@,$ac_builddir,;t t
24593 s,@abs_builddir@,$ac_abs_builddir,;t t
24594 s,@top_builddir@,$ac_top_builddir,;t t
24595 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24596 s,@INSTALL@,$ac_INSTALL,;t t
24597 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24598 rm -f $tmp/stdin
24599 if test x"$ac_file" != x-; then
24600 mv $tmp/out $ac_file
24601 else
24602 cat $tmp/out
24603 rm -f $tmp/out
24604 fi
24605
24606 done
24607 _ACEOF
24608 cat >>$CONFIG_STATUS <<\_ACEOF
24609
24610 #
24611 # CONFIG_HEADER section.
24612 #
24613
24614 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24615 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24616 #
24617 # ac_d sets the value in "#define NAME VALUE" lines.
24618 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24619 ac_dB='[ ].*$,\1#\2'
24620 ac_dC=' '
24621 ac_dD=',;t'
24622 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24623 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24624 ac_uB='$,\1#\2define\3'
24625 ac_uC=' '
24626 ac_uD=',;t'
24627
24628 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24630 case $ac_file in
24631 - | *:- | *:-:* ) # input from stdin
24632 cat >$tmp/stdin
24633 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24635 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24637 * ) ac_file_in=$ac_file.in ;;
24638 esac
24639
24640 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24641 echo "$as_me: creating $ac_file" >&6;}
24642
24643 # First look for the input files in the build tree, otherwise in the
24644 # src tree.
24645 ac_file_inputs=`IFS=:
24646 for f in $ac_file_in; do
24647 case $f in
24648 -) echo $tmp/stdin ;;
24649 [\\/$]*)
24650 # Absolute (can't be DOS-style, as IFS=:)
24651 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24652 echo "$as_me: error: cannot find input file: $f" >&2;}
24653 { (exit 1); exit 1; }; }
24654 # Do quote $f, to prevent DOS paths from being IFS'd.
24655 echo "$f";;
24656 *) # Relative
24657 if test -f "$f"; then
24658 # Build tree
24659 echo "$f"
24660 elif test -f "$srcdir/$f"; then
24661 # Source tree
24662 echo "$srcdir/$f"
24663 else
24664 # /dev/null tree
24665 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24666 echo "$as_me: error: cannot find input file: $f" >&2;}
24667 { (exit 1); exit 1; }; }
24668 fi;;
24669 esac
24670 done` || { (exit 1); exit 1; }
24671 # Remove the trailing spaces.
24672 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24673
24674 _ACEOF
24675
24676 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24677 # `conftest.undefs', that substitutes the proper values into
24678 # config.h.in to produce config.h. The first handles `#define'
24679 # templates, and the second `#undef' templates.
24680 # And first: Protect against being on the right side of a sed subst in
24681 # config.status. Protect against being in an unquoted here document
24682 # in config.status.
24683 rm -f conftest.defines conftest.undefs
24684 # Using a here document instead of a string reduces the quoting nightmare.
24685 # Putting comments in sed scripts is not portable.
24686 #
24687 # `end' is used to avoid that the second main sed command (meant for
24688 # 0-ary CPP macros) applies to n-ary macro definitions.
24689 # See the Autoconf documentation for `clear'.
24690 cat >confdef2sed.sed <<\_ACEOF
24691 s/[\\&,]/\\&/g
24692 s,[\\$`],\\&,g
24693 t clear
24694 : clear
24695 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24696 t end
24697 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24698 : end
24699 _ACEOF
24700 # If some macros were called several times there might be several times
24701 # the same #defines, which is useless. Nevertheless, we may not want to
24702 # sort them, since we want the *last* AC-DEFINE to be honored.
24703 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24704 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24705 rm -f confdef2sed.sed
24706
24707 # This sed command replaces #undef with comments. This is necessary, for
24708 # example, in the case of _POSIX_SOURCE, which is predefined and required
24709 # on some systems where configure will not decide to define it.
24710 cat >>conftest.undefs <<\_ACEOF
24711 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24712 _ACEOF
24713
24714 # Break up conftest.defines because some shells have a limit on the size
24715 # of here documents, and old seds have small limits too (100 cmds).
24716 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24717 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24718 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24719 echo ' :' >>$CONFIG_STATUS
24720 rm -f conftest.tail
24721 while grep . conftest.defines >/dev/null
24722 do
24723 # Write a limited-size here document to $tmp/defines.sed.
24724 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24725 # Speed up: don't consider the non `#define' lines.
24726 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24727 # Work around the forget-to-reset-the-flag bug.
24728 echo 't clr' >>$CONFIG_STATUS
24729 echo ': clr' >>$CONFIG_STATUS
24730 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24731 echo 'CEOF
24732 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24733 rm -f $tmp/in
24734 mv $tmp/out $tmp/in
24735 ' >>$CONFIG_STATUS
24736 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24737 rm -f conftest.defines
24738 mv conftest.tail conftest.defines
24739 done
24740 rm -f conftest.defines
24741 echo ' fi # grep' >>$CONFIG_STATUS
24742 echo >>$CONFIG_STATUS
24743
24744 # Break up conftest.undefs because some shells have a limit on the size
24745 # of here documents, and old seds have small limits too (100 cmds).
24746 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24747 rm -f conftest.tail
24748 while grep . conftest.undefs >/dev/null
24749 do
24750 # Write a limited-size here document to $tmp/undefs.sed.
24751 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24752 # Speed up: don't consider the non `#undef'
24753 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24754 # Work around the forget-to-reset-the-flag bug.
24755 echo 't clr' >>$CONFIG_STATUS
24756 echo ': clr' >>$CONFIG_STATUS
24757 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24758 echo 'CEOF
24759 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24760 rm -f $tmp/in
24761 mv $tmp/out $tmp/in
24762 ' >>$CONFIG_STATUS
24763 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24764 rm -f conftest.undefs
24765 mv conftest.tail conftest.undefs
24766 done
24767 rm -f conftest.undefs
24768
24769 cat >>$CONFIG_STATUS <<\_ACEOF
24770 # Let's still pretend it is `configure' which instantiates (i.e., don't
24771 # use $as_me), people would be surprised to read:
24772 # /* config.h. Generated by config.status. */
24773 if test x"$ac_file" = x-; then
24774 echo "/* Generated by configure. */" >$tmp/config.h
24775 else
24776 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24777 fi
24778 cat $tmp/in >>$tmp/config.h
24779 rm -f $tmp/in
24780 if test x"$ac_file" != x-; then
24781 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24782 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24783 echo "$as_me: $ac_file is unchanged" >&6;}
24784 else
24785 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24787 X"$ac_file" : 'X\(//\)[^/]' \| \
24788 X"$ac_file" : 'X\(//\)$' \| \
24789 X"$ac_file" : 'X\(/\)' \| \
24790 . : '\(.\)' 2>/dev/null ||
24791 echo X"$ac_file" |
24792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24794 /^X\(\/\/\)$/{ s//\1/; q; }
24795 /^X\(\/\).*/{ s//\1/; q; }
24796 s/.*/./; q'`
24797 { if $as_mkdir_p; then
24798 mkdir -p "$ac_dir"
24799 else
24800 as_dir="$ac_dir"
24801 as_dirs=
24802 while test ! -d "$as_dir"; do
24803 as_dirs="$as_dir $as_dirs"
24804 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24806 X"$as_dir" : 'X\(//\)[^/]' \| \
24807 X"$as_dir" : 'X\(//\)$' \| \
24808 X"$as_dir" : 'X\(/\)' \| \
24809 . : '\(.\)' 2>/dev/null ||
24810 echo X"$as_dir" |
24811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24812 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24813 /^X\(\/\/\)$/{ s//\1/; q; }
24814 /^X\(\/\).*/{ s//\1/; q; }
24815 s/.*/./; q'`
24816 done
24817 test ! -n "$as_dirs" || mkdir $as_dirs
24818 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24819 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24820 { (exit 1); exit 1; }; }; }
24821
24822 rm -f $ac_file
24823 mv $tmp/config.h $ac_file
24824 fi
24825 else
24826 cat $tmp/config.h
24827 rm -f $tmp/config.h
24828 fi
24829 done
24830 _ACEOF
24831 cat >>$CONFIG_STATUS <<\_ACEOF
24832
24833 #
24834 # CONFIG_COMMANDS section.
24835 #
24836 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24837 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24838 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24839 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24840 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24841 X"$ac_dest" : 'X\(//\)[^/]' \| \
24842 X"$ac_dest" : 'X\(//\)$' \| \
24843 X"$ac_dest" : 'X\(/\)' \| \
24844 . : '\(.\)' 2>/dev/null ||
24845 echo X"$ac_dest" |
24846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24848 /^X\(\/\/\)$/{ s//\1/; q; }
24849 /^X\(\/\).*/{ s//\1/; q; }
24850 s/.*/./; q'`
24851 { if $as_mkdir_p; then
24852 mkdir -p "$ac_dir"
24853 else
24854 as_dir="$ac_dir"
24855 as_dirs=
24856 while test ! -d "$as_dir"; do
24857 as_dirs="$as_dir $as_dirs"
24858 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24860 X"$as_dir" : 'X\(//\)[^/]' \| \
24861 X"$as_dir" : 'X\(//\)$' \| \
24862 X"$as_dir" : 'X\(/\)' \| \
24863 . : '\(.\)' 2>/dev/null ||
24864 echo X"$as_dir" |
24865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24867 /^X\(\/\/\)$/{ s//\1/; q; }
24868 /^X\(\/\).*/{ s//\1/; q; }
24869 s/.*/./; q'`
24870 done
24871 test ! -n "$as_dirs" || mkdir $as_dirs
24872 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24873 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24874 { (exit 1); exit 1; }; }; }
24875
24876 ac_builddir=.
24877
24878 if test "$ac_dir" != .; then
24879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24880 # A "../" for each directory in $ac_dir_suffix.
24881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24882 else
24883 ac_dir_suffix= ac_top_builddir=
24884 fi
24885
24886 case $srcdir in
24887 .) # No --srcdir option. We are building in place.
24888 ac_srcdir=.
24889 if test -z "$ac_top_builddir"; then
24890 ac_top_srcdir=.
24891 else
24892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24893 fi ;;
24894 [\\/]* | ?:[\\/]* ) # Absolute path.
24895 ac_srcdir=$srcdir$ac_dir_suffix;
24896 ac_top_srcdir=$srcdir ;;
24897 *) # Relative path.
24898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24900 esac
24901
24902 # Do not use `cd foo && pwd` to compute absolute paths, because
24903 # the directories may not exist.
24904 case `pwd` in
24905 .) ac_abs_builddir="$ac_dir";;
24906 *)
24907 case "$ac_dir" in
24908 .) ac_abs_builddir=`pwd`;;
24909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24911 esac;;
24912 esac
24913 case $ac_abs_builddir in
24914 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24915 *)
24916 case ${ac_top_builddir}. in
24917 .) ac_abs_top_builddir=$ac_abs_builddir;;
24918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24920 esac;;
24921 esac
24922 case $ac_abs_builddir in
24923 .) ac_abs_srcdir=$ac_srcdir;;
24924 *)
24925 case $ac_srcdir in
24926 .) ac_abs_srcdir=$ac_abs_builddir;;
24927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24929 esac;;
24930 esac
24931 case $ac_abs_builddir in
24932 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24933 *)
24934 case $ac_top_srcdir in
24935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24938 esac;;
24939 esac
24940
24941
24942 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24943 echo "$as_me: executing $ac_dest commands" >&6;}
24944 case $ac_dest in
24945 default )
24946
24947 ### Make the necessary directories, if they don't exist.
24948 for dir in etc lisp ; do
24949 test -d ${dir} || mkdir ${dir}
24950 done
24951
24952 # Build src/Makefile from ${srcdir}/src/Makefile.c
24953 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24954 # This must be done after src/config.h is built, since we rely on that file.
24955
24956 # Now get this: Some word that is part of the ${srcdir} directory name
24957 # or the ${configuration} value might, just might, happen to be an
24958 # identifier like `sun4' or `i386' or something, and be predefined by
24959 # the C preprocessor to some helpful value like 1, or maybe the empty
24960 # string. Needless to say consequent macro substitutions are less
24961 # than conducive to the makefile finding the correct directory.
24962 undefs="`echo $top_srcdir $configuration $canonical |
24963 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24964 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24965 `"
24966
24967 echo creating src/epaths.h
24968 ${MAKE-make} epaths-force
24969
24970 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24971 # `..' to `. .' unless invoked with -traditional
24972
24973 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24974 CPPFLAGS="$CPPFLAGS -traditional"
24975 fi
24976
24977 echo creating lib-src/Makefile
24978 ( cd lib-src
24979 rm -f junk.c junk1.c junk2.c
24980 sed -e '/start of cpp stuff/q' \
24981 < Makefile.c > junk1.c
24982 sed -e '1,/start of cpp stuff/d'\
24983 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24984 < Makefile.c > junk.c
24985 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24986 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24987 cat junk1.c junk2.c > Makefile.new
24988 rm -f junk.c junk1.c junk2.c
24989 chmod 444 Makefile.new
24990 mv -f Makefile.new Makefile
24991 )
24992
24993 echo creating src/Makefile
24994 ( cd src
24995 rm -f junk.c junk1.c junk2.c
24996 sed -e '/start of cpp stuff/q' \
24997 < Makefile.c > junk1.c
24998 sed -e '1,/start of cpp stuff/d'\
24999 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25000 < Makefile.c > junk.c
25001 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25002 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25003 fi
25004 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25005 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25006 cat junk1.c junk2.c > Makefile.new
25007 rm -f junk.c junk1.c junk2.c
25008 chmod 444 Makefile.new
25009 mv -f Makefile.new Makefile
25010 )
25011
25012 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25013 echo creating src/.gdbinit
25014 echo source $srcdir/src/.gdbinit > src/.gdbinit
25015 fi
25016
25017 # This is how we know whether to re-run configure in certain cases.
25018 touch src/config.stamp
25019
25020 ;;
25021 esac
25022 done
25023 _ACEOF
25024
25025 cat >>$CONFIG_STATUS <<\_ACEOF
25026
25027 { (exit 0); exit 0; }
25028 _ACEOF
25029 chmod +x $CONFIG_STATUS
25030 ac_clean_files=$ac_clean_files_save
25031
25032
25033 # configure is writing to config.log, and then calls config.status.
25034 # config.status does its own redirection, appending to config.log.
25035 # Unfortunately, on DOS this fails, as config.log is still kept open
25036 # by configure, so config.status won't be able to write to it; its
25037 # output is simply discarded. So we exec the FD to /dev/null,
25038 # effectively closing config.log, so it can be properly (re)opened and
25039 # appended to by config.status. When coming back to configure, we
25040 # need to make the FD available again.
25041 if test "$no_create" != yes; then
25042 ac_cs_success=:
25043 ac_config_status_args=
25044 test "$silent" = yes &&
25045 ac_config_status_args="$ac_config_status_args --quiet"
25046 exec 5>/dev/null
25047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25048 exec 5>>config.log
25049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25050 # would make configure fail if this is the last instruction.
25051 $ac_cs_success || { (exit 1); exit 1; }
25052 fi
25053
25054