Include window.h.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND 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:${datadir}/emacs/${version}/leim'
1361 lisppath='${locallisppath}:${lispdir}'
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 i[3456]86-*-freebsd*) machine=intel386 ;;
1744 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1745 esac
1746 ;;
1747
1748 ## NetBSD ports
1749 *-*-netbsd* )
1750 opsys=netbsd
1751 if test -f /usr/lib/crti.o; then
1752
1753 cat >>confdefs.h <<\_ACEOF
1754 #define HAVE_CRTIN
1755 _ACEOF
1756
1757 fi
1758
1759 case "${canonical}" in
1760 alpha*-*-netbsd*) machine=alpha ;;
1761 i[3456]86-*-netbsd*) machine=intel386 ;;
1762 m68k-*-netbsd*)
1763 # This is somewhat bogus.
1764 machine=hp9000s300 ;;
1765 powerpc-apple-netbsd*) machine=macppc ;;
1766 mips-*-netbsd*) machine=pmax ;;
1767 mipsel-*-netbsd*) machine=pmax ;;
1768 mipseb-*-netbsd*) machine=pmax ;;
1769 ns32k-*-netbsd*) machine=ns32000 ;;
1770 powerpc-*-netbsd*) machine=macppc ;;
1771 sparc*-*-netbsd*) machine=sparc ;;
1772 vax-*-netbsd*) machine=vax ;;
1773 arm-*-netbsd*) machine=arm ;;
1774 esac
1775 ;;
1776
1777 ## OpenBSD ports
1778 *-*-openbsd* )
1779 opsys=openbsd
1780 case "${canonical}" in
1781 alpha*-*-openbsd*) machine=alpha ;;
1782 i386-*-openbsd*) machine=intel386 ;;
1783 m68k-*-openbsd*) machine=hp9000s300 ;;
1784 mipsel-*-openbsd*) machine=pmax ;;
1785 ns32k-*-openbsd*) machine=ns32000 ;;
1786 sparc-*-openbsd*) machine=sparc ;;
1787 vax-*-openbsd*) machine=vax ;;
1788 esac
1789 ;;
1790
1791 ## LynxOS ports
1792 *-*-lynxos* )
1793 opsys=lynxos
1794 case "${canonical}" in
1795 i[3456]86-*-lynxos*) machine=intel386 ;;
1796 powerpc-*-lynxos*) machine=powerpc ;;
1797 esac
1798 ;;
1799
1800 ## Acorn RISCiX:
1801 arm-acorn-riscix1.1* )
1802 machine=acorn opsys=riscix1-1
1803 ;;
1804 arm-acorn-riscix1.2* | arm-acorn-riscix )
1805 ## This name is riscix12 instead of riscix1.2
1806 ## to avoid a file name conflict on MSDOS.
1807 machine=acorn opsys=riscix12
1808 ;;
1809
1810 ## BSDI ports
1811 *-*-bsdi* )
1812 opsys=bsdi
1813 case "${canonical}" in
1814 i[345]86-*-bsdi*) machine=intel386 ;;
1815 sparc-*-bsdi*) machine=sparc ;;
1816 powerpc-*-bsdi*) machine=macppc ;;
1817 esac
1818 case "${canonical}" in
1819 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1820 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1821 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1822 *-*-bsdi3* ) opsys=bsdos3 ;;
1823 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1824 esac
1825 ;;
1826
1827 ## Alliant machines
1828 ## Strictly speaking, we need the version of the alliant operating
1829 ## system to choose the right machine file, but currently the
1830 ## configuration name doesn't tell us enough to choose the right
1831 ## one; we need to give alliants their own operating system name to
1832 ## do this right. When someone cares, they can help us.
1833 fx80-alliant-* )
1834 machine=alliant4 opsys=bsd4-2
1835 ;;
1836 i860-alliant-* )
1837 machine=alliant-2800 opsys=bsd4-3
1838 ;;
1839
1840 ## Alpha (DEC) machines.
1841 alpha*-dec-osf* )
1842 machine=alpha opsys=osf1
1843 # This is needed to find X11R6.1 libraries for certain tests.
1844 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1845 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1846 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1847 # due to non-traditional preprocessing with the current compiler
1848 # defaults. OSF 4 can also have that compiler version, and there
1849 # seems always to have been a usable /usr/bin/cpp.
1850 NON_GNU_CPP=/usr/bin/cpp
1851 case "${canonical}" in
1852 alpha*-dec-osf[5-9]*)
1853 opsys=osf5-0 ;;
1854 esac
1855 ;;
1856
1857 alpha*-*-linux-gnu* )
1858 machine=alpha opsys=gnu-linux
1859 ;;
1860
1861 arm*-*-linux-gnu* )
1862 machine=arm opsys=gnu-linux
1863 ;;
1864
1865 ## Altos 3068
1866 m68*-altos-sysv* )
1867 machine=altos opsys=usg5-2
1868 ;;
1869
1870 ## Amdahl UTS
1871 580-amdahl-sysv* )
1872 machine=amdahl opsys=usg5-2-2
1873 ;;
1874
1875 ## Apollo, Domain/OS
1876 m68*-apollo-* )
1877 machine=apollo opsys=bsd4-3
1878 ;;
1879
1880 ## AT&T 3b2, 3b5, 3b15, 3b20
1881 we32k-att-sysv* )
1882 machine=att3b opsys=usg5-2-2
1883 ;;
1884
1885 ## AT&T 3b1 - The Mighty Unix PC!
1886 m68*-att-sysv* )
1887 machine=7300 opsys=usg5-2-2
1888 ;;
1889
1890 ## Bull dpx20
1891 rs6000-bull-bosx* )
1892 machine=ibmrs6000 opsys=aix3-2
1893 ;;
1894
1895 ## Bull dpx2
1896 m68*-bull-sysv3* )
1897 machine=dpx2 opsys=usg5-3
1898 ;;
1899
1900 ## Bull sps7
1901 m68*-bull-sysv2* )
1902 machine=sps7 opsys=usg5-2
1903 ;;
1904
1905 ## CCI 5/32, 6/32 -- see "Tahoe".
1906
1907 ## Celerity
1908 ## I don't know what configuration name to use for this; config.sub
1909 ## doesn't seem to know anything about it. Hey, Celerity users, get
1910 ## in touch with us!
1911 celerity-celerity-bsd* )
1912 machine=celerity opsys=bsd4-2
1913 ;;
1914
1915 ## Clipper
1916 ## What operating systems does this chip run that Emacs has been
1917 ## tested on?
1918 clipper-* )
1919 machine=clipper
1920 ## We'll use the catch-all code at the bottom to guess the
1921 ## operating system.
1922 ;;
1923
1924 ## Compaq Nonstop
1925 mips-compaq-nonstopux* )
1926 machine=nonstopux opsys=nonstopux
1927 ;;
1928
1929 ## Convex
1930 *-convex-bsd* | *-convex-convexos* )
1931 machine=convex opsys=bsd4-3
1932 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1933 NON_GNU_CPP="cc -E -P"
1934 ;;
1935
1936 ## Cubix QBx/386
1937 i[3456]86-cubix-sysv* )
1938 machine=intel386 opsys=usg5-3
1939 ;;
1940
1941 ## Cydra 5
1942 cydra*-cydrome-sysv* )
1943 machine=cydra5 opsys=usg5-3
1944 ;;
1945
1946 ## Data General AViiON Machines
1947 ## DG changed naming conventions with the release of 5.4.4.10, they
1948 ## dropped the initial 5.4 but left the intervening R. Because of the
1949 ## R this shouldn't conflict with older versions of the OS (which I
1950 ## think were named like dgux4.*). In addition, DG new AViiONs series
1951 ## uses either Motorola M88k or Intel Pentium CPUs.
1952 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1953 machine=aviion opsys=dgux4
1954 ;;
1955 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1956 ## This name is dgux5-4-3 instead of dgux5-4r3
1957 ## to avoid a file name conflict on MSDOS.
1958 machine=aviion opsys=dgux5-4-3
1959 ;;
1960 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1961 machine=aviion opsys=dgux5-4r2
1962 ;;
1963 m88k-dg-dgux* )
1964 machine=aviion opsys=dgux
1965 ;;
1966
1967 ## Data General AViiON Intel (x86) Machines
1968 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1969 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1970 i[345]86-dg-dguxR4* )
1971 machine=aviion-intel opsys=dgux4
1972 ;;
1973
1974 ## DECstations
1975 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1976 machine=pmax opsys=bsd4-2
1977 ;;
1978 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1979 machine=pmax opsys=bsd4-3
1980 ;;
1981 mips-dec-ultrix* )
1982 machine=pmax opsys=ultrix4-3
1983 ;;
1984 mips-dec-osf* )
1985 machine=pmax opsys=osf1
1986 ;;
1987 mips-dec-mach_bsd4.3* )
1988 machine=pmax opsys=mach-bsd4-3
1989 ;;
1990
1991 ## Motorola Delta machines
1992 m68k-motorola-sysv* | m68000-motorola-sysv* )
1993 machine=delta opsys=usg5-3
1994 if test -z "`type gnucc | grep 'not found'`"
1995 then
1996 if test -s /etc/167config
1997 then CC="gnucc -m68040"
1998 else CC="gnucc -m68881"
1999 fi
2000 else
2001 if test -z "`type gcc | grep 'not found'`"
2002 then CC=gcc
2003 else CC=cc
2004 fi
2005 fi
2006 ;;
2007 m88k-motorola-sysv4* )
2008 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2009 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2010 # I hope there are not other 4.0 versions for this machine
2011 # which really need usg5-4 instead.
2012 machine=delta88k opsys=usg5-4-2
2013 ;;
2014 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2015 machine=delta88k opsys=usg5-3
2016 ;;
2017
2018 ## Dual machines
2019 m68*-dual-sysv* )
2020 machine=dual opsys=usg5-2
2021 ;;
2022 m68*-dual-uniplus* )
2023 machine=dual opsys=unipl5-2
2024 ;;
2025
2026 ## Elxsi 6400
2027 elxsi-elxsi-sysv* )
2028 machine=elxsi opsys=usg5-2
2029 ;;
2030
2031 ## Encore machines
2032 ns16k-encore-bsd* )
2033 machine=ns16000 opsys=umax
2034 ;;
2035
2036 ## The GEC 63 - apparently, this port isn't really finished yet.
2037 # I'm sure we finished off the last of the machines, though. -- fx
2038
2039 ## Gould Power Node and NP1
2040 pn-gould-bsd4.2* )
2041 machine=gould opsys=bsd4-2
2042 ;;
2043 pn-gould-bsd4.3* )
2044 machine=gould opsys=bsd4-3
2045 ;;
2046 np1-gould-bsd* )
2047 machine=gould-np1 opsys=bsd4-3
2048 ;;
2049
2050 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2051 ## as far as Emacs is concerned).
2052 m88k-harris-cxux* )
2053 # Build needs to be different on 7.0 and later releases
2054 case "`uname -r`" in
2055 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2056 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2057 esac
2058 NON_GNU_CPP="/lib/cpp"
2059 ;;
2060 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2061 m68k-harris-cxux* )
2062 machine=nh3000 opsys=cxux
2063 ;;
2064 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2065 powerpc-harris-powerunix )
2066 machine=nh6000 opsys=powerunix
2067 NON_GNU_CPP="cc -Xo -E -P"
2068 ;;
2069 ## SR2001/SR2201 running HI-UX/MPP
2070 hppa1.1-hitachi-hiuxmpp* )
2071 machine=sr2k opsys=hiuxmpp
2072 ;;
2073 hppa1.1-hitachi-hiuxwe2* )
2074 machine=sr2k opsys=hiuxwe2
2075 ;;
2076 ## Honeywell XPS100
2077 xps*-honeywell-sysv* )
2078 machine=xps100 opsys=usg5-2
2079 ;;
2080
2081 ## HP 9000 series 200 or 300
2082 m68*-hp-bsd* )
2083 machine=hp9000s300 opsys=bsd4-3
2084 ;;
2085 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2086 m68*-hp-hpux* )
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2091 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2092 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2093 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2094 *) machine=hp9000s300 opsys=hpux ;;
2095 esac
2096 ;;
2097
2098 ## HP 9000 series 700 and 800, running HP/UX
2099 hppa*-hp-hpux7* )
2100 machine=hp800 opsys=hpux
2101 ;;
2102 hppa*-hp-hpux8* )
2103 machine=hp800 opsys=hpux8
2104 ;;
2105 hppa*-hp-hpux9shr* )
2106 machine=hp800 opsys=hpux9shr
2107 ;;
2108 hppa*-hp-hpux9* )
2109 machine=hp800 opsys=hpux9
2110 ;;
2111 hppa*-hp-hpux10.2* )
2112 machine=hp800 opsys=hpux10-20
2113 ;;
2114 hppa*-hp-hpux10* )
2115 machine=hp800 opsys=hpux10
2116 ;;
2117 hppa*-hp-hpux1[1-9]* )
2118 machine=hp800 opsys=hpux11
2119 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2120 ;;
2121
2122 hppa*-*-linux-gnu* )
2123 machine=hp800 opsys=gnu-linux
2124 ;;
2125
2126 ## HP 9000 series 700 and 800, running HP/UX
2127 hppa*-hp-hpux* )
2128 ## Cross-compilation? Nah!
2129 case "`uname -r`" in
2130 ## Someone's system reports A.B8.05 for this.
2131 ## I wonder what other possibilities there are.
2132 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2133 *.08.* ) machine=hp800 opsys=hpux8 ;;
2134 *.09.* ) machine=hp800 opsys=hpux9 ;;
2135 *) machine=hp800 opsys=hpux10 ;;
2136 esac
2137 ;;
2138 hppa*-*-nextstep* )
2139 machine=hp800 opsys=nextstep
2140 ;;
2141
2142 ## Orion machines
2143 orion-orion-bsd* )
2144 machine=orion opsys=bsd4-2
2145 ;;
2146 clipper-orion-bsd* )
2147 machine=orion105 opsys=bsd4-2
2148 ;;
2149
2150 ## IBM machines
2151 i[3456]86-ibm-aix1.1* )
2152 machine=ibmps2-aix opsys=usg5-2-2
2153 ;;
2154 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2155 machine=ibmps2-aix opsys=usg5-3
2156 ;;
2157 i370-ibm-aix*)
2158 machine=ibm370aix opsys=usg5-3
2159 ;;
2160 s390-*-linux-gnu* )
2161 machine=ibms390 opsys=gnu-linux
2162 ;;
2163 s390x-*-linux-gnu* )
2164 machine=ibms390x opsys=gnu-linux
2165 ;;
2166 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2167 machine=ibmrs6000 opsys=aix3-1
2168 ;;
2169 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2170 machine=ibmrs6000 opsys=aix3-2-5
2171 ;;
2172 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2173 machine=ibmrs6000 opsys=aix4-1
2174 ;;
2175 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2176 machine=ibmrs6000 opsys=aix4-2
2177 ;;
2178 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2179 machine=ibmrs6000 opsys=aix4-2
2180 ;;
2181 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2182 machine=ibmrs6000 opsys=aix4
2183 ;;
2184 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2185 machine=ibmrs6000 opsys=aix4-1
2186 ;;
2187 rs6000-ibm-aix* | powerpc-ibm-aix* )
2188 machine=ibmrs6000 opsys=aix3-2
2189 ;;
2190 romp-ibm-bsd4.3* )
2191 machine=ibmrt opsys=bsd4-3
2192 ;;
2193 romp-ibm-bsd4.2* )
2194 machine=ibmrt opsys=bsd4-2
2195 ;;
2196 romp-ibm-aos4.3* )
2197 machine=ibmrt opsys=bsd4-3
2198 ;;
2199 romp-ibm-aos4.2* )
2200 machine=ibmrt opsys=bsd4-2
2201 ;;
2202 romp-ibm-aos* )
2203 machine=ibmrt opsys=bsd4-3
2204 ;;
2205 romp-ibm-bsd* )
2206 machine=ibmrt opsys=bsd4-3
2207 ;;
2208 romp-ibm-aix* )
2209 machine=ibmrt-aix opsys=usg5-2-2
2210 ;;
2211
2212 ## Integrated Solutions `Optimum V'
2213 m68*-isi-bsd4.2* )
2214 machine=isi-ov opsys=bsd4-2
2215 ;;
2216 m68*-isi-bsd4.3* )
2217 machine=isi-ov opsys=bsd4-3
2218 ;;
2219
2220 ## Intel 386 machines where we do care about the manufacturer
2221 i[3456]86-intsys-sysv* )
2222 machine=is386 opsys=usg5-2-2
2223 ;;
2224
2225 ## Prime EXL
2226 i[3456]86-prime-sysv* )
2227 machine=i386 opsys=usg5-3
2228 ;;
2229
2230 ## Sequent Symmetry running Dynix
2231 i[3456]86-sequent-bsd* )
2232 machine=symmetry opsys=bsd4-3
2233 ;;
2234
2235 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2236 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2237 machine=sequent-ptx opsys=ptx4
2238 NON_GNU_CPP=/lib/cpp
2239 ;;
2240
2241 ## Sequent Symmetry running DYNIX/ptx
2242 ## Use the old cpp rather than the newer ANSI one.
2243 i[3456]86-sequent-ptx* )
2244 machine=sequent-ptx opsys=ptx
2245 NON_GNU_CPP="/lib/cpp"
2246 ;;
2247
2248 ## ncr machine running svr4.3.
2249 i[3456]86-ncr-sysv4.3 )
2250 machine=ncr386 opsys=usg5-4-3
2251 ;;
2252
2253 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2254 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2255 i[3456]86-ncr-sysv* )
2256 machine=ncr386 opsys=usg5-4-2
2257 ;;
2258
2259 ## Intel Paragon OSF/1
2260 i860-intel-osf1* )
2261 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2262 ;;
2263
2264 ## Intel 860
2265 i860-*-sysv4* )
2266 machine=i860 opsys=usg5-4
2267 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2268 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2269 ;;
2270
2271 ## Macintosh PowerPC
2272 powerpc*-*-linux-gnu* )
2273 machine=macppc opsys=gnu-linux
2274 ;;
2275
2276 ## Masscomp machines
2277 m68*-masscomp-rtu* )
2278 machine=masscomp opsys=rtu
2279 ;;
2280
2281 ## Megatest machines
2282 m68*-megatest-bsd* )
2283 machine=mega68 opsys=bsd4-2
2284 ;;
2285
2286 ## Workstations sold by MIPS
2287 ## This is not necessarily all workstations using the MIPS processor -
2288 ## Irises are produced by SGI, and DECstations by DEC.
2289
2290 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2291 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2292 ## it gives for choosing between the alternatives seems to be "Use
2293 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2294 ## the BSD world." I'll assume that these are instructions for
2295 ## handling two odd situations, and that every other situation
2296 ## should use mips.h and usg5-2-2, they being listed first.
2297 mips-mips-usg* )
2298 machine=mips4
2299 ## Fall through to the general code at the bottom to decide on the OS.
2300 ;;
2301 mips-mips-riscos4* )
2302 machine=mips4 opsys=bsd4-3
2303 NON_GNU_CC="cc -systype bsd43"
2304 NON_GNU_CPP="cc -systype bsd43 -E"
2305 ;;
2306 mips-mips-riscos5* )
2307 machine=mips4 opsys=riscos5
2308 NON_GNU_CC="cc -systype bsd43"
2309 NON_GNU_CPP="cc -systype bsd43 -E"
2310 ;;
2311 mips-mips-bsd* )
2312 machine=mips opsys=bsd4-3
2313 ;;
2314 mips-mips-* )
2315 machine=mips opsys=usg5-2-2
2316 ;;
2317
2318 ## NeXT
2319 m68*-next-* | m68k-*-nextstep* )
2320 machine=m68k opsys=nextstep
2321 ;;
2322
2323 ## The complete machine from National Semiconductor
2324 ns32k-ns-genix* )
2325 machine=ns32000 opsys=usg5-2
2326 ;;
2327
2328 ## NCR machines
2329 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2330 machine=tower32 opsys=usg5-2-2
2331 ;;
2332 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2333 machine=tower32v3 opsys=usg5-3
2334 ;;
2335
2336 ## NEC EWS4800
2337 mips-nec-sysv4*)
2338 machine=ews4800 opsys=ux4800
2339 ;;
2340
2341 ## Nixdorf Targon 31
2342 m68*-nixdorf-sysv* )
2343 machine=targon31 opsys=usg5-2-2
2344 ;;
2345
2346 ## Nu (TI or LMI)
2347 m68*-nu-sysv* )
2348 machine=nu opsys=usg5-2
2349 ;;
2350
2351 ## Plexus
2352 m68*-plexus-sysv* )
2353 machine=plexus opsys=usg5-2
2354 ;;
2355
2356 ## Pyramid machines
2357 ## I don't really have any idea what sort of processor the Pyramid has,
2358 ## so I'm assuming it is its own architecture.
2359 pyramid-pyramid-bsd* )
2360 machine=pyramid opsys=bsd4-2
2361 ;;
2362
2363 ## Sequent Balance
2364 ns32k-sequent-bsd4.2* )
2365 machine=sequent opsys=bsd4-2
2366 ;;
2367 ns32k-sequent-bsd4.3* )
2368 machine=sequent opsys=bsd4-3
2369 ;;
2370
2371 ## Siemens Nixdorf
2372 mips-siemens-sysv* | mips-sni-sysv*)
2373 machine=mips-siemens opsys=usg5-4
2374 NON_GNU_CC=/usr/ccs/bin/cc
2375 NON_GNU_CPP=/usr/ccs/lib/cpp
2376 ;;
2377
2378 ## Silicon Graphics machines
2379 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2380 m68*-sgi-iris3.5* )
2381 machine=irist opsys=iris3-5
2382 ;;
2383 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2384 machine=irist opsys=iris3-6
2385 ;;
2386 ## Iris 4D
2387 mips-sgi-irix3* )
2388 machine=iris4d opsys=irix3-3
2389 ;;
2390 mips-sgi-irix4* )
2391 machine=iris4d opsys=irix4-0
2392 ;;
2393 mips-sgi-irix6.5 )
2394 machine=iris4d opsys=irix6-5
2395 # Without defining _LANGUAGE_C, things get masked out in the headers
2396 # so that, for instance, grepping for `free' in stdlib.h fails and
2397 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2398 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2399 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2400 ;;
2401 mips-sgi-irix6* )
2402 machine=iris4d opsys=irix6-0
2403 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2404 # but presumably it does no harm.
2405 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2406 # -32 probably isn't necessary in later v.6s -- anyone know which?
2407 NON_GCC_TEST_OPTIONS=-32
2408 ;;
2409 mips-sgi-irix5.[01]* )
2410 machine=iris4d opsys=irix5-0
2411 ;;
2412 mips-sgi-irix5* | mips-sgi-irix* )
2413 machine=iris4d opsys=irix5-2
2414 ;;
2415
2416 ## SONY machines
2417 m68*-sony-bsd4.2* )
2418 machine=news opsys=bsd4-2
2419 ;;
2420 m68*-sony-bsd4.3* )
2421 machine=news opsys=bsd4-3
2422 ;;
2423 m68*-sony-newsos3* | m68*-sony-news3*)
2424 machine=news opsys=bsd4-3
2425 ;;
2426 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2427 machine=news-risc opsys=bsd4-3
2428 ;;
2429 mips-sony-newsos6* )
2430 machine=news-r6 opsys=newsos6
2431 ;;
2432 mips-sony-news* )
2433 machine=news-risc opsys=newsos5
2434 ;;
2435
2436 ## Stride
2437 m68*-stride-sysv* )
2438 machine=stride opsys=usg5-2
2439 ;;
2440
2441 ## Suns
2442 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2443 machine=sparc opsys=gnu-linux
2444 ;;
2445
2446 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2447 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2448 | rs6000-*-solaris2*)
2449 case "${canonical}" in
2450 m68*-sunos1* ) machine=sun1 ;;
2451 m68*-sunos2* ) machine=sun2 ;;
2452 m68* ) machine=sun3 ;;
2453 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2454 i[3456]86-*-* ) machine=intel386 ;;
2455 powerpcle* ) machine=powerpcle ;;
2456 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2457 sparc* ) machine=sparc ;;
2458 * ) unported=yes ;;
2459 esac
2460 case "${canonical}" in
2461 ## The Sun386 didn't get past 4.0.
2462 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2463 *-sunos4.0* ) opsys=sunos4-0 ;;
2464 *-sunos4.1.[3-9]*noshare )
2465 ## This name is sunos413 instead of sunos4-1-3
2466 ## to avoid a file name conflict on MSDOS.
2467 opsys=sunos413
2468 NON_GNU_CPP=/usr/lib/cpp
2469 NON_GCC_TEST_OPTIONS=-Bstatic
2470 GCC_TEST_OPTIONS=-static
2471 ;;
2472 *-sunos4.1.[3-9]* | *-sunos4shr*)
2473 opsys=sunos4shr
2474 NON_GNU_CPP=/usr/lib/cpp
2475 ;;
2476 *-sunos4* | *-sunos )
2477 opsys=sunos4-1
2478 NON_GCC_TEST_OPTIONS=-Bstatic
2479 GCC_TEST_OPTIONS=-static
2480 ;;
2481 *-sunos5.3* | *-solaris2.3* )
2482 opsys=sol2-3
2483 NON_GNU_CPP=/usr/ccs/lib/cpp
2484 ;;
2485 *-sunos5.4* | *-solaris2.4* )
2486 opsys=sol2-4
2487 NON_GNU_CPP=/usr/ccs/lib/cpp
2488 RANLIB="ar -ts"
2489 ;;
2490 *-sunos5.5* | *-solaris2.5* )
2491 opsys=sol2-5
2492 NON_GNU_CPP=/usr/ccs/lib/cpp
2493 RANLIB="ar -ts"
2494 ;;
2495 *-sunos5.6* | *-solaris2.6* )
2496 opsys=sol2-6
2497 NON_GNU_CPP=/usr/ccs/lib/cpp
2498 RANLIB="ar -ts"
2499 ;;
2500 *-sunos5* | *-solaris* )
2501 opsys=sol2-6
2502 NON_GNU_CPP=/usr/ccs/lib/cpp
2503 ;;
2504 * ) opsys=bsd4-2 ;;
2505 esac
2506 ## Watch out for a compiler that we know will not work.
2507 case "${canonical}" in
2508 *-solaris* | *-sunos5* )
2509 if [ "x$CC" = x/usr/ucb/cc ]; then
2510 ## /usr/ucb/cc doesn't work;
2511 ## we should find some other compiler that does work.
2512 unset CC
2513 fi
2514 ;;
2515 *) ;;
2516 esac
2517 ;;
2518 sparc-*-nextstep* )
2519 machine=sparc opsys=nextstep
2520 ;;
2521
2522 ## Tadpole 68k
2523 m68*-tadpole-sysv* )
2524 machine=tad68k opsys=usg5-3
2525 ;;
2526
2527 ## Tahoe machines
2528 tahoe-tahoe-bsd4.2* )
2529 machine=tahoe opsys=bsd4-2
2530 ;;
2531 tahoe-tahoe-bsd4.3* )
2532 machine=tahoe opsys=bsd4-3
2533 ;;
2534
2535 ## Tandem Integrity S2
2536 mips-tandem-sysv* )
2537 machine=tandem-s2 opsys=usg5-3
2538 ;;
2539
2540 ## Tektronix XD88
2541 m88k-tektronix-sysv3* )
2542 machine=tekxd88 opsys=usg5-3
2543 ;;
2544
2545 ## Tektronix 16000 box (6130?)
2546 ns16k-tektronix-bsd* )
2547 machine=ns16000 opsys=bsd4-2
2548 ;;
2549 ## Tektronix 4300
2550 ## src/m/tek4300.h hints that this is a m68k machine.
2551 m68*-tektronix-bsd* )
2552 machine=tek4300 opsys=bsd4-3
2553 ;;
2554
2555 ## Titan P2 or P3
2556 ## We seem to have lost the machine-description file titan.h!
2557 titan-titan-sysv* )
2558 machine=titan opsys=usg5-3
2559 ;;
2560
2561 ## Ustation E30 (SS5E)
2562 m68*-unisys-uniplus* )
2563 machine=ustation opsystem=unipl5-2
2564 ;;
2565
2566 ## Vaxen.
2567 vax-dec-* )
2568 machine=vax
2569 case "${canonical}" in
2570 *-bsd4.1* ) opsys=bsd4-1 ;;
2571 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2572 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2573 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2574 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2575 *-vms* ) opsys=vms ;;
2576 * ) unported=yes
2577 esac
2578 ;;
2579
2580 ## Whitechapel MG1
2581 ns16k-whitechapel-* )
2582 machine=mg1
2583 ## We don't know what sort of OS runs on these; we'll let the
2584 ## operating system guessing code below try.
2585 ;;
2586
2587 ## Wicat
2588 m68*-wicat-sysv* )
2589 machine=wicat opsys=usg5-2
2590 ;;
2591
2592 ## IA-64
2593 ia64*-*-linux* )
2594 machine=ia64 opsys=gnu-linux
2595 ;;
2596
2597 ## Intel 386 machines where we don't care about the manufacturer
2598 i[3456]86-*-* )
2599 machine=intel386
2600 case "${canonical}" in
2601 *-cygwin ) opsys=cygwin ;;
2602 *-darwin* ) opsys=darwin
2603 CPP="${CC-cc} -E -no-cpp-precomp"
2604 ;;
2605 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2606 *-isc2.2* ) opsys=isc2-2 ;;
2607 *-isc4.0* ) opsys=isc4-0 ;;
2608 *-isc4.* ) opsys=isc4-1
2609 GCC_TEST_OPTIONS=-posix
2610 NON_GCC_TEST_OPTIONS=-Xp
2611 ;;
2612 *-isc* ) opsys=isc3-0 ;;
2613 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2614 *-esix* ) opsys=esix ;;
2615 *-xenix* ) opsys=xenix ;;
2616 *-linux-gnu* ) opsys=gnu-linux ;;
2617 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2618 *-sco3.2v5* ) opsys=sco5
2619 NON_GNU_CPP=/lib/cpp
2620 # Prevent -belf from being passed to $CPP.
2621 # /lib/cpp does not accept it.
2622 OVERRIDE_CPPFLAGS=" "
2623 ;;
2624 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2625 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2626 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2627 *-386bsd* ) opsys=386bsd ;;
2628 *-nextstep* ) opsys=nextstep ;;
2629 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2630 esac
2631 ;;
2632
2633 ## m68k Linux-based GNU system
2634 m68k-*-linux-gnu* )
2635 machine=m68k opsys=gnu-linux
2636 ;;
2637
2638 ## Mips Linux-based GNU system
2639 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2640 machine=mips opsys=gnu-linux
2641 ;;
2642
2643 ## UXP/DS
2644 sparc-fujitsu-sysv4* )
2645 machine=sparc opsys=uxpds
2646 NON_GNU_CPP=/usr/ccs/lib/cpp
2647 RANLIB="ar -ts"
2648 ;;
2649
2650 ## UXP/V
2651 f301-fujitsu-uxpv4.1)
2652 machine=f301 opsys=uxpv
2653 ;;
2654
2655 ## Darwin / Mac OS X
2656 powerpc-apple-darwin* )
2657 machine=powermac opsys=darwin
2658 # Define CPP as follows to make autoconf work correctly.
2659 CPP="${CC-cc} -E -no-cpp-precomp"
2660 # Use fink packages if available.
2661 if test -d /sw/include && test -d /sw/lib; then
2662 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2663 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2664 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2665 fi
2666 ;;
2667
2668 ## AMD x86-64 Linux-based GNU system
2669 x86_64-*-linux-gnu* )
2670 machine=amdx86-64 opsys=gnu-linux
2671 ;;
2672
2673 * )
2674 unported=yes
2675 ;;
2676 esac
2677
2678 ### If the code above didn't choose an operating system, just choose
2679 ### an operating system based on the configuration name. You really
2680 ### only want to use this when you have no idea what the right
2681 ### operating system is; if you know what operating systems a machine
2682 ### runs, it's cleaner to make it explicit in the case statement
2683 ### above.
2684 if test x"${opsys}" = x; then
2685 case "${canonical}" in
2686 *-gnu* ) opsys=gnu ;;
2687 *-bsd4.[01] ) opsys=bsd4-1 ;;
2688 *-bsd4.2 ) opsys=bsd4-2 ;;
2689 *-bsd4.3 ) opsys=bsd4-3 ;;
2690 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2691 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2692 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2693 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2694 *-sysv4.2uw* ) opsys=unixware ;;
2695 *-sysv5uw* ) opsys=unixware ;;
2696 *-sysv5OpenUNIX* ) opsys=unixware ;;
2697 *-sysv4.1* | *-sysvr4.1* )
2698 NON_GNU_CPP=/usr/lib/cpp
2699 opsys=usg5-4 ;;
2700 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2701 if [ x$NON_GNU_CPP = x ]; then
2702 if [ -f /usr/ccs/lib/cpp ]; then
2703 NON_GNU_CPP=/usr/ccs/lib/cpp
2704 else
2705 NON_GNU_CPP=/lib/cpp
2706 fi
2707 fi
2708 opsys=usg5-4-2 ;;
2709 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2710 * )
2711 unported=yes
2712 ;;
2713 esac
2714 fi
2715
2716
2717
2718 if test $unported = yes; then
2719 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2720 Check \`etc/MACHINES' for recognized configuration names." >&5
2721 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2722 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2723 { (exit 1); exit 1; }; }
2724 fi
2725
2726 machfile="m/${machine}.h"
2727 opsysfile="s/${opsys}.h"
2728
2729
2730 #### Choose a compiler.
2731 test -n "$CC" && cc_specified=yes
2732
2733 # Save the value of CFLAGS that the user specified.
2734 SPECIFIED_CFLAGS="$CFLAGS"
2735
2736 case ${with_gcc} in
2737 "yes" ) CC="gcc" GCC=yes ;;
2738 "no" ) : ${CC=cc} ;;
2739 * )
2740 esac
2741 ac_ext=c
2742 ac_cpp='$CPP $CPPFLAGS'
2743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test -n "$ac_tool_prefix"; then
2747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768 done
2769 done
2770
2771 fi
2772 fi
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775 echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6
2777 else
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2780 fi
2781
2782 fi
2783 if test -z "$ac_cv_prog_CC"; then
2784 ac_ct_CC=$CC
2785 # Extract the first word of "gcc", so it can be a program name with args.
2786 set dummy gcc; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792 if test -n "$ac_ct_CC"; then
2793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_ac_ct_CC="gcc"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806 done
2807 done
2808
2809 fi
2810 fi
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814 echo "${ECHO_T}$ac_ct_CC" >&6
2815 else
2816 echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2818 fi
2819
2820 CC=$ac_ct_CC
2821 else
2822 CC="$ac_cv_prog_CC"
2823 fi
2824
2825 if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2828 set dummy ${ac_tool_prefix}cc; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC="${ac_tool_prefix}cc"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848 done
2849 done
2850
2851 fi
2852 fi
2853 CC=$ac_cv_prog_CC
2854 if test -n "$CC"; then
2855 echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6
2857 else
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2860 fi
2861
2862 fi
2863 if test -z "$ac_cv_prog_CC"; then
2864 ac_ct_CC=$CC
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 if test -n "$ac_ct_CC"; then
2873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_ac_ct_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886 done
2887 done
2888
2889 fi
2890 fi
2891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892 if test -n "$ac_ct_CC"; then
2893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2894 echo "${ECHO_T}$ac_ct_CC" >&6
2895 else
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2898 fi
2899
2900 CC=$ac_ct_CC
2901 else
2902 CC="$ac_cv_prog_CC"
2903 fi
2904
2905 fi
2906 if test -z "$CC"; then
2907 # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc; ac_word=$2
2909 echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2911 if test "${ac_cv_prog_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917 ac_prog_rejected=no
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926 ac_prog_rejected=yes
2927 continue
2928 fi
2929 ac_cv_prog_CC="cc"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935
2936 if test $ac_prog_rejected = yes; then
2937 # We found a bogon in the path, so make sure we never use it.
2938 set dummy $ac_cv_prog_CC
2939 shift
2940 if test $# != 0; then
2941 # We chose a different compiler from the bogus one.
2942 # However, it has the same basename, so the bogon will be chosen
2943 # first if we set CC to just the basename; use the full file name.
2944 shift
2945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946 fi
2947 fi
2948 fi
2949 fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952 echo "$as_me:$LINENO: result: $CC" >&5
2953 echo "${ECHO_T}$CC" >&6
2954 else
2955 echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2957 fi
2958
2959 fi
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 for ac_prog in cl
2963 do
2964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985 done
2986 done
2987
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992 echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6
2994 else
2995 echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6
2997 fi
2998
2999 test -n "$CC" && break
3000 done
3001 fi
3002 if test -z "$CC"; then
3003 ac_ct_CC=$CC
3004 for ac_prog in cl
3005 do
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_CC="$ac_prog"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029
3030 fi
3031 fi
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3035 echo "${ECHO_T}$ac_ct_CC" >&6
3036 else
3037 echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3039 fi
3040
3041 test -n "$ac_ct_CC" && break
3042 done
3043
3044 CC=$ac_ct_CC
3045 fi
3046
3047 fi
3048
3049
3050 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3051 See \`config.log' for more details." >&5
3052 echo "$as_me: error: no acceptable C compiler found in \$PATH
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3055
3056 # Provide some information about the compiler.
3057 echo "$as_me:$LINENO:" \
3058 "checking for C compiler version" >&5
3059 ac_compiler=`set X $ac_compile; echo $2`
3060 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3061 (eval $ac_compiler --version </dev/null >&5) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3066 (eval $ac_compiler -v </dev/null >&5) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }
3070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3071 (eval $ac_compiler -V </dev/null >&5) 2>&5
3072 ac_status=$?
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3075
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082
3083 int
3084 main ()
3085 {
3086
3087 ;
3088 return 0;
3089 }
3090 _ACEOF
3091 ac_clean_files_save=$ac_clean_files
3092 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3095 # of exeext.
3096 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3097 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3098 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3099 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3100 (eval $ac_link_default) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; then
3104 # Find the output, starting from the most likely. This scheme is
3105 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3106 # resort.
3107
3108 # Be careful to initialize this variable, since it used to be cached.
3109 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3110 ac_cv_exeext=
3111 # b.out is created by i960 compilers.
3112 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3113 do
3114 test -f "$ac_file" || continue
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3117 ;;
3118 conftest.$ac_ext )
3119 # This is the source file.
3120 ;;
3121 [ab].out )
3122 # We found the default executable, but exeext='' is most
3123 # certainly right.
3124 break;;
3125 *.* )
3126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 # FIXME: I believe we export ac_cv_exeext for Libtool,
3128 # but it would be cool to find out if it's true. Does anybody
3129 # maintain Libtool? --akim.
3130 export ac_cv_exeext
3131 break;;
3132 * )
3133 break;;
3134 esac
3135 done
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: C compiler cannot create executables
3143 See \`config.log' for more details." >&2;}
3144 { (exit 77); exit 77; }; }
3145 fi
3146
3147 ac_exeext=$ac_cv_exeext
3148 echo "$as_me:$LINENO: result: $ac_file" >&5
3149 echo "${ECHO_T}$ac_file" >&6
3150
3151 # Check the compiler produces executables we can run. If not, either
3152 # the compiler is broken, or we cross compile.
3153 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3154 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3155 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3156 # If not cross compiling, check that we can run a simple program.
3157 if test "$cross_compiling" != yes; then
3158 if { ac_try='./$ac_file'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 cross_compiling=no
3165 else
3166 if test "$cross_compiling" = maybe; then
3167 cross_compiling=yes
3168 else
3169 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3170 If you meant to cross compile, use \`--host'.
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: cannot run C compiled programs.
3173 If you meant to cross compile, use \`--host'.
3174 See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }
3176 fi
3177 fi
3178 fi
3179 echo "$as_me:$LINENO: result: yes" >&5
3180 echo "${ECHO_T}yes" >&6
3181
3182 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3183 ac_clean_files=$ac_clean_files_save
3184 # Check the compiler produces executables we can run. If not, either
3185 # the compiler is broken, or we cross compile.
3186 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3187 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3188 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3189 echo "${ECHO_T}$cross_compiling" >&6
3190
3191 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3192 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3194 (eval $ac_link) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; then
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe'), while it won't with
3201 # `rm'.
3202 for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 export ac_cv_exeext
3208 break;;
3209 * ) break;;
3210 esac
3211 done
3212 else
3213 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3214 See \`config.log' for more details." >&5
3215 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3216 See \`config.log' for more details." >&2;}
3217 { (exit 1); exit 1; }; }
3218 fi
3219
3220 rm -f conftest$ac_cv_exeext
3221 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3222 echo "${ECHO_T}$ac_cv_exeext" >&6
3223
3224 rm -f conftest.$ac_ext
3225 EXEEXT=$ac_cv_exeext
3226 ac_exeext=$EXEEXT
3227 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3228 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3229 if test "${ac_cv_objext+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238
3239 int
3240 main ()
3241 {
3242
3243 ;
3244 return 0;
3245 }
3246 _ACEOF
3247 rm -f conftest.o conftest.obj
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; then
3253 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3257 break;;
3258 esac
3259 done
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3265 See \`config.log' for more details." >&5
3266 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3267 See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; }
3269 fi
3270
3271 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3272 fi
3273 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3274 echo "${ECHO_T}$ac_cv_objext" >&6
3275 OBJEXT=$ac_cv_objext
3276 ac_objext=$OBJEXT
3277 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3278 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3279 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288
3289 int
3290 main ()
3291 {
3292 #ifndef __GNUC__
3293 choke me
3294 #endif
3295
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 rm -f conftest.$ac_objext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302 (eval $ac_compile) 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -z "$ac_c_werror_flag"
3310 || test ! -s conftest.err'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 (eval $ac_try) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_compiler_gnu=yes
3323 else
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 ac_compiler_gnu=no
3328 fi
3329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3331
3332 fi
3333 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3334 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3335 GCC=`test $ac_compiler_gnu = yes && echo yes`
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 CFLAGS="-g"
3339 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3340 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3341 if test "${ac_cv_prog_cc_g+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350
3351 int
3352 main ()
3353 {
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -z "$ac_c_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_cv_prog_cc_g=yes
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 ac_cv_prog_cc_g=no
3387 fi
3388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3391 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3392 if test "$ac_test_CFLAGS" = set; then
3393 CFLAGS=$ac_save_CFLAGS
3394 elif test $ac_cv_prog_cc_g = yes; then
3395 if test "$GCC" = yes; then
3396 CFLAGS="-g -O2"
3397 else
3398 CFLAGS="-g"
3399 fi
3400 else
3401 if test "$GCC" = yes; then
3402 CFLAGS="-O2"
3403 else
3404 CFLAGS=
3405 fi
3406 fi
3407 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3408 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3409 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 ac_cv_prog_cc_stdc=no
3413 ac_save_CC=$CC
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include <stdarg.h>
3421 #include <stdio.h>
3422 #include <sys/types.h>
3423 #include <sys/stat.h>
3424 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3425 struct buf { int x; };
3426 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3427 static char *e (p, i)
3428 char **p;
3429 int i;
3430 {
3431 return p[i];
3432 }
3433 static char *f (char * (*g) (char **, int), char **p, ...)
3434 {
3435 char *s;
3436 va_list v;
3437 va_start (v,p);
3438 s = g (p, va_arg (v,int));
3439 va_end (v);
3440 return s;
3441 }
3442
3443 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3444 function prototypes and stuff, but not '\xHH' hex character constants.
3445 These don't provoke an error unfortunately, instead are silently treated
3446 as 'x'. The following induces an error, until -std1 is added to get
3447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3448 array size at least. It's necessary to write '\x00'==0 to get something
3449 that's true only with -std1. */
3450 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3451
3452 int test (int i, double x);
3453 struct s1 {int (*f) (int a);};
3454 struct s2 {int (*f) (double a);};
3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456 int argc;
3457 char **argv;
3458 int
3459 main ()
3460 {
3461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 # Don't try gcc -ansi; that turns off useful extensions and
3467 # breaks some systems' header files.
3468 # AIX -qlanglvl=ansi
3469 # Ultrix and OSF/1 -std1
3470 # HP-UX 10.20 and later -Ae
3471 # HP-UX older versions -Aa -D_HPUX_SOURCE
3472 # SVR4 -Xc -D__EXTENSIONS__
3473 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3474 do
3475 CC="$ac_save_CC $ac_arg"
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } &&
3485 { ac_try='test -z "$ac_c_werror_flag"
3486 || test ! -s conftest.err'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; } &&
3492 { ac_try='test -s conftest.$ac_objext'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 (eval $ac_try) 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_prog_cc_stdc=$ac_arg
3499 break
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 fi
3505 rm -f conftest.err conftest.$ac_objext
3506 done
3507 rm -f conftest.$ac_ext conftest.$ac_objext
3508 CC=$ac_save_CC
3509
3510 fi
3511
3512 case "x$ac_cv_prog_cc_stdc" in
3513 x|xno)
3514 echo "$as_me:$LINENO: result: none needed" >&5
3515 echo "${ECHO_T}none needed" >&6 ;;
3516 *)
3517 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3518 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3519 CC="$CC $ac_cv_prog_cc_stdc" ;;
3520 esac
3521
3522 # Some people use a C++ compiler to compile C. Since we use `exit',
3523 # in C++ we need to declare it. In case someone uses the same compiler
3524 # for both compiling C and C++ we need to have the C++ compiler decide
3525 # the declaration of exit, since it's the most demanding environment.
3526 cat >conftest.$ac_ext <<_ACEOF
3527 #ifndef __cplusplus
3528 choke me
3529 #endif
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 for ac_declaration in \
3554 '' \
3555 'extern "C" void std::exit (int) throw (); using std::exit;' \
3556 'extern "C" void std::exit (int); using std::exit;' \
3557 'extern "C" void exit (int) throw ();' \
3558 'extern "C" void exit (int);' \
3559 'void exit (int);'
3560 do
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567 $ac_declaration
3568 #include <stdlib.h>
3569 int
3570 main ()
3571 {
3572 exit (42);
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 :
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 continue
3605 fi
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613 $ac_declaration
3614 int
3615 main ()
3616 {
3617 exit (42);
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 break
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 fi
3650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3651 done
3652 rm -f conftest*
3653 if test -n "$ac_declaration"; then
3654 echo '#ifdef __cplusplus' >>confdefs.h
3655 echo $ac_declaration >>confdefs.h
3656 echo '#endif' >>confdefs.h
3657 fi
3658
3659 else
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 fi
3664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670
3671
3672 # On Suns, sometimes $CPP names a directory.
3673 if test -n "$CPP" && test -d "$CPP"; then
3674 CPP=
3675 fi
3676
3677 #### Some systems specify a CPP to use unless we are using GCC.
3678 #### Now that we know whether we are using GCC, we can decide whether
3679 #### to use that one.
3680 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3681 then
3682 CPP="$NON_GNU_CPP"
3683 fi
3684
3685 #### Some systems specify a CC to use unless we are using GCC.
3686 #### Now that we know whether we are using GCC, we can decide whether
3687 #### to use that one.
3688 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3689 test x$cc_specified != xyes
3690 then
3691 CC="$NON_GNU_CC"
3692 fi
3693
3694 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3695 then
3696 CC="$CC $GCC_TEST_OPTIONS"
3697 fi
3698
3699 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3700 then
3701 CC="$CC $NON_GCC_TEST_OPTIONS"
3702 fi
3703
3704
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3711 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3712 # On Suns, sometimes $CPP names a directory.
3713 if test -n "$CPP" && test -d "$CPP"; then
3714 CPP=
3715 fi
3716 if test -z "$CPP"; then
3717 if test "${ac_cv_prog_CPP+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720 # Double quotes because CPP needs to be expanded
3721 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3722 do
3723 ac_preproc_ok=false
3724 for ac_c_preproc_warn_flag in '' yes
3725 do
3726 # Use a header file that comes with gcc, so configuring glibc
3727 # with a fresh cross-compiler works.
3728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729 # <limits.h> exists even on freestanding compilers.
3730 # On the NeXT, cc -E runs the code through the compiler's parser,
3731 # not just through cpp. "Syntax error" is here to catch this case.
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 #ifdef __STDC__
3739 # include <limits.h>
3740 #else
3741 # include <assert.h>
3742 #endif
3743 Syntax error
3744 _ACEOF
3745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } >/dev/null; then
3753 if test -s conftest.err; then
3754 ac_cpp_err=$ac_c_preproc_warn_flag
3755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3756 else
3757 ac_cpp_err=
3758 fi
3759 else
3760 ac_cpp_err=yes
3761 fi
3762 if test -z "$ac_cpp_err"; then
3763 :
3764 else
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3767
3768 # Broken: fails on valid input.
3769 continue
3770 fi
3771 rm -f conftest.err conftest.$ac_ext
3772
3773 # OK, works on sane cases. Now check whether non-existent headers
3774 # can be detected and how.
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 #include <ac_nonexistent.h>
3782 _ACEOF
3783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev/null; then
3791 if test -s conftest.err; then
3792 ac_cpp_err=$ac_c_preproc_warn_flag
3793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3794 else
3795 ac_cpp_err=
3796 fi
3797 else
3798 ac_cpp_err=yes
3799 fi
3800 if test -z "$ac_cpp_err"; then
3801 # Broken: success on invalid input.
3802 continue
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 # Passes both tests.
3808 ac_preproc_ok=:
3809 break
3810 fi
3811 rm -f conftest.err conftest.$ac_ext
3812
3813 done
3814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3815 rm -f conftest.err conftest.$ac_ext
3816 if $ac_preproc_ok; then
3817 break
3818 fi
3819
3820 done
3821 ac_cv_prog_CPP=$CPP
3822
3823 fi
3824 CPP=$ac_cv_prog_CPP
3825 else
3826 ac_cv_prog_CPP=$CPP
3827 fi
3828 echo "$as_me:$LINENO: result: $CPP" >&5
3829 echo "${ECHO_T}$CPP" >&6
3830 ac_preproc_ok=false
3831 for ac_c_preproc_warn_flag in '' yes
3832 do
3833 # Use a header file that comes with gcc, so configuring glibc
3834 # with a fresh cross-compiler works.
3835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3836 # <limits.h> exists even on freestanding compilers.
3837 # On the NeXT, cc -E runs the code through the compiler's parser,
3838 # not just through cpp. "Syntax error" is here to catch this case.
3839 cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h. */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 #ifdef __STDC__
3846 # include <limits.h>
3847 #else
3848 # include <assert.h>
3849 #endif
3850 Syntax error
3851 _ACEOF
3852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3854 ac_status=$?
3855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } >/dev/null; then
3860 if test -s conftest.err; then
3861 ac_cpp_err=$ac_c_preproc_warn_flag
3862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3863 else
3864 ac_cpp_err=
3865 fi
3866 else
3867 ac_cpp_err=yes
3868 fi
3869 if test -z "$ac_cpp_err"; then
3870 :
3871 else
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875 # Broken: fails on valid input.
3876 continue
3877 fi
3878 rm -f conftest.err conftest.$ac_ext
3879
3880 # OK, works on sane cases. Now check whether non-existent headers
3881 # can be detected and how.
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 #include <ac_nonexistent.h>
3889 _ACEOF
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3892 ac_status=$?
3893 grep -v '^ *+' conftest.er1 >conftest.err
3894 rm -f conftest.er1
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev/null; then
3898 if test -s conftest.err; then
3899 ac_cpp_err=$ac_c_preproc_warn_flag
3900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3901 else
3902 ac_cpp_err=
3903 fi
3904 else
3905 ac_cpp_err=yes
3906 fi
3907 if test -z "$ac_cpp_err"; then
3908 # Broken: success on invalid input.
3909 continue
3910 else
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914 # Passes both tests.
3915 ac_preproc_ok=:
3916 break
3917 fi
3918 rm -f conftest.err conftest.$ac_ext
3919
3920 done
3921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3922 rm -f conftest.err conftest.$ac_ext
3923 if $ac_preproc_ok; then
3924 :
3925 else
3926 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3927 See \`config.log' for more details." >&5
3928 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3929 See \`config.log' for more details." >&2;}
3930 { (exit 1); exit 1; }; }
3931 fi
3932
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938
3939
3940 echo "$as_me:$LINENO: checking for egrep" >&5
3941 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3942 if test "${ac_cv_prog_egrep+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3946 then ac_cv_prog_egrep='grep -E'
3947 else ac_cv_prog_egrep='egrep'
3948 fi
3949 fi
3950 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3951 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3952 EGREP=$ac_cv_prog_egrep
3953
3954
3955
3956 echo "$as_me:$LINENO: checking for AIX" >&5
3957 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 #ifdef _AIX
3965 yes
3966 #endif
3967
3968 _ACEOF
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 $EGREP "yes" >/dev/null 2>&1; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6
3973 cat >>confdefs.h <<\_ACEOF
3974 #define _ALL_SOURCE 1
3975 _ACEOF
3976
3977 else
3978 echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3980 fi
3981 rm -f conftest*
3982
3983
3984
3985 cat >>confdefs.h <<\_ACEOF
3986 #define _GNU_SOURCE 1
3987 _ACEOF
3988
3989
3990
3991 ### Use -Wno-pointer-sign if the compiler supports it
3992 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3993 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3994 SAVE_CFLAGS="$CFLAGS"
3995 CFLAGS="$CFLAGS -Wno-pointer-sign"
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4002
4003 int
4004 main ()
4005 {
4006
4007 ;
4008 return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.$ac_objext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try='test -z "$ac_c_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 has_option=yes
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038 has_option=no
4039 fi
4040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041 if test $has_option = yes; then
4042 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4043 fi
4044 echo "$as_me:$LINENO: result: $has_option" >&5
4045 echo "${ECHO_T}$has_option" >&6
4046 CFLAGS="$SAVE_CFLAGS"
4047 unset has_option
4048 unset SAVE_CFLAGS
4049
4050 #### Some other nice autoconf tests.
4051
4052 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4053 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4054 LN_S=$as_ln_s
4055 if test "$LN_S" = "ln -s"; then
4056 echo "$as_me:$LINENO: result: yes" >&5
4057 echo "${ECHO_T}yes" >&6
4058 else
4059 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4060 echo "${ECHO_T}no, using $LN_S" >&6
4061 fi
4062
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4069 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4070 # On Suns, sometimes $CPP names a directory.
4071 if test -n "$CPP" && test -d "$CPP"; then
4072 CPP=
4073 fi
4074 if test -z "$CPP"; then
4075 if test "${ac_cv_prog_CPP+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 # Double quotes because CPP needs to be expanded
4079 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4080 do
4081 ac_preproc_ok=false
4082 for ac_c_preproc_warn_flag in '' yes
4083 do
4084 # Use a header file that comes with gcc, so configuring glibc
4085 # with a fresh cross-compiler works.
4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4087 # <limits.h> exists even on freestanding compilers.
4088 # On the NeXT, cc -E runs the code through the compiler's parser,
4089 # not just through cpp. "Syntax error" is here to catch this case.
4090 cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h. */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4096 #ifdef __STDC__
4097 # include <limits.h>
4098 #else
4099 # include <assert.h>
4100 #endif
4101 Syntax error
4102 _ACEOF
4103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } >/dev/null; then
4111 if test -s conftest.err; then
4112 ac_cpp_err=$ac_c_preproc_warn_flag
4113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4114 else
4115 ac_cpp_err=
4116 fi
4117 else
4118 ac_cpp_err=yes
4119 fi
4120 if test -z "$ac_cpp_err"; then
4121 :
4122 else
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 # Broken: fails on valid input.
4127 continue
4128 fi
4129 rm -f conftest.err conftest.$ac_ext
4130
4131 # OK, works on sane cases. Now check whether non-existent headers
4132 # can be detected and how.
4133 cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h. */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 #include <ac_nonexistent.h>
4140 _ACEOF
4141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } >/dev/null; then
4149 if test -s conftest.err; then
4150 ac_cpp_err=$ac_c_preproc_warn_flag
4151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4152 else
4153 ac_cpp_err=
4154 fi
4155 else
4156 ac_cpp_err=yes
4157 fi
4158 if test -z "$ac_cpp_err"; then
4159 # Broken: success on invalid input.
4160 continue
4161 else
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 # Passes both tests.
4166 ac_preproc_ok=:
4167 break
4168 fi
4169 rm -f conftest.err conftest.$ac_ext
4170
4171 done
4172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4173 rm -f conftest.err conftest.$ac_ext
4174 if $ac_preproc_ok; then
4175 break
4176 fi
4177
4178 done
4179 ac_cv_prog_CPP=$CPP
4180
4181 fi
4182 CPP=$ac_cv_prog_CPP
4183 else
4184 ac_cv_prog_CPP=$CPP
4185 fi
4186 echo "$as_me:$LINENO: result: $CPP" >&5
4187 echo "${ECHO_T}$CPP" >&6
4188 ac_preproc_ok=false
4189 for ac_c_preproc_warn_flag in '' yes
4190 do
4191 # Use a header file that comes with gcc, so configuring glibc
4192 # with a fresh cross-compiler works.
4193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4194 # <limits.h> exists even on freestanding compilers.
4195 # On the NeXT, cc -E runs the code through the compiler's parser,
4196 # not just through cpp. "Syntax error" is here to catch this case.
4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h. */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203 #ifdef __STDC__
4204 # include <limits.h>
4205 #else
4206 # include <assert.h>
4207 #endif
4208 Syntax error
4209 _ACEOF
4210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } >/dev/null; then
4218 if test -s conftest.err; then
4219 ac_cpp_err=$ac_c_preproc_warn_flag
4220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4221 else
4222 ac_cpp_err=
4223 fi
4224 else
4225 ac_cpp_err=yes
4226 fi
4227 if test -z "$ac_cpp_err"; then
4228 :
4229 else
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233 # Broken: fails on valid input.
4234 continue
4235 fi
4236 rm -f conftest.err conftest.$ac_ext
4237
4238 # OK, works on sane cases. Now check whether non-existent headers
4239 # can be detected and how.
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h. */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 #include <ac_nonexistent.h>
4247 _ACEOF
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev/null; then
4256 if test -s conftest.err; then
4257 ac_cpp_err=$ac_c_preproc_warn_flag
4258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4259 else
4260 ac_cpp_err=
4261 fi
4262 else
4263 ac_cpp_err=yes
4264 fi
4265 if test -z "$ac_cpp_err"; then
4266 # Broken: success on invalid input.
4267 continue
4268 else
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4271
4272 # Passes both tests.
4273 ac_preproc_ok=:
4274 break
4275 fi
4276 rm -f conftest.err conftest.$ac_ext
4277
4278 done
4279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4280 rm -f conftest.err conftest.$ac_ext
4281 if $ac_preproc_ok; then
4282 :
4283 else
4284 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4285 See \`config.log' for more details." >&5
4286 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4287 See \`config.log' for more details." >&2;}
4288 { (exit 1); exit 1; }; }
4289 fi
4290
4291 ac_ext=c
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296
4297 # Find a good install program. We prefer a C program (faster),
4298 # so one script is as good as another. But avoid the broken or
4299 # incompatible versions:
4300 # SysV /etc/install, /usr/sbin/install
4301 # SunOS /usr/etc/install
4302 # IRIX /sbin/install
4303 # AIX /bin/install
4304 # AmigaOS /C/install, which installs bootblocks on floppy discs
4305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4308 # OS/2's system install, which has a completely different semantic
4309 # ./install, which can be erroneously created by make from ./install.sh.
4310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4312 if test -z "$INSTALL"; then
4313 if test "${ac_cv_path_install+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 # Account for people who put trailing slashes in PATH elements.
4322 case $as_dir/ in
4323 ./ | .// | /cC/* | \
4324 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4325 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4326 /usr/ucb/* ) ;;
4327 *)
4328 # OSF1 and SCO ODT 3.0 have their own names for install.
4329 # Don't use installbsd from OSF since it installs stuff as root
4330 # by default.
4331 for ac_prog in ginstall scoinst install; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4334 if test $ac_prog = install &&
4335 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4336 # AIX install. It has an incompatible calling convention.
4337 :
4338 elif test $ac_prog = install &&
4339 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4340 # program-specific install script used by HP pwplus--don't use.
4341 :
4342 else
4343 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4344 break 3
4345 fi
4346 fi
4347 done
4348 done
4349 ;;
4350 esac
4351 done
4352
4353
4354 fi
4355 if test "${ac_cv_path_install+set}" = set; then
4356 INSTALL=$ac_cv_path_install
4357 else
4358 # As a last resort, use the slow shell script. We don't cache a
4359 # path for INSTALL within a source directory, because that will
4360 # break other packages using the cache if that directory is
4361 # removed, or if the path is relative.
4362 INSTALL=$ac_install_sh
4363 fi
4364 fi
4365 echo "$as_me:$LINENO: result: $INSTALL" >&5
4366 echo "${ECHO_T}$INSTALL" >&6
4367
4368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4369 # It thinks the first close brace ends the variable substitution.
4370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4371
4372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4373
4374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4375
4376 if test "x$RANLIB" = x; then
4377 if test -n "$ac_tool_prefix"; then
4378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4380 echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4382 if test "${ac_cv_prog_RANLIB+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 if test -n "$RANLIB"; then
4386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399 done
4400 done
4401
4402 fi
4403 fi
4404 RANLIB=$ac_cv_prog_RANLIB
4405 if test -n "$RANLIB"; then
4406 echo "$as_me:$LINENO: result: $RANLIB" >&5
4407 echo "${ECHO_T}$RANLIB" >&6
4408 else
4409 echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4411 fi
4412
4413 fi
4414 if test -z "$ac_cv_prog_RANLIB"; then
4415 ac_ct_RANLIB=$RANLIB
4416 # Extract the first word of "ranlib", so it can be a program name with args.
4417 set dummy ranlib; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 if test -n "$ac_ct_RANLIB"; then
4424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_ac_ct_RANLIB="ranlib"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437 done
4438 done
4439
4440 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4441 fi
4442 fi
4443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4444 if test -n "$ac_ct_RANLIB"; then
4445 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4446 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4447 else
4448 echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4450 fi
4451
4452 RANLIB=$ac_ct_RANLIB
4453 else
4454 RANLIB="$ac_cv_prog_RANLIB"
4455 fi
4456
4457 fi
4458 # Extract the first word of "install-info", so it can be a program name with args.
4459 set dummy install-info; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465 case $INSTALL_INFO in
4466 [\\/]* | ?:[\\/]*)
4467 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4468 ;;
4469 *)
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481 done
4482 done
4483
4484 ;;
4485 esac
4486 fi
4487 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4488
4489 if test -n "$INSTALL_INFO"; then
4490 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4491 echo "${ECHO_T}$INSTALL_INFO" >&6
4492 else
4493 echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4495 fi
4496
4497 # Extract the first word of "install-info", so it can be a program name with args.
4498 set dummy install-info; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 case $INSTALL_INFO in
4505 [\\/]* | ?:[\\/]*)
4506 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4507 ;;
4508 *)
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in /usr/sbin
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520 done
4521 done
4522
4523 ;;
4524 esac
4525 fi
4526 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4527
4528 if test -n "$INSTALL_INFO"; then
4529 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4530 echo "${ECHO_T}$INSTALL_INFO" >&6
4531 else
4532 echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4534 fi
4535
4536 # Extract the first word of "install-info", so it can be a program name with args.
4537 set dummy install-info; ac_word=$2
4538 echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 case $INSTALL_INFO in
4544 [\\/]* | ?:[\\/]*)
4545 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4546 ;;
4547 *)
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in /sbin
4550 do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559 done
4560 done
4561
4562 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4563 ;;
4564 esac
4565 fi
4566 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4567
4568 if test -n "$INSTALL_INFO"; then
4569 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4570 echo "${ECHO_T}$INSTALL_INFO" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4574 fi
4575
4576 # Extract the first word of "gzip", so it can be a program name with args.
4577 set dummy gzip; ac_word=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 case $GZIP_PROG in
4584 [\\/]* | ?:[\\/]*)
4585 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4586 ;;
4587 *)
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599 done
4600 done
4601
4602 ;;
4603 esac
4604 fi
4605 GZIP_PROG=$ac_cv_path_GZIP_PROG
4606
4607 if test -n "$GZIP_PROG"; then
4608 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4609 echo "${ECHO_T}$GZIP_PROG" >&6
4610 else
4611 echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4613 fi
4614
4615
4616
4617 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4618 then
4619 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4620 fi
4621
4622 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4623 then
4624 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4625 fi
4626
4627
4628 late_LDFLAGS=$LDFLAGS
4629 if test "$GCC" = yes; then
4630 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4631 else
4632 LDFLAGS="$LDFLAGS -znocombreloc"
4633 fi
4634
4635 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4636 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4638 main(){return 0;}
4639 _ACEOF
4640 rm -f conftest.$ac_objext conftest$ac_exeext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -z "$ac_c_werror_flag"
4650 || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 echo "$as_me:$LINENO: result: yes" >&5
4663 echo "${ECHO_T}yes" >&6
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4667
4668 LDFLAGS=$late_LDFLAGS
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4671 fi
4672 rm -f conftest.err conftest.$ac_objext \
4673 conftest$ac_exeext conftest.$ac_ext
4674
4675 #### Extract some information from the operating system and machine files.
4676
4677 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4678 - which libraries the lib-src programs will want, and
4679 - whether the GNU malloc routines are usable..." >&5
4680 echo "$as_me: checking the machine- and system-dependent files to find out
4681 - which libraries the lib-src programs will want, and
4682 - whether the GNU malloc routines are usable..." >&6;}
4683
4684 ### First figure out CFLAGS (which we use for running the compiler here)
4685 ### and REAL_CFLAGS (which we use for real compilation).
4686 ### The two are the same except on a few systems, where they are made
4687 ### different to work around various lossages. For example,
4688 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4689 ### as implying static linking.
4690
4691 ### If the CFLAGS env var is specified, we use that value
4692 ### instead of the default.
4693
4694 ### It's not important that this name contain the PID; you can't run
4695 ### two configures in the same directory and have anything work
4696 ### anyway.
4697 tempcname="conftest.c"
4698
4699 echo '
4700 #include "'${srcdir}'/src/'${opsysfile}'"
4701 #include "'${srcdir}'/src/'${machfile}'"
4702 #ifndef LIBS_MACHINE
4703 #define LIBS_MACHINE
4704 #endif
4705 #ifndef LIBS_SYSTEM
4706 #define LIBS_SYSTEM
4707 #endif
4708 #ifndef C_SWITCH_SYSTEM
4709 #define C_SWITCH_SYSTEM
4710 #endif
4711 #ifndef C_SWITCH_MACHINE
4712 #define C_SWITCH_MACHINE
4713 #endif
4714 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4715 configure___ c_switch_system=C_SWITCH_SYSTEM
4716 configure___ c_switch_machine=C_SWITCH_MACHINE
4717
4718 #ifndef LIB_X11_LIB
4719 #define LIB_X11_LIB -lX11
4720 #endif
4721
4722 #ifndef LIBX11_MACHINE
4723 #define LIBX11_MACHINE
4724 #endif
4725
4726 #ifndef LIBX11_SYSTEM
4727 #define LIBX11_SYSTEM
4728 #endif
4729 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4730
4731 #ifdef UNEXEC
4732 configure___ unexec=UNEXEC
4733 #else
4734 configure___ unexec=unexec.o
4735 #endif
4736
4737 #ifdef SYSTEM_MALLOC
4738 configure___ system_malloc=yes
4739 #else
4740 configure___ system_malloc=no
4741 #endif
4742
4743 #ifdef USE_MMAP_FOR_BUFFERS
4744 configure___ use_mmap_for_buffers=yes
4745 #else
4746 configure___ use_mmap_for_buffers=no
4747 #endif
4748
4749 #ifndef C_DEBUG_SWITCH
4750 #define C_DEBUG_SWITCH -g
4751 #endif
4752
4753 #ifndef C_OPTIMIZE_SWITCH
4754 #ifdef __GNUC__
4755 #define C_OPTIMIZE_SWITCH -O2
4756 #else
4757 #define C_OPTIMIZE_SWITCH -O
4758 #endif
4759 #endif
4760
4761 #ifndef C_WARNINGS_SWITCH
4762 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4763 #endif
4764
4765 #ifndef LD_SWITCH_MACHINE
4766 #define LD_SWITCH_MACHINE
4767 #endif
4768
4769 #ifndef LD_SWITCH_SYSTEM
4770 #define LD_SWITCH_SYSTEM
4771 #endif
4772
4773 #ifndef LD_SWITCH_X_SITE_AUX
4774 #define LD_SWITCH_X_SITE_AUX
4775 #endif
4776
4777 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4778 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4779
4780 #ifdef THIS_IS_CONFIGURE
4781
4782 /* Get the CFLAGS for tests in configure. */
4783 #ifdef __GNUC__
4784 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4785 #else
4786 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4787 #endif
4788
4789 #else /* not THIS_IS_CONFIGURE */
4790
4791 /* Get the CFLAGS for real compilation. */
4792 #ifdef __GNUC__
4793 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4794 #else
4795 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4796 #endif
4797
4798 #endif /* not THIS_IS_CONFIGURE */
4799 ' > ${tempcname}
4800
4801 # The value of CPP is a quoted variable reference, so we need to do this
4802 # to get its actual value...
4803 CPP=`eval "echo $CPP"`
4804 eval `${CPP} -Isrc ${tempcname} \
4805 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4806 if test "x$SPECIFIED_CFLAGS" = x; then
4807 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4808 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4809 else
4810 REAL_CFLAGS="$CFLAGS"
4811 fi
4812 rm ${tempcname}
4813
4814 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4815
4816 ### Make sure subsequent tests use flags consistent with the build flags.
4817
4818 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4819 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4820 else
4821 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4822 fi
4823
4824
4825
4826 # Check whether --enable-largefile or --disable-largefile was given.
4827 if test "${enable_largefile+set}" = set; then
4828 enableval="$enable_largefile"
4829
4830 fi;
4831 if test "$enable_largefile" != no; then
4832
4833 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 ac_cv_sys_largefile_CC=no
4839 if test "$GCC" != yes; then
4840 ac_save_CC=$CC
4841 while :; do
4842 # IRIX 6.2 and later do not support large files by default,
4843 # so use the C compiler's -n32 option if that helps.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #include <sys/types.h>
4851 /* Check that off_t can represent 2**63 - 1 correctly.
4852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4853 since some C++ compilers masquerading as C compilers
4854 incorrectly reject 9223372036854775807. */
4855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4857 && LARGE_OFF_T % 2147483647 == 1)
4858 ? 1 : -1];
4859 int
4860 main ()
4861 {
4862
4863 ;
4864 return 0;
4865 }
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -z "$ac_c_werror_flag"
4877 || test ! -s conftest.err'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 (eval $ac_try) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; } &&
4883 { ac_try='test -s conftest.$ac_objext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 break
4890 else
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894 fi
4895 rm -f conftest.err conftest.$ac_objext
4896 CC="$CC -n32"
4897 rm -f conftest.$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_cv_sys_largefile_CC=' -n32'; break
4920 else
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 fi
4925 rm -f conftest.err conftest.$ac_objext
4926 break
4927 done
4928 CC=$ac_save_CC
4929 rm -f conftest.$ac_ext
4930 fi
4931 fi
4932 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4933 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4934 if test "$ac_cv_sys_largefile_CC" != no; then
4935 CC=$CC$ac_cv_sys_largefile_CC
4936 fi
4937
4938 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4939 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4940 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 while :; do
4944 ac_cv_sys_file_offset_bits=no
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h. */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 #include <sys/types.h>
4952 /* Check that off_t can represent 2**63 - 1 correctly.
4953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4954 since some C++ compilers masquerading as C compilers
4955 incorrectly reject 9223372036854775807. */
4956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4958 && LARGE_OFF_T % 2147483647 == 1)
4959 ? 1 : -1];
4960 int
4961 main ()
4962 {
4963
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 rm -f conftest.$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970 (eval $ac_compile) 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest.$ac_objext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 break
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4994
4995 fi
4996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #define _FILE_OFFSET_BITS 64
5004 #include <sys/types.h>
5005 /* Check that off_t can represent 2**63 - 1 correctly.
5006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5007 since some C++ compilers masquerading as C compilers
5008 incorrectly reject 9223372036854775807. */
5009 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5011 && LARGE_OFF_T % 2147483647 == 1)
5012 ? 1 : -1];
5013 int
5014 main ()
5015 {
5016
5017 ;
5018 return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_sys_file_offset_bits=64; break
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 fi
5049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5050 break
5051 done
5052 fi
5053 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5054 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5055 if test "$ac_cv_sys_file_offset_bits" != no; then
5056
5057 cat >>confdefs.h <<_ACEOF
5058 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5059 _ACEOF
5060
5061 fi
5062 rm -f conftest*
5063 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5064 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5065 if test "${ac_cv_sys_large_files+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 while :; do
5069 ac_cv_sys_large_files=no
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <sys/types.h>
5077 /* Check that off_t can represent 2**63 - 1 correctly.
5078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5079 since some C++ compilers masquerading as C compilers
5080 incorrectly reject 9223372036854775807. */
5081 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5083 && LARGE_OFF_T % 2147483647 == 1)
5084 ? 1 : -1];
5085 int
5086 main ()
5087 {
5088
5089 ;
5090 return 0;
5091 }
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 break
5116 else
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5119
5120 fi
5121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #define _LARGE_FILES 1
5129 #include <sys/types.h>
5130 /* Check that off_t can represent 2**63 - 1 correctly.
5131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5132 since some C++ compilers masquerading as C compilers
5133 incorrectly reject 9223372036854775807. */
5134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5136 && LARGE_OFF_T % 2147483647 == 1)
5137 ? 1 : -1];
5138 int
5139 main ()
5140 {
5141
5142 ;
5143 return 0;
5144 }
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>conftest.er1
5149 ac_status=$?
5150 grep -v '^ *+' conftest.er1 >conftest.err
5151 rm -f conftest.er1
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -z "$ac_c_werror_flag"
5156 || test ! -s conftest.err'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; } &&
5162 { ac_try='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 (eval $ac_try) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_cv_sys_large_files=1; break
5169 else
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 fi
5174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5175 break
5176 done
5177 fi
5178 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5179 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5180 if test "$ac_cv_sys_large_files" != no; then
5181
5182 cat >>confdefs.h <<_ACEOF
5183 #define _LARGE_FILES $ac_cv_sys_large_files
5184 _ACEOF
5185
5186 fi
5187 rm -f conftest*
5188 fi
5189
5190
5191
5192
5193
5194
5195 if test "${with_sound}" != "no"; then
5196 # Sound support for GNU/Linux and the free BSDs.
5197 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5198 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5199 if test "${ac_cv_header_stdc+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202 cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h. */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 #include <stdlib.h>
5209 #include <stdarg.h>
5210 #include <string.h>
5211 #include <float.h>
5212
5213 int
5214 main ()
5215 {
5216
5217 ;
5218 return 0;
5219 }
5220 _ACEOF
5221 rm -f conftest.$ac_objext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223 (eval $ac_compile) 2>conftest.er1
5224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -z "$ac_c_werror_flag"
5231 || test ! -s conftest.err'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; } &&
5237 { ac_try='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 ac_cv_header_stdc=yes
5244 else
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248 ac_cv_header_stdc=no
5249 fi
5250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5251
5252 if test $ac_cv_header_stdc = yes; then
5253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5254 cat >conftest.$ac_ext <<_ACEOF
5255 /* confdefs.h. */
5256 _ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5260 #include <string.h>
5261
5262 _ACEOF
5263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5264 $EGREP "memchr" >/dev/null 2>&1; then
5265 :
5266 else
5267 ac_cv_header_stdc=no
5268 fi
5269 rm -f conftest*
5270
5271 fi
5272
5273 if test $ac_cv_header_stdc = yes; then
5274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <stdlib.h>
5282
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "free" >/dev/null 2>&1; then
5286 :
5287 else
5288 ac_cv_header_stdc=no
5289 fi
5290 rm -f conftest*
5291
5292 fi
5293
5294 if test $ac_cv_header_stdc = yes; then
5295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5296 if test "$cross_compiling" = yes; then
5297 :
5298 else
5299 cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h. */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 #include <ctype.h>
5306 #if ((' ' & 0x0FF) == 0x020)
5307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5309 #else
5310 # define ISLOWER(c) \
5311 (('a' <= (c) && (c) <= 'i') \
5312 || ('j' <= (c) && (c) <= 'r') \
5313 || ('s' <= (c) && (c) <= 'z'))
5314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5315 #endif
5316
5317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5318 int
5319 main ()
5320 {
5321 int i;
5322 for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i))
5324 || toupper (i) != TOUPPER (i))
5325 exit(2);
5326 exit (0);
5327 }
5328 _ACEOF
5329 rm -f conftest$ac_exeext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5331 (eval $ac_link) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 :
5341 else
5342 echo "$as_me: program exited with status $ac_status" >&5
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 ( exit $ac_status )
5347 ac_cv_header_stdc=no
5348 fi
5349 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5350 fi
5351 fi
5352 fi
5353 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5354 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5355 if test $ac_cv_header_stdc = yes; then
5356
5357 cat >>confdefs.h <<\_ACEOF
5358 #define STDC_HEADERS 1
5359 _ACEOF
5360
5361 fi
5362
5363 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5374 inttypes.h stdint.h unistd.h
5375 do
5376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5377 echo "$as_me:$LINENO: checking for $ac_header" >&5
5378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382 cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5389
5390 #include <$ac_header>
5391 _ACEOF
5392 rm -f conftest.$ac_objext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394 (eval $ac_compile) 2>conftest.er1
5395 ac_status=$?
5396 grep -v '^ *+' conftest.er1 >conftest.err
5397 rm -f conftest.er1
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -z "$ac_c_werror_flag"
5402 || test ! -s conftest.err'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; } &&
5408 { ac_try='test -s conftest.$ac_objext'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 eval "$as_ac_Header=yes"
5415 else
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5418
5419 eval "$as_ac_Header=no"
5420 fi
5421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5422 fi
5423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5426 cat >>confdefs.h <<_ACEOF
5427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5428 _ACEOF
5429
5430 fi
5431
5432 done
5433
5434
5435
5436
5437
5438 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5439 do
5440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5442 echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 fi
5447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5449 else
5450 # Is the header compilable?
5451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 $ac_includes_default
5460 #include <$ac_header>
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -z "$ac_c_werror_flag"
5472 || test ! -s conftest.err'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 (eval $ac_try) 2>&5
5481 ac_status=$?
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 ac_header_compiler=yes
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 ac_header_compiler=no
5490 fi
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5493 echo "${ECHO_T}$ac_header_compiler" >&6
5494
5495 # Is the header present?
5496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 #include <$ac_header>
5505 _ACEOF
5506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } >/dev/null; then
5514 if test -s conftest.err; then
5515 ac_cpp_err=$ac_c_preproc_warn_flag
5516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5517 else
5518 ac_cpp_err=
5519 fi
5520 else
5521 ac_cpp_err=yes
5522 fi
5523 if test -z "$ac_cpp_err"; then
5524 ac_header_preproc=yes
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 ac_header_preproc=no
5530 fi
5531 rm -f conftest.err conftest.$ac_ext
5532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5533 echo "${ECHO_T}$ac_header_preproc" >&6
5534
5535 # So? What about this header?
5536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5537 yes:no: )
5538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5542 ac_header_preproc=yes
5543 ;;
5544 no:yes:* )
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5557 (
5558 cat <<\_ASBOX
5559 ## ------------------------------------------ ##
5560 ## Report this to the AC_PACKAGE_NAME lists. ##
5561 ## ------------------------------------------ ##
5562 _ASBOX
5563 ) |
5564 sed "s/^/$as_me: WARNING: /" >&2
5565 ;;
5566 esac
5567 echo "$as_me:$LINENO: checking for $ac_header" >&5
5568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572 eval "$as_ac_Header=\$ac_header_preproc"
5573 fi
5574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5576
5577 fi
5578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5579 cat >>confdefs.h <<_ACEOF
5580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5581 _ACEOF
5582
5583 fi
5584
5585 done
5586
5587 # Emulation library used on NetBSD.
5588 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5589 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5590 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593 ac_check_lib_save_LIBS=$LIBS
5594 LIBS="-lossaudio $LIBS"
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 #ifdef __cplusplus
5604 extern "C"
5605 #endif
5606 /* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5608 char _oss_ioctl ();
5609 int
5610 main ()
5611 {
5612 _oss_ioctl ();
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext conftest$ac_exeext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5619 (eval $ac_link) 2>conftest.er1
5620 ac_status=$?
5621 grep -v '^ *+' conftest.er1 >conftest.err
5622 rm -f conftest.er1
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try='test -z "$ac_c_werror_flag"
5627 || test ! -s conftest.err'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try='test -s conftest$ac_exeext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_cv_lib_ossaudio__oss_ioctl=yes
5640 else
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 ac_cv_lib_ossaudio__oss_ioctl=no
5645 fi
5646 rm -f conftest.err conftest.$ac_objext \
5647 conftest$ac_exeext conftest.$ac_ext
5648 LIBS=$ac_check_lib_save_LIBS
5649 fi
5650 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5651 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5652 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5653 LIBSOUND=-lossaudio
5654 else
5655 LIBSOUND=
5656 fi
5657
5658
5659
5660 ALSA_REQUIRED=1.0.0
5661 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5662 if test "X${with_pkg_config_prog}" != X; then
5663 PKG_CONFIG="${with_pkg_config_prog}"
5664 fi
5665
5666 succeeded=no
5667
5668 if test -z "$PKG_CONFIG"; then
5669 # Extract the first word of "pkg-config", so it can be a program name with args.
5670 set dummy pkg-config; ac_word=$2
5671 echo "$as_me:$LINENO: checking for $ac_word" >&5
5672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5673 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 case $PKG_CONFIG in
5677 [\\/]* | ?:[\\/]*)
5678 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5679 ;;
5680 *)
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692 done
5693 done
5694
5695 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5696 ;;
5697 esac
5698 fi
5699 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5700
5701 if test -n "$PKG_CONFIG"; then
5702 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5703 echo "${ECHO_T}$PKG_CONFIG" >&6
5704 else
5705 echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5707 fi
5708
5709 fi
5710
5711 if test "$PKG_CONFIG" = "no" ; then
5712 HAVE_ALSA=no
5713 else
5714 PKG_CONFIG_MIN_VERSION=0.9.0
5715 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5716 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5717 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5718
5719 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5720 echo "$as_me:$LINENO: result: yes" >&5
5721 echo "${ECHO_T}yes" >&6
5722 succeeded=yes
5723
5724 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5725 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5726 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5727 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5728 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5729
5730 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5731 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5732 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5733 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5734 echo "${ECHO_T}$ALSA_LIBS" >&6
5735 else
5736 echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5738 ALSA_CFLAGS=""
5739 ALSA_LIBS=""
5740 ## If we have a custom action on failure, don't print errors, but
5741 ## do set a variable so people can do so.
5742 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5743
5744 fi
5745
5746
5747
5748 else
5749 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5750 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5751 fi
5752 fi
5753
5754 if test $succeeded = yes; then
5755 HAVE_ALSA=yes
5756 else
5757 HAVE_ALSA=no
5758 fi
5759
5760 if test $HAVE_ALSA = yes; then
5761 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5762 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5763
5764 cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_ALSA 1
5766 _ACEOF
5767
5768 fi
5769
5770 fi
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5798 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5799 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5800 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5801 sys/utsname.h pwd.h
5802 do
5803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5805 echo "$as_me:$LINENO: checking for $ac_header" >&5
5806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 fi
5810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5812 else
5813 # Is the header compilable?
5814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5823 #include <$ac_header>
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_header_compiler=yes
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ac_header_compiler=no
5853 fi
5854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5856 echo "${ECHO_T}$ac_header_compiler" >&6
5857
5858 # Is the header present?
5859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5861 cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h. */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 #include <$ac_header>
5868 _ACEOF
5869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } >/dev/null; then
5877 if test -s conftest.err; then
5878 ac_cpp_err=$ac_c_preproc_warn_flag
5879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5880 else
5881 ac_cpp_err=
5882 fi
5883 else
5884 ac_cpp_err=yes
5885 fi
5886 if test -z "$ac_cpp_err"; then
5887 ac_header_preproc=yes
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 ac_header_preproc=no
5893 fi
5894 rm -f conftest.err conftest.$ac_ext
5895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5896 echo "${ECHO_T}$ac_header_preproc" >&6
5897
5898 # So? What about this header?
5899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5900 yes:no: )
5901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5905 ac_header_preproc=yes
5906 ;;
5907 no:yes:* )
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5920 (
5921 cat <<\_ASBOX
5922 ## ------------------------------------------ ##
5923 ## Report this to the AC_PACKAGE_NAME lists. ##
5924 ## ------------------------------------------ ##
5925 _ASBOX
5926 ) |
5927 sed "s/^/$as_me: WARNING: /" >&2
5928 ;;
5929 esac
5930 echo "$as_me:$LINENO: checking for $ac_header" >&5
5931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935 eval "$as_ac_Header=\$ac_header_preproc"
5936 fi
5937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5939
5940 fi
5941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5942 cat >>confdefs.h <<_ACEOF
5943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5944 _ACEOF
5945
5946 fi
5947
5948 done
5949
5950
5951 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5952 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <sys/personality.h>
5960 int
5961 main ()
5962 {
5963 personality (PER_LINUX32)
5964 ;
5965 return 0;
5966 }
5967 _ACEOF
5968 rm -f conftest.$ac_objext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970 (eval $ac_compile) 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -z "$ac_c_werror_flag"
5978 || test ! -s conftest.err'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; } &&
5984 { ac_try='test -s conftest.$ac_objext'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5990 emacs_cv_personality_linux32=yes
5991 else
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5994
5995 emacs_cv_personality_linux32=no
5996 fi
5997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5998 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5999 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
6000
6001 if test $emacs_cv_personality_linux32 = yes; then
6002
6003 cat >>confdefs.h <<\_ACEOF
6004 #define HAVE_PERSONALITY_LINUX32 1
6005 _ACEOF
6006
6007 fi
6008
6009
6010 for ac_header in term.h
6011 do
6012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <$ac_header>
6025 _ACEOF
6026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } >/dev/null; then
6034 if test -s conftest.err; then
6035 ac_cpp_err=$ac_c_preproc_warn_flag
6036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6037 else
6038 ac_cpp_err=
6039 fi
6040 else
6041 ac_cpp_err=yes
6042 fi
6043 if test -z "$ac_cpp_err"; then
6044 eval "$as_ac_Header=yes"
6045 else
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6048
6049 eval "$as_ac_Header=no"
6050 fi
6051 rm -f conftest.err conftest.$ac_ext
6052 fi
6053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6056 cat >>confdefs.h <<_ACEOF
6057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058 _ACEOF
6059
6060 fi
6061
6062 done
6063
6064 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6065 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6066 if test "${ac_cv_header_stdc+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069 cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 #include <stdlib.h>
6076 #include <stdarg.h>
6077 #include <string.h>
6078 #include <float.h>
6079
6080 int
6081 main ()
6082 {
6083
6084 ;
6085 return 0;
6086 }
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090 (eval $ac_compile) 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try='test -z "$ac_c_werror_flag"
6098 || test ! -s conftest.err'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; } &&
6104 { ac_try='test -s conftest.$ac_objext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_cv_header_stdc=yes
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 ac_cv_header_stdc=no
6116 fi
6117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6118
6119 if test $ac_cv_header_stdc = yes; then
6120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 #include <string.h>
6128
6129 _ACEOF
6130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131 $EGREP "memchr" >/dev/null 2>&1; then
6132 :
6133 else
6134 ac_cv_header_stdc=no
6135 fi
6136 rm -f conftest*
6137
6138 fi
6139
6140 if test $ac_cv_header_stdc = yes; then
6141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 #include <stdlib.h>
6149
6150 _ACEOF
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152 $EGREP "free" >/dev/null 2>&1; then
6153 :
6154 else
6155 ac_cv_header_stdc=no
6156 fi
6157 rm -f conftest*
6158
6159 fi
6160
6161 if test $ac_cv_header_stdc = yes; then
6162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6163 if test "$cross_compiling" = yes; then
6164 :
6165 else
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #include <ctype.h>
6173 #if ((' ' & 0x0FF) == 0x020)
6174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6176 #else
6177 # define ISLOWER(c) \
6178 (('a' <= (c) && (c) <= 'i') \
6179 || ('j' <= (c) && (c) <= 'r') \
6180 || ('s' <= (c) && (c) <= 'z'))
6181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6182 #endif
6183
6184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6185 int
6186 main ()
6187 {
6188 int i;
6189 for (i = 0; i < 256; i++)
6190 if (XOR (islower (i), ISLOWER (i))
6191 || toupper (i) != TOUPPER (i))
6192 exit(2);
6193 exit (0);
6194 }
6195 _ACEOF
6196 rm -f conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 (eval $ac_try) 2>&5
6204 ac_status=$?
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
6207 :
6208 else
6209 echo "$as_me: program exited with status $ac_status" >&5
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 ( exit $ac_status )
6214 ac_cv_header_stdc=no
6215 fi
6216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6217 fi
6218 fi
6219 fi
6220 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6221 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6222 if test $ac_cv_header_stdc = yes; then
6223
6224 cat >>confdefs.h <<\_ACEOF
6225 #define STDC_HEADERS 1
6226 _ACEOF
6227
6228 fi
6229
6230 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6231 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6232 if test "${ac_cv_header_time+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 #include <sys/types.h>
6242 #include <sys/time.h>
6243 #include <time.h>
6244
6245 int
6246 main ()
6247 {
6248 if ((struct tm *) 0)
6249 return 0;
6250 ;
6251 return 0;
6252 }
6253 _ACEOF
6254 rm -f conftest.$ac_objext
6255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256 (eval $ac_compile) 2>conftest.er1
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try='test -z "$ac_c_werror_flag"
6264 || test ! -s conftest.err'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; } &&
6270 { ac_try='test -s conftest.$ac_objext'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_header_time=yes
6277 else
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281 ac_cv_header_time=no
6282 fi
6283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6284 fi
6285 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6286 echo "${ECHO_T}$ac_cv_header_time" >&6
6287 if test $ac_cv_header_time = yes; then
6288
6289 cat >>confdefs.h <<\_ACEOF
6290 #define TIME_WITH_SYS_TIME 1
6291 _ACEOF
6292
6293 fi
6294
6295 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6296 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6297 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 $ac_includes_default
6307 int
6308 main ()
6309 {
6310 #ifndef sys_siglist
6311 char *p = (char *) sys_siglist;
6312 #endif
6313
6314 ;
6315 return 0;
6316 }
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -z "$ac_c_werror_flag"
6328 || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest.$ac_objext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_cv_have_decl_sys_siglist=yes
6341 else
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 ac_cv_have_decl_sys_siglist=no
6346 fi
6347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6350 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6351 if test $ac_cv_have_decl_sys_siglist = yes; then
6352
6353 cat >>confdefs.h <<_ACEOF
6354 #define HAVE_DECL_SYS_SIGLIST 1
6355 _ACEOF
6356
6357
6358 else
6359 cat >>confdefs.h <<_ACEOF
6360 #define HAVE_DECL_SYS_SIGLIST 0
6361 _ACEOF
6362
6363
6364 fi
6365
6366
6367 if test $ac_cv_have_decl_sys_siglist != yes; then
6368 # For Tru64, at least:
6369 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6370 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6371 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 $ac_includes_default
6381 int
6382 main ()
6383 {
6384 #ifndef __sys_siglist
6385 char *p = (char *) __sys_siglist;
6386 #endif
6387
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_have_decl___sys_siglist=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_cv_have_decl___sys_siglist=no
6420 fi
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6422 fi
6423 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6424 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6425 if test $ac_cv_have_decl___sys_siglist = yes; then
6426
6427 cat >>confdefs.h <<_ACEOF
6428 #define HAVE_DECL___SYS_SIGLIST 1
6429 _ACEOF
6430
6431
6432 else
6433 cat >>confdefs.h <<_ACEOF
6434 #define HAVE_DECL___SYS_SIGLIST 0
6435 _ACEOF
6436
6437
6438 fi
6439
6440
6441 if test $ac_cv_have_decl___sys_siglist = yes; then
6442
6443 cat >>confdefs.h <<\_ACEOF
6444 #define sys_siglist __sys_siglist
6445 _ACEOF
6446
6447 fi
6448 fi
6449 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6450 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6451 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 #include <sys/types.h>
6461 #include <sys/wait.h>
6462 #ifndef WEXITSTATUS
6463 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6464 #endif
6465 #ifndef WIFEXITED
6466 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6467 #endif
6468
6469 int
6470 main ()
6471 {
6472 int s;
6473 wait (&s);
6474 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag"
6489 || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try='test -s conftest.$ac_objext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_header_sys_wait_h=yes
6502 else
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 ac_cv_header_sys_wait_h=no
6507 fi
6508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509 fi
6510 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6511 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6512 if test $ac_cv_header_sys_wait_h = yes; then
6513
6514 cat >>confdefs.h <<\_ACEOF
6515 #define HAVE_SYS_WAIT_H 1
6516 _ACEOF
6517
6518 fi
6519
6520
6521 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6522 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6523 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 #ifdef TIME_WITH_SYS_TIME
6533 #include <sys/time.h>
6534 #include <time.h>
6535 #else
6536 #ifdef HAVE_SYS_TIME_H
6537 #include <sys/time.h>
6538 #else
6539 #include <time.h>
6540 #endif
6541 #endif
6542 #ifdef HAVE_UTIME_H
6543 #include <utime.h>
6544 #endif
6545 int
6546 main ()
6547 {
6548 static struct utimbuf x; x.actime = x.modtime;
6549 ;
6550 return 0;
6551 }
6552 _ACEOF
6553 rm -f conftest.$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try='test -s conftest.$ac_objext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 emacs_cv_struct_utimbuf=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 emacs_cv_struct_utimbuf=no
6581 fi
6582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6583 fi
6584 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6585 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6586 if test $emacs_cv_struct_utimbuf = yes; then
6587
6588 cat >>confdefs.h <<\_ACEOF
6589 #define HAVE_STRUCT_UTIMBUF 1
6590 _ACEOF
6591
6592 fi
6593
6594 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6595 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6596 if test "${ac_cv_type_signal+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h. */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 #include <sys/types.h>
6606 #include <signal.h>
6607 #ifdef signal
6608 # undef signal
6609 #endif
6610 #ifdef __cplusplus
6611 extern "C" void (*signal (int, void (*)(int)))(int);
6612 #else
6613 void (*signal ()) ();
6614 #endif
6615
6616 int
6617 main ()
6618 {
6619 int i;
6620 ;
6621 return 0;
6622 }
6623 _ACEOF
6624 rm -f conftest.$ac_objext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626 (eval $ac_compile) 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try='test -z "$ac_c_werror_flag"
6634 || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_type_signal=void
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ac_cv_type_signal=int
6652 fi
6653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6654 fi
6655 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6656 echo "${ECHO_T}$ac_cv_type_signal" >&6
6657
6658 cat >>confdefs.h <<_ACEOF
6659 #define RETSIGTYPE $ac_cv_type_signal
6660 _ACEOF
6661
6662
6663
6664 echo "$as_me:$LINENO: checking for speed_t" >&5
6665 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6666 if test "${emacs_cv_speed_t+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #include <termios.h>
6676 int
6677 main ()
6678 {
6679 speed_t x = 1;
6680 ;
6681 return 0;
6682 }
6683 _ACEOF
6684 rm -f conftest.$ac_objext
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686 (eval $ac_compile) 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -z "$ac_c_werror_flag"
6694 || test ! -s conftest.err'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; } &&
6700 { ac_try='test -s conftest.$ac_objext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 (eval $ac_try) 2>&5
6703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 emacs_cv_speed_t=yes
6707 else
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711 emacs_cv_speed_t=no
6712 fi
6713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6714 fi
6715 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6716 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6717 if test $emacs_cv_speed_t = yes; then
6718
6719 cat >>confdefs.h <<\_ACEOF
6720 #define HAVE_SPEED_T 1
6721 _ACEOF
6722
6723 fi
6724
6725 echo "$as_me:$LINENO: checking for struct timeval" >&5
6726 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6727 if test "${emacs_cv_struct_timeval+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h. */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 #ifdef TIME_WITH_SYS_TIME
6737 #include <sys/time.h>
6738 #include <time.h>
6739 #else
6740 #ifdef HAVE_SYS_TIME_H
6741 #include <sys/time.h>
6742 #else
6743 #include <time.h>
6744 #endif
6745 #endif
6746 int
6747 main ()
6748 {
6749 static struct timeval x; x.tv_sec = x.tv_usec;
6750 ;
6751 return 0;
6752 }
6753 _ACEOF
6754 rm -f conftest.$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>conftest.er1
6757 ac_status=$?
6758 grep -v '^ *+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
6760 cat conftest.err >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -z "$ac_c_werror_flag"
6764 || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 emacs_cv_struct_timeval=yes
6777 else
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 emacs_cv_struct_timeval=no
6782 fi
6783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6784 fi
6785 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6786 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6787 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6788 if test $emacs_cv_struct_timeval = yes; then
6789
6790 cat >>confdefs.h <<\_ACEOF
6791 #define HAVE_TIMEVAL 1
6792 _ACEOF
6793
6794 fi
6795
6796 echo "$as_me:$LINENO: checking for struct exception" >&5
6797 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6798 if test "${emacs_cv_struct_exception+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <math.h>
6808 int
6809 main ()
6810 {
6811 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6812 ;
6813 return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 emacs_cv_struct_exception=yes
6839 else
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6842
6843 emacs_cv_struct_exception=no
6844 fi
6845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6846 fi
6847 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6848 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6849 HAVE_EXCEPTION=$emacs_cv_struct_exception
6850 if test $emacs_cv_struct_exception != yes; then
6851
6852 cat >>confdefs.h <<\_ACEOF
6853 #define NO_MATHERR 1
6854 _ACEOF
6855
6856 fi
6857
6858
6859 for ac_header in sys/socket.h
6860 do
6861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6863 echo "$as_me:$LINENO: checking for $ac_header" >&5
6864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 fi
6868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6870 else
6871 # Is the header compilable?
6872 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 $ac_includes_default
6881 #include <$ac_header>
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>conftest.er1
6886 ac_status=$?
6887 grep -v '^ *+' conftest.er1 >conftest.err
6888 rm -f conftest.er1
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try='test -z "$ac_c_werror_flag"
6893 || test ! -s conftest.err'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; } &&
6899 { ac_try='test -s conftest.$ac_objext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_header_compiler=yes
6906 else
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6909
6910 ac_header_compiler=no
6911 fi
6912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6914 echo "${ECHO_T}$ac_header_compiler" >&6
6915
6916 # Is the header present?
6917 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 #include <$ac_header>
6926 _ACEOF
6927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6929 ac_status=$?
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } >/dev/null; then
6935 if test -s conftest.err; then
6936 ac_cpp_err=$ac_c_preproc_warn_flag
6937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6938 else
6939 ac_cpp_err=
6940 fi
6941 else
6942 ac_cpp_err=yes
6943 fi
6944 if test -z "$ac_cpp_err"; then
6945 ac_header_preproc=yes
6946 else
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6949
6950 ac_header_preproc=no
6951 fi
6952 rm -f conftest.err conftest.$ac_ext
6953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6954 echo "${ECHO_T}$ac_header_preproc" >&6
6955
6956 # So? What about this header?
6957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6958 yes:no: )
6959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6963 ac_header_preproc=yes
6964 ;;
6965 no:yes:* )
6966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6978 (
6979 cat <<\_ASBOX
6980 ## ------------------------------------------ ##
6981 ## Report this to the AC_PACKAGE_NAME lists. ##
6982 ## ------------------------------------------ ##
6983 _ASBOX
6984 ) |
6985 sed "s/^/$as_me: WARNING: /" >&2
6986 ;;
6987 esac
6988 echo "$as_me:$LINENO: checking for $ac_header" >&5
6989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993 eval "$as_ac_Header=\$ac_header_preproc"
6994 fi
6995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6997
6998 fi
6999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7000 cat >>confdefs.h <<_ACEOF
7001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7002 _ACEOF
7003
7004 fi
7005
7006 done
7007
7008
7009 for ac_header in net/if.h
7010 do
7011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7012 echo "$as_me:$LINENO: checking for $ac_header" >&5
7013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h. */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 $ac_includes_default
7024 #if HAVE_SYS_SOCKET_H
7025 #include <sys/socket.h>
7026 #endif
7027
7028 #include <$ac_header>
7029 _ACEOF
7030 rm -f conftest.$ac_objext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7032 (eval $ac_compile) 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try='test -z "$ac_c_werror_flag"
7040 || test ! -s conftest.err'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; } &&
7046 { ac_try='test -s conftest.$ac_objext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 eval "$as_ac_Header=yes"
7053 else
7054 echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7056
7057 eval "$as_ac_Header=no"
7058 fi
7059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7060 fi
7061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7064 cat >>confdefs.h <<_ACEOF
7065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7066 _ACEOF
7067
7068 fi
7069
7070 done
7071
7072
7073 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7074 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7075 if test "${ac_cv_struct_tm+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h. */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 #include <sys/types.h>
7085 #include <time.h>
7086
7087 int
7088 main ()
7089 {
7090 struct tm *tp; tp->tm_sec;
7091 ;
7092 return 0;
7093 }
7094 _ACEOF
7095 rm -f conftest.$ac_objext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097 (eval $ac_compile) 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -z "$ac_c_werror_flag"
7105 || test ! -s conftest.err'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; } &&
7111 { ac_try='test -s conftest.$ac_objext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113 (eval $ac_try) 2>&5
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_struct_tm=time.h
7118 else
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122 ac_cv_struct_tm=sys/time.h
7123 fi
7124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7125 fi
7126 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7127 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7128 if test $ac_cv_struct_tm = sys/time.h; then
7129
7130 cat >>confdefs.h <<\_ACEOF
7131 #define TM_IN_SYS_TIME 1
7132 _ACEOF
7133
7134 fi
7135
7136 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7137 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7138 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <sys/types.h>
7148 #include <$ac_cv_struct_tm>
7149
7150
7151 int
7152 main ()
7153 {
7154 static struct tm ac_aggr;
7155 if (ac_aggr.tm_zone)
7156 return 0;
7157 ;
7158 return 0;
7159 }
7160 _ACEOF
7161 rm -f conftest.$ac_objext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163 (eval $ac_compile) 2>conftest.er1
7164 ac_status=$?
7165 grep -v '^ *+' conftest.er1 >conftest.err
7166 rm -f conftest.er1
7167 cat conftest.err >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } &&
7170 { ac_try='test -z "$ac_c_werror_flag"
7171 || test ! -s conftest.err'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; } &&
7177 { ac_try='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 (eval $ac_try) 2>&5
7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_member_struct_tm_tm_zone=yes
7184 else
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7187
7188 cat >conftest.$ac_ext <<_ACEOF
7189 /* confdefs.h. */
7190 _ACEOF
7191 cat confdefs.h >>conftest.$ac_ext
7192 cat >>conftest.$ac_ext <<_ACEOF
7193 /* end confdefs.h. */
7194 #include <sys/types.h>
7195 #include <$ac_cv_struct_tm>
7196
7197
7198 int
7199 main ()
7200 {
7201 static struct tm ac_aggr;
7202 if (sizeof ac_aggr.tm_zone)
7203 return 0;
7204 ;
7205 return 0;
7206 }
7207 _ACEOF
7208 rm -f conftest.$ac_objext
7209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210 (eval $ac_compile) 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } &&
7217 { ac_try='test -z "$ac_c_werror_flag"
7218 || test ! -s conftest.err'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 (eval $ac_try) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; } &&
7224 { ac_try='test -s conftest.$ac_objext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_member_struct_tm_tm_zone=yes
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 ac_cv_member_struct_tm_tm_zone=no
7236 fi
7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238 fi
7239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7240 fi
7241 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7242 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7243 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7244
7245 cat >>confdefs.h <<_ACEOF
7246 #define HAVE_STRUCT_TM_TM_ZONE 1
7247 _ACEOF
7248
7249
7250 fi
7251
7252 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7253
7254 cat >>confdefs.h <<\_ACEOF
7255 #define HAVE_TM_ZONE 1
7256 _ACEOF
7257
7258 else
7259 echo "$as_me:$LINENO: checking for tzname" >&5
7260 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7261 if test "${ac_cv_var_tzname+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 #include <time.h>
7271 #ifndef tzname /* For SGI. */
7272 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7273 #endif
7274
7275 int
7276 main ()
7277 {
7278 atoi(*tzname);
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest$ac_exeext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_cv_var_tzname=yes
7306 else
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 ac_cv_var_tzname=no
7311 fi
7312 rm -f conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7314 fi
7315 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7316 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7317 if test $ac_cv_var_tzname = yes; then
7318
7319 cat >>confdefs.h <<\_ACEOF
7320 #define HAVE_TZNAME 1
7321 _ACEOF
7322
7323 fi
7324 fi
7325
7326 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7327 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7328 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 #include <time.h>
7338
7339 int
7340 main ()
7341 {
7342 static struct tm ac_aggr;
7343 if (ac_aggr.tm_gmtoff)
7344 return 0;
7345 ;
7346 return 0;
7347 }
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_cv_member_struct_tm_tm_gmtoff=yes
7372 else
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7375
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h. */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 #include <time.h>
7383
7384 int
7385 main ()
7386 {
7387 static struct tm ac_aggr;
7388 if (sizeof ac_aggr.tm_gmtoff)
7389 return 0;
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 rm -f conftest.$ac_objext
7395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7396 (eval $ac_compile) 2>conftest.er1
7397 ac_status=$?
7398 grep -v '^ *+' conftest.er1 >conftest.err
7399 rm -f conftest.er1
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try='test -z "$ac_c_werror_flag"
7404 || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest.$ac_objext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_cv_member_struct_tm_tm_gmtoff=yes
7417 else
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421 ac_cv_member_struct_tm_tm_gmtoff=no
7422 fi
7423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424 fi
7425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7426 fi
7427 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7428 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7429 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7430
7431 cat >>confdefs.h <<\_ACEOF
7432 #define HAVE_TM_GMTOFF 1
7433 _ACEOF
7434
7435 fi
7436
7437 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7438 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7439 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442 cat >conftest.$ac_ext <<_ACEOF
7443 /* confdefs.h. */
7444 _ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h. */
7448 $ac_includes_default
7449 #if HAVE_SYS_SOCKET_H
7450 #include <sys/socket.h>
7451 #endif
7452 #if HAVE_NET_IF_H
7453 #include <net/if.h>
7454 #endif
7455
7456 int
7457 main ()
7458 {
7459 static struct ifreq ac_aggr;
7460 if (ac_aggr.ifr_flags)
7461 return 0;
7462 ;
7463 return 0;
7464 }
7465 _ACEOF
7466 rm -f conftest.$ac_objext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468 (eval $ac_compile) 2>conftest.er1
7469 ac_status=$?
7470 grep -v '^ *+' conftest.er1 >conftest.err
7471 rm -f conftest.er1
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try='test -z "$ac_c_werror_flag"
7476 || test ! -s conftest.err'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_cv_member_struct_ifreq_ifr_flags=yes
7489 else
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7492
7493 cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h. */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 $ac_includes_default
7500 #if HAVE_SYS_SOCKET_H
7501 #include <sys/socket.h>
7502 #endif
7503 #if HAVE_NET_IF_H
7504 #include <net/if.h>
7505 #endif
7506
7507 int
7508 main ()
7509 {
7510 static struct ifreq ac_aggr;
7511 if (sizeof ac_aggr.ifr_flags)
7512 return 0;
7513 ;
7514 return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519 (eval $ac_compile) 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest.$ac_objext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_cv_member_struct_ifreq_ifr_flags=yes
7540 else
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7543
7544 ac_cv_member_struct_ifreq_ifr_flags=no
7545 fi
7546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7547 fi
7548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7551 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7552 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7553
7554 cat >>confdefs.h <<_ACEOF
7555 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7556 _ACEOF
7557
7558
7559 fi
7560 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7561 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7562 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h. */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 $ac_includes_default
7572 #if HAVE_SYS_SOCKET_H
7573 #include <sys/socket.h>
7574 #endif
7575 #if HAVE_NET_IF_H
7576 #include <net/if.h>
7577 #endif
7578
7579 int
7580 main ()
7581 {
7582 static struct ifreq ac_aggr;
7583 if (ac_aggr.ifr_hwaddr)
7584 return 0;
7585 ;
7586 return 0;
7587 }
7588 _ACEOF
7589 rm -f conftest.$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -z "$ac_c_werror_flag"
7599 || test ! -s conftest.err'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; } &&
7605 { ac_try='test -s conftest.$ac_objext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 (eval $ac_try) 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7612 else
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7615
7616 cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h. */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 $ac_includes_default
7623 #if HAVE_SYS_SOCKET_H
7624 #include <sys/socket.h>
7625 #endif
7626 #if HAVE_NET_IF_H
7627 #include <net/if.h>
7628 #endif
7629
7630 int
7631 main ()
7632 {
7633 static struct ifreq ac_aggr;
7634 if (sizeof ac_aggr.ifr_hwaddr)
7635 return 0;
7636 ;
7637 return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest.$ac_objext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7642 (eval $ac_compile) 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -z "$ac_c_werror_flag"
7650 || test ! -s conftest.err'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 (eval $ac_try) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; } &&
7656 { ac_try='test -s conftest.$ac_objext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7663 else
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7666
7667 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7668 fi
7669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7670 fi
7671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7672 fi
7673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7674 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7675 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7676
7677 cat >>confdefs.h <<_ACEOF
7678 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7679 _ACEOF
7680
7681
7682 fi
7683 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7684 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7685 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688 cat >conftest.$ac_ext <<_ACEOF
7689 /* confdefs.h. */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 $ac_includes_default
7695 #if HAVE_SYS_SOCKET_H
7696 #include <sys/socket.h>
7697 #endif
7698 #if HAVE_NET_IF_H
7699 #include <net/if.h>
7700 #endif
7701
7702 int
7703 main ()
7704 {
7705 static struct ifreq ac_aggr;
7706 if (ac_aggr.ifr_netmask)
7707 return 0;
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714 (eval $ac_compile) 2>conftest.er1
7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } &&
7721 { ac_try='test -z "$ac_c_werror_flag"
7722 || test ! -s conftest.err'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; } &&
7728 { ac_try='test -s conftest.$ac_objext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 (eval $ac_try) 2>&5
7731 ac_status=$?
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 ac_cv_member_struct_ifreq_ifr_netmask=yes
7735 else
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h. */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7745 $ac_includes_default
7746 #if HAVE_SYS_SOCKET_H
7747 #include <sys/socket.h>
7748 #endif
7749 #if HAVE_NET_IF_H
7750 #include <net/if.h>
7751 #endif
7752
7753 int
7754 main ()
7755 {
7756 static struct ifreq ac_aggr;
7757 if (sizeof ac_aggr.ifr_netmask)
7758 return 0;
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_cv_member_struct_ifreq_ifr_netmask=yes
7786 else
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7789
7790 ac_cv_member_struct_ifreq_ifr_netmask=no
7791 fi
7792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7793 fi
7794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7795 fi
7796 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7797 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7798 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7799
7800 cat >>confdefs.h <<_ACEOF
7801 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7802 _ACEOF
7803
7804
7805 fi
7806 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7807 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7808 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h. */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7818 #if HAVE_SYS_SOCKET_H
7819 #include <sys/socket.h>
7820 #endif
7821 #if HAVE_NET_IF_H
7822 #include <net/if.h>
7823 #endif
7824
7825 int
7826 main ()
7827 {
7828 static struct ifreq ac_aggr;
7829 if (ac_aggr.ifr_broadaddr)
7830 return 0;
7831 ;
7832 return 0;
7833 }
7834 _ACEOF
7835 rm -f conftest.$ac_objext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7837 (eval $ac_compile) 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } &&
7844 { ac_try='test -z "$ac_c_werror_flag"
7845 || test ! -s conftest.err'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 (eval $ac_try) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; } &&
7851 { ac_try='test -s conftest.$ac_objext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7858 else
7859 echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7861
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 $ac_includes_default
7869 #if HAVE_SYS_SOCKET_H
7870 #include <sys/socket.h>
7871 #endif
7872 #if HAVE_NET_IF_H
7873 #include <net/if.h>
7874 #endif
7875
7876 int
7877 main ()
7878 {
7879 static struct ifreq ac_aggr;
7880 if (sizeof ac_aggr.ifr_broadaddr)
7881 return 0;
7882 ;
7883 return 0;
7884 }
7885 _ACEOF
7886 rm -f conftest.$ac_objext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>conftest.er1
7889 ac_status=$?
7890 grep -v '^ *+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -z "$ac_c_werror_flag"
7896 || test ! -s conftest.err'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7909 else
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7914 fi
7915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7916 fi
7917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7918 fi
7919 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7920 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7921 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7922
7923 cat >>confdefs.h <<_ACEOF
7924 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7925 _ACEOF
7926
7927
7928 fi
7929 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7930 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7931 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7941 #if HAVE_SYS_SOCKET_H
7942 #include <sys/socket.h>
7943 #endif
7944 #if HAVE_NET_IF_H
7945 #include <net/if.h>
7946 #endif
7947
7948 int
7949 main ()
7950 {
7951 static struct ifreq ac_aggr;
7952 if (ac_aggr.ifr_addr)
7953 return 0;
7954 ;
7955 return 0;
7956 }
7957 _ACEOF
7958 rm -f conftest.$ac_objext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960 (eval $ac_compile) 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest.$ac_objext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_member_struct_ifreq_ifr_addr=yes
7981 else
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h. */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 $ac_includes_default
7992 #if HAVE_SYS_SOCKET_H
7993 #include <sys/socket.h>
7994 #endif
7995 #if HAVE_NET_IF_H
7996 #include <net/if.h>
7997 #endif
7998
7999 int
8000 main ()
8001 {
8002 static struct ifreq ac_aggr;
8003 if (sizeof ac_aggr.ifr_addr)
8004 return 0;
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011 (eval $ac_compile) 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -z "$ac_c_werror_flag"
8019 || test ! -s conftest.err'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try='test -s conftest.$ac_objext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 ac_cv_member_struct_ifreq_ifr_addr=yes
8032 else
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 ac_cv_member_struct_ifreq_ifr_addr=no
8037 fi
8038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8039 fi
8040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8041 fi
8042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8043 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8044 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8045
8046 cat >>confdefs.h <<_ACEOF
8047 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8048 _ACEOF
8049
8050
8051 fi
8052
8053
8054
8055 echo "$as_me:$LINENO: checking for function prototypes" >&5
8056 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8057 if test "$ac_cv_prog_cc_stdc" != no; then
8058 echo "$as_me:$LINENO: result: yes" >&5
8059 echo "${ECHO_T}yes" >&6
8060
8061 cat >>confdefs.h <<\_ACEOF
8062 #define PROTOTYPES 1
8063 _ACEOF
8064
8065
8066 cat >>confdefs.h <<\_ACEOF
8067 #define __PROTOTYPES 1
8068 _ACEOF
8069
8070 else
8071 echo "$as_me:$LINENO: result: no" >&5
8072 echo "${ECHO_T}no" >&6
8073 fi
8074
8075 echo "$as_me:$LINENO: checking for working volatile" >&5
8076 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8077 if test "${ac_cv_c_volatile+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h. */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086
8087 int
8088 main ()
8089 {
8090
8091 volatile int x;
8092 int * volatile y;
8093 ;
8094 return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -z "$ac_c_werror_flag"
8107 || test ! -s conftest.err'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try='test -s conftest.$ac_objext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 ac_cv_c_volatile=yes
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ac_cv_c_volatile=no
8125 fi
8126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8127 fi
8128 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8129 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8130 if test $ac_cv_c_volatile = no; then
8131
8132 cat >>confdefs.h <<\_ACEOF
8133 #define volatile
8134 _ACEOF
8135
8136 fi
8137
8138 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8139 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8140 if test "${ac_cv_c_const+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149
8150 int
8151 main ()
8152 {
8153 /* FIXME: Include the comments suggested by Paul. */
8154 #ifndef __cplusplus
8155 /* Ultrix mips cc rejects this. */
8156 typedef int charset[2];
8157 const charset x;
8158 /* SunOS 4.1.1 cc rejects this. */
8159 char const *const *ccp;
8160 char **p;
8161 /* NEC SVR4.0.2 mips cc rejects this. */
8162 struct point {int x, y;};
8163 static struct point const zero = {0,0};
8164 /* AIX XL C 1.02.0.0 rejects this.
8165 It does not let you subtract one const X* pointer from another in
8166 an arm of an if-expression whose if-part is not a constant
8167 expression */
8168 const char *g = "string";
8169 ccp = &g + (g ? g-g : 0);
8170 /* HPUX 7.0 cc rejects these. */
8171 ++ccp;
8172 p = (char**) ccp;
8173 ccp = (char const *const *) p;
8174 { /* SCO 3.2v4 cc rejects this. */
8175 char *t;
8176 char const *s = 0 ? (char *) 0 : (char const *) 0;
8177
8178 *t++ = 0;
8179 }
8180 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8181 int x[] = {25, 17};
8182 const int *foo = &x[0];
8183 ++foo;
8184 }
8185 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8186 typedef const int *iptr;
8187 iptr p = 0;
8188 ++p;
8189 }
8190 { /* AIX XL C 1.02.0.0 rejects this saying
8191 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8192 struct s { int j; const int *ap[3]; };
8193 struct s *b; b->j = 5;
8194 }
8195 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8196 const int foo = 10;
8197 }
8198 #endif
8199
8200 ;
8201 return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8206 (eval $ac_compile) 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag"
8214 || test ! -s conftest.err'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest.$ac_objext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 ac_cv_c_const=yes
8227 else
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 ac_cv_c_const=no
8232 fi
8233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8234 fi
8235 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8236 echo "${ECHO_T}$ac_cv_c_const" >&6
8237 if test $ac_cv_c_const = no; then
8238
8239 cat >>confdefs.h <<\_ACEOF
8240 #define const
8241 _ACEOF
8242
8243 fi
8244
8245 echo "$as_me:$LINENO: checking for void * support" >&5
8246 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8247 if test "${emacs_cv_void_star+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256
8257 int
8258 main ()
8259 {
8260 void * foo;
8261 ;
8262 return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8267 (eval $ac_compile) 2>conftest.er1
8268 ac_status=$?
8269 grep -v '^ *+' conftest.er1 >conftest.err
8270 rm -f conftest.er1
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -z "$ac_c_werror_flag"
8275 || test ! -s conftest.err'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 (eval $ac_try) 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try='test -s conftest.$ac_objext'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 (eval $ac_try) 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 emacs_cv_void_star=yes
8288 else
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292 emacs_cv_void_star=no
8293 fi
8294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8295 fi
8296 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8297 echo "${ECHO_T}$emacs_cv_void_star" >&6
8298 if test $emacs_cv_void_star = yes; then
8299 cat >>confdefs.h <<\_ACEOF
8300 #define POINTER_TYPE void
8301 _ACEOF
8302
8303 else
8304 cat >>confdefs.h <<\_ACEOF
8305 #define POINTER_TYPE char
8306 _ACEOF
8307
8308 fi
8309
8310
8311
8312
8313
8314 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8315 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8316 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8317 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320 cat >conftest.make <<\_ACEOF
8321 all:
8322 @echo 'ac_maketemp="$(MAKE)"'
8323 _ACEOF
8324 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8325 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8326 if test -n "$ac_maketemp"; then
8327 eval ac_cv_prog_make_${ac_make}_set=yes
8328 else
8329 eval ac_cv_prog_make_${ac_make}_set=no
8330 fi
8331 rm -f conftest.make
8332 fi
8333 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8334 echo "$as_me:$LINENO: result: yes" >&5
8335 echo "${ECHO_T}yes" >&6
8336 SET_MAKE=
8337 else
8338 echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6
8340 SET_MAKE="MAKE=${MAKE-make}"
8341 fi
8342
8343
8344 echo "$as_me:$LINENO: checking for long file names" >&5
8345 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8346 if test "${ac_cv_sys_long_file_names+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349 ac_cv_sys_long_file_names=yes
8350 # Test for long file names in all the places we know might matter:
8351 # . the current directory, where building will happen
8352 # $prefix/lib where we will be installing things
8353 # $exec_prefix/lib likewise
8354 # eval it to expand exec_prefix.
8355 # $TMPDIR if set, where it might want to write temporary files
8356 # if $TMPDIR is not set:
8357 # /tmp where it might want to write temporary files
8358 # /var/tmp likewise
8359 # /usr/tmp likewise
8360 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8361 ac_tmpdirs=$TMPDIR
8362 else
8363 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8364 fi
8365 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8366 test -d $ac_dir || continue
8367 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8368 ac_xdir=$ac_dir/cf$$
8369 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8370 ac_tf1=$ac_xdir/conftest9012345
8371 ac_tf2=$ac_xdir/conftest9012346
8372 (echo 1 >$ac_tf1) 2>/dev/null
8373 (echo 2 >$ac_tf2) 2>/dev/null
8374 ac_val=`cat $ac_tf1 2>/dev/null`
8375 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8376 ac_cv_sys_long_file_names=no
8377 rm -rf $ac_xdir 2>/dev/null
8378 break
8379 fi
8380 rm -rf $ac_xdir 2>/dev/null
8381 done
8382 fi
8383 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8384 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8385 if test $ac_cv_sys_long_file_names = yes; then
8386
8387 cat >>confdefs.h <<\_ACEOF
8388 #define HAVE_LONG_FILE_NAMES 1
8389 _ACEOF
8390
8391 fi
8392
8393
8394 #### Choose a window system.
8395
8396 echo "$as_me:$LINENO: checking for X" >&5
8397 echo $ECHO_N "checking for X... $ECHO_C" >&6
8398
8399
8400 # Check whether --with-x or --without-x was given.
8401 if test "${with_x+set}" = set; then
8402 withval="$with_x"
8403
8404 fi;
8405 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8406 if test "x$with_x" = xno; then
8407 # The user explicitly disabled X.
8408 have_x=disabled
8409 else
8410 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8411 # Both variables are already set.
8412 have_x=yes
8413 else
8414 if test "${ac_cv_have_x+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417 # One or both of the vars are not set, and there is no cached value.
8418 ac_x_includes=no ac_x_libraries=no
8419 rm -fr conftest.dir
8420 if mkdir conftest.dir; then
8421 cd conftest.dir
8422 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8423 cat >Imakefile <<'_ACEOF'
8424 acfindx:
8425 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8426 _ACEOF
8427 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8428 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8429 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8430 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8431 for ac_extension in a so sl; do
8432 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8433 test -f $ac_im_libdir/libX11.$ac_extension; then
8434 ac_im_usrlibdir=$ac_im_libdir; break
8435 fi
8436 done
8437 # Screen out bogus values from the imake configuration. They are
8438 # bogus both because they are the default anyway, and because
8439 # using them would break gcc on systems where it needs fixed includes.
8440 case $ac_im_incroot in
8441 /usr/include) ;;
8442 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8443 esac
8444 case $ac_im_usrlibdir in
8445 /usr/lib | /lib) ;;
8446 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8447 esac
8448 fi
8449 cd ..
8450 rm -fr conftest.dir
8451 fi
8452
8453 # Standard set of common directories for X headers.
8454 # Check X11 before X11Rn because it is often a symlink to the current release.
8455 ac_x_header_dirs='
8456 /usr/X11/include
8457 /usr/X11R6/include
8458 /usr/X11R5/include
8459 /usr/X11R4/include
8460
8461 /usr/include/X11
8462 /usr/include/X11R6
8463 /usr/include/X11R5
8464 /usr/include/X11R4
8465
8466 /usr/local/X11/include
8467 /usr/local/X11R6/include
8468 /usr/local/X11R5/include
8469 /usr/local/X11R4/include
8470
8471 /usr/local/include/X11
8472 /usr/local/include/X11R6
8473 /usr/local/include/X11R5
8474 /usr/local/include/X11R4
8475
8476 /usr/X386/include
8477 /usr/x386/include
8478 /usr/XFree86/include/X11
8479
8480 /usr/include
8481 /usr/local/include
8482 /usr/unsupported/include
8483 /usr/athena/include
8484 /usr/local/x11r5/include
8485 /usr/lpp/Xamples/include
8486
8487 /usr/openwin/include
8488 /usr/openwin/share/include'
8489
8490 if test "$ac_x_includes" = no; then
8491 # Guess where to find include files, by looking for Intrinsic.h.
8492 # First, try using that file with no special directory specified.
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 #include <X11/Intrinsic.h>
8500 _ACEOF
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8503 ac_status=$?
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } >/dev/null; then
8509 if test -s conftest.err; then
8510 ac_cpp_err=$ac_c_preproc_warn_flag
8511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8512 else
8513 ac_cpp_err=
8514 fi
8515 else
8516 ac_cpp_err=yes
8517 fi
8518 if test -z "$ac_cpp_err"; then
8519 # We can compile using X headers with no special include directory.
8520 ac_x_includes=
8521 else
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525 for ac_dir in $ac_x_header_dirs; do
8526 if test -r "$ac_dir/X11/Intrinsic.h"; then
8527 ac_x_includes=$ac_dir
8528 break
8529 fi
8530 done
8531 fi
8532 rm -f conftest.err conftest.$ac_ext
8533 fi # $ac_x_includes = no
8534
8535 if test "$ac_x_libraries" = no; then
8536 # Check for the libraries.
8537 # See if we find them without any special options.
8538 # Don't add to $LIBS permanently.
8539 ac_save_LIBS=$LIBS
8540 LIBS="-lXt $LIBS"
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h. */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 #include <X11/Intrinsic.h>
8548 int
8549 main ()
8550 {
8551 XtMalloc (0)
8552 ;
8553 return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_c_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try='test -s conftest$ac_exeext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 (eval $ac_try) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 LIBS=$ac_save_LIBS
8579 # We can link X programs with no special library path.
8580 ac_x_libraries=
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 LIBS=$ac_save_LIBS
8586 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8587 do
8588 # Don't even attempt the hair of trying to link an X program!
8589 for ac_extension in a so sl; do
8590 if test -r $ac_dir/libXt.$ac_extension; then
8591 ac_x_libraries=$ac_dir
8592 break 2
8593 fi
8594 done
8595 done
8596 fi
8597 rm -f conftest.err conftest.$ac_objext \
8598 conftest$ac_exeext conftest.$ac_ext
8599 fi # $ac_x_libraries = no
8600
8601 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8602 # Didn't find X anywhere. Cache the known absence of X.
8603 ac_cv_have_x="have_x=no"
8604 else
8605 # Record where we found X for the cache.
8606 ac_cv_have_x="have_x=yes \
8607 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8608 fi
8609 fi
8610
8611 fi
8612 eval "$ac_cv_have_x"
8613 fi # $with_x != no
8614
8615 if test "$have_x" != yes; then
8616 echo "$as_me:$LINENO: result: $have_x" >&5
8617 echo "${ECHO_T}$have_x" >&6
8618 no_x=yes
8619 else
8620 # If each of the values was on the command line, it overrides each guess.
8621 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8622 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8623 # Update the cache value to reflect the command line values.
8624 ac_cv_have_x="have_x=yes \
8625 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8626 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8627 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8628 fi
8629
8630 if test "$no_x" = yes; then
8631 window_system=none
8632 else
8633 window_system=x11
8634 fi
8635
8636 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8637 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8638 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8639 x_default_search_path=""
8640 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8641 x_search_path="\
8642 ${x_library}/X11/%L/%T/%N%C%S:\
8643 ${x_library}/X11/%l/%T/%N%C%S:\
8644 ${x_library}/X11/%T/%N%C%S:\
8645 ${x_library}/X11/%L/%T/%N%S:\
8646 ${x_library}/X11/%l/%T/%N%S:\
8647 ${x_library}/X11/%T/%N%S"
8648 if test x"${x_default_search_path}" = x; then
8649 x_default_search_path=${x_search_path}
8650 else
8651 x_default_search_path="${x_search_path}:${x_default_search_path}"
8652 fi
8653 done
8654 fi
8655 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8656 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8657 fi
8658
8659 if test x"${x_includes}" = x; then
8660 bitmapdir=/usr/include/X11/bitmaps
8661 else
8662 # accumulate include directories that have X11 bitmap subdirectories
8663 bmd_acc="dummyval"
8664 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8665 if test -d "${bmd}/X11/bitmaps"; then
8666 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8667 fi
8668 if test -d "${bmd}/bitmaps"; then
8669 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8670 fi
8671 done
8672 if test ${bmd_acc} != "dummyval"; then
8673 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8674 fi
8675 fi
8676
8677 HAVE_CARBON=no
8678 if test "${with_carbon}" != no; then
8679 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8680 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8681 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8682 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 fi
8685 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8686 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8687 else
8688 # Is the header compilable?
8689 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8690 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h. */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 $ac_includes_default
8698 #include <Carbon/Carbon.h>
8699 _ACEOF
8700 rm -f conftest.$ac_objext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest.$ac_objext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 ac_header_compiler=yes
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 ac_header_compiler=no
8728 fi
8729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8731 echo "${ECHO_T}$ac_header_compiler" >&6
8732
8733 # Is the header present?
8734 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8735 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 #include <Carbon/Carbon.h>
8743 _ACEOF
8744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } >/dev/null; then
8752 if test -s conftest.err; then
8753 ac_cpp_err=$ac_c_preproc_warn_flag
8754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8755 else
8756 ac_cpp_err=
8757 fi
8758 else
8759 ac_cpp_err=yes
8760 fi
8761 if test -z "$ac_cpp_err"; then
8762 ac_header_preproc=yes
8763 else
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 ac_header_preproc=no
8768 fi
8769 rm -f conftest.err conftest.$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8771 echo "${ECHO_T}$ac_header_preproc" >&6
8772
8773 # So? What about this header?
8774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8775 yes:no: )
8776 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8777 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8779 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8780 ac_header_preproc=yes
8781 ;;
8782 no:yes:* )
8783 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8784 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8786 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8788 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8790 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8792 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8793 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8794 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8795 (
8796 cat <<\_ASBOX
8797 ## ------------------------------------------ ##
8798 ## Report this to the AC_PACKAGE_NAME lists. ##
8799 ## ------------------------------------------ ##
8800 _ASBOX
8801 ) |
8802 sed "s/^/$as_me: WARNING: /" >&2
8803 ;;
8804 esac
8805 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8806 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8807 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8811 fi
8812 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8813 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8814
8815 fi
8816 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8817 HAVE_CARBON=yes
8818 fi
8819
8820
8821 fi
8822 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8823 if test "${with_carbon+set}" != set \
8824 && test "${carbon_appdir_x+set}" != set; then
8825 HAVE_CARBON=no
8826 fi
8827 fi
8828 if test "${HAVE_CARBON}" = yes; then
8829 window_system=mac
8830 fi
8831
8832 case "${window_system}" in
8833 x11 )
8834 HAVE_X_WINDOWS=yes
8835 HAVE_X11=yes
8836 case "${with_x_toolkit}" in
8837 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8838 motif ) USE_X_TOOLKIT=MOTIF ;;
8839 gtk ) with_gtk=yes
8840 USE_X_TOOLKIT=none ;;
8841 no ) USE_X_TOOLKIT=none ;;
8842 * ) USE_X_TOOLKIT=maybe ;;
8843 esac
8844 ;;
8845 mac | none )
8846 HAVE_X_WINDOWS=no
8847 HAVE_X11=no
8848 USE_X_TOOLKIT=none
8849 ;;
8850 esac
8851
8852 ### If we're using X11, we should use the X menu package.
8853 HAVE_MENUS=no
8854 case ${HAVE_X11} in
8855 yes ) HAVE_MENUS=yes ;;
8856 esac
8857
8858 if test "${opsys}" = "hpux9"; then
8859 case "${x_libraries}" in
8860 *X11R4* )
8861 opsysfile="s/hpux9-x11r4.h"
8862 ;;
8863 esac
8864 fi
8865
8866 if test "${opsys}" = "hpux9shr"; then
8867 case "${x_libraries}" in
8868 *X11R4* )
8869 opsysfile="s/hpux9shxr4.h"
8870 ;;
8871 esac
8872 fi
8873
8874 ### Compute the unexec source name from the object name.
8875 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8876
8877 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8878 # Assume not, until told otherwise.
8879 GNU_MALLOC=yes
8880 doug_lea_malloc=yes
8881 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8882 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8883 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h. */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8894 #define malloc_get_state innocuous_malloc_get_state
8895
8896 /* System header to define __stub macros and hopefully few prototypes,
8897 which can conflict with char malloc_get_state (); below.
8898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8899 <limits.h> exists even on freestanding compilers. */
8900
8901 #ifdef __STDC__
8902 # include <limits.h>
8903 #else
8904 # include <assert.h>
8905 #endif
8906
8907 #undef malloc_get_state
8908
8909 /* Override any gcc2 internal prototype to avoid an error. */
8910 #ifdef __cplusplus
8911 extern "C"
8912 {
8913 #endif
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8916 char malloc_get_state ();
8917 /* The GNU C library defines this for functions which it implements
8918 to always fail with ENOSYS. Some functions are actually named
8919 something starting with __ and the normal name is an alias. */
8920 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8921 choke me
8922 #else
8923 char (*f) () = malloc_get_state;
8924 #endif
8925 #ifdef __cplusplus
8926 }
8927 #endif
8928
8929 int
8930 main ()
8931 {
8932 return f != malloc_get_state;
8933 ;
8934 return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -z "$ac_c_werror_flag"
8947 || test ! -s conftest.err'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; } &&
8953 { ac_try='test -s conftest$ac_exeext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 ac_cv_func_malloc_get_state=yes
8960 else
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8963
8964 ac_cv_func_malloc_get_state=no
8965 fi
8966 rm -f conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 fi
8969 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8970 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8971 if test $ac_cv_func_malloc_get_state = yes; then
8972 :
8973 else
8974 doug_lea_malloc=no
8975 fi
8976
8977 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8978 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8979 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8990 #define malloc_set_state innocuous_malloc_set_state
8991
8992 /* System header to define __stub macros and hopefully few prototypes,
8993 which can conflict with char malloc_set_state (); below.
8994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8995 <limits.h> exists even on freestanding compilers. */
8996
8997 #ifdef __STDC__
8998 # include <limits.h>
8999 #else
9000 # include <assert.h>
9001 #endif
9002
9003 #undef malloc_set_state
9004
9005 /* Override any gcc2 internal prototype to avoid an error. */
9006 #ifdef __cplusplus
9007 extern "C"
9008 {
9009 #endif
9010 /* We use char because int might match the return type of a gcc2
9011 builtin and then its argument prototype would still apply. */
9012 char malloc_set_state ();
9013 /* The GNU C library defines this for functions which it implements
9014 to always fail with ENOSYS. Some functions are actually named
9015 something starting with __ and the normal name is an alias. */
9016 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9017 choke me
9018 #else
9019 char (*f) () = malloc_set_state;
9020 #endif
9021 #ifdef __cplusplus
9022 }
9023 #endif
9024
9025 int
9026 main ()
9027 {
9028 return f != malloc_set_state;
9029 ;
9030 return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -z "$ac_c_werror_flag"
9043 || test ! -s conftest.err'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 (eval $ac_try) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; } &&
9049 { ac_try='test -s conftest$ac_exeext'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 (eval $ac_try) 2>&5
9052 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 ac_cv_func_malloc_set_state=yes
9056 else
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9059
9060 ac_cv_func_malloc_set_state=no
9061 fi
9062 rm -f conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 fi
9065 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9066 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9067 if test $ac_cv_func_malloc_set_state = yes; then
9068 :
9069 else
9070 doug_lea_malloc=no
9071 fi
9072
9073 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9074 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9075 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078 cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h. */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 extern void (* __after_morecore_hook)();
9085 int
9086 main ()
9087 {
9088 __after_morecore_hook = 0
9089 ;
9090 return 0;
9091 }
9092 _ACEOF
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9095 (eval $ac_link) 2>conftest.er1
9096 ac_status=$?
9097 grep -v '^ *+' conftest.er1 >conftest.err
9098 rm -f conftest.er1
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -z "$ac_c_werror_flag"
9103 || test ! -s conftest.err'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; } &&
9109 { ac_try='test -s conftest$ac_exeext'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 (eval $ac_try) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 emacs_cv_var___after_morecore_hook=yes
9116 else
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9119
9120 emacs_cv_var___after_morecore_hook=no
9121 fi
9122 rm -f conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 fi
9125 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9126 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9127 if test $emacs_cv_var___after_morecore_hook = no; then
9128 doug_lea_malloc=no
9129 fi
9130 if test "${system_malloc}" = "yes"; then
9131 GNU_MALLOC=no
9132 GNU_MALLOC_reason="
9133 (The GNU allocators don't work with this system configuration.)"
9134 fi
9135 if test "$doug_lea_malloc" = "yes" ; then
9136 if test "$GNU_MALLOC" = yes ; then
9137 GNU_MALLOC_reason="
9138 (Using Doug Lea's new malloc from the GNU C Library.)"
9139 fi
9140
9141 cat >>confdefs.h <<\_ACEOF
9142 #define DOUG_LEA_MALLOC 1
9143 _ACEOF
9144
9145 fi
9146
9147 if test x"${REL_ALLOC}" = x; then
9148 REL_ALLOC=${GNU_MALLOC}
9149 fi
9150
9151
9152
9153
9154 for ac_header in stdlib.h unistd.h
9155 do
9156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9158 echo "$as_me:$LINENO: checking for $ac_header" >&5
9159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 fi
9163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9165 else
9166 # Is the header compilable?
9167 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9169 cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 $ac_includes_default
9176 #include <$ac_header>
9177 _ACEOF
9178 rm -f conftest.$ac_objext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180 (eval $ac_compile) 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag"
9188 || test ! -s conftest.err'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; } &&
9194 { ac_try='test -s conftest.$ac_objext'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 (eval $ac_try) 2>&5
9197 ac_status=$?
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 ac_header_compiler=yes
9201 else
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205 ac_header_compiler=no
9206 fi
9207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9209 echo "${ECHO_T}$ac_header_compiler" >&6
9210
9211 # Is the header present?
9212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9214 cat >conftest.$ac_ext <<_ACEOF
9215 /* confdefs.h. */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9220 #include <$ac_header>
9221 _ACEOF
9222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9224 ac_status=$?
9225 grep -v '^ *+' conftest.er1 >conftest.err
9226 rm -f conftest.er1
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } >/dev/null; then
9230 if test -s conftest.err; then
9231 ac_cpp_err=$ac_c_preproc_warn_flag
9232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9233 else
9234 ac_cpp_err=
9235 fi
9236 else
9237 ac_cpp_err=yes
9238 fi
9239 if test -z "$ac_cpp_err"; then
9240 ac_header_preproc=yes
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245 ac_header_preproc=no
9246 fi
9247 rm -f conftest.err conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9249 echo "${ECHO_T}$ac_header_preproc" >&6
9250
9251 # So? What about this header?
9252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9253 yes:no: )
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9258 ac_header_preproc=yes
9259 ;;
9260 no:yes:* )
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9273 (
9274 cat <<\_ASBOX
9275 ## ------------------------------------------ ##
9276 ## Report this to the AC_PACKAGE_NAME lists. ##
9277 ## ------------------------------------------ ##
9278 _ASBOX
9279 ) |
9280 sed "s/^/$as_me: WARNING: /" >&2
9281 ;;
9282 esac
9283 echo "$as_me:$LINENO: checking for $ac_header" >&5
9284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 else
9288 eval "$as_ac_Header=\$ac_header_preproc"
9289 fi
9290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9292
9293 fi
9294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9295 cat >>confdefs.h <<_ACEOF
9296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9297 _ACEOF
9298
9299 fi
9300
9301 done
9302
9303
9304 for ac_func in getpagesize
9305 do
9306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9307 echo "$as_me:$LINENO: checking for $ac_func" >&5
9308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9309 if eval "test \"\${$as_ac_var+set}\" = set"; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h. */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9320 #define $ac_func innocuous_$ac_func
9321
9322 /* System header to define __stub macros and hopefully few prototypes,
9323 which can conflict with char $ac_func (); below.
9324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9325 <limits.h> exists even on freestanding compilers. */
9326
9327 #ifdef __STDC__
9328 # include <limits.h>
9329 #else
9330 # include <assert.h>
9331 #endif
9332
9333 #undef $ac_func
9334
9335 /* Override any gcc2 internal prototype to avoid an error. */
9336 #ifdef __cplusplus
9337 extern "C"
9338 {
9339 #endif
9340 /* We use char because int might match the return type of a gcc2
9341 builtin and then its argument prototype would still apply. */
9342 char $ac_func ();
9343 /* The GNU C library defines this for functions which it implements
9344 to always fail with ENOSYS. Some functions are actually named
9345 something starting with __ and the normal name is an alias. */
9346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9347 choke me
9348 #else
9349 char (*f) () = $ac_func;
9350 #endif
9351 #ifdef __cplusplus
9352 }
9353 #endif
9354
9355 int
9356 main ()
9357 {
9358 return f != $ac_func;
9359 ;
9360 return 0;
9361 }
9362 _ACEOF
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -z "$ac_c_werror_flag"
9373 || test ! -s conftest.err'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 (eval $ac_try) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; } &&
9379 { ac_try='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 eval "$as_ac_var=yes"
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 eval "$as_ac_var=no"
9391 fi
9392 rm -f conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9394 fi
9395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9397 if test `eval echo '${'$as_ac_var'}'` = yes; then
9398 cat >>confdefs.h <<_ACEOF
9399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9400 _ACEOF
9401
9402 fi
9403 done
9404
9405 echo "$as_me:$LINENO: checking for working mmap" >&5
9406 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9407 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410 if test "$cross_compiling" = yes; then
9411 ac_cv_func_mmap_fixed_mapped=no
9412 else
9413 cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h. */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 $ac_includes_default
9420 /* malloc might have been renamed as rpl_malloc. */
9421 #undef malloc
9422
9423 /* Thanks to Mike Haertel and Jim Avera for this test.
9424 Here is a matrix of mmap possibilities:
9425 mmap private not fixed
9426 mmap private fixed at somewhere currently unmapped
9427 mmap private fixed at somewhere already mapped
9428 mmap shared not fixed
9429 mmap shared fixed at somewhere currently unmapped
9430 mmap shared fixed at somewhere already mapped
9431 For private mappings, we should verify that changes cannot be read()
9432 back from the file, nor mmap's back from the file at a different
9433 address. (There have been systems where private was not correctly
9434 implemented like the infamous i386 svr4.0, and systems where the
9435 VM page cache was not coherent with the file system buffer cache
9436 like early versions of FreeBSD and possibly contemporary NetBSD.)
9437 For shared mappings, we should conversely verify that changes get
9438 propagated back to all the places they're supposed to be.
9439
9440 Grep wants private fixed already mapped.
9441 The main things grep needs to know about mmap are:
9442 * does it exist and is it safe to write into the mmap'd area
9443 * how to use it (BSD variants) */
9444
9445 #include <fcntl.h>
9446 #include <sys/mman.h>
9447
9448 #if !STDC_HEADERS && !HAVE_STDLIB_H
9449 char *malloc ();
9450 #endif
9451
9452 /* This mess was copied from the GNU getpagesize.h. */
9453 #if !HAVE_GETPAGESIZE
9454 /* Assume that all systems that can run configure have sys/param.h. */
9455 # if !HAVE_SYS_PARAM_H
9456 # define HAVE_SYS_PARAM_H 1
9457 # endif
9458
9459 # ifdef _SC_PAGESIZE
9460 # define getpagesize() sysconf(_SC_PAGESIZE)
9461 # else /* no _SC_PAGESIZE */
9462 # if HAVE_SYS_PARAM_H
9463 # include <sys/param.h>
9464 # ifdef EXEC_PAGESIZE
9465 # define getpagesize() EXEC_PAGESIZE
9466 # else /* no EXEC_PAGESIZE */
9467 # ifdef NBPG
9468 # define getpagesize() NBPG * CLSIZE
9469 # ifndef CLSIZE
9470 # define CLSIZE 1
9471 # endif /* no CLSIZE */
9472 # else /* no NBPG */
9473 # ifdef NBPC
9474 # define getpagesize() NBPC
9475 # else /* no NBPC */
9476 # ifdef PAGESIZE
9477 # define getpagesize() PAGESIZE
9478 # endif /* PAGESIZE */
9479 # endif /* no NBPC */
9480 # endif /* no NBPG */
9481 # endif /* no EXEC_PAGESIZE */
9482 # else /* no HAVE_SYS_PARAM_H */
9483 # define getpagesize() 8192 /* punt totally */
9484 # endif /* no HAVE_SYS_PARAM_H */
9485 # endif /* no _SC_PAGESIZE */
9486
9487 #endif /* no HAVE_GETPAGESIZE */
9488
9489 int
9490 main ()
9491 {
9492 char *data, *data2, *data3;
9493 int i, pagesize;
9494 int fd;
9495
9496 pagesize = getpagesize ();
9497
9498 /* First, make a file with some known garbage in it. */
9499 data = (char *) malloc (pagesize);
9500 if (!data)
9501 exit (1);
9502 for (i = 0; i < pagesize; ++i)
9503 *(data + i) = rand ();
9504 umask (0);
9505 fd = creat ("conftest.mmap", 0600);
9506 if (fd < 0)
9507 exit (1);
9508 if (write (fd, data, pagesize) != pagesize)
9509 exit (1);
9510 close (fd);
9511
9512 /* Next, try to mmap the file at a fixed address which already has
9513 something else allocated at it. If we can, also make sure that
9514 we see the same garbage. */
9515 fd = open ("conftest.mmap", O_RDWR);
9516 if (fd < 0)
9517 exit (1);
9518 data2 = (char *) malloc (2 * pagesize);
9519 if (!data2)
9520 exit (1);
9521 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9522 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9523 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9524 exit (1);
9525 for (i = 0; i < pagesize; ++i)
9526 if (*(data + i) != *(data2 + i))
9527 exit (1);
9528
9529 /* Finally, make sure that changes to the mapped area do not
9530 percolate back to the file as seen by read(). (This is a bug on
9531 some variants of i386 svr4.0.) */
9532 for (i = 0; i < pagesize; ++i)
9533 *(data2 + i) = *(data2 + i) + 1;
9534 data3 = (char *) malloc (pagesize);
9535 if (!data3)
9536 exit (1);
9537 if (read (fd, data3, pagesize) != pagesize)
9538 exit (1);
9539 for (i = 0; i < pagesize; ++i)
9540 if (*(data + i) != *(data3 + i))
9541 exit (1);
9542 close (fd);
9543 exit (0);
9544 }
9545 _ACEOF
9546 rm -f conftest$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_cv_func_mmap_fixed_mapped=yes
9558 else
9559 echo "$as_me: program exited with status $ac_status" >&5
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9562
9563 ( exit $ac_status )
9564 ac_cv_func_mmap_fixed_mapped=no
9565 fi
9566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9567 fi
9568 fi
9569 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9570 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9571 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9572
9573 cat >>confdefs.h <<\_ACEOF
9574 #define HAVE_MMAP 1
9575 _ACEOF
9576
9577 fi
9578 rm -f conftest.mmap
9579
9580 if test $use_mmap_for_buffers = yes; then
9581 REL_ALLOC=no
9582 fi
9583
9584 LIBS="$libsrc_libs $LIBS"
9585
9586
9587 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9588 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9589 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 ac_check_lib_save_LIBS=$LIBS
9593 LIBS="-ldnet $LIBS"
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600
9601 /* Override any gcc2 internal prototype to avoid an error. */
9602 #ifdef __cplusplus
9603 extern "C"
9604 #endif
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9607 char dnet_ntoa ();
9608 int
9609 main ()
9610 {
9611 dnet_ntoa ();
9612 ;
9613 return 0;
9614 }
9615 _ACEOF
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>conftest.er1
9619 ac_status=$?
9620 grep -v '^ *+' conftest.er1 >conftest.err
9621 rm -f conftest.er1
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -z "$ac_c_werror_flag"
9626 || test ! -s conftest.err'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; } &&
9632 { ac_try='test -s conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_lib_dnet_dnet_ntoa=yes
9639 else
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9642
9643 ac_cv_lib_dnet_dnet_ntoa=no
9644 fi
9645 rm -f conftest.err conftest.$ac_objext \
9646 conftest$ac_exeext conftest.$ac_ext
9647 LIBS=$ac_check_lib_save_LIBS
9648 fi
9649 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9650 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9651 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9652 cat >>confdefs.h <<_ACEOF
9653 #define HAVE_LIBDNET 1
9654 _ACEOF
9655
9656 LIBS="-ldnet $LIBS"
9657
9658 fi
9659
9660
9661 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9662 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9663 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 ac_check_lib_save_LIBS=$LIBS
9667 LIBS="-lXbsd $LIBS"
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674
9675
9676 int
9677 main ()
9678 {
9679 main ();
9680 ;
9681 return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>conftest.er1
9687 ac_status=$?
9688 grep -v '^ *+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -z "$ac_c_werror_flag"
9694 || test ! -s conftest.err'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 (eval $ac_try) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; } &&
9700 { ac_try='test -s conftest$ac_exeext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_lib_Xbsd_main=yes
9707 else
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711 ac_cv_lib_Xbsd_main=no
9712 fi
9713 rm -f conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9716 fi
9717 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9718 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9719 if test $ac_cv_lib_Xbsd_main = yes; then
9720 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9721 fi
9722
9723
9724
9725 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9726 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9727 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730 ac_check_lib_save_LIBS=$LIBS
9731 LIBS="-lpthreads $LIBS"
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h. */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738
9739 /* Override any gcc2 internal prototype to avoid an error. */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9745 char cma_open ();
9746 int
9747 main ()
9748 {
9749 cma_open ();
9750 ;
9751 return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_lib_pthreads_cma_open=yes
9777 else
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 ac_cv_lib_pthreads_cma_open=no
9782 fi
9783 rm -f conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 LIBS=$ac_check_lib_save_LIBS
9786 fi
9787 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9788 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9789 if test $ac_cv_lib_pthreads_cma_open = yes; then
9790 cat >>confdefs.h <<_ACEOF
9791 #define HAVE_LIBPTHREADS 1
9792 _ACEOF
9793
9794 LIBS="-lpthreads $LIBS"
9795
9796 fi
9797
9798
9799 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9800 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9801 if test -d /usr/X386/include; then
9802 HAVE_XFREE386=yes
9803 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9804 else
9805 HAVE_XFREE386=no
9806 fi
9807 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9808 echo "${ECHO_T}$HAVE_XFREE386" >&6
9809
9810
9811 case ${host_os} in
9812 aix*)
9813 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9814 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9815 if test "${gdb_cv_bigtoc+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818
9819 case $GCC in
9820 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9821 *) gdb_cv_bigtoc=-bbigtoc ;;
9822 esac
9823
9824 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831
9832 int
9833 main ()
9834 {
9835 int i;
9836 ;
9837 return 0;
9838 }
9839 _ACEOF
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842 (eval $ac_link) 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
9849 { ac_try='test -z "$ac_c_werror_flag"
9850 || test ! -s conftest.err'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 (eval $ac_try) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; } &&
9856 { ac_try='test -s conftest$ac_exeext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 (eval $ac_try) 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9862 :
9863 else
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867 gdb_cv_bigtoc=
9868 fi
9869 rm -f conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871
9872 fi
9873 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9874 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9875 ;;
9876 esac
9877
9878 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9879 # used for the tests that follow. We set them back to REAL_CFLAGS and
9880 # REAL_CPPFLAGS later on.
9881
9882 REAL_CPPFLAGS="$CPPFLAGS"
9883
9884 if test "${HAVE_X11}" = "yes"; then
9885 DEFS="$C_SWITCH_X_SITE $DEFS"
9886 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9887 LIBS="$LIBX $LIBS"
9888 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9889 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9890
9891 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9892 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9893 # but it's more convenient here to set LD_RUN_PATH
9894 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9895 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9896 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9897 export LD_RUN_PATH
9898 fi
9899
9900 if test "${opsys}" = "gnu-linux"; then
9901 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9902 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909
9910 int
9911 main ()
9912 {
9913 XOpenDisplay ("foo");
9914 ;
9915 return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag"
9928 || test ! -s conftest.err'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; } &&
9934 { ac_try='test -s conftest$ac_exeext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 xlinux_first_failure=no
9941 else
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945 xlinux_first_failure=yes
9946 fi
9947 rm -f conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 if test "${xlinux_first_failure}" = "yes"; then
9950 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9951 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9952 OLD_CPPFLAGS="$CPPFLAGS"
9953 OLD_LIBS="$LIBS"
9954 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9955 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9956 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9957 LIBS="$LIBS -b i486-linuxaout"
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h. */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964
9965 int
9966 main ()
9967 {
9968 XOpenDisplay ("foo");
9969 ;
9970 return 0;
9971 }
9972 _ACEOF
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>conftest.er1
9976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try='test -z "$ac_c_werror_flag"
9983 || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 xlinux_second_failure=no
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000 xlinux_second_failure=yes
10001 fi
10002 rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 if test "${xlinux_second_failure}" = "yes"; then
10005 # If we get the same failure with -b, there is no use adding -b.
10006 # So take it out. This plays safe.
10007 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10008 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10009 CPPFLAGS="$OLD_CPPFLAGS"
10010 LIBS="$OLD_LIBS"
10011 echo "$as_me:$LINENO: result: no" >&5
10012 echo "${ECHO_T}no" >&6
10013 else
10014 echo "$as_me:$LINENO: result: yes" >&5
10015 echo "${ECHO_T}yes" >&6
10016 fi
10017 else
10018 echo "$as_me:$LINENO: result: no" >&5
10019 echo "${ECHO_T}no" >&6
10020 fi
10021 fi
10022
10023 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10024 # header files included from there.
10025 echo "$as_me:$LINENO: checking for Xkb" >&5
10026 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h. */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033 #include <X11/Xlib.h>
10034 #include <X11/XKBlib.h>
10035 int
10036 main ()
10037 {
10038 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10039 ;
10040 return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>conftest.er1
10046 ac_status=$?
10047 grep -v '^ *+' conftest.er1 >conftest.err
10048 rm -f conftest.er1
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag"
10053 || test ! -s conftest.err'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; } &&
10059 { ac_try='test -s conftest$ac_exeext'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10062 ac_status=$?
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; }; then
10065 emacs_xkb=yes
10066 else
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070 emacs_xkb=no
10071 fi
10072 rm -f conftest.err conftest.$ac_objext \
10073 conftest$ac_exeext conftest.$ac_ext
10074 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10075 echo "${ECHO_T}$emacs_xkb" >&6
10076 if test $emacs_xkb = yes; then
10077
10078 cat >>confdefs.h <<\_ACEOF
10079 #define HAVE_XKBGETKEYBOARD 1
10080 _ACEOF
10081
10082 fi
10083
10084
10085
10086
10087
10088 for ac_func in XrmSetDatabase XScreenResourceString \
10089 XScreenNumberOfScreen XSetWMProtocols
10090 do
10091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10092 echo "$as_me:$LINENO: checking for $ac_func" >&5
10093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10094 if eval "test \"\${$as_ac_var+set}\" = set"; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h. */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10105 #define $ac_func innocuous_$ac_func
10106
10107 /* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char $ac_func (); below.
10109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110 <limits.h> exists even on freestanding compilers. */
10111
10112 #ifdef __STDC__
10113 # include <limits.h>
10114 #else
10115 # include <assert.h>
10116 #endif
10117
10118 #undef $ac_func
10119
10120 /* Override any gcc2 internal prototype to avoid an error. */
10121 #ifdef __cplusplus
10122 extern "C"
10123 {
10124 #endif
10125 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10127 char $ac_func ();
10128 /* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10132 choke me
10133 #else
10134 char (*f) () = $ac_func;
10135 #endif
10136 #ifdef __cplusplus
10137 }
10138 #endif
10139
10140 int
10141 main ()
10142 {
10143 return f != $ac_func;
10144 ;
10145 return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>conftest.er1
10151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest$ac_exeext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 eval "$as_ac_var=yes"
10171 else
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 eval "$as_ac_var=no"
10176 fi
10177 rm -f conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 fi
10180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10182 if test `eval echo '${'$as_ac_var'}'` = yes; then
10183 cat >>confdefs.h <<_ACEOF
10184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10185 _ACEOF
10186
10187 fi
10188 done
10189
10190 fi
10191
10192 if test "${window_system}" = "x11"; then
10193 echo "$as_me:$LINENO: checking X11 version 6" >&5
10194 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10195 if test "${emacs_cv_x11_version_6+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #include <X11/Xlib.h>
10205 int
10206 main ()
10207 {
10208 #if XlibSpecificationRelease < 6
10209 fail;
10210 #endif
10211
10212 ;
10213 return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>conftest.er1
10219 ac_status=$?
10220 grep -v '^ *+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag"
10226 || test ! -s conftest.err'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; } &&
10232 { ac_try='test -s conftest$ac_exeext'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 emacs_cv_x11_version_6=yes
10239 else
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10242
10243 emacs_cv_x11_version_6=no
10244 fi
10245 rm -f conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 fi
10248
10249 if test $emacs_cv_x11_version_6 = yes; then
10250 echo "$as_me:$LINENO: result: 6 or newer" >&5
10251 echo "${ECHO_T}6 or newer" >&6
10252
10253 cat >>confdefs.h <<\_ACEOF
10254 #define HAVE_X11R6 1
10255 _ACEOF
10256
10257 else
10258 echo "$as_me:$LINENO: result: before 6" >&5
10259 echo "${ECHO_T}before 6" >&6
10260 fi
10261 fi
10262
10263 if test "${window_system}" = "x11"; then
10264 echo "$as_me:$LINENO: checking X11 version 5" >&5
10265 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10266 if test "${emacs_cv_x11_version_5+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269 cat >conftest.$ac_ext <<_ACEOF
10270 /* confdefs.h. */
10271 _ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 #include <X11/Xlib.h>
10276 int
10277 main ()
10278 {
10279 #if XlibSpecificationRelease < 5
10280 fail;
10281 #endif
10282
10283 ;
10284 return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 emacs_cv_x11_version_5=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 emacs_cv_x11_version_5=no
10315 fi
10316 rm -f conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 fi
10319
10320 if test $emacs_cv_x11_version_5 = yes; then
10321 echo "$as_me:$LINENO: result: 5 or newer" >&5
10322 echo "${ECHO_T}5 or newer" >&6
10323 HAVE_X11R5=yes
10324
10325 cat >>confdefs.h <<\_ACEOF
10326 #define HAVE_X11R5 1
10327 _ACEOF
10328
10329 else
10330 HAVE_X11R5=no
10331 echo "$as_me:$LINENO: result: before 5" >&5
10332 echo "${ECHO_T}before 5" >&6
10333 fi
10334 fi
10335
10336 HAVE_GTK=no
10337 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10338 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10339 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10340 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10341 { (exit 1); exit 1; }; };
10342 fi
10343 GLIB_REQUIRED=2.4
10344 GTK_REQUIRED=2.4
10345 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10346
10347 if test "X${with_pkg_config_prog}" != X; then
10348 PKG_CONFIG="${with_pkg_config_prog}"
10349 fi
10350
10351 succeeded=no
10352
10353 if test -z "$PKG_CONFIG"; then
10354 # Extract the first word of "pkg-config", so it can be a program name with args.
10355 set dummy pkg-config; ac_word=$2
10356 echo "$as_me:$LINENO: checking for $ac_word" >&5
10357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10358 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361 case $PKG_CONFIG in
10362 [\\/]* | ?:[\\/]*)
10363 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10364 ;;
10365 *)
10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in $PATH
10368 do
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10373 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10375 break 2
10376 fi
10377 done
10378 done
10379
10380 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10381 ;;
10382 esac
10383 fi
10384 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10385
10386 if test -n "$PKG_CONFIG"; then
10387 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10388 echo "${ECHO_T}$PKG_CONFIG" >&6
10389 else
10390 echo "$as_me:$LINENO: result: no" >&5
10391 echo "${ECHO_T}no" >&6
10392 fi
10393
10394 fi
10395
10396 if test "$PKG_CONFIG" = "no" ; then
10397 { { echo "$as_me:$LINENO: error:
10398 *** 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
10399 echo "$as_me: error:
10400 *** 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;}
10401 { (exit 1); exit 1; }; }
10402 else
10403 PKG_CONFIG_MIN_VERSION=0.9.0
10404 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10405 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10406 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10407
10408 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10409 echo "$as_me:$LINENO: result: yes" >&5
10410 echo "${ECHO_T}yes" >&6
10411 succeeded=yes
10412
10413 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10414 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10415 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10416 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10417 echo "${ECHO_T}$GTK_CFLAGS" >&6
10418
10419 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10420 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10421 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10422 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10423 echo "${ECHO_T}$GTK_LIBS" >&6
10424 else
10425 echo "$as_me:$LINENO: result: no" >&5
10426 echo "${ECHO_T}no" >&6
10427 GTK_CFLAGS=""
10428 GTK_LIBS=""
10429 ## If we have a custom action on failure, don't print errors, but
10430 ## do set a variable so people can do so.
10431 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10432 echo $GTK_PKG_ERRORS
10433 fi
10434
10435
10436
10437 else
10438 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10439 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10440 fi
10441 fi
10442
10443 if test $succeeded = yes; then
10444 :
10445 else
10446 { { 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
10447 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;}
10448 { (exit 1); exit 1; }; }
10449 fi
10450
10451
10452
10453 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10454 CFLAGS="$CFLAGS $GTK_CFLAGS"
10455 LIBS="$GTK_LIBS $LIBS"
10456 HAVE_GTK=yes
10457
10458 cat >>confdefs.h <<\_ACEOF
10459 #define HAVE_GTK 1
10460 _ACEOF
10461
10462 USE_X_TOOLKIT=none
10463
10464 if test "$with_toolkit_scroll_bars" != no; then
10465 with_toolkit_scroll_bars=yes
10466 fi
10467
10468 HAVE_GTK_MULTIDISPLAY=no
10469
10470 for ac_func in gdk_display_open
10471 do
10472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10473 echo "$as_me:$LINENO: checking for $ac_func" >&5
10474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10475 if eval "test \"\${$as_ac_var+set}\" = set"; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10486 #define $ac_func innocuous_$ac_func
10487
10488 /* System header to define __stub macros and hopefully few prototypes,
10489 which can conflict with char $ac_func (); below.
10490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10491 <limits.h> exists even on freestanding compilers. */
10492
10493 #ifdef __STDC__
10494 # include <limits.h>
10495 #else
10496 # include <assert.h>
10497 #endif
10498
10499 #undef $ac_func
10500
10501 /* Override any gcc2 internal prototype to avoid an error. */
10502 #ifdef __cplusplus
10503 extern "C"
10504 {
10505 #endif
10506 /* We use char because int might match the return type of a gcc2
10507 builtin and then its argument prototype would still apply. */
10508 char $ac_func ();
10509 /* The GNU C library defines this for functions which it implements
10510 to always fail with ENOSYS. Some functions are actually named
10511 something starting with __ and the normal name is an alias. */
10512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10513 choke me
10514 #else
10515 char (*f) () = $ac_func;
10516 #endif
10517 #ifdef __cplusplus
10518 }
10519 #endif
10520
10521 int
10522 main ()
10523 {
10524 return f != $ac_func;
10525 ;
10526 return 0;
10527 }
10528 _ACEOF
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531 (eval $ac_link) 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try='test -z "$ac_c_werror_flag"
10539 || test ! -s conftest.err'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 eval "$as_ac_var=yes"
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556 eval "$as_ac_var=no"
10557 fi
10558 rm -f conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 fi
10561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10563 if test `eval echo '${'$as_ac_var'}'` = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10566 _ACEOF
10567 HAVE_GTK_MULTIDISPLAY=yes
10568 fi
10569 done
10570
10571 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10572
10573 cat >>confdefs.h <<\_ACEOF
10574 #define HAVE_GTK_MULTIDISPLAY 1
10575 _ACEOF
10576
10577 fi
10578 HAVE_GTK_FILE_SELECTION=no
10579
10580 for ac_func in gtk_file_selection_new
10581 do
10582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10583 echo "$as_me:$LINENO: checking for $ac_func" >&5
10584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10585 if eval "test \"\${$as_ac_var+set}\" = set"; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588 cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h. */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10596 #define $ac_func innocuous_$ac_func
10597
10598 /* System header to define __stub macros and hopefully few prototypes,
10599 which can conflict with char $ac_func (); below.
10600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10601 <limits.h> exists even on freestanding compilers. */
10602
10603 #ifdef __STDC__
10604 # include <limits.h>
10605 #else
10606 # include <assert.h>
10607 #endif
10608
10609 #undef $ac_func
10610
10611 /* Override any gcc2 internal prototype to avoid an error. */
10612 #ifdef __cplusplus
10613 extern "C"
10614 {
10615 #endif
10616 /* We use char because int might match the return type of a gcc2
10617 builtin and then its argument prototype would still apply. */
10618 char $ac_func ();
10619 /* The GNU C library defines this for functions which it implements
10620 to always fail with ENOSYS. Some functions are actually named
10621 something starting with __ and the normal name is an alias. */
10622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10623 choke me
10624 #else
10625 char (*f) () = $ac_func;
10626 #endif
10627 #ifdef __cplusplus
10628 }
10629 #endif
10630
10631 int
10632 main ()
10633 {
10634 return f != $ac_func;
10635 ;
10636 return 0;
10637 }
10638 _ACEOF
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>conftest.er1
10642 ac_status=$?
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -z "$ac_c_werror_flag"
10649 || test ! -s conftest.err'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; } &&
10655 { ac_try='test -s conftest$ac_exeext'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }; then
10661 eval "$as_ac_var=yes"
10662 else
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10665
10666 eval "$as_ac_var=no"
10667 fi
10668 rm -f conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 fi
10671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10673 if test `eval echo '${'$as_ac_var'}'` = yes; then
10674 cat >>confdefs.h <<_ACEOF
10675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10676 _ACEOF
10677 HAVE_GTK_FILE_SELECTION=yes
10678 fi
10679 done
10680
10681
10682 HAVE_GTK_FILE_CHOOSER=no
10683
10684 for ac_func in gtk_file_chooser_dialog_new
10685 do
10686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10687 echo "$as_me:$LINENO: checking for $ac_func" >&5
10688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10689 if eval "test \"\${$as_ac_var+set}\" = set"; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h. */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10700 #define $ac_func innocuous_$ac_func
10701
10702 /* System header to define __stub macros and hopefully few prototypes,
10703 which can conflict with char $ac_func (); below.
10704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10705 <limits.h> exists even on freestanding compilers. */
10706
10707 #ifdef __STDC__
10708 # include <limits.h>
10709 #else
10710 # include <assert.h>
10711 #endif
10712
10713 #undef $ac_func
10714
10715 /* Override any gcc2 internal prototype to avoid an error. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 {
10719 #endif
10720 /* We use char because int might match the return type of a gcc2
10721 builtin and then its argument prototype would still apply. */
10722 char $ac_func ();
10723 /* The GNU C library defines this for functions which it implements
10724 to always fail with ENOSYS. Some functions are actually named
10725 something starting with __ and the normal name is an alias. */
10726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10727 choke me
10728 #else
10729 char (*f) () = $ac_func;
10730 #endif
10731 #ifdef __cplusplus
10732 }
10733 #endif
10734
10735 int
10736 main ()
10737 {
10738 return f != $ac_func;
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10745 (eval $ac_link) 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag"
10753 || test ! -s conftest.err'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 eval "$as_ac_var=yes"
10766 else
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 eval "$as_ac_var=no"
10771 fi
10772 rm -f conftest.err conftest.$ac_objext \
10773 conftest$ac_exeext conftest.$ac_ext
10774 fi
10775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10777 if test `eval echo '${'$as_ac_var'}'` = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10780 _ACEOF
10781 HAVE_GTK_FILE_CHOOSER=yes
10782 fi
10783 done
10784
10785
10786 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10787 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10788
10789 cat >>confdefs.h <<\_ACEOF
10790 #define HAVE_GTK_FILE_BOTH 1
10791 _ACEOF
10792
10793 fi
10794
10795 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10796 HAVE_GTK_AND_PTHREAD=no
10797
10798 for ac_header in pthread.h
10799 do
10800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802 echo "$as_me:$LINENO: checking for $ac_header" >&5
10803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 fi
10807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10809 else
10810 # Is the header compilable?
10811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 $ac_includes_default
10820 #include <$ac_header>
10821 _ACEOF
10822 rm -f conftest.$ac_objext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10824 (eval $ac_compile) 2>conftest.er1
10825 ac_status=$?
10826 grep -v '^ *+' conftest.er1 >conftest.err
10827 rm -f conftest.er1
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try='test -z "$ac_c_werror_flag"
10832 || test ! -s conftest.err'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10835 ac_status=$?
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; } &&
10838 { ac_try='test -s conftest.$ac_objext'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ac_header_compiler=yes
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 ac_header_compiler=no
10850 fi
10851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10853 echo "${ECHO_T}$ac_header_compiler" >&6
10854
10855 # Is the header present?
10856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h. */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <$ac_header>
10865 _ACEOF
10866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } >/dev/null; then
10874 if test -s conftest.err; then
10875 ac_cpp_err=$ac_c_preproc_warn_flag
10876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10877 else
10878 ac_cpp_err=
10879 fi
10880 else
10881 ac_cpp_err=yes
10882 fi
10883 if test -z "$ac_cpp_err"; then
10884 ac_header_preproc=yes
10885 else
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10888
10889 ac_header_preproc=no
10890 fi
10891 rm -f conftest.err conftest.$ac_ext
10892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893 echo "${ECHO_T}$ac_header_preproc" >&6
10894
10895 # So? What about this header?
10896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10897 yes:no: )
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902 ac_header_preproc=yes
10903 ;;
10904 no:yes:* )
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10917 (
10918 cat <<\_ASBOX
10919 ## ------------------------------------------ ##
10920 ## Report this to the AC_PACKAGE_NAME lists. ##
10921 ## ------------------------------------------ ##
10922 _ASBOX
10923 ) |
10924 sed "s/^/$as_me: WARNING: /" >&2
10925 ;;
10926 esac
10927 echo "$as_me:$LINENO: checking for $ac_header" >&5
10928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931 else
10932 eval "$as_ac_Header=\$ac_header_preproc"
10933 fi
10934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10936
10937 fi
10938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10939 cat >>confdefs.h <<_ACEOF
10940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10941 _ACEOF
10942
10943 fi
10944
10945 done
10946
10947 if test "$ac_cv_header_pthread_h"; then
10948 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10949 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10950 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953 ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-lpthread $LIBS"
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961
10962 /* Override any gcc2 internal prototype to avoid an error. */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 /* We use char because int might match the return type of a gcc2
10967 builtin and then its argument prototype would still apply. */
10968 char pthread_self ();
10969 int
10970 main ()
10971 {
10972 pthread_self ();
10973 ;
10974 return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10979 (eval $ac_link) 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -z "$ac_c_werror_flag"
10987 || test ! -s conftest.err'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
10993 { ac_try='test -s conftest$ac_exeext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_lib_pthread_pthread_self=yes
11000 else
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004 ac_cv_lib_pthread_pthread_self=no
11005 fi
11006 rm -f conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11009 fi
11010 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11011 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11012 if test $ac_cv_lib_pthread_pthread_self = yes; then
11013 HAVE_GTK_AND_PTHREAD=yes
11014 fi
11015
11016 fi
11017 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11018 GTK_LIBS="$GTK_LIBS -lpthread"
11019
11020 cat >>confdefs.h <<\_ACEOF
11021 #define HAVE_GTK_AND_PTHREAD 1
11022 _ACEOF
11023
11024 fi
11025 fi
11026 fi
11027
11028 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11029 if test x"${HAVE_X11R5}" = xyes; then
11030 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11031 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11032 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034 else
11035 cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h. */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041
11042 #include <X11/Intrinsic.h>
11043 #include <X11/Xaw/Simple.h>
11044 int
11045 main ()
11046 {
11047
11048 ;
11049 return 0;
11050 }
11051 _ACEOF
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11054 (eval $ac_link) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag"
11062 || test ! -s conftest.err'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; } &&
11068 { ac_try='test -s conftest$ac_exeext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 emacs_cv_x11_version_5_with_xaw=yes
11075 else
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11078
11079 emacs_cv_x11_version_5_with_xaw=no
11080 fi
11081 rm -f conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 fi
11084
11085 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11086 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11087 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11088 USE_X_TOOLKIT=LUCID
11089 else
11090 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11091 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11092 USE_X_TOOLKIT=none
11093 fi
11094 else
11095 USE_X_TOOLKIT=none
11096 fi
11097 fi
11098
11099 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11100
11101 if test "${USE_X_TOOLKIT}" != "none"; then
11102 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11103 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11104 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h. */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 #include <X11/Intrinsic.h>
11114 int
11115 main ()
11116 {
11117 #if XtSpecificationRelease < 6
11118 fail;
11119 #endif
11120
11121 ;
11122 return 0;
11123 }
11124 _ACEOF
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>conftest.er1
11128 ac_status=$?
11129 grep -v '^ *+' conftest.er1 >conftest.err
11130 rm -f conftest.er1
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_c_werror_flag"
11135 || test ! -s conftest.err'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest$ac_exeext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 emacs_cv_x11_toolkit_version_6=yes
11148 else
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 emacs_cv_x11_toolkit_version_6=no
11153 fi
11154 rm -f conftest.err conftest.$ac_objext \
11155 conftest$ac_exeext conftest.$ac_ext
11156 fi
11157
11158 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11159 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11160 echo "$as_me:$LINENO: result: 6 or newer" >&5
11161 echo "${ECHO_T}6 or newer" >&6
11162
11163 cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_X11XTR6 1
11165 _ACEOF
11166
11167 else
11168 echo "$as_me:$LINENO: result: before 6" >&5
11169 echo "${ECHO_T}before 6" >&6
11170 fi
11171
11172 OLDLIBS="$LIBS"
11173 if test x$HAVE_X11XTR6 = xyes; then
11174 LIBS="-lXt -lSM -lICE $LIBS"
11175 else
11176 LIBS="-lXt $LIBS"
11177 fi
11178
11179 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11180 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11181 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184 ac_check_lib_save_LIBS=$LIBS
11185 LIBS="-lXmu $LIBS"
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192
11193 /* Override any gcc2 internal prototype to avoid an error. */
11194 #ifdef __cplusplus
11195 extern "C"
11196 #endif
11197 /* We use char because int might match the return type of a gcc2
11198 builtin and then its argument prototype would still apply. */
11199 char XmuConvertStandardSelection ();
11200 int
11201 main ()
11202 {
11203 XmuConvertStandardSelection ();
11204 ;
11205 return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -z "$ac_c_werror_flag"
11218 || test ! -s conftest.err'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try='test -s conftest$ac_exeext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11236 fi
11237 rm -f conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext conftest.$ac_ext
11239 LIBS=$ac_check_lib_save_LIBS
11240 fi
11241 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11242 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11243 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11244 cat >>confdefs.h <<_ACEOF
11245 #define HAVE_LIBXMU 1
11246 _ACEOF
11247
11248 LIBS="-lXmu $LIBS"
11249
11250 fi
11251
11252 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11253 fi
11254
11255 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11256 if test "${HAVE_X11}" = "yes"; then
11257 if test "${USE_X_TOOLKIT}" != "none"; then
11258
11259 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11260 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11261 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11264 ac_check_lib_save_LIBS=$LIBS
11265 LIBS="-lXext $LIBS"
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272
11273 /* Override any gcc2 internal prototype to avoid an error. */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 /* We use char because int might match the return type of a gcc2
11278 builtin and then its argument prototype would still apply. */
11279 char XShapeQueryExtension ();
11280 int
11281 main ()
11282 {
11283 XShapeQueryExtension ();
11284 ;
11285 return 0;
11286 }
11287 _ACEOF
11288 rm -f conftest.$ac_objext conftest$ac_exeext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>conftest.er1
11291 ac_status=$?
11292 grep -v '^ *+' conftest.er1 >conftest.err
11293 rm -f conftest.er1
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } &&
11297 { ac_try='test -z "$ac_c_werror_flag"
11298 || test ! -s conftest.err'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; } &&
11304 { ac_try='test -s conftest$ac_exeext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_cv_lib_Xext_XShapeQueryExtension=yes
11311 else
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315 ac_cv_lib_Xext_XShapeQueryExtension=no
11316 fi
11317 rm -f conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11320 fi
11321 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11322 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11323 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11324 cat >>confdefs.h <<_ACEOF
11325 #define HAVE_LIBXEXT 1
11326 _ACEOF
11327
11328 LIBS="-lXext $LIBS"
11329
11330 fi
11331
11332 fi
11333 fi
11334
11335 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11336 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11337 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11338 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h. */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 #include <Xm/Xm.h>
11348 int
11349 main ()
11350 {
11351 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11352 int x = 5;
11353 #else
11354 Motif version prior to 2.1.
11355 #endif
11356 ;
11357 return 0;
11358 }
11359 _ACEOF
11360 rm -f conftest.$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag"
11370 || test ! -s conftest.err'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try='test -s conftest.$ac_objext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 emacs_cv_motif_version_2_1=yes
11383 else
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11386
11387 emacs_cv_motif_version_2_1=no
11388 fi
11389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11390 fi
11391 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11392 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11393 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11394 if test $emacs_cv_motif_version_2_1 = yes; then
11395 HAVE_LIBXP=no
11396
11397 cat >>confdefs.h <<\_ACEOF
11398 #define HAVE_MOTIF_2_1 1
11399 _ACEOF
11400
11401 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11402 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11403 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406 ac_check_lib_save_LIBS=$LIBS
11407 LIBS="-lXp $LIBS"
11408 cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h. */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11414
11415 /* Override any gcc2 internal prototype to avoid an error. */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 /* We use char because int might match the return type of a gcc2
11420 builtin and then its argument prototype would still apply. */
11421 char XpCreateContext ();
11422 int
11423 main ()
11424 {
11425 XpCreateContext ();
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11432 (eval $ac_link) 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag"
11440 || test ! -s conftest.err'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest$ac_exeext'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 ac_cv_lib_Xp_XpCreateContext=yes
11453 else
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11456
11457 ac_cv_lib_Xp_XpCreateContext=no
11458 fi
11459 rm -f conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext conftest.$ac_ext
11461 LIBS=$ac_check_lib_save_LIBS
11462 fi
11463 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11464 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11465 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11466 HAVE_LIBXP=yes
11467 fi
11468
11469 if test ${HAVE_LIBXP} = yes; then
11470
11471 cat >>confdefs.h <<\_ACEOF
11472 #define HAVE_LIBXP 1
11473 _ACEOF
11474
11475 fi
11476 else
11477 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11478 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11479 if test "${emacs_cv_lesstif+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482 # We put this in CFLAGS temporarily to precede other -I options
11483 # that might be in CFLAGS temporarily.
11484 # We put this in CPPFLAGS where it precedes the other -I options.
11485 OLD_CPPFLAGS=$CPPFLAGS
11486 OLD_CFLAGS=$CFLAGS
11487 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11488 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11496 int
11497 main ()
11498 {
11499 int x = 5;
11500 ;
11501 return 0;
11502 }
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11506 (eval $ac_compile) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -z "$ac_c_werror_flag"
11514 || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest.$ac_objext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 emacs_cv_lesstif=yes
11527 else
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531 emacs_cv_lesstif=no
11532 fi
11533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11534 fi
11535 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11536 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11537 if test $emacs_cv_lesstif = yes; then
11538 # Make sure this -I option remains in CPPFLAGS after it is set
11539 # back to REAL_CPPFLAGS.
11540 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11541 # have those other -I options anyway. Ultimately, having this
11542 # directory ultimately in CPPFLAGS will be enough.
11543 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11544 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11545 else
11546 CFLAGS=$OLD_CFLAGS
11547 CPPFLAGS=$OLD_CPPFLAGS
11548 fi
11549 fi
11550 fi
11551
11552 ### Is -lXaw3d available?
11553 HAVE_XAW3D=no
11554 if test "${HAVE_X11}" = "yes"; then
11555 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11556 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11557 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11558 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561 cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h. */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 #include <X11/Xaw3d/Scrollbar.h>
11568 _ACEOF
11569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11571 ac_status=$?
11572 grep -v '^ *+' conftest.er1 >conftest.err
11573 rm -f conftest.er1
11574 cat conftest.err >&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } >/dev/null; then
11577 if test -s conftest.err; then
11578 ac_cpp_err=$ac_c_preproc_warn_flag
11579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11580 else
11581 ac_cpp_err=
11582 fi
11583 else
11584 ac_cpp_err=yes
11585 fi
11586 if test -z "$ac_cpp_err"; then
11587 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11591
11592 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11593 fi
11594 rm -f conftest.err conftest.$ac_ext
11595 fi
11596 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11597 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11598 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11599 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11600 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11601 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604 ac_check_lib_save_LIBS=$LIBS
11605 LIBS="-lXaw3d $LIBS"
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612
11613 /* Override any gcc2 internal prototype to avoid an error. */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 /* We use char because int might match the return type of a gcc2
11618 builtin and then its argument prototype would still apply. */
11619 char XawScrollbarSetThumb ();
11620 int
11621 main ()
11622 {
11623 XawScrollbarSetThumb ();
11624 ;
11625 return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630 (eval $ac_link) 2>conftest.er1
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag"
11638 || test ! -s conftest.err'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11656 fi
11657 rm -f conftest.err conftest.$ac_objext \
11658 conftest$ac_exeext conftest.$ac_ext
11659 LIBS=$ac_check_lib_save_LIBS
11660 fi
11661 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11662 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11663 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11664 HAVE_XAW3D=yes
11665 fi
11666
11667 fi
11668
11669
11670 if test "${HAVE_XAW3D}" = "yes"; then
11671
11672 cat >>confdefs.h <<\_ACEOF
11673 #define HAVE_XAW3D 1
11674 _ACEOF
11675
11676 fi
11677 fi
11678 fi
11679
11680
11681
11682 USE_TOOLKIT_SCROLL_BARS=no
11683 if test "${with_toolkit_scroll_bars}" != "no"; then
11684 if test "${USE_X_TOOLKIT}" != "none"; then
11685 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11686 cat >>confdefs.h <<\_ACEOF
11687 #define USE_TOOLKIT_SCROLL_BARS 1
11688 _ACEOF
11689
11690 HAVE_XAW3D=no
11691 USE_TOOLKIT_SCROLL_BARS=yes
11692 elif test "${HAVE_XAW3D}" = "yes"; then
11693 cat >>confdefs.h <<\_ACEOF
11694 #define USE_TOOLKIT_SCROLL_BARS 1
11695 _ACEOF
11696
11697 USE_TOOLKIT_SCROLL_BARS=yes
11698 fi
11699 elif test "${HAVE_GTK}" = "yes"; then
11700 cat >>confdefs.h <<\_ACEOF
11701 #define USE_TOOLKIT_SCROLL_BARS 1
11702 _ACEOF
11703
11704 USE_TOOLKIT_SCROLL_BARS=yes
11705 elif test "${HAVE_CARBON}" = "yes"; then
11706 cat >>confdefs.h <<\_ACEOF
11707 #define USE_TOOLKIT_SCROLL_BARS 1
11708 _ACEOF
11709
11710 USE_TOOLKIT_SCROLL_BARS=yes
11711 fi
11712 fi
11713
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h. */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11720
11721 #include <X11/Xlib.h>
11722 #include <X11/Xresource.h>
11723 int
11724 main ()
11725 {
11726 XIMProc callback;
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 HAVE_XIM=yes
11754
11755 cat >>confdefs.h <<\_ACEOF
11756 #define HAVE_XIM 1
11757 _ACEOF
11758
11759 else
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11762
11763 HAVE_XIM=no
11764 fi
11765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11766
11767
11768 if test "${with_xim}" != "no"; then
11769
11770 cat >>confdefs.h <<\_ACEOF
11771 #define USE_XIM 1
11772 _ACEOF
11773
11774 fi
11775
11776
11777 if test "${HAVE_XIM}" != "no"; then
11778 late_CFLAGS=$CFLAGS
11779 if test "$GCC" = yes; then
11780 CFLAGS="$CFLAGS --pedantic-errors"
11781 fi
11782 cat >conftest.$ac_ext <<_ACEOF
11783 /* confdefs.h. */
11784 _ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11788
11789 #include <X11/Xlib.h>
11790 #include <X11/Xresource.h>
11791 int
11792 main ()
11793 {
11794 Display *display;
11795 XrmDatabase db;
11796 char *res_name;
11797 char *res_class;
11798 XIMProc callback;
11799 XPointer *client_data;
11800 #ifndef __GNUC__
11801 /* If we're not using GCC, it's probably not XFree86, and this is
11802 probably right, but we can't use something like --pedantic-errors. */
11803 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11804 char*, XIMProc, XPointer*);
11805 #endif
11806 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11807 client_data);
11808 ;
11809 return 0;
11810 }
11811 _ACEOF
11812 rm -f conftest.$ac_objext
11813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11814 (eval $ac_compile) 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag"
11822 || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 emacs_cv_arg6_star=yes
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 fi
11840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11841
11842 if test "$emacs_cv_arg6_star" = yes; then
11843 cat >>confdefs.h <<\_ACEOF
11844 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11845 _ACEOF
11846
11847 else
11848 cat >>confdefs.h <<\_ACEOF
11849 #define XRegisterIMInstantiateCallback_arg6 XPointer
11850 _ACEOF
11851
11852 fi
11853 CFLAGS=$late_CFLAGS
11854 fi
11855
11856 ### For font-backend
11857 if test "${USE_FONT_BACKEND}" = "yes"; then
11858
11859
11860 cat >>confdefs.h <<\_ACEOF
11861 #define USE_FONT_BACKEND 1
11862 _ACEOF
11863
11864
11865 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
11866 HAVE_XFT=maybe
11867 if test "${HAVE_X11}" = "yes"; then
11868 if test "x${with_freetype}" = "xno"; then
11869 with_xft="no";
11870 fi
11871 if test "x${with_xft}" != "xno"; then
11872
11873 if test "X${with_pkg_config_prog}" != X; then
11874 PKG_CONFIG="${with_pkg_config_prog}"
11875 fi
11876
11877
11878 succeeded=no
11879
11880 if test -z "$PKG_CONFIG"; then
11881 # Extract the first word of "pkg-config", so it can be a program name with args.
11882 set dummy pkg-config; ac_word=$2
11883 echo "$as_me:$LINENO: checking for $ac_word" >&5
11884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11885 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 else
11888 case $PKG_CONFIG in
11889 [\\/]* | ?:[\\/]*)
11890 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11891 ;;
11892 *)
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894 for as_dir in $PATH
11895 do
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
11898 for ac_exec_ext in '' $ac_executable_extensions; do
11899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11900 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11902 break 2
11903 fi
11904 done
11905 done
11906
11907 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11908 ;;
11909 esac
11910 fi
11911 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11912
11913 if test -n "$PKG_CONFIG"; then
11914 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11915 echo "${ECHO_T}$PKG_CONFIG" >&6
11916 else
11917 echo "$as_me:$LINENO: result: no" >&5
11918 echo "${ECHO_T}no" >&6
11919 fi
11920
11921 fi
11922
11923 if test "$PKG_CONFIG" = "no" ; then
11924 echo "*** The pkg-config script could not be found. Make sure it is"
11925 echo "*** in your path, or give the full path to pkg-config with"
11926 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
11927 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11928 else
11929 PKG_CONFIG_MIN_VERSION=0.9.0
11930 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11931 echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11932 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6
11933
11934 if $PKG_CONFIG --exists "xft >= 0.13.0" ; then
11935 echo "$as_me:$LINENO: result: yes" >&5
11936 echo "${ECHO_T}yes" >&6
11937 succeeded=yes
11938
11939 echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11940 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6
11941 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11942 echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11943 echo "${ECHO_T}$XFT_CFLAGS" >&6
11944
11945 echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11946 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6
11947 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11948 echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11949 echo "${ECHO_T}$XFT_LIBS" >&6
11950 else
11951 XFT_CFLAGS=""
11952 XFT_LIBS=""
11953 ## If we have a custom action on failure, don't print errors, but
11954 ## do set a variable so people can do so.
11955 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11956
11957 fi
11958
11959
11960
11961 else
11962 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11963 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11964 fi
11965 fi
11966
11967 if test $succeeded = yes; then
11968 :
11969 else
11970 HAVE_XFT=no
11971 fi
11972
11973 if test "$HAVE_XFT" != no; then
11974 OLD_CPPFLAGS="$CPPFLAGS"
11975 OLD_CFLAGS="$CFLAGS"
11976 OLD_LIBS="$LIBS"
11977 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11978 CFLAGS="$CFLAGS $XFT_CFLAGS"
11979 LIBS="$XFT_LIBS $LIBS"
11980 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11981 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11982 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
11983 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 fi
11986 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11987 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
11988 else
11989 # Is the header compilable?
11990 echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11991 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h. */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 $ac_includes_default
11999 #include <X11/Xft/Xft.h>
12000 _ACEOF
12001 rm -f conftest.$ac_objext
12002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12003 (eval $ac_compile) 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag"
12011 || test ! -s conftest.err'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest.$ac_objext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 ac_header_compiler=yes
12024 else
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028 ac_header_compiler=no
12029 fi
12030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12032 echo "${ECHO_T}$ac_header_compiler" >&6
12033
12034 # Is the header present?
12035 echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12036 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 #include <X11/Xft/Xft.h>
12044 _ACEOF
12045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12047 ac_status=$?
12048 grep -v '^ *+' conftest.er1 >conftest.err
12049 rm -f conftest.er1
12050 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } >/dev/null; then
12053 if test -s conftest.err; then
12054 ac_cpp_err=$ac_c_preproc_warn_flag
12055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12056 else
12057 ac_cpp_err=
12058 fi
12059 else
12060 ac_cpp_err=yes
12061 fi
12062 if test -z "$ac_cpp_err"; then
12063 ac_header_preproc=yes
12064 else
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 ac_header_preproc=no
12069 fi
12070 rm -f conftest.err conftest.$ac_ext
12071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12072 echo "${ECHO_T}$ac_header_preproc" >&6
12073
12074 # So? What about this header?
12075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12076 yes:no: )
12077 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12078 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12080 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12081 ac_header_preproc=yes
12082 ;;
12083 no:yes:* )
12084 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12085 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12087 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12089 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12091 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12093 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12095 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12096 (
12097 cat <<\_ASBOX
12098 ## ------------------------------------------ ##
12099 ## Report this to the AC_PACKAGE_NAME lists. ##
12100 ## ------------------------------------------ ##
12101 _ASBOX
12102 ) |
12103 sed "s/^/$as_me: WARNING: /" >&2
12104 ;;
12105 esac
12106 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12107 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
12108 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12112 fi
12113 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12114 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
12115
12116 fi
12117 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12118 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12119 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
12120 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123 ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-lXft $XFT_LIBS $LIBS"
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 /* We use char because int might match the return type of a gcc2
12137 builtin and then its argument prototype would still apply. */
12138 char XftFontOpen ();
12139 int
12140 main ()
12141 {
12142 XftFontOpen ();
12143 ;
12144 return 0;
12145 }
12146 _ACEOF
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12149 (eval $ac_link) 2>conftest.er1
12150 ac_status=$?
12151 grep -v '^ *+' conftest.er1 >conftest.err
12152 rm -f conftest.er1
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -z "$ac_c_werror_flag"
12157 || test ! -s conftest.err'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try='test -s conftest$ac_exeext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_cv_lib_Xft_XftFontOpen=yes
12170 else
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12173
12174 ac_cv_lib_Xft_XftFontOpen=no
12175 fi
12176 rm -f conftest.err conftest.$ac_objext \
12177 conftest$ac_exeext conftest.$ac_ext
12178 LIBS=$ac_check_lib_save_LIBS
12179 fi
12180 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12181 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
12182 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12183 HAVE_XFT=yes
12184 fi
12185
12186 fi
12187
12188
12189
12190 if test "${HAVE_XFT}" = "yes"; then
12191
12192 cat >>confdefs.h <<\_ACEOF
12193 #define HAVE_XFT 1
12194 _ACEOF
12195
12196
12197 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12198 else
12199 CFLAGS="$OLD_CPPFLAGS"
12200 CFLAGS="$OLD_CFLAGS"
12201 LIBS="$OLD_LIBS"
12202 fi
12203 fi
12204 fi
12205 fi
12206
12207 HAVE_FREETYPE=no
12208 ### Use -lfreetype if available, unless `--with-freetype=no'.
12209 if test "${HAVE_XFT}" = "yes"; then
12210 HAVE_FREETYPE=yes
12211 elif test "x${with_freetype}" != "xno"; then
12212 if test "X${with_pkg_config_prog}" != X; then
12213 PKG_CONFIG="${with_pkg_config_prog}"
12214 fi
12215
12216
12217 succeeded=no
12218
12219 if test -z "$PKG_CONFIG"; then
12220 # Extract the first word of "pkg-config", so it can be a program name with args.
12221 set dummy pkg-config; ac_word=$2
12222 echo "$as_me:$LINENO: checking for $ac_word" >&5
12223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12224 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227 case $PKG_CONFIG in
12228 [\\/]* | ?:[\\/]*)
12229 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12230 ;;
12231 *)
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12234 do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12242 fi
12243 done
12244 done
12245
12246 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12247 ;;
12248 esac
12249 fi
12250 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12251
12252 if test -n "$PKG_CONFIG"; then
12253 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12254 echo "${ECHO_T}$PKG_CONFIG" >&6
12255 else
12256 echo "$as_me:$LINENO: result: no" >&5
12257 echo "${ECHO_T}no" >&6
12258 fi
12259
12260 fi
12261
12262 if test "$PKG_CONFIG" = "no" ; then
12263 echo "*** The pkg-config script could not be found. Make sure it is"
12264 echo "*** in your path, or give the full path to pkg-config with"
12265 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12266 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12267 else
12268 PKG_CONFIG_MIN_VERSION=0.9.0
12269 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12270 echo "$as_me:$LINENO: checking for freetype2" >&5
12271 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12272
12273 if $PKG_CONFIG --exists "freetype2" ; then
12274 echo "$as_me:$LINENO: result: yes" >&5
12275 echo "${ECHO_T}yes" >&6
12276 succeeded=yes
12277
12278 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12279 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6
12280 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12281 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12282 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6
12283
12284 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12285 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6
12286 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12287 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12288 echo "${ECHO_T}$FREETYPE_LIBS" >&6
12289 else
12290 FREETYPE_CFLAGS=""
12291 FREETYPE_LIBS=""
12292 ## If we have a custom action on failure, don't print errors, but
12293 ## do set a variable so people can do so.
12294 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12295
12296 fi
12297
12298
12299
12300 else
12301 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12302 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12303 fi
12304 fi
12305
12306 if test $succeeded = yes; then
12307 HAVE_FREETYPE=yes
12308 else
12309 HAVE_FREETYPE=no
12310 fi
12311
12312 if test "${HAVE_FREETYPE}" = "yes"; then
12313
12314 succeeded=no
12315
12316 if test -z "$PKG_CONFIG"; then
12317 # Extract the first word of "pkg-config", so it can be a program name with args.
12318 set dummy pkg-config; ac_word=$2
12319 echo "$as_me:$LINENO: checking for $ac_word" >&5
12320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12321 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324 case $PKG_CONFIG in
12325 [\\/]* | ?:[\\/]*)
12326 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12327 ;;
12328 *)
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12331 do
12332 IFS=$as_save_IFS
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12336 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 break 2
12339 fi
12340 done
12341 done
12342
12343 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12344 ;;
12345 esac
12346 fi
12347 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12348
12349 if test -n "$PKG_CONFIG"; then
12350 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12351 echo "${ECHO_T}$PKG_CONFIG" >&6
12352 else
12353 echo "$as_me:$LINENO: result: no" >&5
12354 echo "${ECHO_T}no" >&6
12355 fi
12356
12357 fi
12358
12359 if test "$PKG_CONFIG" = "no" ; then
12360 echo "*** The pkg-config script could not be found. Make sure it is"
12361 echo "*** in your path, or give the full path to pkg-config with"
12362 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12363 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12364 else
12365 PKG_CONFIG_MIN_VERSION=0.9.0
12366 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12367 echo "$as_me:$LINENO: checking for fontconfig" >&5
12368 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6
12369
12370 if $PKG_CONFIG --exists "fontconfig" ; then
12371 echo "$as_me:$LINENO: result: yes" >&5
12372 echo "${ECHO_T}yes" >&6
12373 succeeded=yes
12374
12375 echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12376 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6
12377 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"`
12378 echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12379 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6
12380
12381 echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12382 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6
12383 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"`
12384 echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12385 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6
12386 else
12387 FONTCONFIG_CFLAGS=""
12388 FONTCONFIG_LIBS=""
12389 ## If we have a custom action on failure, don't print errors, but
12390 ## do set a variable so people can do so.
12391 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12392
12393 fi
12394
12395
12396
12397 else
12398 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12399 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12400 fi
12401 fi
12402
12403 if test $succeeded = yes; then
12404 HAVE_FC=yes
12405 else
12406 HAVE_FC=no
12407 fi
12408
12409 if test "${HAVE_FC}" = "no"; then
12410 HAVE_FREETYPE=no
12411 fi
12412 fi
12413 fi
12414 if test "${HAVE_FREETYPE}" = "yes"; then
12415
12416 cat >>confdefs.h <<\_ACEOF
12417 #define HAVE_FREETYPE 1
12418 _ACEOF
12419
12420 # Extract the first word of "libotf-config", so it can be a program name with args.
12421 set dummy libotf-config; ac_word=$2
12422 echo "$as_me:$LINENO: checking for $ac_word" >&5
12423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12424 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 else
12427 if test -n "$HAVE_LIBOTF"; then
12428 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
12429 else
12430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12431 for as_dir in $PATH
12432 do
12433 IFS=$as_save_IFS
12434 test -z "$as_dir" && as_dir=.
12435 for ac_exec_ext in '' $ac_executable_extensions; do
12436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12437 ac_cv_prog_HAVE_LIBOTF="yes"
12438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12439 break 2
12440 fi
12441 done
12442 done
12443
12444 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
12445 fi
12446 fi
12447 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
12448 if test -n "$HAVE_LIBOTF"; then
12449 echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
12450 echo "${ECHO_T}$HAVE_LIBOTF" >&6
12451 else
12452 echo "$as_me:$LINENO: result: no" >&5
12453 echo "${ECHO_T}no" >&6
12454 fi
12455
12456 if test "${HAVE_LIBOTF}" = "yes"; then
12457
12458 cat >>confdefs.h <<\_ACEOF
12459 #define HAVE_LIBOTF 1
12460 _ACEOF
12461
12462 LIBOTF_CFLAGS=`libotf-config --cflags`
12463 LIBOTF_LIBS=`libotf-config --libs`
12464 fi
12465 fi
12466
12467
12468
12469
12470
12471
12472
12473 fi
12474
12475 ### Use -lXpm if available, unless `--with-xpm=no'.
12476 HAVE_XPM=no
12477 if test "${HAVE_X11}" = "yes"; then
12478 if test "${with_xpm}" != "no"; then
12479 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12480 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12481 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12482 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 fi
12485 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12486 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12487 else
12488 # Is the header compilable?
12489 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12490 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
12491 cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h. */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 $ac_includes_default
12498 #include <X11/xpm.h>
12499 _ACEOF
12500 rm -f conftest.$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_header_compiler=yes
12523 else
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527 ac_header_compiler=no
12528 fi
12529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12531 echo "${ECHO_T}$ac_header_compiler" >&6
12532
12533 # Is the header present?
12534 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12535 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h. */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 #include <X11/xpm.h>
12543 _ACEOF
12544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } >/dev/null; then
12552 if test -s conftest.err; then
12553 ac_cpp_err=$ac_c_preproc_warn_flag
12554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12555 else
12556 ac_cpp_err=
12557 fi
12558 else
12559 ac_cpp_err=yes
12560 fi
12561 if test -z "$ac_cpp_err"; then
12562 ac_header_preproc=yes
12563 else
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_header_preproc=no
12568 fi
12569 rm -f conftest.err conftest.$ac_ext
12570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12571 echo "${ECHO_T}$ac_header_preproc" >&6
12572
12573 # So? What about this header?
12574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12575 yes:no: )
12576 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12577 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12579 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12580 ac_header_preproc=yes
12581 ;;
12582 no:yes:* )
12583 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12584 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12586 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12588 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12590 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12592 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12594 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12595 (
12596 cat <<\_ASBOX
12597 ## ------------------------------------------ ##
12598 ## Report this to the AC_PACKAGE_NAME lists. ##
12599 ## ------------------------------------------ ##
12600 _ASBOX
12601 ) |
12602 sed "s/^/$as_me: WARNING: /" >&2
12603 ;;
12604 esac
12605 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12606 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12607 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610 ac_cv_header_X11_xpm_h=$ac_header_preproc
12611 fi
12612 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12613 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12614
12615 fi
12616 if test $ac_cv_header_X11_xpm_h = yes; then
12617 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12618 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12619 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622 ac_check_lib_save_LIBS=$LIBS
12623 LIBS="-lXpm -lX11 $LIBS"
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h. */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630
12631 /* Override any gcc2 internal prototype to avoid an error. */
12632 #ifdef __cplusplus
12633 extern "C"
12634 #endif
12635 /* We use char because int might match the return type of a gcc2
12636 builtin and then its argument prototype would still apply. */
12637 char XpmReadFileToPixmap ();
12638 int
12639 main ()
12640 {
12641 XpmReadFileToPixmap ();
12642 ;
12643 return 0;
12644 }
12645 _ACEOF
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>conftest.er1
12649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_c_werror_flag"
12656 || test ! -s conftest.err'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try='test -s conftest$ac_exeext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12669 else
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12672
12673 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12674 fi
12675 rm -f conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
12677 LIBS=$ac_check_lib_save_LIBS
12678 fi
12679 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12680 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12681 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12682 HAVE_XPM=yes
12683 fi
12684
12685 fi
12686
12687
12688 if test "${HAVE_XPM}" = "yes"; then
12689 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12690 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12691 cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h. */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697 #include "X11/xpm.h"
12698 #ifndef XpmReturnAllocPixels
12699 no_return_alloc_pixels
12700 #endif
12701
12702 _ACEOF
12703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12704 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12705 HAVE_XPM=no
12706 else
12707 HAVE_XPM=yes
12708 fi
12709 rm -f conftest*
12710
12711
12712 if test "${HAVE_XPM}" = "yes"; then
12713 echo "$as_me:$LINENO: result: yes" >&5
12714 echo "${ECHO_T}yes" >&6
12715 else
12716 echo "$as_me:$LINENO: result: no" >&5
12717 echo "${ECHO_T}no" >&6
12718 fi
12719 fi
12720 fi
12721
12722 if test "${HAVE_XPM}" = "yes"; then
12723
12724 cat >>confdefs.h <<\_ACEOF
12725 #define HAVE_XPM 1
12726 _ACEOF
12727
12728 fi
12729 fi
12730
12731 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12732 HAVE_JPEG=no
12733 if test "${HAVE_X11}" = "yes"; then
12734 if test "${with_jpeg}" != "no"; then
12735 if test "${ac_cv_header_jerror_h+set}" = set; then
12736 echo "$as_me:$LINENO: checking for jerror.h" >&5
12737 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12738 if test "${ac_cv_header_jerror_h+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 fi
12741 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12742 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12743 else
12744 # Is the header compilable?
12745 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12746 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12747 cat >conftest.$ac_ext <<_ACEOF
12748 /* confdefs.h. */
12749 _ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12753 $ac_includes_default
12754 #include <jerror.h>
12755 _ACEOF
12756 rm -f conftest.$ac_objext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12758 (eval $ac_compile) 2>conftest.er1
12759 ac_status=$?
12760 grep -v '^ *+' conftest.er1 >conftest.err
12761 rm -f conftest.er1
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -z "$ac_c_werror_flag"
12766 || test ! -s conftest.err'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try='test -s conftest.$ac_objext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_header_compiler=yes
12779 else
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782
12783 ac_header_compiler=no
12784 fi
12785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12787 echo "${ECHO_T}$ac_header_compiler" >&6
12788
12789 # Is the header present?
12790 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12791 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h. */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 #include <jerror.h>
12799 _ACEOF
12800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } >/dev/null; then
12808 if test -s conftest.err; then
12809 ac_cpp_err=$ac_c_preproc_warn_flag
12810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12811 else
12812 ac_cpp_err=
12813 fi
12814 else
12815 ac_cpp_err=yes
12816 fi
12817 if test -z "$ac_cpp_err"; then
12818 ac_header_preproc=yes
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823 ac_header_preproc=no
12824 fi
12825 rm -f conftest.err conftest.$ac_ext
12826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12827 echo "${ECHO_T}$ac_header_preproc" >&6
12828
12829 # So? What about this header?
12830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12831 yes:no: )
12832 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12833 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12835 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12836 ac_header_preproc=yes
12837 ;;
12838 no:yes:* )
12839 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12840 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12842 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12844 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12846 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12848 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12850 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12851 (
12852 cat <<\_ASBOX
12853 ## ------------------------------------------ ##
12854 ## Report this to the AC_PACKAGE_NAME lists. ##
12855 ## ------------------------------------------ ##
12856 _ASBOX
12857 ) |
12858 sed "s/^/$as_me: WARNING: /" >&2
12859 ;;
12860 esac
12861 echo "$as_me:$LINENO: checking for jerror.h" >&5
12862 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12863 if test "${ac_cv_header_jerror_h+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866 ac_cv_header_jerror_h=$ac_header_preproc
12867 fi
12868 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12869 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12870
12871 fi
12872 if test $ac_cv_header_jerror_h = yes; then
12873 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12874 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12875 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 else
12878 ac_check_lib_save_LIBS=$LIBS
12879 LIBS="-ljpeg $LIBS"
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886
12887 /* Override any gcc2 internal prototype to avoid an error. */
12888 #ifdef __cplusplus
12889 extern "C"
12890 #endif
12891 /* We use char because int might match the return type of a gcc2
12892 builtin and then its argument prototype would still apply. */
12893 char jpeg_destroy_compress ();
12894 int
12895 main ()
12896 {
12897 jpeg_destroy_compress ();
12898 ;
12899 return 0;
12900 }
12901 _ACEOF
12902 rm -f conftest.$ac_objext conftest$ac_exeext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12904 (eval $ac_link) 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag"
12912 || test ! -s conftest.err'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try='test -s conftest$ac_exeext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12924 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12925 else
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12928
12929 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12930 fi
12931 rm -f conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933 LIBS=$ac_check_lib_save_LIBS
12934 fi
12935 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12936 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12937 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12938 HAVE_JPEG=yes
12939 fi
12940
12941 fi
12942
12943
12944 fi
12945
12946
12947 if test "${HAVE_JPEG}" = "yes"; then
12948 cat >>confdefs.h <<\_ACEOF
12949 #define HAVE_JPEG 1
12950 _ACEOF
12951
12952 cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h. */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 #include <jpeglib.h>
12959 version=JPEG_LIB_VERSION
12960
12961 _ACEOF
12962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12963 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12964 cat >>confdefs.h <<\_ACEOF
12965 #define HAVE_JPEG 1
12966 _ACEOF
12967
12968 else
12969 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12970 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12971 HAVE_JPEG=no
12972 fi
12973 rm -f conftest*
12974
12975 fi
12976 fi
12977
12978 ### Use -lpng if available, unless `--with-png=no'.
12979 HAVE_PNG=no
12980 if test "${HAVE_X11}" = "yes"; then
12981 if test "${with_png}" != "no"; then
12982 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12983 # in /usr/include/libpng.
12984
12985
12986 for ac_header in png.h libpng/png.h
12987 do
12988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12990 echo "$as_me:$LINENO: checking for $ac_header" >&5
12991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 fi
12995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12997 else
12998 # Is the header compilable?
12999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 $ac_includes_default
13008 #include <$ac_header>
13009 _ACEOF
13010 rm -f conftest.$ac_objext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012 (eval $ac_compile) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_c_werror_flag"
13020 || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest.$ac_objext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_header_compiler=yes
13033 else
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13036
13037 ac_header_compiler=no
13038 fi
13039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13041 echo "${ECHO_T}$ac_header_compiler" >&6
13042
13043 # Is the header present?
13044 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13046 cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h. */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 #include <$ac_header>
13053 _ACEOF
13054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } >/dev/null; then
13062 if test -s conftest.err; then
13063 ac_cpp_err=$ac_c_preproc_warn_flag
13064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13065 else
13066 ac_cpp_err=
13067 fi
13068 else
13069 ac_cpp_err=yes
13070 fi
13071 if test -z "$ac_cpp_err"; then
13072 ac_header_preproc=yes
13073 else
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13076
13077 ac_header_preproc=no
13078 fi
13079 rm -f conftest.err conftest.$ac_ext
13080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13081 echo "${ECHO_T}$ac_header_preproc" >&6
13082
13083 # So? What about this header?
13084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13085 yes:no: )
13086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13090 ac_header_preproc=yes
13091 ;;
13092 no:yes:* )
13093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13105 (
13106 cat <<\_ASBOX
13107 ## ------------------------------------------ ##
13108 ## Report this to the AC_PACKAGE_NAME lists. ##
13109 ## ------------------------------------------ ##
13110 _ASBOX
13111 ) |
13112 sed "s/^/$as_me: WARNING: /" >&2
13113 ;;
13114 esac
13115 echo "$as_me:$LINENO: checking for $ac_header" >&5
13116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120 eval "$as_ac_Header=\$ac_header_preproc"
13121 fi
13122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13124
13125 fi
13126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13127 cat >>confdefs.h <<_ACEOF
13128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13129 _ACEOF
13130
13131 fi
13132
13133 done
13134
13135 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13136 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13137 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
13138 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141 ac_check_lib_save_LIBS=$LIBS
13142 LIBS="-lpng -lz -lm $LIBS"
13143 cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h. */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149
13150 /* Override any gcc2 internal prototype to avoid an error. */
13151 #ifdef __cplusplus
13152 extern "C"
13153 #endif
13154 /* We use char because int might match the return type of a gcc2
13155 builtin and then its argument prototype would still apply. */
13156 char png_get_channels ();
13157 int
13158 main ()
13159 {
13160 png_get_channels ();
13161 ;
13162 return 0;
13163 }
13164 _ACEOF
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13167 (eval $ac_link) 2>conftest.er1
13168 ac_status=$?
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag"
13175 || test ! -s conftest.err'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest$ac_exeext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_cv_lib_png_png_get_channels=yes
13188 else
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13191
13192 ac_cv_lib_png_png_get_channels=no
13193 fi
13194 rm -f conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
13196 LIBS=$ac_check_lib_save_LIBS
13197 fi
13198 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13199 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
13200 if test $ac_cv_lib_png_png_get_channels = yes; then
13201 HAVE_PNG=yes
13202 fi
13203
13204 fi
13205 fi
13206
13207 if test "${HAVE_PNG}" = "yes"; then
13208
13209 cat >>confdefs.h <<\_ACEOF
13210 #define HAVE_PNG 1
13211 _ACEOF
13212
13213 fi
13214 fi
13215
13216 ### Use -ltiff if available, unless `--with-tiff=no'.
13217 HAVE_TIFF=no
13218 if test "${HAVE_X11}" = "yes"; then
13219 if test "${with_tiff}" != "no"; then
13220 if test "${ac_cv_header_tiffio_h+set}" = set; then
13221 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13222 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13223 if test "${ac_cv_header_tiffio_h+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 fi
13226 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13227 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13228 else
13229 # Is the header compilable?
13230 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13231 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h. */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13238 $ac_includes_default
13239 #include <tiffio.h>
13240 _ACEOF
13241 rm -f conftest.$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -z "$ac_c_werror_flag"
13251 || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_header_compiler=yes
13264 else
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 ac_header_compiler=no
13269 fi
13270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13272 echo "${ECHO_T}$ac_header_compiler" >&6
13273
13274 # Is the header present?
13275 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13276 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
13277 cat >conftest.$ac_ext <<_ACEOF
13278 /* confdefs.h. */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 #include <tiffio.h>
13284 _ACEOF
13285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13287 ac_status=$?
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } >/dev/null; then
13293 if test -s conftest.err; then
13294 ac_cpp_err=$ac_c_preproc_warn_flag
13295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13296 else
13297 ac_cpp_err=
13298 fi
13299 else
13300 ac_cpp_err=yes
13301 fi
13302 if test -z "$ac_cpp_err"; then
13303 ac_header_preproc=yes
13304 else
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13307
13308 ac_header_preproc=no
13309 fi
13310 rm -f conftest.err conftest.$ac_ext
13311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13312 echo "${ECHO_T}$ac_header_preproc" >&6
13313
13314 # So? What about this header?
13315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13316 yes:no: )
13317 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13318 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13320 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13321 ac_header_preproc=yes
13322 ;;
13323 no:yes:* )
13324 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13325 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13327 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13329 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13331 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13333 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13335 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13336 (
13337 cat <<\_ASBOX
13338 ## ------------------------------------------ ##
13339 ## Report this to the AC_PACKAGE_NAME lists. ##
13340 ## ------------------------------------------ ##
13341 _ASBOX
13342 ) |
13343 sed "s/^/$as_me: WARNING: /" >&2
13344 ;;
13345 esac
13346 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13347 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13348 if test "${ac_cv_header_tiffio_h+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351 ac_cv_header_tiffio_h=$ac_header_preproc
13352 fi
13353 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13354 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13355
13356 fi
13357 if test $ac_cv_header_tiffio_h = yes; then
13358 tifflibs="-lz -lm"
13359 # At least one tiff package requires the jpeg library.
13360 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13361 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13362 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
13363 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366 ac_check_lib_save_LIBS=$LIBS
13367 LIBS="-ltiff $tifflibs $LIBS"
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h. */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374
13375 /* Override any gcc2 internal prototype to avoid an error. */
13376 #ifdef __cplusplus
13377 extern "C"
13378 #endif
13379 /* We use char because int might match the return type of a gcc2
13380 builtin and then its argument prototype would still apply. */
13381 char TIFFGetVersion ();
13382 int
13383 main ()
13384 {
13385 TIFFGetVersion ();
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 rm -f conftest.$ac_objext conftest$ac_exeext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13392 (eval $ac_link) 2>conftest.er1
13393 ac_status=$?
13394 grep -v '^ *+' conftest.er1 >conftest.err
13395 rm -f conftest.er1
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
13399 { ac_try='test -z "$ac_c_werror_flag"
13400 || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest$ac_exeext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 ac_cv_lib_tiff_TIFFGetVersion=yes
13413 else
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 ac_cv_lib_tiff_TIFFGetVersion=no
13418 fi
13419 rm -f conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LIBS=$ac_check_lib_save_LIBS
13422 fi
13423 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13424 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
13425 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13426 HAVE_TIFF=yes
13427 fi
13428
13429 fi
13430
13431
13432 fi
13433
13434 if test "${HAVE_TIFF}" = "yes"; then
13435
13436 cat >>confdefs.h <<\_ACEOF
13437 #define HAVE_TIFF 1
13438 _ACEOF
13439
13440 fi
13441 fi
13442
13443 ### Use -lgif if available, unless `--with-gif=no'.
13444 HAVE_GIF=no
13445 if test "${HAVE_X11}" = "yes"; then
13446 if test "${with_gif}" != "no"; then
13447 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13448 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13449 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13450 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 fi
13453 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13454 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13455 else
13456 # Is the header compilable?
13457 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13458 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
13459 cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h. */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 $ac_includes_default
13466 #include <gif_lib.h>
13467 _ACEOF
13468 rm -f conftest.$ac_objext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13470 (eval $ac_compile) 2>conftest.er1
13471 ac_status=$?
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -z "$ac_c_werror_flag"
13478 || test ! -s conftest.err'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest.$ac_objext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 ac_header_compiler=yes
13491 else
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_header_compiler=no
13496 fi
13497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13499 echo "${ECHO_T}$ac_header_compiler" >&6
13500
13501 # Is the header present?
13502 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13503 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
13504 cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h. */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510 #include <gif_lib.h>
13511 _ACEOF
13512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } >/dev/null; then
13520 if test -s conftest.err; then
13521 ac_cpp_err=$ac_c_preproc_warn_flag
13522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13523 else
13524 ac_cpp_err=
13525 fi
13526 else
13527 ac_cpp_err=yes
13528 fi
13529 if test -z "$ac_cpp_err"; then
13530 ac_header_preproc=yes
13531 else
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13534
13535 ac_header_preproc=no
13536 fi
13537 rm -f conftest.err conftest.$ac_ext
13538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13539 echo "${ECHO_T}$ac_header_preproc" >&6
13540
13541 # So? What about this header?
13542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13543 yes:no: )
13544 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13545 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13547 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13548 ac_header_preproc=yes
13549 ;;
13550 no:yes:* )
13551 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13552 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13554 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13556 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13558 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13560 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13562 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13563 (
13564 cat <<\_ASBOX
13565 ## ------------------------------------------ ##
13566 ## Report this to the AC_PACKAGE_NAME lists. ##
13567 ## ------------------------------------------ ##
13568 _ASBOX
13569 ) |
13570 sed "s/^/$as_me: WARNING: /" >&2
13571 ;;
13572 esac
13573 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13574 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13575 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578 ac_cv_header_gif_lib_h=$ac_header_preproc
13579 fi
13580 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13581 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13582
13583 fi
13584 if test $ac_cv_header_gif_lib_h = yes; then
13585 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13586 # Earlier versions can crash Emacs.
13587 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13588 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
13589 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592 ac_check_lib_save_LIBS=$LIBS
13593 LIBS="-lungif $LIBS"
13594 cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h. */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600
13601 /* Override any gcc2 internal prototype to avoid an error. */
13602 #ifdef __cplusplus
13603 extern "C"
13604 #endif
13605 /* We use char because int might match the return type of a gcc2
13606 builtin and then its argument prototype would still apply. */
13607 char EGifPutExtensionLast ();
13608 int
13609 main ()
13610 {
13611 EGifPutExtensionLast ();
13612 ;
13613 return 0;
13614 }
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>conftest.er1
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try='test -z "$ac_c_werror_flag"
13626 || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest$ac_exeext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13639 else
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 ac_cv_lib_ungif_EGifPutExtensionLast=no
13644 fi
13645 rm -f conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS
13648 fi
13649 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13650 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13651 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13652 HAVE_GIF=yes
13653 fi
13654
13655 fi
13656
13657
13658 fi
13659
13660 if test "${HAVE_GIF}" = "yes"; then
13661
13662 cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_GIF 1
13664 _ACEOF
13665
13666 fi
13667 fi
13668
13669 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13670 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13671 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13672 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 fi
13675 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13676 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13677 else
13678 # Is the header compilable?
13679 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13680 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13681 cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h. */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 $ac_includes_default
13688 #include <malloc/malloc.h>
13689 _ACEOF
13690 rm -f conftest.$ac_objext
13691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13692 (eval $ac_compile) 2>conftest.er1
13693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag"
13700 || test ! -s conftest.err'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; } &&
13706 { ac_try='test -s conftest.$ac_objext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_header_compiler=yes
13713 else
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13716
13717 ac_header_compiler=no
13718 fi
13719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13721 echo "${ECHO_T}$ac_header_compiler" >&6
13722
13723 # Is the header present?
13724 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13725 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13726 cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h. */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 #include <malloc/malloc.h>
13733 _ACEOF
13734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13736 ac_status=$?
13737 grep -v '^ *+' conftest.er1 >conftest.err
13738 rm -f conftest.er1
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } >/dev/null; then
13742 if test -s conftest.err; then
13743 ac_cpp_err=$ac_c_preproc_warn_flag
13744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13745 else
13746 ac_cpp_err=
13747 fi
13748 else
13749 ac_cpp_err=yes
13750 fi
13751 if test -z "$ac_cpp_err"; then
13752 ac_header_preproc=yes
13753 else
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757 ac_header_preproc=no
13758 fi
13759 rm -f conftest.err conftest.$ac_ext
13760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13761 echo "${ECHO_T}$ac_header_preproc" >&6
13762
13763 # So? What about this header?
13764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13765 yes:no: )
13766 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13767 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13769 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13770 ac_header_preproc=yes
13771 ;;
13772 no:yes:* )
13773 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13774 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13776 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13777 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13778 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13780 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13782 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13783 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13784 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13785 (
13786 cat <<\_ASBOX
13787 ## ------------------------------------------ ##
13788 ## Report this to the AC_PACKAGE_NAME lists. ##
13789 ## ------------------------------------------ ##
13790 _ASBOX
13791 ) |
13792 sed "s/^/$as_me: WARNING: /" >&2
13793 ;;
13794 esac
13795 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13796 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13797 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13801 fi
13802 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13803 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13804
13805 fi
13806 if test $ac_cv_header_malloc_malloc_h = yes; then
13807
13808 cat >>confdefs.h <<\_ACEOF
13809 #define HAVE_MALLOC_MALLOC_H 1
13810 _ACEOF
13811
13812 fi
13813
13814
13815
13816 ### Use Mac OS X Carbon API to implement GUI.
13817 if test "${HAVE_CARBON}" = "yes"; then
13818
13819 cat >>confdefs.h <<\_ACEOF
13820 #define HAVE_CARBON 1
13821 _ACEOF
13822
13823 ## Specify the install directory
13824 carbon_appdir=
13825 if test "${carbon_appdir_x}" != ""; then
13826 case ${carbon_appdir_x} in
13827 y | ye | yes) carbon_appdir=/Applications ;;
13828 * ) carbon_appdir=${carbon_appdir_x} ;;
13829 esac
13830 fi
13831 # We also have mouse menus.
13832 HAVE_MENUS=yes
13833
13834 tmp_CFLAGS="$CFLAGS"
13835 CFLAGS="$CFLAGS -framework Carbon"
13836 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13837 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13838 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841 cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h. */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13849 #define CancelMenuTracking innocuous_CancelMenuTracking
13850
13851 /* System header to define __stub macros and hopefully few prototypes,
13852 which can conflict with char CancelMenuTracking (); below.
13853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13854 <limits.h> exists even on freestanding compilers. */
13855
13856 #ifdef __STDC__
13857 # include <limits.h>
13858 #else
13859 # include <assert.h>
13860 #endif
13861
13862 #undef CancelMenuTracking
13863
13864 /* Override any gcc2 internal prototype to avoid an error. */
13865 #ifdef __cplusplus
13866 extern "C"
13867 {
13868 #endif
13869 /* We use char because int might match the return type of a gcc2
13870 builtin and then its argument prototype would still apply. */
13871 char CancelMenuTracking ();
13872 /* The GNU C library defines this for functions which it implements
13873 to always fail with ENOSYS. Some functions are actually named
13874 something starting with __ and the normal name is an alias. */
13875 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13876 choke me
13877 #else
13878 char (*f) () = CancelMenuTracking;
13879 #endif
13880 #ifdef __cplusplus
13881 }
13882 #endif
13883
13884 int
13885 main ()
13886 {
13887 return f != CancelMenuTracking;
13888 ;
13889 return 0;
13890 }
13891 _ACEOF
13892 rm -f conftest.$ac_objext conftest$ac_exeext
13893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13894 (eval $ac_link) 2>conftest.er1
13895 ac_status=$?
13896 grep -v '^ *+' conftest.er1 >conftest.err
13897 rm -f conftest.er1
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -z "$ac_c_werror_flag"
13902 || test ! -s conftest.err'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest$ac_exeext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_func_CancelMenuTracking=yes
13915 else
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13918
13919 ac_cv_func_CancelMenuTracking=no
13920 fi
13921 rm -f conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 fi
13924 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13925 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13926 if test $ac_cv_func_CancelMenuTracking = yes; then
13927 have_cmt=yes
13928 else
13929 have_cmt=no
13930 fi
13931
13932 if test "$have_cmt" = yes; then
13933
13934 cat >>confdefs.h <<\_ACEOF
13935 #define HAVE_CANCELMENUTRACKING 1
13936 _ACEOF
13937
13938 fi
13939 CFLAGS="$tmp_CFLAGS"
13940 fi
13941
13942 ### Use session management (-lSM -lICE) if available
13943 HAVE_X_SM=no
13944 if test "${HAVE_X11}" = "yes"; then
13945 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13946 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13947 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13948 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 fi
13951 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13952 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13953 else
13954 # Is the header compilable?
13955 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13956 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13957 cat >conftest.$ac_ext <<_ACEOF
13958 /* confdefs.h. */
13959 _ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13963 $ac_includes_default
13964 #include <X11/SM/SMlib.h>
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968 (eval $ac_compile) 2>conftest.er1
13969 ac_status=$?
13970 grep -v '^ *+' conftest.er1 >conftest.err
13971 rm -f conftest.er1
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try='test -z "$ac_c_werror_flag"
13976 || test ! -s conftest.err'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; } &&
13982 { ac_try='test -s conftest.$ac_objext'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 ac_header_compiler=yes
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 ac_header_compiler=no
13994 fi
13995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13997 echo "${ECHO_T}$ac_header_compiler" >&6
13998
13999 # Is the header present?
14000 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14001 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
14002 cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h. */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 #include <X11/SM/SMlib.h>
14009 _ACEOF
14010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } >/dev/null; then
14018 if test -s conftest.err; then
14019 ac_cpp_err=$ac_c_preproc_warn_flag
14020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14021 else
14022 ac_cpp_err=
14023 fi
14024 else
14025 ac_cpp_err=yes
14026 fi
14027 if test -z "$ac_cpp_err"; then
14028 ac_header_preproc=yes
14029 else
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14032
14033 ac_header_preproc=no
14034 fi
14035 rm -f conftest.err conftest.$ac_ext
14036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14037 echo "${ECHO_T}$ac_header_preproc" >&6
14038
14039 # So? What about this header?
14040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14041 yes:no: )
14042 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14043 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14045 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14046 ac_header_preproc=yes
14047 ;;
14048 no:yes:* )
14049 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14050 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14052 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14054 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14056 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14058 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14060 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14061 (
14062 cat <<\_ASBOX
14063 ## ------------------------------------------ ##
14064 ## Report this to the AC_PACKAGE_NAME lists. ##
14065 ## ------------------------------------------ ##
14066 _ASBOX
14067 ) |
14068 sed "s/^/$as_me: WARNING: /" >&2
14069 ;;
14070 esac
14071 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14072 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
14073 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14077 fi
14078 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14079 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
14080
14081 fi
14082 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14083 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14084 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
14085 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 else
14088 ac_check_lib_save_LIBS=$LIBS
14089 LIBS="-lSM -lICE $LIBS"
14090 cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h. */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096
14097 /* Override any gcc2 internal prototype to avoid an error. */
14098 #ifdef __cplusplus
14099 extern "C"
14100 #endif
14101 /* We use char because int might match the return type of a gcc2
14102 builtin and then its argument prototype would still apply. */
14103 char SmcOpenConnection ();
14104 int
14105 main ()
14106 {
14107 SmcOpenConnection ();
14108 ;
14109 return 0;
14110 }
14111 _ACEOF
14112 rm -f conftest.$ac_objext conftest$ac_exeext
14113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14114 (eval $ac_link) 2>conftest.er1
14115 ac_status=$?
14116 grep -v '^ *+' conftest.er1 >conftest.err
14117 rm -f conftest.er1
14118 cat conftest.err >&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
14121 { ac_try='test -z "$ac_c_werror_flag"
14122 || test ! -s conftest.err'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; } &&
14128 { ac_try='test -s conftest$ac_exeext'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_cv_lib_SM_SmcOpenConnection=yes
14135 else
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14138
14139 ac_cv_lib_SM_SmcOpenConnection=no
14140 fi
14141 rm -f conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14144 fi
14145 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14146 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
14147 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14148 HAVE_X_SM=yes
14149 fi
14150
14151 fi
14152
14153
14154
14155 if test "${HAVE_X_SM}" = "yes"; then
14156
14157 cat >>confdefs.h <<\_ACEOF
14158 #define HAVE_X_SM 1
14159 _ACEOF
14160
14161 case "$LIBS" in
14162 *-lSM*) ;;
14163 *) LIBS="-lSM -lICE $LIBS" ;;
14164 esac
14165 fi
14166 fi
14167
14168 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14169 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14170 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
14171 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174 cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h. */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 #include <netdb.h>
14181 int
14182 main ()
14183 {
14184 return h_errno;
14185 ;
14186 return 0;
14187 }
14188 _ACEOF
14189 rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14191 (eval $ac_link) 2>conftest.er1
14192 ac_status=$?
14193 grep -v '^ *+' conftest.er1 >conftest.err
14194 rm -f conftest.er1
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -z "$ac_c_werror_flag"
14199 || test ! -s conftest.err'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } &&
14205 { ac_try='test -s conftest$ac_exeext'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14211 emacs_cv_netdb_declares_h_errno=yes
14212 else
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14215
14216 emacs_cv_netdb_declares_h_errno=no
14217 fi
14218 rm -f conftest.err conftest.$ac_objext \
14219 conftest$ac_exeext conftest.$ac_ext
14220 fi
14221 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14222 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
14223 if test $emacs_cv_netdb_declares_h_errno = yes; then
14224
14225 cat >>confdefs.h <<\_ACEOF
14226 #define HAVE_H_ERRNO 1
14227 _ACEOF
14228
14229 fi
14230
14231 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14232 # for constant arguments. Useless!
14233 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14234 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14235 if test "${ac_cv_working_alloca_h+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <alloca.h>
14245 int
14246 main ()
14247 {
14248 char *p = (char *) alloca (2 * sizeof (int));
14249 ;
14250 return 0;
14251 }
14252 _ACEOF
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14255 (eval $ac_link) 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest$ac_exeext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_working_alloca_h=yes
14276 else
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14279
14280 ac_cv_working_alloca_h=no
14281 fi
14282 rm -f conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14284 fi
14285 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14286 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14287 if test $ac_cv_working_alloca_h = yes; then
14288
14289 cat >>confdefs.h <<\_ACEOF
14290 #define HAVE_ALLOCA_H 1
14291 _ACEOF
14292
14293 fi
14294
14295 echo "$as_me:$LINENO: checking for alloca" >&5
14296 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14297 if test "${ac_cv_func_alloca_works+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 #ifdef __GNUC__
14307 # define alloca __builtin_alloca
14308 #else
14309 # ifdef _MSC_VER
14310 # include <malloc.h>
14311 # define alloca _alloca
14312 # else
14313 # if HAVE_ALLOCA_H
14314 # include <alloca.h>
14315 # else
14316 # ifdef _AIX
14317 #pragma alloca
14318 # else
14319 # ifndef alloca /* predefined by HP cc +Olibcalls */
14320 char *alloca ();
14321 # endif
14322 # endif
14323 # endif
14324 # endif
14325 #endif
14326
14327 int
14328 main ()
14329 {
14330 char *p = (char *) alloca (1);
14331 ;
14332 return 0;
14333 }
14334 _ACEOF
14335 rm -f conftest.$ac_objext conftest$ac_exeext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14337 (eval $ac_link) 2>conftest.er1
14338 ac_status=$?
14339 grep -v '^ *+' conftest.er1 >conftest.err
14340 rm -f conftest.er1
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
14344 { ac_try='test -z "$ac_c_werror_flag"
14345 || test ! -s conftest.err'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest$ac_exeext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_cv_func_alloca_works=yes
14358 else
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362 ac_cv_func_alloca_works=no
14363 fi
14364 rm -f conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366 fi
14367 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14368 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14369
14370 if test $ac_cv_func_alloca_works = yes; then
14371
14372 cat >>confdefs.h <<\_ACEOF
14373 #define HAVE_ALLOCA 1
14374 _ACEOF
14375
14376 else
14377 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14378 # that cause trouble. Some versions do not even contain alloca or
14379 # contain a buggy version. If you still want to use their alloca,
14380 # use ar to extract alloca.o from them instead of compiling alloca.c.
14381
14382 ALLOCA=alloca.$ac_objext
14383
14384 cat >>confdefs.h <<\_ACEOF
14385 #define C_ALLOCA 1
14386 _ACEOF
14387
14388
14389 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14390 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14391 if test "${ac_cv_os_cray+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 else
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h. */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #if defined(CRAY) && ! defined(CRAY2)
14401 webecray
14402 #else
14403 wenotbecray
14404 #endif
14405
14406 _ACEOF
14407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14408 $EGREP "webecray" >/dev/null 2>&1; then
14409 ac_cv_os_cray=yes
14410 else
14411 ac_cv_os_cray=no
14412 fi
14413 rm -f conftest*
14414
14415 fi
14416 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14417 echo "${ECHO_T}$ac_cv_os_cray" >&6
14418 if test $ac_cv_os_cray = yes; then
14419 for ac_func in _getb67 GETB67 getb67; do
14420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14421 echo "$as_me:$LINENO: checking for $ac_func" >&5
14422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14423 if eval "test \"\${$as_ac_var+set}\" = set"; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 else
14426 cat >conftest.$ac_ext <<_ACEOF
14427 /* confdefs.h. */
14428 _ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14434 #define $ac_func innocuous_$ac_func
14435
14436 /* System header to define __stub macros and hopefully few prototypes,
14437 which can conflict with char $ac_func (); below.
14438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14439 <limits.h> exists even on freestanding compilers. */
14440
14441 #ifdef __STDC__
14442 # include <limits.h>
14443 #else
14444 # include <assert.h>
14445 #endif
14446
14447 #undef $ac_func
14448
14449 /* Override any gcc2 internal prototype to avoid an error. */
14450 #ifdef __cplusplus
14451 extern "C"
14452 {
14453 #endif
14454 /* We use char because int might match the return type of a gcc2
14455 builtin and then its argument prototype would still apply. */
14456 char $ac_func ();
14457 /* The GNU C library defines this for functions which it implements
14458 to always fail with ENOSYS. Some functions are actually named
14459 something starting with __ and the normal name is an alias. */
14460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14461 choke me
14462 #else
14463 char (*f) () = $ac_func;
14464 #endif
14465 #ifdef __cplusplus
14466 }
14467 #endif
14468
14469 int
14470 main ()
14471 {
14472 return f != $ac_func;
14473 ;
14474 return 0;
14475 }
14476 _ACEOF
14477 rm -f conftest.$ac_objext conftest$ac_exeext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14479 (eval $ac_link) 2>conftest.er1
14480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest$ac_exeext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 eval "$as_ac_var=yes"
14500 else
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 eval "$as_ac_var=no"
14505 fi
14506 rm -f conftest.err conftest.$ac_objext \
14507 conftest$ac_exeext conftest.$ac_ext
14508 fi
14509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14511 if test `eval echo '${'$as_ac_var'}'` = yes; then
14512
14513 cat >>confdefs.h <<_ACEOF
14514 #define CRAY_STACKSEG_END $ac_func
14515 _ACEOF
14516
14517 break
14518 fi
14519
14520 done
14521 fi
14522
14523 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14524 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14525 if test "${ac_cv_c_stack_direction+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 else
14528 if test "$cross_compiling" = yes; then
14529 ac_cv_c_stack_direction=0
14530 else
14531 cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h. */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 int
14538 find_stack_direction ()
14539 {
14540 static char *addr = 0;
14541 auto char dummy;
14542 if (addr == 0)
14543 {
14544 addr = &dummy;
14545 return find_stack_direction ();
14546 }
14547 else
14548 return (&dummy > addr) ? 1 : -1;
14549 }
14550
14551 int
14552 main ()
14553 {
14554 exit (find_stack_direction () < 0);
14555 }
14556 _ACEOF
14557 rm -f conftest$ac_exeext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559 (eval $ac_link) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 ac_cv_c_stack_direction=1
14569 else
14570 echo "$as_me: program exited with status $ac_status" >&5
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14573
14574 ( exit $ac_status )
14575 ac_cv_c_stack_direction=-1
14576 fi
14577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14578 fi
14579 fi
14580 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14581 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14582
14583 cat >>confdefs.h <<_ACEOF
14584 #define STACK_DIRECTION $ac_cv_c_stack_direction
14585 _ACEOF
14586
14587
14588 fi
14589
14590
14591 # fmod, logb, and frexp are found in -lm on most systems.
14592 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14593
14594 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14595 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
14596 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 else
14599 ac_check_lib_save_LIBS=$LIBS
14600 LIBS="-lm $LIBS"
14601 cat >conftest.$ac_ext <<_ACEOF
14602 /* confdefs.h. */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607
14608 /* Override any gcc2 internal prototype to avoid an error. */
14609 #ifdef __cplusplus
14610 extern "C"
14611 #endif
14612 /* We use char because int might match the return type of a gcc2
14613 builtin and then its argument prototype would still apply. */
14614 char sqrt ();
14615 int
14616 main ()
14617 {
14618 sqrt ();
14619 ;
14620 return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext conftest$ac_exeext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625 (eval $ac_link) 2>conftest.er1
14626 ac_status=$?
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -z "$ac_c_werror_flag"
14633 || test ! -s conftest.err'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest$ac_exeext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_cv_lib_m_sqrt=yes
14646 else
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14649
14650 ac_cv_lib_m_sqrt=no
14651 fi
14652 rm -f conftest.err conftest.$ac_objext \
14653 conftest$ac_exeext conftest.$ac_ext
14654 LIBS=$ac_check_lib_save_LIBS
14655 fi
14656 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14657 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14658 if test $ac_cv_lib_m_sqrt = yes; then
14659 cat >>confdefs.h <<_ACEOF
14660 #define HAVE_LIBM 1
14661 _ACEOF
14662
14663 LIBS="-lm $LIBS"
14664
14665 fi
14666
14667
14668 # Check for mail-locking functions in a "mail" library. Probably this should
14669 # have the same check as for liblockfile below.
14670
14671 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14672 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14673 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 else
14676 ac_check_lib_save_LIBS=$LIBS
14677 LIBS="-lmail $LIBS"
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h. */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684
14685 /* Override any gcc2 internal prototype to avoid an error. */
14686 #ifdef __cplusplus
14687 extern "C"
14688 #endif
14689 /* We use char because int might match the return type of a gcc2
14690 builtin and then its argument prototype would still apply. */
14691 char maillock ();
14692 int
14693 main ()
14694 {
14695 maillock ();
14696 ;
14697 return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest$ac_exeext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_cv_lib_mail_maillock=yes
14723 else
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14726
14727 ac_cv_lib_mail_maillock=no
14728 fi
14729 rm -f conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14731 LIBS=$ac_check_lib_save_LIBS
14732 fi
14733 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14734 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14735 if test $ac_cv_lib_mail_maillock = yes; then
14736 cat >>confdefs.h <<_ACEOF
14737 #define HAVE_LIBMAIL 1
14738 _ACEOF
14739
14740 LIBS="-lmail $LIBS"
14741
14742 fi
14743
14744
14745 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14746 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14747 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 else
14750 ac_check_lib_save_LIBS=$LIBS
14751 LIBS="-llockfile $LIBS"
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758
14759 /* Override any gcc2 internal prototype to avoid an error. */
14760 #ifdef __cplusplus
14761 extern "C"
14762 #endif
14763 /* We use char because int might match the return type of a gcc2
14764 builtin and then its argument prototype would still apply. */
14765 char maillock ();
14766 int
14767 main ()
14768 {
14769 maillock ();
14770 ;
14771 return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14776 (eval $ac_link) 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag"
14784 || test ! -s conftest.err'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest$ac_exeext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14793 ac_status=$?
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14796 ac_cv_lib_lockfile_maillock=yes
14797 else
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14800
14801 ac_cv_lib_lockfile_maillock=no
14802 fi
14803 rm -f conftest.err conftest.$ac_objext \
14804 conftest$ac_exeext conftest.$ac_ext
14805 LIBS=$ac_check_lib_save_LIBS
14806 fi
14807 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14808 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14809 if test $ac_cv_lib_lockfile_maillock = yes; then
14810 cat >>confdefs.h <<_ACEOF
14811 #define HAVE_LIBLOCKFILE 1
14812 _ACEOF
14813
14814 LIBS="-llockfile $LIBS"
14815
14816 fi
14817
14818 # If we have the shared liblockfile, assume we must use it for mail
14819 # locking (e.g. Debian). If we couldn't link against liblockfile
14820 # (no liblockfile.a installed), ensure that we don't need to.
14821 if test "$ac_cv_lib_lockfile_maillock" = no; then
14822 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14823 set dummy liblockfile.so; ac_word=$2
14824 echo "$as_me:$LINENO: checking for $ac_word" >&5
14825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14826 if test "${ac_cv_prog_liblockfile+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 else
14829 if test -n "$liblockfile"; then
14830 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14831 else
14832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14833 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14834 for as_dir in $as_dummy
14835 do
14836 IFS=$as_save_IFS
14837 test -z "$as_dir" && as_dir=.
14838 for ac_exec_ext in '' $ac_executable_extensions; do
14839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14840 ac_cv_prog_liblockfile="yes"
14841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14842 break 2
14843 fi
14844 done
14845 done
14846
14847 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14848 fi
14849 fi
14850 liblockfile=$ac_cv_prog_liblockfile
14851 if test -n "$liblockfile"; then
14852 echo "$as_me:$LINENO: result: $liblockfile" >&5
14853 echo "${ECHO_T}$liblockfile" >&6
14854 else
14855 echo "$as_me:$LINENO: result: no" >&5
14856 echo "${ECHO_T}no" >&6
14857 fi
14858
14859 if test $ac_cv_prog_liblockfile = yes; then
14860 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14861 This probably means that movemail could lose mail.
14862 There may be a \`development' package to install containing liblockfile." >&5
14863 echo "$as_me: error: Shared liblockfile found but can't link against it.
14864 This probably means that movemail could lose mail.
14865 There may be a \`development' package to install containing liblockfile." >&2;}
14866 { (exit 1); exit 1; }; }
14867 else :
14868 fi
14869 fi
14870
14871 for ac_func in touchlock
14872 do
14873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14874 echo "$as_me:$LINENO: checking for $ac_func" >&5
14875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14876 if eval "test \"\${$as_ac_var+set}\" = set"; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879 cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h. */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14887 #define $ac_func innocuous_$ac_func
14888
14889 /* System header to define __stub macros and hopefully few prototypes,
14890 which can conflict with char $ac_func (); below.
14891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14892 <limits.h> exists even on freestanding compilers. */
14893
14894 #ifdef __STDC__
14895 # include <limits.h>
14896 #else
14897 # include <assert.h>
14898 #endif
14899
14900 #undef $ac_func
14901
14902 /* Override any gcc2 internal prototype to avoid an error. */
14903 #ifdef __cplusplus
14904 extern "C"
14905 {
14906 #endif
14907 /* We use char because int might match the return type of a gcc2
14908 builtin and then its argument prototype would still apply. */
14909 char $ac_func ();
14910 /* The GNU C library defines this for functions which it implements
14911 to always fail with ENOSYS. Some functions are actually named
14912 something starting with __ and the normal name is an alias. */
14913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14914 choke me
14915 #else
14916 char (*f) () = $ac_func;
14917 #endif
14918 #ifdef __cplusplus
14919 }
14920 #endif
14921
14922 int
14923 main ()
14924 {
14925 return f != $ac_func;
14926 ;
14927 return 0;
14928 }
14929 _ACEOF
14930 rm -f conftest.$ac_objext conftest$ac_exeext
14931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14932 (eval $ac_link) 2>conftest.er1
14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest$ac_exeext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 eval "$as_ac_var=yes"
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14956
14957 eval "$as_ac_var=no"
14958 fi
14959 rm -f conftest.err conftest.$ac_objext \
14960 conftest$ac_exeext conftest.$ac_ext
14961 fi
14962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14964 if test `eval echo '${'$as_ac_var'}'` = yes; then
14965 cat >>confdefs.h <<_ACEOF
14966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14967 _ACEOF
14968
14969 fi
14970 done
14971
14972
14973 for ac_header in maillock.h
14974 do
14975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14977 echo "$as_me:$LINENO: checking for $ac_header" >&5
14978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 fi
14982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14984 else
14985 # Is the header compilable?
14986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14988 cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h. */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 $ac_includes_default
14995 #include <$ac_header>
14996 _ACEOF
14997 rm -f conftest.$ac_objext
14998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14999 (eval $ac_compile) 2>conftest.er1
15000 ac_status=$?
15001 grep -v '^ *+' conftest.er1 >conftest.err
15002 rm -f conftest.er1
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -z "$ac_c_werror_flag"
15007 || test ! -s conftest.err'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest.$ac_objext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_header_compiler=yes
15020 else
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024 ac_header_compiler=no
15025 fi
15026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15028 echo "${ECHO_T}$ac_header_compiler" >&6
15029
15030 # Is the header present?
15031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15033 cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h. */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 #include <$ac_header>
15040 _ACEOF
15041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } >/dev/null; then
15049 if test -s conftest.err; then
15050 ac_cpp_err=$ac_c_preproc_warn_flag
15051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15052 else
15053 ac_cpp_err=
15054 fi
15055 else
15056 ac_cpp_err=yes
15057 fi
15058 if test -z "$ac_cpp_err"; then
15059 ac_header_preproc=yes
15060 else
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064 ac_header_preproc=no
15065 fi
15066 rm -f conftest.err conftest.$ac_ext
15067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15068 echo "${ECHO_T}$ac_header_preproc" >&6
15069
15070 # So? What about this header?
15071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15072 yes:no: )
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15077 ac_header_preproc=yes
15078 ;;
15079 no:yes:* )
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15092 (
15093 cat <<\_ASBOX
15094 ## ------------------------------------------ ##
15095 ## Report this to the AC_PACKAGE_NAME lists. ##
15096 ## ------------------------------------------ ##
15097 _ASBOX
15098 ) |
15099 sed "s/^/$as_me: WARNING: /" >&2
15100 ;;
15101 esac
15102 echo "$as_me:$LINENO: checking for $ac_header" >&5
15103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107 eval "$as_ac_Header=\$ac_header_preproc"
15108 fi
15109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15111
15112 fi
15113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15114 cat >>confdefs.h <<_ACEOF
15115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15116 _ACEOF
15117
15118 fi
15119
15120 done
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191 for ac_func in gethostname getdomainname dup2 \
15192 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15193 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15194 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15195 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15196 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15197 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15198 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
15199 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15200 do
15201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15202 echo "$as_me:$LINENO: checking for $ac_func" >&5
15203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15204 if eval "test \"\${$as_ac_var+set}\" = set"; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15215 #define $ac_func innocuous_$ac_func
15216
15217 /* System header to define __stub macros and hopefully few prototypes,
15218 which can conflict with char $ac_func (); below.
15219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15220 <limits.h> exists even on freestanding compilers. */
15221
15222 #ifdef __STDC__
15223 # include <limits.h>
15224 #else
15225 # include <assert.h>
15226 #endif
15227
15228 #undef $ac_func
15229
15230 /* Override any gcc2 internal prototype to avoid an error. */
15231 #ifdef __cplusplus
15232 extern "C"
15233 {
15234 #endif
15235 /* We use char because int might match the return type of a gcc2
15236 builtin and then its argument prototype would still apply. */
15237 char $ac_func ();
15238 /* The GNU C library defines this for functions which it implements
15239 to always fail with ENOSYS. Some functions are actually named
15240 something starting with __ and the normal name is an alias. */
15241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15242 choke me
15243 #else
15244 char (*f) () = $ac_func;
15245 #endif
15246 #ifdef __cplusplus
15247 }
15248 #endif
15249
15250 int
15251 main ()
15252 {
15253 return f != $ac_func;
15254 ;
15255 return 0;
15256 }
15257 _ACEOF
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15260 (eval $ac_link) 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -z "$ac_c_werror_flag"
15268 || test ! -s conftest.err'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; } &&
15274 { ac_try='test -s conftest$ac_exeext'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 eval "$as_ac_var=yes"
15281 else
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15284
15285 eval "$as_ac_var=no"
15286 fi
15287 rm -f conftest.err conftest.$ac_objext \
15288 conftest$ac_exeext conftest.$ac_ext
15289 fi
15290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15292 if test `eval echo '${'$as_ac_var'}'` = yes; then
15293 cat >>confdefs.h <<_ACEOF
15294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15295 _ACEOF
15296
15297 fi
15298 done
15299
15300
15301
15302 for ac_header in sys/un.h
15303 do
15304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15306 echo "$as_me:$LINENO: checking for $ac_header" >&5
15307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 fi
15311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15313 else
15314 # Is the header compilable?
15315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15317 cat >conftest.$ac_ext <<_ACEOF
15318 /* confdefs.h. */
15319 _ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 $ac_includes_default
15324 #include <$ac_header>
15325 _ACEOF
15326 rm -f conftest.$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -z "$ac_c_werror_flag"
15336 || test ! -s conftest.err'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_header_compiler=yes
15349 else
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353 ac_header_compiler=no
15354 fi
15355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357 echo "${ECHO_T}$ac_header_compiler" >&6
15358
15359 # Is the header present?
15360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h. */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 #include <$ac_header>
15369 _ACEOF
15370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } >/dev/null; then
15378 if test -s conftest.err; then
15379 ac_cpp_err=$ac_c_preproc_warn_flag
15380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15381 else
15382 ac_cpp_err=
15383 fi
15384 else
15385 ac_cpp_err=yes
15386 fi
15387 if test -z "$ac_cpp_err"; then
15388 ac_header_preproc=yes
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 ac_header_preproc=no
15394 fi
15395 rm -f conftest.err conftest.$ac_ext
15396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397 echo "${ECHO_T}$ac_header_preproc" >&6
15398
15399 # So? What about this header?
15400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15401 yes:no: )
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15406 ac_header_preproc=yes
15407 ;;
15408 no:yes:* )
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15421 (
15422 cat <<\_ASBOX
15423 ## ------------------------------------------ ##
15424 ## Report this to the AC_PACKAGE_NAME lists. ##
15425 ## ------------------------------------------ ##
15426 _ASBOX
15427 ) |
15428 sed "s/^/$as_me: WARNING: /" >&2
15429 ;;
15430 esac
15431 echo "$as_me:$LINENO: checking for $ac_header" >&5
15432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 else
15436 eval "$as_ac_Header=\$ac_header_preproc"
15437 fi
15438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15440
15441 fi
15442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15443 cat >>confdefs.h <<_ACEOF
15444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15445 _ACEOF
15446
15447 fi
15448
15449 done
15450
15451
15452
15453
15454
15455 for ac_header in stdlib.h sys/time.h unistd.h
15456 do
15457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15459 echo "$as_me:$LINENO: checking for $ac_header" >&5
15460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 fi
15464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15466 else
15467 # Is the header compilable?
15468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15470 cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h. */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15477 #include <$ac_header>
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>conftest.er1
15482 ac_status=$?
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try='test -z "$ac_c_werror_flag"
15489 || test ! -s conftest.err'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try='test -s conftest.$ac_objext'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15501 ac_header_compiler=yes
15502 else
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15505
15506 ac_header_compiler=no
15507 fi
15508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15510 echo "${ECHO_T}$ac_header_compiler" >&6
15511
15512 # Is the header present?
15513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15515 cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h. */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 #include <$ac_header>
15522 _ACEOF
15523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15525 ac_status=$?
15526 grep -v '^ *+' conftest.er1 >conftest.err
15527 rm -f conftest.er1
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } >/dev/null; then
15531 if test -s conftest.err; then
15532 ac_cpp_err=$ac_c_preproc_warn_flag
15533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15534 else
15535 ac_cpp_err=
15536 fi
15537 else
15538 ac_cpp_err=yes
15539 fi
15540 if test -z "$ac_cpp_err"; then
15541 ac_header_preproc=yes
15542 else
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15545
15546 ac_header_preproc=no
15547 fi
15548 rm -f conftest.err conftest.$ac_ext
15549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15550 echo "${ECHO_T}$ac_header_preproc" >&6
15551
15552 # So? What about this header?
15553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15554 yes:no: )
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15559 ac_header_preproc=yes
15560 ;;
15561 no:yes:* )
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15574 (
15575 cat <<\_ASBOX
15576 ## ------------------------------------------ ##
15577 ## Report this to the AC_PACKAGE_NAME lists. ##
15578 ## ------------------------------------------ ##
15579 _ASBOX
15580 ) |
15581 sed "s/^/$as_me: WARNING: /" >&2
15582 ;;
15583 esac
15584 echo "$as_me:$LINENO: checking for $ac_header" >&5
15585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 else
15589 eval "$as_ac_Header=\$ac_header_preproc"
15590 fi
15591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15593
15594 fi
15595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15596 cat >>confdefs.h <<_ACEOF
15597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15598 _ACEOF
15599
15600 fi
15601
15602 done
15603
15604
15605 for ac_func in alarm
15606 do
15607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15608 echo "$as_me:$LINENO: checking for $ac_func" >&5
15609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15610 if eval "test \"\${$as_ac_var+set}\" = set"; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 else
15613 cat >conftest.$ac_ext <<_ACEOF
15614 /* confdefs.h. */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15621 #define $ac_func innocuous_$ac_func
15622
15623 /* System header to define __stub macros and hopefully few prototypes,
15624 which can conflict with char $ac_func (); below.
15625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15626 <limits.h> exists even on freestanding compilers. */
15627
15628 #ifdef __STDC__
15629 # include <limits.h>
15630 #else
15631 # include <assert.h>
15632 #endif
15633
15634 #undef $ac_func
15635
15636 /* Override any gcc2 internal prototype to avoid an error. */
15637 #ifdef __cplusplus
15638 extern "C"
15639 {
15640 #endif
15641 /* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15643 char $ac_func ();
15644 /* The GNU C library defines this for functions which it implements
15645 to always fail with ENOSYS. Some functions are actually named
15646 something starting with __ and the normal name is an alias. */
15647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15648 choke me
15649 #else
15650 char (*f) () = $ac_func;
15651 #endif
15652 #ifdef __cplusplus
15653 }
15654 #endif
15655
15656 int
15657 main ()
15658 {
15659 return f != $ac_func;
15660 ;
15661 return 0;
15662 }
15663 _ACEOF
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666 (eval $ac_link) 2>conftest.er1
15667 ac_status=$?
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
15673 { ac_try='test -z "$ac_c_werror_flag"
15674 || test ! -s conftest.err'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest$ac_exeext'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 eval "$as_ac_var=yes"
15687 else
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15690
15691 eval "$as_ac_var=no"
15692 fi
15693 rm -f conftest.err conftest.$ac_objext \
15694 conftest$ac_exeext conftest.$ac_ext
15695 fi
15696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15698 if test `eval echo '${'$as_ac_var'}'` = yes; then
15699 cat >>confdefs.h <<_ACEOF
15700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15701 _ACEOF
15702
15703 fi
15704 done
15705
15706 echo "$as_me:$LINENO: checking for working mktime" >&5
15707 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15708 if test "${ac_cv_func_working_mktime+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711 if test "$cross_compiling" = yes; then
15712 ac_cv_func_working_mktime=no
15713 else
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 /* Test program from Paul Eggert and Tony Leneis. */
15721 #if TIME_WITH_SYS_TIME
15722 # include <sys/time.h>
15723 # include <time.h>
15724 #else
15725 # if HAVE_SYS_TIME_H
15726 # include <sys/time.h>
15727 # else
15728 # include <time.h>
15729 # endif
15730 #endif
15731
15732 #if HAVE_STDLIB_H
15733 # include <stdlib.h>
15734 #endif
15735
15736 #if HAVE_UNISTD_H
15737 # include <unistd.h>
15738 #endif
15739
15740 #if !HAVE_ALARM
15741 # define alarm(X) /* empty */
15742 #endif
15743
15744 /* Work around redefinition to rpl_putenv by other config tests. */
15745 #undef putenv
15746
15747 static time_t time_t_max;
15748 static time_t time_t_min;
15749
15750 /* Values we'll use to set the TZ environment variable. */
15751 static char *tz_strings[] = {
15752 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15753 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15754 };
15755 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15756
15757 /* Fail if mktime fails to convert a date in the spring-forward gap.
15758 Based on a problem report from Andreas Jaeger. */
15759 static void
15760 spring_forward_gap ()
15761 {
15762 /* glibc (up to about 1998-10-07) failed this test. */
15763 struct tm tm;
15764
15765 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15766 instead of "TZ=America/Vancouver" in order to detect the bug even
15767 on systems that don't support the Olson extension, or don't have the
15768 full zoneinfo tables installed. */
15769 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15770
15771 tm.tm_year = 98;
15772 tm.tm_mon = 3;
15773 tm.tm_mday = 5;
15774 tm.tm_hour = 2;
15775 tm.tm_min = 0;
15776 tm.tm_sec = 0;
15777 tm.tm_isdst = -1;
15778 if (mktime (&tm) == (time_t)-1)
15779 exit (1);
15780 }
15781
15782 static void
15783 mktime_test1 (now)
15784 time_t now;
15785 {
15786 struct tm *lt;
15787 if ((lt = localtime (&now)) && mktime (lt) != now)
15788 exit (1);
15789 }
15790
15791 static void
15792 mktime_test (now)
15793 time_t now;
15794 {
15795 mktime_test1 (now);
15796 mktime_test1 ((time_t) (time_t_max - now));
15797 mktime_test1 ((time_t) (time_t_min + now));
15798 }
15799
15800 static void
15801 irix_6_4_bug ()
15802 {
15803 /* Based on code from Ariel Faigon. */
15804 struct tm tm;
15805 tm.tm_year = 96;
15806 tm.tm_mon = 3;
15807 tm.tm_mday = 0;
15808 tm.tm_hour = 0;
15809 tm.tm_min = 0;
15810 tm.tm_sec = 0;
15811 tm.tm_isdst = -1;
15812 mktime (&tm);
15813 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15814 exit (1);
15815 }
15816
15817 static void
15818 bigtime_test (j)
15819 int j;
15820 {
15821 struct tm tm;
15822 time_t now;
15823 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15824 now = mktime (&tm);
15825 if (now != (time_t) -1)
15826 {
15827 struct tm *lt = localtime (&now);
15828 if (! (lt
15829 && lt->tm_year == tm.tm_year
15830 && lt->tm_mon == tm.tm_mon
15831 && lt->tm_mday == tm.tm_mday
15832 && lt->tm_hour == tm.tm_hour
15833 && lt->tm_min == tm.tm_min
15834 && lt->tm_sec == tm.tm_sec
15835 && lt->tm_yday == tm.tm_yday
15836 && lt->tm_wday == tm.tm_wday
15837 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15838 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15839 exit (1);
15840 }
15841 }
15842
15843 int
15844 main ()
15845 {
15846 time_t t, delta;
15847 int i, j;
15848
15849 /* This test makes some buggy mktime implementations loop.
15850 Give up after 60 seconds; a mktime slower than that
15851 isn't worth using anyway. */
15852 alarm (60);
15853
15854 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15855 continue;
15856 time_t_max--;
15857 if ((time_t) -1 < 0)
15858 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15859 continue;
15860 delta = time_t_max / 997; /* a suitable prime number */
15861 for (i = 0; i < N_STRINGS; i++)
15862 {
15863 if (tz_strings[i])
15864 putenv (tz_strings[i]);
15865
15866 for (t = 0; t <= time_t_max - delta; t += delta)
15867 mktime_test (t);
15868 mktime_test ((time_t) 1);
15869 mktime_test ((time_t) (60 * 60));
15870 mktime_test ((time_t) (60 * 60 * 24));
15871
15872 for (j = 1; 0 < j; j *= 2)
15873 bigtime_test (j);
15874 bigtime_test (j - 1);
15875 }
15876 irix_6_4_bug ();
15877 spring_forward_gap ();
15878 exit (0);
15879 }
15880 _ACEOF
15881 rm -f conftest$ac_exeext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15883 (eval $ac_link) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15889 ac_status=$?
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; }; then
15892 ac_cv_func_working_mktime=yes
15893 else
15894 echo "$as_me: program exited with status $ac_status" >&5
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898 ( exit $ac_status )
15899 ac_cv_func_working_mktime=no
15900 fi
15901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15902 fi
15903 fi
15904 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15905 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15906 if test $ac_cv_func_working_mktime = no; then
15907 case $LIBOBJS in
15908 "mktime.$ac_objext" | \
15909 *" mktime.$ac_objext" | \
15910 "mktime.$ac_objext "* | \
15911 *" mktime.$ac_objext "* ) ;;
15912 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15913 esac
15914
15915 fi
15916
15917 if test "$ac_cv_func_working_mktime" = no; then
15918
15919 cat >>confdefs.h <<\_ACEOF
15920 #define BROKEN_MKTIME 1
15921 _ACEOF
15922
15923 fi
15924
15925 ac_have_func=no # yes means we've found a way to get the load average.
15926
15927 # Make sure getloadavg.c is where it belongs, at configure-time.
15928 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15929 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15930 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15931 { (exit 1); exit 1; }; }
15932
15933 ac_save_LIBS=$LIBS
15934
15935 # Check for getloadavg, but be sure not to touch the cache variable.
15936 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15937 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15938 if test "${ac_cv_func_getloadavg+set}" = set; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h. */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15949 #define getloadavg innocuous_getloadavg
15950
15951 /* System header to define __stub macros and hopefully few prototypes,
15952 which can conflict with char getloadavg (); below.
15953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15954 <limits.h> exists even on freestanding compilers. */
15955
15956 #ifdef __STDC__
15957 # include <limits.h>
15958 #else
15959 # include <assert.h>
15960 #endif
15961
15962 #undef getloadavg
15963
15964 /* Override any gcc2 internal prototype to avoid an error. */
15965 #ifdef __cplusplus
15966 extern "C"
15967 {
15968 #endif
15969 /* We use char because int might match the return type of a gcc2
15970 builtin and then its argument prototype would still apply. */
15971 char getloadavg ();
15972 /* The GNU C library defines this for functions which it implements
15973 to always fail with ENOSYS. Some functions are actually named
15974 something starting with __ and the normal name is an alias. */
15975 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15976 choke me
15977 #else
15978 char (*f) () = getloadavg;
15979 #endif
15980 #ifdef __cplusplus
15981 }
15982 #endif
15983
15984 int
15985 main ()
15986 {
15987 return f != getloadavg;
15988 ;
15989 return 0;
15990 }
15991 _ACEOF
15992 rm -f conftest.$ac_objext conftest$ac_exeext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994 (eval $ac_link) 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -z "$ac_c_werror_flag"
16002 || test ! -s conftest.err'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest$ac_exeext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_cv_func_getloadavg=yes
16015 else
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019 ac_cv_func_getloadavg=no
16020 fi
16021 rm -f conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16023 fi
16024 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16025 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
16026 if test $ac_cv_func_getloadavg = yes; then
16027 exit 0
16028 else
16029 exit 1
16030 fi
16031 ) && ac_have_func=yes
16032
16033 # On HPUX9, an unprivileged user can get load averages through this function.
16034
16035 for ac_func in pstat_getdynamic
16036 do
16037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16038 echo "$as_me:$LINENO: checking for $ac_func" >&5
16039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16040 if eval "test \"\${$as_ac_var+set}\" = set"; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 else
16043 cat >conftest.$ac_ext <<_ACEOF
16044 /* confdefs.h. */
16045 _ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16051 #define $ac_func innocuous_$ac_func
16052
16053 /* System header to define __stub macros and hopefully few prototypes,
16054 which can conflict with char $ac_func (); below.
16055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16056 <limits.h> exists even on freestanding compilers. */
16057
16058 #ifdef __STDC__
16059 # include <limits.h>
16060 #else
16061 # include <assert.h>
16062 #endif
16063
16064 #undef $ac_func
16065
16066 /* Override any gcc2 internal prototype to avoid an error. */
16067 #ifdef __cplusplus
16068 extern "C"
16069 {
16070 #endif
16071 /* We use char because int might match the return type of a gcc2
16072 builtin and then its argument prototype would still apply. */
16073 char $ac_func ();
16074 /* The GNU C library defines this for functions which it implements
16075 to always fail with ENOSYS. Some functions are actually named
16076 something starting with __ and the normal name is an alias. */
16077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16078 choke me
16079 #else
16080 char (*f) () = $ac_func;
16081 #endif
16082 #ifdef __cplusplus
16083 }
16084 #endif
16085
16086 int
16087 main ()
16088 {
16089 return f != $ac_func;
16090 ;
16091 return 0;
16092 }
16093 _ACEOF
16094 rm -f conftest.$ac_objext conftest$ac_exeext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16096 (eval $ac_link) 2>conftest.er1
16097 ac_status=$?
16098 grep -v '^ *+' conftest.er1 >conftest.err
16099 rm -f conftest.er1
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -z "$ac_c_werror_flag"
16104 || test ! -s conftest.err'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest$ac_exeext'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16113 ac_status=$?
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 eval "$as_ac_var=yes"
16117 else
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121 eval "$as_ac_var=no"
16122 fi
16123 rm -f conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16125 fi
16126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16128 if test `eval echo '${'$as_ac_var'}'` = yes; then
16129 cat >>confdefs.h <<_ACEOF
16130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16131 _ACEOF
16132
16133 fi
16134 done
16135
16136
16137 # Solaris has libkstat which does not require root.
16138
16139 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16140 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
16141 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144 ac_check_lib_save_LIBS=$LIBS
16145 LIBS="-lkstat $LIBS"
16146 cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h. */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16152
16153 /* Override any gcc2 internal prototype to avoid an error. */
16154 #ifdef __cplusplus
16155 extern "C"
16156 #endif
16157 /* We use char because int might match the return type of a gcc2
16158 builtin and then its argument prototype would still apply. */
16159 char kstat_open ();
16160 int
16161 main ()
16162 {
16163 kstat_open ();
16164 ;
16165 return 0;
16166 }
16167 _ACEOF
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16170 (eval $ac_link) 2>conftest.er1
16171 ac_status=$?
16172 grep -v '^ *+' conftest.er1 >conftest.err
16173 rm -f conftest.er1
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try='test -z "$ac_c_werror_flag"
16178 || 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_kstat_kstat_open=yes
16191 else
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 ac_cv_lib_kstat_kstat_open=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_kstat_kstat_open" >&5
16202 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
16203 if test $ac_cv_lib_kstat_kstat_open = yes; then
16204 cat >>confdefs.h <<_ACEOF
16205 #define HAVE_LIBKSTAT 1
16206 _ACEOF
16207
16208 LIBS="-lkstat $LIBS"
16209
16210 fi
16211
16212 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16213
16214 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16215 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16216 # to get the right answer into the cache.
16217 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16218 if test $ac_have_func = no; then
16219 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16220 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
16221 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224 ac_check_lib_save_LIBS=$LIBS
16225 LIBS="-lelf $LIBS"
16226 cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h. */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232
16233 /* Override any gcc2 internal prototype to avoid an error. */
16234 #ifdef __cplusplus
16235 extern "C"
16236 #endif
16237 /* We use char because int might match the return type of a gcc2
16238 builtin and then its argument prototype would still apply. */
16239 char elf_begin ();
16240 int
16241 main ()
16242 {
16243 elf_begin ();
16244 ;
16245 return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250 (eval $ac_link) 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } &&
16257 { ac_try='test -z "$ac_c_werror_flag"
16258 || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest$ac_exeext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_lib_elf_elf_begin=yes
16271 else
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16274
16275 ac_cv_lib_elf_elf_begin=no
16276 fi
16277 rm -f conftest.err conftest.$ac_objext \
16278 conftest$ac_exeext conftest.$ac_ext
16279 LIBS=$ac_check_lib_save_LIBS
16280 fi
16281 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16282 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
16283 if test $ac_cv_lib_elf_elf_begin = yes; then
16284 LIBS="-lelf $LIBS"
16285 fi
16286
16287 fi
16288 if test $ac_have_func = no; then
16289 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16290 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
16291 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 else
16294 ac_check_lib_save_LIBS=$LIBS
16295 LIBS="-lkvm $LIBS"
16296 cat >conftest.$ac_ext <<_ACEOF
16297 /* confdefs.h. */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302
16303 /* Override any gcc2 internal prototype to avoid an error. */
16304 #ifdef __cplusplus
16305 extern "C"
16306 #endif
16307 /* We use char because int might match the return type of a gcc2
16308 builtin and then its argument prototype would still apply. */
16309 char kvm_open ();
16310 int
16311 main ()
16312 {
16313 kvm_open ();
16314 ;
16315 return 0;
16316 }
16317 _ACEOF
16318 rm -f conftest.$ac_objext conftest$ac_exeext
16319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16320 (eval $ac_link) 2>conftest.er1
16321 ac_status=$?
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
16327 { ac_try='test -z "$ac_c_werror_flag"
16328 || test ! -s conftest.err'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; } &&
16334 { ac_try='test -s conftest$ac_exeext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 ac_cv_lib_kvm_kvm_open=yes
16341 else
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16344
16345 ac_cv_lib_kvm_kvm_open=no
16346 fi
16347 rm -f conftest.err conftest.$ac_objext \
16348 conftest$ac_exeext conftest.$ac_ext
16349 LIBS=$ac_check_lib_save_LIBS
16350 fi
16351 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16352 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
16353 if test $ac_cv_lib_kvm_kvm_open = yes; then
16354 LIBS="-lkvm $LIBS"
16355 fi
16356
16357 # Check for the 4.4BSD definition of getloadavg.
16358 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16359 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
16360 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 else
16363 ac_check_lib_save_LIBS=$LIBS
16364 LIBS="-lutil $LIBS"
16365 cat >conftest.$ac_ext <<_ACEOF
16366 /* confdefs.h. */
16367 _ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16371
16372 /* Override any gcc2 internal prototype to avoid an error. */
16373 #ifdef __cplusplus
16374 extern "C"
16375 #endif
16376 /* We use char because int might match the return type of a gcc2
16377 builtin and then its argument prototype would still apply. */
16378 char getloadavg ();
16379 int
16380 main ()
16381 {
16382 getloadavg ();
16383 ;
16384 return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16389 (eval $ac_link) 2>conftest.er1
16390 ac_status=$?
16391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -z "$ac_c_werror_flag"
16397 || test ! -s conftest.err'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16400 ac_status=$?
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; } &&
16403 { ac_try='test -s conftest$ac_exeext'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ac_cv_lib_util_getloadavg=yes
16410 else
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16413
16414 ac_cv_lib_util_getloadavg=no
16415 fi
16416 rm -f conftest.err conftest.$ac_objext \
16417 conftest$ac_exeext conftest.$ac_ext
16418 LIBS=$ac_check_lib_save_LIBS
16419 fi
16420 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16421 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
16422 if test $ac_cv_lib_util_getloadavg = yes; then
16423 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16424 fi
16425
16426 fi
16427
16428 if test $ac_have_func = no; then
16429 # There is a commonly available library for RS/6000 AIX.
16430 # Since it is not a standard part of AIX, it might be installed locally.
16431 ac_getloadavg_LIBS=$LIBS
16432 LIBS="-L/usr/local/lib $LIBS"
16433 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16434 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
16435 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 else
16438 ac_check_lib_save_LIBS=$LIBS
16439 LIBS="-lgetloadavg $LIBS"
16440 cat >conftest.$ac_ext <<_ACEOF
16441 /* confdefs.h. */
16442 _ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16446
16447 /* Override any gcc2 internal prototype to avoid an error. */
16448 #ifdef __cplusplus
16449 extern "C"
16450 #endif
16451 /* We use char because int might match the return type of a gcc2
16452 builtin and then its argument prototype would still apply. */
16453 char getloadavg ();
16454 int
16455 main ()
16456 {
16457 getloadavg ();
16458 ;
16459 return 0;
16460 }
16461 _ACEOF
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16464 (eval $ac_link) 2>conftest.er1
16465 ac_status=$?
16466 grep -v '^ *+' conftest.er1 >conftest.err
16467 rm -f conftest.er1
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try='test -z "$ac_c_werror_flag"
16472 || test ! -s conftest.err'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest$ac_exeext'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_cv_lib_getloadavg_getloadavg=yes
16485 else
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489 ac_cv_lib_getloadavg_getloadavg=no
16490 fi
16491 rm -f conftest.err conftest.$ac_objext \
16492 conftest$ac_exeext conftest.$ac_ext
16493 LIBS=$ac_check_lib_save_LIBS
16494 fi
16495 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16496 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
16497 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16498 LIBS="-lgetloadavg $LIBS"
16499 else
16500 LIBS=$ac_getloadavg_LIBS
16501 fi
16502
16503 fi
16504
16505 # Make sure it is really in the library, if we think we found it,
16506 # otherwise set up the replacement function.
16507
16508 for ac_func in getloadavg
16509 do
16510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16511 echo "$as_me:$LINENO: checking for $ac_func" >&5
16512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16513 if eval "test \"\${$as_ac_var+set}\" = set"; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 else
16516 cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h. */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16524 #define $ac_func innocuous_$ac_func
16525
16526 /* System header to define __stub macros and hopefully few prototypes,
16527 which can conflict with char $ac_func (); below.
16528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16529 <limits.h> exists even on freestanding compilers. */
16530
16531 #ifdef __STDC__
16532 # include <limits.h>
16533 #else
16534 # include <assert.h>
16535 #endif
16536
16537 #undef $ac_func
16538
16539 /* Override any gcc2 internal prototype to avoid an error. */
16540 #ifdef __cplusplus
16541 extern "C"
16542 {
16543 #endif
16544 /* We use char because int might match the return type of a gcc2
16545 builtin and then its argument prototype would still apply. */
16546 char $ac_func ();
16547 /* The GNU C library defines this for functions which it implements
16548 to always fail with ENOSYS. Some functions are actually named
16549 something starting with __ and the normal name is an alias. */
16550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16551 choke me
16552 #else
16553 char (*f) () = $ac_func;
16554 #endif
16555 #ifdef __cplusplus
16556 }
16557 #endif
16558
16559 int
16560 main ()
16561 {
16562 return f != $ac_func;
16563 ;
16564 return 0;
16565 }
16566 _ACEOF
16567 rm -f conftest.$ac_objext conftest$ac_exeext
16568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16569 (eval $ac_link) 2>conftest.er1
16570 ac_status=$?
16571 grep -v '^ *+' conftest.er1 >conftest.err
16572 rm -f conftest.er1
16573 cat conftest.err >&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); } &&
16576 { ac_try='test -z "$ac_c_werror_flag"
16577 || test ! -s conftest.err'
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); }; } &&
16583 { ac_try='test -s conftest$ac_exeext'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589 eval "$as_ac_var=yes"
16590 else
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16593
16594 eval "$as_ac_var=no"
16595 fi
16596 rm -f conftest.err conftest.$ac_objext \
16597 conftest$ac_exeext conftest.$ac_ext
16598 fi
16599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16601 if test `eval echo '${'$as_ac_var'}'` = yes; then
16602 cat >>confdefs.h <<_ACEOF
16603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16604 _ACEOF
16605
16606 else
16607 case $LIBOBJS in
16608 "getloadavg.$ac_objext" | \
16609 *" getloadavg.$ac_objext" | \
16610 "getloadavg.$ac_objext "* | \
16611 *" getloadavg.$ac_objext "* ) ;;
16612 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
16613 esac
16614
16615
16616 cat >>confdefs.h <<\_ACEOF
16617 #define C_GETLOADAVG 1
16618 _ACEOF
16619
16620 # Figure out what our getloadavg.c needs.
16621 ac_have_func=no
16622 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16623 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16624 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16625 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 fi
16628 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16629 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16630 else
16631 # Is the header compilable?
16632 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16633 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16634 cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h. */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 $ac_includes_default
16641 #include <sys/dg_sys_info.h>
16642 _ACEOF
16643 rm -f conftest.$ac_objext
16644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16645 (eval $ac_compile) 2>conftest.er1
16646 ac_status=$?
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -z "$ac_c_werror_flag"
16653 || test ! -s conftest.err'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; } &&
16659 { ac_try='test -s conftest.$ac_objext'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_header_compiler=yes
16666 else
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670 ac_header_compiler=no
16671 fi
16672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16674 echo "${ECHO_T}$ac_header_compiler" >&6
16675
16676 # Is the header present?
16677 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16678 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16679 cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h. */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 #include <sys/dg_sys_info.h>
16686 _ACEOF
16687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16689 ac_status=$?
16690 grep -v '^ *+' conftest.er1 >conftest.err
16691 rm -f conftest.er1
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } >/dev/null; then
16695 if test -s conftest.err; then
16696 ac_cpp_err=$ac_c_preproc_warn_flag
16697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16698 else
16699 ac_cpp_err=
16700 fi
16701 else
16702 ac_cpp_err=yes
16703 fi
16704 if test -z "$ac_cpp_err"; then
16705 ac_header_preproc=yes
16706 else
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710 ac_header_preproc=no
16711 fi
16712 rm -f conftest.err conftest.$ac_ext
16713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16714 echo "${ECHO_T}$ac_header_preproc" >&6
16715
16716 # So? What about this header?
16717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16718 yes:no: )
16719 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16720 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16721 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16722 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16723 ac_header_preproc=yes
16724 ;;
16725 no:yes:* )
16726 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16727 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16729 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16731 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16733 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16734 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16735 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16736 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16737 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16738 (
16739 cat <<\_ASBOX
16740 ## ------------------------------------------ ##
16741 ## Report this to the AC_PACKAGE_NAME lists. ##
16742 ## ------------------------------------------ ##
16743 _ASBOX
16744 ) |
16745 sed "s/^/$as_me: WARNING: /" >&2
16746 ;;
16747 esac
16748 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16749 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16750 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16754 fi
16755 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16756 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16757
16758 fi
16759 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16760 ac_have_func=yes
16761
16762 cat >>confdefs.h <<\_ACEOF
16763 #define DGUX 1
16764 _ACEOF
16765
16766
16767 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16768 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16769 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772 ac_check_lib_save_LIBS=$LIBS
16773 LIBS="-ldgc $LIBS"
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
16781 /* Override any gcc2 internal prototype to avoid an error. */
16782 #ifdef __cplusplus
16783 extern "C"
16784 #endif
16785 /* We use char because int might match the return type of a gcc2
16786 builtin and then its argument prototype would still apply. */
16787 char dg_sys_info ();
16788 int
16789 main ()
16790 {
16791 dg_sys_info ();
16792 ;
16793 return 0;
16794 }
16795 _ACEOF
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -z "$ac_c_werror_flag"
16806 || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest$ac_exeext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_cv_lib_dgc_dg_sys_info=yes
16819 else
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823 ac_cv_lib_dgc_dg_sys_info=no
16824 fi
16825 rm -f conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16827 LIBS=$ac_check_lib_save_LIBS
16828 fi
16829 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16830 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16831 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16832 cat >>confdefs.h <<_ACEOF
16833 #define HAVE_LIBDGC 1
16834 _ACEOF
16835
16836 LIBS="-ldgc $LIBS"
16837
16838 fi
16839
16840 fi
16841
16842
16843
16844 if test "${ac_cv_header_locale_h+set}" = set; then
16845 echo "$as_me:$LINENO: checking for locale.h" >&5
16846 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16847 if test "${ac_cv_header_locale_h+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 fi
16850 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16851 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16852 else
16853 # Is the header compilable?
16854 echo "$as_me:$LINENO: checking locale.h usability" >&5
16855 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h. */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 $ac_includes_default
16863 #include <locale.h>
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867 (eval $ac_compile) 2>conftest.er1
16868 ac_status=$?
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try='test -z "$ac_c_werror_flag"
16875 || test ! -s conftest.err'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; } &&
16881 { ac_try='test -s conftest.$ac_objext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ac_header_compiler=yes
16888 else
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16891
16892 ac_header_compiler=no
16893 fi
16894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16896 echo "${ECHO_T}$ac_header_compiler" >&6
16897
16898 # Is the header present?
16899 echo "$as_me:$LINENO: checking locale.h presence" >&5
16900 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h. */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 #include <locale.h>
16908 _ACEOF
16909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16911 ac_status=$?
16912 grep -v '^ *+' conftest.er1 >conftest.err
16913 rm -f conftest.er1
16914 cat conftest.err >&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } >/dev/null; then
16917 if test -s conftest.err; then
16918 ac_cpp_err=$ac_c_preproc_warn_flag
16919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16920 else
16921 ac_cpp_err=
16922 fi
16923 else
16924 ac_cpp_err=yes
16925 fi
16926 if test -z "$ac_cpp_err"; then
16927 ac_header_preproc=yes
16928 else
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16931
16932 ac_header_preproc=no
16933 fi
16934 rm -f conftest.err conftest.$ac_ext
16935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16936 echo "${ECHO_T}$ac_header_preproc" >&6
16937
16938 # So? What about this header?
16939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16940 yes:no: )
16941 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16942 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16943 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16944 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16945 ac_header_preproc=yes
16946 ;;
16947 no:yes:* )
16948 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16949 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16951 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16953 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16955 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16957 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16959 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16960 (
16961 cat <<\_ASBOX
16962 ## ------------------------------------------ ##
16963 ## Report this to the AC_PACKAGE_NAME lists. ##
16964 ## ------------------------------------------ ##
16965 _ASBOX
16966 ) |
16967 sed "s/^/$as_me: WARNING: /" >&2
16968 ;;
16969 esac
16970 echo "$as_me:$LINENO: checking for locale.h" >&5
16971 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16972 if test "${ac_cv_header_locale_h+set}" = set; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16975 ac_cv_header_locale_h=$ac_header_preproc
16976 fi
16977 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16978 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16979
16980 fi
16981
16982
16983
16984 for ac_func in setlocale
16985 do
16986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16987 echo "$as_me:$LINENO: checking for $ac_func" >&5
16988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16989 if eval "test \"\${$as_ac_var+set}\" = set"; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992 cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h. */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17000 #define $ac_func innocuous_$ac_func
17001
17002 /* System header to define __stub macros and hopefully few prototypes,
17003 which can conflict with char $ac_func (); below.
17004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17005 <limits.h> exists even on freestanding compilers. */
17006
17007 #ifdef __STDC__
17008 # include <limits.h>
17009 #else
17010 # include <assert.h>
17011 #endif
17012
17013 #undef $ac_func
17014
17015 /* Override any gcc2 internal prototype to avoid an error. */
17016 #ifdef __cplusplus
17017 extern "C"
17018 {
17019 #endif
17020 /* We use char because int might match the return type of a gcc2
17021 builtin and then its argument prototype would still apply. */
17022 char $ac_func ();
17023 /* The GNU C library defines this for functions which it implements
17024 to always fail with ENOSYS. Some functions are actually named
17025 something starting with __ and the normal name is an alias. */
17026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17027 choke me
17028 #else
17029 char (*f) () = $ac_func;
17030 #endif
17031 #ifdef __cplusplus
17032 }
17033 #endif
17034
17035 int
17036 main ()
17037 {
17038 return f != $ac_func;
17039 ;
17040 return 0;
17041 }
17042 _ACEOF
17043 rm -f conftest.$ac_objext conftest$ac_exeext
17044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17045 (eval $ac_link) 2>conftest.er1
17046 ac_status=$?
17047 grep -v '^ *+' conftest.er1 >conftest.err
17048 rm -f conftest.er1
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } &&
17052 { ac_try='test -z "$ac_c_werror_flag"
17053 || test ! -s conftest.err'
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; } &&
17059 { ac_try='test -s conftest$ac_exeext'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 eval "$as_ac_var=yes"
17066 else
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 eval "$as_ac_var=no"
17071 fi
17072 rm -f conftest.err conftest.$ac_objext \
17073 conftest$ac_exeext conftest.$ac_ext
17074 fi
17075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17077 if test `eval echo '${'$as_ac_var'}'` = yes; then
17078 cat >>confdefs.h <<_ACEOF
17079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17080 _ACEOF
17081
17082 fi
17083 done
17084
17085
17086 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17087 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17088 # Irix 4.0.5F has the header but not the library.
17089 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17090 ac_have_func=yes
17091
17092 cat >>confdefs.h <<\_ACEOF
17093 #define SVR4 1
17094 _ACEOF
17095
17096 fi
17097
17098 if test $ac_have_func = no; then
17099 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17100 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17101 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17102 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 fi
17105 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17106 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17107 else
17108 # Is the header compilable?
17109 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17110 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
17111 cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h. */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 $ac_includes_default
17118 #include <inq_stats/cpustats.h>
17119 _ACEOF
17120 rm -f conftest.$ac_objext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17122 (eval $ac_compile) 2>conftest.er1
17123 ac_status=$?
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try='test -z "$ac_c_werror_flag"
17130 || test ! -s conftest.err'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest.$ac_objext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_header_compiler=yes
17143 else
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17146
17147 ac_header_compiler=no
17148 fi
17149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17151 echo "${ECHO_T}$ac_header_compiler" >&6
17152
17153 # Is the header present?
17154 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17155 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h. */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 #include <inq_stats/cpustats.h>
17163 _ACEOF
17164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } >/dev/null; then
17172 if test -s conftest.err; then
17173 ac_cpp_err=$ac_c_preproc_warn_flag
17174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17175 else
17176 ac_cpp_err=
17177 fi
17178 else
17179 ac_cpp_err=yes
17180 fi
17181 if test -z "$ac_cpp_err"; then
17182 ac_header_preproc=yes
17183 else
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187 ac_header_preproc=no
17188 fi
17189 rm -f conftest.err conftest.$ac_ext
17190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17191 echo "${ECHO_T}$ac_header_preproc" >&6
17192
17193 # So? What about this header?
17194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17195 yes:no: )
17196 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17197 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17199 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17200 ac_header_preproc=yes
17201 ;;
17202 no:yes:* )
17203 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17204 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17205 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17206 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17207 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17208 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17209 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17210 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17211 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17212 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17213 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17214 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17215 (
17216 cat <<\_ASBOX
17217 ## ------------------------------------------ ##
17218 ## Report this to the AC_PACKAGE_NAME lists. ##
17219 ## ------------------------------------------ ##
17220 _ASBOX
17221 ) |
17222 sed "s/^/$as_me: WARNING: /" >&2
17223 ;;
17224 esac
17225 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17226 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17227 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17231 fi
17232 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17233 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17234
17235 fi
17236 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17237 ac_have_func=yes
17238
17239 cat >>confdefs.h <<\_ACEOF
17240 #define UMAX 1
17241 _ACEOF
17242
17243
17244 cat >>confdefs.h <<\_ACEOF
17245 #define UMAX4_3 1
17246 _ACEOF
17247
17248 fi
17249
17250
17251 fi
17252
17253 if test $ac_have_func = no; then
17254 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17255 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17256 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17257 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 fi
17260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17261 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17262 else
17263 # Is the header compilable?
17264 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17265 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
17266 cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h. */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 $ac_includes_default
17273 #include <sys/cpustats.h>
17274 _ACEOF
17275 rm -f conftest.$ac_objext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17277 (eval $ac_compile) 2>conftest.er1
17278 ac_status=$?
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try='test -z "$ac_c_werror_flag"
17285 || test ! -s conftest.err'
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17288 ac_status=$?
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; } &&
17291 { ac_try='test -s conftest.$ac_objext'
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 ac_header_compiler=yes
17298 else
17299 echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17301
17302 ac_header_compiler=no
17303 fi
17304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17306 echo "${ECHO_T}$ac_header_compiler" >&6
17307
17308 # Is the header present?
17309 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17310 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
17311 cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h. */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17317 #include <sys/cpustats.h>
17318 _ACEOF
17319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17321 ac_status=$?
17322 grep -v '^ *+' conftest.er1 >conftest.err
17323 rm -f conftest.er1
17324 cat conftest.err >&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } >/dev/null; then
17327 if test -s conftest.err; then
17328 ac_cpp_err=$ac_c_preproc_warn_flag
17329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17330 else
17331 ac_cpp_err=
17332 fi
17333 else
17334 ac_cpp_err=yes
17335 fi
17336 if test -z "$ac_cpp_err"; then
17337 ac_header_preproc=yes
17338 else
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 ac_header_preproc=no
17343 fi
17344 rm -f conftest.err conftest.$ac_ext
17345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17346 echo "${ECHO_T}$ac_header_preproc" >&6
17347
17348 # So? What about this header?
17349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17350 yes:no: )
17351 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17352 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17353 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17354 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17355 ac_header_preproc=yes
17356 ;;
17357 no:yes:* )
17358 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17359 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17361 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17363 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17365 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17367 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17368 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17369 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17370 (
17371 cat <<\_ASBOX
17372 ## ------------------------------------------ ##
17373 ## Report this to the AC_PACKAGE_NAME lists. ##
17374 ## ------------------------------------------ ##
17375 _ASBOX
17376 ) |
17377 sed "s/^/$as_me: WARNING: /" >&2
17378 ;;
17379 esac
17380 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17381 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17382 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17386 fi
17387 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17388 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17389
17390 fi
17391 if test $ac_cv_header_sys_cpustats_h = yes; then
17392 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17393 #define UMAX 1
17394 _ACEOF
17395
17396 fi
17397
17398
17399 fi
17400
17401 if test $ac_have_func = no; then
17402
17403 for ac_header in mach/mach.h
17404 do
17405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17407 echo "$as_me:$LINENO: checking for $ac_header" >&5
17408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 fi
17412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17414 else
17415 # Is the header compilable?
17416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17418 cat >conftest.$ac_ext <<_ACEOF
17419 /* confdefs.h. */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17424 $ac_includes_default
17425 #include <$ac_header>
17426 _ACEOF
17427 rm -f conftest.$ac_objext
17428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17429 (eval $ac_compile) 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -z "$ac_c_werror_flag"
17437 || test ! -s conftest.err'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest.$ac_objext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 ac_header_compiler=yes
17450 else
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17453
17454 ac_header_compiler=no
17455 fi
17456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17458 echo "${ECHO_T}$ac_header_compiler" >&6
17459
17460 # Is the header present?
17461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17463 cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h. */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 #include <$ac_header>
17470 _ACEOF
17471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17473 ac_status=$?
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } >/dev/null; then
17479 if test -s conftest.err; then
17480 ac_cpp_err=$ac_c_preproc_warn_flag
17481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17482 else
17483 ac_cpp_err=
17484 fi
17485 else
17486 ac_cpp_err=yes
17487 fi
17488 if test -z "$ac_cpp_err"; then
17489 ac_header_preproc=yes
17490 else
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17493
17494 ac_header_preproc=no
17495 fi
17496 rm -f conftest.err conftest.$ac_ext
17497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17498 echo "${ECHO_T}$ac_header_preproc" >&6
17499
17500 # So? What about this header?
17501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17502 yes:no: )
17503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17507 ac_header_preproc=yes
17508 ;;
17509 no:yes:* )
17510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17522 (
17523 cat <<\_ASBOX
17524 ## ------------------------------------------ ##
17525 ## Report this to the AC_PACKAGE_NAME lists. ##
17526 ## ------------------------------------------ ##
17527 _ASBOX
17528 ) |
17529 sed "s/^/$as_me: WARNING: /" >&2
17530 ;;
17531 esac
17532 echo "$as_me:$LINENO: checking for $ac_header" >&5
17533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 else
17537 eval "$as_ac_Header=\$ac_header_preproc"
17538 fi
17539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17541
17542 fi
17543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17544 cat >>confdefs.h <<_ACEOF
17545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17546 _ACEOF
17547
17548 fi
17549
17550 done
17551
17552 fi
17553
17554
17555 for ac_header in nlist.h
17556 do
17557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17559 echo "$as_me:$LINENO: checking for $ac_header" >&5
17560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 fi
17564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17566 else
17567 # Is the header compilable?
17568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17570 cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h. */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 $ac_includes_default
17577 #include <$ac_header>
17578 _ACEOF
17579 rm -f conftest.$ac_objext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17581 (eval $ac_compile) 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -z "$ac_c_werror_flag"
17589 || test ! -s conftest.err'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try='test -s conftest.$ac_objext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_header_compiler=yes
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ac_header_compiler=no
17607 fi
17608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17610 echo "${ECHO_T}$ac_header_compiler" >&6
17611
17612 # Is the header present?
17613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17615 cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h. */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17621 #include <$ac_header>
17622 _ACEOF
17623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17625 ac_status=$?
17626 grep -v '^ *+' conftest.er1 >conftest.err
17627 rm -f conftest.er1
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } >/dev/null; then
17631 if test -s conftest.err; then
17632 ac_cpp_err=$ac_c_preproc_warn_flag
17633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17634 else
17635 ac_cpp_err=
17636 fi
17637 else
17638 ac_cpp_err=yes
17639 fi
17640 if test -z "$ac_cpp_err"; then
17641 ac_header_preproc=yes
17642 else
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17645
17646 ac_header_preproc=no
17647 fi
17648 rm -f conftest.err conftest.$ac_ext
17649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17650 echo "${ECHO_T}$ac_header_preproc" >&6
17651
17652 # So? What about this header?
17653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17654 yes:no: )
17655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17659 ac_header_preproc=yes
17660 ;;
17661 no:yes:* )
17662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17674 (
17675 cat <<\_ASBOX
17676 ## ------------------------------------------ ##
17677 ## Report this to the AC_PACKAGE_NAME lists. ##
17678 ## ------------------------------------------ ##
17679 _ASBOX
17680 ) |
17681 sed "s/^/$as_me: WARNING: /" >&2
17682 ;;
17683 esac
17684 echo "$as_me:$LINENO: checking for $ac_header" >&5
17685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689 eval "$as_ac_Header=\$ac_header_preproc"
17690 fi
17691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17693
17694 fi
17695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17696 cat >>confdefs.h <<_ACEOF
17697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17698 _ACEOF
17699 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17700 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17701 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704 cat >conftest.$ac_ext <<_ACEOF
17705 /* confdefs.h. */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 #include <nlist.h>
17711
17712 int
17713 main ()
17714 {
17715 static struct nlist ac_aggr;
17716 if (ac_aggr.n_un.n_name)
17717 return 0;
17718 ;
17719 return 0;
17720 }
17721 _ACEOF
17722 rm -f conftest.$ac_objext
17723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17724 (eval $ac_compile) 2>conftest.er1
17725 ac_status=$?
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } &&
17731 { ac_try='test -z "$ac_c_werror_flag"
17732 || test ! -s conftest.err'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try='test -s conftest.$ac_objext'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 ac_cv_member_struct_nlist_n_un_n_name=yes
17745 else
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17748
17749 cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h. */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17755 #include <nlist.h>
17756
17757 int
17758 main ()
17759 {
17760 static struct nlist ac_aggr;
17761 if (sizeof ac_aggr.n_un.n_name)
17762 return 0;
17763 ;
17764 return 0;
17765 }
17766 _ACEOF
17767 rm -f conftest.$ac_objext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17769 (eval $ac_compile) 2>conftest.er1
17770 ac_status=$?
17771 grep -v '^ *+' conftest.er1 >conftest.err
17772 rm -f conftest.er1
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_member_struct_nlist_n_un_n_name=yes
17790 else
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17793
17794 ac_cv_member_struct_nlist_n_un_n_name=no
17795 fi
17796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17797 fi
17798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17799 fi
17800 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17801 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17802 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17803
17804 cat >>confdefs.h <<_ACEOF
17805 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17806 _ACEOF
17807
17808
17809 cat >>confdefs.h <<\_ACEOF
17810 #define NLIST_NAME_UNION 1
17811 _ACEOF
17812
17813 fi
17814
17815
17816 fi
17817
17818 done
17819
17820 fi
17821 done
17822
17823
17824 # Some definitions of getloadavg require that the program be installed setgid.
17825 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17826 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17827 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17829 else
17830 cat >conftest.$ac_ext <<_ACEOF
17831 /* confdefs.h. */
17832 _ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17836 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17837 #ifdef LDAV_PRIVILEGED
17838 Yowza Am I SETGID yet
17839 #endif
17840 _ACEOF
17841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17842 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17843 ac_cv_func_getloadavg_setgid=yes
17844 else
17845 ac_cv_func_getloadavg_setgid=no
17846 fi
17847 rm -f conftest*
17848
17849 fi
17850 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17851 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17852 if test $ac_cv_func_getloadavg_setgid = yes; then
17853 NEED_SETGID=true
17854
17855 cat >>confdefs.h <<\_ACEOF
17856 #define GETLOADAVG_PRIVILEGED 1
17857 _ACEOF
17858
17859 else
17860 NEED_SETGID=false
17861 fi
17862
17863 if test $ac_cv_func_getloadavg_setgid = yes; then
17864 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17865 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17866 if test "${ac_cv_group_kmem+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 else
17869 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17870 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17871 # If we got an error (system does not support symlinks), try without -L.
17872 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17873 ac_cv_group_kmem=`echo $ac_ls_output \
17874 | sed -ne 's/[ ][ ]*/ /g;
17875 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17876 / /s/.* //;p;'`
17877
17878 fi
17879 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17880 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17881 KMEM_GROUP=$ac_cv_group_kmem
17882 fi
17883 if test "x$ac_save_LIBS" = x; then
17884 GETLOADAVG_LIBS=$LIBS
17885 else
17886 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17887 fi
17888 LIBS=$ac_save_LIBS
17889
17890
17891
17892 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17893 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17894 if test "${ac_cv_sys_largefile_source+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897 while :; do
17898 ac_cv_sys_largefile_source=no
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h. */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 #include <stdio.h>
17906 int
17907 main ()
17908 {
17909 return !fseeko;
17910 ;
17911 return 0;
17912 }
17913 _ACEOF
17914 rm -f conftest.$ac_objext
17915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17916 (eval $ac_compile) 2>conftest.er1
17917 ac_status=$?
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
17923 { ac_try='test -z "$ac_c_werror_flag"
17924 || test ! -s conftest.err'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest.$ac_objext'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936 break
17937 else
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17940
17941 fi
17942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17943 cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h. */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 #define _LARGEFILE_SOURCE 1
17950 #include <stdio.h>
17951 int
17952 main ()
17953 {
17954 return !fseeko;
17955 ;
17956 return 0;
17957 }
17958 _ACEOF
17959 rm -f conftest.$ac_objext
17960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17961 (eval $ac_compile) 2>conftest.er1
17962 ac_status=$?
17963 grep -v '^ *+' conftest.er1 >conftest.err
17964 rm -f conftest.er1
17965 cat conftest.err >&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
17968 { ac_try='test -z "$ac_c_werror_flag"
17969 || test ! -s conftest.err'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest.$ac_objext'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_cv_sys_largefile_source=1; break
17982 else
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17985
17986 fi
17987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17988 break
17989 done
17990 fi
17991 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17992 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17993 if test "$ac_cv_sys_largefile_source" != no; then
17994
17995 cat >>confdefs.h <<_ACEOF
17996 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17997 _ACEOF
17998
17999 fi
18000 rm -f conftest*
18001
18002 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18003 # in glibc 2.1.3, but that breaks too many other things.
18004 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18005 echo "$as_me:$LINENO: checking for fseeko" >&5
18006 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18007 if test "${ac_cv_func_fseeko+set}" = set; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18009 else
18010 cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h. */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h. */
18016 #include <stdio.h>
18017 int
18018 main ()
18019 {
18020 return fseeko && fseeko (stdin, 0, 0);
18021 ;
18022 return 0;
18023 }
18024 _ACEOF
18025 rm -f conftest.$ac_objext conftest$ac_exeext
18026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027 (eval $ac_link) 2>conftest.er1
18028 ac_status=$?
18029 grep -v '^ *+' conftest.er1 >conftest.err
18030 rm -f conftest.er1
18031 cat conftest.err >&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } &&
18034 { ac_try='test -z "$ac_c_werror_flag"
18035 || test ! -s conftest.err'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; } &&
18041 { ac_try='test -s conftest$ac_exeext'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18047 ac_cv_func_fseeko=yes
18048 else
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18051
18052 ac_cv_func_fseeko=no
18053 fi
18054 rm -f conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056 fi
18057 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
18058 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
18059 if test $ac_cv_func_fseeko = yes; then
18060
18061 cat >>confdefs.h <<\_ACEOF
18062 #define HAVE_FSEEKO 1
18063 _ACEOF
18064
18065 fi
18066
18067
18068 # Configure getopt.
18069 # getopt.m4 serial 10
18070
18071 # The getopt module assume you want GNU getopt, with getopt_long etc,
18072 # rather than vanilla POSIX getopt. This means your your code should
18073 # always include <getopt.h> for the getopt prototypes.
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085 # Prerequisites of lib/getopt*.
18086
18087
18088
18089
18090 GETOPT_H=
18091
18092 for ac_header in getopt.h
18093 do
18094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18096 echo "$as_me:$LINENO: checking for $ac_header" >&5
18097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18099 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 fi
18101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18103 else
18104 # Is the header compilable?
18105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18107 cat >conftest.$ac_ext <<_ACEOF
18108 /* confdefs.h. */
18109 _ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18113 $ac_includes_default
18114 #include <$ac_header>
18115 _ACEOF
18116 rm -f conftest.$ac_objext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18118 (eval $ac_compile) 2>conftest.er1
18119 ac_status=$?
18120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try='test -z "$ac_c_werror_flag"
18126 || test ! -s conftest.err'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try='test -s conftest.$ac_objext'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_header_compiler=yes
18139 else
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 ac_header_compiler=no
18144 fi
18145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18147 echo "${ECHO_T}$ac_header_compiler" >&6
18148
18149 # Is the header present?
18150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18152 cat >conftest.$ac_ext <<_ACEOF
18153 /* confdefs.h. */
18154 _ACEOF
18155 cat confdefs.h >>conftest.$ac_ext
18156 cat >>conftest.$ac_ext <<_ACEOF
18157 /* end confdefs.h. */
18158 #include <$ac_header>
18159 _ACEOF
18160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18162 ac_status=$?
18163 grep -v '^ *+' conftest.er1 >conftest.err
18164 rm -f conftest.er1
18165 cat conftest.err >&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } >/dev/null; then
18168 if test -s conftest.err; then
18169 ac_cpp_err=$ac_c_preproc_warn_flag
18170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18171 else
18172 ac_cpp_err=
18173 fi
18174 else
18175 ac_cpp_err=yes
18176 fi
18177 if test -z "$ac_cpp_err"; then
18178 ac_header_preproc=yes
18179 else
18180 echo "$as_me: failed program was:" >&5
18181 sed 's/^/| /' conftest.$ac_ext >&5
18182
18183 ac_header_preproc=no
18184 fi
18185 rm -f conftest.err conftest.$ac_ext
18186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18187 echo "${ECHO_T}$ac_header_preproc" >&6
18188
18189 # So? What about this header?
18190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18191 yes:no: )
18192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18196 ac_header_preproc=yes
18197 ;;
18198 no:yes:* )
18199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18211 (
18212 cat <<\_ASBOX
18213 ## ------------------------------------------ ##
18214 ## Report this to the AC_PACKAGE_NAME lists. ##
18215 ## ------------------------------------------ ##
18216 _ASBOX
18217 ) |
18218 sed "s/^/$as_me: WARNING: /" >&2
18219 ;;
18220 esac
18221 echo "$as_me:$LINENO: checking for $ac_header" >&5
18222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 else
18226 eval "$as_ac_Header=\$ac_header_preproc"
18227 fi
18228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18230
18231 fi
18232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18233 cat >>confdefs.h <<_ACEOF
18234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18235 _ACEOF
18236
18237 else
18238 GETOPT_H=getopt.h
18239 fi
18240
18241 done
18242
18243 if test -z "$GETOPT_H"; then
18244
18245 for ac_func in getopt_long_only
18246 do
18247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18248 echo "$as_me:$LINENO: checking for $ac_func" >&5
18249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18250 if eval "test \"\${$as_ac_var+set}\" = set"; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 else
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h. */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18261 #define $ac_func innocuous_$ac_func
18262
18263 /* System header to define __stub macros and hopefully few prototypes,
18264 which can conflict with char $ac_func (); below.
18265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18266 <limits.h> exists even on freestanding compilers. */
18267
18268 #ifdef __STDC__
18269 # include <limits.h>
18270 #else
18271 # include <assert.h>
18272 #endif
18273
18274 #undef $ac_func
18275
18276 /* Override any gcc2 internal prototype to avoid an error. */
18277 #ifdef __cplusplus
18278 extern "C"
18279 {
18280 #endif
18281 /* We use char because int might match the return type of a gcc2
18282 builtin and then its argument prototype would still apply. */
18283 char $ac_func ();
18284 /* The GNU C library defines this for functions which it implements
18285 to always fail with ENOSYS. Some functions are actually named
18286 something starting with __ and the normal name is an alias. */
18287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18288 choke me
18289 #else
18290 char (*f) () = $ac_func;
18291 #endif
18292 #ifdef __cplusplus
18293 }
18294 #endif
18295
18296 int
18297 main ()
18298 {
18299 return f != $ac_func;
18300 ;
18301 return 0;
18302 }
18303 _ACEOF
18304 rm -f conftest.$ac_objext conftest$ac_exeext
18305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18306 (eval $ac_link) 2>conftest.er1
18307 ac_status=$?
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
18313 { ac_try='test -z "$ac_c_werror_flag"
18314 || test ! -s conftest.err'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; } &&
18320 { ac_try='test -s conftest$ac_exeext'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 eval "$as_ac_var=yes"
18327 else
18328 echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18330
18331 eval "$as_ac_var=no"
18332 fi
18333 rm -f conftest.err conftest.$ac_objext \
18334 conftest$ac_exeext conftest.$ac_ext
18335 fi
18336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18338 if test `eval echo '${'$as_ac_var'}'` = yes; then
18339 cat >>confdefs.h <<_ACEOF
18340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18341 _ACEOF
18342
18343 else
18344 GETOPT_H=getopt.h
18345 fi
18346 done
18347
18348 fi
18349
18350 if test -z "$GETOPT_H"; then
18351 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18352 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
18353 if test "${ac_cv_have_decl_optreset+set}" = set; then
18354 echo $ECHO_N "(cached) $ECHO_C" >&6
18355 else
18356 cat >conftest.$ac_ext <<_ACEOF
18357 /* confdefs.h. */
18358 _ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18362 #include <getopt.h>
18363
18364 int
18365 main ()
18366 {
18367 #ifndef optreset
18368 char *p = (char *) optreset;
18369 #endif
18370
18371 ;
18372 return 0;
18373 }
18374 _ACEOF
18375 rm -f conftest.$ac_objext
18376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18377 (eval $ac_compile) 2>conftest.er1
18378 ac_status=$?
18379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try='test -z "$ac_c_werror_flag"
18385 || test ! -s conftest.err'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; } &&
18391 { ac_try='test -s conftest.$ac_objext'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 ac_cv_have_decl_optreset=yes
18398 else
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18401
18402 ac_cv_have_decl_optreset=no
18403 fi
18404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18405 fi
18406 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18407 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
18408 if test $ac_cv_have_decl_optreset = yes; then
18409 GETOPT_H=getopt.h
18410 fi
18411
18412 fi
18413
18414 if test -z "$GETOPT_H"; then
18415 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18416 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
18417 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420 if test "$cross_compiling" = yes; then
18421 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18422 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
18423 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426 cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h. */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 #include <getopt.h>
18433
18434 int
18435 main ()
18436 {
18437 #ifndef getopt_clip
18438 char *p = (char *) getopt_clip;
18439 #endif
18440
18441 ;
18442 return 0;
18443 }
18444 _ACEOF
18445 rm -f conftest.$ac_objext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18447 (eval $ac_compile) 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag"
18455 || test ! -s conftest.err'
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest.$ac_objext'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 ac_cv_have_decl_getopt_clip=yes
18468 else
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472 ac_cv_have_decl_getopt_clip=no
18473 fi
18474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18475 fi
18476 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18477 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
18478 if test $ac_cv_have_decl_getopt_clip = yes; then
18479 gl_cv_func_gnu_getopt=no
18480 else
18481 gl_cv_func_gnu_getopt=yes
18482 fi
18483
18484 else
18485 cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h. */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18491 #include <getopt.h>
18492 int
18493 main ()
18494 {
18495
18496 char *myargv[3];
18497 myargv[0] = "conftest";
18498 myargv[1] = "-+";
18499 myargv[2] = 0;
18500 return getopt (2, myargv, "+a") != '?';
18501
18502 ;
18503 return 0;
18504 }
18505 _ACEOF
18506 rm -f conftest$ac_exeext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508 (eval $ac_link) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 gl_cv_func_gnu_getopt=yes
18518 else
18519 echo "$as_me: program exited with status $ac_status" >&5
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18522
18523 ( exit $ac_status )
18524 gl_cv_func_gnu_getopt=no
18525 fi
18526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18527 fi
18528 fi
18529 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18530 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
18531 if test "$gl_cv_func_gnu_getopt" = "no"; then
18532 GETOPT_H=getopt.h
18533 fi
18534 fi
18535
18536
18537
18538 if test -n "$GETOPT_H"; then
18539
18540
18541 GETOPT_H=getopt.h
18542
18543 cat >>confdefs.h <<\_ACEOF
18544 #define __GETOPT_PREFIX rpl_
18545 _ACEOF
18546
18547
18548
18549 :
18550 GETOPTOBJS='getopt.o getopt1.o'
18551
18552 fi
18553
18554
18555
18556
18557 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18558 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
18559 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562 # Use it with a single arg.
18563 cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h. */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18569 $ac_includes_default
18570 int
18571 main ()
18572 {
18573 getpgrp (0);
18574 ;
18575 return 0;
18576 }
18577 _ACEOF
18578 rm -f conftest.$ac_objext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580 (eval $ac_compile) 2>conftest.er1
18581 ac_status=$?
18582 grep -v '^ *+' conftest.er1 >conftest.err
18583 rm -f conftest.er1
18584 cat conftest.err >&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
18587 { ac_try='test -z "$ac_c_werror_flag"
18588 || test ! -s conftest.err'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest.$ac_objext'
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_cv_func_getpgrp_void=no
18601 else
18602 echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18604
18605 ac_cv_func_getpgrp_void=yes
18606 fi
18607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18608
18609 fi
18610 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18611 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
18612 if test $ac_cv_func_getpgrp_void = yes; then
18613
18614 cat >>confdefs.h <<\_ACEOF
18615 #define GETPGRP_VOID 1
18616 _ACEOF
18617
18618 fi
18619
18620
18621
18622 for ac_func in strftime
18623 do
18624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18625 echo "$as_me:$LINENO: checking for $ac_func" >&5
18626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18627 if eval "test \"\${$as_ac_var+set}\" = set"; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 else
18630 cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h. */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18638 #define $ac_func innocuous_$ac_func
18639
18640 /* System header to define __stub macros and hopefully few prototypes,
18641 which can conflict with char $ac_func (); below.
18642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18643 <limits.h> exists even on freestanding compilers. */
18644
18645 #ifdef __STDC__
18646 # include <limits.h>
18647 #else
18648 # include <assert.h>
18649 #endif
18650
18651 #undef $ac_func
18652
18653 /* Override any gcc2 internal prototype to avoid an error. */
18654 #ifdef __cplusplus
18655 extern "C"
18656 {
18657 #endif
18658 /* We use char because int might match the return type of a gcc2
18659 builtin and then its argument prototype would still apply. */
18660 char $ac_func ();
18661 /* The GNU C library defines this for functions which it implements
18662 to always fail with ENOSYS. Some functions are actually named
18663 something starting with __ and the normal name is an alias. */
18664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18665 choke me
18666 #else
18667 char (*f) () = $ac_func;
18668 #endif
18669 #ifdef __cplusplus
18670 }
18671 #endif
18672
18673 int
18674 main ()
18675 {
18676 return f != $ac_func;
18677 ;
18678 return 0;
18679 }
18680 _ACEOF
18681 rm -f conftest.$ac_objext conftest$ac_exeext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18683 (eval $ac_link) 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest$ac_exeext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 eval "$as_ac_var=yes"
18704 else
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 eval "$as_ac_var=no"
18709 fi
18710 rm -f conftest.err conftest.$ac_objext \
18711 conftest$ac_exeext conftest.$ac_ext
18712 fi
18713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18715 if test `eval echo '${'$as_ac_var'}'` = yes; then
18716 cat >>confdefs.h <<_ACEOF
18717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18718 _ACEOF
18719
18720 else
18721 # strftime is in -lintl on SCO UNIX.
18722 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18723 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18724 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 else
18727 ac_check_lib_save_LIBS=$LIBS
18728 LIBS="-lintl $LIBS"
18729 cat >conftest.$ac_ext <<_ACEOF
18730 /* confdefs.h. */
18731 _ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18735
18736 /* Override any gcc2 internal prototype to avoid an error. */
18737 #ifdef __cplusplus
18738 extern "C"
18739 #endif
18740 /* We use char because int might match the return type of a gcc2
18741 builtin and then its argument prototype would still apply. */
18742 char strftime ();
18743 int
18744 main ()
18745 {
18746 strftime ();
18747 ;
18748 return 0;
18749 }
18750 _ACEOF
18751 rm -f conftest.$ac_objext conftest$ac_exeext
18752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18753 (eval $ac_link) 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try='test -z "$ac_c_werror_flag"
18761 || test ! -s conftest.err'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest$ac_exeext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 ac_cv_lib_intl_strftime=yes
18774 else
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18777
18778 ac_cv_lib_intl_strftime=no
18779 fi
18780 rm -f conftest.err conftest.$ac_objext \
18781 conftest$ac_exeext conftest.$ac_ext
18782 LIBS=$ac_check_lib_save_LIBS
18783 fi
18784 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18785 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18786 if test $ac_cv_lib_intl_strftime = yes; then
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE_STRFTIME 1
18789 _ACEOF
18790
18791 LIBS="-lintl $LIBS"
18792 fi
18793
18794 fi
18795 done
18796
18797
18798 # UNIX98 PTYs.
18799
18800 for ac_func in grantpt
18801 do
18802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18803 echo "$as_me:$LINENO: checking for $ac_func" >&5
18804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18805 if eval "test \"\${$as_ac_var+set}\" = set"; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808 cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h. */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18816 #define $ac_func innocuous_$ac_func
18817
18818 /* System header to define __stub macros and hopefully few prototypes,
18819 which can conflict with char $ac_func (); below.
18820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18821 <limits.h> exists even on freestanding compilers. */
18822
18823 #ifdef __STDC__
18824 # include <limits.h>
18825 #else
18826 # include <assert.h>
18827 #endif
18828
18829 #undef $ac_func
18830
18831 /* Override any gcc2 internal prototype to avoid an error. */
18832 #ifdef __cplusplus
18833 extern "C"
18834 {
18835 #endif
18836 /* We use char because int might match the return type of a gcc2
18837 builtin and then its argument prototype would still apply. */
18838 char $ac_func ();
18839 /* The GNU C library defines this for functions which it implements
18840 to always fail with ENOSYS. Some functions are actually named
18841 something starting with __ and the normal name is an alias. */
18842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18843 choke me
18844 #else
18845 char (*f) () = $ac_func;
18846 #endif
18847 #ifdef __cplusplus
18848 }
18849 #endif
18850
18851 int
18852 main ()
18853 {
18854 return f != $ac_func;
18855 ;
18856 return 0;
18857 }
18858 _ACEOF
18859 rm -f conftest.$ac_objext conftest$ac_exeext
18860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18861 (eval $ac_link) 2>conftest.er1
18862 ac_status=$?
18863 grep -v '^ *+' conftest.er1 >conftest.err
18864 rm -f conftest.er1
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_c_werror_flag"
18869 || test ! -s conftest.err'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest$ac_exeext'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 eval "$as_ac_var=yes"
18882 else
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886 eval "$as_ac_var=no"
18887 fi
18888 rm -f conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18890 fi
18891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18893 if test `eval echo '${'$as_ac_var'}'` = yes; then
18894 cat >>confdefs.h <<_ACEOF
18895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18896 _ACEOF
18897
18898 fi
18899 done
18900
18901
18902 # PTY-related GNU extensions.
18903
18904 for ac_func in getpt
18905 do
18906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18907 echo "$as_me:$LINENO: checking for $ac_func" >&5
18908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18909 if eval "test \"\${$as_ac_var+set}\" = set"; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18911 else
18912 cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h. */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18920 #define $ac_func innocuous_$ac_func
18921
18922 /* System header to define __stub macros and hopefully few prototypes,
18923 which can conflict with char $ac_func (); below.
18924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18925 <limits.h> exists even on freestanding compilers. */
18926
18927 #ifdef __STDC__
18928 # include <limits.h>
18929 #else
18930 # include <assert.h>
18931 #endif
18932
18933 #undef $ac_func
18934
18935 /* Override any gcc2 internal prototype to avoid an error. */
18936 #ifdef __cplusplus
18937 extern "C"
18938 {
18939 #endif
18940 /* We use char because int might match the return type of a gcc2
18941 builtin and then its argument prototype would still apply. */
18942 char $ac_func ();
18943 /* The GNU C library defines this for functions which it implements
18944 to always fail with ENOSYS. Some functions are actually named
18945 something starting with __ and the normal name is an alias. */
18946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18947 choke me
18948 #else
18949 char (*f) () = $ac_func;
18950 #endif
18951 #ifdef __cplusplus
18952 }
18953 #endif
18954
18955 int
18956 main ()
18957 {
18958 return f != $ac_func;
18959 ;
18960 return 0;
18961 }
18962 _ACEOF
18963 rm -f conftest.$ac_objext conftest$ac_exeext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18965 (eval $ac_link) 2>conftest.er1
18966 ac_status=$?
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try='test -z "$ac_c_werror_flag"
18973 || test ! -s conftest.err'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try='test -s conftest$ac_exeext'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; }; then
18985 eval "$as_ac_var=yes"
18986 else
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18989
18990 eval "$as_ac_var=no"
18991 fi
18992 rm -f conftest.err conftest.$ac_objext \
18993 conftest$ac_exeext conftest.$ac_ext
18994 fi
18995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18997 if test `eval echo '${'$as_ac_var'}'` = yes; then
18998 cat >>confdefs.h <<_ACEOF
18999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19000 _ACEOF
19001
19002 fi
19003 done
19004
19005
19006 # Check this now, so that we will NOT find the above functions in ncurses.
19007 # That is because we have not set up to link ncurses in lib-src.
19008 # It's better to believe a function is not available
19009 # than to expect to find it in ncurses.
19010
19011 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19012 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
19013 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 else
19016 ac_check_lib_save_LIBS=$LIBS
19017 LIBS="-lncurses $LIBS"
19018 cat >conftest.$ac_ext <<_ACEOF
19019 /* confdefs.h. */
19020 _ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19024
19025 /* Override any gcc2 internal prototype to avoid an error. */
19026 #ifdef __cplusplus
19027 extern "C"
19028 #endif
19029 /* We use char because int might match the return type of a gcc2
19030 builtin and then its argument prototype would still apply. */
19031 char tparm ();
19032 int
19033 main ()
19034 {
19035 tparm ();
19036 ;
19037 return 0;
19038 }
19039 _ACEOF
19040 rm -f conftest.$ac_objext conftest$ac_exeext
19041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19042 (eval $ac_link) 2>conftest.er1
19043 ac_status=$?
19044 grep -v '^ *+' conftest.er1 >conftest.err
19045 rm -f conftest.er1
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } &&
19049 { ac_try='test -z "$ac_c_werror_flag"
19050 || test ! -s conftest.err'
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; } &&
19056 { ac_try='test -s conftest$ac_exeext'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_cv_lib_ncurses_tparm=yes
19063 else
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 ac_cv_lib_ncurses_tparm=no
19068 fi
19069 rm -f conftest.err conftest.$ac_objext \
19070 conftest$ac_exeext conftest.$ac_ext
19071 LIBS=$ac_check_lib_save_LIBS
19072 fi
19073 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19074 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
19075 if test $ac_cv_lib_ncurses_tparm = yes; then
19076 cat >>confdefs.h <<_ACEOF
19077 #define HAVE_LIBNCURSES 1
19078 _ACEOF
19079
19080 LIBS="-lncurses $LIBS"
19081
19082 fi
19083
19084
19085 # Do we need the Hesiod library to provide the support routines?
19086 if test "$with_hesiod" = yes ; then
19087 # Don't set $LIBS here -- see comments above.
19088 resolv=no
19089 echo "$as_me:$LINENO: checking for res_send" >&5
19090 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
19091 if test "${ac_cv_func_res_send+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19093 else
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h. */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19100 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19102 #define res_send innocuous_res_send
19103
19104 /* System header to define __stub macros and hopefully few prototypes,
19105 which can conflict with char res_send (); below.
19106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19107 <limits.h> exists even on freestanding compilers. */
19108
19109 #ifdef __STDC__
19110 # include <limits.h>
19111 #else
19112 # include <assert.h>
19113 #endif
19114
19115 #undef res_send
19116
19117 /* Override any gcc2 internal prototype to avoid an error. */
19118 #ifdef __cplusplus
19119 extern "C"
19120 {
19121 #endif
19122 /* We use char because int might match the return type of a gcc2
19123 builtin and then its argument prototype would still apply. */
19124 char res_send ();
19125 /* The GNU C library defines this for functions which it implements
19126 to always fail with ENOSYS. Some functions are actually named
19127 something starting with __ and the normal name is an alias. */
19128 #if defined (__stub_res_send) || defined (__stub___res_send)
19129 choke me
19130 #else
19131 char (*f) () = res_send;
19132 #endif
19133 #ifdef __cplusplus
19134 }
19135 #endif
19136
19137 int
19138 main ()
19139 {
19140 return f != res_send;
19141 ;
19142 return 0;
19143 }
19144 _ACEOF
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19147 (eval $ac_link) 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -z "$ac_c_werror_flag"
19155 || test ! -s conftest.err'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19167 ac_cv_func_res_send=yes
19168 else
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172 ac_cv_func_res_send=no
19173 fi
19174 rm -f conftest.err conftest.$ac_objext \
19175 conftest$ac_exeext conftest.$ac_ext
19176 fi
19177 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19178 echo "${ECHO_T}$ac_cv_func_res_send" >&6
19179 if test $ac_cv_func_res_send = yes; then
19180 :
19181 else
19182 echo "$as_me:$LINENO: checking for __res_send" >&5
19183 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
19184 if test "${ac_cv_func___res_send+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 else
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h. */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19195 #define __res_send innocuous___res_send
19196
19197 /* System header to define __stub macros and hopefully few prototypes,
19198 which can conflict with char __res_send (); below.
19199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19200 <limits.h> exists even on freestanding compilers. */
19201
19202 #ifdef __STDC__
19203 # include <limits.h>
19204 #else
19205 # include <assert.h>
19206 #endif
19207
19208 #undef __res_send
19209
19210 /* Override any gcc2 internal prototype to avoid an error. */
19211 #ifdef __cplusplus
19212 extern "C"
19213 {
19214 #endif
19215 /* We use char because int might match the return type of a gcc2
19216 builtin and then its argument prototype would still apply. */
19217 char __res_send ();
19218 /* The GNU C library defines this for functions which it implements
19219 to always fail with ENOSYS. Some functions are actually named
19220 something starting with __ and the normal name is an alias. */
19221 #if defined (__stub___res_send) || defined (__stub_____res_send)
19222 choke me
19223 #else
19224 char (*f) () = __res_send;
19225 #endif
19226 #ifdef __cplusplus
19227 }
19228 #endif
19229
19230 int
19231 main ()
19232 {
19233 return f != __res_send;
19234 ;
19235 return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19240 (eval $ac_link) 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest$ac_exeext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_func___res_send=yes
19261 else
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265 ac_cv_func___res_send=no
19266 fi
19267 rm -f conftest.err conftest.$ac_objext \
19268 conftest$ac_exeext conftest.$ac_ext
19269 fi
19270 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19271 echo "${ECHO_T}$ac_cv_func___res_send" >&6
19272 if test $ac_cv_func___res_send = yes; then
19273 :
19274 else
19275 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19276 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19277 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19279 else
19280 ac_check_lib_save_LIBS=$LIBS
19281 LIBS="-lresolv $LIBS"
19282 cat >conftest.$ac_ext <<_ACEOF
19283 /* confdefs.h. */
19284 _ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19288
19289 /* Override any gcc2 internal prototype to avoid an error. */
19290 #ifdef __cplusplus
19291 extern "C"
19292 #endif
19293 /* We use char because int might match the return type of a gcc2
19294 builtin and then its argument prototype would still apply. */
19295 char res_send ();
19296 int
19297 main ()
19298 {
19299 res_send ();
19300 ;
19301 return 0;
19302 }
19303 _ACEOF
19304 rm -f conftest.$ac_objext conftest$ac_exeext
19305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306 (eval $ac_link) 2>conftest.er1
19307 ac_status=$?
19308 grep -v '^ *+' conftest.er1 >conftest.err
19309 rm -f conftest.er1
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } &&
19313 { ac_try='test -z "$ac_c_werror_flag"
19314 || test ! -s conftest.err'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try='test -s conftest$ac_exeext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 ac_cv_lib_resolv_res_send=yes
19327 else
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19330
19331 ac_cv_lib_resolv_res_send=no
19332 fi
19333 rm -f conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 LIBS=$ac_check_lib_save_LIBS
19336 fi
19337 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19338 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19339 if test $ac_cv_lib_resolv_res_send = yes; then
19340 resolv=yes
19341 else
19342 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19343 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
19344 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347 ac_check_lib_save_LIBS=$LIBS
19348 LIBS="-lresolv $LIBS"
19349 cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h. */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19355
19356 /* Override any gcc2 internal prototype to avoid an error. */
19357 #ifdef __cplusplus
19358 extern "C"
19359 #endif
19360 /* We use char because int might match the return type of a gcc2
19361 builtin and then its argument prototype would still apply. */
19362 char __res_send ();
19363 int
19364 main ()
19365 {
19366 __res_send ();
19367 ;
19368 return 0;
19369 }
19370 _ACEOF
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19373 (eval $ac_link) 2>conftest.er1
19374 ac_status=$?
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -z "$ac_c_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest$ac_exeext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_cv_lib_resolv___res_send=yes
19394 else
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398 ac_cv_lib_resolv___res_send=no
19399 fi
19400 rm -f conftest.err conftest.$ac_objext \
19401 conftest$ac_exeext conftest.$ac_ext
19402 LIBS=$ac_check_lib_save_LIBS
19403 fi
19404 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19405 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
19406 if test $ac_cv_lib_resolv___res_send = yes; then
19407 resolv=yes
19408 fi
19409
19410 fi
19411
19412 fi
19413
19414 fi
19415
19416 if test "$resolv" = yes ; then
19417 RESOLVLIB=-lresolv
19418
19419 cat >>confdefs.h <<\_ACEOF
19420 #define HAVE_LIBRESOLV 1
19421 _ACEOF
19422
19423 else
19424 RESOLVLIB=
19425 fi
19426 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19427 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
19428 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 else
19431 cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h. */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19437 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19439 #define hes_getmailhost innocuous_hes_getmailhost
19440
19441 /* System header to define __stub macros and hopefully few prototypes,
19442 which can conflict with char hes_getmailhost (); below.
19443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19444 <limits.h> exists even on freestanding compilers. */
19445
19446 #ifdef __STDC__
19447 # include <limits.h>
19448 #else
19449 # include <assert.h>
19450 #endif
19451
19452 #undef hes_getmailhost
19453
19454 /* Override any gcc2 internal prototype to avoid an error. */
19455 #ifdef __cplusplus
19456 extern "C"
19457 {
19458 #endif
19459 /* We use char because int might match the return type of a gcc2
19460 builtin and then its argument prototype would still apply. */
19461 char hes_getmailhost ();
19462 /* The GNU C library defines this for functions which it implements
19463 to always fail with ENOSYS. Some functions are actually named
19464 something starting with __ and the normal name is an alias. */
19465 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
19466 choke me
19467 #else
19468 char (*f) () = hes_getmailhost;
19469 #endif
19470 #ifdef __cplusplus
19471 }
19472 #endif
19473
19474 int
19475 main ()
19476 {
19477 return f != hes_getmailhost;
19478 ;
19479 return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19484 (eval $ac_link) 2>conftest.er1
19485 ac_status=$?
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } &&
19491 { ac_try='test -z "$ac_c_werror_flag"
19492 || test ! -s conftest.err'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try='test -s conftest$ac_exeext'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_cv_func_hes_getmailhost=yes
19505 else
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ac_cv_func_hes_getmailhost=no
19510 fi
19511 rm -f conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
19513 fi
19514 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19515 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
19516 if test $ac_cv_func_hes_getmailhost = yes; then
19517 :
19518 else
19519 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19520 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
19521 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 else
19524 ac_check_lib_save_LIBS=$LIBS
19525 LIBS="-lhesiod $RESOLVLIB $LIBS"
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h. */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532
19533 /* Override any gcc2 internal prototype to avoid an error. */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 /* We use char because int might match the return type of a gcc2
19538 builtin and then its argument prototype would still apply. */
19539 char hes_getmailhost ();
19540 int
19541 main ()
19542 {
19543 hes_getmailhost ();
19544 ;
19545 return 0;
19546 }
19547 _ACEOF
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550 (eval $ac_link) 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest$ac_exeext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_lib_hesiod_hes_getmailhost=yes
19571 else
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 ac_cv_lib_hesiod_hes_getmailhost=no
19576 fi
19577 rm -f conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19580 fi
19581 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19582 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
19583 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19584
19585 cat >>confdefs.h <<\_ACEOF
19586 #define HAVE_LIBHESIOD 1
19587 _ACEOF
19588
19589 else
19590 :
19591 fi
19592
19593 fi
19594
19595 fi
19596
19597 # These tell us which Kerberos-related libraries to use.
19598 if test "${with_kerberos+set}" = set; then
19599
19600 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19601 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
19602 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605 ac_check_lib_save_LIBS=$LIBS
19606 LIBS="-lcom_err $LIBS"
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h. */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613
19614 /* Override any gcc2 internal prototype to avoid an error. */
19615 #ifdef __cplusplus
19616 extern "C"
19617 #endif
19618 /* We use char because int might match the return type of a gcc2
19619 builtin and then its argument prototype would still apply. */
19620 char com_err ();
19621 int
19622 main ()
19623 {
19624 com_err ();
19625 ;
19626 return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag"
19639 || test ! -s conftest.err'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest$ac_exeext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_lib_com_err_com_err=yes
19652 else
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656 ac_cv_lib_com_err_com_err=no
19657 fi
19658 rm -f conftest.err conftest.$ac_objext \
19659 conftest$ac_exeext conftest.$ac_ext
19660 LIBS=$ac_check_lib_save_LIBS
19661 fi
19662 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19663 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19664 if test $ac_cv_lib_com_err_com_err = yes; then
19665 cat >>confdefs.h <<_ACEOF
19666 #define HAVE_LIBCOM_ERR 1
19667 _ACEOF
19668
19669 LIBS="-lcom_err $LIBS"
19670
19671 fi
19672
19673
19674 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19675 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19676 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679 ac_check_lib_save_LIBS=$LIBS
19680 LIBS="-lk5crypto $LIBS"
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h. */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687
19688 /* Override any gcc2 internal prototype to avoid an error. */
19689 #ifdef __cplusplus
19690 extern "C"
19691 #endif
19692 /* We use char because int might match the return type of a gcc2
19693 builtin and then its argument prototype would still apply. */
19694 char mit_des_cbc_encrypt ();
19695 int
19696 main ()
19697 {
19698 mit_des_cbc_encrypt ();
19699 ;
19700 return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705 (eval $ac_link) 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } &&
19712 { ac_try='test -z "$ac_c_werror_flag"
19713 || test ! -s conftest.err'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest$ac_exeext'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19726 else
19727 echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19729
19730 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19731 fi
19732 rm -f conftest.err conftest.$ac_objext \
19733 conftest$ac_exeext conftest.$ac_ext
19734 LIBS=$ac_check_lib_save_LIBS
19735 fi
19736 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19737 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19738 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19739 cat >>confdefs.h <<_ACEOF
19740 #define HAVE_LIBK5CRYPTO 1
19741 _ACEOF
19742
19743 LIBS="-lk5crypto $LIBS"
19744
19745 fi
19746
19747
19748 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19749 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19750 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753 ac_check_lib_save_LIBS=$LIBS
19754 LIBS="-lcrypto $LIBS"
19755 cat >conftest.$ac_ext <<_ACEOF
19756 /* confdefs.h. */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761
19762 /* Override any gcc2 internal prototype to avoid an error. */
19763 #ifdef __cplusplus
19764 extern "C"
19765 #endif
19766 /* We use char because int might match the return type of a gcc2
19767 builtin and then its argument prototype would still apply. */
19768 char mit_des_cbc_encrypt ();
19769 int
19770 main ()
19771 {
19772 mit_des_cbc_encrypt ();
19773 ;
19774 return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext conftest$ac_exeext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19779 (eval $ac_link) 2>conftest.er1
19780 ac_status=$?
19781 grep -v '^ *+' conftest.er1 >conftest.err
19782 rm -f conftest.er1
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try='test -z "$ac_c_werror_flag"
19787 || test ! -s conftest.err'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest$ac_exeext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19800 else
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19805 fi
19806 rm -f conftest.err conftest.$ac_objext \
19807 conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19809 fi
19810 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19811 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19812 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19813 cat >>confdefs.h <<_ACEOF
19814 #define HAVE_LIBCRYPTO 1
19815 _ACEOF
19816
19817 LIBS="-lcrypto $LIBS"
19818
19819 fi
19820
19821
19822 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19823 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19824 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827 ac_check_lib_save_LIBS=$LIBS
19828 LIBS="-lkrb5 $LIBS"
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h. */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835
19836 /* Override any gcc2 internal prototype to avoid an error. */
19837 #ifdef __cplusplus
19838 extern "C"
19839 #endif
19840 /* We use char because int might match the return type of a gcc2
19841 builtin and then its argument prototype would still apply. */
19842 char krb5_init_context ();
19843 int
19844 main ()
19845 {
19846 krb5_init_context ();
19847 ;
19848 return 0;
19849 }
19850 _ACEOF
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853 (eval $ac_link) 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try='test -z "$ac_c_werror_flag"
19861 || test ! -s conftest.err'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; } &&
19867 { ac_try='test -s conftest$ac_exeext'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 ac_cv_lib_krb5_krb5_init_context=yes
19874 else
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19877
19878 ac_cv_lib_krb5_krb5_init_context=no
19879 fi
19880 rm -f conftest.err conftest.$ac_objext \
19881 conftest$ac_exeext conftest.$ac_ext
19882 LIBS=$ac_check_lib_save_LIBS
19883 fi
19884 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19885 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19886 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19887 cat >>confdefs.h <<_ACEOF
19888 #define HAVE_LIBKRB5 1
19889 _ACEOF
19890
19891 LIBS="-lkrb5 $LIBS"
19892
19893 fi
19894
19895 if test "${with_kerberos5+set}" != set; then
19896
19897 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19898 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19899 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19901 else
19902 ac_check_lib_save_LIBS=$LIBS
19903 LIBS="-ldes425 $LIBS"
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h. */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910
19911 /* Override any gcc2 internal prototype to avoid an error. */
19912 #ifdef __cplusplus
19913 extern "C"
19914 #endif
19915 /* We use char because int might match the return type of a gcc2
19916 builtin and then its argument prototype would still apply. */
19917 char des_cbc_encrypt ();
19918 int
19919 main ()
19920 {
19921 des_cbc_encrypt ();
19922 ;
19923 return 0;
19924 }
19925 _ACEOF
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19928 (eval $ac_link) 2>conftest.er1
19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try='test -z "$ac_c_werror_flag"
19936 || test ! -s conftest.err'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19939 ac_status=$?
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try='test -s conftest$ac_exeext'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19948 ac_cv_lib_des425_des_cbc_encrypt=yes
19949 else
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19952
19953 ac_cv_lib_des425_des_cbc_encrypt=no
19954 fi
19955 rm -f conftest.err conftest.$ac_objext \
19956 conftest$ac_exeext conftest.$ac_ext
19957 LIBS=$ac_check_lib_save_LIBS
19958 fi
19959 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19960 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19961 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19962 cat >>confdefs.h <<_ACEOF
19963 #define HAVE_LIBDES425 1
19964 _ACEOF
19965
19966 LIBS="-ldes425 $LIBS"
19967
19968 else
19969
19970 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19971 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19972 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975 ac_check_lib_save_LIBS=$LIBS
19976 LIBS="-ldes $LIBS"
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983
19984 /* Override any gcc2 internal prototype to avoid an error. */
19985 #ifdef __cplusplus
19986 extern "C"
19987 #endif
19988 /* We use char because int might match the return type of a gcc2
19989 builtin and then its argument prototype would still apply. */
19990 char des_cbc_encrypt ();
19991 int
19992 main ()
19993 {
19994 des_cbc_encrypt ();
19995 ;
19996 return 0;
19997 }
19998 _ACEOF
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20001 (eval $ac_link) 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
20008 { ac_try='test -z "$ac_c_werror_flag"
20009 || test ! -s conftest.err'
20010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011 (eval $ac_try) 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; } &&
20015 { ac_try='test -s conftest$ac_exeext'
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; }; then
20021 ac_cv_lib_des_des_cbc_encrypt=yes
20022 else
20023 echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20025
20026 ac_cv_lib_des_des_cbc_encrypt=no
20027 fi
20028 rm -f conftest.err conftest.$ac_objext \
20029 conftest$ac_exeext conftest.$ac_ext
20030 LIBS=$ac_check_lib_save_LIBS
20031 fi
20032 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20033 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
20034 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20035 cat >>confdefs.h <<_ACEOF
20036 #define HAVE_LIBDES 1
20037 _ACEOF
20038
20039 LIBS="-ldes $LIBS"
20040
20041 fi
20042
20043 fi
20044
20045
20046 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20047 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
20048 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 else
20051 ac_check_lib_save_LIBS=$LIBS
20052 LIBS="-lkrb4 $LIBS"
20053 cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h. */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059
20060 /* Override any gcc2 internal prototype to avoid an error. */
20061 #ifdef __cplusplus
20062 extern "C"
20063 #endif
20064 /* We use char because int might match the return type of a gcc2
20065 builtin and then its argument prototype would still apply. */
20066 char krb_get_cred ();
20067 int
20068 main ()
20069 {
20070 krb_get_cred ();
20071 ;
20072 return 0;
20073 }
20074 _ACEOF
20075 rm -f conftest.$ac_objext conftest$ac_exeext
20076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20077 (eval $ac_link) 2>conftest.er1
20078 ac_status=$?
20079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
20084 { ac_try='test -z "$ac_c_werror_flag"
20085 || test ! -s conftest.err'
20086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087 (eval $ac_try) 2>&5
20088 ac_status=$?
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }; } &&
20091 { ac_try='test -s conftest$ac_exeext'
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20094 ac_status=$?
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; }; then
20097 ac_cv_lib_krb4_krb_get_cred=yes
20098 else
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20101
20102 ac_cv_lib_krb4_krb_get_cred=no
20103 fi
20104 rm -f conftest.err conftest.$ac_objext \
20105 conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20107 fi
20108 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20109 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
20110 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20111 cat >>confdefs.h <<_ACEOF
20112 #define HAVE_LIBKRB4 1
20113 _ACEOF
20114
20115 LIBS="-lkrb4 $LIBS"
20116
20117 else
20118
20119 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20120 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
20121 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20122 echo $ECHO_N "(cached) $ECHO_C" >&6
20123 else
20124 ac_check_lib_save_LIBS=$LIBS
20125 LIBS="-lkrb $LIBS"
20126 cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h. */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132
20133 /* Override any gcc2 internal prototype to avoid an error. */
20134 #ifdef __cplusplus
20135 extern "C"
20136 #endif
20137 /* We use char because int might match the return type of a gcc2
20138 builtin and then its argument prototype would still apply. */
20139 char krb_get_cred ();
20140 int
20141 main ()
20142 {
20143 krb_get_cred ();
20144 ;
20145 return 0;
20146 }
20147 _ACEOF
20148 rm -f conftest.$ac_objext conftest$ac_exeext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20150 (eval $ac_link) 2>conftest.er1
20151 ac_status=$?
20152 grep -v '^ *+' conftest.er1 >conftest.err
20153 rm -f conftest.er1
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -z "$ac_c_werror_flag"
20158 || test ! -s conftest.err'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try='test -s conftest$ac_exeext'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_cv_lib_krb_krb_get_cred=yes
20171 else
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175 ac_cv_lib_krb_krb_get_cred=no
20176 fi
20177 rm -f conftest.err conftest.$ac_objext \
20178 conftest$ac_exeext conftest.$ac_ext
20179 LIBS=$ac_check_lib_save_LIBS
20180 fi
20181 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20182 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
20183 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20184 cat >>confdefs.h <<_ACEOF
20185 #define HAVE_LIBKRB 1
20186 _ACEOF
20187
20188 LIBS="-lkrb $LIBS"
20189
20190 fi
20191
20192 fi
20193
20194 fi
20195
20196 if test "${with_kerberos5+set}" = set; then
20197
20198 for ac_header in krb5.h
20199 do
20200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20202 echo "$as_me:$LINENO: checking for $ac_header" >&5
20203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 fi
20207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20209 else
20210 # Is the header compilable?
20211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h. */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 $ac_includes_default
20220 #include <$ac_header>
20221 _ACEOF
20222 rm -f conftest.$ac_objext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20224 (eval $ac_compile) 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -z "$ac_c_werror_flag"
20232 || test ! -s conftest.err'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest.$ac_objext'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 ac_header_compiler=yes
20245 else
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 ac_header_compiler=no
20250 fi
20251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20253 echo "${ECHO_T}$ac_header_compiler" >&6
20254
20255 # Is the header present?
20256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20258 cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h. */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 #include <$ac_header>
20265 _ACEOF
20266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } >/dev/null; then
20274 if test -s conftest.err; then
20275 ac_cpp_err=$ac_c_preproc_warn_flag
20276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20277 else
20278 ac_cpp_err=
20279 fi
20280 else
20281 ac_cpp_err=yes
20282 fi
20283 if test -z "$ac_cpp_err"; then
20284 ac_header_preproc=yes
20285 else
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 ac_header_preproc=no
20290 fi
20291 rm -f conftest.err conftest.$ac_ext
20292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20293 echo "${ECHO_T}$ac_header_preproc" >&6
20294
20295 # So? What about this header?
20296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20297 yes:no: )
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20302 ac_header_preproc=yes
20303 ;;
20304 no:yes:* )
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20317 (
20318 cat <<\_ASBOX
20319 ## ------------------------------------------ ##
20320 ## Report this to the AC_PACKAGE_NAME lists. ##
20321 ## ------------------------------------------ ##
20322 _ASBOX
20323 ) |
20324 sed "s/^/$as_me: WARNING: /" >&2
20325 ;;
20326 esac
20327 echo "$as_me:$LINENO: checking for $ac_header" >&5
20328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332 eval "$as_ac_Header=\$ac_header_preproc"
20333 fi
20334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20336
20337 fi
20338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20339 cat >>confdefs.h <<_ACEOF
20340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20341 _ACEOF
20342
20343 fi
20344
20345 done
20346
20347 else
20348
20349 for ac_header in des.h
20350 do
20351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20353 echo "$as_me:$LINENO: checking for $ac_header" >&5
20354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 fi
20358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20360 else
20361 # Is the header compilable?
20362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 $ac_includes_default
20371 #include <$ac_header>
20372 _ACEOF
20373 rm -f conftest.$ac_objext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375 (eval $ac_compile) 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try='test -z "$ac_c_werror_flag"
20383 || test ! -s conftest.err'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20386 ac_status=$?
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } &&
20389 { ac_try='test -s conftest.$ac_objext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 ac_header_compiler=yes
20396 else
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20399
20400 ac_header_compiler=no
20401 fi
20402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20404 echo "${ECHO_T}$ac_header_compiler" >&6
20405
20406 # Is the header present?
20407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20409 cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h. */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 #include <$ac_header>
20416 _ACEOF
20417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20419 ac_status=$?
20420 grep -v '^ *+' conftest.er1 >conftest.err
20421 rm -f conftest.er1
20422 cat conftest.err >&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } >/dev/null; then
20425 if test -s conftest.err; then
20426 ac_cpp_err=$ac_c_preproc_warn_flag
20427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20428 else
20429 ac_cpp_err=
20430 fi
20431 else
20432 ac_cpp_err=yes
20433 fi
20434 if test -z "$ac_cpp_err"; then
20435 ac_header_preproc=yes
20436 else
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20439
20440 ac_header_preproc=no
20441 fi
20442 rm -f conftest.err conftest.$ac_ext
20443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20444 echo "${ECHO_T}$ac_header_preproc" >&6
20445
20446 # So? What about this header?
20447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20448 yes:no: )
20449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20453 ac_header_preproc=yes
20454 ;;
20455 no:yes:* )
20456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20468 (
20469 cat <<\_ASBOX
20470 ## ------------------------------------------ ##
20471 ## Report this to the AC_PACKAGE_NAME lists. ##
20472 ## ------------------------------------------ ##
20473 _ASBOX
20474 ) |
20475 sed "s/^/$as_me: WARNING: /" >&2
20476 ;;
20477 esac
20478 echo "$as_me:$LINENO: checking for $ac_header" >&5
20479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483 eval "$as_ac_Header=\$ac_header_preproc"
20484 fi
20485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20487
20488 fi
20489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20490 cat >>confdefs.h <<_ACEOF
20491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20492 _ACEOF
20493
20494 else
20495
20496 for ac_header in kerberosIV/des.h
20497 do
20498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20500 echo "$as_me:$LINENO: checking for $ac_header" >&5
20501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 fi
20505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20507 else
20508 # Is the header compilable?
20509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20511 cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h. */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20517 $ac_includes_default
20518 #include <$ac_header>
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522 (eval $ac_compile) 2>conftest.er1
20523 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try='test -z "$ac_c_werror_flag"
20530 || test ! -s conftest.err'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try='test -s conftest.$ac_objext'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }; then
20542 ac_header_compiler=yes
20543 else
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547 ac_header_compiler=no
20548 fi
20549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20551 echo "${ECHO_T}$ac_header_compiler" >&6
20552
20553 # Is the header present?
20554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <$ac_header>
20563 _ACEOF
20564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } >/dev/null; then
20572 if test -s conftest.err; then
20573 ac_cpp_err=$ac_c_preproc_warn_flag
20574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20575 else
20576 ac_cpp_err=
20577 fi
20578 else
20579 ac_cpp_err=yes
20580 fi
20581 if test -z "$ac_cpp_err"; then
20582 ac_header_preproc=yes
20583 else
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20586
20587 ac_header_preproc=no
20588 fi
20589 rm -f conftest.err conftest.$ac_ext
20590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20591 echo "${ECHO_T}$ac_header_preproc" >&6
20592
20593 # So? What about this header?
20594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20595 yes:no: )
20596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20600 ac_header_preproc=yes
20601 ;;
20602 no:yes:* )
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20615 (
20616 cat <<\_ASBOX
20617 ## ------------------------------------------ ##
20618 ## Report this to the AC_PACKAGE_NAME lists. ##
20619 ## ------------------------------------------ ##
20620 _ASBOX
20621 ) |
20622 sed "s/^/$as_me: WARNING: /" >&2
20623 ;;
20624 esac
20625 echo "$as_me:$LINENO: checking for $ac_header" >&5
20626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630 eval "$as_ac_Header=\$ac_header_preproc"
20631 fi
20632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20634
20635 fi
20636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20637 cat >>confdefs.h <<_ACEOF
20638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20639 _ACEOF
20640
20641 else
20642
20643 for ac_header in kerberos/des.h
20644 do
20645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20647 echo "$as_me:$LINENO: checking for $ac_header" >&5
20648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 fi
20652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20654 else
20655 # Is the header compilable?
20656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20658 cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h. */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 $ac_includes_default
20665 #include <$ac_header>
20666 _ACEOF
20667 rm -f conftest.$ac_objext
20668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669 (eval $ac_compile) 2>conftest.er1
20670 ac_status=$?
20671 grep -v '^ *+' conftest.er1 >conftest.err
20672 rm -f conftest.er1
20673 cat conftest.err >&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try='test -z "$ac_c_werror_flag"
20677 || test ! -s conftest.err'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; } &&
20683 { ac_try='test -s conftest.$ac_objext'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20686 ac_status=$?
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_header_compiler=yes
20690 else
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20693
20694 ac_header_compiler=no
20695 fi
20696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20698 echo "${ECHO_T}$ac_header_compiler" >&6
20699
20700 # Is the header present?
20701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20703 cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h. */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 #include <$ac_header>
20710 _ACEOF
20711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20713 ac_status=$?
20714 grep -v '^ *+' conftest.er1 >conftest.err
20715 rm -f conftest.er1
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } >/dev/null; then
20719 if test -s conftest.err; then
20720 ac_cpp_err=$ac_c_preproc_warn_flag
20721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20722 else
20723 ac_cpp_err=
20724 fi
20725 else
20726 ac_cpp_err=yes
20727 fi
20728 if test -z "$ac_cpp_err"; then
20729 ac_header_preproc=yes
20730 else
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20733
20734 ac_header_preproc=no
20735 fi
20736 rm -f conftest.err conftest.$ac_ext
20737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20738 echo "${ECHO_T}$ac_header_preproc" >&6
20739
20740 # So? What about this header?
20741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20742 yes:no: )
20743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20747 ac_header_preproc=yes
20748 ;;
20749 no:yes:* )
20750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20762 (
20763 cat <<\_ASBOX
20764 ## ------------------------------------------ ##
20765 ## Report this to the AC_PACKAGE_NAME lists. ##
20766 ## ------------------------------------------ ##
20767 _ASBOX
20768 ) |
20769 sed "s/^/$as_me: WARNING: /" >&2
20770 ;;
20771 esac
20772 echo "$as_me:$LINENO: checking for $ac_header" >&5
20773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777 eval "$as_ac_Header=\$ac_header_preproc"
20778 fi
20779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20781
20782 fi
20783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20784 cat >>confdefs.h <<_ACEOF
20785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20786 _ACEOF
20787
20788 fi
20789
20790 done
20791
20792 fi
20793
20794 done
20795
20796 fi
20797
20798 done
20799
20800
20801 for ac_header in krb.h
20802 do
20803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20805 echo "$as_me:$LINENO: checking for $ac_header" >&5
20806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20809 fi
20810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20812 else
20813 # Is the header compilable?
20814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20816 cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h. */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 $ac_includes_default
20823 #include <$ac_header>
20824 _ACEOF
20825 rm -f conftest.$ac_objext
20826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20827 (eval $ac_compile) 2>conftest.er1
20828 ac_status=$?
20829 grep -v '^ *+' conftest.er1 >conftest.err
20830 rm -f conftest.er1
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } &&
20834 { ac_try='test -z "$ac_c_werror_flag"
20835 || test ! -s conftest.err'
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20838 ac_status=$?
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; } &&
20841 { ac_try='test -s conftest.$ac_objext'
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; }; then
20847 ac_header_compiler=yes
20848 else
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 ac_header_compiler=no
20853 fi
20854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20856 echo "${ECHO_T}$ac_header_compiler" >&6
20857
20858 # Is the header present?
20859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20861 cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h. */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 #include <$ac_header>
20868 _ACEOF
20869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } >/dev/null; then
20877 if test -s conftest.err; then
20878 ac_cpp_err=$ac_c_preproc_warn_flag
20879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20880 else
20881 ac_cpp_err=
20882 fi
20883 else
20884 ac_cpp_err=yes
20885 fi
20886 if test -z "$ac_cpp_err"; then
20887 ac_header_preproc=yes
20888 else
20889 echo "$as_me: failed program was:" >&5
20890 sed 's/^/| /' conftest.$ac_ext >&5
20891
20892 ac_header_preproc=no
20893 fi
20894 rm -f conftest.err conftest.$ac_ext
20895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20896 echo "${ECHO_T}$ac_header_preproc" >&6
20897
20898 # So? What about this header?
20899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20900 yes:no: )
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20905 ac_header_preproc=yes
20906 ;;
20907 no:yes:* )
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20920 (
20921 cat <<\_ASBOX
20922 ## ------------------------------------------ ##
20923 ## Report this to the AC_PACKAGE_NAME lists. ##
20924 ## ------------------------------------------ ##
20925 _ASBOX
20926 ) |
20927 sed "s/^/$as_me: WARNING: /" >&2
20928 ;;
20929 esac
20930 echo "$as_me:$LINENO: checking for $ac_header" >&5
20931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20933 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 else
20935 eval "$as_ac_Header=\$ac_header_preproc"
20936 fi
20937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20939
20940 fi
20941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20942 cat >>confdefs.h <<_ACEOF
20943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20944 _ACEOF
20945
20946 else
20947
20948 for ac_header in kerberosIV/krb.h
20949 do
20950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20952 echo "$as_me:$LINENO: checking for $ac_header" >&5
20953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 fi
20957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20959 else
20960 # Is the header compilable?
20961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20963 cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h. */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20969 $ac_includes_default
20970 #include <$ac_header>
20971 _ACEOF
20972 rm -f conftest.$ac_objext
20973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20974 (eval $ac_compile) 2>conftest.er1
20975 ac_status=$?
20976 grep -v '^ *+' conftest.er1 >conftest.err
20977 rm -f conftest.er1
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } &&
20981 { ac_try='test -z "$ac_c_werror_flag"
20982 || test ! -s conftest.err'
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; } &&
20988 { ac_try='test -s conftest.$ac_objext'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 ac_header_compiler=yes
20995 else
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999 ac_header_compiler=no
21000 fi
21001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21003 echo "${ECHO_T}$ac_header_compiler" >&6
21004
21005 # Is the header present?
21006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21008 cat >conftest.$ac_ext <<_ACEOF
21009 /* confdefs.h. */
21010 _ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21014 #include <$ac_header>
21015 _ACEOF
21016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21018 ac_status=$?
21019 grep -v '^ *+' conftest.er1 >conftest.err
21020 rm -f conftest.er1
21021 cat conftest.err >&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } >/dev/null; then
21024 if test -s conftest.err; then
21025 ac_cpp_err=$ac_c_preproc_warn_flag
21026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21027 else
21028 ac_cpp_err=
21029 fi
21030 else
21031 ac_cpp_err=yes
21032 fi
21033 if test -z "$ac_cpp_err"; then
21034 ac_header_preproc=yes
21035 else
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21038
21039 ac_header_preproc=no
21040 fi
21041 rm -f conftest.err conftest.$ac_ext
21042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21043 echo "${ECHO_T}$ac_header_preproc" >&6
21044
21045 # So? What about this header?
21046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21047 yes:no: )
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21052 ac_header_preproc=yes
21053 ;;
21054 no:yes:* )
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21067 (
21068 cat <<\_ASBOX
21069 ## ------------------------------------------ ##
21070 ## Report this to the AC_PACKAGE_NAME lists. ##
21071 ## ------------------------------------------ ##
21072 _ASBOX
21073 ) |
21074 sed "s/^/$as_me: WARNING: /" >&2
21075 ;;
21076 esac
21077 echo "$as_me:$LINENO: checking for $ac_header" >&5
21078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 else
21082 eval "$as_ac_Header=\$ac_header_preproc"
21083 fi
21084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21086
21087 fi
21088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21089 cat >>confdefs.h <<_ACEOF
21090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21091 _ACEOF
21092
21093 else
21094
21095 for ac_header in kerberos/krb.h
21096 do
21097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21099 echo "$as_me:$LINENO: checking for $ac_header" >&5
21100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
21103 fi
21104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21106 else
21107 # Is the header compilable?
21108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21110 cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h. */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 $ac_includes_default
21117 #include <$ac_header>
21118 _ACEOF
21119 rm -f conftest.$ac_objext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21121 (eval $ac_compile) 2>conftest.er1
21122 ac_status=$?
21123 grep -v '^ *+' conftest.er1 >conftest.err
21124 rm -f conftest.er1
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } &&
21128 { ac_try='test -z "$ac_c_werror_flag"
21129 || test ! -s conftest.err'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; } &&
21135 { ac_try='test -s conftest.$ac_objext'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 ac_header_compiler=yes
21142 else
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21145
21146 ac_header_compiler=no
21147 fi
21148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21150 echo "${ECHO_T}$ac_header_compiler" >&6
21151
21152 # Is the header present?
21153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21155 cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h. */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <$ac_header>
21162 _ACEOF
21163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21165 ac_status=$?
21166 grep -v '^ *+' conftest.er1 >conftest.err
21167 rm -f conftest.er1
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } >/dev/null; then
21171 if test -s conftest.err; then
21172 ac_cpp_err=$ac_c_preproc_warn_flag
21173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21174 else
21175 ac_cpp_err=
21176 fi
21177 else
21178 ac_cpp_err=yes
21179 fi
21180 if test -z "$ac_cpp_err"; then
21181 ac_header_preproc=yes
21182 else
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21185
21186 ac_header_preproc=no
21187 fi
21188 rm -f conftest.err conftest.$ac_ext
21189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21190 echo "${ECHO_T}$ac_header_preproc" >&6
21191
21192 # So? What about this header?
21193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21194 yes:no: )
21195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21199 ac_header_preproc=yes
21200 ;;
21201 no:yes:* )
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21214 (
21215 cat <<\_ASBOX
21216 ## ------------------------------------------ ##
21217 ## Report this to the AC_PACKAGE_NAME lists. ##
21218 ## ------------------------------------------ ##
21219 _ASBOX
21220 ) |
21221 sed "s/^/$as_me: WARNING: /" >&2
21222 ;;
21223 esac
21224 echo "$as_me:$LINENO: checking for $ac_header" >&5
21225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229 eval "$as_ac_Header=\$ac_header_preproc"
21230 fi
21231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21233
21234 fi
21235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21236 cat >>confdefs.h <<_ACEOF
21237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21238 _ACEOF
21239
21240 fi
21241
21242 done
21243
21244 fi
21245
21246 done
21247
21248 fi
21249
21250 done
21251
21252 fi
21253
21254 for ac_header in com_err.h
21255 do
21256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21258 echo "$as_me:$LINENO: checking for $ac_header" >&5
21259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 fi
21263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21265 else
21266 # Is the header compilable?
21267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21269 cat >conftest.$ac_ext <<_ACEOF
21270 /* confdefs.h. */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 $ac_includes_default
21276 #include <$ac_header>
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21280 (eval $ac_compile) 2>conftest.er1
21281 ac_status=$?
21282 grep -v '^ *+' conftest.er1 >conftest.err
21283 rm -f conftest.er1
21284 cat conftest.err >&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } &&
21287 { ac_try='test -z "$ac_c_werror_flag"
21288 || test ! -s conftest.err'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21291 ac_status=$?
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; } &&
21294 { ac_try='test -s conftest.$ac_objext'
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21297 ac_status=$?
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; }; then
21300 ac_header_compiler=yes
21301 else
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21304
21305 ac_header_compiler=no
21306 fi
21307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21309 echo "${ECHO_T}$ac_header_compiler" >&6
21310
21311 # Is the header present?
21312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21314 cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h. */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21320 #include <$ac_header>
21321 _ACEOF
21322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21324 ac_status=$?
21325 grep -v '^ *+' conftest.er1 >conftest.err
21326 rm -f conftest.er1
21327 cat conftest.err >&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } >/dev/null; then
21330 if test -s conftest.err; then
21331 ac_cpp_err=$ac_c_preproc_warn_flag
21332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21333 else
21334 ac_cpp_err=
21335 fi
21336 else
21337 ac_cpp_err=yes
21338 fi
21339 if test -z "$ac_cpp_err"; then
21340 ac_header_preproc=yes
21341 else
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345 ac_header_preproc=no
21346 fi
21347 rm -f conftest.err conftest.$ac_ext
21348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21349 echo "${ECHO_T}$ac_header_preproc" >&6
21350
21351 # So? What about this header?
21352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21353 yes:no: )
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21358 ac_header_preproc=yes
21359 ;;
21360 no:yes:* )
21361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21373 (
21374 cat <<\_ASBOX
21375 ## ------------------------------------------ ##
21376 ## Report this to the AC_PACKAGE_NAME lists. ##
21377 ## ------------------------------------------ ##
21378 _ASBOX
21379 ) |
21380 sed "s/^/$as_me: WARNING: /" >&2
21381 ;;
21382 esac
21383 echo "$as_me:$LINENO: checking for $ac_header" >&5
21384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388 eval "$as_ac_Header=\$ac_header_preproc"
21389 fi
21390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21392
21393 fi
21394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21395 cat >>confdefs.h <<_ACEOF
21396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21397 _ACEOF
21398
21399 fi
21400
21401 done
21402
21403 fi
21404
21405 # Solaris requires -lintl if you want strerror (which calls dgettext)
21406 # to return localized messages.
21407
21408 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21409 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21410 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413 ac_check_lib_save_LIBS=$LIBS
21414 LIBS="-lintl $LIBS"
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421
21422 /* Override any gcc2 internal prototype to avoid an error. */
21423 #ifdef __cplusplus
21424 extern "C"
21425 #endif
21426 /* We use char because int might match the return type of a gcc2
21427 builtin and then its argument prototype would still apply. */
21428 char dgettext ();
21429 int
21430 main ()
21431 {
21432 dgettext ();
21433 ;
21434 return 0;
21435 }
21436 _ACEOF
21437 rm -f conftest.$ac_objext conftest$ac_exeext
21438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21439 (eval $ac_link) 2>conftest.er1
21440 ac_status=$?
21441 grep -v '^ *+' conftest.er1 >conftest.err
21442 rm -f conftest.er1
21443 cat conftest.err >&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } &&
21446 { ac_try='test -z "$ac_c_werror_flag"
21447 || test ! -s conftest.err'
21448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21450 ac_status=$?
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; } &&
21453 { ac_try='test -s conftest$ac_exeext'
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455 (eval $ac_try) 2>&5
21456 ac_status=$?
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; }; then
21459 ac_cv_lib_intl_dgettext=yes
21460 else
21461 echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21463
21464 ac_cv_lib_intl_dgettext=no
21465 fi
21466 rm -f conftest.err conftest.$ac_objext \
21467 conftest$ac_exeext conftest.$ac_ext
21468 LIBS=$ac_check_lib_save_LIBS
21469 fi
21470 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21471 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21472 if test $ac_cv_lib_intl_dgettext = yes; then
21473 cat >>confdefs.h <<_ACEOF
21474 #define HAVE_LIBINTL 1
21475 _ACEOF
21476
21477 LIBS="-lintl $LIBS"
21478
21479 fi
21480
21481
21482 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21483 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
21484 if test "${emacs_cv_localtime_cache+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 else
21487 if test x$ac_cv_func_tzset = xyes; then
21488 if test "$cross_compiling" = yes; then
21489 # If we have tzset, assume the worst when cross-compiling.
21490 emacs_cv_localtime_cache=yes
21491 else
21492 cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h. */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21498 #include <time.h>
21499 extern char **environ;
21500 unset_TZ ()
21501 {
21502 char **from, **to;
21503 for (to = from = environ; (*to = *from); from++)
21504 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21505 to++;
21506 }
21507 char TZ_GMT0[] = "TZ=GMT0";
21508 char TZ_PST8[] = "TZ=PST8";
21509 main()
21510 {
21511 time_t now = time ((time_t *) 0);
21512 int hour_GMT0, hour_unset;
21513 if (putenv (TZ_GMT0) != 0)
21514 exit (1);
21515 hour_GMT0 = localtime (&now)->tm_hour;
21516 unset_TZ ();
21517 hour_unset = localtime (&now)->tm_hour;
21518 if (putenv (TZ_PST8) != 0)
21519 exit (1);
21520 if (localtime (&now)->tm_hour == hour_GMT0)
21521 exit (1);
21522 unset_TZ ();
21523 if (localtime (&now)->tm_hour != hour_unset)
21524 exit (1);
21525 exit (0);
21526 }
21527 _ACEOF
21528 rm -f conftest$ac_exeext
21529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21530 (eval $ac_link) 2>&5
21531 ac_status=$?
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; }; then
21539 emacs_cv_localtime_cache=no
21540 else
21541 echo "$as_me: program exited with status $ac_status" >&5
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21544
21545 ( exit $ac_status )
21546 emacs_cv_localtime_cache=yes
21547 fi
21548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21549 fi
21550 else
21551 # If we lack tzset, report that localtime does not cache TZ,
21552 # since we can't invalidate the cache if we don't have tzset.
21553 emacs_cv_localtime_cache=no
21554 fi
21555 fi
21556 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21557 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
21558 if test $emacs_cv_localtime_cache = yes; then
21559
21560 cat >>confdefs.h <<\_ACEOF
21561 #define LOCALTIME_CACHE 1
21562 _ACEOF
21563
21564 fi
21565
21566 if test "x$HAVE_TIMEVAL" = xyes; then
21567
21568 for ac_func in gettimeofday
21569 do
21570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21571 echo "$as_me:$LINENO: checking for $ac_func" >&5
21572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21573 if eval "test \"\${$as_ac_var+set}\" = set"; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21575 else
21576 cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h. */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21584 #define $ac_func innocuous_$ac_func
21585
21586 /* System header to define __stub macros and hopefully few prototypes,
21587 which can conflict with char $ac_func (); below.
21588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21589 <limits.h> exists even on freestanding compilers. */
21590
21591 #ifdef __STDC__
21592 # include <limits.h>
21593 #else
21594 # include <assert.h>
21595 #endif
21596
21597 #undef $ac_func
21598
21599 /* Override any gcc2 internal prototype to avoid an error. */
21600 #ifdef __cplusplus
21601 extern "C"
21602 {
21603 #endif
21604 /* We use char because int might match the return type of a gcc2
21605 builtin and then its argument prototype would still apply. */
21606 char $ac_func ();
21607 /* The GNU C library defines this for functions which it implements
21608 to always fail with ENOSYS. Some functions are actually named
21609 something starting with __ and the normal name is an alias. */
21610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21611 choke me
21612 #else
21613 char (*f) () = $ac_func;
21614 #endif
21615 #ifdef __cplusplus
21616 }
21617 #endif
21618
21619 int
21620 main ()
21621 {
21622 return f != $ac_func;
21623 ;
21624 return 0;
21625 }
21626 _ACEOF
21627 rm -f conftest.$ac_objext conftest$ac_exeext
21628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21629 (eval $ac_link) 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } &&
21636 { ac_try='test -z "$ac_c_werror_flag"
21637 || test ! -s conftest.err'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; } &&
21643 { ac_try='test -s conftest$ac_exeext'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21646 ac_status=$?
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 eval "$as_ac_var=yes"
21650 else
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21653
21654 eval "$as_ac_var=no"
21655 fi
21656 rm -f conftest.err conftest.$ac_objext \
21657 conftest$ac_exeext conftest.$ac_ext
21658 fi
21659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21661 if test `eval echo '${'$as_ac_var'}'` = yes; then
21662 cat >>confdefs.h <<_ACEOF
21663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21664 _ACEOF
21665
21666 fi
21667 done
21668
21669 if test $ac_cv_func_gettimeofday = yes; then
21670 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21671 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21672 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21674 else
21675 cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h. */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681
21682 #ifdef TIME_WITH_SYS_TIME
21683 #include <sys/time.h>
21684 #include <time.h>
21685 #else
21686 #ifdef HAVE_SYS_TIME_H
21687 #include <sys/time.h>
21688 #else
21689 #include <time.h>
21690 #endif
21691 #endif
21692 int
21693 main ()
21694 {
21695 struct timeval time;
21696 gettimeofday (&time, 0);
21697 ;
21698 return 0;
21699 }
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703 (eval $ac_compile) 2>conftest.er1
21704 ac_status=$?
21705 grep -v '^ *+' conftest.er1 >conftest.err
21706 rm -f conftest.er1
21707 cat conftest.err >&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } &&
21710 { ac_try='test -z "$ac_c_werror_flag"
21711 || test ! -s conftest.err'
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; } &&
21717 { ac_try='test -s conftest.$ac_objext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 emacs_cv_gettimeofday_two_arguments=yes
21724 else
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21727
21728 emacs_cv_gettimeofday_two_arguments=no
21729 fi
21730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21731 fi
21732 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21733 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21734 if test $emacs_cv_gettimeofday_two_arguments = no; then
21735
21736 cat >>confdefs.h <<\_ACEOF
21737 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21738 _ACEOF
21739
21740 fi
21741 fi
21742 fi
21743
21744 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21745 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21746 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21747 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750 cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h. */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 #include <sys/types.h>
21757 #include <$ac_cv_struct_tm>
21758
21759
21760 int
21761 main ()
21762 {
21763 static struct tm ac_aggr;
21764 if (ac_aggr.tm_zone)
21765 return 0;
21766 ;
21767 return 0;
21768 }
21769 _ACEOF
21770 rm -f conftest.$ac_objext
21771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21772 (eval $ac_compile) 2>conftest.er1
21773 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } &&
21779 { ac_try='test -z "$ac_c_werror_flag"
21780 || test ! -s conftest.err'
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; } &&
21786 { ac_try='test -s conftest.$ac_objext'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; }; then
21792 ac_cv_member_struct_tm_tm_zone=yes
21793 else
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21796
21797 cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h. */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803 #include <sys/types.h>
21804 #include <$ac_cv_struct_tm>
21805
21806
21807 int
21808 main ()
21809 {
21810 static struct tm ac_aggr;
21811 if (sizeof ac_aggr.tm_zone)
21812 return 0;
21813 ;
21814 return 0;
21815 }
21816 _ACEOF
21817 rm -f conftest.$ac_objext
21818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21819 (eval $ac_compile) 2>conftest.er1
21820 ac_status=$?
21821 grep -v '^ *+' conftest.er1 >conftest.err
21822 rm -f conftest.er1
21823 cat conftest.err >&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); } &&
21826 { ac_try='test -z "$ac_c_werror_flag"
21827 || test ! -s conftest.err'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try='test -s conftest.$ac_objext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_cv_member_struct_tm_tm_zone=yes
21840 else
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21843
21844 ac_cv_member_struct_tm_tm_zone=no
21845 fi
21846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21847 fi
21848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21849 fi
21850 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21851 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21852 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21853
21854 cat >>confdefs.h <<_ACEOF
21855 #define HAVE_STRUCT_TM_TM_ZONE 1
21856 _ACEOF
21857
21858
21859 fi
21860
21861 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21862
21863 cat >>confdefs.h <<\_ACEOF
21864 #define HAVE_TM_ZONE 1
21865 _ACEOF
21866
21867 else
21868 echo "$as_me:$LINENO: checking for tzname" >&5
21869 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21870 if test "${ac_cv_var_tzname+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873 cat >conftest.$ac_ext <<_ACEOF
21874 /* confdefs.h. */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 #include <time.h>
21880 #ifndef tzname /* For SGI. */
21881 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21882 #endif
21883
21884 int
21885 main ()
21886 {
21887 atoi(*tzname);
21888 ;
21889 return 0;
21890 }
21891 _ACEOF
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21894 (eval $ac_link) 2>conftest.er1
21895 ac_status=$?
21896 grep -v '^ *+' conftest.er1 >conftest.err
21897 rm -f conftest.er1
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
21901 { ac_try='test -z "$ac_c_werror_flag"
21902 || test ! -s conftest.err'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; } &&
21908 { ac_try='test -s conftest$ac_exeext'
21909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21911 ac_status=$?
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; }; then
21914 ac_cv_var_tzname=yes
21915 else
21916 echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21918
21919 ac_cv_var_tzname=no
21920 fi
21921 rm -f conftest.err conftest.$ac_objext \
21922 conftest$ac_exeext conftest.$ac_ext
21923 fi
21924 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21925 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21926 if test $ac_cv_var_tzname = yes; then
21927
21928 cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_TZNAME 1
21930 _ACEOF
21931
21932 fi
21933 fi
21934
21935
21936 if test "$ac_cv_func_gettimeofday" = yes; then
21937 echo "$as_me:$LINENO: checking for struct timezone" >&5
21938 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21939 if test "${emacs_cv_struct_timezone+set}" = set; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 else
21942 cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h. */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21948 #include <sys/time.h>
21949 int
21950 main ()
21951 {
21952 struct timezone tz;
21953 ;
21954 return 0;
21955 }
21956 _ACEOF
21957 rm -f conftest.$ac_objext
21958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21959 (eval $ac_compile) 2>conftest.er1
21960 ac_status=$?
21961 grep -v '^ *+' conftest.er1 >conftest.err
21962 rm -f conftest.er1
21963 cat conftest.err >&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } &&
21966 { ac_try='test -z "$ac_c_werror_flag"
21967 || test ! -s conftest.err'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; } &&
21973 { ac_try='test -s conftest.$ac_objext'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979 if test "$cross_compiling" = yes; then
21980 emacs_cv_struct_timezone=yes
21981 else
21982 cat >conftest.$ac_ext <<_ACEOF
21983 /* confdefs.h. */
21984 _ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988
21989 #ifdef TIME_WITH_SYS_TIME
21990 #include <sys/time.h>
21991 #include <time.h>
21992 #else
21993 #ifdef HAVE_SYS_TIME_H
21994 #include <sys/time.h>
21995 #else
21996 #include <time.h>
21997 #endif
21998 #endif
21999 main () {
22000 struct timeval time;
22001 struct timezone dummy;
22002 exit (gettimeofday (&time, &dummy));
22003 }
22004 _ACEOF
22005 rm -f conftest$ac_exeext
22006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22007 (eval $ac_link) 2>&5
22008 ac_status=$?
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 emacs_cv_struct_timezone=yes
22017 else
22018 echo "$as_me: program exited with status $ac_status" >&5
22019 echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22021
22022 ( exit $ac_status )
22023 emacs_cv_struct_timezone=no
22024 fi
22025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22026 fi
22027 else
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031 emacs_cv_struct_timezone=no
22032 fi
22033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22034 fi
22035 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
22036 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
22037 fi
22038
22039 ok_so_far=yes
22040 echo "$as_me:$LINENO: checking for socket" >&5
22041 echo $ECHO_N "checking for socket... $ECHO_C" >&6
22042 if test "${ac_cv_func_socket+set}" = set; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22044 else
22045 cat >conftest.$ac_ext <<_ACEOF
22046 /* confdefs.h. */
22047 _ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22051 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22053 #define socket innocuous_socket
22054
22055 /* System header to define __stub macros and hopefully few prototypes,
22056 which can conflict with char socket (); below.
22057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22058 <limits.h> exists even on freestanding compilers. */
22059
22060 #ifdef __STDC__
22061 # include <limits.h>
22062 #else
22063 # include <assert.h>
22064 #endif
22065
22066 #undef socket
22067
22068 /* Override any gcc2 internal prototype to avoid an error. */
22069 #ifdef __cplusplus
22070 extern "C"
22071 {
22072 #endif
22073 /* We use char because int might match the return type of a gcc2
22074 builtin and then its argument prototype would still apply. */
22075 char socket ();
22076 /* The GNU C library defines this for functions which it implements
22077 to always fail with ENOSYS. Some functions are actually named
22078 something starting with __ and the normal name is an alias. */
22079 #if defined (__stub_socket) || defined (__stub___socket)
22080 choke me
22081 #else
22082 char (*f) () = socket;
22083 #endif
22084 #ifdef __cplusplus
22085 }
22086 #endif
22087
22088 int
22089 main ()
22090 {
22091 return f != socket;
22092 ;
22093 return 0;
22094 }
22095 _ACEOF
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22098 (eval $ac_link) 2>conftest.er1
22099 ac_status=$?
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -z "$ac_c_werror_flag"
22106 || test ! -s conftest.err'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest$ac_exeext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_cv_func_socket=yes
22119 else
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123 ac_cv_func_socket=no
22124 fi
22125 rm -f conftest.err conftest.$ac_objext \
22126 conftest$ac_exeext conftest.$ac_ext
22127 fi
22128 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22129 echo "${ECHO_T}$ac_cv_func_socket" >&6
22130 if test $ac_cv_func_socket = yes; then
22131 :
22132 else
22133 ok_so_far=no
22134 fi
22135
22136 if test $ok_so_far = yes; then
22137 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22138 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22139 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22140 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22141 echo $ECHO_N "(cached) $ECHO_C" >&6
22142 fi
22143 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22144 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22145 else
22146 # Is the header compilable?
22147 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22148 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
22149 cat >conftest.$ac_ext <<_ACEOF
22150 /* confdefs.h. */
22151 _ACEOF
22152 cat confdefs.h >>conftest.$ac_ext
22153 cat >>conftest.$ac_ext <<_ACEOF
22154 /* end confdefs.h. */
22155 $ac_includes_default
22156 #include <netinet/in.h>
22157 _ACEOF
22158 rm -f conftest.$ac_objext
22159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22160 (eval $ac_compile) 2>conftest.er1
22161 ac_status=$?
22162 grep -v '^ *+' conftest.er1 >conftest.err
22163 rm -f conftest.er1
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } &&
22167 { ac_try='test -z "$ac_c_werror_flag"
22168 || test ! -s conftest.err'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; } &&
22174 { ac_try='test -s conftest.$ac_objext'
22175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176 (eval $ac_try) 2>&5
22177 ac_status=$?
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }; then
22180 ac_header_compiler=yes
22181 else
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22184
22185 ac_header_compiler=no
22186 fi
22187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22189 echo "${ECHO_T}$ac_header_compiler" >&6
22190
22191 # Is the header present?
22192 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22193 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
22194 cat >conftest.$ac_ext <<_ACEOF
22195 /* confdefs.h. */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 #include <netinet/in.h>
22201 _ACEOF
22202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22204 ac_status=$?
22205 grep -v '^ *+' conftest.er1 >conftest.err
22206 rm -f conftest.er1
22207 cat conftest.err >&5
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); } >/dev/null; then
22210 if test -s conftest.err; then
22211 ac_cpp_err=$ac_c_preproc_warn_flag
22212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22213 else
22214 ac_cpp_err=
22215 fi
22216 else
22217 ac_cpp_err=yes
22218 fi
22219 if test -z "$ac_cpp_err"; then
22220 ac_header_preproc=yes
22221 else
22222 echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22224
22225 ac_header_preproc=no
22226 fi
22227 rm -f conftest.err conftest.$ac_ext
22228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22229 echo "${ECHO_T}$ac_header_preproc" >&6
22230
22231 # So? What about this header?
22232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22233 yes:no: )
22234 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22235 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22237 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22238 ac_header_preproc=yes
22239 ;;
22240 no:yes:* )
22241 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22242 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22244 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22245 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22246 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22247 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22248 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22249 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22250 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22251 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22252 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22253 (
22254 cat <<\_ASBOX
22255 ## ------------------------------------------ ##
22256 ## Report this to the AC_PACKAGE_NAME lists. ##
22257 ## ------------------------------------------ ##
22258 _ASBOX
22259 ) |
22260 sed "s/^/$as_me: WARNING: /" >&2
22261 ;;
22262 esac
22263 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22264 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22265 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 else
22268 ac_cv_header_netinet_in_h=$ac_header_preproc
22269 fi
22270 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22271 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22272
22273 fi
22274 if test $ac_cv_header_netinet_in_h = yes; then
22275 :
22276 else
22277 ok_so_far=no
22278 fi
22279
22280
22281 fi
22282 if test $ok_so_far = yes; then
22283 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22284 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22285 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22286 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22288 fi
22289 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22290 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22291 else
22292 # Is the header compilable?
22293 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22294 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
22295 cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h. */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22301 $ac_includes_default
22302 #include <arpa/inet.h>
22303 _ACEOF
22304 rm -f conftest.$ac_objext
22305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22306 (eval $ac_compile) 2>conftest.er1
22307 ac_status=$?
22308 grep -v '^ *+' conftest.er1 >conftest.err
22309 rm -f conftest.er1
22310 cat conftest.err >&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } &&
22313 { ac_try='test -z "$ac_c_werror_flag"
22314 || test ! -s conftest.err'
22315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316 (eval $ac_try) 2>&5
22317 ac_status=$?
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; } &&
22320 { ac_try='test -s conftest.$ac_objext'
22321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322 (eval $ac_try) 2>&5
22323 ac_status=$?
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); }; }; then
22326 ac_header_compiler=yes
22327 else
22328 echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22330
22331 ac_header_compiler=no
22332 fi
22333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22335 echo "${ECHO_T}$ac_header_compiler" >&6
22336
22337 # Is the header present?
22338 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22339 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
22340 cat >conftest.$ac_ext <<_ACEOF
22341 /* confdefs.h. */
22342 _ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22346 #include <arpa/inet.h>
22347 _ACEOF
22348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22350 ac_status=$?
22351 grep -v '^ *+' conftest.er1 >conftest.err
22352 rm -f conftest.er1
22353 cat conftest.err >&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } >/dev/null; then
22356 if test -s conftest.err; then
22357 ac_cpp_err=$ac_c_preproc_warn_flag
22358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22359 else
22360 ac_cpp_err=
22361 fi
22362 else
22363 ac_cpp_err=yes
22364 fi
22365 if test -z "$ac_cpp_err"; then
22366 ac_header_preproc=yes
22367 else
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371 ac_header_preproc=no
22372 fi
22373 rm -f conftest.err conftest.$ac_ext
22374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22375 echo "${ECHO_T}$ac_header_preproc" >&6
22376
22377 # So? What about this header?
22378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22379 yes:no: )
22380 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22381 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22382 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22383 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22384 ac_header_preproc=yes
22385 ;;
22386 no:yes:* )
22387 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22388 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22389 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22390 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22391 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22392 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22393 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22394 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22395 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22396 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22397 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22398 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22399 (
22400 cat <<\_ASBOX
22401 ## ------------------------------------------ ##
22402 ## Report this to the AC_PACKAGE_NAME lists. ##
22403 ## ------------------------------------------ ##
22404 _ASBOX
22405 ) |
22406 sed "s/^/$as_me: WARNING: /" >&2
22407 ;;
22408 esac
22409 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22410 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22411 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22412 echo $ECHO_N "(cached) $ECHO_C" >&6
22413 else
22414 ac_cv_header_arpa_inet_h=$ac_header_preproc
22415 fi
22416 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22417 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22418
22419 fi
22420 if test $ac_cv_header_arpa_inet_h = yes; then
22421 :
22422 else
22423 ok_so_far=no
22424 fi
22425
22426
22427 fi
22428 if test $ok_so_far = yes; then
22429
22430 cat >>confdefs.h <<\_ACEOF
22431 #define HAVE_INET_SOCKETS 1
22432 _ACEOF
22433
22434 fi
22435
22436
22437 for ac_header in sys/ioctl.h
22438 do
22439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22441 echo "$as_me:$LINENO: checking for $ac_header" >&5
22442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 fi
22446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22448 else
22449 # Is the header compilable?
22450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22452 cat >conftest.$ac_ext <<_ACEOF
22453 /* confdefs.h. */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458 $ac_includes_default
22459 #include <$ac_header>
22460 _ACEOF
22461 rm -f conftest.$ac_objext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22463 (eval $ac_compile) 2>conftest.er1
22464 ac_status=$?
22465 grep -v '^ *+' conftest.er1 >conftest.err
22466 rm -f conftest.er1
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -z "$ac_c_werror_flag"
22471 || test ! -s conftest.err'
22472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473 (eval $ac_try) 2>&5
22474 ac_status=$?
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); }; } &&
22477 { ac_try='test -s conftest.$ac_objext'
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22480 ac_status=$?
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_header_compiler=yes
22484 else
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22487
22488 ac_header_compiler=no
22489 fi
22490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22492 echo "${ECHO_T}$ac_header_compiler" >&6
22493
22494 # Is the header present?
22495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22497 cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h. */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 #include <$ac_header>
22504 _ACEOF
22505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22507 ac_status=$?
22508 grep -v '^ *+' conftest.er1 >conftest.err
22509 rm -f conftest.er1
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } >/dev/null; then
22513 if test -s conftest.err; then
22514 ac_cpp_err=$ac_c_preproc_warn_flag
22515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22516 else
22517 ac_cpp_err=
22518 fi
22519 else
22520 ac_cpp_err=yes
22521 fi
22522 if test -z "$ac_cpp_err"; then
22523 ac_header_preproc=yes
22524 else
22525 echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22527
22528 ac_header_preproc=no
22529 fi
22530 rm -f conftest.err conftest.$ac_ext
22531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22532 echo "${ECHO_T}$ac_header_preproc" >&6
22533
22534 # So? What about this header?
22535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22536 yes:no: )
22537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22541 ac_header_preproc=yes
22542 ;;
22543 no:yes:* )
22544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22556 (
22557 cat <<\_ASBOX
22558 ## ------------------------------------------ ##
22559 ## Report this to the AC_PACKAGE_NAME lists. ##
22560 ## ------------------------------------------ ##
22561 _ASBOX
22562 ) |
22563 sed "s/^/$as_me: WARNING: /" >&2
22564 ;;
22565 esac
22566 echo "$as_me:$LINENO: checking for $ac_header" >&5
22567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22570 else
22571 eval "$as_ac_Header=\$ac_header_preproc"
22572 fi
22573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22575
22576 fi
22577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22578 cat >>confdefs.h <<_ACEOF
22579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22580 _ACEOF
22581
22582 fi
22583
22584 done
22585
22586
22587 if test -f /usr/lpp/X11/bin/smt.exp; then
22588
22589 cat >>confdefs.h <<\_ACEOF
22590 #define HAVE_AIX_SMT_EXP 1
22591 _ACEOF
22592
22593 fi
22594
22595 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22596 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
22597 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22598 echo "$as_me:$LINENO: result: yes" >&5
22599 echo "${ECHO_T}yes" >&6
22600
22601 cat >>confdefs.h <<\_ACEOF
22602 #define HAVE_DEV_PTMX 1
22603 _ACEOF
22604
22605 else
22606 echo "$as_me:$LINENO: result: no" >&5
22607 echo "${ECHO_T}no" >&6
22608 fi
22609
22610 echo "$as_me:$LINENO: checking for pid_t" >&5
22611 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22612 if test "${ac_cv_type_pid_t+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 else
22615 cat >conftest.$ac_ext <<_ACEOF
22616 /* confdefs.h. */
22617 _ACEOF
22618 cat confdefs.h >>conftest.$ac_ext
22619 cat >>conftest.$ac_ext <<_ACEOF
22620 /* end confdefs.h. */
22621 $ac_includes_default
22622 int
22623 main ()
22624 {
22625 if ((pid_t *) 0)
22626 return 0;
22627 if (sizeof (pid_t))
22628 return 0;
22629 ;
22630 return 0;
22631 }
22632 _ACEOF
22633 rm -f conftest.$ac_objext
22634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22635 (eval $ac_compile) 2>conftest.er1
22636 ac_status=$?
22637 grep -v '^ *+' conftest.er1 >conftest.err
22638 rm -f conftest.er1
22639 cat conftest.err >&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } &&
22642 { ac_try='test -z "$ac_c_werror_flag"
22643 || test ! -s conftest.err'
22644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645 (eval $ac_try) 2>&5
22646 ac_status=$?
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }; } &&
22649 { ac_try='test -s conftest.$ac_objext'
22650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22651 (eval $ac_try) 2>&5
22652 ac_status=$?
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); }; }; then
22655 ac_cv_type_pid_t=yes
22656 else
22657 echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.$ac_ext >&5
22659
22660 ac_cv_type_pid_t=no
22661 fi
22662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22663 fi
22664 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22665 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22666 if test $ac_cv_type_pid_t = yes; then
22667 :
22668 else
22669
22670 cat >>confdefs.h <<_ACEOF
22671 #define pid_t int
22672 _ACEOF
22673
22674 fi
22675
22676
22677
22678 for ac_header in unistd.h vfork.h
22679 do
22680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22682 echo "$as_me:$LINENO: checking for $ac_header" >&5
22683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22685 echo $ECHO_N "(cached) $ECHO_C" >&6
22686 fi
22687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22689 else
22690 # Is the header compilable?
22691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22693 cat >conftest.$ac_ext <<_ACEOF
22694 /* confdefs.h. */
22695 _ACEOF
22696 cat confdefs.h >>conftest.$ac_ext
22697 cat >>conftest.$ac_ext <<_ACEOF
22698 /* end confdefs.h. */
22699 $ac_includes_default
22700 #include <$ac_header>
22701 _ACEOF
22702 rm -f conftest.$ac_objext
22703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22704 (eval $ac_compile) 2>conftest.er1
22705 ac_status=$?
22706 grep -v '^ *+' conftest.er1 >conftest.err
22707 rm -f conftest.er1
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } &&
22711 { ac_try='test -z "$ac_c_werror_flag"
22712 || test ! -s conftest.err'
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22715 ac_status=$?
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; } &&
22718 { ac_try='test -s conftest.$ac_objext'
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; }; then
22724 ac_header_compiler=yes
22725 else
22726 echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22728
22729 ac_header_compiler=no
22730 fi
22731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22733 echo "${ECHO_T}$ac_header_compiler" >&6
22734
22735 # Is the header present?
22736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22738 cat >conftest.$ac_ext <<_ACEOF
22739 /* confdefs.h. */
22740 _ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22744 #include <$ac_header>
22745 _ACEOF
22746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22748 ac_status=$?
22749 grep -v '^ *+' conftest.er1 >conftest.err
22750 rm -f conftest.er1
22751 cat conftest.err >&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } >/dev/null; then
22754 if test -s conftest.err; then
22755 ac_cpp_err=$ac_c_preproc_warn_flag
22756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22757 else
22758 ac_cpp_err=
22759 fi
22760 else
22761 ac_cpp_err=yes
22762 fi
22763 if test -z "$ac_cpp_err"; then
22764 ac_header_preproc=yes
22765 else
22766 echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22768
22769 ac_header_preproc=no
22770 fi
22771 rm -f conftest.err conftest.$ac_ext
22772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22773 echo "${ECHO_T}$ac_header_preproc" >&6
22774
22775 # So? What about this header?
22776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22777 yes:no: )
22778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22782 ac_header_preproc=yes
22783 ;;
22784 no:yes:* )
22785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22797 (
22798 cat <<\_ASBOX
22799 ## ------------------------------------------ ##
22800 ## Report this to the AC_PACKAGE_NAME lists. ##
22801 ## ------------------------------------------ ##
22802 _ASBOX
22803 ) |
22804 sed "s/^/$as_me: WARNING: /" >&2
22805 ;;
22806 esac
22807 echo "$as_me:$LINENO: checking for $ac_header" >&5
22808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22811 else
22812 eval "$as_ac_Header=\$ac_header_preproc"
22813 fi
22814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22816
22817 fi
22818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22819 cat >>confdefs.h <<_ACEOF
22820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22821 _ACEOF
22822
22823 fi
22824
22825 done
22826
22827
22828
22829 for ac_func in fork vfork
22830 do
22831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22832 echo "$as_me:$LINENO: checking for $ac_func" >&5
22833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22834 if eval "test \"\${$as_ac_var+set}\" = set"; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22836 else
22837 cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h. */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h. */
22843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22845 #define $ac_func innocuous_$ac_func
22846
22847 /* System header to define __stub macros and hopefully few prototypes,
22848 which can conflict with char $ac_func (); below.
22849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22850 <limits.h> exists even on freestanding compilers. */
22851
22852 #ifdef __STDC__
22853 # include <limits.h>
22854 #else
22855 # include <assert.h>
22856 #endif
22857
22858 #undef $ac_func
22859
22860 /* Override any gcc2 internal prototype to avoid an error. */
22861 #ifdef __cplusplus
22862 extern "C"
22863 {
22864 #endif
22865 /* We use char because int might match the return type of a gcc2
22866 builtin and then its argument prototype would still apply. */
22867 char $ac_func ();
22868 /* The GNU C library defines this for functions which it implements
22869 to always fail with ENOSYS. Some functions are actually named
22870 something starting with __ and the normal name is an alias. */
22871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22872 choke me
22873 #else
22874 char (*f) () = $ac_func;
22875 #endif
22876 #ifdef __cplusplus
22877 }
22878 #endif
22879
22880 int
22881 main ()
22882 {
22883 return f != $ac_func;
22884 ;
22885 return 0;
22886 }
22887 _ACEOF
22888 rm -f conftest.$ac_objext conftest$ac_exeext
22889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22890 (eval $ac_link) 2>conftest.er1
22891 ac_status=$?
22892 grep -v '^ *+' conftest.er1 >conftest.err
22893 rm -f conftest.er1
22894 cat conftest.err >&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } &&
22897 { ac_try='test -z "$ac_c_werror_flag"
22898 || test ! -s conftest.err'
22899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 (eval $ac_try) 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }; } &&
22904 { ac_try='test -s conftest$ac_exeext'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 eval "$as_ac_var=yes"
22911 else
22912 echo "$as_me: failed program was:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22914
22915 eval "$as_ac_var=no"
22916 fi
22917 rm -f conftest.err conftest.$ac_objext \
22918 conftest$ac_exeext conftest.$ac_ext
22919 fi
22920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22922 if test `eval echo '${'$as_ac_var'}'` = yes; then
22923 cat >>confdefs.h <<_ACEOF
22924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22925 _ACEOF
22926
22927 fi
22928 done
22929
22930 if test "x$ac_cv_func_fork" = xyes; then
22931 echo "$as_me:$LINENO: checking for working fork" >&5
22932 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22933 if test "${ac_cv_func_fork_works+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22935 else
22936 if test "$cross_compiling" = yes; then
22937 ac_cv_func_fork_works=cross
22938 else
22939 cat >conftest.$ac_ext <<_ACEOF
22940 /* By Ruediger Kuhlmann. */
22941 #include <sys/types.h>
22942 #if HAVE_UNISTD_H
22943 # include <unistd.h>
22944 #endif
22945 /* Some systems only have a dummy stub for fork() */
22946 int main ()
22947 {
22948 if (fork() < 0)
22949 exit (1);
22950 exit (0);
22951 }
22952 _ACEOF
22953 rm -f conftest$ac_exeext
22954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22955 (eval $ac_link) 2>&5
22956 ac_status=$?
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22960 (eval $ac_try) 2>&5
22961 ac_status=$?
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); }; }; then
22964 ac_cv_func_fork_works=yes
22965 else
22966 echo "$as_me: program exited with status $ac_status" >&5
22967 echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22969
22970 ( exit $ac_status )
22971 ac_cv_func_fork_works=no
22972 fi
22973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22974 fi
22975 fi
22976 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22977 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22978
22979 else
22980 ac_cv_func_fork_works=$ac_cv_func_fork
22981 fi
22982 if test "x$ac_cv_func_fork_works" = xcross; then
22983 case $host in
22984 *-*-amigaos* | *-*-msdosdjgpp*)
22985 # Override, as these systems have only a dummy fork() stub
22986 ac_cv_func_fork_works=no
22987 ;;
22988 *)
22989 ac_cv_func_fork_works=yes
22990 ;;
22991 esac
22992 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22993 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22994 fi
22995 ac_cv_func_vfork_works=$ac_cv_func_vfork
22996 if test "x$ac_cv_func_vfork" = xyes; then
22997 echo "$as_me:$LINENO: checking for working vfork" >&5
22998 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22999 if test "${ac_cv_func_vfork_works+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23001 else
23002 if test "$cross_compiling" = yes; then
23003 ac_cv_func_vfork_works=cross
23004 else
23005 cat >conftest.$ac_ext <<_ACEOF
23006 /* confdefs.h. */
23007 _ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h. */
23011 /* Thanks to Paul Eggert for this test. */
23012 #include <stdio.h>
23013 #include <stdlib.h>
23014 #include <sys/types.h>
23015 #include <sys/stat.h>
23016 #include <sys/wait.h>
23017 #if HAVE_UNISTD_H
23018 # include <unistd.h>
23019 #endif
23020 #if HAVE_VFORK_H
23021 # include <vfork.h>
23022 #endif
23023 /* On some sparc systems, changes by the child to local and incoming
23024 argument registers are propagated back to the parent. The compiler
23025 is told about this with #include <vfork.h>, but some compilers
23026 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23027 static variable whose address is put into a register that is
23028 clobbered by the vfork. */
23029 static void
23030 #ifdef __cplusplus
23031 sparc_address_test (int arg)
23032 # else
23033 sparc_address_test (arg) int arg;
23034 #endif
23035 {
23036 static pid_t child;
23037 if (!child) {
23038 child = vfork ();
23039 if (child < 0) {
23040 perror ("vfork");
23041 _exit(2);
23042 }
23043 if (!child) {
23044 arg = getpid();
23045 write(-1, "", 0);
23046 _exit (arg);
23047 }
23048 }
23049 }
23050
23051 int
23052 main ()
23053 {
23054 pid_t parent = getpid ();
23055 pid_t child;
23056
23057 sparc_address_test (0);
23058
23059 child = vfork ();
23060
23061 if (child == 0) {
23062 /* Here is another test for sparc vfork register problems. This
23063 test uses lots of local variables, at least as many local
23064 variables as main has allocated so far including compiler
23065 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23066 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23067 reuse the register of parent for one of the local variables,
23068 since it will think that parent can't possibly be used any more
23069 in this routine. Assigning to the local variable will thus
23070 munge parent in the parent process. */
23071 pid_t
23072 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23073 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23074 /* Convince the compiler that p..p7 are live; otherwise, it might
23075 use the same hardware register for all 8 local variables. */
23076 if (p != p1 || p != p2 || p != p3 || p != p4
23077 || p != p5 || p != p6 || p != p7)
23078 _exit(1);
23079
23080 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23081 from child file descriptors. If the child closes a descriptor
23082 before it execs or exits, this munges the parent's descriptor
23083 as well. Test for this by closing stdout in the child. */
23084 _exit(close(fileno(stdout)) != 0);
23085 } else {
23086 int status;
23087 struct stat st;
23088
23089 while (wait(&status) != child)
23090 ;
23091 exit(
23092 /* Was there some problem with vforking? */
23093 child < 0
23094
23095 /* Did the child fail? (This shouldn't happen.) */
23096 || status
23097
23098 /* Did the vfork/compiler bug occur? */
23099 || parent != getpid()
23100
23101 /* Did the file descriptor bug occur? */
23102 || fstat(fileno(stdout), &st) != 0
23103 );
23104 }
23105 }
23106 _ACEOF
23107 rm -f conftest$ac_exeext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23109 (eval $ac_link) 2>&5
23110 ac_status=$?
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 ac_cv_func_vfork_works=yes
23119 else
23120 echo "$as_me: program exited with status $ac_status" >&5
23121 echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23123
23124 ( exit $ac_status )
23125 ac_cv_func_vfork_works=no
23126 fi
23127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23128 fi
23129 fi
23130 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23131 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23132
23133 fi;
23134 if test "x$ac_cv_func_fork_works" = xcross; then
23135 ac_cv_func_vfork_works=$ac_cv_func_vfork
23136 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23137 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23138 fi
23139
23140 if test "x$ac_cv_func_vfork_works" = xyes; then
23141
23142 cat >>confdefs.h <<\_ACEOF
23143 #define HAVE_WORKING_VFORK 1
23144 _ACEOF
23145
23146 else
23147
23148 cat >>confdefs.h <<\_ACEOF
23149 #define vfork fork
23150 _ACEOF
23151
23152 fi
23153 if test "x$ac_cv_func_fork_works" = xyes; then
23154
23155 cat >>confdefs.h <<\_ACEOF
23156 #define HAVE_WORKING_FORK 1
23157 _ACEOF
23158
23159 fi
23160
23161
23162 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23163 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
23164 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23165 echo $ECHO_N "(cached) $ECHO_C" >&6
23166 else
23167 cat >conftest.$ac_ext <<_ACEOF
23168 /* confdefs.h. */
23169 _ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h. */
23173 #include <langinfo.h>
23174 int
23175 main ()
23176 {
23177 char* cs = nl_langinfo(CODESET);
23178 ;
23179 return 0;
23180 }
23181 _ACEOF
23182 rm -f conftest.$ac_objext conftest$ac_exeext
23183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23184 (eval $ac_link) 2>conftest.er1
23185 ac_status=$?
23186 grep -v '^ *+' conftest.er1 >conftest.err
23187 rm -f conftest.er1
23188 cat conftest.err >&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } &&
23191 { ac_try='test -z "$ac_c_werror_flag"
23192 || test ! -s conftest.err'
23193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23194 (eval $ac_try) 2>&5
23195 ac_status=$?
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); }; } &&
23198 { ac_try='test -s conftest$ac_exeext'
23199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23200 (eval $ac_try) 2>&5
23201 ac_status=$?
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; }; then
23204 emacs_cv_langinfo_codeset=yes
23205 else
23206 echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23208
23209 emacs_cv_langinfo_codeset=no
23210 fi
23211 rm -f conftest.err conftest.$ac_objext \
23212 conftest$ac_exeext conftest.$ac_ext
23213
23214 fi
23215 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23216 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
23217 if test $emacs_cv_langinfo_codeset = yes; then
23218
23219 cat >>confdefs.h <<\_ACEOF
23220 #define HAVE_LANGINFO_CODESET 1
23221 _ACEOF
23222
23223 fi
23224
23225 echo "$as_me:$LINENO: checking for size_t" >&5
23226 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23227 if test "${ac_cv_type_size_t+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23229 else
23230 cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h. */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 $ac_includes_default
23237 int
23238 main ()
23239 {
23240 if ((size_t *) 0)
23241 return 0;
23242 if (sizeof (size_t))
23243 return 0;
23244 ;
23245 return 0;
23246 }
23247 _ACEOF
23248 rm -f conftest.$ac_objext
23249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23250 (eval $ac_compile) 2>conftest.er1
23251 ac_status=$?
23252 grep -v '^ *+' conftest.er1 >conftest.err
23253 rm -f conftest.er1
23254 cat conftest.err >&5
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); } &&
23257 { ac_try='test -z "$ac_c_werror_flag"
23258 || test ! -s conftest.err'
23259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260 (eval $ac_try) 2>&5
23261 ac_status=$?
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); }; } &&
23264 { ac_try='test -s conftest.$ac_objext'
23265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266 (eval $ac_try) 2>&5
23267 ac_status=$?
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; }; then
23270 ac_cv_type_size_t=yes
23271 else
23272 echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23274
23275 ac_cv_type_size_t=no
23276 fi
23277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23278 fi
23279 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23280 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23281 if test $ac_cv_type_size_t = yes; then
23282
23283 cat >>confdefs.h <<_ACEOF
23284 #define HAVE_SIZE_T 1
23285 _ACEOF
23286
23287
23288 fi
23289
23290
23291 echo "$as_me:$LINENO: checking for mbstate_t" >&5
23292 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
23293 if test "${ac_cv_type_mbstate_t+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23296 cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h. */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23302 $ac_includes_default
23303 # include <wchar.h>
23304 int
23305 main ()
23306 {
23307 mbstate_t x; return sizeof x;
23308 ;
23309 return 0;
23310 }
23311 _ACEOF
23312 rm -f conftest.$ac_objext
23313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23314 (eval $ac_compile) 2>conftest.er1
23315 ac_status=$?
23316 grep -v '^ *+' conftest.er1 >conftest.err
23317 rm -f conftest.er1
23318 cat conftest.err >&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); } &&
23321 { ac_try='test -z "$ac_c_werror_flag"
23322 || test ! -s conftest.err'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23325 ac_status=$?
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; } &&
23328 { ac_try='test -s conftest.$ac_objext'
23329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330 (eval $ac_try) 2>&5
23331 ac_status=$?
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; }; then
23334 ac_cv_type_mbstate_t=yes
23335 else
23336 echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23338
23339 ac_cv_type_mbstate_t=no
23340 fi
23341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23342 fi
23343 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23344 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
23345 if test $ac_cv_type_mbstate_t = yes; then
23346
23347 cat >>confdefs.h <<\_ACEOF
23348 #define HAVE_MBSTATE_T 1
23349 _ACEOF
23350
23351 else
23352
23353 cat >>confdefs.h <<\_ACEOF
23354 #define mbstate_t int
23355 _ACEOF
23356
23357 fi
23358
23359 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23360 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
23361 if test "${emacs_cv_c_restrict+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23363 else
23364 cat >conftest.$ac_ext <<_ACEOF
23365 /* confdefs.h. */
23366 _ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 void fred (int *restrict x);
23371 int
23372 main ()
23373 {
23374
23375 ;
23376 return 0;
23377 }
23378 _ACEOF
23379 rm -f conftest.$ac_objext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23381 (eval $ac_compile) 2>conftest.er1
23382 ac_status=$?
23383 grep -v '^ *+' conftest.er1 >conftest.err
23384 rm -f conftest.er1
23385 cat conftest.err >&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } &&
23388 { ac_try='test -z "$ac_c_werror_flag"
23389 || test ! -s conftest.err'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23392 ac_status=$?
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; } &&
23395 { ac_try='test -s conftest.$ac_objext'
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; }; then
23401 emacs_cv_c_restrict=yes
23402 else
23403 echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23405
23406 cat >conftest.$ac_ext <<_ACEOF
23407 /* confdefs.h. */
23408 _ACEOF
23409 cat confdefs.h >>conftest.$ac_ext
23410 cat >>conftest.$ac_ext <<_ACEOF
23411 /* end confdefs.h. */
23412 void fred (int *__restrict x);
23413 int
23414 main ()
23415 {
23416
23417 ;
23418 return 0;
23419 }
23420 _ACEOF
23421 rm -f conftest.$ac_objext
23422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23423 (eval $ac_compile) 2>conftest.er1
23424 ac_status=$?
23425 grep -v '^ *+' conftest.er1 >conftest.err
23426 rm -f conftest.er1
23427 cat conftest.err >&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); } &&
23430 { ac_try='test -z "$ac_c_werror_flag"
23431 || test ! -s conftest.err'
23432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433 (eval $ac_try) 2>&5
23434 ac_status=$?
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; } &&
23437 { ac_try='test -s conftest.$ac_objext'
23438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439 (eval $ac_try) 2>&5
23440 ac_status=$?
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); }; }; then
23443 emacs_cv_c_restrict=__restrict
23444 else
23445 echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23447
23448 emacs_cv_c_restrict=no
23449 fi
23450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23451 fi
23452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23453 fi
23454 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23455 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
23456 case "$emacs_cv_c_restrict" in
23457 yes) emacs_restrict=restrict;;
23458 no) emacs_restrict="";;
23459 *) emacs_restrict="$emacs_cv_c_restrict";;
23460 esac
23461 if test "$emacs_restrict" != __restrict; then
23462
23463 cat >>confdefs.h <<_ACEOF
23464 #define __restrict $emacs_restrict
23465 _ACEOF
23466
23467 fi
23468
23469 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23470 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
23471 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23472 echo $ECHO_N "(cached) $ECHO_C" >&6
23473 else
23474 cat >conftest.$ac_ext <<_ACEOF
23475 /* confdefs.h. */
23476 _ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23480 void fred (int x[__restrict]);
23481 int
23482 main ()
23483 {
23484
23485 ;
23486 return 0;
23487 }
23488 _ACEOF
23489 rm -f conftest.$ac_objext
23490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23491 (eval $ac_compile) 2>conftest.er1
23492 ac_status=$?
23493 grep -v '^ *+' conftest.er1 >conftest.err
23494 rm -f conftest.er1
23495 cat conftest.err >&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } &&
23498 { ac_try='test -z "$ac_c_werror_flag"
23499 || test ! -s conftest.err'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; } &&
23505 { ac_try='test -s conftest.$ac_objext'
23506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507 (eval $ac_try) 2>&5
23508 ac_status=$?
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); }; }; then
23511 emacs_cv_c_restrict_arr=yes
23512 else
23513 echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23515
23516 emacs_cv_c_restrict_arr=no
23517 fi
23518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23519 fi
23520 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23521 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
23522 if test "$emacs_cv_c_restrict_arr" = yes; then
23523
23524 cat >>confdefs.h <<\_ACEOF
23525 #define __restrict_arr __restrict
23526 _ACEOF
23527
23528 fi
23529
23530
23531
23532 # Set up the CFLAGS for real compilation, so we can substitute it.
23533 CFLAGS="$REAL_CFLAGS"
23534 CPPFLAGS="$REAL_CPPFLAGS"
23535
23536 #### Find out which version of Emacs this is.
23537 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23538 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23539 if test x"${version}" = x; then
23540 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23541 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23542 { (exit 1); exit 1; }; }
23543 fi
23544
23545 ### Specify what sort of things we'll be editing into Makefile and config.h.
23546 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582 cat >>confdefs.h <<_ACEOF
23583 #define EMACS_CONFIGURATION "${canonical}"
23584 _ACEOF
23585
23586
23587 cat >>confdefs.h <<_ACEOF
23588 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23589 _ACEOF
23590
23591
23592 cat >>confdefs.h <<_ACEOF
23593 #define config_machfile "${machfile}"
23594 _ACEOF
23595
23596
23597 cat >>confdefs.h <<_ACEOF
23598 #define config_opsysfile "${opsysfile}"
23599 _ACEOF
23600
23601
23602 cat >>confdefs.h <<_ACEOF
23603 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23604 _ACEOF
23605
23606
23607 cat >>confdefs.h <<_ACEOF
23608 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23609 _ACEOF
23610
23611
23612 cat >>confdefs.h <<_ACEOF
23613 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23614 _ACEOF
23615
23616
23617 cat >>confdefs.h <<_ACEOF
23618 #define UNEXEC_SRC ${UNEXEC_SRC}
23619 _ACEOF
23620
23621
23622 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23623
23624 cat >>confdefs.h <<\_ACEOF
23625 #define HAVE_X_WINDOWS 1
23626 _ACEOF
23627
23628 fi
23629 if test "${USE_X_TOOLKIT}" != "none" ; then
23630
23631 cat >>confdefs.h <<\_ACEOF
23632 #define USE_X_TOOLKIT 1
23633 _ACEOF
23634
23635 fi
23636 if test "${HAVE_X11}" = "yes" ; then
23637
23638 cat >>confdefs.h <<\_ACEOF
23639 #define HAVE_X11 1
23640 _ACEOF
23641
23642 fi
23643 if test "${HAVE_XFREE386}" = "yes" ; then
23644
23645 cat >>confdefs.h <<\_ACEOF
23646 #define HAVE_XFREE386 1
23647 _ACEOF
23648
23649 fi
23650 if test "${HAVE_MENUS}" = "yes" ; then
23651
23652 cat >>confdefs.h <<\_ACEOF
23653 #define HAVE_MENUS 1
23654 _ACEOF
23655
23656 fi
23657 if test "${GNU_MALLOC}" = "yes" ; then
23658
23659 cat >>confdefs.h <<\_ACEOF
23660 #define GNU_MALLOC 1
23661 _ACEOF
23662
23663 fi
23664 if test "${REL_ALLOC}" = "yes" ; then
23665
23666 cat >>confdefs.h <<\_ACEOF
23667 #define REL_ALLOC 1
23668 _ACEOF
23669
23670 fi
23671
23672
23673
23674
23675
23676 #### Report on what we decided to do.
23677 #### Report GTK as a toolkit, even if it doesn't use Xt.
23678 #### It makes printing result more understandable as using GTK sets
23679 #### toolkit_scroll_bars to yes by default.
23680 if test "${HAVE_GTK}" = "yes"; then
23681 USE_X_TOOLKIT=GTK
23682 fi
23683
23684 echo "
23685 Configured for \`${canonical}'.
23686
23687 Where should the build process find the source code? ${srcdir}
23688 What operating system and machine description files should Emacs use?
23689 \`${opsysfile}' and \`${machfile}'
23690 What compiler should emacs be built with? ${CC} ${CFLAGS}
23691 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23692 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23693 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23694 What window system should Emacs use? ${window_system}
23695 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23696
23697 if test -n "${x_includes}"; then
23698 echo " Where do we find X Windows header files? ${x_includes}"
23699 else
23700 echo " Where do we find X Windows header files? Standard dirs"
23701 fi
23702 if test -n "${x_libraries}"; then
23703 echo " Where do we find X Windows libraries? ${x_libraries}"
23704 else
23705 echo " Where do we find X Windows libraries? Standard dirs"
23706 fi
23707
23708 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23709 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23710 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23711 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23712 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23713 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23714 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23715 echo
23716
23717 if test $USE_XASSERTS = yes; then
23718 echo " Compiling with asserts turned on."
23719 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23720 echo
23721 fi
23722
23723
23724
23725 # Remove any trailing slashes in these variables.
23726 test "${prefix}" != NONE &&
23727 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23728 test "${exec_prefix}" != NONE &&
23729 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23730
23731 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23732 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23733 ## from Makefile.c can correctly provide the arg `-traditional' to the
23734 ## C preprocessor.
23735
23736 cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h. */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23742 yes..yes
23743 _ACEOF
23744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23745 $EGREP "yes..yes" >/dev/null 2>&1; then
23746 CPP_NEED_TRADITIONAL=no
23747 else
23748 CPP_NEED_TRADITIONAL=yes
23749 fi
23750 rm -f conftest*
23751
23752
23753 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"
23754 ac_config_commands="$ac_config_commands default"
23755 cat >confcache <<\_ACEOF
23756 # This file is a shell script that caches the results of configure
23757 # tests run on this system so they can be shared between configure
23758 # scripts and configure runs, see configure's option --config-cache.
23759 # It is not useful on other systems. If it contains results you don't
23760 # want to keep, you may remove or edit it.
23761 #
23762 # config.status only pays attention to the cache file if you give it
23763 # the --recheck option to rerun configure.
23764 #
23765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23767 # following values.
23768
23769 _ACEOF
23770
23771 # The following way of writing the cache mishandles newlines in values,
23772 # but we know of no workaround that is simple, portable, and efficient.
23773 # So, don't put newlines in cache variables' values.
23774 # Ultrix sh set writes to stderr and can't be redirected directly,
23775 # and sets the high bit in the cache file unless we assign to the vars.
23776 {
23777 (set) 2>&1 |
23778 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23779 *ac_space=\ *)
23780 # `set' does not quote correctly, so add quotes (double-quote
23781 # substitution turns \\\\ into \\, and sed turns \\ into \).
23782 sed -n \
23783 "s/'/'\\\\''/g;
23784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23785 ;;
23786 *)
23787 # `set' quotes correctly as required by POSIX, so do not add quotes.
23788 sed -n \
23789 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23790 ;;
23791 esac;
23792 } |
23793 sed '
23794 t clear
23795 : clear
23796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23797 t end
23798 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23799 : end' >>confcache
23800 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23801 if test -w $cache_file; then
23802 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23803 cat confcache >$cache_file
23804 else
23805 echo "not updating unwritable cache $cache_file"
23806 fi
23807 fi
23808 rm -f confcache
23809
23810 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23811 # Let make expand exec_prefix.
23812 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23813
23814 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23815 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23816 # trailing colons and then remove the whole line if VPATH becomes empty
23817 # (actually we leave an empty line to preserve line numbers).
23818 if test "x$srcdir" = x.; then
23819 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23820 s/:*\$(srcdir):*/:/;
23821 s/:*\${srcdir}:*/:/;
23822 s/:*@srcdir@:*/:/;
23823 s/^\([^=]*=[ ]*\):*/\1/;
23824 s/:*$//;
23825 s/^[^=]*=[ ]*$//;
23826 }'
23827 fi
23828
23829 DEFS=-DHAVE_CONFIG_H
23830
23831 ac_libobjs=
23832 ac_ltlibobjs=
23833 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23834 # 1. Remove the extension, and $U if already installed.
23835 ac_i=`echo "$ac_i" |
23836 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23837 # 2. Add them.
23838 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23839 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23840 done
23841 LIBOBJS=$ac_libobjs
23842
23843 LTLIBOBJS=$ac_ltlibobjs
23844
23845
23846
23847 : ${CONFIG_STATUS=./config.status}
23848 ac_clean_files_save=$ac_clean_files
23849 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23850 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23851 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23852 cat >$CONFIG_STATUS <<_ACEOF
23853 #! $SHELL
23854 # Generated by $as_me.
23855 # Run this file to recreate the current configuration.
23856 # Compiler output produced by configure, useful for debugging
23857 # configure, is in config.log if it exists.
23858
23859 debug=false
23860 ac_cs_recheck=false
23861 ac_cs_silent=false
23862 SHELL=\${CONFIG_SHELL-$SHELL}
23863 _ACEOF
23864
23865 cat >>$CONFIG_STATUS <<\_ACEOF
23866 ## --------------------- ##
23867 ## M4sh Initialization. ##
23868 ## --------------------- ##
23869
23870 # Be Bourne compatible
23871 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23872 emulate sh
23873 NULLCMD=:
23874 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23875 # is contrary to our usage. Disable this feature.
23876 alias -g '${1+"$@"}'='"$@"'
23877 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23878 set -o posix
23879 fi
23880 DUALCASE=1; export DUALCASE # for MKS sh
23881
23882 # Support unset when possible.
23883 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23884 as_unset=unset
23885 else
23886 as_unset=false
23887 fi
23888
23889
23890 # Work around bugs in pre-3.0 UWIN ksh.
23891 $as_unset ENV MAIL MAILPATH
23892 PS1='$ '
23893 PS2='> '
23894 PS4='+ '
23895
23896 # NLS nuisances.
23897 for as_var in \
23898 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23899 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23900 LC_TELEPHONE LC_TIME
23901 do
23902 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23903 eval $as_var=C; export $as_var
23904 else
23905 $as_unset $as_var
23906 fi
23907 done
23908
23909 # Required to use basename.
23910 if expr a : '\(a\)' >/dev/null 2>&1; then
23911 as_expr=expr
23912 else
23913 as_expr=false
23914 fi
23915
23916 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23917 as_basename=basename
23918 else
23919 as_basename=false
23920 fi
23921
23922
23923 # Name of the executable.
23924 as_me=`$as_basename "$0" ||
23925 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23926 X"$0" : 'X\(//\)$' \| \
23927 X"$0" : 'X\(/\)$' \| \
23928 . : '\(.\)' 2>/dev/null ||
23929 echo X/"$0" |
23930 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23931 /^X\/\(\/\/\)$/{ s//\1/; q; }
23932 /^X\/\(\/\).*/{ s//\1/; q; }
23933 s/.*/./; q'`
23934
23935
23936 # PATH needs CR, and LINENO needs CR and PATH.
23937 # Avoid depending upon Character Ranges.
23938 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23939 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23940 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23941 as_cr_digits='0123456789'
23942 as_cr_alnum=$as_cr_Letters$as_cr_digits
23943
23944 # The user is always right.
23945 if test "${PATH_SEPARATOR+set}" != set; then
23946 echo "#! /bin/sh" >conf$$.sh
23947 echo "exit 0" >>conf$$.sh
23948 chmod +x conf$$.sh
23949 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23950 PATH_SEPARATOR=';'
23951 else
23952 PATH_SEPARATOR=:
23953 fi
23954 rm -f conf$$.sh
23955 fi
23956
23957
23958 as_lineno_1=$LINENO
23959 as_lineno_2=$LINENO
23960 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23961 test "x$as_lineno_1" != "x$as_lineno_2" &&
23962 test "x$as_lineno_3" = "x$as_lineno_2" || {
23963 # Find who we are. Look in the path if we contain no path at all
23964 # relative or not.
23965 case $0 in
23966 *[\\/]* ) as_myself=$0 ;;
23967 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23968 for as_dir in $PATH
23969 do
23970 IFS=$as_save_IFS
23971 test -z "$as_dir" && as_dir=.
23972 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23973 done
23974
23975 ;;
23976 esac
23977 # We did not find ourselves, most probably we were run as `sh COMMAND'
23978 # in which case we are not to be found in the path.
23979 if test "x$as_myself" = x; then
23980 as_myself=$0
23981 fi
23982 if test ! -f "$as_myself"; then
23983 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23984 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23985 { (exit 1); exit 1; }; }
23986 fi
23987 case $CONFIG_SHELL in
23988 '')
23989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23990 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23991 do
23992 IFS=$as_save_IFS
23993 test -z "$as_dir" && as_dir=.
23994 for as_base in sh bash ksh sh5; do
23995 case $as_dir in
23996 /*)
23997 if ("$as_dir/$as_base" -c '
23998 as_lineno_1=$LINENO
23999 as_lineno_2=$LINENO
24000 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24001 test "x$as_lineno_1" != "x$as_lineno_2" &&
24002 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24003 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24004 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24005 CONFIG_SHELL=$as_dir/$as_base
24006 export CONFIG_SHELL
24007 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24008 fi;;
24009 esac
24010 done
24011 done
24012 ;;
24013 esac
24014
24015 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24016 # uniformly replaced by the line number. The first 'sed' inserts a
24017 # line-number line before each line; the second 'sed' does the real
24018 # work. The second script uses 'N' to pair each line-number line
24019 # with the numbered line, and appends trailing '-' during
24020 # substitution so that $LINENO is not a special case at line end.
24021 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24022 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24023 sed '=' <$as_myself |
24024 sed '
24025 N
24026 s,$,-,
24027 : loop
24028 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24029 t loop
24030 s,-$,,
24031 s,^['$as_cr_digits']*\n,,
24032 ' >$as_me.lineno &&
24033 chmod +x $as_me.lineno ||
24034 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24035 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24036 { (exit 1); exit 1; }; }
24037
24038 # Don't try to exec as it changes $[0], causing all sort of problems
24039 # (the dirname of $[0] is not the place where we might find the
24040 # original and so on. Autoconf is especially sensible to this).
24041 . ./$as_me.lineno
24042 # Exit status is that of the last command.
24043 exit
24044 }
24045
24046
24047 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24048 *c*,-n*) ECHO_N= ECHO_C='
24049 ' ECHO_T=' ' ;;
24050 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24051 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24052 esac
24053
24054 if expr a : '\(a\)' >/dev/null 2>&1; then
24055 as_expr=expr
24056 else
24057 as_expr=false
24058 fi
24059
24060 rm -f conf$$ conf$$.exe conf$$.file
24061 echo >conf$$.file
24062 if ln -s conf$$.file conf$$ 2>/dev/null; then
24063 # We could just check for DJGPP; but this test a) works b) is more generic
24064 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24065 if test -f conf$$.exe; then
24066 # Don't use ln at all; we don't have any links
24067 as_ln_s='cp -p'
24068 else
24069 as_ln_s='ln -s'
24070 fi
24071 elif ln conf$$.file conf$$ 2>/dev/null; then
24072 as_ln_s=ln
24073 else
24074 as_ln_s='cp -p'
24075 fi
24076 rm -f conf$$ conf$$.exe conf$$.file
24077
24078 if mkdir -p . 2>/dev/null; then
24079 as_mkdir_p=:
24080 else
24081 test -d ./-p && rmdir ./-p
24082 as_mkdir_p=false
24083 fi
24084
24085 as_executable_p="test -f"
24086
24087 # Sed expression to map a string onto a valid CPP name.
24088 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24089
24090 # Sed expression to map a string onto a valid variable name.
24091 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24092
24093
24094 # IFS
24095 # We need space, tab and new line, in precisely that order.
24096 as_nl='
24097 '
24098 IFS=" $as_nl"
24099
24100 # CDPATH.
24101 $as_unset CDPATH
24102
24103 exec 6>&1
24104
24105 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24106 # report actual input values of CONFIG_FILES etc. instead of their
24107 # values after options handling. Logging --version etc. is OK.
24108 exec 5>>config.log
24109 {
24110 echo
24111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24112 ## Running $as_me. ##
24113 _ASBOX
24114 } >&5
24115 cat >&5 <<_CSEOF
24116
24117 This file was extended by $as_me, which was
24118 generated by GNU Autoconf 2.59. Invocation command line was
24119
24120 CONFIG_FILES = $CONFIG_FILES
24121 CONFIG_HEADERS = $CONFIG_HEADERS
24122 CONFIG_LINKS = $CONFIG_LINKS
24123 CONFIG_COMMANDS = $CONFIG_COMMANDS
24124 $ $0 $@
24125
24126 _CSEOF
24127 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24128 echo >&5
24129 _ACEOF
24130
24131 # Files that config.status was made for.
24132 if test -n "$ac_config_files"; then
24133 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24134 fi
24135
24136 if test -n "$ac_config_headers"; then
24137 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24138 fi
24139
24140 if test -n "$ac_config_links"; then
24141 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24142 fi
24143
24144 if test -n "$ac_config_commands"; then
24145 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24146 fi
24147
24148 cat >>$CONFIG_STATUS <<\_ACEOF
24149
24150 ac_cs_usage="\
24151 \`$as_me' instantiates files from templates according to the
24152 current configuration.
24153
24154 Usage: $0 [OPTIONS] [FILE]...
24155
24156 -h, --help print this help, then exit
24157 -V, --version print version number, then exit
24158 -q, --quiet do not print progress messages
24159 -d, --debug don't remove temporary files
24160 --recheck update $as_me by reconfiguring in the same conditions
24161 --file=FILE[:TEMPLATE]
24162 instantiate the configuration file FILE
24163 --header=FILE[:TEMPLATE]
24164 instantiate the configuration header FILE
24165
24166 Configuration files:
24167 $config_files
24168
24169 Configuration headers:
24170 $config_headers
24171
24172 Configuration commands:
24173 $config_commands
24174
24175 Report bugs to <bug-autoconf@gnu.org>."
24176 _ACEOF
24177
24178 cat >>$CONFIG_STATUS <<_ACEOF
24179 ac_cs_version="\\
24180 config.status
24181 configured by $0, generated by GNU Autoconf 2.59,
24182 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24183
24184 Copyright (C) 2003 Free Software Foundation, Inc.
24185 This config.status script is free software; the Free Software Foundation
24186 gives unlimited permission to copy, distribute and modify it."
24187 srcdir=$srcdir
24188 INSTALL="$INSTALL"
24189 _ACEOF
24190
24191 cat >>$CONFIG_STATUS <<\_ACEOF
24192 # If no file are specified by the user, then we need to provide default
24193 # value. By we need to know if files were specified by the user.
24194 ac_need_defaults=:
24195 while test $# != 0
24196 do
24197 case $1 in
24198 --*=*)
24199 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24200 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24201 ac_shift=:
24202 ;;
24203 -*)
24204 ac_option=$1
24205 ac_optarg=$2
24206 ac_shift=shift
24207 ;;
24208 *) # This is not an option, so the user has probably given explicit
24209 # arguments.
24210 ac_option=$1
24211 ac_need_defaults=false;;
24212 esac
24213
24214 case $ac_option in
24215 # Handling of the options.
24216 _ACEOF
24217 cat >>$CONFIG_STATUS <<\_ACEOF
24218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24219 ac_cs_recheck=: ;;
24220 --version | --vers* | -V )
24221 echo "$ac_cs_version"; exit 0 ;;
24222 --he | --h)
24223 # Conflict between --help and --header
24224 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24225 Try \`$0 --help' for more information." >&5
24226 echo "$as_me: error: ambiguous option: $1
24227 Try \`$0 --help' for more information." >&2;}
24228 { (exit 1); exit 1; }; };;
24229 --help | --hel | -h )
24230 echo "$ac_cs_usage"; exit 0 ;;
24231 --debug | --d* | -d )
24232 debug=: ;;
24233 --file | --fil | --fi | --f )
24234 $ac_shift
24235 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24236 ac_need_defaults=false;;
24237 --header | --heade | --head | --hea )
24238 $ac_shift
24239 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24240 ac_need_defaults=false;;
24241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24242 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24243 ac_cs_silent=: ;;
24244
24245 # This is an error.
24246 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24247 Try \`$0 --help' for more information." >&5
24248 echo "$as_me: error: unrecognized option: $1
24249 Try \`$0 --help' for more information." >&2;}
24250 { (exit 1); exit 1; }; } ;;
24251
24252 *) ac_config_targets="$ac_config_targets $1" ;;
24253
24254 esac
24255 shift
24256 done
24257
24258 ac_configure_extra_args=
24259
24260 if $ac_cs_silent; then
24261 exec 6>/dev/null
24262 ac_configure_extra_args="$ac_configure_extra_args --silent"
24263 fi
24264
24265 _ACEOF
24266 cat >>$CONFIG_STATUS <<_ACEOF
24267 if \$ac_cs_recheck; then
24268 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24269 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24270 fi
24271
24272 _ACEOF
24273
24274 cat >>$CONFIG_STATUS <<_ACEOF
24275 #
24276 # INIT-COMMANDS section.
24277 #
24278
24279 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24280
24281 _ACEOF
24282
24283
24284
24285 cat >>$CONFIG_STATUS <<\_ACEOF
24286 for ac_config_target in $ac_config_targets
24287 do
24288 case "$ac_config_target" in
24289 # Handling of arguments.
24290 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24291 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24292 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24293 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24294 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24295 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24296 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24297 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24298 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24299 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24300 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24301 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24302 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24303 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24304 { (exit 1); exit 1; }; };;
24305 esac
24306 done
24307
24308 # If the user did not use the arguments to specify the items to instantiate,
24309 # then the envvar interface is used. Set only those that are not.
24310 # We use the long form for the default assignment because of an extremely
24311 # bizarre bug on SunOS 4.1.3.
24312 if $ac_need_defaults; then
24313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24314 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24316 fi
24317
24318 # Have a temporary directory for convenience. Make it in the build tree
24319 # simply because there is no reason to put it here, and in addition,
24320 # creating and moving files from /tmp can sometimes cause problems.
24321 # Create a temporary directory, and hook for its removal unless debugging.
24322 $debug ||
24323 {
24324 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24325 trap '{ (exit 1); exit 1; }' 1 2 13 15
24326 }
24327
24328 # Create a (secure) tmp directory for tmp files.
24329
24330 {
24331 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24332 test -n "$tmp" && test -d "$tmp"
24333 } ||
24334 {
24335 tmp=./confstat$$-$RANDOM
24336 (umask 077 && mkdir $tmp)
24337 } ||
24338 {
24339 echo "$me: cannot create a temporary directory in ." >&2
24340 { (exit 1); exit 1; }
24341 }
24342
24343 _ACEOF
24344
24345 cat >>$CONFIG_STATUS <<_ACEOF
24346
24347 #
24348 # CONFIG_FILES section.
24349 #
24350
24351 # No need to generate the scripts if there are no CONFIG_FILES.
24352 # This happens for instance when ./config.status config.h
24353 if test -n "\$CONFIG_FILES"; then
24354 # Protect against being on the right side of a sed subst in config.status.
24355 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24356 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24357 s,@SHELL@,$SHELL,;t t
24358 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24359 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24360 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24361 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24362 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24363 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24364 s,@exec_prefix@,$exec_prefix,;t t
24365 s,@prefix@,$prefix,;t t
24366 s,@program_transform_name@,$program_transform_name,;t t
24367 s,@bindir@,$bindir,;t t
24368 s,@sbindir@,$sbindir,;t t
24369 s,@libexecdir@,$libexecdir,;t t
24370 s,@datadir@,$datadir,;t t
24371 s,@sysconfdir@,$sysconfdir,;t t
24372 s,@sharedstatedir@,$sharedstatedir,;t t
24373 s,@localstatedir@,$localstatedir,;t t
24374 s,@libdir@,$libdir,;t t
24375 s,@includedir@,$includedir,;t t
24376 s,@oldincludedir@,$oldincludedir,;t t
24377 s,@infodir@,$infodir,;t t
24378 s,@mandir@,$mandir,;t t
24379 s,@build_alias@,$build_alias,;t t
24380 s,@host_alias@,$host_alias,;t t
24381 s,@target_alias@,$target_alias,;t t
24382 s,@DEFS@,$DEFS,;t t
24383 s,@ECHO_C@,$ECHO_C,;t t
24384 s,@ECHO_N@,$ECHO_N,;t t
24385 s,@ECHO_T@,$ECHO_T,;t t
24386 s,@LIBS@,$LIBS,;t t
24387 s,@MAINT@,$MAINT,;t t
24388 s,@build@,$build,;t t
24389 s,@build_cpu@,$build_cpu,;t t
24390 s,@build_vendor@,$build_vendor,;t t
24391 s,@build_os@,$build_os,;t t
24392 s,@host@,$host,;t t
24393 s,@host_cpu@,$host_cpu,;t t
24394 s,@host_vendor@,$host_vendor,;t t
24395 s,@host_os@,$host_os,;t t
24396 s,@CC@,$CC,;t t
24397 s,@CFLAGS@,$CFLAGS,;t t
24398 s,@LDFLAGS@,$LDFLAGS,;t t
24399 s,@CPPFLAGS@,$CPPFLAGS,;t t
24400 s,@ac_ct_CC@,$ac_ct_CC,;t t
24401 s,@EXEEXT@,$EXEEXT,;t t
24402 s,@OBJEXT@,$OBJEXT,;t t
24403 s,@CPP@,$CPP,;t t
24404 s,@EGREP@,$EGREP,;t t
24405 s,@LN_S@,$LN_S,;t t
24406 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24407 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24408 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24409 s,@RANLIB@,$RANLIB,;t t
24410 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24411 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
24412 s,@GZIP_PROG@,$GZIP_PROG,;t t
24413 s,@LIBSOUND@,$LIBSOUND,;t t
24414 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24415 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
24416 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
24417 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
24418 s,@SET_MAKE@,$SET_MAKE,;t t
24419 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
24420 s,@GTK_LIBS@,$GTK_LIBS,;t t
24421 s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
24422 s,@XFT_LIBS@,$XFT_LIBS,;t t
24423 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
24424 s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
24425 s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
24426 s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
24427 s,@HAVE_LIBOTF@,$HAVE_LIBOTF,;t t
24428 s,@LIBOTF_CFLAGS@,$LIBOTF_CFLAGS,;t t
24429 s,@LIBOTF_LIBS@,$LIBOTF_LIBS,;t t
24430 s,@ALLOCA@,$ALLOCA,;t t
24431 s,@liblockfile@,$liblockfile,;t t
24432 s,@LIBOBJS@,$LIBOBJS,;t t
24433 s,@NEED_SETGID@,$NEED_SETGID,;t t
24434 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
24435 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
24436 s,@GETOPT_H@,$GETOPT_H,;t t
24437 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
24438 s,@version@,$version,;t t
24439 s,@configuration@,$configuration,;t t
24440 s,@canonical@,$canonical,;t t
24441 s,@srcdir@,$srcdir,;t t
24442 s,@lispdir@,$lispdir,;t t
24443 s,@locallisppath@,$locallisppath,;t t
24444 s,@lisppath@,$lisppath,;t t
24445 s,@x_default_search_path@,$x_default_search_path,;t t
24446 s,@etcdir@,$etcdir,;t t
24447 s,@archlibdir@,$archlibdir,;t t
24448 s,@docdir@,$docdir,;t t
24449 s,@bitmapdir@,$bitmapdir,;t t
24450 s,@gamedir@,$gamedir,;t t
24451 s,@gameuser@,$gameuser,;t t
24452 s,@c_switch_system@,$c_switch_system,;t t
24453 s,@c_switch_machine@,$c_switch_machine,;t t
24454 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
24455 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
24456 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
24457 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
24458 s,@machfile@,$machfile,;t t
24459 s,@opsysfile@,$opsysfile,;t t
24460 s,@carbon_appdir@,$carbon_appdir,;t t
24461 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24462 CEOF
24463
24464 _ACEOF
24465
24466 cat >>$CONFIG_STATUS <<\_ACEOF
24467 # Split the substitutions into bite-sized pieces for seds with
24468 # small command number limits, like on Digital OSF/1 and HP-UX.
24469 ac_max_sed_lines=48
24470 ac_sed_frag=1 # Number of current file.
24471 ac_beg=1 # First line for current file.
24472 ac_end=$ac_max_sed_lines # Line after last line for current file.
24473 ac_more_lines=:
24474 ac_sed_cmds=
24475 while $ac_more_lines; do
24476 if test $ac_beg -gt 1; then
24477 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24478 else
24479 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24480 fi
24481 if test ! -s $tmp/subs.frag; then
24482 ac_more_lines=false
24483 else
24484 # The purpose of the label and of the branching condition is to
24485 # speed up the sed processing (if there are no `@' at all, there
24486 # is no need to browse any of the substitutions).
24487 # These are the two extra sed commands mentioned above.
24488 (echo ':t
24489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24490 if test -z "$ac_sed_cmds"; then
24491 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24492 else
24493 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24494 fi
24495 ac_sed_frag=`expr $ac_sed_frag + 1`
24496 ac_beg=$ac_end
24497 ac_end=`expr $ac_end + $ac_max_sed_lines`
24498 fi
24499 done
24500 if test -z "$ac_sed_cmds"; then
24501 ac_sed_cmds=cat
24502 fi
24503 fi # test -n "$CONFIG_FILES"
24504
24505 _ACEOF
24506 cat >>$CONFIG_STATUS <<\_ACEOF
24507 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24508 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24509 case $ac_file in
24510 - | *:- | *:-:* ) # input from stdin
24511 cat >$tmp/stdin
24512 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24513 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24514 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24516 * ) ac_file_in=$ac_file.in ;;
24517 esac
24518
24519 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24520 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24522 X"$ac_file" : 'X\(//\)[^/]' \| \
24523 X"$ac_file" : 'X\(//\)$' \| \
24524 X"$ac_file" : 'X\(/\)' \| \
24525 . : '\(.\)' 2>/dev/null ||
24526 echo X"$ac_file" |
24527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24529 /^X\(\/\/\)$/{ s//\1/; q; }
24530 /^X\(\/\).*/{ s//\1/; q; }
24531 s/.*/./; q'`
24532 { if $as_mkdir_p; then
24533 mkdir -p "$ac_dir"
24534 else
24535 as_dir="$ac_dir"
24536 as_dirs=
24537 while test ! -d "$as_dir"; do
24538 as_dirs="$as_dir $as_dirs"
24539 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24540 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24541 X"$as_dir" : 'X\(//\)[^/]' \| \
24542 X"$as_dir" : 'X\(//\)$' \| \
24543 X"$as_dir" : 'X\(/\)' \| \
24544 . : '\(.\)' 2>/dev/null ||
24545 echo X"$as_dir" |
24546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24547 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24548 /^X\(\/\/\)$/{ s//\1/; q; }
24549 /^X\(\/\).*/{ s//\1/; q; }
24550 s/.*/./; q'`
24551 done
24552 test ! -n "$as_dirs" || mkdir $as_dirs
24553 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24554 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24555 { (exit 1); exit 1; }; }; }
24556
24557 ac_builddir=.
24558
24559 if test "$ac_dir" != .; then
24560 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24561 # A "../" for each directory in $ac_dir_suffix.
24562 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24563 else
24564 ac_dir_suffix= ac_top_builddir=
24565 fi
24566
24567 case $srcdir in
24568 .) # No --srcdir option. We are building in place.
24569 ac_srcdir=.
24570 if test -z "$ac_top_builddir"; then
24571 ac_top_srcdir=.
24572 else
24573 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24574 fi ;;
24575 [\\/]* | ?:[\\/]* ) # Absolute path.
24576 ac_srcdir=$srcdir$ac_dir_suffix;
24577 ac_top_srcdir=$srcdir ;;
24578 *) # Relative path.
24579 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24580 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24581 esac
24582
24583 # Do not use `cd foo && pwd` to compute absolute paths, because
24584 # the directories may not exist.
24585 case `pwd` in
24586 .) ac_abs_builddir="$ac_dir";;
24587 *)
24588 case "$ac_dir" in
24589 .) ac_abs_builddir=`pwd`;;
24590 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24591 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24592 esac;;
24593 esac
24594 case $ac_abs_builddir in
24595 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24596 *)
24597 case ${ac_top_builddir}. in
24598 .) ac_abs_top_builddir=$ac_abs_builddir;;
24599 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24600 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24601 esac;;
24602 esac
24603 case $ac_abs_builddir in
24604 .) ac_abs_srcdir=$ac_srcdir;;
24605 *)
24606 case $ac_srcdir in
24607 .) ac_abs_srcdir=$ac_abs_builddir;;
24608 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24609 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24610 esac;;
24611 esac
24612 case $ac_abs_builddir in
24613 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24614 *)
24615 case $ac_top_srcdir in
24616 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24617 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24618 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24619 esac;;
24620 esac
24621
24622
24623 case $INSTALL in
24624 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24625 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24626 esac
24627
24628 if test x"$ac_file" != x-; then
24629 { echo "$as_me:$LINENO: creating $ac_file" >&5
24630 echo "$as_me: creating $ac_file" >&6;}
24631 rm -f "$ac_file"
24632 fi
24633 # Let's still pretend it is `configure' which instantiates (i.e., don't
24634 # use $as_me), people would be surprised to read:
24635 # /* config.h. Generated by config.status. */
24636 if test x"$ac_file" = x-; then
24637 configure_input=
24638 else
24639 configure_input="$ac_file. "
24640 fi
24641 configure_input=$configure_input"Generated from `echo $ac_file_in |
24642 sed 's,.*/,,'` by configure."
24643
24644 # First look for the input files in the build tree, otherwise in the
24645 # src tree.
24646 ac_file_inputs=`IFS=:
24647 for f in $ac_file_in; do
24648 case $f in
24649 -) echo $tmp/stdin ;;
24650 [\\/$]*)
24651 # Absolute (can't be DOS-style, as IFS=:)
24652 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24653 echo "$as_me: error: cannot find input file: $f" >&2;}
24654 { (exit 1); exit 1; }; }
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 _ACEOF
24672 cat >>$CONFIG_STATUS <<_ACEOF
24673 sed "$ac_vpsub
24674 $extrasub
24675 _ACEOF
24676 cat >>$CONFIG_STATUS <<\_ACEOF
24677 :t
24678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24679 s,@configure_input@,$configure_input,;t t
24680 s,@srcdir@,$ac_srcdir,;t t
24681 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24682 s,@top_srcdir@,$ac_top_srcdir,;t t
24683 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24684 s,@builddir@,$ac_builddir,;t t
24685 s,@abs_builddir@,$ac_abs_builddir,;t t
24686 s,@top_builddir@,$ac_top_builddir,;t t
24687 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24688 s,@INSTALL@,$ac_INSTALL,;t t
24689 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24690 rm -f $tmp/stdin
24691 if test x"$ac_file" != x-; then
24692 mv $tmp/out $ac_file
24693 else
24694 cat $tmp/out
24695 rm -f $tmp/out
24696 fi
24697
24698 done
24699 _ACEOF
24700 cat >>$CONFIG_STATUS <<\_ACEOF
24701
24702 #
24703 # CONFIG_HEADER section.
24704 #
24705
24706 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24707 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24708 #
24709 # ac_d sets the value in "#define NAME VALUE" lines.
24710 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24711 ac_dB='[ ].*$,\1#\2'
24712 ac_dC=' '
24713 ac_dD=',;t'
24714 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24715 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24716 ac_uB='$,\1#\2define\3'
24717 ac_uC=' '
24718 ac_uD=',;t'
24719
24720 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24721 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24722 case $ac_file in
24723 - | *:- | *:-:* ) # input from stdin
24724 cat >$tmp/stdin
24725 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24726 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24727 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24728 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24729 * ) ac_file_in=$ac_file.in ;;
24730 esac
24731
24732 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24733 echo "$as_me: creating $ac_file" >&6;}
24734
24735 # First look for the input files in the build tree, otherwise in the
24736 # src tree.
24737 ac_file_inputs=`IFS=:
24738 for f in $ac_file_in; do
24739 case $f in
24740 -) echo $tmp/stdin ;;
24741 [\\/$]*)
24742 # Absolute (can't be DOS-style, as IFS=:)
24743 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24744 echo "$as_me: error: cannot find input file: $f" >&2;}
24745 { (exit 1); exit 1; }; }
24746 # Do quote $f, to prevent DOS paths from being IFS'd.
24747 echo "$f";;
24748 *) # Relative
24749 if test -f "$f"; then
24750 # Build tree
24751 echo "$f"
24752 elif test -f "$srcdir/$f"; then
24753 # Source tree
24754 echo "$srcdir/$f"
24755 else
24756 # /dev/null tree
24757 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24758 echo "$as_me: error: cannot find input file: $f" >&2;}
24759 { (exit 1); exit 1; }; }
24760 fi;;
24761 esac
24762 done` || { (exit 1); exit 1; }
24763 # Remove the trailing spaces.
24764 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24765
24766 _ACEOF
24767
24768 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24769 # `conftest.undefs', that substitutes the proper values into
24770 # config.h.in to produce config.h. The first handles `#define'
24771 # templates, and the second `#undef' templates.
24772 # And first: Protect against being on the right side of a sed subst in
24773 # config.status. Protect against being in an unquoted here document
24774 # in config.status.
24775 rm -f conftest.defines conftest.undefs
24776 # Using a here document instead of a string reduces the quoting nightmare.
24777 # Putting comments in sed scripts is not portable.
24778 #
24779 # `end' is used to avoid that the second main sed command (meant for
24780 # 0-ary CPP macros) applies to n-ary macro definitions.
24781 # See the Autoconf documentation for `clear'.
24782 cat >confdef2sed.sed <<\_ACEOF
24783 s/[\\&,]/\\&/g
24784 s,[\\$`],\\&,g
24785 t clear
24786 : clear
24787 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24788 t end
24789 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24790 : end
24791 _ACEOF
24792 # If some macros were called several times there might be several times
24793 # the same #defines, which is useless. Nevertheless, we may not want to
24794 # sort them, since we want the *last* AC-DEFINE to be honored.
24795 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24796 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24797 rm -f confdef2sed.sed
24798
24799 # This sed command replaces #undef with comments. This is necessary, for
24800 # example, in the case of _POSIX_SOURCE, which is predefined and required
24801 # on some systems where configure will not decide to define it.
24802 cat >>conftest.undefs <<\_ACEOF
24803 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24804 _ACEOF
24805
24806 # Break up conftest.defines because some shells have a limit on the size
24807 # of here documents, and old seds have small limits too (100 cmds).
24808 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24809 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24810 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24811 echo ' :' >>$CONFIG_STATUS
24812 rm -f conftest.tail
24813 while grep . conftest.defines >/dev/null
24814 do
24815 # Write a limited-size here document to $tmp/defines.sed.
24816 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24817 # Speed up: don't consider the non `#define' lines.
24818 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24819 # Work around the forget-to-reset-the-flag bug.
24820 echo 't clr' >>$CONFIG_STATUS
24821 echo ': clr' >>$CONFIG_STATUS
24822 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24823 echo 'CEOF
24824 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24825 rm -f $tmp/in
24826 mv $tmp/out $tmp/in
24827 ' >>$CONFIG_STATUS
24828 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24829 rm -f conftest.defines
24830 mv conftest.tail conftest.defines
24831 done
24832 rm -f conftest.defines
24833 echo ' fi # grep' >>$CONFIG_STATUS
24834 echo >>$CONFIG_STATUS
24835
24836 # Break up conftest.undefs because some shells have a limit on the size
24837 # of here documents, and old seds have small limits too (100 cmds).
24838 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24839 rm -f conftest.tail
24840 while grep . conftest.undefs >/dev/null
24841 do
24842 # Write a limited-size here document to $tmp/undefs.sed.
24843 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24844 # Speed up: don't consider the non `#undef'
24845 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24846 # Work around the forget-to-reset-the-flag bug.
24847 echo 't clr' >>$CONFIG_STATUS
24848 echo ': clr' >>$CONFIG_STATUS
24849 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24850 echo 'CEOF
24851 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24852 rm -f $tmp/in
24853 mv $tmp/out $tmp/in
24854 ' >>$CONFIG_STATUS
24855 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24856 rm -f conftest.undefs
24857 mv conftest.tail conftest.undefs
24858 done
24859 rm -f conftest.undefs
24860
24861 cat >>$CONFIG_STATUS <<\_ACEOF
24862 # Let's still pretend it is `configure' which instantiates (i.e., don't
24863 # use $as_me), people would be surprised to read:
24864 # /* config.h. Generated by config.status. */
24865 if test x"$ac_file" = x-; then
24866 echo "/* Generated by configure. */" >$tmp/config.h
24867 else
24868 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24869 fi
24870 cat $tmp/in >>$tmp/config.h
24871 rm -f $tmp/in
24872 if test x"$ac_file" != x-; then
24873 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24874 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24875 echo "$as_me: $ac_file is unchanged" >&6;}
24876 else
24877 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24879 X"$ac_file" : 'X\(//\)[^/]' \| \
24880 X"$ac_file" : 'X\(//\)$' \| \
24881 X"$ac_file" : 'X\(/\)' \| \
24882 . : '\(.\)' 2>/dev/null ||
24883 echo X"$ac_file" |
24884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24886 /^X\(\/\/\)$/{ s//\1/; q; }
24887 /^X\(\/\).*/{ s//\1/; q; }
24888 s/.*/./; q'`
24889 { if $as_mkdir_p; then
24890 mkdir -p "$ac_dir"
24891 else
24892 as_dir="$ac_dir"
24893 as_dirs=
24894 while test ! -d "$as_dir"; do
24895 as_dirs="$as_dir $as_dirs"
24896 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24898 X"$as_dir" : 'X\(//\)[^/]' \| \
24899 X"$as_dir" : 'X\(//\)$' \| \
24900 X"$as_dir" : 'X\(/\)' \| \
24901 . : '\(.\)' 2>/dev/null ||
24902 echo X"$as_dir" |
24903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24905 /^X\(\/\/\)$/{ s//\1/; q; }
24906 /^X\(\/\).*/{ s//\1/; q; }
24907 s/.*/./; q'`
24908 done
24909 test ! -n "$as_dirs" || mkdir $as_dirs
24910 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24912 { (exit 1); exit 1; }; }; }
24913
24914 rm -f $ac_file
24915 mv $tmp/config.h $ac_file
24916 fi
24917 else
24918 cat $tmp/config.h
24919 rm -f $tmp/config.h
24920 fi
24921 done
24922 _ACEOF
24923 cat >>$CONFIG_STATUS <<\_ACEOF
24924
24925 #
24926 # CONFIG_COMMANDS section.
24927 #
24928 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24929 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24930 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24931 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24932 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24933 X"$ac_dest" : 'X\(//\)[^/]' \| \
24934 X"$ac_dest" : 'X\(//\)$' \| \
24935 X"$ac_dest" : 'X\(/\)' \| \
24936 . : '\(.\)' 2>/dev/null ||
24937 echo X"$ac_dest" |
24938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24940 /^X\(\/\/\)$/{ s//\1/; q; }
24941 /^X\(\/\).*/{ s//\1/; q; }
24942 s/.*/./; q'`
24943 { if $as_mkdir_p; then
24944 mkdir -p "$ac_dir"
24945 else
24946 as_dir="$ac_dir"
24947 as_dirs=
24948 while test ! -d "$as_dir"; do
24949 as_dirs="$as_dir $as_dirs"
24950 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24952 X"$as_dir" : 'X\(//\)[^/]' \| \
24953 X"$as_dir" : 'X\(//\)$' \| \
24954 X"$as_dir" : 'X\(/\)' \| \
24955 . : '\(.\)' 2>/dev/null ||
24956 echo X"$as_dir" |
24957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24959 /^X\(\/\/\)$/{ s//\1/; q; }
24960 /^X\(\/\).*/{ s//\1/; q; }
24961 s/.*/./; q'`
24962 done
24963 test ! -n "$as_dirs" || mkdir $as_dirs
24964 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24966 { (exit 1); exit 1; }; }; }
24967
24968 ac_builddir=.
24969
24970 if test "$ac_dir" != .; then
24971 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24972 # A "../" for each directory in $ac_dir_suffix.
24973 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24974 else
24975 ac_dir_suffix= ac_top_builddir=
24976 fi
24977
24978 case $srcdir in
24979 .) # No --srcdir option. We are building in place.
24980 ac_srcdir=.
24981 if test -z "$ac_top_builddir"; then
24982 ac_top_srcdir=.
24983 else
24984 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24985 fi ;;
24986 [\\/]* | ?:[\\/]* ) # Absolute path.
24987 ac_srcdir=$srcdir$ac_dir_suffix;
24988 ac_top_srcdir=$srcdir ;;
24989 *) # Relative path.
24990 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24991 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24992 esac
24993
24994 # Do not use `cd foo && pwd` to compute absolute paths, because
24995 # the directories may not exist.
24996 case `pwd` in
24997 .) ac_abs_builddir="$ac_dir";;
24998 *)
24999 case "$ac_dir" in
25000 .) ac_abs_builddir=`pwd`;;
25001 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25002 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25003 esac;;
25004 esac
25005 case $ac_abs_builddir in
25006 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25007 *)
25008 case ${ac_top_builddir}. in
25009 .) ac_abs_top_builddir=$ac_abs_builddir;;
25010 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25011 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25012 esac;;
25013 esac
25014 case $ac_abs_builddir in
25015 .) ac_abs_srcdir=$ac_srcdir;;
25016 *)
25017 case $ac_srcdir in
25018 .) ac_abs_srcdir=$ac_abs_builddir;;
25019 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25020 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25021 esac;;
25022 esac
25023 case $ac_abs_builddir in
25024 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25025 *)
25026 case $ac_top_srcdir in
25027 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25028 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25029 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25030 esac;;
25031 esac
25032
25033
25034 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25035 echo "$as_me: executing $ac_dest commands" >&6;}
25036 case $ac_dest in
25037 default )
25038
25039 ### Make the necessary directories, if they don't exist.
25040 for dir in etc lisp ; do
25041 test -d ${dir} || mkdir ${dir}
25042 done
25043
25044 # Build src/Makefile from ${srcdir}/src/Makefile.c
25045 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25046 # This must be done after src/config.h is built, since we rely on that file.
25047
25048 # Now get this: Some word that is part of the ${srcdir} directory name
25049 # or the ${configuration} value might, just might, happen to be an
25050 # identifier like `sun4' or `i386' or something, and be predefined by
25051 # the C preprocessor to some helpful value like 1, or maybe the empty
25052 # string. Needless to say consequent macro substitutions are less
25053 # than conducive to the makefile finding the correct directory.
25054 undefs="`echo $top_srcdir $configuration $canonical |
25055 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25056 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25057 `"
25058
25059 echo creating src/epaths.h
25060 ${MAKE-make} epaths-force
25061
25062 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25063 # `..' to `. .' unless invoked with -traditional
25064
25065 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25066 CPPFLAGS="$CPPFLAGS -traditional"
25067 fi
25068
25069 echo creating lib-src/Makefile
25070 ( cd lib-src
25071 rm -f junk.c junk1.c junk2.c
25072 sed -e '/start of cpp stuff/q' \
25073 < Makefile.c > junk1.c
25074 sed -e '1,/start of cpp stuff/d'\
25075 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25076 < Makefile.c > junk.c
25077 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25078 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25079 cat junk1.c junk2.c > Makefile.new
25080 rm -f junk.c junk1.c junk2.c
25081 chmod 444 Makefile.new
25082 mv -f Makefile.new Makefile
25083 )
25084
25085 echo creating src/Makefile
25086 ( cd src
25087 rm -f junk.c junk1.c junk2.c
25088 sed -e '/start of cpp stuff/q' \
25089 < Makefile.c > junk1.c
25090 sed -e '1,/start of cpp stuff/d'\
25091 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25092 < Makefile.c > junk.c
25093 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25094 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25095 fi
25096 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25097 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25098 cat junk1.c junk2.c > Makefile.new
25099 rm -f junk.c junk1.c junk2.c
25100 chmod 444 Makefile.new
25101 mv -f Makefile.new Makefile
25102 )
25103
25104 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25105 echo creating src/.gdbinit
25106 echo source $srcdir/src/.gdbinit > src/.gdbinit
25107 fi
25108
25109 # This is how we know whether to re-run configure in certain cases.
25110 touch src/config.stamp
25111
25112 ;;
25113 esac
25114 done
25115 _ACEOF
25116
25117 cat >>$CONFIG_STATUS <<\_ACEOF
25118
25119 { (exit 0); exit 0; }
25120 _ACEOF
25121 chmod +x $CONFIG_STATUS
25122 ac_clean_files=$ac_clean_files_save
25123
25124
25125 # configure is writing to config.log, and then calls config.status.
25126 # config.status does its own redirection, appending to config.log.
25127 # Unfortunately, on DOS this fails, as config.log is still kept open
25128 # by configure, so config.status won't be able to write to it; its
25129 # output is simply discarded. So we exec the FD to /dev/null,
25130 # effectively closing config.log, so it can be properly (re)opened and
25131 # appended to by config.status. When coming back to configure, we
25132 # need to make the FD available again.
25133 if test "$no_create" != yes; then
25134 ac_cs_success=:
25135 ac_config_status_args=
25136 test "$silent" = yes &&
25137 ac_config_status_args="$ac_config_status_args --quiet"
25138 exec 5>/dev/null
25139 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25140 exec 5>>config.log
25141 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25142 # would make configure fail if this is the last instruction.
25143 $ac_cs_success || { (exit 1); exit 1; }
25144 fi
25145
25146