]> code.delx.au - gnu-emacs/blob - configure
Merge from emacs--devo--0
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS XFT_CFLAGS XFT_LIBS FREETYPE_CFLAGS FREETYPE_LIBS FONTCONFIG_CFLAGS FONTCONFIG_LIBS HAVE_LIBOTF LIBOTF_CFLAGS LIBOTF_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-font-backend compile code of font-backend support
860 --enable-asserts compile code with asserts enabled
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-locallisppath=PATH
864 directories Emacs should search for lisp files
865 specific to this site
866 --disable-largefile omit support for large files
867
868 Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --without-gcc don't use GCC to compile Emacs if GCC is found
872 --without-pop don't support POP mail retrieval with movemail
873 --with-kerberos support Kerberos-authenticated POP
874 --with-kerberos5 support Kerberos version 5 authenticated POP
875 --with-hesiod support Hesiod to get the POP server host
876 --without-sound don't compile with sound support
877 --with-x-toolkit=KIT use an X toolkit
878 (KIT = yes/lucid/athena/motif/gtk/no)
879 --with-xpm use -lXpm for displaying XPM images
880 --with-jpeg use -ljpeg for displaying JPEG images
881 --with-tiff use -ltiff for displaying TIFF images
882 --with-gif use -lungif for displaying GIF images
883 --with-png use -lpng for displaying PNG images
884 --with-freetype use -lfreetype for local fonts support
885 --with-xft use -lXft for anti aliased fonts
886 --with-gtk use GTK (same as --with-x-toolkit=gtk)
887 --with-pkg-config-prog Path to pkg-config to use for finding GTK
888 --without-toolkit-scroll-bars
889 don't use Motif or Xaw3d scroll bars
890 --without-xim don't use X11 XIM
891 --without-carbon don't use Carbon GUI on Mac OS X
892 --with-x use the X Window System
893
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CPP C preprocessor
902
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
905
906 _ACEOF
907 fi
908
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
911 ac_popdir=`pwd`
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
914 ac_builddir=.
915
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 else
921 ac_dir_suffix= ac_top_builddir=
922 fi
923
924 case $srcdir in
925 .) # No --srcdir option. We are building in place.
926 ac_srcdir=.
927 if test -z "$ac_top_builddir"; then
928 ac_top_srcdir=.
929 else
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 fi ;;
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
935 *) # Relative path.
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
938 esac
939
940 # Do not use `cd foo && pwd` to compute absolute paths, because
941 # the directories may not exist.
942 case `pwd` in
943 .) ac_abs_builddir="$ac_dir";;
944 *)
945 case "$ac_dir" in
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
953 *)
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
962 *)
963 case $ac_srcdir in
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
971 *)
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
976 esac;;
977 esac
978
979 cd $ac_dir
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
982 echo
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
985 echo
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
989 echo
990 $ac_configure --help
991 else
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
993 fi
994 cd "$ac_popdir"
995 done
996 fi
997
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1000 cat <<\_ACEOF
1001
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1005 _ACEOF
1006 exit 0
1007 fi
1008 exec 5>config.log
1009 cat >&5 <<_ACEOF
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1012
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1015
1016 $ $0 $@
1017
1018 _ACEOF
1019 {
1020 cat <<_ASUNAME
1021 ## --------- ##
1022 ## Platform. ##
1023 ## --------- ##
1024
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1030
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1033
1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1041
1042 _ASUNAME
1043
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 for as_dir in $PATH
1046 do
1047 IFS=$as_save_IFS
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1050 done
1051
1052 } >&5
1053
1054 cat >&5 <<_ACEOF
1055
1056
1057 ## ----------- ##
1058 ## Core tests. ##
1059 ## ----------- ##
1060
1061 _ACEOF
1062
1063
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1069 ac_configure_args=
1070 ac_configure_args0=
1071 ac_configure_args1=
1072 ac_sep=
1073 ac_must_keep_next=false
1074 for ac_pass in 1 2
1075 do
1076 for ac_arg
1077 do
1078 case $ac_arg in
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 continue ;;
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085 esac
1086 case $ac_pass in
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1088 2)
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1092 else
1093 case $ac_arg in
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100 esac
1101 ;;
1102 -* ) ac_must_keep_next=true ;;
1103 esac
1104 fi
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1107 ac_sep=" "
1108 ;;
1109 esac
1110 done
1111 done
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1114
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1122 {
1123 echo
1124
1125 cat <<\_ASBOX
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1129 _ASBOX
1130 echo
1131 # The following way of writing the cache mishandles newlines in values,
1132 {
1133 (set) 2>&1 |
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135 *ac_space=\ *)
1136 sed -n \
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 ;;
1140 *)
1141 sed -n \
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143 ;;
1144 esac;
1145 }
1146 echo
1147
1148 cat <<\_ASBOX
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_vars
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160
1161 if test -n "$ac_subst_files"; then
1162 cat <<\_ASBOX
1163 ## ------------- ##
1164 ## Output files. ##
1165 ## ------------- ##
1166 _ASBOX
1167 echo
1168 for ac_var in $ac_subst_files
1169 do
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1172 done | sort
1173 echo
1174 fi
1175
1176 if test -s confdefs.h; then
1177 cat <<\_ASBOX
1178 ## ----------- ##
1179 ## confdefs.h. ##
1180 ## ----------- ##
1181 _ASBOX
1182 echo
1183 sed "/^$/d" confdefs.h | sort
1184 echo
1185 fi
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1189 } >&5
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192 exit $exit_status
1193 ' 0
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 done
1197 ac_signal=0
1198
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202 echo >confdefs.h
1203
1204 # Predefined preprocessor variables.
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 _ACEOF
1229
1230
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 else
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1238 fi
1239 fi
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
1245 . "$ac_site_file"
1246 fi
1247 done
1248
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1255 case $cache_file in
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1258 esac
1259 fi
1260 else
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1263 >$cache_file
1264 fi
1265
1266 # Check that the precious variables saved in the cache have kept the same
1267 # value.
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1276 set,)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,set)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,);;
1285 *)
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1294 fi;;
1295 esac
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1298 case $ac_new_val in
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1302 esac
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 esac
1307 fi
1308 done
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1315 fi
1316
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1342
1343
1344 test "$program_prefix" != NONE &&
1345 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1346 # Use a double $ so make ignores it.
1347 test "$program_suffix" != NONE &&
1348 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1349 # Double any \ or $. echo might interpret backslashes.
1350 # By default was `s,x,x', remove it if useless.
1351 cat <<\_ACEOF >conftest.sed
1352 s/[\\$]/&&/g;s/;s,x,x,$//
1353 _ACEOF
1354 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1355 rm conftest.sed
1356
1357
1358 lispdir='${datadir}/emacs/${version}/lisp'
1359 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1360 '${datadir}/emacs/site-lisp'
1361 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1362 etcdir='${datadir}/emacs/${version}/etc'
1363 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1364 docdir='${datadir}/emacs/${version}/etc'
1365 gamedir='${localstatedir}/games/emacs'
1366
1367 gameuser=games
1368
1369
1370 # Check whether --with-gcc or --without-gcc was given.
1371 if test "${with_gcc+set}" = set; then
1372 withval="$with_gcc"
1373
1374 fi;
1375
1376 # Check whether --with-pop or --without-pop was given.
1377 if test "${with_pop+set}" = set; then
1378 withval="$with_pop"
1379 if test "$withval" = yes; then
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1383
1384 else :
1385 fi
1386 else
1387 cat >>confdefs.h <<\_ACEOF
1388 #define MAIL_USE_POP 1
1389 _ACEOF
1390
1391 fi;
1392
1393
1394 # Check whether --with-kerberos or --without-kerberos was given.
1395 if test "${with_kerberos+set}" = set; then
1396 withval="$with_kerberos"
1397 cat >>confdefs.h <<\_ACEOF
1398 #define KERBEROS 1
1399 _ACEOF
1400
1401 fi;
1402
1403
1404 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1405 if test "${with_kerberos5+set}" = set; then
1406 withval="$with_kerberos5"
1407 if test "${with_kerberos5+set}" = set; then
1408 if test "${with_kerberos+set}" != set; then
1409 with_kerberos=yes
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS 1
1412 _ACEOF
1413
1414 fi
1415 fi
1416
1417 cat >>confdefs.h <<\_ACEOF
1418 #define KERBEROS5 1
1419 _ACEOF
1420
1421 fi;
1422
1423 # Check whether --with-hesiod or --without-hesiod was given.
1424 if test "${with_hesiod+set}" = set; then
1425 withval="$with_hesiod"
1426
1427 cat >>confdefs.h <<\_ACEOF
1428 #define HESIOD 1
1429 _ACEOF
1430
1431 fi;
1432
1433
1434 # Check whether --with-sound or --without-sound was given.
1435 if test "${with_sound+set}" = set; then
1436 withval="$with_sound"
1437
1438 fi;
1439
1440
1441 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1442 if test "${with_x_toolkit+set}" = set; then
1443 withval="$with_x_toolkit"
1444 case "${withval}" in
1445 y | ye | yes ) val=athena ;;
1446 n | no ) val=no ;;
1447 l | lu | luc | luci | lucid ) val=lucid ;;
1448 a | at | ath | athe | athen | athena ) val=athena ;;
1449 m | mo | mot | moti | motif ) val=motif ;;
1450 g | gt | gtk ) val=gtk ;;
1451 * )
1452 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1455 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1456 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1457 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1458 { (exit 1); exit 1; }; }
1459 ;;
1460 esac
1461 with_x_toolkit=$val
1462
1463 fi;
1464
1465 # Check whether --with-xpm or --without-xpm was given.
1466 if test "${with_xpm+set}" = set; then
1467 withval="$with_xpm"
1468
1469 fi;
1470
1471 # Check whether --with-jpeg or --without-jpeg was given.
1472 if test "${with_jpeg+set}" = set; then
1473 withval="$with_jpeg"
1474
1475 fi;
1476
1477 # Check whether --with-tiff or --without-tiff was given.
1478 if test "${with_tiff+set}" = set; then
1479 withval="$with_tiff"
1480
1481 fi;
1482
1483 # Check whether --with-gif or --without-gif was given.
1484 if test "${with_gif+set}" = set; then
1485 withval="$with_gif"
1486
1487 fi;
1488
1489 # Check whether --with-png or --without-png was given.
1490 if test "${with_png+set}" = set; then
1491 withval="$with_png"
1492
1493 fi;
1494
1495 # Check whether --with-freetype or --without-freetype was given.
1496 if test "${with_freetype+set}" = set; then
1497 withval="$with_freetype"
1498
1499 fi;
1500
1501 # Check whether --with-xft or --without-xft was given.
1502 if test "${with_xft+set}" = set; then
1503 withval="$with_xft"
1504
1505 fi;
1506
1507 # Check whether --with-gtk or --without-gtk was given.
1508 if test "${with_gtk+set}" = set; then
1509 withval="$with_gtk"
1510
1511 fi;
1512
1513 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1514 if test "${with_pkg_config_prog+set}" = set; then
1515 withval="$with_pkg_config_prog"
1516
1517 fi;
1518
1519 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1520 if test "${with_toolkit_scroll_bars+set}" = set; then
1521 withval="$with_toolkit_scroll_bars"
1522
1523 fi;
1524
1525 # Check whether --with-xim or --without-xim was given.
1526 if test "${with_xim+set}" = set; then
1527 withval="$with_xim"
1528
1529 fi;
1530
1531 # Check whether --with-carbon or --without-carbon was given.
1532 if test "${with_carbon+set}" = set; then
1533 withval="$with_carbon"
1534
1535 fi;
1536 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1537 if test "${enable_carbon_app+set}" = set; then
1538 enableval="$enable_carbon_app"
1539 carbon_appdir_x=${enableval}
1540 fi;
1541
1542 # Check whether --enable-font-backend or --disable-font-backend was given.
1543 if test "${enable_font_backend+set}" = set; then
1544 enableval="$enable_font_backend"
1545 USE_FONT_BACKEND=$enableval
1546 else
1547 USE_FONT_BACKEND=no
1548 fi;
1549
1550 # Check whether --enable-asserts or --disable-asserts was given.
1551 if test "${enable_asserts+set}" = set; then
1552 enableval="$enable_asserts"
1553 USE_XASSERTS=$enableval
1554 else
1555 USE_XASSERTS=no
1556 fi;
1557
1558 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1559 if test "${enable_maintainer_mode+set}" = set; then
1560 enableval="$enable_maintainer_mode"
1561 USE_MAINTAINER_MODE=$enableval
1562 else
1563 USE_MAINTAINER_MODE=no
1564 fi;
1565 if test $USE_MAINTAINER_MODE = yes; then
1566 MAINT=
1567 else
1568 MAINT=#
1569 fi
1570
1571
1572 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1573 if test "${enable_locallisppath+set}" = set; then
1574 enableval="$enable_locallisppath"
1575 if test "${enableval}" = "no"; then
1576 locallisppath=
1577 elif test "${enableval}" != "yes"; then
1578 locallisppath=${enableval}
1579 fi
1580 fi;
1581
1582 #### Make srcdir absolute, if it isn't already. It's important to
1583 #### avoid running the path through pwd unnecessarily, since pwd can
1584 #### give you automounter prefixes, which can go away. We do all this
1585 #### so Emacs can find its files when run uninstalled.
1586 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1587 unset CDPATH
1588 case "${srcdir}" in
1589 /* ) ;;
1590 . )
1591 ## We may be able to use the $PWD environment variable to make this
1592 ## absolute. But sometimes PWD is inaccurate.
1593 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1594 ## but that tested only for a well-formed and valid PWD,
1595 ## it did not object when PWD was well-formed and valid but just wrong.
1596 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1597 then
1598 srcdir="$PWD"
1599 else
1600 srcdir="`(cd ${srcdir}; pwd)`"
1601 fi
1602 ;;
1603 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1604 esac
1605
1606 #### Check if the source directory already has a configured system in it.
1607 if test `pwd` != `(cd ${srcdir} && pwd)` \
1608 && test -f "${srcdir}/src/config.h" ; then
1609 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1610 as a build directory right now; it has been configured in its own
1611 right. To configure in another directory as well, you MUST
1612 use GNU make. If you do not have GNU make, then you must
1613 now do \`make distclean' in ${srcdir},
1614 and then run $0 again." >&5
1615 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1616 as a build directory right now; it has been configured in its own
1617 right. To configure in another directory as well, you MUST
1618 use GNU make. If you do not have GNU make, then you must
1619 now do \`make distclean' in ${srcdir},
1620 and then run $0 again." >&2;}
1621 fi
1622
1623 #### Given the configuration name, set machfile and opsysfile to the
1624 #### names of the m/*.h and s/*.h files we should use.
1625
1626 ### Canonicalize the configuration name.
1627
1628 ac_aux_dir=
1629 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1630 if test -f $ac_dir/install-sh; then
1631 ac_aux_dir=$ac_dir
1632 ac_install_sh="$ac_aux_dir/install-sh -c"
1633 break
1634 elif test -f $ac_dir/install.sh; then
1635 ac_aux_dir=$ac_dir
1636 ac_install_sh="$ac_aux_dir/install.sh -c"
1637 break
1638 elif test -f $ac_dir/shtool; then
1639 ac_aux_dir=$ac_dir
1640 ac_install_sh="$ac_aux_dir/shtool install -c"
1641 break
1642 fi
1643 done
1644 if test -z "$ac_aux_dir"; then
1645 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1646 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1647 { (exit 1); exit 1; }; }
1648 fi
1649 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1650 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1651 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1652
1653 # Make sure we can run config.sub.
1654 $ac_config_sub sun4 >/dev/null 2>&1 ||
1655 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1656 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1657 { (exit 1); exit 1; }; }
1658
1659 echo "$as_me:$LINENO: checking build system type" >&5
1660 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1661 if test "${ac_cv_build+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 ac_cv_build_alias=$build_alias
1665 test -z "$ac_cv_build_alias" &&
1666 ac_cv_build_alias=`$ac_config_guess`
1667 test -z "$ac_cv_build_alias" &&
1668 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1669 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1670 { (exit 1); exit 1; }; }
1671 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1675
1676 fi
1677 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1678 echo "${ECHO_T}$ac_cv_build" >&6
1679 build=$ac_cv_build
1680 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685 echo "$as_me:$LINENO: checking host system type" >&5
1686 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1687 if test "${ac_cv_host+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 ac_cv_host_alias=$host_alias
1691 test -z "$ac_cv_host_alias" &&
1692 ac_cv_host_alias=$ac_cv_build_alias
1693 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1694 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1695 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1696 { (exit 1); exit 1; }; }
1697
1698 fi
1699 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1700 echo "${ECHO_T}$ac_cv_host" >&6
1701 host=$ac_cv_host
1702 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1703 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1704 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1705
1706
1707 canonical=$host
1708 configuration=${host_alias-$host}
1709
1710
1711
1712 ### If you add support for a new configuration, add code to this
1713 ### switch statement to recognize your configuration name and select
1714 ### the appropriate operating system and machine description files.
1715
1716 ### You would hope that you could choose an m/*.h file pretty much
1717 ### based on the machine portion of the configuration name, and an s-
1718 ### file based on the operating system portion. However, it turns out
1719 ### that each m/*.h file is pretty manufacturer-specific - for
1720 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1721 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1722 ### machines. So we basically have to have a special case for each
1723 ### configuration name.
1724 ###
1725 ### As far as handling version numbers on operating systems is
1726 ### concerned, make sure things will fail in a fixable way. If
1727 ### /etc/MACHINES doesn't say anything about version numbers, be
1728 ### prepared to handle anything reasonably. If version numbers
1729 ### matter, be sure /etc/MACHINES says something about it.
1730 ###
1731 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1732 ### "System V Release 4"; he writes, "The old convention encouraged
1733 ### confusion between `system' and `release' levels'."
1734
1735 machine='' opsys='' unported=no
1736 case "${canonical}" in
1737
1738 ## FreeBSD ports
1739 *-*-freebsd* )
1740 opsys=freebsd
1741 case "${canonical}" in
1742 alpha*-*-freebsd*) machine=alpha ;;
1743 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 x86_64-*-openbsd*) machine=amdx86-64 ;;
1784 m68k-*-openbsd*) machine=hp9000s300 ;;
1785 mipsel-*-openbsd*) machine=pmax ;;
1786 ns32k-*-openbsd*) machine=ns32000 ;;
1787 sparc-*-openbsd*) machine=sparc ;;
1788 vax-*-openbsd*) machine=vax ;;
1789 esac
1790 ;;
1791
1792 ## LynxOS ports
1793 *-*-lynxos* )
1794 opsys=lynxos
1795 case "${canonical}" in
1796 i[3456]86-*-lynxos*) machine=intel386 ;;
1797 powerpc-*-lynxos*) machine=powerpc ;;
1798 esac
1799 ;;
1800
1801 ## Acorn RISCiX:
1802 arm-acorn-riscix1.1* )
1803 machine=acorn opsys=riscix1-1
1804 ;;
1805 arm-acorn-riscix1.2* | arm-acorn-riscix )
1806 ## This name is riscix12 instead of riscix1.2
1807 ## to avoid a file name conflict on MSDOS.
1808 machine=acorn opsys=riscix12
1809 ;;
1810
1811 ## BSDI ports
1812 *-*-bsdi* )
1813 opsys=bsdi
1814 case "${canonical}" in
1815 i[345]86-*-bsdi*) machine=intel386 ;;
1816 sparc-*-bsdi*) machine=sparc ;;
1817 powerpc-*-bsdi*) machine=macppc ;;
1818 esac
1819 case "${canonical}" in
1820 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1821 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1822 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1823 *-*-bsdi3* ) opsys=bsdos3 ;;
1824 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1825 esac
1826 ;;
1827
1828 ## Alliant machines
1829 ## Strictly speaking, we need the version of the alliant operating
1830 ## system to choose the right machine file, but currently the
1831 ## configuration name doesn't tell us enough to choose the right
1832 ## one; we need to give alliants their own operating system name to
1833 ## do this right. When someone cares, they can help us.
1834 fx80-alliant-* )
1835 machine=alliant4 opsys=bsd4-2
1836 ;;
1837 i860-alliant-* )
1838 machine=alliant-2800 opsys=bsd4-3
1839 ;;
1840
1841 ## Alpha (DEC) machines.
1842 alpha*-dec-osf* )
1843 machine=alpha opsys=osf1
1844 # This is needed to find X11R6.1 libraries for certain tests.
1845 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1846 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1847 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1848 # due to non-traditional preprocessing with the current compiler
1849 # defaults. OSF 4 can also have that compiler version, and there
1850 # seems always to have been a usable /usr/bin/cpp.
1851 NON_GNU_CPP=/usr/bin/cpp
1852 case "${canonical}" in
1853 alpha*-dec-osf[5-9]*)
1854 opsys=osf5-0 ;;
1855 esac
1856 ;;
1857
1858 alpha*-*-linux-gnu* )
1859 machine=alpha opsys=gnu-linux
1860 ;;
1861
1862 arm*-*-linux-gnu* )
1863 machine=arm opsys=gnu-linux
1864 ;;
1865
1866 ## Altos 3068
1867 m68*-altos-sysv* )
1868 machine=altos opsys=usg5-2
1869 ;;
1870
1871 ## Amdahl UTS
1872 580-amdahl-sysv* )
1873 machine=amdahl opsys=usg5-2-2
1874 ;;
1875
1876 ## Apollo, Domain/OS
1877 m68*-apollo-* )
1878 machine=apollo opsys=bsd4-3
1879 ;;
1880
1881 ## AT&T 3b2, 3b5, 3b15, 3b20
1882 we32k-att-sysv* )
1883 machine=att3b opsys=usg5-2-2
1884 ;;
1885
1886 ## AT&T 3b1 - The Mighty Unix PC!
1887 m68*-att-sysv* )
1888 machine=7300 opsys=usg5-2-2
1889 ;;
1890
1891 ## Bull dpx20
1892 rs6000-bull-bosx* )
1893 machine=ibmrs6000 opsys=aix3-2
1894 ;;
1895
1896 ## Bull dpx2
1897 m68*-bull-sysv3* )
1898 machine=dpx2 opsys=usg5-3
1899 ;;
1900
1901 ## Bull sps7
1902 m68*-bull-sysv2* )
1903 machine=sps7 opsys=usg5-2
1904 ;;
1905
1906 ## CCI 5/32, 6/32 -- see "Tahoe".
1907
1908 ## Celerity
1909 ## I don't know what configuration name to use for this; config.sub
1910 ## doesn't seem to know anything about it. Hey, Celerity users, get
1911 ## in touch with us!
1912 celerity-celerity-bsd* )
1913 machine=celerity opsys=bsd4-2
1914 ;;
1915
1916 ## Clipper
1917 ## What operating systems does this chip run that Emacs has been
1918 ## tested on?
1919 clipper-* )
1920 machine=clipper
1921 ## We'll use the catch-all code at the bottom to guess the
1922 ## operating system.
1923 ;;
1924
1925 ## Compaq Nonstop
1926 mips-compaq-nonstopux* )
1927 machine=nonstopux opsys=nonstopux
1928 ;;
1929
1930 ## Convex
1931 *-convex-bsd* | *-convex-convexos* )
1932 machine=convex opsys=bsd4-3
1933 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1934 NON_GNU_CPP="cc -E -P"
1935 ;;
1936
1937 ## Cubix QBx/386
1938 i[3456]86-cubix-sysv* )
1939 machine=intel386 opsys=usg5-3
1940 ;;
1941
1942 ## Cydra 5
1943 cydra*-cydrome-sysv* )
1944 machine=cydra5 opsys=usg5-3
1945 ;;
1946
1947 ## Data General AViiON Machines
1948 ## DG changed naming conventions with the release of 5.4.4.10, they
1949 ## dropped the initial 5.4 but left the intervening R. Because of the
1950 ## R this shouldn't conflict with older versions of the OS (which I
1951 ## think were named like dgux4.*). In addition, DG new AViiONs series
1952 ## uses either Motorola M88k or Intel Pentium CPUs.
1953 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1954 machine=aviion opsys=dgux4
1955 ;;
1956 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1957 ## This name is dgux5-4-3 instead of dgux5-4r3
1958 ## to avoid a file name conflict on MSDOS.
1959 machine=aviion opsys=dgux5-4-3
1960 ;;
1961 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1962 machine=aviion opsys=dgux5-4r2
1963 ;;
1964 m88k-dg-dgux* )
1965 machine=aviion opsys=dgux
1966 ;;
1967
1968 ## Data General AViiON Intel (x86) Machines
1969 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1970 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1971 i[345]86-dg-dguxR4* )
1972 machine=aviion-intel opsys=dgux4
1973 ;;
1974
1975 ## DECstations
1976 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1977 machine=pmax opsys=bsd4-2
1978 ;;
1979 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1980 machine=pmax opsys=bsd4-3
1981 ;;
1982 mips-dec-ultrix* )
1983 machine=pmax opsys=ultrix4-3
1984 ;;
1985 mips-dec-osf* )
1986 machine=pmax opsys=osf1
1987 ;;
1988 mips-dec-mach_bsd4.3* )
1989 machine=pmax opsys=mach-bsd4-3
1990 ;;
1991
1992 ## Motorola Delta machines
1993 m68k-motorola-sysv* | m68000-motorola-sysv* )
1994 machine=delta opsys=usg5-3
1995 if test -z "`type gnucc | grep 'not found'`"
1996 then
1997 if test -s /etc/167config
1998 then CC="gnucc -m68040"
1999 else CC="gnucc -m68881"
2000 fi
2001 else
2002 if test -z "`type gcc | grep 'not found'`"
2003 then CC=gcc
2004 else CC=cc
2005 fi
2006 fi
2007 ;;
2008 m88k-motorola-sysv4* )
2009 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2010 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2011 # I hope there are not other 4.0 versions for this machine
2012 # which really need usg5-4 instead.
2013 machine=delta88k opsys=usg5-4-2
2014 ;;
2015 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2016 machine=delta88k opsys=usg5-3
2017 ;;
2018
2019 ## Dual machines
2020 m68*-dual-sysv* )
2021 machine=dual opsys=usg5-2
2022 ;;
2023 m68*-dual-uniplus* )
2024 machine=dual opsys=unipl5-2
2025 ;;
2026
2027 ## Elxsi 6400
2028 elxsi-elxsi-sysv* )
2029 machine=elxsi opsys=usg5-2
2030 ;;
2031
2032 ## Encore machines
2033 ns16k-encore-bsd* )
2034 machine=ns16000 opsys=umax
2035 ;;
2036
2037 ## The GEC 63 - apparently, this port isn't really finished yet.
2038 # I'm sure we finished off the last of the machines, though. -- fx
2039
2040 ## Gould Power Node and NP1
2041 pn-gould-bsd4.2* )
2042 machine=gould opsys=bsd4-2
2043 ;;
2044 pn-gould-bsd4.3* )
2045 machine=gould opsys=bsd4-3
2046 ;;
2047 np1-gould-bsd* )
2048 machine=gould-np1 opsys=bsd4-3
2049 ;;
2050
2051 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2052 ## as far as Emacs is concerned).
2053 m88k-harris-cxux* )
2054 # Build needs to be different on 7.0 and later releases
2055 case "`uname -r`" in
2056 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2057 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2058 esac
2059 NON_GNU_CPP="/lib/cpp"
2060 ;;
2061 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2062 m68k-harris-cxux* )
2063 machine=nh3000 opsys=cxux
2064 ;;
2065 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2066 powerpc-harris-powerunix )
2067 machine=nh6000 opsys=powerunix
2068 NON_GNU_CPP="cc -Xo -E -P"
2069 ;;
2070 ## SR2001/SR2201 running HI-UX/MPP
2071 hppa1.1-hitachi-hiuxmpp* )
2072 machine=sr2k opsys=hiuxmpp
2073 ;;
2074 hppa1.1-hitachi-hiuxwe2* )
2075 machine=sr2k opsys=hiuxwe2
2076 ;;
2077 ## Honeywell XPS100
2078 xps*-honeywell-sysv* )
2079 machine=xps100 opsys=usg5-2
2080 ;;
2081
2082 ## HP 9000 series 200 or 300
2083 m68*-hp-bsd* )
2084 machine=hp9000s300 opsys=bsd4-3
2085 ;;
2086 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2087 m68*-hp-hpux* )
2088 case "`uname -r`" in
2089 ## Someone's system reports A.B8.05 for this.
2090 ## I wonder what other possibilities there are.
2091 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2092 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2093 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2094 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2095 *) machine=hp9000s300 opsys=hpux ;;
2096 esac
2097 ;;
2098
2099 ## HP 9000 series 700 and 800, running HP/UX
2100 hppa*-hp-hpux7* )
2101 machine=hp800 opsys=hpux
2102 ;;
2103 hppa*-hp-hpux8* )
2104 machine=hp800 opsys=hpux8
2105 ;;
2106 hppa*-hp-hpux9shr* )
2107 machine=hp800 opsys=hpux9shr
2108 ;;
2109 hppa*-hp-hpux9* )
2110 machine=hp800 opsys=hpux9
2111 ;;
2112 hppa*-hp-hpux10.2* )
2113 machine=hp800 opsys=hpux10-20
2114 ;;
2115 hppa*-hp-hpux10* )
2116 machine=hp800 opsys=hpux10
2117 ;;
2118 hppa*-hp-hpux1[1-9]* )
2119 machine=hp800 opsys=hpux11
2120 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2121 ;;
2122
2123 hppa*-*-linux-gnu* )
2124 machine=hp800 opsys=gnu-linux
2125 ;;
2126
2127 ## HP 9000 series 700 and 800, running HP/UX
2128 hppa*-hp-hpux* )
2129 ## Cross-compilation? Nah!
2130 case "`uname -r`" in
2131 ## Someone's system reports A.B8.05 for this.
2132 ## I wonder what other possibilities there are.
2133 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2134 *.08.* ) machine=hp800 opsys=hpux8 ;;
2135 *.09.* ) machine=hp800 opsys=hpux9 ;;
2136 *) machine=hp800 opsys=hpux10 ;;
2137 esac
2138 ;;
2139 hppa*-*-nextstep* )
2140 machine=hp800 opsys=nextstep
2141 ;;
2142
2143 ## Orion machines
2144 orion-orion-bsd* )
2145 machine=orion opsys=bsd4-2
2146 ;;
2147 clipper-orion-bsd* )
2148 machine=orion105 opsys=bsd4-2
2149 ;;
2150
2151 ## IBM machines
2152 i[3456]86-ibm-aix1.1* )
2153 machine=ibmps2-aix opsys=usg5-2-2
2154 ;;
2155 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2156 machine=ibmps2-aix opsys=usg5-3
2157 ;;
2158 i370-ibm-aix*)
2159 machine=ibm370aix opsys=usg5-3
2160 ;;
2161 s390-*-linux-gnu* )
2162 machine=ibms390 opsys=gnu-linux
2163 ;;
2164 s390x-*-linux-gnu* )
2165 machine=ibms390x opsys=gnu-linux
2166 ;;
2167 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2168 machine=ibmrs6000 opsys=aix3-1
2169 ;;
2170 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2171 machine=ibmrs6000 opsys=aix3-2-5
2172 ;;
2173 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2174 machine=ibmrs6000 opsys=aix4-1
2175 ;;
2176 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2177 machine=ibmrs6000 opsys=aix4-2
2178 ;;
2179 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2180 machine=ibmrs6000 opsys=aix4-2
2181 ;;
2182 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2183 machine=ibmrs6000 opsys=aix4
2184 ;;
2185 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2186 machine=ibmrs6000 opsys=aix4-1
2187 ;;
2188 rs6000-ibm-aix* | powerpc-ibm-aix* )
2189 machine=ibmrs6000 opsys=aix3-2
2190 ;;
2191 romp-ibm-bsd4.3* )
2192 machine=ibmrt opsys=bsd4-3
2193 ;;
2194 romp-ibm-bsd4.2* )
2195 machine=ibmrt opsys=bsd4-2
2196 ;;
2197 romp-ibm-aos4.3* )
2198 machine=ibmrt opsys=bsd4-3
2199 ;;
2200 romp-ibm-aos4.2* )
2201 machine=ibmrt opsys=bsd4-2
2202 ;;
2203 romp-ibm-aos* )
2204 machine=ibmrt opsys=bsd4-3
2205 ;;
2206 romp-ibm-bsd* )
2207 machine=ibmrt opsys=bsd4-3
2208 ;;
2209 romp-ibm-aix* )
2210 machine=ibmrt-aix opsys=usg5-2-2
2211 ;;
2212
2213 ## Integrated Solutions `Optimum V'
2214 m68*-isi-bsd4.2* )
2215 machine=isi-ov opsys=bsd4-2
2216 ;;
2217 m68*-isi-bsd4.3* )
2218 machine=isi-ov opsys=bsd4-3
2219 ;;
2220
2221 ## Intel 386 machines where we do care about the manufacturer
2222 i[3456]86-intsys-sysv* )
2223 machine=is386 opsys=usg5-2-2
2224 ;;
2225
2226 ## Prime EXL
2227 i[3456]86-prime-sysv* )
2228 machine=i386 opsys=usg5-3
2229 ;;
2230
2231 ## Sequent Symmetry running Dynix
2232 i[3456]86-sequent-bsd* )
2233 machine=symmetry opsys=bsd4-3
2234 ;;
2235
2236 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2237 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2238 machine=sequent-ptx opsys=ptx4
2239 NON_GNU_CPP=/lib/cpp
2240 ;;
2241
2242 ## Sequent Symmetry running DYNIX/ptx
2243 ## Use the old cpp rather than the newer ANSI one.
2244 i[3456]86-sequent-ptx* )
2245 machine=sequent-ptx opsys=ptx
2246 NON_GNU_CPP="/lib/cpp"
2247 ;;
2248
2249 ## ncr machine running svr4.3.
2250 i[3456]86-ncr-sysv4.3 )
2251 machine=ncr386 opsys=usg5-4-3
2252 ;;
2253
2254 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2255 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2256 i[3456]86-ncr-sysv* )
2257 machine=ncr386 opsys=usg5-4-2
2258 ;;
2259
2260 ## Intel Paragon OSF/1
2261 i860-intel-osf1* )
2262 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2263 ;;
2264
2265 ## Intel 860
2266 i860-*-sysv4* )
2267 machine=i860 opsys=usg5-4
2268 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2269 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2270 ;;
2271
2272 ## Macintosh PowerPC
2273 powerpc*-*-linux-gnu* )
2274 machine=macppc opsys=gnu-linux
2275 ;;
2276
2277 ## Masscomp machines
2278 m68*-masscomp-rtu* )
2279 machine=masscomp opsys=rtu
2280 ;;
2281
2282 ## Megatest machines
2283 m68*-megatest-bsd* )
2284 machine=mega68 opsys=bsd4-2
2285 ;;
2286
2287 ## Workstations sold by MIPS
2288 ## This is not necessarily all workstations using the MIPS processor -
2289 ## Irises are produced by SGI, and DECstations by DEC.
2290
2291 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2292 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2293 ## it gives for choosing between the alternatives seems to be "Use
2294 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2295 ## the BSD world." I'll assume that these are instructions for
2296 ## handling two odd situations, and that every other situation
2297 ## should use mips.h and usg5-2-2, they being listed first.
2298 mips-mips-usg* )
2299 machine=mips4
2300 ## Fall through to the general code at the bottom to decide on the OS.
2301 ;;
2302 mips-mips-riscos4* )
2303 machine=mips4 opsys=bsd4-3
2304 NON_GNU_CC="cc -systype bsd43"
2305 NON_GNU_CPP="cc -systype bsd43 -E"
2306 ;;
2307 mips-mips-riscos5* )
2308 machine=mips4 opsys=riscos5
2309 NON_GNU_CC="cc -systype bsd43"
2310 NON_GNU_CPP="cc -systype bsd43 -E"
2311 ;;
2312 mips-mips-bsd* )
2313 machine=mips opsys=bsd4-3
2314 ;;
2315 mips-mips-* )
2316 machine=mips opsys=usg5-2-2
2317 ;;
2318
2319 ## NeXT
2320 m68*-next-* | m68k-*-nextstep* )
2321 machine=m68k opsys=nextstep
2322 ;;
2323
2324 ## The complete machine from National Semiconductor
2325 ns32k-ns-genix* )
2326 machine=ns32000 opsys=usg5-2
2327 ;;
2328
2329 ## NCR machines
2330 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2331 machine=tower32 opsys=usg5-2-2
2332 ;;
2333 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2334 machine=tower32v3 opsys=usg5-3
2335 ;;
2336
2337 ## NEC EWS4800
2338 mips-nec-sysv4*)
2339 machine=ews4800 opsys=ux4800
2340 ;;
2341
2342 ## Nixdorf Targon 31
2343 m68*-nixdorf-sysv* )
2344 machine=targon31 opsys=usg5-2-2
2345 ;;
2346
2347 ## Nu (TI or LMI)
2348 m68*-nu-sysv* )
2349 machine=nu opsys=usg5-2
2350 ;;
2351
2352 ## Plexus
2353 m68*-plexus-sysv* )
2354 machine=plexus opsys=usg5-2
2355 ;;
2356
2357 ## Pyramid machines
2358 ## I don't really have any idea what sort of processor the Pyramid has,
2359 ## so I'm assuming it is its own architecture.
2360 pyramid-pyramid-bsd* )
2361 machine=pyramid opsys=bsd4-2
2362 ;;
2363
2364 ## Sequent Balance
2365 ns32k-sequent-bsd4.2* )
2366 machine=sequent opsys=bsd4-2
2367 ;;
2368 ns32k-sequent-bsd4.3* )
2369 machine=sequent opsys=bsd4-3
2370 ;;
2371
2372 ## Siemens Nixdorf
2373 mips-siemens-sysv* | mips-sni-sysv*)
2374 machine=mips-siemens opsys=usg5-4
2375 NON_GNU_CC=/usr/ccs/bin/cc
2376 NON_GNU_CPP=/usr/ccs/lib/cpp
2377 ;;
2378
2379 ## Silicon Graphics machines
2380 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2381 m68*-sgi-iris3.5* )
2382 machine=irist opsys=iris3-5
2383 ;;
2384 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2385 machine=irist opsys=iris3-6
2386 ;;
2387 ## Iris 4D
2388 mips-sgi-irix3* )
2389 machine=iris4d opsys=irix3-3
2390 ;;
2391 mips-sgi-irix4* )
2392 machine=iris4d opsys=irix4-0
2393 ;;
2394 mips-sgi-irix6.5 )
2395 machine=iris4d opsys=irix6-5
2396 # Without defining _LANGUAGE_C, things get masked out in the headers
2397 # so that, for instance, grepping for `free' in stdlib.h fails and
2398 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2399 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2400 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2401 ;;
2402 mips-sgi-irix6* )
2403 machine=iris4d opsys=irix6-0
2404 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2405 # but presumably it does no harm.
2406 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2407 # -32 probably isn't necessary in later v.6s -- anyone know which?
2408 NON_GCC_TEST_OPTIONS=-32
2409 ;;
2410 mips-sgi-irix5.[01]* )
2411 machine=iris4d opsys=irix5-0
2412 ;;
2413 mips-sgi-irix5* | mips-sgi-irix* )
2414 machine=iris4d opsys=irix5-2
2415 ;;
2416
2417 ## SONY machines
2418 m68*-sony-bsd4.2* )
2419 machine=news opsys=bsd4-2
2420 ;;
2421 m68*-sony-bsd4.3* )
2422 machine=news opsys=bsd4-3
2423 ;;
2424 m68*-sony-newsos3* | m68*-sony-news3*)
2425 machine=news opsys=bsd4-3
2426 ;;
2427 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2428 machine=news-risc opsys=bsd4-3
2429 ;;
2430 mips-sony-newsos6* )
2431 machine=news-r6 opsys=newsos6
2432 ;;
2433 mips-sony-news* )
2434 machine=news-risc opsys=newsos5
2435 ;;
2436
2437 ## Stride
2438 m68*-stride-sysv* )
2439 machine=stride opsys=usg5-2
2440 ;;
2441
2442 ## Suns
2443 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2444 machine=sparc opsys=gnu-linux
2445 ;;
2446
2447 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2448 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2449 | rs6000-*-solaris2*)
2450 case "${canonical}" in
2451 m68*-sunos1* ) machine=sun1 ;;
2452 m68*-sunos2* ) machine=sun2 ;;
2453 m68* ) machine=sun3 ;;
2454 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2455 i[3456]86-*-* ) machine=intel386 ;;
2456 powerpcle* ) machine=powerpcle ;;
2457 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2458 sparc* ) machine=sparc ;;
2459 * ) unported=yes ;;
2460 esac
2461 case "${canonical}" in
2462 ## The Sun386 didn't get past 4.0.
2463 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2464 *-sunos4.0* ) opsys=sunos4-0 ;;
2465 *-sunos4.1.[3-9]*noshare )
2466 ## This name is sunos413 instead of sunos4-1-3
2467 ## to avoid a file name conflict on MSDOS.
2468 opsys=sunos413
2469 NON_GNU_CPP=/usr/lib/cpp
2470 NON_GCC_TEST_OPTIONS=-Bstatic
2471 GCC_TEST_OPTIONS=-static
2472 ;;
2473 *-sunos4.1.[3-9]* | *-sunos4shr*)
2474 opsys=sunos4shr
2475 NON_GNU_CPP=/usr/lib/cpp
2476 ;;
2477 *-sunos4* | *-sunos )
2478 opsys=sunos4-1
2479 NON_GCC_TEST_OPTIONS=-Bstatic
2480 GCC_TEST_OPTIONS=-static
2481 ;;
2482 *-sunos5.3* | *-solaris2.3* )
2483 opsys=sol2-3
2484 NON_GNU_CPP=/usr/ccs/lib/cpp
2485 ;;
2486 *-sunos5.4* | *-solaris2.4* )
2487 opsys=sol2-4
2488 NON_GNU_CPP=/usr/ccs/lib/cpp
2489 RANLIB="ar -ts"
2490 ;;
2491 *-sunos5.5* | *-solaris2.5* )
2492 opsys=sol2-5
2493 NON_GNU_CPP=/usr/ccs/lib/cpp
2494 RANLIB="ar -ts"
2495 ;;
2496 *-sunos5.6* | *-solaris2.6* )
2497 opsys=sol2-6
2498 NON_GNU_CPP=/usr/ccs/lib/cpp
2499 RANLIB="ar -ts"
2500 ;;
2501 *-sunos5* | *-solaris* )
2502 opsys=sol2-6
2503 NON_GNU_CPP=/usr/ccs/lib/cpp
2504 ;;
2505 * ) opsys=bsd4-2 ;;
2506 esac
2507 ## Watch out for a compiler that we know will not work.
2508 case "${canonical}" in
2509 *-solaris* | *-sunos5* )
2510 if [ "x$CC" = x/usr/ucb/cc ]; then
2511 ## /usr/ucb/cc doesn't work;
2512 ## we should find some other compiler that does work.
2513 unset CC
2514 fi
2515 ;;
2516 *) ;;
2517 esac
2518 ;;
2519 sparc-*-nextstep* )
2520 machine=sparc opsys=nextstep
2521 ;;
2522
2523 ## Tadpole 68k
2524 m68*-tadpole-sysv* )
2525 machine=tad68k opsys=usg5-3
2526 ;;
2527
2528 ## Tahoe machines
2529 tahoe-tahoe-bsd4.2* )
2530 machine=tahoe opsys=bsd4-2
2531 ;;
2532 tahoe-tahoe-bsd4.3* )
2533 machine=tahoe opsys=bsd4-3
2534 ;;
2535
2536 ## Tandem Integrity S2
2537 mips-tandem-sysv* )
2538 machine=tandem-s2 opsys=usg5-3
2539 ;;
2540
2541 ## Tektronix XD88
2542 m88k-tektronix-sysv3* )
2543 machine=tekxd88 opsys=usg5-3
2544 ;;
2545
2546 ## Tektronix 16000 box (6130?)
2547 ns16k-tektronix-bsd* )
2548 machine=ns16000 opsys=bsd4-2
2549 ;;
2550 ## Tektronix 4300
2551 ## src/m/tek4300.h hints that this is a m68k machine.
2552 m68*-tektronix-bsd* )
2553 machine=tek4300 opsys=bsd4-3
2554 ;;
2555
2556 ## Titan P2 or P3
2557 ## We seem to have lost the machine-description file titan.h!
2558 titan-titan-sysv* )
2559 machine=titan opsys=usg5-3
2560 ;;
2561
2562 ## Ustation E30 (SS5E)
2563 m68*-unisys-uniplus* )
2564 machine=ustation opsystem=unipl5-2
2565 ;;
2566
2567 ## Vaxen.
2568 vax-dec-* )
2569 machine=vax
2570 case "${canonical}" in
2571 *-bsd4.1* ) opsys=bsd4-1 ;;
2572 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2573 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2574 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2575 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2576 *-vms* ) opsys=vms ;;
2577 * ) unported=yes
2578 esac
2579 ;;
2580
2581 ## Whitechapel MG1
2582 ns16k-whitechapel-* )
2583 machine=mg1
2584 ## We don't know what sort of OS runs on these; we'll let the
2585 ## operating system guessing code below try.
2586 ;;
2587
2588 ## Wicat
2589 m68*-wicat-sysv* )
2590 machine=wicat opsys=usg5-2
2591 ;;
2592
2593 ## IA-64
2594 ia64*-*-linux* )
2595 machine=ia64 opsys=gnu-linux
2596 ;;
2597
2598 ## Intel 386 machines where we don't care about the manufacturer
2599 i[3456]86-*-* )
2600 machine=intel386
2601 case "${canonical}" in
2602 *-cygwin ) opsys=cygwin ;;
2603 *-darwin* ) opsys=darwin
2604 CPP="${CC-cc} -E -no-cpp-precomp"
2605 ;;
2606 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2607 *-isc2.2* ) opsys=isc2-2 ;;
2608 *-isc4.0* ) opsys=isc4-0 ;;
2609 *-isc4.* ) opsys=isc4-1
2610 GCC_TEST_OPTIONS=-posix
2611 NON_GCC_TEST_OPTIONS=-Xp
2612 ;;
2613 *-isc* ) opsys=isc3-0 ;;
2614 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2615 *-esix* ) opsys=esix ;;
2616 *-xenix* ) opsys=xenix ;;
2617 *-linux-gnu* ) opsys=gnu-linux ;;
2618 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2619 *-sco3.2v5* ) opsys=sco5
2620 NON_GNU_CPP=/lib/cpp
2621 # Prevent -belf from being passed to $CPP.
2622 # /lib/cpp does not accept it.
2623 OVERRIDE_CPPFLAGS=" "
2624 ;;
2625 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2626 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2627 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2628 *-386bsd* ) opsys=386bsd ;;
2629 *-nextstep* ) opsys=nextstep ;;
2630 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2631 esac
2632 ;;
2633
2634 ## m68k Linux-based GNU system
2635 m68k-*-linux-gnu* )
2636 machine=m68k opsys=gnu-linux
2637 ;;
2638
2639 ## Mips Linux-based GNU system
2640 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2641 machine=mips opsys=gnu-linux
2642 ;;
2643
2644 ## UXP/DS
2645 sparc-fujitsu-sysv4* )
2646 machine=sparc opsys=uxpds
2647 NON_GNU_CPP=/usr/ccs/lib/cpp
2648 RANLIB="ar -ts"
2649 ;;
2650
2651 ## UXP/V
2652 f301-fujitsu-uxpv4.1)
2653 machine=f301 opsys=uxpv
2654 ;;
2655
2656 ## Darwin / Mac OS X
2657 powerpc-apple-darwin* )
2658 machine=powermac opsys=darwin
2659 # Define CPP as follows to make autoconf work correctly.
2660 CPP="${CC-cc} -E -no-cpp-precomp"
2661 # Use fink packages if available.
2662 if test -d /sw/include && test -d /sw/lib; then
2663 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2664 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2665 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2666 fi
2667 ;;
2668
2669 ## AMD x86-64 Linux-based GNU system
2670 x86_64-*-linux-gnu* )
2671 machine=amdx86-64 opsys=gnu-linux
2672 ;;
2673
2674 * )
2675 unported=yes
2676 ;;
2677 esac
2678
2679 ### If the code above didn't choose an operating system, just choose
2680 ### an operating system based on the configuration name. You really
2681 ### only want to use this when you have no idea what the right
2682 ### operating system is; if you know what operating systems a machine
2683 ### runs, it's cleaner to make it explicit in the case statement
2684 ### above.
2685 if test x"${opsys}" = x; then
2686 case "${canonical}" in
2687 *-gnu* ) opsys=gnu ;;
2688 *-bsd4.[01] ) opsys=bsd4-1 ;;
2689 *-bsd4.2 ) opsys=bsd4-2 ;;
2690 *-bsd4.3 ) opsys=bsd4-3 ;;
2691 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2692 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2693 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2694 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2695 *-sysv4.2uw* ) opsys=unixware ;;
2696 *-sysv5uw* ) opsys=unixware ;;
2697 *-sysv5OpenUNIX* ) opsys=unixware ;;
2698 *-sysv4.1* | *-sysvr4.1* )
2699 NON_GNU_CPP=/usr/lib/cpp
2700 opsys=usg5-4 ;;
2701 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2702 if [ x$NON_GNU_CPP = x ]; then
2703 if [ -f /usr/ccs/lib/cpp ]; then
2704 NON_GNU_CPP=/usr/ccs/lib/cpp
2705 else
2706 NON_GNU_CPP=/lib/cpp
2707 fi
2708 fi
2709 opsys=usg5-4-2 ;;
2710 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2711 * )
2712 unported=yes
2713 ;;
2714 esac
2715 fi
2716
2717
2718
2719 if test $unported = yes; then
2720 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2721 Check \`etc/MACHINES' for recognized configuration names." >&5
2722 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2723 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2724 { (exit 1); exit 1; }; }
2725 fi
2726
2727 machfile="m/${machine}.h"
2728 opsysfile="s/${opsys}.h"
2729
2730
2731 #### Choose a compiler.
2732 test -n "$CC" && cc_specified=yes
2733
2734 # Save the value of CFLAGS that the user specified.
2735 SPECIFIED_CFLAGS="$CFLAGS"
2736
2737 case ${with_gcc} in
2738 "yes" ) CC="gcc" GCC=yes ;;
2739 "no" ) : ${CC=cc} ;;
2740 * )
2741 esac
2742 ac_ext=c
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_prog_CC+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769 done
2770 done
2771
2772 fi
2773 fi
2774 CC=$ac_cv_prog_CC
2775 if test -n "$CC"; then
2776 echo "$as_me:$LINENO: result: $CC" >&5
2777 echo "${ECHO_T}$CC" >&6
2778 else
2779 echo "$as_me:$LINENO: result: no" >&5
2780 echo "${ECHO_T}no" >&6
2781 fi
2782
2783 fi
2784 if test -z "$ac_cv_prog_CC"; then
2785 ac_ct_CC=$CC
2786 # Extract the first word of "gcc", so it can be a program name with args.
2787 set dummy gcc; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$ac_ct_CC"; then
2794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_ac_ct_CC="gcc"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809
2810 fi
2811 fi
2812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2813 if test -n "$ac_ct_CC"; then
2814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2815 echo "${ECHO_T}$ac_ct_CC" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2819 fi
2820
2821 CC=$ac_ct_CC
2822 else
2823 CC="$ac_cv_prog_CC"
2824 fi
2825
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}cc; ac_word=$2
2830 echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832 if test "${ac_cv_prog_CC+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_CC="${ac_tool_prefix}cc"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851
2852 fi
2853 fi
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856 echo "$as_me:$LINENO: result: $CC" >&5
2857 echo "${ECHO_T}$CC" >&6
2858 else
2859 echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6
2861 fi
2862
2863 fi
2864 if test -z "$ac_cv_prog_CC"; then
2865 ac_ct_CC=$CC
2866 # Extract the first word of "cc", so it can be a program name with args.
2867 set dummy cc; ac_word=$2
2868 echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 if test -n "$ac_ct_CC"; then
2874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_ac_ct_CC="cc"
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887 done
2888 done
2889
2890 fi
2891 fi
2892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2893 if test -n "$ac_ct_CC"; then
2894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2895 echo "${ECHO_T}$ac_ct_CC" >&6
2896 else
2897 echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6
2899 fi
2900
2901 CC=$ac_ct_CC
2902 else
2903 CC="$ac_cv_prog_CC"
2904 fi
2905
2906 fi
2907 if test -z "$CC"; then
2908 # Extract the first word of "cc", so it can be a program name with args.
2909 set dummy cc; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 ac_prog_rejected=no
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2927 ac_prog_rejected=yes
2928 continue
2929 fi
2930 ac_cv_prog_CC="cc"
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936
2937 if test $ac_prog_rejected = yes; then
2938 # We found a bogon in the path, so make sure we never use it.
2939 set dummy $ac_cv_prog_CC
2940 shift
2941 if test $# != 0; then
2942 # We chose a different compiler from the bogus one.
2943 # However, it has the same basename, so the bogon will be chosen
2944 # first if we set CC to just the basename; use the full file name.
2945 shift
2946 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2947 fi
2948 fi
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 echo "$as_me:$LINENO: result: $CC" >&5
2954 echo "${ECHO_T}$CC" >&6
2955 else
2956 echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6
2958 fi
2959
2960 fi
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 for ac_prog in cl
2964 do
2965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2967 echo "$as_me:$LINENO: checking for $ac_word" >&5
2968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2969 if test "${ac_cv_prog_CC+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986 done
2987 done
2988
2989 fi
2990 fi
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993 echo "$as_me:$LINENO: result: $CC" >&5
2994 echo "${ECHO_T}$CC" >&6
2995 else
2996 echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6
2998 fi
2999
3000 test -n "$CC" && break
3001 done
3002 fi
3003 if test -z "$CC"; then
3004 ac_ct_CC=$CC
3005 for ac_prog in cl
3006 do
3007 # Extract the first word of "$ac_prog", so it can be a program name with args.
3008 set dummy $ac_prog; ac_word=$2
3009 echo "$as_me:$LINENO: checking for $ac_word" >&5
3010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 if test -n "$ac_ct_CC"; then
3015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_ac_ct_CC="$ac_prog"
3025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030
3031 fi
3032 fi
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 echo "${ECHO_T}$ac_ct_CC" >&6
3037 else
3038 echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6
3040 fi
3041
3042 test -n "$ac_ct_CC" && break
3043 done
3044
3045 CC=$ac_ct_CC
3046 fi
3047
3048 fi
3049
3050
3051 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3052 See \`config.log' for more details." >&5
3053 echo "$as_me: error: no acceptable C compiler found in \$PATH
3054 See \`config.log' for more details." >&2;}
3055 { (exit 1); exit 1; }; }
3056
3057 # Provide some information about the compiler.
3058 echo "$as_me:$LINENO:" \
3059 "checking for C compiler version" >&5
3060 ac_compiler=`set X $ac_compile; echo $2`
3061 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3062 (eval $ac_compiler --version </dev/null >&5) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }
3066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3067 (eval $ac_compiler -v </dev/null >&5) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }
3071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3072 (eval $ac_compiler -V </dev/null >&5) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }
3076
3077 cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h. */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3083
3084 int
3085 main ()
3086 {
3087
3088 ;
3089 return 0;
3090 }
3091 _ACEOF
3092 ac_clean_files_save=$ac_clean_files
3093 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3094 # Try to create an executable without -o first, disregard a.out.
3095 # It will help us diagnose broken compilers, and finding out an intuition
3096 # of exeext.
3097 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3098 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3099 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3101 (eval $ac_link_default) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 # Find the output, starting from the most likely. This scheme is
3106 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3107 # resort.
3108
3109 # Be careful to initialize this variable, since it used to be cached.
3110 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3111 ac_cv_exeext=
3112 # b.out is created by i960 compilers.
3113 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3114 do
3115 test -f "$ac_file" || continue
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3118 ;;
3119 conftest.$ac_ext )
3120 # This is the source file.
3121 ;;
3122 [ab].out )
3123 # We found the default executable, but exeext='' is most
3124 # certainly right.
3125 break;;
3126 *.* )
3127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 # FIXME: I believe we export ac_cv_exeext for Libtool,
3129 # but it would be cool to find out if it's true. Does anybody
3130 # maintain Libtool? --akim.
3131 export ac_cv_exeext
3132 break;;
3133 * )
3134 break;;
3135 esac
3136 done
3137 else
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3140
3141 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3142 See \`config.log' for more details." >&5
3143 echo "$as_me: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&2;}
3145 { (exit 77); exit 77; }; }
3146 fi
3147
3148 ac_exeext=$ac_cv_exeext
3149 echo "$as_me:$LINENO: result: $ac_file" >&5
3150 echo "${ECHO_T}$ac_file" >&6
3151
3152 # Check the compiler produces executables we can run. If not, either
3153 # the compiler is broken, or we cross compile.
3154 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157 # If not cross compiling, check that we can run a simple program.
3158 if test "$cross_compiling" != yes; then
3159 if { ac_try='./$ac_file'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 (eval $ac_try) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 cross_compiling=no
3166 else
3167 if test "$cross_compiling" = maybe; then
3168 cross_compiling=yes
3169 else
3170 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3171 If you meant to cross compile, use \`--host'.
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: cannot run C compiled programs.
3174 If you meant to cross compile, use \`--host'.
3175 See \`config.log' for more details." >&2;}
3176 { (exit 1); exit 1; }; }
3177 fi
3178 fi
3179 fi
3180 echo "$as_me:$LINENO: result: yes" >&5
3181 echo "${ECHO_T}yes" >&6
3182
3183 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3184 ac_clean_files=$ac_clean_files_save
3185 # Check the compiler produces executables we can run. If not, either
3186 # the compiler is broken, or we cross compile.
3187 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3188 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3189 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3190 echo "${ECHO_T}$cross_compiling" >&6
3191
3192 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3193 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3195 (eval $ac_link) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; then
3199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3201 # work properly (i.e., refer to `conftest.exe'), while it won't with
3202 # `rm'.
3203 for ac_file in conftest.exe conftest conftest.*; do
3204 test -f "$ac_file" || continue
3205 case $ac_file in
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3208 export ac_cv_exeext
3209 break;;
3210 * ) break;;
3211 esac
3212 done
3213 else
3214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3215 See \`config.log' for more details." >&5
3216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3217 See \`config.log' for more details." >&2;}
3218 { (exit 1); exit 1; }; }
3219 fi
3220
3221 rm -f conftest$ac_cv_exeext
3222 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3223 echo "${ECHO_T}$ac_cv_exeext" >&6
3224
3225 rm -f conftest.$ac_ext
3226 EXEEXT=$ac_cv_exeext
3227 ac_exeext=$EXEEXT
3228 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3230 if test "${ac_cv_objext+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h. */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3239
3240 int
3241 main ()
3242 {
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.o conftest.obj
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; then
3254 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3255 case $ac_file in
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3258 break;;
3259 esac
3260 done
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3266 See \`config.log' for more details." >&5
3267 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3268 See \`config.log' for more details." >&2;}
3269 { (exit 1); exit 1; }; }
3270 fi
3271
3272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3273 fi
3274 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3275 echo "${ECHO_T}$ac_cv_objext" >&6
3276 OBJEXT=$ac_cv_objext
3277 ac_objext=$OBJEXT
3278 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3279 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3280 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289
3290 int
3291 main ()
3292 {
3293 #ifndef __GNUC__
3294 choke me
3295 #endif
3296
3297 ;
3298 return 0;
3299 }
3300 _ACEOF
3301 rm -f conftest.$ac_objext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3303 (eval $ac_compile) 2>conftest.er1
3304 ac_status=$?
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try='test -s conftest.$ac_objext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_prog_cc_g=yes
3381 else
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 ac_cv_prog_cc_g=no
3386 fi
3387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3388 fi
3389 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3391 if test "$ac_test_CFLAGS" = set; then
3392 CFLAGS=$ac_save_CFLAGS
3393 elif test $ac_cv_prog_cc_g = yes; then
3394 if test "$GCC" = yes; then
3395 CFLAGS="-g -O2"
3396 else
3397 CFLAGS="-g"
3398 fi
3399 else
3400 if test "$GCC" = yes; then
3401 CFLAGS="-O2"
3402 else
3403 CFLAGS=
3404 fi
3405 fi
3406 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3407 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3408 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 ac_cv_prog_cc_stdc=no
3412 ac_save_CC=$CC
3413 cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h. */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #include <stdarg.h>
3420 #include <stdio.h>
3421 #include <sys/types.h>
3422 #include <sys/stat.h>
3423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3424 struct buf { int x; };
3425 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3426 static char *e (p, i)
3427 char **p;
3428 int i;
3429 {
3430 return p[i];
3431 }
3432 static char *f (char * (*g) (char **, int), char **p, ...)
3433 {
3434 char *s;
3435 va_list v;
3436 va_start (v,p);
3437 s = g (p, va_arg (v,int));
3438 va_end (v);
3439 return s;
3440 }
3441
3442 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3443 function prototypes and stuff, but not '\xHH' hex character constants.
3444 These don't provoke an error unfortunately, instead are silently treated
3445 as 'x'. The following induces an error, until -std1 is added to get
3446 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3447 array size at least. It's necessary to write '\x00'==0 to get something
3448 that's true only with -std1. */
3449 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3450
3451 int test (int i, double x);
3452 struct s1 {int (*f) (int a);};
3453 struct s2 {int (*f) (double a);};
3454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3455 int argc;
3456 char **argv;
3457 int
3458 main ()
3459 {
3460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 # Don't try gcc -ansi; that turns off useful extensions and
3466 # breaks some systems' header files.
3467 # AIX -qlanglvl=ansi
3468 # Ultrix and OSF/1 -std1
3469 # HP-UX 10.20 and later -Ae
3470 # HP-UX older versions -Aa -D_HPUX_SOURCE
3471 # SVR4 -Xc -D__EXTENSIONS__
3472 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3473 do
3474 CC="$ac_save_CC $ac_arg"
3475 rm -f conftest.$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 ac_cv_prog_cc_stdc=$ac_arg
3497 break
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 fi
3503 rm -f conftest.err conftest.$ac_objext
3504 done
3505 rm -f conftest.$ac_ext conftest.$ac_objext
3506 CC=$ac_save_CC
3507
3508 fi
3509
3510 case "x$ac_cv_prog_cc_stdc" in
3511 x|xno)
3512 echo "$as_me:$LINENO: result: none needed" >&5
3513 echo "${ECHO_T}none needed" >&6 ;;
3514 *)
3515 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3516 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3517 CC="$CC $ac_cv_prog_cc_stdc" ;;
3518 esac
3519
3520 # Some people use a C++ compiler to compile C. Since we use `exit',
3521 # in C++ we need to declare it. In case someone uses the same compiler
3522 # for both compiling C and C++ we need to have the C++ compiler decide
3523 # the declaration of exit, since it's the most demanding environment.
3524 cat >conftest.$ac_ext <<_ACEOF
3525 #ifndef __cplusplus
3526 choke me
3527 #endif
3528 _ACEOF
3529 rm -f conftest.$ac_objext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest.$ac_objext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3550 for ac_declaration in \
3551 '' \
3552 'extern "C" void std::exit (int) throw (); using std::exit;' \
3553 'extern "C" void std::exit (int); using std::exit;' \
3554 'extern "C" void exit (int) throw ();' \
3555 'extern "C" void exit (int);' \
3556 'void exit (int);'
3557 do
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 $ac_declaration
3565 #include <stdlib.h>
3566 int
3567 main ()
3568 {
3569 exit (42);
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } &&
3589 { ac_try='test -s conftest.$ac_objext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 :
3596 else
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600 continue
3601 fi
3602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603 cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h. */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 $ac_declaration
3610 int
3611 main ()
3612 {
3613 exit (42);
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 rm -f conftest.$ac_objext
3619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620 (eval $ac_compile) 2>conftest.er1
3621 ac_status=$?
3622 grep -v '^ *+' conftest.er1 >conftest.err
3623 rm -f conftest.er1
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; } &&
3633 { ac_try='test -s conftest.$ac_objext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3639 break
3640 else
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644 fi
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646 done
3647 rm -f conftest*
3648 if test -n "$ac_declaration"; then
3649 echo '#ifdef __cplusplus' >>confdefs.h
3650 echo $ac_declaration >>confdefs.h
3651 echo '#endif' >>confdefs.h
3652 fi
3653
3654 else
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658 fi
3659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666
3667 # On Suns, sometimes $CPP names a directory.
3668 if test -n "$CPP" && test -d "$CPP"; then
3669 CPP=
3670 fi
3671
3672 #### Some systems specify a CPP to use unless we are using GCC.
3673 #### Now that we know whether we are using GCC, we can decide whether
3674 #### to use that one.
3675 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3676 then
3677 CPP="$NON_GNU_CPP"
3678 fi
3679
3680 #### Some systems specify a CC to use unless we are using GCC.
3681 #### Now that we know whether we are using GCC, we can decide whether
3682 #### to use that one.
3683 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3684 test x$cc_specified != xyes
3685 then
3686 CC="$NON_GNU_CC"
3687 fi
3688
3689 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3690 then
3691 CC="$CC $GCC_TEST_OPTIONS"
3692 fi
3693
3694 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3695 then
3696 CC="$CC $NON_GCC_TEST_OPTIONS"
3697 fi
3698
3699
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3706 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3707 # On Suns, sometimes $CPP names a directory.
3708 if test -n "$CPP" && test -d "$CPP"; then
3709 CPP=
3710 fi
3711 if test -z "$CPP"; then
3712 if test "${ac_cv_prog_CPP+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715 # Double quotes because CPP needs to be expanded
3716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3717 do
3718 ac_preproc_ok=false
3719 for ac_c_preproc_warn_flag in '' yes
3720 do
3721 # Use a header file that comes with gcc, so configuring glibc
3722 # with a fresh cross-compiler works.
3723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3724 # <limits.h> exists even on freestanding compilers.
3725 # On the NeXT, cc -E runs the code through the compiler's parser,
3726 # not just through cpp. "Syntax error" is here to catch this case.
3727 cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h. */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 #ifdef __STDC__
3734 # include <limits.h>
3735 #else
3736 # include <assert.h>
3737 #endif
3738 Syntax error
3739 _ACEOF
3740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } >/dev/null; then
3748 if test -s conftest.err; then
3749 ac_cpp_err=$ac_c_preproc_warn_flag
3750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3751 else
3752 ac_cpp_err=
3753 fi
3754 else
3755 ac_cpp_err=yes
3756 fi
3757 if test -z "$ac_cpp_err"; then
3758 :
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 # Broken: fails on valid input.
3764 continue
3765 fi
3766 rm -f conftest.err conftest.$ac_ext
3767
3768 # OK, works on sane cases. Now check whether non-existent headers
3769 # can be detected and how.
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #include <ac_nonexistent.h>
3777 _ACEOF
3778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } >/dev/null; then
3786 if test -s conftest.err; then
3787 ac_cpp_err=$ac_c_preproc_warn_flag
3788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3789 else
3790 ac_cpp_err=
3791 fi
3792 else
3793 ac_cpp_err=yes
3794 fi
3795 if test -z "$ac_cpp_err"; then
3796 # Broken: success on invalid input.
3797 continue
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 # Passes both tests.
3803 ac_preproc_ok=:
3804 break
3805 fi
3806 rm -f conftest.err conftest.$ac_ext
3807
3808 done
3809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3810 rm -f conftest.err conftest.$ac_ext
3811 if $ac_preproc_ok; then
3812 break
3813 fi
3814
3815 done
3816 ac_cv_prog_CPP=$CPP
3817
3818 fi
3819 CPP=$ac_cv_prog_CPP
3820 else
3821 ac_cv_prog_CPP=$CPP
3822 fi
3823 echo "$as_me:$LINENO: result: $CPP" >&5
3824 echo "${ECHO_T}$CPP" >&6
3825 ac_preproc_ok=false
3826 for ac_c_preproc_warn_flag in '' yes
3827 do
3828 # Use a header file that comes with gcc, so configuring glibc
3829 # with a fresh cross-compiler works.
3830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3831 # <limits.h> exists even on freestanding compilers.
3832 # On the NeXT, cc -E runs the code through the compiler's parser,
3833 # not just through cpp. "Syntax error" is here to catch this case.
3834 cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h. */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3840 #ifdef __STDC__
3841 # include <limits.h>
3842 #else
3843 # include <assert.h>
3844 #endif
3845 Syntax error
3846 _ACEOF
3847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } >/dev/null; then
3855 if test -s conftest.err; then
3856 ac_cpp_err=$ac_c_preproc_warn_flag
3857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3858 else
3859 ac_cpp_err=
3860 fi
3861 else
3862 ac_cpp_err=yes
3863 fi
3864 if test -z "$ac_cpp_err"; then
3865 :
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 # Broken: fails on valid input.
3871 continue
3872 fi
3873 rm -f conftest.err conftest.$ac_ext
3874
3875 # OK, works on sane cases. Now check whether non-existent headers
3876 # can be detected and how.
3877 cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h. */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3883 #include <ac_nonexistent.h>
3884 _ACEOF
3885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } >/dev/null; then
3893 if test -s conftest.err; then
3894 ac_cpp_err=$ac_c_preproc_warn_flag
3895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3896 else
3897 ac_cpp_err=
3898 fi
3899 else
3900 ac_cpp_err=yes
3901 fi
3902 if test -z "$ac_cpp_err"; then
3903 # Broken: success on invalid input.
3904 continue
3905 else
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909 # Passes both tests.
3910 ac_preproc_ok=:
3911 break
3912 fi
3913 rm -f conftest.err conftest.$ac_ext
3914
3915 done
3916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917 rm -f conftest.err conftest.$ac_ext
3918 if $ac_preproc_ok; then
3919 :
3920 else
3921 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3922 See \`config.log' for more details." >&5
3923 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3924 See \`config.log' for more details." >&2;}
3925 { (exit 1); exit 1; }; }
3926 fi
3927
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934
3935 echo "$as_me:$LINENO: checking for egrep" >&5
3936 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3937 if test "${ac_cv_prog_egrep+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3941 then ac_cv_prog_egrep='grep -E'
3942 else ac_cv_prog_egrep='egrep'
3943 fi
3944 fi
3945 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3946 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3947 EGREP=$ac_cv_prog_egrep
3948
3949
3950
3951 echo "$as_me:$LINENO: checking for AIX" >&5
3952 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #ifdef _AIX
3960 yes
3961 #endif
3962
3963 _ACEOF
3964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3965 $EGREP "yes" >/dev/null 2>&1; then
3966 echo "$as_me:$LINENO: result: yes" >&5
3967 echo "${ECHO_T}yes" >&6
3968 cat >>confdefs.h <<\_ACEOF
3969 #define _ALL_SOURCE 1
3970 _ACEOF
3971
3972 else
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3975 fi
3976 rm -f conftest*
3977
3978
3979
3980 cat >>confdefs.h <<\_ACEOF
3981 #define _GNU_SOURCE 1
3982 _ACEOF
3983
3984
3985
3986 ### Use -Wno-pointer-sign if the compiler supports it
3987 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3988 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3989 SAVE_CFLAGS="$CFLAGS"
3990 CFLAGS="$CFLAGS -Wno-pointer-sign"
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h. */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997
3998 int
3999 main ()
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4027 has_option=yes
4028 else
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 has_option=no
4033 fi
4034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4035 if test $has_option = yes; then
4036 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4037 fi
4038 echo "$as_me:$LINENO: result: $has_option" >&5
4039 echo "${ECHO_T}$has_option" >&6
4040 CFLAGS="$SAVE_CFLAGS"
4041 unset has_option
4042 unset SAVE_CFLAGS
4043
4044 #### Some other nice autoconf tests.
4045
4046 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4047 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4048 LN_S=$as_ln_s
4049 if test "$LN_S" = "ln -s"; then
4050 echo "$as_me:$LINENO: result: yes" >&5
4051 echo "${ECHO_T}yes" >&6
4052 else
4053 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4054 echo "${ECHO_T}no, using $LN_S" >&6
4055 fi
4056
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4063 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4064 # On Suns, sometimes $CPP names a directory.
4065 if test -n "$CPP" && test -d "$CPP"; then
4066 CPP=
4067 fi
4068 if test -z "$CPP"; then
4069 if test "${ac_cv_prog_CPP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 # Double quotes because CPP needs to be expanded
4073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4074 do
4075 ac_preproc_ok=false
4076 for ac_c_preproc_warn_flag in '' yes
4077 do
4078 # Use a header file that comes with gcc, so configuring glibc
4079 # with a fresh cross-compiler works.
4080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4081 # <limits.h> exists even on freestanding compilers.
4082 # On the NeXT, cc -E runs the code through the compiler's parser,
4083 # not just through cpp. "Syntax error" is here to catch this case.
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h. */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #ifdef __STDC__
4091 # include <limits.h>
4092 #else
4093 # include <assert.h>
4094 #endif
4095 Syntax error
4096 _ACEOF
4097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } >/dev/null; then
4105 if test -s conftest.err; then
4106 ac_cpp_err=$ac_c_preproc_warn_flag
4107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4108 else
4109 ac_cpp_err=
4110 fi
4111 else
4112 ac_cpp_err=yes
4113 fi
4114 if test -z "$ac_cpp_err"; then
4115 :
4116 else
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 # Broken: fails on valid input.
4121 continue
4122 fi
4123 rm -f conftest.err conftest.$ac_ext
4124
4125 # OK, works on sane cases. Now check whether non-existent headers
4126 # can be detected and how.
4127 cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h. */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 #include <ac_nonexistent.h>
4134 _ACEOF
4135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } >/dev/null; then
4143 if test -s conftest.err; then
4144 ac_cpp_err=$ac_c_preproc_warn_flag
4145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4146 else
4147 ac_cpp_err=
4148 fi
4149 else
4150 ac_cpp_err=yes
4151 fi
4152 if test -z "$ac_cpp_err"; then
4153 # Broken: success on invalid input.
4154 continue
4155 else
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159 # Passes both tests.
4160 ac_preproc_ok=:
4161 break
4162 fi
4163 rm -f conftest.err conftest.$ac_ext
4164
4165 done
4166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4167 rm -f conftest.err conftest.$ac_ext
4168 if $ac_preproc_ok; then
4169 break
4170 fi
4171
4172 done
4173 ac_cv_prog_CPP=$CPP
4174
4175 fi
4176 CPP=$ac_cv_prog_CPP
4177 else
4178 ac_cv_prog_CPP=$CPP
4179 fi
4180 echo "$as_me:$LINENO: result: $CPP" >&5
4181 echo "${ECHO_T}$CPP" >&6
4182 ac_preproc_ok=false
4183 for ac_c_preproc_warn_flag in '' yes
4184 do
4185 # Use a header file that comes with gcc, so configuring glibc
4186 # with a fresh cross-compiler works.
4187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4188 # <limits.h> exists even on freestanding compilers.
4189 # On the NeXT, cc -E runs the code through the compiler's parser,
4190 # not just through cpp. "Syntax error" is here to catch this case.
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h. */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 #ifdef __STDC__
4198 # include <limits.h>
4199 #else
4200 # include <assert.h>
4201 #endif
4202 Syntax error
4203 _ACEOF
4204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev/null; then
4212 if test -s conftest.err; then
4213 ac_cpp_err=$ac_c_preproc_warn_flag
4214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4215 else
4216 ac_cpp_err=
4217 fi
4218 else
4219 ac_cpp_err=yes
4220 fi
4221 if test -z "$ac_cpp_err"; then
4222 :
4223 else
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4226
4227 # Broken: fails on valid input.
4228 continue
4229 fi
4230 rm -f conftest.err conftest.$ac_ext
4231
4232 # OK, works on sane cases. Now check whether non-existent headers
4233 # can be detected and how.
4234 cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h. */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 #include <ac_nonexistent.h>
4241 _ACEOF
4242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null; then
4250 if test -s conftest.err; then
4251 ac_cpp_err=$ac_c_preproc_warn_flag
4252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4253 else
4254 ac_cpp_err=
4255 fi
4256 else
4257 ac_cpp_err=yes
4258 fi
4259 if test -z "$ac_cpp_err"; then
4260 # Broken: success on invalid input.
4261 continue
4262 else
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 # Passes both tests.
4267 ac_preproc_ok=:
4268 break
4269 fi
4270 rm -f conftest.err conftest.$ac_ext
4271
4272 done
4273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274 rm -f conftest.err conftest.$ac_ext
4275 if $ac_preproc_ok; then
4276 :
4277 else
4278 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4279 See \`config.log' for more details." >&5
4280 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4281 See \`config.log' for more details." >&2;}
4282 { (exit 1); exit 1; }; }
4283 fi
4284
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290
4291 # Find a good install program. We prefer a C program (faster),
4292 # so one script is as good as another. But avoid the broken or
4293 # incompatible versions:
4294 # SysV /etc/install, /usr/sbin/install
4295 # SunOS /usr/etc/install
4296 # IRIX /sbin/install
4297 # AIX /bin/install
4298 # AmigaOS /C/install, which installs bootblocks on floppy discs
4299 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4300 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4301 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4302 # OS/2's system install, which has a completely different semantic
4303 # ./install, which can be erroneously created by make from ./install.sh.
4304 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4305 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4306 if test -z "$INSTALL"; then
4307 if test "${ac_cv_path_install+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 # Account for people who put trailing slashes in PATH elements.
4316 case $as_dir/ in
4317 ./ | .// | /cC/* | \
4318 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4319 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4320 /usr/ucb/* ) ;;
4321 *)
4322 # OSF1 and SCO ODT 3.0 have their own names for install.
4323 # Don't use installbsd from OSF since it installs stuff as root
4324 # by default.
4325 for ac_prog in ginstall scoinst install; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4328 if test $ac_prog = install &&
4329 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4330 # AIX install. It has an incompatible calling convention.
4331 :
4332 elif test $ac_prog = install &&
4333 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4334 # program-specific install script used by HP pwplus--don't use.
4335 :
4336 else
4337 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4338 break 3
4339 fi
4340 fi
4341 done
4342 done
4343 ;;
4344 esac
4345 done
4346
4347
4348 fi
4349 if test "${ac_cv_path_install+set}" = set; then
4350 INSTALL=$ac_cv_path_install
4351 else
4352 # As a last resort, use the slow shell script. We don't cache a
4353 # path for INSTALL within a source directory, because that will
4354 # break other packages using the cache if that directory is
4355 # removed, or if the path is relative.
4356 INSTALL=$ac_install_sh
4357 fi
4358 fi
4359 echo "$as_me:$LINENO: result: $INSTALL" >&5
4360 echo "${ECHO_T}$INSTALL" >&6
4361
4362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4363 # It thinks the first close brace ends the variable substitution.
4364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4365
4366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4367
4368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4369
4370 if test "x$RANLIB" = x; then
4371 if test -n "$ac_tool_prefix"; then
4372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_prog_RANLIB+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 if test -n "$RANLIB"; then
4380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4384 do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393 done
4394 done
4395
4396 fi
4397 fi
4398 RANLIB=$ac_cv_prog_RANLIB
4399 if test -n "$RANLIB"; then
4400 echo "$as_me:$LINENO: result: $RANLIB" >&5
4401 echo "${ECHO_T}$RANLIB" >&6
4402 else
4403 echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4405 fi
4406
4407 fi
4408 if test -z "$ac_cv_prog_RANLIB"; then
4409 ac_ct_RANLIB=$RANLIB
4410 # Extract the first word of "ranlib", so it can be a program name with args.
4411 set dummy ranlib; ac_word=$2
4412 echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4414 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 if test -n "$ac_ct_RANLIB"; then
4418 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4427 ac_cv_prog_ac_ct_RANLIB="ranlib"
4428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4430 fi
4431 done
4432 done
4433
4434 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4435 fi
4436 fi
4437 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4438 if test -n "$ac_ct_RANLIB"; then
4439 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4440 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4441 else
4442 echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4444 fi
4445
4446 RANLIB=$ac_ct_RANLIB
4447 else
4448 RANLIB="$ac_cv_prog_RANLIB"
4449 fi
4450
4451 fi
4452 # Extract the first word of "install-info", so it can be a program name with args.
4453 set dummy install-info; ac_word=$2
4454 echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 case $INSTALL_INFO in
4460 [\\/]* | ?:[\\/]*)
4461 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4462 ;;
4463 *)
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475 done
4476 done
4477
4478 ;;
4479 esac
4480 fi
4481 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4482
4483 if test -n "$INSTALL_INFO"; then
4484 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4485 echo "${ECHO_T}$INSTALL_INFO" >&6
4486 else
4487 echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6
4489 fi
4490
4491 # Extract the first word of "install-info", so it can be a program name with args.
4492 set dummy install-info; ac_word=$2
4493 echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 case $INSTALL_INFO in
4499 [\\/]* | ?:[\\/]*)
4500 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4501 ;;
4502 *)
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in /usr/sbin
4505 do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4513 fi
4514 done
4515 done
4516
4517 ;;
4518 esac
4519 fi
4520 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4521
4522 if test -n "$INSTALL_INFO"; then
4523 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4524 echo "${ECHO_T}$INSTALL_INFO" >&6
4525 else
4526 echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6
4528 fi
4529
4530 # Extract the first word of "install-info", so it can be a program name with args.
4531 set dummy install-info; ac_word=$2
4532 echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 case $INSTALL_INFO in
4538 [\\/]* | ?:[\\/]*)
4539 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4540 ;;
4541 *)
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in /sbin
4544 do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553 done
4554 done
4555
4556 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4557 ;;
4558 esac
4559 fi
4560 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4561
4562 if test -n "$INSTALL_INFO"; then
4563 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4564 echo "${ECHO_T}$INSTALL_INFO" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4568 fi
4569
4570 # Extract the first word of "gzip", so it can be a program name with args.
4571 set dummy gzip; ac_word=$2
4572 echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577 case $GZIP_PROG in
4578 [\\/]* | ?:[\\/]*)
4579 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4580 ;;
4581 *)
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4592 fi
4593 done
4594 done
4595
4596 ;;
4597 esac
4598 fi
4599 GZIP_PROG=$ac_cv_path_GZIP_PROG
4600
4601 if test -n "$GZIP_PROG"; then
4602 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4603 echo "${ECHO_T}$GZIP_PROG" >&6
4604 else
4605 echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4607 fi
4608
4609
4610
4611 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4612 then
4613 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4614 fi
4615
4616 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4617 then
4618 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4619 fi
4620
4621
4622 late_LDFLAGS=$LDFLAGS
4623 if test "$GCC" = yes; then
4624 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4625 else
4626 LDFLAGS="$LDFLAGS -znocombreloc"
4627 fi
4628
4629 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4630 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4631 cat >conftest.$ac_ext <<_ACEOF
4632 main(){return 0;}
4633 _ACEOF
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4636 (eval $ac_link) 2>conftest.er1
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; } &&
4649 { ac_try='test -s conftest$ac_exeext'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 echo "$as_me:$LINENO: result: yes" >&5
4656 echo "${ECHO_T}yes" >&6
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 LDFLAGS=$late_LDFLAGS
4662 echo "$as_me:$LINENO: result: no" >&5
4663 echo "${ECHO_T}no" >&6
4664 fi
4665 rm -f conftest.err conftest.$ac_objext \
4666 conftest$ac_exeext conftest.$ac_ext
4667
4668 #### Extract some information from the operating system and machine files.
4669
4670 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4671 - which libraries the lib-src programs will want, and
4672 - whether the GNU malloc routines are usable..." >&5
4673 echo "$as_me: checking the machine- and system-dependent files to find out
4674 - which libraries the lib-src programs will want, and
4675 - whether the GNU malloc routines are usable..." >&6;}
4676
4677 ### First figure out CFLAGS (which we use for running the compiler here)
4678 ### and REAL_CFLAGS (which we use for real compilation).
4679 ### The two are the same except on a few systems, where they are made
4680 ### different to work around various lossages. For example,
4681 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4682 ### as implying static linking.
4683
4684 ### If the CFLAGS env var is specified, we use that value
4685 ### instead of the default.
4686
4687 ### It's not important that this name contain the PID; you can't run
4688 ### two configures in the same directory and have anything work
4689 ### anyway.
4690 tempcname="conftest.c"
4691
4692 echo '
4693 #include "'${srcdir}'/src/'${opsysfile}'"
4694 #include "'${srcdir}'/src/'${machfile}'"
4695 #ifndef LIBS_MACHINE
4696 #define LIBS_MACHINE
4697 #endif
4698 #ifndef LIBS_SYSTEM
4699 #define LIBS_SYSTEM
4700 #endif
4701 #ifndef C_SWITCH_SYSTEM
4702 #define C_SWITCH_SYSTEM
4703 #endif
4704 #ifndef C_SWITCH_MACHINE
4705 #define C_SWITCH_MACHINE
4706 #endif
4707 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4708 configure___ c_switch_system=C_SWITCH_SYSTEM
4709 configure___ c_switch_machine=C_SWITCH_MACHINE
4710
4711 #ifndef LIB_X11_LIB
4712 #define LIB_X11_LIB -lX11
4713 #endif
4714
4715 #ifndef LIBX11_MACHINE
4716 #define LIBX11_MACHINE
4717 #endif
4718
4719 #ifndef LIBX11_SYSTEM
4720 #define LIBX11_SYSTEM
4721 #endif
4722 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4723
4724 #ifdef UNEXEC
4725 configure___ unexec=UNEXEC
4726 #else
4727 configure___ unexec=unexec.o
4728 #endif
4729
4730 #ifdef SYSTEM_MALLOC
4731 configure___ system_malloc=yes
4732 #else
4733 configure___ system_malloc=no
4734 #endif
4735
4736 #ifdef USE_MMAP_FOR_BUFFERS
4737 configure___ use_mmap_for_buffers=yes
4738 #else
4739 configure___ use_mmap_for_buffers=no
4740 #endif
4741
4742 #ifndef C_DEBUG_SWITCH
4743 #define C_DEBUG_SWITCH -g
4744 #endif
4745
4746 #ifndef C_OPTIMIZE_SWITCH
4747 #ifdef __GNUC__
4748 #define C_OPTIMIZE_SWITCH -O2
4749 #else
4750 #define C_OPTIMIZE_SWITCH -O
4751 #endif
4752 #endif
4753
4754 #ifndef C_WARNINGS_SWITCH
4755 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4756 #endif
4757
4758 #ifndef LD_SWITCH_MACHINE
4759 #define LD_SWITCH_MACHINE
4760 #endif
4761
4762 #ifndef LD_SWITCH_SYSTEM
4763 #define LD_SWITCH_SYSTEM
4764 #endif
4765
4766 #ifndef LD_SWITCH_X_SITE_AUX
4767 #define LD_SWITCH_X_SITE_AUX
4768 #endif
4769
4770 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4771 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4772
4773 #ifdef THIS_IS_CONFIGURE
4774
4775 /* Get the CFLAGS for tests in configure. */
4776 #ifdef __GNUC__
4777 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4778 #else
4779 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4780 #endif
4781
4782 #else /* not THIS_IS_CONFIGURE */
4783
4784 /* Get the CFLAGS for real compilation. */
4785 #ifdef __GNUC__
4786 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4787 #else
4788 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4789 #endif
4790
4791 #endif /* not THIS_IS_CONFIGURE */
4792 ' > ${tempcname}
4793
4794 # The value of CPP is a quoted variable reference, so we need to do this
4795 # to get its actual value...
4796 CPP=`eval "echo $CPP"`
4797 eval `${CPP} -Isrc ${tempcname} \
4798 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4799 if test "x$SPECIFIED_CFLAGS" = x; then
4800 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4801 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4802 else
4803 REAL_CFLAGS="$CFLAGS"
4804 fi
4805 rm ${tempcname}
4806
4807 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4808
4809 ### Make sure subsequent tests use flags consistent with the build flags.
4810
4811 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4812 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4813 else
4814 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4815 fi
4816
4817
4818
4819 # Check whether --enable-largefile or --disable-largefile was given.
4820 if test "${enable_largefile+set}" = set; then
4821 enableval="$enable_largefile"
4822
4823 fi;
4824 if test "$enable_largefile" != no; then
4825
4826 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4827 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4828 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 ac_cv_sys_largefile_CC=no
4832 if test "$GCC" != yes; then
4833 ac_save_CC=$CC
4834 while :; do
4835 # IRIX 6.2 and later do not support large files by default,
4836 # so use the C compiler's -n32 option if that helps.
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 #include <sys/types.h>
4844 /* Check that off_t can represent 2**63 - 1 correctly.
4845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4846 since some C++ compilers masquerading as C compilers
4847 incorrectly reject 9223372036854775807. */
4848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4850 && LARGE_OFF_T % 2147483647 == 1)
4851 ? 1 : -1];
4852 int
4853 main ()
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try='test -s conftest.$ac_objext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 break
4882 else
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 fi
4887 rm -f conftest.err conftest.$ac_objext
4888 CC="$CC -n32"
4889 rm -f conftest.$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>conftest.er1
4892 ac_status=$?
4893 grep -v '^ *+' conftest.er1 >conftest.err
4894 rm -f conftest.er1
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_sys_largefile_CC=' -n32'; break
4911 else
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4914
4915 fi
4916 rm -f conftest.err conftest.$ac_objext
4917 break
4918 done
4919 CC=$ac_save_CC
4920 rm -f conftest.$ac_ext
4921 fi
4922 fi
4923 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4924 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4925 if test "$ac_cv_sys_largefile_CC" != no; then
4926 CC=$CC$ac_cv_sys_largefile_CC
4927 fi
4928
4929 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4930 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4931 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 while :; do
4935 ac_cv_sys_file_offset_bits=no
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <sys/types.h>
4943 /* Check that off_t can represent 2**63 - 1 correctly.
4944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4945 since some C++ compilers masquerading as C compilers
4946 incorrectly reject 9223372036854775807. */
4947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4949 && LARGE_OFF_T % 2147483647 == 1)
4950 ? 1 : -1];
4951 int
4952 main ()
4953 {
4954
4955 ;
4956 return 0;
4957 }
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try='test -s conftest.$ac_objext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 break
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 fi
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4987 cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h. */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 #define _FILE_OFFSET_BITS 64
4994 #include <sys/types.h>
4995 /* Check that off_t can represent 2**63 - 1 correctly.
4996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4997 since some C++ compilers masquerading as C compilers
4998 incorrectly reject 9223372036854775807. */
4999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5001 && LARGE_OFF_T % 2147483647 == 1)
5002 ? 1 : -1];
5003 int
5004 main ()
5005 {
5006
5007 ;
5008 return 0;
5009 }
5010 _ACEOF
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>conftest.er1
5014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_sys_file_offset_bits=64; break
5033 else
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5036
5037 fi
5038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5039 break
5040 done
5041 fi
5042 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5043 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5044 if test "$ac_cv_sys_file_offset_bits" != no; then
5045
5046 cat >>confdefs.h <<_ACEOF
5047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5048 _ACEOF
5049
5050 fi
5051 rm -f conftest*
5052 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5053 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5054 if test "${ac_cv_sys_large_files+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057 while :; do
5058 ac_cv_sys_large_files=no
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 #include <sys/types.h>
5066 /* Check that off_t can represent 2**63 - 1 correctly.
5067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5068 since some C++ compilers masquerading as C compilers
5069 incorrectly reject 9223372036854775807. */
5070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5072 && LARGE_OFF_T % 2147483647 == 1)
5073 ? 1 : -1];
5074 int
5075 main ()
5076 {
5077
5078 ;
5079 return 0;
5080 }
5081 _ACEOF
5082 rm -f conftest.$ac_objext
5083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5084 (eval $ac_compile) 2>conftest.er1
5085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 (eval $ac_try) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; } &&
5097 { ac_try='test -s conftest.$ac_objext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 break
5104 else
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5107
5108 fi
5109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 #define _LARGE_FILES 1
5117 #include <sys/types.h>
5118 /* Check that off_t can represent 2**63 - 1 correctly.
5119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5120 since some C++ compilers masquerading as C compilers
5121 incorrectly reject 9223372036854775807. */
5122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5124 && LARGE_OFF_T % 2147483647 == 1)
5125 ? 1 : -1];
5126 int
5127 main ()
5128 {
5129
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5136 (eval $ac_compile) 2>conftest.er1
5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } &&
5143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 (eval $ac_try) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; } &&
5149 { ac_try='test -s conftest.$ac_objext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_cv_sys_large_files=1; break
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 fi
5161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5162 break
5163 done
5164 fi
5165 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5166 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5167 if test "$ac_cv_sys_large_files" != no; then
5168
5169 cat >>confdefs.h <<_ACEOF
5170 #define _LARGE_FILES $ac_cv_sys_large_files
5171 _ACEOF
5172
5173 fi
5174 rm -f conftest*
5175 fi
5176
5177
5178
5179
5180
5181
5182 if test "${with_sound}" != "no"; then
5183 # Sound support for GNU/Linux and the free BSDs.
5184 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5185 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5186 if test "${ac_cv_header_stdc+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h. */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 #include <stdlib.h>
5196 #include <stdarg.h>
5197 #include <string.h>
5198 #include <float.h>
5199
5200 int
5201 main ()
5202 {
5203
5204 ;
5205 return 0;
5206 }
5207 _ACEOF
5208 rm -f conftest.$ac_objext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; } &&
5223 { ac_try='test -s conftest.$ac_objext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_cv_header_stdc=yes
5230 else
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234 ac_cv_header_stdc=no
5235 fi
5236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5237
5238 if test $ac_cv_header_stdc = yes; then
5239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h. */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 #include <string.h>
5247
5248 _ACEOF
5249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5250 $EGREP "memchr" >/dev/null 2>&1; then
5251 :
5252 else
5253 ac_cv_header_stdc=no
5254 fi
5255 rm -f conftest*
5256
5257 fi
5258
5259 if test $ac_cv_header_stdc = yes; then
5260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5261 cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h. */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 #include <stdlib.h>
5268
5269 _ACEOF
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "free" >/dev/null 2>&1; then
5272 :
5273 else
5274 ac_cv_header_stdc=no
5275 fi
5276 rm -f conftest*
5277
5278 fi
5279
5280 if test $ac_cv_header_stdc = yes; then
5281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5282 if test "$cross_compiling" = yes; then
5283 :
5284 else
5285 cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h. */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 #include <ctype.h>
5292 #if ((' ' & 0x0FF) == 0x020)
5293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5295 #else
5296 # define ISLOWER(c) \
5297 (('a' <= (c) && (c) <= 'i') \
5298 || ('j' <= (c) && (c) <= 'r') \
5299 || ('s' <= (c) && (c) <= 'z'))
5300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5301 #endif
5302
5303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5304 int
5305 main ()
5306 {
5307 int i;
5308 for (i = 0; i < 256; i++)
5309 if (XOR (islower (i), ISLOWER (i))
5310 || toupper (i) != TOUPPER (i))
5311 exit(2);
5312 exit (0);
5313 }
5314 _ACEOF
5315 rm -f conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317 (eval $ac_link) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5326 :
5327 else
5328 echo "$as_me: program exited with status $ac_status" >&5
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332 ( exit $ac_status )
5333 ac_cv_header_stdc=no
5334 fi
5335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5336 fi
5337 fi
5338 fi
5339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5341 if test $ac_cv_header_stdc = yes; then
5342
5343 cat >>confdefs.h <<\_ACEOF
5344 #define STDC_HEADERS 1
5345 _ACEOF
5346
5347 fi
5348
5349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5360 inttypes.h stdint.h unistd.h
5361 do
5362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5363 echo "$as_me:$LINENO: checking for $ac_header" >&5
5364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368 cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h. */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 $ac_includes_default
5375
5376 #include <$ac_header>
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 (eval $ac_try) 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 eval "$as_ac_Header=yes"
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 eval "$as_ac_Header=no"
5405 fi
5406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5411 cat >>confdefs.h <<_ACEOF
5412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5413 _ACEOF
5414
5415 fi
5416
5417 done
5418
5419
5420
5421
5422
5423 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5424 do
5425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5427 echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 fi
5432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5434 else
5435 # Is the header compilable?
5436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5438 cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 $ac_includes_default
5445 #include <$ac_header>
5446 _ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; } &&
5462 { ac_try='test -s conftest.$ac_objext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 ac_header_compiler=yes
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 ac_header_compiler=no
5474 fi
5475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5477 echo "${ECHO_T}$ac_header_compiler" >&6
5478
5479 # Is the header present?
5480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 #include <$ac_header>
5489 _ACEOF
5490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } >/dev/null; then
5498 if test -s conftest.err; then
5499 ac_cpp_err=$ac_c_preproc_warn_flag
5500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5501 else
5502 ac_cpp_err=
5503 fi
5504 else
5505 ac_cpp_err=yes
5506 fi
5507 if test -z "$ac_cpp_err"; then
5508 ac_header_preproc=yes
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 ac_header_preproc=no
5514 fi
5515 rm -f conftest.err conftest.$ac_ext
5516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5517 echo "${ECHO_T}$ac_header_preproc" >&6
5518
5519 # So? What about this header?
5520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5521 yes:no: )
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5526 ac_header_preproc=yes
5527 ;;
5528 no:yes:* )
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5541 (
5542 cat <<\_ASBOX
5543 ## ------------------------------------------ ##
5544 ## Report this to the AC_PACKAGE_NAME lists. ##
5545 ## ------------------------------------------ ##
5546 _ASBOX
5547 ) |
5548 sed "s/^/$as_me: WARNING: /" >&2
5549 ;;
5550 esac
5551 echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 eval "$as_ac_Header=\$ac_header_preproc"
5557 fi
5558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5560
5561 fi
5562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5563 cat >>confdefs.h <<_ACEOF
5564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5565 _ACEOF
5566
5567 fi
5568
5569 done
5570
5571 # Emulation library used on NetBSD.
5572 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5573 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5574 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577 ac_check_lib_save_LIBS=$LIBS
5578 LIBS="-lossaudio $LIBS"
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585
5586 /* Override any gcc2 internal prototype to avoid an error. */
5587 #ifdef __cplusplus
5588 extern "C"
5589 #endif
5590 /* We use char because int might match the return type of a gcc2
5591 builtin and then its argument prototype would still apply. */
5592 char _oss_ioctl ();
5593 int
5594 main ()
5595 {
5596 _oss_ioctl ();
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest.$ac_objext conftest$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>conftest.er1
5604 ac_status=$?
5605 grep -v '^ *+' conftest.er1 >conftest.err
5606 rm -f conftest.er1
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_lib_ossaudio__oss_ioctl=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ac_cv_lib_ossaudio__oss_ioctl=no
5628 fi
5629 rm -f conftest.err conftest.$ac_objext \
5630 conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_check_lib_save_LIBS
5632 fi
5633 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5634 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5635 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5636 LIBSOUND=-lossaudio
5637 else
5638 LIBSOUND=
5639 fi
5640
5641
5642
5643 ALSA_REQUIRED=1.0.0
5644 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5645 if test "X${with_pkg_config_prog}" != X; then
5646 PKG_CONFIG="${with_pkg_config_prog}"
5647 fi
5648
5649 succeeded=no
5650
5651 if test -z "$PKG_CONFIG"; then
5652 # Extract the first word of "pkg-config", so it can be a program name with args.
5653 set dummy pkg-config; ac_word=$2
5654 echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 case $PKG_CONFIG in
5660 [\\/]* | ?:[\\/]*)
5661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5662 ;;
5663 *)
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667 IFS=$as_save_IFS
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 break 2
5674 fi
5675 done
5676 done
5677
5678 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5679 ;;
5680 esac
5681 fi
5682 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5683
5684 if test -n "$PKG_CONFIG"; then
5685 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5686 echo "${ECHO_T}$PKG_CONFIG" >&6
5687 else
5688 echo "$as_me:$LINENO: result: no" >&5
5689 echo "${ECHO_T}no" >&6
5690 fi
5691
5692 fi
5693
5694 if test "$PKG_CONFIG" = "no" ; then
5695 HAVE_ALSA=no
5696 else
5697 PKG_CONFIG_MIN_VERSION=0.9.0
5698 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5699 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5700 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5701
5702 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5703 echo "$as_me:$LINENO: result: yes" >&5
5704 echo "${ECHO_T}yes" >&6
5705 succeeded=yes
5706
5707 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5708 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5709 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5710 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5711 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5712
5713 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5714 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5715 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5716 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5717 echo "${ECHO_T}$ALSA_LIBS" >&6
5718 else
5719 echo "$as_me:$LINENO: result: no" >&5
5720 echo "${ECHO_T}no" >&6
5721 ALSA_CFLAGS=""
5722 ALSA_LIBS=""
5723 ## If we have a custom action on failure, don't print errors, but
5724 ## do set a variable so people can do so.
5725 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5726
5727 fi
5728
5729
5730
5731 else
5732 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5733 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5734 fi
5735 fi
5736
5737 if test $succeeded = yes; then
5738 HAVE_ALSA=yes
5739 else
5740 HAVE_ALSA=no
5741 fi
5742
5743 if test $HAVE_ALSA = yes; then
5744 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5745 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5746
5747 cat >>confdefs.h <<\_ACEOF
5748 #define HAVE_ALSA 1
5749 _ACEOF
5750
5751 fi
5752
5753 fi
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5781 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5782 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5783 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5784 sys/utsname.h pwd.h
5785 do
5786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5788 echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 fi
5793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5795 else
5796 # Is the header compilable?
5797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5806 #include <$ac_header>
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 (eval $ac_try) 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; } &&
5823 { ac_try='test -s conftest.$ac_objext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_header_compiler=yes
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 ac_header_compiler=no
5835 fi
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5838 echo "${ECHO_T}$ac_header_compiler" >&6
5839
5840 # Is the header present?
5841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5843 cat >conftest.$ac_ext <<_ACEOF
5844 /* confdefs.h. */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5849 #include <$ac_header>
5850 _ACEOF
5851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev/null; then
5859 if test -s conftest.err; then
5860 ac_cpp_err=$ac_c_preproc_warn_flag
5861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5862 else
5863 ac_cpp_err=
5864 fi
5865 else
5866 ac_cpp_err=yes
5867 fi
5868 if test -z "$ac_cpp_err"; then
5869 ac_header_preproc=yes
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 ac_header_preproc=no
5875 fi
5876 rm -f conftest.err conftest.$ac_ext
5877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5878 echo "${ECHO_T}$ac_header_preproc" >&6
5879
5880 # So? What about this header?
5881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5882 yes:no: )
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5887 ac_header_preproc=yes
5888 ;;
5889 no:yes:* )
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5902 (
5903 cat <<\_ASBOX
5904 ## ------------------------------------------ ##
5905 ## Report this to the AC_PACKAGE_NAME lists. ##
5906 ## ------------------------------------------ ##
5907 _ASBOX
5908 ) |
5909 sed "s/^/$as_me: WARNING: /" >&2
5910 ;;
5911 esac
5912 echo "$as_me:$LINENO: checking for $ac_header" >&5
5913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917 eval "$as_ac_Header=\$ac_header_preproc"
5918 fi
5919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5921
5922 fi
5923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5924 cat >>confdefs.h <<_ACEOF
5925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5926 _ACEOF
5927
5928 fi
5929
5930 done
5931
5932
5933 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5934 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <sys/personality.h>
5942 int
5943 main ()
5944 {
5945 personality (PER_LINUX32)
5946 ;
5947 return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; } &&
5965 { ac_try='test -s conftest.$ac_objext'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 (eval $ac_try) 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 emacs_cv_personality_linux32=yes
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 emacs_cv_personality_linux32=no
5977 fi
5978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5979 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5980 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5981
5982 if test $emacs_cv_personality_linux32 = yes; then
5983
5984 cat >>confdefs.h <<\_ACEOF
5985 #define HAVE_PERSONALITY_LINUX32 1
5986 _ACEOF
5987
5988 fi
5989
5990
5991 for ac_header in term.h
5992 do
5993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h. */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #include <$ac_header>
6006 _ACEOF
6007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev/null; then
6015 if test -s conftest.err; then
6016 ac_cpp_err=$ac_c_preproc_warn_flag
6017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6018 else
6019 ac_cpp_err=
6020 fi
6021 else
6022 ac_cpp_err=yes
6023 fi
6024 if test -z "$ac_cpp_err"; then
6025 eval "$as_ac_Header=yes"
6026 else
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 eval "$as_ac_Header=no"
6031 fi
6032 rm -f conftest.err conftest.$ac_ext
6033 fi
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h <<_ACEOF
6038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6039 _ACEOF
6040
6041 fi
6042
6043 done
6044
6045 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6047 if test "${ac_cv_header_stdc+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 #include <stdlib.h>
6057 #include <stdarg.h>
6058 #include <string.h>
6059 #include <float.h>
6060
6061 int
6062 main ()
6063 {
6064
6065 ;
6066 return 0;
6067 }
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_header_stdc=yes
6091 else
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 ac_cv_header_stdc=no
6096 fi
6097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6098
6099 if test $ac_cv_header_stdc = yes; then
6100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 #include <string.h>
6108
6109 _ACEOF
6110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6111 $EGREP "memchr" >/dev/null 2>&1; then
6112 :
6113 else
6114 ac_cv_header_stdc=no
6115 fi
6116 rm -f conftest*
6117
6118 fi
6119
6120 if test $ac_cv_header_stdc = yes; then
6121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <stdlib.h>
6129
6130 _ACEOF
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 $EGREP "free" >/dev/null 2>&1; then
6133 :
6134 else
6135 ac_cv_header_stdc=no
6136 fi
6137 rm -f conftest*
6138
6139 fi
6140
6141 if test $ac_cv_header_stdc = yes; then
6142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6143 if test "$cross_compiling" = yes; then
6144 :
6145 else
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <ctype.h>
6153 #if ((' ' & 0x0FF) == 0x020)
6154 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6155 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6156 #else
6157 # define ISLOWER(c) \
6158 (('a' <= (c) && (c) <= 'i') \
6159 || ('j' <= (c) && (c) <= 'r') \
6160 || ('s' <= (c) && (c) <= 'z'))
6161 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6162 #endif
6163
6164 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6165 int
6166 main ()
6167 {
6168 int i;
6169 for (i = 0; i < 256; i++)
6170 if (XOR (islower (i), ISLOWER (i))
6171 || toupper (i) != TOUPPER (i))
6172 exit(2);
6173 exit (0);
6174 }
6175 _ACEOF
6176 rm -f conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178 (eval $ac_link) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 :
6188 else
6189 echo "$as_me: program exited with status $ac_status" >&5
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 ( exit $ac_status )
6194 ac_cv_header_stdc=no
6195 fi
6196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6197 fi
6198 fi
6199 fi
6200 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6201 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6202 if test $ac_cv_header_stdc = yes; then
6203
6204 cat >>confdefs.h <<\_ACEOF
6205 #define STDC_HEADERS 1
6206 _ACEOF
6207
6208 fi
6209
6210 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6211 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6212 if test "${ac_cv_header_time+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #include <sys/types.h>
6222 #include <sys/time.h>
6223 #include <time.h>
6224
6225 int
6226 main ()
6227 {
6228 if ((struct tm *) 0)
6229 return 0;
6230 ;
6231 return 0;
6232 }
6233 _ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236 (eval $ac_compile) 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try='test -s conftest.$ac_objext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_header_time=yes
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6259
6260 ac_cv_header_time=no
6261 fi
6262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6263 fi
6264 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6265 echo "${ECHO_T}$ac_cv_header_time" >&6
6266 if test $ac_cv_header_time = yes; then
6267
6268 cat >>confdefs.h <<\_ACEOF
6269 #define TIME_WITH_SYS_TIME 1
6270 _ACEOF
6271
6272 fi
6273
6274 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6275 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6276 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h. */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 $ac_includes_default
6286 int
6287 main ()
6288 {
6289 #ifndef sys_siglist
6290 char *p = (char *) sys_siglist;
6291 #endif
6292
6293 ;
6294 return 0;
6295 }
6296 _ACEOF
6297 rm -f conftest.$ac_objext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6299 (eval $ac_compile) 2>conftest.er1
6300 ac_status=$?
6301 grep -v '^ *+' conftest.er1 >conftest.err
6302 rm -f conftest.er1
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_have_decl_sys_siglist=yes
6319 else
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323 ac_cv_have_decl_sys_siglist=no
6324 fi
6325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326 fi
6327 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6328 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6329 if test $ac_cv_have_decl_sys_siglist = yes; then
6330
6331 cat >>confdefs.h <<_ACEOF
6332 #define HAVE_DECL_SYS_SIGLIST 1
6333 _ACEOF
6334
6335
6336 else
6337 cat >>confdefs.h <<_ACEOF
6338 #define HAVE_DECL_SYS_SIGLIST 0
6339 _ACEOF
6340
6341
6342 fi
6343
6344
6345 if test $ac_cv_have_decl_sys_siglist != yes; then
6346 # For Tru64, at least:
6347 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6348 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6349 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352 cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h. */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 $ac_includes_default
6359 int
6360 main ()
6361 {
6362 #ifndef __sys_siglist
6363 char *p = (char *) __sys_siglist;
6364 #endif
6365
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest.$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>conftest.er1
6373 ac_status=$?
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
6379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; } &&
6385 { ac_try='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_have_decl___sys_siglist=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396 ac_cv_have_decl___sys_siglist=no
6397 fi
6398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6399 fi
6400 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6401 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6402 if test $ac_cv_have_decl___sys_siglist = yes; then
6403
6404 cat >>confdefs.h <<_ACEOF
6405 #define HAVE_DECL___SYS_SIGLIST 1
6406 _ACEOF
6407
6408
6409 else
6410 cat >>confdefs.h <<_ACEOF
6411 #define HAVE_DECL___SYS_SIGLIST 0
6412 _ACEOF
6413
6414
6415 fi
6416
6417
6418 if test $ac_cv_have_decl___sys_siglist = yes; then
6419
6420 cat >>confdefs.h <<\_ACEOF
6421 #define sys_siglist __sys_siglist
6422 _ACEOF
6423
6424 fi
6425 fi
6426 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6427 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6428 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <sys/types.h>
6438 #include <sys/wait.h>
6439 #ifndef WEXITSTATUS
6440 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6441 #endif
6442 #ifndef WIFEXITED
6443 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6444 #endif
6445
6446 int
6447 main ()
6448 {
6449 int s;
6450 wait (&s);
6451 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6452 ;
6453 return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_header_sys_wait_h=yes
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_cv_header_sys_wait_h=no
6483 fi
6484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6485 fi
6486 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6487 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6488 if test $ac_cv_header_sys_wait_h = yes; then
6489
6490 cat >>confdefs.h <<\_ACEOF
6491 #define HAVE_SYS_WAIT_H 1
6492 _ACEOF
6493
6494 fi
6495
6496
6497 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6498 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6499 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 #ifdef TIME_WITH_SYS_TIME
6509 #include <sys/time.h>
6510 #include <time.h>
6511 #else
6512 #ifdef HAVE_SYS_TIME_H
6513 #include <sys/time.h>
6514 #else
6515 #include <time.h>
6516 #endif
6517 #endif
6518 #ifdef HAVE_UTIME_H
6519 #include <utime.h>
6520 #endif
6521 int
6522 main ()
6523 {
6524 static struct utimbuf x; x.actime = x.modtime;
6525 ;
6526 return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531 (eval $ac_compile) 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 emacs_cv_struct_utimbuf=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 emacs_cv_struct_utimbuf=no
6556 fi
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6560 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6561 if test $emacs_cv_struct_utimbuf = yes; then
6562
6563 cat >>confdefs.h <<\_ACEOF
6564 #define HAVE_STRUCT_UTIMBUF 1
6565 _ACEOF
6566
6567 fi
6568
6569 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6570 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6571 if test "${ac_cv_type_signal+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <sys/types.h>
6581 #include <signal.h>
6582 #ifdef signal
6583 # undef signal
6584 #endif
6585 #ifdef __cplusplus
6586 extern "C" void (*signal (int, void (*)(int)))(int);
6587 #else
6588 void (*signal ()) ();
6589 #endif
6590
6591 int
6592 main ()
6593 {
6594 int i;
6595 ;
6596 return 0;
6597 }
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try='test -s conftest.$ac_objext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_type_signal=void
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625 ac_cv_type_signal=int
6626 fi
6627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6628 fi
6629 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6630 echo "${ECHO_T}$ac_cv_type_signal" >&6
6631
6632 cat >>confdefs.h <<_ACEOF
6633 #define RETSIGTYPE $ac_cv_type_signal
6634 _ACEOF
6635
6636
6637
6638 echo "$as_me:$LINENO: checking for speed_t" >&5
6639 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6640 if test "${emacs_cv_speed_t+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h. */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 #include <termios.h>
6650 int
6651 main ()
6652 {
6653 speed_t x = 1;
6654 ;
6655 return 0;
6656 }
6657 _ACEOF
6658 rm -f conftest.$ac_objext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660 (eval $ac_compile) 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; } &&
6673 { ac_try='test -s conftest.$ac_objext'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 (eval $ac_try) 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 emacs_cv_speed_t=yes
6680 else
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684 emacs_cv_speed_t=no
6685 fi
6686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6689 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6690 if test $emacs_cv_speed_t = yes; then
6691
6692 cat >>confdefs.h <<\_ACEOF
6693 #define HAVE_SPEED_T 1
6694 _ACEOF
6695
6696 fi
6697
6698 echo "$as_me:$LINENO: checking for struct timeval" >&5
6699 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6700 if test "${emacs_cv_struct_timeval+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703 cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h. */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 #ifdef TIME_WITH_SYS_TIME
6710 #include <sys/time.h>
6711 #include <time.h>
6712 #else
6713 #ifdef HAVE_SYS_TIME_H
6714 #include <sys/time.h>
6715 #else
6716 #include <time.h>
6717 #endif
6718 #endif
6719 int
6720 main ()
6721 {
6722 static struct timeval x; x.tv_sec = x.tv_usec;
6723 ;
6724 return 0;
6725 }
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729 (eval $ac_compile) 2>conftest.er1
6730 ac_status=$?
6731 grep -v '^ *+' conftest.er1 >conftest.err
6732 rm -f conftest.er1
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; } &&
6742 { ac_try='test -s conftest.$ac_objext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 (eval $ac_try) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 emacs_cv_struct_timeval=yes
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 emacs_cv_struct_timeval=no
6754 fi
6755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6756 fi
6757 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6758 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6759 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6760 if test $emacs_cv_struct_timeval = yes; then
6761
6762 cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_TIMEVAL 1
6764 _ACEOF
6765
6766 fi
6767
6768 echo "$as_me:$LINENO: checking for struct exception" >&5
6769 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6770 if test "${emacs_cv_struct_exception+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 #include <math.h>
6780 int
6781 main ()
6782 {
6783 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6784 ;
6785 return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 emacs_cv_struct_exception=yes
6810 else
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 emacs_cv_struct_exception=no
6815 fi
6816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6817 fi
6818 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6819 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6820 HAVE_EXCEPTION=$emacs_cv_struct_exception
6821 if test $emacs_cv_struct_exception != yes; then
6822
6823 cat >>confdefs.h <<\_ACEOF
6824 #define NO_MATHERR 1
6825 _ACEOF
6826
6827 fi
6828
6829
6830 for ac_header in sys/socket.h
6831 do
6832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6834 echo "$as_me:$LINENO: checking for $ac_header" >&5
6835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 fi
6839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6841 else
6842 # Is the header compilable?
6843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 $ac_includes_default
6852 #include <$ac_header>
6853 _ACEOF
6854 rm -f conftest.$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_header_compiler=yes
6876 else
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880 ac_header_compiler=no
6881 fi
6882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6884 echo "${ECHO_T}$ac_header_compiler" >&6
6885
6886 # Is the header present?
6887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 #include <$ac_header>
6896 _ACEOF
6897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } >/dev/null; then
6905 if test -s conftest.err; then
6906 ac_cpp_err=$ac_c_preproc_warn_flag
6907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6908 else
6909 ac_cpp_err=
6910 fi
6911 else
6912 ac_cpp_err=yes
6913 fi
6914 if test -z "$ac_cpp_err"; then
6915 ac_header_preproc=yes
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920 ac_header_preproc=no
6921 fi
6922 rm -f conftest.err conftest.$ac_ext
6923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6924 echo "${ECHO_T}$ac_header_preproc" >&6
6925
6926 # So? What about this header?
6927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6928 yes:no: )
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6933 ac_header_preproc=yes
6934 ;;
6935 no:yes:* )
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6948 (
6949 cat <<\_ASBOX
6950 ## ------------------------------------------ ##
6951 ## Report this to the AC_PACKAGE_NAME lists. ##
6952 ## ------------------------------------------ ##
6953 _ASBOX
6954 ) |
6955 sed "s/^/$as_me: WARNING: /" >&2
6956 ;;
6957 esac
6958 echo "$as_me:$LINENO: checking for $ac_header" >&5
6959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 eval "$as_ac_Header=\$ac_header_preproc"
6964 fi
6965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6967
6968 fi
6969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6970 cat >>confdefs.h <<_ACEOF
6971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6972 _ACEOF
6973
6974 fi
6975
6976 done
6977
6978
6979 for ac_header in net/if.h
6980 do
6981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982 echo "$as_me:$LINENO: checking for $ac_header" >&5
6983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6994 #if HAVE_SYS_SOCKET_H
6995 #include <sys/socket.h>
6996 #endif
6997
6998 #include <$ac_header>
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try='test -s conftest.$ac_objext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7021 eval "$as_ac_Header=yes"
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 eval "$as_ac_Header=no"
7027 fi
7028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 fi
7030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7033 cat >>confdefs.h <<_ACEOF
7034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7035 _ACEOF
7036
7037 fi
7038
7039 done
7040
7041
7042 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7043 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7044 if test "${ac_cv_struct_tm+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 #include <sys/types.h>
7054 #include <time.h>
7055
7056 int
7057 main ()
7058 {
7059 struct tm *tp; tp->tm_sec;
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>conftest.er1
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_struct_tm=time.h
7086 else
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090 ac_cv_struct_tm=sys/time.h
7091 fi
7092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7095 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7096 if test $ac_cv_struct_tm = sys/time.h; then
7097
7098 cat >>confdefs.h <<\_ACEOF
7099 #define TM_IN_SYS_TIME 1
7100 _ACEOF
7101
7102 fi
7103
7104 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7105 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7106 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <sys/types.h>
7116 #include <$ac_cv_struct_tm>
7117
7118
7119 int
7120 main ()
7121 {
7122 static struct tm ac_aggr;
7123 if (ac_aggr.tm_zone)
7124 return 0;
7125 ;
7126 return 0;
7127 }
7128 _ACEOF
7129 rm -f conftest.$ac_objext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7131 (eval $ac_compile) 2>conftest.er1
7132 ac_status=$?
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; } &&
7144 { ac_try='test -s conftest.$ac_objext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 (eval $ac_try) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 ac_cv_member_struct_tm_tm_zone=yes
7151 else
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7154
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 #include <sys/types.h>
7162 #include <$ac_cv_struct_tm>
7163
7164
7165 int
7166 main ()
7167 {
7168 static struct tm ac_aggr;
7169 if (sizeof ac_aggr.tm_zone)
7170 return 0;
7171 ;
7172 return 0;
7173 }
7174 _ACEOF
7175 rm -f conftest.$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try='test -s conftest.$ac_objext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_member_struct_tm_tm_zone=yes
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 ac_cv_member_struct_tm_tm_zone=no
7202 fi
7203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7204 fi
7205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7206 fi
7207 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7208 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7209 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7210
7211 cat >>confdefs.h <<_ACEOF
7212 #define HAVE_STRUCT_TM_TM_ZONE 1
7213 _ACEOF
7214
7215
7216 fi
7217
7218 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7219
7220 cat >>confdefs.h <<\_ACEOF
7221 #define HAVE_TM_ZONE 1
7222 _ACEOF
7223
7224 else
7225 echo "$as_me:$LINENO: checking for tzname" >&5
7226 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7227 if test "${ac_cv_var_tzname+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h. */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 #include <time.h>
7237 #ifndef tzname /* For SGI. */
7238 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7239 #endif
7240
7241 int
7242 main ()
7243 {
7244 atoi(*tzname);
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 rm -f conftest.$ac_objext conftest$ac_exeext
7250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7251 (eval $ac_link) 2>conftest.er1
7252 ac_status=$?
7253 grep -v '^ *+' conftest.er1 >conftest.err
7254 rm -f conftest.er1
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 (eval $ac_try) 2>&5
7261 ac_status=$?
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; } &&
7264 { ac_try='test -s conftest$ac_exeext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 (eval $ac_try) 2>&5
7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_cv_var_tzname=yes
7271 else
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 ac_cv_var_tzname=no
7276 fi
7277 rm -f conftest.err conftest.$ac_objext \
7278 conftest$ac_exeext conftest.$ac_ext
7279 fi
7280 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7281 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7282 if test $ac_cv_var_tzname = yes; then
7283
7284 cat >>confdefs.h <<\_ACEOF
7285 #define HAVE_TZNAME 1
7286 _ACEOF
7287
7288 fi
7289 fi
7290
7291 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7292 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7293 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296 cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h. */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 #include <time.h>
7303
7304 int
7305 main ()
7306 {
7307 static struct tm ac_aggr;
7308 if (ac_aggr.tm_gmtoff)
7309 return 0;
7310 ;
7311 return 0;
7312 }
7313 _ACEOF
7314 rm -f conftest.$ac_objext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 ac_cv_member_struct_tm_tm_gmtoff=yes
7336 else
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7339
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #include <time.h>
7347
7348 int
7349 main ()
7350 {
7351 static struct tm ac_aggr;
7352 if (sizeof ac_aggr.tm_gmtoff)
7353 return 0;
7354 ;
7355 return 0;
7356 }
7357 _ACEOF
7358 rm -f conftest.$ac_objext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360 (eval $ac_compile) 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } &&
7367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 (eval $ac_try) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; } &&
7373 { ac_try='test -s conftest.$ac_objext'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 (eval $ac_try) 2>&5
7376 ac_status=$?
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_cv_member_struct_tm_tm_gmtoff=yes
7380 else
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384 ac_cv_member_struct_tm_tm_gmtoff=no
7385 fi
7386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387 fi
7388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7389 fi
7390 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7391 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7392 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7393
7394 cat >>confdefs.h <<\_ACEOF
7395 #define HAVE_TM_GMTOFF 1
7396 _ACEOF
7397
7398 fi
7399
7400 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7401 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7402 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h. */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 #if HAVE_SYS_SOCKET_H
7413 #include <sys/socket.h>
7414 #endif
7415 #if HAVE_NET_IF_H
7416 #include <net/if.h>
7417 #endif
7418
7419 int
7420 main ()
7421 {
7422 static struct ifreq ac_aggr;
7423 if (ac_aggr.ifr_flags)
7424 return 0;
7425 ;
7426 return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest.$ac_objext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431 (eval $ac_compile) 2>conftest.er1
7432 ac_status=$?
7433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 (eval $ac_try) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; } &&
7444 { ac_try='test -s conftest.$ac_objext'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 (eval $ac_try) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_cv_member_struct_ifreq_ifr_flags=yes
7451 else
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 $ac_includes_default
7462 #if HAVE_SYS_SOCKET_H
7463 #include <sys/socket.h>
7464 #endif
7465 #if HAVE_NET_IF_H
7466 #include <net/if.h>
7467 #endif
7468
7469 int
7470 main ()
7471 {
7472 static struct ifreq ac_aggr;
7473 if (sizeof ac_aggr.ifr_flags)
7474 return 0;
7475 ;
7476 return 0;
7477 }
7478 _ACEOF
7479 rm -f conftest.$ac_objext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>conftest.er1
7482 ac_status=$?
7483 grep -v '^ *+' conftest.er1 >conftest.err
7484 rm -f conftest.er1
7485 cat conftest.err >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; } &&
7494 { ac_try='test -s conftest.$ac_objext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 (eval $ac_try) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7500 ac_cv_member_struct_ifreq_ifr_flags=yes
7501 else
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7504
7505 ac_cv_member_struct_ifreq_ifr_flags=no
7506 fi
7507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7508 fi
7509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7510 fi
7511 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7512 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7513 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7514
7515 cat >>confdefs.h <<_ACEOF
7516 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7517 _ACEOF
7518
7519
7520 fi
7521 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7522 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7523 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h. */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 $ac_includes_default
7533 #if HAVE_SYS_SOCKET_H
7534 #include <sys/socket.h>
7535 #endif
7536 #if HAVE_NET_IF_H
7537 #include <net/if.h>
7538 #endif
7539
7540 int
7541 main ()
7542 {
7543 static struct ifreq ac_aggr;
7544 if (ac_aggr.ifr_hwaddr)
7545 return 0;
7546 ;
7547 return 0;
7548 }
7549 _ACEOF
7550 rm -f conftest.$ac_objext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7552 (eval $ac_compile) 2>conftest.er1
7553 ac_status=$?
7554 grep -v '^ *+' conftest.er1 >conftest.err
7555 rm -f conftest.er1
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; } &&
7565 { ac_try='test -s conftest.$ac_objext'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7572 else
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7575
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7583 #if HAVE_SYS_SOCKET_H
7584 #include <sys/socket.h>
7585 #endif
7586 #if HAVE_NET_IF_H
7587 #include <net/if.h>
7588 #endif
7589
7590 int
7591 main ()
7592 {
7593 static struct ifreq ac_aggr;
7594 if (sizeof ac_aggr.ifr_hwaddr)
7595 return 0;
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; } &&
7615 { ac_try='test -s conftest.$ac_objext'
7616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 (eval $ac_try) 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; }; then
7621 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7622 else
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7625
7626 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7627 fi
7628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629 fi
7630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7631 fi
7632 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7633 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7634 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7635
7636 cat >>confdefs.h <<_ACEOF
7637 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7638 _ACEOF
7639
7640
7641 fi
7642 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7643 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7644 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 $ac_includes_default
7654 #if HAVE_SYS_SOCKET_H
7655 #include <sys/socket.h>
7656 #endif
7657 #if HAVE_NET_IF_H
7658 #include <net/if.h>
7659 #endif
7660
7661 int
7662 main ()
7663 {
7664 static struct ifreq ac_aggr;
7665 if (ac_aggr.ifr_netmask)
7666 return 0;
7667 ;
7668 return 0;
7669 }
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673 (eval $ac_compile) 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } &&
7680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 (eval $ac_try) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_cv_member_struct_ifreq_ifr_netmask=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 $ac_includes_default
7704 #if HAVE_SYS_SOCKET_H
7705 #include <sys/socket.h>
7706 #endif
7707 #if HAVE_NET_IF_H
7708 #include <net/if.h>
7709 #endif
7710
7711 int
7712 main ()
7713 {
7714 static struct ifreq ac_aggr;
7715 if (sizeof ac_aggr.ifr_netmask)
7716 return 0;
7717 ;
7718 return 0;
7719 }
7720 _ACEOF
7721 rm -f conftest.$ac_objext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7723 (eval $ac_compile) 2>conftest.er1
7724 ac_status=$?
7725 grep -v '^ *+' conftest.er1 >conftest.err
7726 rm -f conftest.er1
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 ac_cv_member_struct_ifreq_ifr_netmask=yes
7743 else
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747 ac_cv_member_struct_ifreq_ifr_netmask=no
7748 fi
7749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7750 fi
7751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7752 fi
7753 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7754 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7755 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7756
7757 cat >>confdefs.h <<_ACEOF
7758 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7759 _ACEOF
7760
7761
7762 fi
7763 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7764 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7765 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 $ac_includes_default
7775 #if HAVE_SYS_SOCKET_H
7776 #include <sys/socket.h>
7777 #endif
7778 #if HAVE_NET_IF_H
7779 #include <net/if.h>
7780 #endif
7781
7782 int
7783 main ()
7784 {
7785 static struct ifreq ac_aggr;
7786 if (ac_aggr.ifr_broadaddr)
7787 return 0;
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794 (eval $ac_compile) 2>conftest.er1
7795 ac_status=$?
7796 grep -v '^ *+' conftest.er1 >conftest.err
7797 rm -f conftest.er1
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } &&
7801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 (eval $ac_try) 2>&5
7804 ac_status=$?
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; } &&
7807 { ac_try='test -s conftest.$ac_objext'
7808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809 (eval $ac_try) 2>&5
7810 ac_status=$?
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); }; }; then
7813 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7814 else
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7817
7818 cat >conftest.$ac_ext <<_ACEOF
7819 /* confdefs.h. */
7820 _ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 $ac_includes_default
7825 #if HAVE_SYS_SOCKET_H
7826 #include <sys/socket.h>
7827 #endif
7828 #if HAVE_NET_IF_H
7829 #include <net/if.h>
7830 #endif
7831
7832 int
7833 main ()
7834 {
7835 static struct ifreq ac_aggr;
7836 if (sizeof ac_aggr.ifr_broadaddr)
7837 return 0;
7838 ;
7839 return 0;
7840 }
7841 _ACEOF
7842 rm -f conftest.$ac_objext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7844 (eval $ac_compile) 2>conftest.er1
7845 ac_status=$?
7846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7857 { ac_try='test -s conftest.$ac_objext'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7864 else
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7869 fi
7870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7871 fi
7872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7873 fi
7874 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7875 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7876 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7877
7878 cat >>confdefs.h <<_ACEOF
7879 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7880 _ACEOF
7881
7882
7883 fi
7884 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7885 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7886 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 $ac_includes_default
7896 #if HAVE_SYS_SOCKET_H
7897 #include <sys/socket.h>
7898 #endif
7899 #if HAVE_NET_IF_H
7900 #include <net/if.h>
7901 #endif
7902
7903 int
7904 main ()
7905 {
7906 static struct ifreq ac_aggr;
7907 if (ac_aggr.ifr_addr)
7908 return 0;
7909 ;
7910 return 0;
7911 }
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 (eval $ac_try) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; } &&
7928 { ac_try='test -s conftest.$ac_objext'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 (eval $ac_try) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934 ac_cv_member_struct_ifreq_ifr_addr=yes
7935 else
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h. */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 $ac_includes_default
7946 #if HAVE_SYS_SOCKET_H
7947 #include <sys/socket.h>
7948 #endif
7949 #if HAVE_NET_IF_H
7950 #include <net/if.h>
7951 #endif
7952
7953 int
7954 main ()
7955 {
7956 static struct ifreq ac_aggr;
7957 if (sizeof ac_aggr.ifr_addr)
7958 return 0;
7959 ;
7960 return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7965 (eval $ac_compile) 2>conftest.er1
7966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest.$ac_objext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_member_struct_ifreq_ifr_addr=yes
7985 else
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989 ac_cv_member_struct_ifreq_ifr_addr=no
7990 fi
7991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7992 fi
7993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7994 fi
7995 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7996 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7997 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7998
7999 cat >>confdefs.h <<_ACEOF
8000 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8001 _ACEOF
8002
8003
8004 fi
8005
8006
8007
8008 echo "$as_me:$LINENO: checking for function prototypes" >&5
8009 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8010 if test "$ac_cv_prog_cc_stdc" != no; then
8011 echo "$as_me:$LINENO: result: yes" >&5
8012 echo "${ECHO_T}yes" >&6
8013
8014 cat >>confdefs.h <<\_ACEOF
8015 #define PROTOTYPES 1
8016 _ACEOF
8017
8018
8019 cat >>confdefs.h <<\_ACEOF
8020 #define __PROTOTYPES 1
8021 _ACEOF
8022
8023 else
8024 echo "$as_me:$LINENO: result: no" >&5
8025 echo "${ECHO_T}no" >&6
8026 fi
8027
8028 echo "$as_me:$LINENO: checking for working volatile" >&5
8029 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8030 if test "${ac_cv_c_volatile+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039
8040 int
8041 main ()
8042 {
8043
8044 volatile int x;
8045 int * volatile y;
8046 ;
8047 return 0;
8048 }
8049 _ACEOF
8050 rm -f conftest.$ac_objext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; } &&
8065 { ac_try='test -s conftest.$ac_objext'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8071 ac_cv_c_volatile=yes
8072 else
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8075
8076 ac_cv_c_volatile=no
8077 fi
8078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8079 fi
8080 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8081 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8082 if test $ac_cv_c_volatile = no; then
8083
8084 cat >>confdefs.h <<\_ACEOF
8085 #define volatile
8086 _ACEOF
8087
8088 fi
8089
8090 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8091 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8092 if test "${ac_cv_c_const+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101
8102 int
8103 main ()
8104 {
8105 /* FIXME: Include the comments suggested by Paul. */
8106 #ifndef __cplusplus
8107 /* Ultrix mips cc rejects this. */
8108 typedef int charset[2];
8109 const charset x;
8110 /* SunOS 4.1.1 cc rejects this. */
8111 char const *const *ccp;
8112 char **p;
8113 /* NEC SVR4.0.2 mips cc rejects this. */
8114 struct point {int x, y;};
8115 static struct point const zero = {0,0};
8116 /* AIX XL C 1.02.0.0 rejects this.
8117 It does not let you subtract one const X* pointer from another in
8118 an arm of an if-expression whose if-part is not a constant
8119 expression */
8120 const char *g = "string";
8121 ccp = &g + (g ? g-g : 0);
8122 /* HPUX 7.0 cc rejects these. */
8123 ++ccp;
8124 p = (char**) ccp;
8125 ccp = (char const *const *) p;
8126 { /* SCO 3.2v4 cc rejects this. */
8127 char *t;
8128 char const *s = 0 ? (char *) 0 : (char const *) 0;
8129
8130 *t++ = 0;
8131 }
8132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8133 int x[] = {25, 17};
8134 const int *foo = &x[0];
8135 ++foo;
8136 }
8137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8138 typedef const int *iptr;
8139 iptr p = 0;
8140 ++p;
8141 }
8142 { /* AIX XL C 1.02.0.0 rejects this saying
8143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8144 struct s { int j; const int *ap[3]; };
8145 struct s *b; b->j = 5;
8146 }
8147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8148 const int foo = 10;
8149 }
8150 #endif
8151
8152 ;
8153 return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest.$ac_objext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8158 (eval $ac_compile) 2>conftest.er1
8159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
8165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 (eval $ac_try) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try='test -s conftest.$ac_objext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 (eval $ac_try) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 ac_cv_c_const=yes
8178 else
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 ac_cv_c_const=no
8183 fi
8184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8185 fi
8186 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8187 echo "${ECHO_T}$ac_cv_c_const" >&6
8188 if test $ac_cv_c_const = no; then
8189
8190 cat >>confdefs.h <<\_ACEOF
8191 #define const
8192 _ACEOF
8193
8194 fi
8195
8196 echo "$as_me:$LINENO: checking for void * support" >&5
8197 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8198 if test "${emacs_cv_void_star+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h. */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207
8208 int
8209 main ()
8210 {
8211 void * foo;
8212 ;
8213 return 0;
8214 }
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218 (eval $ac_compile) 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest.$ac_objext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 emacs_cv_void_star=yes
8238 else
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 emacs_cv_void_star=no
8243 fi
8244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8245 fi
8246 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8247 echo "${ECHO_T}$emacs_cv_void_star" >&6
8248 if test $emacs_cv_void_star = yes; then
8249 cat >>confdefs.h <<\_ACEOF
8250 #define POINTER_TYPE void
8251 _ACEOF
8252
8253 else
8254 cat >>confdefs.h <<\_ACEOF
8255 #define POINTER_TYPE char
8256 _ACEOF
8257
8258 fi
8259
8260
8261
8262
8263
8264 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8265 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8266 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8267 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270 cat >conftest.make <<\_ACEOF
8271 all:
8272 @echo 'ac_maketemp="$(MAKE)"'
8273 _ACEOF
8274 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8275 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8276 if test -n "$ac_maketemp"; then
8277 eval ac_cv_prog_make_${ac_make}_set=yes
8278 else
8279 eval ac_cv_prog_make_${ac_make}_set=no
8280 fi
8281 rm -f conftest.make
8282 fi
8283 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8284 echo "$as_me:$LINENO: result: yes" >&5
8285 echo "${ECHO_T}yes" >&6
8286 SET_MAKE=
8287 else
8288 echo "$as_me:$LINENO: result: no" >&5
8289 echo "${ECHO_T}no" >&6
8290 SET_MAKE="MAKE=${MAKE-make}"
8291 fi
8292
8293
8294 echo "$as_me:$LINENO: checking for long file names" >&5
8295 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8296 if test "${ac_cv_sys_long_file_names+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299 ac_cv_sys_long_file_names=yes
8300 # Test for long file names in all the places we know might matter:
8301 # . the current directory, where building will happen
8302 # $prefix/lib where we will be installing things
8303 # $exec_prefix/lib likewise
8304 # eval it to expand exec_prefix.
8305 # $TMPDIR if set, where it might want to write temporary files
8306 # if $TMPDIR is not set:
8307 # /tmp where it might want to write temporary files
8308 # /var/tmp likewise
8309 # /usr/tmp likewise
8310 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8311 ac_tmpdirs=$TMPDIR
8312 else
8313 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8314 fi
8315 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8316 test -d $ac_dir || continue
8317 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8318 ac_xdir=$ac_dir/cf$$
8319 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8320 ac_tf1=$ac_xdir/conftest9012345
8321 ac_tf2=$ac_xdir/conftest9012346
8322 (echo 1 >$ac_tf1) 2>/dev/null
8323 (echo 2 >$ac_tf2) 2>/dev/null
8324 ac_val=`cat $ac_tf1 2>/dev/null`
8325 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8326 ac_cv_sys_long_file_names=no
8327 rm -rf $ac_xdir 2>/dev/null
8328 break
8329 fi
8330 rm -rf $ac_xdir 2>/dev/null
8331 done
8332 fi
8333 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8334 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8335 if test $ac_cv_sys_long_file_names = yes; then
8336
8337 cat >>confdefs.h <<\_ACEOF
8338 #define HAVE_LONG_FILE_NAMES 1
8339 _ACEOF
8340
8341 fi
8342
8343
8344 #### Choose a window system.
8345
8346 echo "$as_me:$LINENO: checking for X" >&5
8347 echo $ECHO_N "checking for X... $ECHO_C" >&6
8348
8349 ac_path_x_has_been_run=yes
8350
8351 # Check whether --with-x or --without-x was given.
8352 if test "${with_x+set}" = set; then
8353 withval="$with_x"
8354
8355 fi;
8356 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8357 if test "x$with_x" = xno; then
8358 # The user explicitly disabled X.
8359 have_x=disabled
8360 else
8361 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8362 # Both variables are already set.
8363 have_x=yes
8364 else
8365 if test "${ac_cv_have_x+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368 # One or both of the vars are not set, and there is no cached value.
8369 ac_x_includes=no ac_x_libraries=no
8370 rm -fr conftest.dir
8371 if mkdir conftest.dir; then
8372 cd conftest.dir
8373 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8374 cat >Imakefile <<'_ACEOF'
8375 acfindx:
8376 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8377 _ACEOF
8378 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8380 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8381 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8382 for ac_extension in a so sl; do
8383 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8384 test -f $ac_im_libdir/libX11.$ac_extension; then
8385 ac_im_usrlibdir=$ac_im_libdir; break
8386 fi
8387 done
8388 # Screen out bogus values from the imake configuration. They are
8389 # bogus both because they are the default anyway, and because
8390 # using them would break gcc on systems where it needs fixed includes.
8391 case $ac_im_incroot in
8392 /usr/include) ;;
8393 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8394 esac
8395 case $ac_im_usrlibdir in
8396 /usr/lib | /lib) ;;
8397 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8398 esac
8399 fi
8400 cd ..
8401 rm -fr conftest.dir
8402 fi
8403
8404 # Standard set of common directories for X headers.
8405 # Check X11 before X11Rn because it is often a symlink to the current release.
8406 ac_x_header_dirs='
8407 /usr/X11/include
8408 /usr/X11R6/include
8409 /usr/X11R5/include
8410 /usr/X11R4/include
8411
8412 /usr/include/X11
8413 /usr/include/X11R6
8414 /usr/include/X11R5
8415 /usr/include/X11R4
8416
8417 /usr/local/X11/include
8418 /usr/local/X11R6/include
8419 /usr/local/X11R5/include
8420 /usr/local/X11R4/include
8421
8422 /usr/local/include/X11
8423 /usr/local/include/X11R6
8424 /usr/local/include/X11R5
8425 /usr/local/include/X11R4
8426
8427 /usr/X386/include
8428 /usr/x386/include
8429 /usr/XFree86/include/X11
8430
8431 /usr/include
8432 /usr/local/include
8433 /usr/unsupported/include
8434 /usr/athena/include
8435 /usr/local/x11r5/include
8436 /usr/lpp/Xamples/include
8437
8438 /usr/openwin/include
8439 /usr/openwin/share/include'
8440
8441 if test "$ac_x_includes" = no; then
8442 # Guess where to find include files, by looking for a specified header file.
8443 # First, try using that file with no special directory specified.
8444 cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h. */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 #include <X11/Intrinsic.h>
8451 _ACEOF
8452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev/null; then
8460 if test -s conftest.err; then
8461 ac_cpp_err=$ac_c_preproc_warn_flag
8462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8463 else
8464 ac_cpp_err=
8465 fi
8466 else
8467 ac_cpp_err=yes
8468 fi
8469 if test -z "$ac_cpp_err"; then
8470 # We can compile using X headers with no special include directory.
8471 ac_x_includes=
8472 else
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 for ac_dir in $ac_x_header_dirs; do
8477 if test -r "$ac_dir/X11/Intrinsic.h"; then
8478 ac_x_includes=$ac_dir
8479 break
8480 fi
8481 done
8482 fi
8483 rm -f conftest.err conftest.$ac_ext
8484 fi # $ac_x_includes = no
8485
8486 if test "$ac_x_libraries" = no; then
8487 # Check for the libraries.
8488 # See if we find them without any special options.
8489 # Don't add to $LIBS permanently.
8490 ac_save_LIBS=$LIBS
8491 LIBS="-lXt $LIBS"
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 #include <X11/Intrinsic.h>
8499 int
8500 main ()
8501 {
8502 XtMalloc (0)
8503 ;
8504 return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest.$ac_objext conftest$ac_exeext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509 (eval $ac_link) 2>conftest.er1
8510 ac_status=$?
8511 grep -v '^ *+' conftest.er1 >conftest.err
8512 rm -f conftest.er1
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try='test -s conftest$ac_exeext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 LIBS=$ac_save_LIBS
8529 # We can link X programs with no special library path.
8530 ac_x_libraries=
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535 LIBS=$ac_save_LIBS
8536 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8537 do
8538 # Don't even attempt the hair of trying to link an X program!
8539 for ac_extension in a so sl; do
8540 if test -r $ac_dir/libXt.$ac_extension; then
8541 ac_x_libraries=$ac_dir
8542 break 2
8543 fi
8544 done
8545 done
8546 fi
8547 rm -f conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 fi # $ac_x_libraries = no
8550
8551 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8552 # Didn't find X anywhere. Cache the known absence of X.
8553 ac_cv_have_x="have_x=no"
8554 else
8555 # Record where we found X for the cache.
8556 ac_cv_have_x="have_x=yes \
8557 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8558 fi
8559 fi
8560
8561 fi
8562 eval "$ac_cv_have_x"
8563 fi # $with_x != no
8564
8565 if test "$have_x" != yes; then
8566 echo "$as_me:$LINENO: result: $have_x" >&5
8567 echo "${ECHO_T}$have_x" >&6
8568 no_x=yes
8569 else
8570 # If each of the values was on the command line, it overrides each guess.
8571 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8572 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8573 # Update the cache value to reflect the command line values.
8574 ac_cv_have_x="have_x=yes \
8575 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8576 # It might be that x_includes is empty (headers are found in the
8577 # standard search path. Then output the corresponding message
8578 ac_out_x_includes=$x_includes
8579 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8580 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8581 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8582 fi
8583
8584 if test "$no_x" = yes; then
8585 window_system=none
8586 else
8587 window_system=x11
8588 fi
8589
8590 if test "${x_libraries}" != NONE; then
8591 if test -n "${x_libraries}"; then
8592 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8593 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8594 fi
8595 x_default_search_path=""
8596 x_search_path=${x_libraries}
8597 if test -z "${x_search_path}"; then
8598 x_search_path=/usr/lib
8599 fi
8600 for x_library in `echo ${x_search_path}: | \
8601 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8602 x_search_path="\
8603 ${x_library}/X11/%L/%T/%N%C%S:\
8604 ${x_library}/X11/%l/%T/%N%C%S:\
8605 ${x_library}/X11/%T/%N%C%S:\
8606 ${x_library}/X11/%L/%T/%N%S:\
8607 ${x_library}/X11/%l/%T/%N%S:\
8608 ${x_library}/X11/%T/%N%S"
8609 if test x"${x_default_search_path}" = x; then
8610 x_default_search_path=${x_search_path}
8611 else
8612 x_default_search_path="${x_search_path}:${x_default_search_path}"
8613 fi
8614 done
8615 fi
8616 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8617 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8618 fi
8619
8620 if test x"${x_includes}" = x; then
8621 bitmapdir=/usr/include/X11/bitmaps
8622 else
8623 # accumulate include directories that have X11 bitmap subdirectories
8624 bmd_acc="dummyval"
8625 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8626 if test -d "${bmd}/X11/bitmaps"; then
8627 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8628 fi
8629 if test -d "${bmd}/bitmaps"; then
8630 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8631 fi
8632 done
8633 if test ${bmd_acc} != "dummyval"; then
8634 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8635 fi
8636 fi
8637
8638 HAVE_CARBON=no
8639 if test "${with_carbon}" != no; then
8640 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8641 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8642 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8643 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 fi
8646 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8647 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8648 else
8649 # Is the header compilable?
8650 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8651 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8652 cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h. */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8658 $ac_includes_default
8659 #include <Carbon/Carbon.h>
8660 _ACEOF
8661 rm -f conftest.$ac_objext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8663 (eval $ac_compile) 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest.$ac_objext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8682 ac_header_compiler=yes
8683 else
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.$ac_ext >&5
8686
8687 ac_header_compiler=no
8688 fi
8689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8691 echo "${ECHO_T}$ac_header_compiler" >&6
8692
8693 # Is the header present?
8694 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8695 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 #include <Carbon/Carbon.h>
8703 _ACEOF
8704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } >/dev/null; then
8712 if test -s conftest.err; then
8713 ac_cpp_err=$ac_c_preproc_warn_flag
8714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8715 else
8716 ac_cpp_err=
8717 fi
8718 else
8719 ac_cpp_err=yes
8720 fi
8721 if test -z "$ac_cpp_err"; then
8722 ac_header_preproc=yes
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 ac_header_preproc=no
8728 fi
8729 rm -f conftest.err conftest.$ac_ext
8730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8731 echo "${ECHO_T}$ac_header_preproc" >&6
8732
8733 # So? What about this header?
8734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8735 yes:no: )
8736 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8737 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8739 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8740 ac_header_preproc=yes
8741 ;;
8742 no:yes:* )
8743 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8744 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8746 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8748 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8750 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8752 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8754 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8755 (
8756 cat <<\_ASBOX
8757 ## ------------------------------------------ ##
8758 ## Report this to the AC_PACKAGE_NAME lists. ##
8759 ## ------------------------------------------ ##
8760 _ASBOX
8761 ) |
8762 sed "s/^/$as_me: WARNING: /" >&2
8763 ;;
8764 esac
8765 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8766 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8767 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8771 fi
8772 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8774
8775 fi
8776 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8777 HAVE_CARBON=yes
8778 fi
8779
8780
8781 fi
8782 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8783 if test "${with_carbon+set}" != set \
8784 && test "${carbon_appdir_x+set}" != set; then
8785 HAVE_CARBON=no
8786 fi
8787 fi
8788 if test "${HAVE_CARBON}" = yes; then
8789 window_system=mac
8790 fi
8791
8792 case "${window_system}" in
8793 x11 )
8794 HAVE_X_WINDOWS=yes
8795 HAVE_X11=yes
8796 case "${with_x_toolkit}" in
8797 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8798 motif ) USE_X_TOOLKIT=MOTIF ;;
8799 gtk ) with_gtk=yes
8800 USE_X_TOOLKIT=none ;;
8801 no ) USE_X_TOOLKIT=none ;;
8802 * ) USE_X_TOOLKIT=maybe ;;
8803 esac
8804 ;;
8805 mac | none )
8806 HAVE_X_WINDOWS=no
8807 HAVE_X11=no
8808 USE_X_TOOLKIT=none
8809 ;;
8810 esac
8811
8812 ### If we're using X11, we should use the X menu package.
8813 HAVE_MENUS=no
8814 case ${HAVE_X11} in
8815 yes ) HAVE_MENUS=yes ;;
8816 esac
8817
8818 if test "${opsys}" = "hpux9"; then
8819 case "${x_libraries}" in
8820 *X11R4* )
8821 opsysfile="s/hpux9-x11r4.h"
8822 ;;
8823 esac
8824 fi
8825
8826 if test "${opsys}" = "hpux9shr"; then
8827 case "${x_libraries}" in
8828 *X11R4* )
8829 opsysfile="s/hpux9shxr4.h"
8830 ;;
8831 esac
8832 fi
8833
8834 ### Compute the unexec source name from the object name.
8835 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8836
8837 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8838 # Assume not, until told otherwise.
8839 GNU_MALLOC=yes
8840 doug_lea_malloc=yes
8841 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8842 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8843 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h. */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8852 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8854 #define malloc_get_state innocuous_malloc_get_state
8855
8856 /* System header to define __stub macros and hopefully few prototypes,
8857 which can conflict with char malloc_get_state (); below.
8858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8859 <limits.h> exists even on freestanding compilers. */
8860
8861 #ifdef __STDC__
8862 # include <limits.h>
8863 #else
8864 # include <assert.h>
8865 #endif
8866
8867 #undef malloc_get_state
8868
8869 /* Override any gcc2 internal prototype to avoid an error. */
8870 #ifdef __cplusplus
8871 extern "C"
8872 {
8873 #endif
8874 /* We use char because int might match the return type of a gcc2
8875 builtin and then its argument prototype would still apply. */
8876 char malloc_get_state ();
8877 /* The GNU C library defines this for functions which it implements
8878 to always fail with ENOSYS. Some functions are actually named
8879 something starting with __ and the normal name is an alias. */
8880 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8881 choke me
8882 #else
8883 char (*f) () = malloc_get_state;
8884 #endif
8885 #ifdef __cplusplus
8886 }
8887 #endif
8888
8889 int
8890 main ()
8891 {
8892 return f != malloc_get_state;
8893 ;
8894 return 0;
8895 }
8896 _ACEOF
8897 rm -f conftest.$ac_objext conftest$ac_exeext
8898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8899 (eval $ac_link) 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } &&
8906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 (eval $ac_try) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; } &&
8912 { ac_try='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_cv_func_malloc_get_state=yes
8919 else
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923 ac_cv_func_malloc_get_state=no
8924 fi
8925 rm -f conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 fi
8928 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8929 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8930 if test $ac_cv_func_malloc_get_state = yes; then
8931 :
8932 else
8933 doug_lea_malloc=no
8934 fi
8935
8936 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8937 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8938 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8949 #define malloc_set_state innocuous_malloc_set_state
8950
8951 /* System header to define __stub macros and hopefully few prototypes,
8952 which can conflict with char malloc_set_state (); below.
8953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8954 <limits.h> exists even on freestanding compilers. */
8955
8956 #ifdef __STDC__
8957 # include <limits.h>
8958 #else
8959 # include <assert.h>
8960 #endif
8961
8962 #undef malloc_set_state
8963
8964 /* Override any gcc2 internal prototype to avoid an error. */
8965 #ifdef __cplusplus
8966 extern "C"
8967 {
8968 #endif
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971 char malloc_set_state ();
8972 /* The GNU C library defines this for functions which it implements
8973 to always fail with ENOSYS. Some functions are actually named
8974 something starting with __ and the normal name is an alias. */
8975 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8976 choke me
8977 #else
8978 char (*f) () = malloc_set_state;
8979 #endif
8980 #ifdef __cplusplus
8981 }
8982 #endif
8983
8984 int
8985 main ()
8986 {
8987 return f != malloc_set_state;
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_func_malloc_set_state=yes
9014 else
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018 ac_cv_func_malloc_set_state=no
9019 fi
9020 rm -f conftest.err conftest.$ac_objext \
9021 conftest$ac_exeext conftest.$ac_ext
9022 fi
9023 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9024 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9025 if test $ac_cv_func_malloc_set_state = yes; then
9026 :
9027 else
9028 doug_lea_malloc=no
9029 fi
9030
9031 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9032 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9033 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036 cat >conftest.$ac_ext <<_ACEOF
9037 /* confdefs.h. */
9038 _ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9042 extern void (* __after_morecore_hook)();
9043 int
9044 main ()
9045 {
9046 __after_morecore_hook = 0
9047 ;
9048 return 0;
9049 }
9050 _ACEOF
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 emacs_cv_var___after_morecore_hook=yes
9073 else
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 emacs_cv_var___after_morecore_hook=no
9078 fi
9079 rm -f conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081 fi
9082 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9083 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9084 if test $emacs_cv_var___after_morecore_hook = no; then
9085 doug_lea_malloc=no
9086 fi
9087 if test "${system_malloc}" = "yes"; then
9088 GNU_MALLOC=no
9089 GNU_MALLOC_reason="
9090 (The GNU allocators don't work with this system configuration.)"
9091 fi
9092 if test "$doug_lea_malloc" = "yes" ; then
9093 if test "$GNU_MALLOC" = yes ; then
9094 GNU_MALLOC_reason="
9095 (Using Doug Lea's new malloc from the GNU C Library.)"
9096 fi
9097
9098 cat >>confdefs.h <<\_ACEOF
9099 #define DOUG_LEA_MALLOC 1
9100 _ACEOF
9101
9102 fi
9103
9104 if test x"${REL_ALLOC}" = x; then
9105 REL_ALLOC=${GNU_MALLOC}
9106 fi
9107
9108
9109
9110
9111 for ac_header in stdlib.h unistd.h
9112 do
9113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9115 echo "$as_me:$LINENO: checking for $ac_header" >&5
9116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 fi
9120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9122 else
9123 # Is the header compilable?
9124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h. */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 $ac_includes_default
9133 #include <$ac_header>
9134 _ACEOF
9135 rm -f conftest.$ac_objext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
9144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try='test -s conftest.$ac_objext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 ac_header_compiler=yes
9157 else
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9160
9161 ac_header_compiler=no
9162 fi
9163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9165 echo "${ECHO_T}$ac_header_compiler" >&6
9166
9167 # Is the header present?
9168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9170 cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h. */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 #include <$ac_header>
9177 _ACEOF
9178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } >/dev/null; then
9186 if test -s conftest.err; then
9187 ac_cpp_err=$ac_c_preproc_warn_flag
9188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9189 else
9190 ac_cpp_err=
9191 fi
9192 else
9193 ac_cpp_err=yes
9194 fi
9195 if test -z "$ac_cpp_err"; then
9196 ac_header_preproc=yes
9197 else
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9200
9201 ac_header_preproc=no
9202 fi
9203 rm -f conftest.err conftest.$ac_ext
9204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9205 echo "${ECHO_T}$ac_header_preproc" >&6
9206
9207 # So? What about this header?
9208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9209 yes:no: )
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9214 ac_header_preproc=yes
9215 ;;
9216 no:yes:* )
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9229 (
9230 cat <<\_ASBOX
9231 ## ------------------------------------------ ##
9232 ## Report this to the AC_PACKAGE_NAME lists. ##
9233 ## ------------------------------------------ ##
9234 _ASBOX
9235 ) |
9236 sed "s/^/$as_me: WARNING: /" >&2
9237 ;;
9238 esac
9239 echo "$as_me:$LINENO: checking for $ac_header" >&5
9240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244 eval "$as_ac_Header=\$ac_header_preproc"
9245 fi
9246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9248
9249 fi
9250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9251 cat >>confdefs.h <<_ACEOF
9252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9253 _ACEOF
9254
9255 fi
9256
9257 done
9258
9259
9260 for ac_func in getpagesize
9261 do
9262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9263 echo "$as_me:$LINENO: checking for $ac_func" >&5
9264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9265 if eval "test \"\${$as_ac_var+set}\" = set"; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h. */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9276 #define $ac_func innocuous_$ac_func
9277
9278 /* System header to define __stub macros and hopefully few prototypes,
9279 which can conflict with char $ac_func (); below.
9280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9281 <limits.h> exists even on freestanding compilers. */
9282
9283 #ifdef __STDC__
9284 # include <limits.h>
9285 #else
9286 # include <assert.h>
9287 #endif
9288
9289 #undef $ac_func
9290
9291 /* Override any gcc2 internal prototype to avoid an error. */
9292 #ifdef __cplusplus
9293 extern "C"
9294 {
9295 #endif
9296 /* We use char because int might match the return type of a gcc2
9297 builtin and then its argument prototype would still apply. */
9298 char $ac_func ();
9299 /* The GNU C library defines this for functions which it implements
9300 to always fail with ENOSYS. Some functions are actually named
9301 something starting with __ and the normal name is an alias. */
9302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9303 choke me
9304 #else
9305 char (*f) () = $ac_func;
9306 #endif
9307 #ifdef __cplusplus
9308 }
9309 #endif
9310
9311 int
9312 main ()
9313 {
9314 return f != $ac_func;
9315 ;
9316 return 0;
9317 }
9318 _ACEOF
9319 rm -f conftest.$ac_objext conftest$ac_exeext
9320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9321 (eval $ac_link) 2>conftest.er1
9322 ac_status=$?
9323 grep -v '^ *+' conftest.er1 >conftest.err
9324 rm -f conftest.er1
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } &&
9328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 eval "$as_ac_var=yes"
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 eval "$as_ac_var=no"
9346 fi
9347 rm -f conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 fi
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9352 if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h <<_ACEOF
9354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355 _ACEOF
9356
9357 fi
9358 done
9359
9360 echo "$as_me:$LINENO: checking for working mmap" >&5
9361 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9362 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 if test "$cross_compiling" = yes; then
9366 ac_cv_func_mmap_fixed_mapped=no
9367 else
9368 cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h. */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 $ac_includes_default
9375 /* malloc might have been renamed as rpl_malloc. */
9376 #undef malloc
9377
9378 /* Thanks to Mike Haertel and Jim Avera for this test.
9379 Here is a matrix of mmap possibilities:
9380 mmap private not fixed
9381 mmap private fixed at somewhere currently unmapped
9382 mmap private fixed at somewhere already mapped
9383 mmap shared not fixed
9384 mmap shared fixed at somewhere currently unmapped
9385 mmap shared fixed at somewhere already mapped
9386 For private mappings, we should verify that changes cannot be read()
9387 back from the file, nor mmap's back from the file at a different
9388 address. (There have been systems where private was not correctly
9389 implemented like the infamous i386 svr4.0, and systems where the
9390 VM page cache was not coherent with the file system buffer cache
9391 like early versions of FreeBSD and possibly contemporary NetBSD.)
9392 For shared mappings, we should conversely verify that changes get
9393 propagated back to all the places they're supposed to be.
9394
9395 Grep wants private fixed already mapped.
9396 The main things grep needs to know about mmap are:
9397 * does it exist and is it safe to write into the mmap'd area
9398 * how to use it (BSD variants) */
9399
9400 #include <fcntl.h>
9401 #include <sys/mman.h>
9402
9403 #if !STDC_HEADERS && !HAVE_STDLIB_H
9404 char *malloc ();
9405 #endif
9406
9407 /* This mess was copied from the GNU getpagesize.h. */
9408 #if !HAVE_GETPAGESIZE
9409 /* Assume that all systems that can run configure have sys/param.h. */
9410 # if !HAVE_SYS_PARAM_H
9411 # define HAVE_SYS_PARAM_H 1
9412 # endif
9413
9414 # ifdef _SC_PAGESIZE
9415 # define getpagesize() sysconf(_SC_PAGESIZE)
9416 # else /* no _SC_PAGESIZE */
9417 # if HAVE_SYS_PARAM_H
9418 # include <sys/param.h>
9419 # ifdef EXEC_PAGESIZE
9420 # define getpagesize() EXEC_PAGESIZE
9421 # else /* no EXEC_PAGESIZE */
9422 # ifdef NBPG
9423 # define getpagesize() NBPG * CLSIZE
9424 # ifndef CLSIZE
9425 # define CLSIZE 1
9426 # endif /* no CLSIZE */
9427 # else /* no NBPG */
9428 # ifdef NBPC
9429 # define getpagesize() NBPC
9430 # else /* no NBPC */
9431 # ifdef PAGESIZE
9432 # define getpagesize() PAGESIZE
9433 # endif /* PAGESIZE */
9434 # endif /* no NBPC */
9435 # endif /* no NBPG */
9436 # endif /* no EXEC_PAGESIZE */
9437 # else /* no HAVE_SYS_PARAM_H */
9438 # define getpagesize() 8192 /* punt totally */
9439 # endif /* no HAVE_SYS_PARAM_H */
9440 # endif /* no _SC_PAGESIZE */
9441
9442 #endif /* no HAVE_GETPAGESIZE */
9443
9444 int
9445 main ()
9446 {
9447 char *data, *data2, *data3;
9448 int i, pagesize;
9449 int fd;
9450
9451 pagesize = getpagesize ();
9452
9453 /* First, make a file with some known garbage in it. */
9454 data = (char *) malloc (pagesize);
9455 if (!data)
9456 exit (1);
9457 for (i = 0; i < pagesize; ++i)
9458 *(data + i) = rand ();
9459 umask (0);
9460 fd = creat ("conftest.mmap", 0600);
9461 if (fd < 0)
9462 exit (1);
9463 if (write (fd, data, pagesize) != pagesize)
9464 exit (1);
9465 close (fd);
9466
9467 /* Next, try to mmap the file at a fixed address which already has
9468 something else allocated at it. If we can, also make sure that
9469 we see the same garbage. */
9470 fd = open ("conftest.mmap", O_RDWR);
9471 if (fd < 0)
9472 exit (1);
9473 data2 = (char *) malloc (2 * pagesize);
9474 if (!data2)
9475 exit (1);
9476 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9477 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9478 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9479 exit (1);
9480 for (i = 0; i < pagesize; ++i)
9481 if (*(data + i) != *(data2 + i))
9482 exit (1);
9483
9484 /* Finally, make sure that changes to the mapped area do not
9485 percolate back to the file as seen by read(). (This is a bug on
9486 some variants of i386 svr4.0.) */
9487 for (i = 0; i < pagesize; ++i)
9488 *(data2 + i) = *(data2 + i) + 1;
9489 data3 = (char *) malloc (pagesize);
9490 if (!data3)
9491 exit (1);
9492 if (read (fd, data3, pagesize) != pagesize)
9493 exit (1);
9494 for (i = 0; i < pagesize; ++i)
9495 if (*(data + i) != *(data3 + i))
9496 exit (1);
9497 close (fd);
9498 exit (0);
9499 }
9500 _ACEOF
9501 rm -f conftest$ac_exeext
9502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_func_mmap_fixed_mapped=yes
9513 else
9514 echo "$as_me: program exited with status $ac_status" >&5
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9517
9518 ( exit $ac_status )
9519 ac_cv_func_mmap_fixed_mapped=no
9520 fi
9521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9522 fi
9523 fi
9524 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9525 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9526 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9527
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_MMAP 1
9530 _ACEOF
9531
9532 fi
9533 rm -f conftest.mmap
9534
9535 if test $use_mmap_for_buffers = yes; then
9536 REL_ALLOC=no
9537 fi
9538
9539 LIBS="$libsrc_libs $LIBS"
9540
9541
9542 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9543 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9544 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547 ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-ldnet $LIBS"
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h. */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555
9556 /* Override any gcc2 internal prototype to avoid an error. */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 /* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9562 char dnet_ntoa ();
9563 int
9564 main ()
9565 {
9566 dnet_ntoa ();
9567 ;
9568 return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try='test -s conftest$ac_exeext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_lib_dnet_dnet_ntoa=yes
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597 ac_cv_lib_dnet_dnet_ntoa=no
9598 fi
9599 rm -f conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9601 LIBS=$ac_check_lib_save_LIBS
9602 fi
9603 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9604 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9605 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9606 cat >>confdefs.h <<_ACEOF
9607 #define HAVE_LIBDNET 1
9608 _ACEOF
9609
9610 LIBS="-ldnet $LIBS"
9611
9612 fi
9613
9614
9615 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9616 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9617 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620 ac_check_lib_save_LIBS=$LIBS
9621 LIBS="-lXbsd $LIBS"
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h. */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628
9629
9630 int
9631 main ()
9632 {
9633 main ();
9634 ;
9635 return 0;
9636 }
9637 _ACEOF
9638 rm -f conftest.$ac_objext conftest$ac_exeext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>conftest.er1
9641 ac_status=$?
9642 grep -v '^ *+' conftest.er1 >conftest.err
9643 rm -f conftest.er1
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; } &&
9653 { ac_try='test -s conftest$ac_exeext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 (eval $ac_try) 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_lib_Xbsd_main=yes
9660 else
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 ac_cv_lib_Xbsd_main=no
9665 fi
9666 rm -f conftest.err conftest.$ac_objext \
9667 conftest$ac_exeext conftest.$ac_ext
9668 LIBS=$ac_check_lib_save_LIBS
9669 fi
9670 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9671 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9672 if test $ac_cv_lib_Xbsd_main = yes; then
9673 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9674 fi
9675
9676
9677
9678 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9679 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9680 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683 ac_check_lib_save_LIBS=$LIBS
9684 LIBS="-lpthreads $LIBS"
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h. */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691
9692 /* Override any gcc2 internal prototype to avoid an error. */
9693 #ifdef __cplusplus
9694 extern "C"
9695 #endif
9696 /* We use char because int might match the return type of a gcc2
9697 builtin and then its argument prototype would still apply. */
9698 char cma_open ();
9699 int
9700 main ()
9701 {
9702 cma_open ();
9703 ;
9704 return 0;
9705 }
9706 _ACEOF
9707 rm -f conftest.$ac_objext conftest$ac_exeext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709 (eval $ac_link) 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 (eval $ac_try) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_cv_lib_pthreads_cma_open=yes
9729 else
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 ac_cv_lib_pthreads_cma_open=no
9734 fi
9735 rm -f conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
9737 LIBS=$ac_check_lib_save_LIBS
9738 fi
9739 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9740 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9741 if test $ac_cv_lib_pthreads_cma_open = yes; then
9742 cat >>confdefs.h <<_ACEOF
9743 #define HAVE_LIBPTHREADS 1
9744 _ACEOF
9745
9746 LIBS="-lpthreads $LIBS"
9747
9748 fi
9749
9750
9751 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9752 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9753 if test -d /usr/X386/include; then
9754 HAVE_XFREE386=yes
9755 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9756 else
9757 HAVE_XFREE386=no
9758 fi
9759 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9760 echo "${ECHO_T}$HAVE_XFREE386" >&6
9761
9762
9763 case ${host_os} in
9764 aix*)
9765 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9766 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9767 if test "${gdb_cv_bigtoc+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770
9771 case $GCC in
9772 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9773 *) gdb_cv_bigtoc=-bbigtoc ;;
9774 esac
9775
9776 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9777 cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h. */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783
9784 int
9785 main ()
9786 {
9787 int i;
9788 ;
9789 return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794 (eval $ac_link) 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; } &&
9807 { ac_try='test -s conftest$ac_exeext'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 (eval $ac_try) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; }; then
9813 :
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9817
9818 gdb_cv_bigtoc=
9819 fi
9820 rm -f conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822
9823 fi
9824 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9825 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9826 ;;
9827 esac
9828
9829 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9830 # used for the tests that follow. We set them back to REAL_CFLAGS and
9831 # REAL_CPPFLAGS later on.
9832
9833 REAL_CPPFLAGS="$CPPFLAGS"
9834
9835 if test "${HAVE_X11}" = "yes"; then
9836 DEFS="$C_SWITCH_X_SITE $DEFS"
9837 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9838 LIBS="$LIBX $LIBS"
9839 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9840 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9841
9842 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9843 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9844 # but it's more convenient here to set LD_RUN_PATH
9845 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9846 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9847 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9848 export LD_RUN_PATH
9849 fi
9850
9851 if test "${opsys}" = "gnu-linux"; then
9852 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9853 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h. */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860
9861 int
9862 main ()
9863 {
9864 XOpenDisplay ("foo");
9865 ;
9866 return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; } &&
9884 { ac_try='test -s conftest$ac_exeext'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 (eval $ac_try) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 xlinux_first_failure=no
9891 else
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9894
9895 xlinux_first_failure=yes
9896 fi
9897 rm -f conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899 if test "${xlinux_first_failure}" = "yes"; then
9900 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9901 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9902 OLD_CPPFLAGS="$CPPFLAGS"
9903 OLD_LIBS="$LIBS"
9904 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9905 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9906 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9907 LIBS="$LIBS -b i486-linuxaout"
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914
9915 int
9916 main ()
9917 {
9918 XOpenDisplay ("foo");
9919 ;
9920 return 0;
9921 }
9922 _ACEOF
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9925 (eval $ac_link) 2>conftest.er1
9926 ac_status=$?
9927 grep -v '^ *+' conftest.er1 >conftest.err
9928 rm -f conftest.er1
9929 cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 xlinux_second_failure=no
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 xlinux_second_failure=yes
9950 fi
9951 rm -f conftest.err conftest.$ac_objext \
9952 conftest$ac_exeext conftest.$ac_ext
9953 if test "${xlinux_second_failure}" = "yes"; then
9954 # If we get the same failure with -b, there is no use adding -b.
9955 # So take it out. This plays safe.
9956 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9957 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9958 CPPFLAGS="$OLD_CPPFLAGS"
9959 LIBS="$OLD_LIBS"
9960 echo "$as_me:$LINENO: result: no" >&5
9961 echo "${ECHO_T}no" >&6
9962 else
9963 echo "$as_me:$LINENO: result: yes" >&5
9964 echo "${ECHO_T}yes" >&6
9965 fi
9966 else
9967 echo "$as_me:$LINENO: result: no" >&5
9968 echo "${ECHO_T}no" >&6
9969 fi
9970 fi
9971
9972 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9973 # header files included from there.
9974 echo "$as_me:$LINENO: checking for Xkb" >&5
9975 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 #include <X11/Xlib.h>
9983 #include <X11/XKBlib.h>
9984 int
9985 main ()
9986 {
9987 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9988 ;
9989 return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9994 (eval $ac_link) 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 emacs_xkb=yes
10014 else
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 emacs_xkb=no
10019 fi
10020 rm -f conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10023 echo "${ECHO_T}$emacs_xkb" >&6
10024 if test $emacs_xkb = yes; then
10025
10026 cat >>confdefs.h <<\_ACEOF
10027 #define HAVE_XKBGETKEYBOARD 1
10028 _ACEOF
10029
10030 fi
10031
10032
10033
10034
10035
10036 for ac_func in XrmSetDatabase XScreenResourceString \
10037 XScreenNumberOfScreen XSetWMProtocols
10038 do
10039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10040 echo "$as_me:$LINENO: checking for $ac_func" >&5
10041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10042 if eval "test \"\${$as_ac_var+set}\" = set"; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045 cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h. */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10053 #define $ac_func innocuous_$ac_func
10054
10055 /* System header to define __stub macros and hopefully few prototypes,
10056 which can conflict with char $ac_func (); below.
10057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10058 <limits.h> exists even on freestanding compilers. */
10059
10060 #ifdef __STDC__
10061 # include <limits.h>
10062 #else
10063 # include <assert.h>
10064 #endif
10065
10066 #undef $ac_func
10067
10068 /* Override any gcc2 internal prototype to avoid an error. */
10069 #ifdef __cplusplus
10070 extern "C"
10071 {
10072 #endif
10073 /* We use char because int might match the return type of a gcc2
10074 builtin and then its argument prototype would still apply. */
10075 char $ac_func ();
10076 /* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10080 choke me
10081 #else
10082 char (*f) () = $ac_func;
10083 #endif
10084 #ifdef __cplusplus
10085 }
10086 #endif
10087
10088 int
10089 main ()
10090 {
10091 return f != $ac_func;
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10098 (eval $ac_link) 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; } &&
10111 { ac_try='test -s conftest$ac_exeext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 eval "$as_ac_var=yes"
10118 else
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10121
10122 eval "$as_ac_var=no"
10123 fi
10124 rm -f conftest.err conftest.$ac_objext \
10125 conftest$ac_exeext conftest.$ac_ext
10126 fi
10127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10129 if test `eval echo '${'$as_ac_var'}'` = yes; then
10130 cat >>confdefs.h <<_ACEOF
10131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10132 _ACEOF
10133
10134 fi
10135 done
10136
10137 fi
10138
10139 if test "${window_system}" = "x11"; then
10140 echo "$as_me:$LINENO: checking X11 version 6" >&5
10141 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10142 if test "${emacs_cv_x11_version_6+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 #include <X11/Xlib.h>
10152 int
10153 main ()
10154 {
10155 #if XlibSpecificationRelease < 6
10156 fail;
10157 #endif
10158
10159 ;
10160 return 0;
10161 }
10162 _ACEOF
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10165 (eval $ac_link) 2>conftest.er1
10166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; } &&
10178 { ac_try='test -s conftest$ac_exeext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 emacs_cv_x11_version_6=yes
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 emacs_cv_x11_version_6=no
10190 fi
10191 rm -f conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 fi
10194
10195 if test $emacs_cv_x11_version_6 = yes; then
10196 echo "$as_me:$LINENO: result: 6 or newer" >&5
10197 echo "${ECHO_T}6 or newer" >&6
10198
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_X11R6 1
10201 _ACEOF
10202
10203 else
10204 echo "$as_me:$LINENO: result: before 6" >&5
10205 echo "${ECHO_T}before 6" >&6
10206 fi
10207 fi
10208
10209 if test "${window_system}" = "x11"; then
10210 echo "$as_me:$LINENO: checking X11 version 5" >&5
10211 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10212 if test "${emacs_cv_x11_version_5+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215 cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h. */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 #include <X11/Xlib.h>
10222 int
10223 main ()
10224 {
10225 #if XlibSpecificationRelease < 5
10226 fail;
10227 #endif
10228
10229 ;
10230 return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235 (eval $ac_link) 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try='test -s conftest$ac_exeext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 emacs_cv_x11_version_5=yes
10255 else
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259 emacs_cv_x11_version_5=no
10260 fi
10261 rm -f conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext conftest.$ac_ext
10263 fi
10264
10265 if test $emacs_cv_x11_version_5 = yes; then
10266 echo "$as_me:$LINENO: result: 5 or newer" >&5
10267 echo "${ECHO_T}5 or newer" >&6
10268 HAVE_X11R5=yes
10269
10270 cat >>confdefs.h <<\_ACEOF
10271 #define HAVE_X11R5 1
10272 _ACEOF
10273
10274 else
10275 HAVE_X11R5=no
10276 echo "$as_me:$LINENO: result: before 5" >&5
10277 echo "${ECHO_T}before 5" >&6
10278 fi
10279 fi
10280
10281 HAVE_GTK=no
10282 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10283 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10284 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10285 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10286 { (exit 1); exit 1; }; };
10287 fi
10288 GLIB_REQUIRED=2.4
10289 GTK_REQUIRED=2.4
10290 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10291
10292 if test "X${with_pkg_config_prog}" != X; then
10293 PKG_CONFIG="${with_pkg_config_prog}"
10294 fi
10295
10296 succeeded=no
10297
10298 if test -z "$PKG_CONFIG"; then
10299 # Extract the first word of "pkg-config", so it can be a program name with args.
10300 set dummy pkg-config; ac_word=$2
10301 echo "$as_me:$LINENO: checking for $ac_word" >&5
10302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10303 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 case $PKG_CONFIG in
10307 [\\/]* | ?:[\\/]*)
10308 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10309 ;;
10310 *)
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10313 do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322 done
10323 done
10324
10325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10326 ;;
10327 esac
10328 fi
10329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10330
10331 if test -n "$PKG_CONFIG"; then
10332 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10333 echo "${ECHO_T}$PKG_CONFIG" >&6
10334 else
10335 echo "$as_me:$LINENO: result: no" >&5
10336 echo "${ECHO_T}no" >&6
10337 fi
10338
10339 fi
10340
10341 if test "$PKG_CONFIG" = "no" ; then
10342 { { echo "$as_me:$LINENO: error:
10343 *** 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
10344 echo "$as_me: error:
10345 *** 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;}
10346 { (exit 1); exit 1; }; }
10347 else
10348 PKG_CONFIG_MIN_VERSION=0.9.0
10349 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10350 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10351 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10352
10353 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10354 echo "$as_me:$LINENO: result: yes" >&5
10355 echo "${ECHO_T}yes" >&6
10356 succeeded=yes
10357
10358 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10359 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10360 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10361 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10362 echo "${ECHO_T}$GTK_CFLAGS" >&6
10363
10364 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10365 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10366 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10367 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10368 echo "${ECHO_T}$GTK_LIBS" >&6
10369 else
10370 echo "$as_me:$LINENO: result: no" >&5
10371 echo "${ECHO_T}no" >&6
10372 GTK_CFLAGS=""
10373 GTK_LIBS=""
10374 ## If we have a custom action on failure, don't print errors, but
10375 ## do set a variable so people can do so.
10376 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10377 echo $GTK_PKG_ERRORS
10378 fi
10379
10380
10381
10382 else
10383 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10384 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10385 fi
10386 fi
10387
10388 if test $succeeded = yes; then
10389 :
10390 else
10391 { { 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
10392 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;}
10393 { (exit 1); exit 1; }; }
10394 fi
10395
10396
10397
10398 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10399 CFLAGS="$CFLAGS $GTK_CFLAGS"
10400 LIBS="$GTK_LIBS $LIBS"
10401 HAVE_GTK=yes
10402
10403 cat >>confdefs.h <<\_ACEOF
10404 #define HAVE_GTK 1
10405 _ACEOF
10406
10407 USE_X_TOOLKIT=none
10408
10409 if test "$with_toolkit_scroll_bars" != no; then
10410 with_toolkit_scroll_bars=yes
10411 fi
10412
10413 HAVE_GTK_MULTIDISPLAY=no
10414
10415 for ac_func in gdk_display_open
10416 do
10417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10418 echo "$as_me:$LINENO: checking for $ac_func" >&5
10419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10420 if eval "test \"\${$as_ac_var+set}\" = set"; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h. */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10431 #define $ac_func innocuous_$ac_func
10432
10433 /* System header to define __stub macros and hopefully few prototypes,
10434 which can conflict with char $ac_func (); below.
10435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10436 <limits.h> exists even on freestanding compilers. */
10437
10438 #ifdef __STDC__
10439 # include <limits.h>
10440 #else
10441 # include <assert.h>
10442 #endif
10443
10444 #undef $ac_func
10445
10446 /* Override any gcc2 internal prototype to avoid an error. */
10447 #ifdef __cplusplus
10448 extern "C"
10449 {
10450 #endif
10451 /* We use char because int might match the return type of a gcc2
10452 builtin and then its argument prototype would still apply. */
10453 char $ac_func ();
10454 /* The GNU C library defines this for functions which it implements
10455 to always fail with ENOSYS. Some functions are actually named
10456 something starting with __ and the normal name is an alias. */
10457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10458 choke me
10459 #else
10460 char (*f) () = $ac_func;
10461 #endif
10462 #ifdef __cplusplus
10463 }
10464 #endif
10465
10466 int
10467 main ()
10468 {
10469 return f != $ac_func;
10470 ;
10471 return 0;
10472 }
10473 _ACEOF
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try='test -s conftest$ac_exeext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 eval "$as_ac_var=yes"
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500 eval "$as_ac_var=no"
10501 fi
10502 rm -f conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext conftest.$ac_ext
10504 fi
10505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10507 if test `eval echo '${'$as_ac_var'}'` = yes; then
10508 cat >>confdefs.h <<_ACEOF
10509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10510 _ACEOF
10511 HAVE_GTK_MULTIDISPLAY=yes
10512 fi
10513 done
10514
10515 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10516
10517 cat >>confdefs.h <<\_ACEOF
10518 #define HAVE_GTK_MULTIDISPLAY 1
10519 _ACEOF
10520
10521 fi
10522 HAVE_GTK_FILE_SELECTION=no
10523
10524 for ac_func in gtk_file_selection_new
10525 do
10526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10527 echo "$as_me:$LINENO: checking for $ac_func" >&5
10528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10529 if eval "test \"\${$as_ac_var+set}\" = set"; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h. */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10540 #define $ac_func innocuous_$ac_func
10541
10542 /* System header to define __stub macros and hopefully few prototypes,
10543 which can conflict with char $ac_func (); below.
10544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10545 <limits.h> exists even on freestanding compilers. */
10546
10547 #ifdef __STDC__
10548 # include <limits.h>
10549 #else
10550 # include <assert.h>
10551 #endif
10552
10553 #undef $ac_func
10554
10555 /* Override any gcc2 internal prototype to avoid an error. */
10556 #ifdef __cplusplus
10557 extern "C"
10558 {
10559 #endif
10560 /* We use char because int might match the return type of a gcc2
10561 builtin and then its argument prototype would still apply. */
10562 char $ac_func ();
10563 /* The GNU C library defines this for functions which it implements
10564 to always fail with ENOSYS. Some functions are actually named
10565 something starting with __ and the normal name is an alias. */
10566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10567 choke me
10568 #else
10569 char (*f) () = $ac_func;
10570 #endif
10571 #ifdef __cplusplus
10572 }
10573 #endif
10574
10575 int
10576 main ()
10577 {
10578 return f != $ac_func;
10579 ;
10580 return 0;
10581 }
10582 _ACEOF
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10585 (eval $ac_link) 2>conftest.er1
10586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; } &&
10598 { ac_try='test -s conftest$ac_exeext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10601 ac_status=$?
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 eval "$as_ac_var=yes"
10605 else
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 eval "$as_ac_var=no"
10610 fi
10611 rm -f conftest.err conftest.$ac_objext \
10612 conftest$ac_exeext conftest.$ac_ext
10613 fi
10614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10616 if test `eval echo '${'$as_ac_var'}'` = yes; then
10617 cat >>confdefs.h <<_ACEOF
10618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10619 _ACEOF
10620 HAVE_GTK_FILE_SELECTION=yes
10621 fi
10622 done
10623
10624
10625 HAVE_GTK_FILE_CHOOSER=no
10626
10627 for ac_func in gtk_file_chooser_dialog_new
10628 do
10629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10630 echo "$as_me:$LINENO: checking for $ac_func" >&5
10631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10632 if eval "test \"\${$as_ac_var+set}\" = set"; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10643 #define $ac_func innocuous_$ac_func
10644
10645 /* System header to define __stub macros and hopefully few prototypes,
10646 which can conflict with char $ac_func (); below.
10647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10648 <limits.h> exists even on freestanding compilers. */
10649
10650 #ifdef __STDC__
10651 # include <limits.h>
10652 #else
10653 # include <assert.h>
10654 #endif
10655
10656 #undef $ac_func
10657
10658 /* Override any gcc2 internal prototype to avoid an error. */
10659 #ifdef __cplusplus
10660 extern "C"
10661 {
10662 #endif
10663 /* We use char because int might match the return type of a gcc2
10664 builtin and then its argument prototype would still apply. */
10665 char $ac_func ();
10666 /* The GNU C library defines this for functions which it implements
10667 to always fail with ENOSYS. Some functions are actually named
10668 something starting with __ and the normal name is an alias. */
10669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10670 choke me
10671 #else
10672 char (*f) () = $ac_func;
10673 #endif
10674 #ifdef __cplusplus
10675 }
10676 #endif
10677
10678 int
10679 main ()
10680 {
10681 return f != $ac_func;
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688 (eval $ac_link) 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; } &&
10701 { ac_try='test -s conftest$ac_exeext'
10702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10707 eval "$as_ac_var=yes"
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 eval "$as_ac_var=no"
10713 fi
10714 rm -f conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716 fi
10717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10719 if test `eval echo '${'$as_ac_var'}'` = yes; then
10720 cat >>confdefs.h <<_ACEOF
10721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10722 _ACEOF
10723 HAVE_GTK_FILE_CHOOSER=yes
10724 fi
10725 done
10726
10727
10728 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10729 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10730
10731 cat >>confdefs.h <<\_ACEOF
10732 #define HAVE_GTK_FILE_BOTH 1
10733 _ACEOF
10734
10735 fi
10736
10737 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10738 HAVE_GTK_AND_PTHREAD=no
10739
10740 for ac_header in pthread.h
10741 do
10742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10744 echo "$as_me:$LINENO: checking for $ac_header" >&5
10745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 fi
10749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10751 else
10752 # Is the header compilable?
10753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 $ac_includes_default
10762 #include <$ac_header>
10763 _ACEOF
10764 rm -f conftest.$ac_objext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10766 (eval $ac_compile) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try='test -s conftest.$ac_objext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 ac_header_compiler=yes
10786 else
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 ac_header_compiler=no
10791 fi
10792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10794 echo "${ECHO_T}$ac_header_compiler" >&6
10795
10796 # Is the header present?
10797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10799 cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <$ac_header>
10806 _ACEOF
10807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10818 else
10819 ac_cpp_err=
10820 fi
10821 else
10822 ac_cpp_err=yes
10823 fi
10824 if test -z "$ac_cpp_err"; then
10825 ac_header_preproc=yes
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_header_preproc=no
10831 fi
10832 rm -f conftest.err conftest.$ac_ext
10833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10834 echo "${ECHO_T}$ac_header_preproc" >&6
10835
10836 # So? What about this header?
10837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10838 yes:no: )
10839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10843 ac_header_preproc=yes
10844 ;;
10845 no:yes:* )
10846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10858 (
10859 cat <<\_ASBOX
10860 ## ------------------------------------------ ##
10861 ## Report this to the AC_PACKAGE_NAME lists. ##
10862 ## ------------------------------------------ ##
10863 _ASBOX
10864 ) |
10865 sed "s/^/$as_me: WARNING: /" >&2
10866 ;;
10867 esac
10868 echo "$as_me:$LINENO: checking for $ac_header" >&5
10869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873 eval "$as_ac_Header=\$ac_header_preproc"
10874 fi
10875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10877
10878 fi
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882 _ACEOF
10883
10884 fi
10885
10886 done
10887
10888 if test "$ac_cv_header_pthread_h"; then
10889 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10890 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10891 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894 ac_check_lib_save_LIBS=$LIBS
10895 LIBS="-lpthread $LIBS"
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h. */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902
10903 /* Override any gcc2 internal prototype to avoid an error. */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 /* We use char because int might match the return type of a gcc2
10908 builtin and then its argument prototype would still apply. */
10909 char pthread_self ();
10910 int
10911 main ()
10912 {
10913 pthread_self ();
10914 ;
10915 return 0;
10916 }
10917 _ACEOF
10918 rm -f conftest.$ac_objext conftest$ac_exeext
10919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10920 (eval $ac_link) 2>conftest.er1
10921 ac_status=$?
10922 grep -v '^ *+' conftest.er1 >conftest.err
10923 rm -f conftest.er1
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest$ac_exeext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 ac_cv_lib_pthread_pthread_self=yes
10940 else
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10943
10944 ac_cv_lib_pthread_pthread_self=no
10945 fi
10946 rm -f conftest.err conftest.$ac_objext \
10947 conftest$ac_exeext conftest.$ac_ext
10948 LIBS=$ac_check_lib_save_LIBS
10949 fi
10950 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10951 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10952 if test $ac_cv_lib_pthread_pthread_self = yes; then
10953 HAVE_GTK_AND_PTHREAD=yes
10954 fi
10955
10956 fi
10957 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10958 GTK_LIBS="$GTK_LIBS -lpthread"
10959
10960 cat >>confdefs.h <<\_ACEOF
10961 #define HAVE_GTK_AND_PTHREAD 1
10962 _ACEOF
10963
10964 fi
10965 fi
10966 fi
10967
10968 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10969 if test x"${HAVE_X11R5}" = xyes; then
10970 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10971 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10972 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h. */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981
10982 #include <X11/Intrinsic.h>
10983 #include <X11/Xaw/Simple.h>
10984 int
10985 main ()
10986 {
10987
10988 ;
10989 return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11004 ac_status=$?
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; } &&
11007 { ac_try='test -s conftest$ac_exeext'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 emacs_cv_x11_version_5_with_xaw=yes
11014 else
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018 emacs_cv_x11_version_5_with_xaw=no
11019 fi
11020 rm -f conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 fi
11023
11024 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11025 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11026 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11027 USE_X_TOOLKIT=LUCID
11028 else
11029 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11030 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11031 USE_X_TOOLKIT=none
11032 fi
11033 else
11034 USE_X_TOOLKIT=none
11035 fi
11036 fi
11037
11038 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11039
11040 if test "${USE_X_TOOLKIT}" != "none"; then
11041 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11042 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11043 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h. */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 #include <X11/Intrinsic.h>
11053 int
11054 main ()
11055 {
11056 #if XtSpecificationRelease < 6
11057 fail;
11058 #endif
11059
11060 ;
11061 return 0;
11062 }
11063 _ACEOF
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 emacs_cv_x11_toolkit_version_6=yes
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090 emacs_cv_x11_toolkit_version_6=no
11091 fi
11092 rm -f conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 fi
11095
11096 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11097 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11098 echo "$as_me:$LINENO: result: 6 or newer" >&5
11099 echo "${ECHO_T}6 or newer" >&6
11100
11101 cat >>confdefs.h <<\_ACEOF
11102 #define HAVE_X11XTR6 1
11103 _ACEOF
11104
11105 else
11106 echo "$as_me:$LINENO: result: before 6" >&5
11107 echo "${ECHO_T}before 6" >&6
11108 fi
11109
11110 OLDLIBS="$LIBS"
11111 if test x$HAVE_X11XTR6 = xyes; then
11112 LIBS="-lXt -lSM -lICE $LIBS"
11113 else
11114 LIBS="-lXt $LIBS"
11115 fi
11116
11117 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11118 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11119 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122 ac_check_lib_save_LIBS=$LIBS
11123 LIBS="-lXmu $LIBS"
11124 cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h. */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130
11131 /* Override any gcc2 internal prototype to avoid an error. */
11132 #ifdef __cplusplus
11133 extern "C"
11134 #endif
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137 char XmuConvertStandardSelection ();
11138 int
11139 main ()
11140 {
11141 XmuConvertStandardSelection ();
11142 ;
11143 return 0;
11144 }
11145 _ACEOF
11146 rm -f conftest.$ac_objext conftest$ac_exeext
11147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11148 (eval $ac_link) 2>conftest.er1
11149 ac_status=$?
11150 grep -v '^ *+' conftest.er1 >conftest.err
11151 rm -f conftest.er1
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest$ac_exeext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11168 else
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11171
11172 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11173 fi
11174 rm -f conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_lib_save_LIBS
11177 fi
11178 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11179 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11180 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11181 cat >>confdefs.h <<_ACEOF
11182 #define HAVE_LIBXMU 1
11183 _ACEOF
11184
11185 LIBS="-lXmu $LIBS"
11186
11187 fi
11188
11189 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11190 fi
11191
11192 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11193 if test "${HAVE_X11}" = "yes"; then
11194 if test "${USE_X_TOOLKIT}" != "none"; then
11195
11196 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11197 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11198 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201 ac_check_lib_save_LIBS=$LIBS
11202 LIBS="-lXext $LIBS"
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209
11210 /* Override any gcc2 internal prototype to avoid an error. */
11211 #ifdef __cplusplus
11212 extern "C"
11213 #endif
11214 /* We use char because int might match the return type of a gcc2
11215 builtin and then its argument prototype would still apply. */
11216 char XShapeQueryExtension ();
11217 int
11218 main ()
11219 {
11220 XShapeQueryExtension ();
11221 ;
11222 return 0;
11223 }
11224 _ACEOF
11225 rm -f conftest.$ac_objext conftest$ac_exeext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11227 (eval $ac_link) 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
11234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_lib_Xext_XShapeQueryExtension=yes
11247 else
11248 echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11250
11251 ac_cv_lib_Xext_XShapeQueryExtension=no
11252 fi
11253 rm -f conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_lib_save_LIBS
11256 fi
11257 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11258 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11259 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11260 cat >>confdefs.h <<_ACEOF
11261 #define HAVE_LIBXEXT 1
11262 _ACEOF
11263
11264 LIBS="-lXext $LIBS"
11265
11266 fi
11267
11268 fi
11269 fi
11270
11271 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11272 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11273 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11274 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 #include <Xm/Xm.h>
11284 int
11285 main ()
11286 {
11287 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11288 int x = 5;
11289 #else
11290 Motif version prior to 2.1.
11291 #endif
11292 ;
11293 return 0;
11294 }
11295 _ACEOF
11296 rm -f conftest.$ac_objext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11298 (eval $ac_compile) 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 emacs_cv_motif_version_2_1=yes
11318 else
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11321
11322 emacs_cv_motif_version_2_1=no
11323 fi
11324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11325 fi
11326 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11327 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11328 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11329 if test $emacs_cv_motif_version_2_1 = yes; then
11330 HAVE_LIBXP=no
11331
11332 cat >>confdefs.h <<\_ACEOF
11333 #define HAVE_MOTIF_2_1 1
11334 _ACEOF
11335
11336 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11337 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11338 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341 ac_check_lib_save_LIBS=$LIBS
11342 LIBS="-lXp $LIBS"
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h. */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349
11350 /* Override any gcc2 internal prototype to avoid an error. */
11351 #ifdef __cplusplus
11352 extern "C"
11353 #endif
11354 /* We use char because int might match the return type of a gcc2
11355 builtin and then its argument prototype would still apply. */
11356 char XpCreateContext ();
11357 int
11358 main ()
11359 {
11360 XpCreateContext ();
11361 ;
11362 return 0;
11363 }
11364 _ACEOF
11365 rm -f conftest.$ac_objext conftest$ac_exeext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11367 (eval $ac_link) 2>conftest.er1
11368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest$ac_exeext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_lib_Xp_XpCreateContext=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 ac_cv_lib_Xp_XpCreateContext=no
11392 fi
11393 rm -f conftest.err conftest.$ac_objext \
11394 conftest$ac_exeext conftest.$ac_ext
11395 LIBS=$ac_check_lib_save_LIBS
11396 fi
11397 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11398 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11399 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11400 HAVE_LIBXP=yes
11401 fi
11402
11403 if test ${HAVE_LIBXP} = yes; then
11404
11405 cat >>confdefs.h <<\_ACEOF
11406 #define HAVE_LIBXP 1
11407 _ACEOF
11408
11409 fi
11410 else
11411 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11412 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11413 if test "${emacs_cv_lesstif+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416 # We put this in CFLAGS temporarily to precede other -I options
11417 # that might be in CFLAGS temporarily.
11418 # We put this in CPPFLAGS where it precedes the other -I options.
11419 OLD_CPPFLAGS=$CPPFLAGS
11420 OLD_CFLAGS=$CFLAGS
11421 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11422 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h. */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11430 int
11431 main ()
11432 {
11433 int x = 5;
11434 ;
11435 return 0;
11436 }
11437 _ACEOF
11438 rm -f conftest.$ac_objext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11440 (eval $ac_compile) 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest.$ac_objext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 emacs_cv_lesstif=yes
11460 else
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 emacs_cv_lesstif=no
11465 fi
11466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11467 fi
11468 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11469 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11470 if test $emacs_cv_lesstif = yes; then
11471 # Make sure this -I option remains in CPPFLAGS after it is set
11472 # back to REAL_CPPFLAGS.
11473 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11474 # have those other -I options anyway. Ultimately, having this
11475 # directory ultimately in CPPFLAGS will be enough.
11476 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11477 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11478 else
11479 CFLAGS=$OLD_CFLAGS
11480 CPPFLAGS=$OLD_CPPFLAGS
11481 fi
11482 fi
11483 fi
11484
11485 ### Is -lXaw3d available?
11486 HAVE_XAW3D=no
11487 if test "${HAVE_X11}" = "yes"; then
11488 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11489 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11490 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11491 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494 cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h. */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500 #include <X11/Xaw3d/Scrollbar.h>
11501 _ACEOF
11502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11504 ac_status=$?
11505 grep -v '^ *+' conftest.er1 >conftest.err
11506 rm -f conftest.er1
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } >/dev/null; then
11510 if test -s conftest.err; then
11511 ac_cpp_err=$ac_c_preproc_warn_flag
11512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11513 else
11514 ac_cpp_err=
11515 fi
11516 else
11517 ac_cpp_err=yes
11518 fi
11519 if test -z "$ac_cpp_err"; then
11520 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11526 fi
11527 rm -f conftest.err conftest.$ac_ext
11528 fi
11529 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11530 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11531 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11532 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11533 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11534 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537 ac_check_lib_save_LIBS=$LIBS
11538 LIBS="-lXaw3d $LIBS"
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545
11546 /* Override any gcc2 internal prototype to avoid an error. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 /* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11552 char XawScrollbarSetThumb ();
11553 int
11554 main ()
11555 {
11556 XawScrollbarSetThumb ();
11557 ;
11558 return 0;
11559 }
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; } &&
11576 { ac_try='test -s conftest$ac_exeext'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11583 else
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11586
11587 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11588 fi
11589 rm -f conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_lib_save_LIBS
11592 fi
11593 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11594 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11595 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11596 HAVE_XAW3D=yes
11597 fi
11598
11599 fi
11600
11601
11602 if test "${HAVE_XAW3D}" = "yes"; then
11603
11604 cat >>confdefs.h <<\_ACEOF
11605 #define HAVE_XAW3D 1
11606 _ACEOF
11607
11608 fi
11609 fi
11610 fi
11611
11612
11613
11614 USE_TOOLKIT_SCROLL_BARS=no
11615 if test "${with_toolkit_scroll_bars}" != "no"; then
11616 if test "${USE_X_TOOLKIT}" != "none"; then
11617 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11618 cat >>confdefs.h <<\_ACEOF
11619 #define USE_TOOLKIT_SCROLL_BARS 1
11620 _ACEOF
11621
11622 HAVE_XAW3D=no
11623 USE_TOOLKIT_SCROLL_BARS=yes
11624 elif test "${HAVE_XAW3D}" = "yes"; then
11625 cat >>confdefs.h <<\_ACEOF
11626 #define USE_TOOLKIT_SCROLL_BARS 1
11627 _ACEOF
11628
11629 USE_TOOLKIT_SCROLL_BARS=yes
11630 fi
11631 elif test "${HAVE_GTK}" = "yes"; then
11632 cat >>confdefs.h <<\_ACEOF
11633 #define USE_TOOLKIT_SCROLL_BARS 1
11634 _ACEOF
11635
11636 USE_TOOLKIT_SCROLL_BARS=yes
11637 elif test "${HAVE_CARBON}" = "yes"; then
11638 cat >>confdefs.h <<\_ACEOF
11639 #define USE_TOOLKIT_SCROLL_BARS 1
11640 _ACEOF
11641
11642 USE_TOOLKIT_SCROLL_BARS=yes
11643 fi
11644 fi
11645
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h. */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652
11653 #include <X11/Xlib.h>
11654 #include <X11/Xresource.h>
11655 int
11656 main ()
11657 {
11658 XIMProc callback;
11659 ;
11660 return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11665 (eval $ac_compile) 2>conftest.er1
11666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 HAVE_XIM=yes
11685
11686 cat >>confdefs.h <<\_ACEOF
11687 #define HAVE_XIM 1
11688 _ACEOF
11689
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 HAVE_XIM=no
11695 fi
11696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697
11698
11699 if test "${with_xim}" != "no"; then
11700
11701 cat >>confdefs.h <<\_ACEOF
11702 #define USE_XIM 1
11703 _ACEOF
11704
11705 fi
11706
11707
11708 if test "${HAVE_XIM}" != "no"; then
11709 late_CFLAGS=$CFLAGS
11710 if test "$GCC" = yes; then
11711 CFLAGS="$CFLAGS --pedantic-errors"
11712 fi
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719
11720 #include <X11/Xlib.h>
11721 #include <X11/Xresource.h>
11722 int
11723 main ()
11724 {
11725 Display *display;
11726 XrmDatabase db;
11727 char *res_name;
11728 char *res_class;
11729 XIMProc callback;
11730 XPointer *client_data;
11731 #ifndef __GNUC__
11732 /* If we're not using GCC, it's probably not XFree86, and this is
11733 probably right, but we can't use something like --pedantic-errors. */
11734 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11735 char*, XIMProc, XPointer*);
11736 #endif
11737 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11738 client_data);
11739 ;
11740 return 0;
11741 }
11742 _ACEOF
11743 rm -f conftest.$ac_objext
11744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11745 (eval $ac_compile) 2>conftest.er1
11746 ac_status=$?
11747 grep -v '^ *+' conftest.er1 >conftest.err
11748 rm -f conftest.er1
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } &&
11752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try='test -s conftest.$ac_objext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 emacs_cv_arg6_star=yes
11765 else
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 fi
11770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771
11772 if test "$emacs_cv_arg6_star" = yes; then
11773 cat >>confdefs.h <<\_ACEOF
11774 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11775 _ACEOF
11776
11777 else
11778 cat >>confdefs.h <<\_ACEOF
11779 #define XRegisterIMInstantiateCallback_arg6 XPointer
11780 _ACEOF
11781
11782 fi
11783 CFLAGS=$late_CFLAGS
11784 fi
11785
11786 ### For font-backend
11787 if test "${USE_FONT_BACKEND}" = "yes"; then
11788
11789
11790 cat >>confdefs.h <<\_ACEOF
11791 #define USE_FONT_BACKEND 1
11792 _ACEOF
11793
11794
11795 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
11796 HAVE_XFT=maybe
11797 if test "${HAVE_X11}" = "yes"; then
11798 if test "x${with_freetype}" = "xno"; then
11799 with_xft="no";
11800 fi
11801 if test "x${with_xft}" != "xno"; then
11802
11803 if test "X${with_pkg_config_prog}" != X; then
11804 PKG_CONFIG="${with_pkg_config_prog}"
11805 fi
11806
11807
11808 succeeded=no
11809
11810 if test -z "$PKG_CONFIG"; then
11811 # Extract the first word of "pkg-config", so it can be a program name with args.
11812 set dummy pkg-config; ac_word=$2
11813 echo "$as_me:$LINENO: checking for $ac_word" >&5
11814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818 case $PKG_CONFIG in
11819 [\\/]* | ?:[\\/]*)
11820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11821 ;;
11822 *)
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11825 do
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 break 2
11833 fi
11834 done
11835 done
11836
11837 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11838 ;;
11839 esac
11840 fi
11841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11842
11843 if test -n "$PKG_CONFIG"; then
11844 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11845 echo "${ECHO_T}$PKG_CONFIG" >&6
11846 else
11847 echo "$as_me:$LINENO: result: no" >&5
11848 echo "${ECHO_T}no" >&6
11849 fi
11850
11851 fi
11852
11853 if test "$PKG_CONFIG" = "no" ; then
11854 echo "*** The pkg-config script could not be found. Make sure it is"
11855 echo "*** in your path, or give the full path to pkg-config with"
11856 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
11857 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11858 else
11859 PKG_CONFIG_MIN_VERSION=0.9.0
11860 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11861 echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11862 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6
11863
11864 if $PKG_CONFIG --exists "xft >= 0.13.0" ; then
11865 echo "$as_me:$LINENO: result: yes" >&5
11866 echo "${ECHO_T}yes" >&6
11867 succeeded=yes
11868
11869 echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11870 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6
11871 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11872 echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11873 echo "${ECHO_T}$XFT_CFLAGS" >&6
11874
11875 echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11876 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6
11877 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11878 echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11879 echo "${ECHO_T}$XFT_LIBS" >&6
11880 else
11881 XFT_CFLAGS=""
11882 XFT_LIBS=""
11883 ## If we have a custom action on failure, don't print errors, but
11884 ## do set a variable so people can do so.
11885 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11886
11887 fi
11888
11889
11890
11891 else
11892 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11893 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11894 fi
11895 fi
11896
11897 if test $succeeded = yes; then
11898 :
11899 else
11900 HAVE_XFT=no
11901 fi
11902
11903 if test "$HAVE_XFT" != no; then
11904 OLD_CPPFLAGS="$CPPFLAGS"
11905 OLD_CFLAGS="$CFLAGS"
11906 OLD_LIBS="$LIBS"
11907 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11908 CFLAGS="$CFLAGS $XFT_CFLAGS"
11909 LIBS="$XFT_LIBS $LIBS"
11910 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11911 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11912 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
11913 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 fi
11916 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11917 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
11918 else
11919 # Is the header compilable?
11920 echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11921 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6
11922 cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h. */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 $ac_includes_default
11929 #include <X11/Xft/Xft.h>
11930 _ACEOF
11931 rm -f conftest.$ac_objext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11933 (eval $ac_compile) 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_header_compiler=yes
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_header_compiler=no
11958 fi
11959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11961 echo "${ECHO_T}$ac_header_compiler" >&6
11962
11963 # Is the header present?
11964 echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11965 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6
11966 cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h. */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 #include <X11/Xft/Xft.h>
11973 _ACEOF
11974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } >/dev/null; then
11982 if test -s conftest.err; then
11983 ac_cpp_err=$ac_c_preproc_warn_flag
11984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11985 else
11986 ac_cpp_err=
11987 fi
11988 else
11989 ac_cpp_err=yes
11990 fi
11991 if test -z "$ac_cpp_err"; then
11992 ac_header_preproc=yes
11993 else
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997 ac_header_preproc=no
11998 fi
11999 rm -f conftest.err conftest.$ac_ext
12000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12001 echo "${ECHO_T}$ac_header_preproc" >&6
12002
12003 # So? What about this header?
12004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12005 yes:no: )
12006 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12007 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12009 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12010 ac_header_preproc=yes
12011 ;;
12012 no:yes:* )
12013 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12014 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12016 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12018 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12020 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12021 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12022 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12023 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12024 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12025 (
12026 cat <<\_ASBOX
12027 ## ------------------------------------------ ##
12028 ## Report this to the AC_PACKAGE_NAME lists. ##
12029 ## ------------------------------------------ ##
12030 _ASBOX
12031 ) |
12032 sed "s/^/$as_me: WARNING: /" >&2
12033 ;;
12034 esac
12035 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12036 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
12037 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12039 else
12040 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12041 fi
12042 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12043 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
12044
12045 fi
12046 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12047 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12048 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
12049 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052 ac_check_lib_save_LIBS=$LIBS
12053 LIBS="-lXft $XFT_LIBS $LIBS"
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060
12061 /* Override any gcc2 internal prototype to avoid an error. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 /* We use char because int might match the return type of a gcc2
12066 builtin and then its argument prototype would still apply. */
12067 char XftFontOpen ();
12068 int
12069 main ()
12070 {
12071 XftFontOpen ();
12072 ;
12073 return 0;
12074 }
12075 _ACEOF
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12078 (eval $ac_link) 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12088 ac_status=$?
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try='test -s conftest$ac_exeext'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_cv_lib_Xft_XftFontOpen=yes
12098 else
12099 echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12101
12102 ac_cv_lib_Xft_XftFontOpen=no
12103 fi
12104 rm -f conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12107 fi
12108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12109 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
12110 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12111 HAVE_XFT=yes
12112 fi
12113
12114 fi
12115
12116
12117
12118 if test "${HAVE_XFT}" = "yes"; then
12119
12120 cat >>confdefs.h <<\_ACEOF
12121 #define HAVE_XFT 1
12122 _ACEOF
12123
12124
12125 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12126 else
12127 CFLAGS="$OLD_CPPFLAGS"
12128 CFLAGS="$OLD_CFLAGS"
12129 LIBS="$OLD_LIBS"
12130 fi
12131 fi
12132 fi
12133 fi
12134
12135 HAVE_FREETYPE=no
12136 ### Use -lfreetype if available, unless `--with-freetype=no'.
12137 if test "${HAVE_XFT}" = "yes"; then
12138 HAVE_FREETYPE=yes
12139 elif test "x${with_freetype}" != "xno"; then
12140 if test "X${with_pkg_config_prog}" != X; then
12141 PKG_CONFIG="${with_pkg_config_prog}"
12142 fi
12143
12144
12145 succeeded=no
12146
12147 if test -z "$PKG_CONFIG"; then
12148 # Extract the first word of "pkg-config", so it can be a program name with args.
12149 set dummy pkg-config; ac_word=$2
12150 echo "$as_me:$LINENO: checking for $ac_word" >&5
12151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12152 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 case $PKG_CONFIG in
12156 [\\/]* | ?:[\\/]*)
12157 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12158 ;;
12159 *)
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12162 do
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12169 break 2
12170 fi
12171 done
12172 done
12173
12174 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12175 ;;
12176 esac
12177 fi
12178 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12179
12180 if test -n "$PKG_CONFIG"; then
12181 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12182 echo "${ECHO_T}$PKG_CONFIG" >&6
12183 else
12184 echo "$as_me:$LINENO: result: no" >&5
12185 echo "${ECHO_T}no" >&6
12186 fi
12187
12188 fi
12189
12190 if test "$PKG_CONFIG" = "no" ; then
12191 echo "*** The pkg-config script could not be found. Make sure it is"
12192 echo "*** in your path, or give the full path to pkg-config with"
12193 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12194 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12195 else
12196 PKG_CONFIG_MIN_VERSION=0.9.0
12197 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12198 echo "$as_me:$LINENO: checking for freetype2" >&5
12199 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12200
12201 if $PKG_CONFIG --exists "freetype2" ; then
12202 echo "$as_me:$LINENO: result: yes" >&5
12203 echo "${ECHO_T}yes" >&6
12204 succeeded=yes
12205
12206 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12207 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6
12208 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12209 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12210 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6
12211
12212 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12213 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6
12214 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12215 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12216 echo "${ECHO_T}$FREETYPE_LIBS" >&6
12217 else
12218 FREETYPE_CFLAGS=""
12219 FREETYPE_LIBS=""
12220 ## If we have a custom action on failure, don't print errors, but
12221 ## do set a variable so people can do so.
12222 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12223
12224 fi
12225
12226
12227
12228 else
12229 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12230 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12231 fi
12232 fi
12233
12234 if test $succeeded = yes; then
12235 HAVE_FREETYPE=yes
12236 else
12237 HAVE_FREETYPE=no
12238 fi
12239
12240 if test "${HAVE_FREETYPE}" = "yes"; then
12241
12242 succeeded=no
12243
12244 if test -z "$PKG_CONFIG"; then
12245 # Extract the first word of "pkg-config", so it can be a program name with args.
12246 set dummy pkg-config; ac_word=$2
12247 echo "$as_me:$LINENO: checking for $ac_word" >&5
12248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12249 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252 case $PKG_CONFIG in
12253 [\\/]* | ?:[\\/]*)
12254 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12255 ;;
12256 *)
12257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 for as_dir in $PATH
12259 do
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12264 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 break 2
12267 fi
12268 done
12269 done
12270
12271 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12272 ;;
12273 esac
12274 fi
12275 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12276
12277 if test -n "$PKG_CONFIG"; then
12278 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12279 echo "${ECHO_T}$PKG_CONFIG" >&6
12280 else
12281 echo "$as_me:$LINENO: result: no" >&5
12282 echo "${ECHO_T}no" >&6
12283 fi
12284
12285 fi
12286
12287 if test "$PKG_CONFIG" = "no" ; then
12288 echo "*** The pkg-config script could not be found. Make sure it is"
12289 echo "*** in your path, or give the full path to pkg-config with"
12290 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12291 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12292 else
12293 PKG_CONFIG_MIN_VERSION=0.9.0
12294 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12295 echo "$as_me:$LINENO: checking for fontconfig" >&5
12296 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6
12297
12298 if $PKG_CONFIG --exists "fontconfig" ; then
12299 echo "$as_me:$LINENO: result: yes" >&5
12300 echo "${ECHO_T}yes" >&6
12301 succeeded=yes
12302
12303 echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12304 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6
12305 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"`
12306 echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12307 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6
12308
12309 echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12310 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6
12311 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"`
12312 echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12313 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6
12314 else
12315 FONTCONFIG_CFLAGS=""
12316 FONTCONFIG_LIBS=""
12317 ## If we have a custom action on failure, don't print errors, but
12318 ## do set a variable so people can do so.
12319 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12320
12321 fi
12322
12323
12324
12325 else
12326 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12327 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12328 fi
12329 fi
12330
12331 if test $succeeded = yes; then
12332 HAVE_FC=yes
12333 else
12334 HAVE_FC=no
12335 fi
12336
12337 if test "${HAVE_FC}" = "no"; then
12338 HAVE_FREETYPE=no
12339 fi
12340 fi
12341 fi
12342 if test "${HAVE_FREETYPE}" = "yes"; then
12343
12344 cat >>confdefs.h <<\_ACEOF
12345 #define HAVE_FREETYPE 1
12346 _ACEOF
12347
12348 # Extract the first word of "libotf-config", so it can be a program name with args.
12349 set dummy libotf-config; ac_word=$2
12350 echo "$as_me:$LINENO: checking for $ac_word" >&5
12351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12352 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 else
12355 if test -n "$HAVE_LIBOTF"; then
12356 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
12357 else
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12360 do
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12365 ac_cv_prog_HAVE_LIBOTF="yes"
12366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12368 fi
12369 done
12370 done
12371
12372 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
12373 fi
12374 fi
12375 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
12376 if test -n "$HAVE_LIBOTF"; then
12377 echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
12378 echo "${ECHO_T}$HAVE_LIBOTF" >&6
12379 else
12380 echo "$as_me:$LINENO: result: no" >&5
12381 echo "${ECHO_T}no" >&6
12382 fi
12383
12384 if test "${HAVE_LIBOTF}" = "yes"; then
12385
12386 cat >>confdefs.h <<\_ACEOF
12387 #define HAVE_LIBOTF 1
12388 _ACEOF
12389
12390 LIBOTF_CFLAGS=`libotf-config --cflags`
12391 LIBOTF_LIBS=`libotf-config --libs`
12392 fi
12393 fi
12394
12395
12396
12397
12398
12399
12400
12401 fi
12402
12403 ### Use -lXpm if available, unless `--with-xpm=no'.
12404 HAVE_XPM=no
12405 if test "${HAVE_X11}" = "yes"; then
12406 if test "${with_xpm}" != "no"; then
12407 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12408 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12409 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12410 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 fi
12413 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12414 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12415 else
12416 # Is the header compilable?
12417 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12418 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
12419 cat >conftest.$ac_ext <<_ACEOF
12420 /* confdefs.h. */
12421 _ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12425 $ac_includes_default
12426 #include <X11/xpm.h>
12427 _ACEOF
12428 rm -f conftest.$ac_objext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430 (eval $ac_compile) 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest.$ac_objext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_header_compiler=yes
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454 ac_header_compiler=no
12455 fi
12456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12458 echo "${ECHO_T}$ac_header_compiler" >&6
12459
12460 # Is the header present?
12461 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12462 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 #include <X11/xpm.h>
12470 _ACEOF
12471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } >/dev/null; then
12479 if test -s conftest.err; then
12480 ac_cpp_err=$ac_c_preproc_warn_flag
12481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12482 else
12483 ac_cpp_err=
12484 fi
12485 else
12486 ac_cpp_err=yes
12487 fi
12488 if test -z "$ac_cpp_err"; then
12489 ac_header_preproc=yes
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12493
12494 ac_header_preproc=no
12495 fi
12496 rm -f conftest.err conftest.$ac_ext
12497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12498 echo "${ECHO_T}$ac_header_preproc" >&6
12499
12500 # So? What about this header?
12501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12502 yes:no: )
12503 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12504 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12506 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12507 ac_header_preproc=yes
12508 ;;
12509 no:yes:* )
12510 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12515 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12517 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12519 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12521 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12522 (
12523 cat <<\_ASBOX
12524 ## ------------------------------------------ ##
12525 ## Report this to the AC_PACKAGE_NAME lists. ##
12526 ## ------------------------------------------ ##
12527 _ASBOX
12528 ) |
12529 sed "s/^/$as_me: WARNING: /" >&2
12530 ;;
12531 esac
12532 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12533 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12534 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537 ac_cv_header_X11_xpm_h=$ac_header_preproc
12538 fi
12539 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12540 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12541
12542 fi
12543 if test $ac_cv_header_X11_xpm_h = yes; then
12544 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12545 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12546 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549 ac_check_lib_save_LIBS=$LIBS
12550 LIBS="-lXpm -lX11 $LIBS"
12551 cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h. */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557
12558 /* Override any gcc2 internal prototype to avoid an error. */
12559 #ifdef __cplusplus
12560 extern "C"
12561 #endif
12562 /* We use char because int might match the return type of a gcc2
12563 builtin and then its argument prototype would still apply. */
12564 char XpmReadFileToPixmap ();
12565 int
12566 main ()
12567 {
12568 XpmReadFileToPixmap ();
12569 ;
12570 return 0;
12571 }
12572 _ACEOF
12573 rm -f conftest.$ac_objext conftest$ac_exeext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12575 (eval $ac_link) 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; } &&
12588 { ac_try='test -s conftest$ac_exeext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12594 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12595 else
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12600 fi
12601 rm -f conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 LIBS=$ac_check_lib_save_LIBS
12604 fi
12605 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12606 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12607 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12608 HAVE_XPM=yes
12609 fi
12610
12611 fi
12612
12613
12614 if test "${HAVE_XPM}" = "yes"; then
12615 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12616 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12617 cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h. */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 #include "X11/xpm.h"
12624 #ifndef XpmReturnAllocPixels
12625 no_return_alloc_pixels
12626 #endif
12627
12628 _ACEOF
12629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12630 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12631 HAVE_XPM=no
12632 else
12633 HAVE_XPM=yes
12634 fi
12635 rm -f conftest*
12636
12637
12638 if test "${HAVE_XPM}" = "yes"; then
12639 echo "$as_me:$LINENO: result: yes" >&5
12640 echo "${ECHO_T}yes" >&6
12641 else
12642 echo "$as_me:$LINENO: result: no" >&5
12643 echo "${ECHO_T}no" >&6
12644 fi
12645 fi
12646 fi
12647
12648 if test "${HAVE_XPM}" = "yes"; then
12649
12650 cat >>confdefs.h <<\_ACEOF
12651 #define HAVE_XPM 1
12652 _ACEOF
12653
12654 fi
12655 fi
12656
12657 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12658 HAVE_JPEG=no
12659 if test "${HAVE_X11}" = "yes"; then
12660 if test "${with_jpeg}" != "no"; then
12661 if test "${ac_cv_header_jerror_h+set}" = set; then
12662 echo "$as_me:$LINENO: checking for jerror.h" >&5
12663 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12664 if test "${ac_cv_header_jerror_h+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 fi
12667 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12668 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12669 else
12670 # Is the header compilable?
12671 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12672 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12673 cat >conftest.$ac_ext <<_ACEOF
12674 /* confdefs.h. */
12675 _ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12679 $ac_includes_default
12680 #include <jerror.h>
12681 _ACEOF
12682 rm -f conftest.$ac_objext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684 (eval $ac_compile) 2>conftest.er1
12685 ac_status=$?
12686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
12691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_header_compiler=yes
12704 else
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12707
12708 ac_header_compiler=no
12709 fi
12710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712 echo "${ECHO_T}$ac_header_compiler" >&6
12713
12714 # Is the header present?
12715 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12716 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <jerror.h>
12724 _ACEOF
12725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } >/dev/null; then
12733 if test -s conftest.err; then
12734 ac_cpp_err=$ac_c_preproc_warn_flag
12735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12736 else
12737 ac_cpp_err=
12738 fi
12739 else
12740 ac_cpp_err=yes
12741 fi
12742 if test -z "$ac_cpp_err"; then
12743 ac_header_preproc=yes
12744 else
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748 ac_header_preproc=no
12749 fi
12750 rm -f conftest.err conftest.$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752 echo "${ECHO_T}$ac_header_preproc" >&6
12753
12754 # So? What about this header?
12755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12756 yes:no: )
12757 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12758 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12760 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12761 ac_header_preproc=yes
12762 ;;
12763 no:yes:* )
12764 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12765 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12767 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12769 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12770 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12771 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12772 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12773 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12774 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12775 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12776 (
12777 cat <<\_ASBOX
12778 ## ------------------------------------------ ##
12779 ## Report this to the AC_PACKAGE_NAME lists. ##
12780 ## ------------------------------------------ ##
12781 _ASBOX
12782 ) |
12783 sed "s/^/$as_me: WARNING: /" >&2
12784 ;;
12785 esac
12786 echo "$as_me:$LINENO: checking for jerror.h" >&5
12787 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12788 if test "${ac_cv_header_jerror_h+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791 ac_cv_header_jerror_h=$ac_header_preproc
12792 fi
12793 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12794 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12795
12796 fi
12797 if test $ac_cv_header_jerror_h = yes; then
12798 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12799 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12800 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803 ac_check_lib_save_LIBS=$LIBS
12804 LIBS="-ljpeg $LIBS"
12805 cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h. */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811
12812 /* Override any gcc2 internal prototype to avoid an error. */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 /* We use char because int might match the return type of a gcc2
12817 builtin and then its argument prototype would still apply. */
12818 char jpeg_destroy_compress ();
12819 int
12820 main ()
12821 {
12822 jpeg_destroy_compress ();
12823 ;
12824 return 0;
12825 }
12826 _ACEOF
12827 rm -f conftest.$ac_objext conftest$ac_exeext
12828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12829 (eval $ac_link) 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest$ac_exeext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12854 fi
12855 rm -f conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
12857 LIBS=$ac_check_lib_save_LIBS
12858 fi
12859 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12860 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12861 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12862 HAVE_JPEG=yes
12863 fi
12864
12865 fi
12866
12867
12868 fi
12869
12870
12871 if test "${HAVE_JPEG}" = "yes"; then
12872 cat >>confdefs.h <<\_ACEOF
12873 #define HAVE_JPEG 1
12874 _ACEOF
12875
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h. */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 #include <jpeglib.h>
12883 version=JPEG_LIB_VERSION
12884
12885 _ACEOF
12886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12887 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12888 cat >>confdefs.h <<\_ACEOF
12889 #define HAVE_JPEG 1
12890 _ACEOF
12891
12892 else
12893 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12894 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12895 HAVE_JPEG=no
12896 fi
12897 rm -f conftest*
12898
12899 fi
12900 fi
12901
12902 ### Use -lpng if available, unless `--with-png=no'.
12903 HAVE_PNG=no
12904 if test "${HAVE_X11}" = "yes"; then
12905 if test "${with_png}" != "no"; then
12906 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12907 # in /usr/include/libpng.
12908
12909
12910 for ac_header in png.h libpng/png.h
12911 do
12912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12914 echo "$as_me:$LINENO: checking for $ac_header" >&5
12915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 fi
12919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12921 else
12922 # Is the header compilable?
12923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 $ac_includes_default
12932 #include <$ac_header>
12933 _ACEOF
12934 rm -f conftest.$ac_objext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12936 (eval $ac_compile) 2>conftest.er1
12937 ac_status=$?
12938 grep -v '^ *+' conftest.er1 >conftest.err
12939 rm -f conftest.er1
12940 cat conftest.err >&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest.$ac_objext'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 ac_header_compiler=yes
12956 else
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960 ac_header_compiler=no
12961 fi
12962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12964 echo "${ECHO_T}$ac_header_compiler" >&6
12965
12966 # Is the header present?
12967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12969 cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h. */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12975 #include <$ac_header>
12976 _ACEOF
12977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } >/dev/null; then
12985 if test -s conftest.err; then
12986 ac_cpp_err=$ac_c_preproc_warn_flag
12987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12988 else
12989 ac_cpp_err=
12990 fi
12991 else
12992 ac_cpp_err=yes
12993 fi
12994 if test -z "$ac_cpp_err"; then
12995 ac_header_preproc=yes
12996 else
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
12999
13000 ac_header_preproc=no
13001 fi
13002 rm -f conftest.err conftest.$ac_ext
13003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13004 echo "${ECHO_T}$ac_header_preproc" >&6
13005
13006 # So? What about this header?
13007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13008 yes:no: )
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13013 ac_header_preproc=yes
13014 ;;
13015 no:yes:* )
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13028 (
13029 cat <<\_ASBOX
13030 ## ------------------------------------------ ##
13031 ## Report this to the AC_PACKAGE_NAME lists. ##
13032 ## ------------------------------------------ ##
13033 _ASBOX
13034 ) |
13035 sed "s/^/$as_me: WARNING: /" >&2
13036 ;;
13037 esac
13038 echo "$as_me:$LINENO: checking for $ac_header" >&5
13039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043 eval "$as_ac_Header=\$ac_header_preproc"
13044 fi
13045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13047
13048 fi
13049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13050 cat >>confdefs.h <<_ACEOF
13051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13052 _ACEOF
13053
13054 fi
13055
13056 done
13057
13058 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13059 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13060 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
13061 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064 ac_check_lib_save_LIBS=$LIBS
13065 LIBS="-lpng -lz -lm $LIBS"
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h. */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072
13073 /* Override any gcc2 internal prototype to avoid an error. */
13074 #ifdef __cplusplus
13075 extern "C"
13076 #endif
13077 /* We use char because int might match the return type of a gcc2
13078 builtin and then its argument prototype would still apply. */
13079 char png_get_channels ();
13080 int
13081 main ()
13082 {
13083 png_get_channels ();
13084 ;
13085 return 0;
13086 }
13087 _ACEOF
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090 (eval $ac_link) 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; } &&
13103 { ac_try='test -s conftest$ac_exeext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_lib_png_png_get_channels=yes
13110 else
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13113
13114 ac_cv_lib_png_png_get_channels=no
13115 fi
13116 rm -f conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
13118 LIBS=$ac_check_lib_save_LIBS
13119 fi
13120 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13121 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
13122 if test $ac_cv_lib_png_png_get_channels = yes; then
13123 HAVE_PNG=yes
13124 fi
13125
13126 fi
13127 fi
13128
13129 if test "${HAVE_PNG}" = "yes"; then
13130
13131 cat >>confdefs.h <<\_ACEOF
13132 #define HAVE_PNG 1
13133 _ACEOF
13134
13135 fi
13136 fi
13137
13138 ### Use -ltiff if available, unless `--with-tiff=no'.
13139 HAVE_TIFF=no
13140 if test "${HAVE_X11}" = "yes"; then
13141 if test "${with_tiff}" != "no"; then
13142 if test "${ac_cv_header_tiffio_h+set}" = set; then
13143 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13144 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13145 if test "${ac_cv_header_tiffio_h+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 fi
13148 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13149 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13150 else
13151 # Is the header compilable?
13152 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13153 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
13154 cat >conftest.$ac_ext <<_ACEOF
13155 /* confdefs.h. */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13160 $ac_includes_default
13161 #include <tiffio.h>
13162 _ACEOF
13163 rm -f conftest.$ac_objext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165 (eval $ac_compile) 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest.$ac_objext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_header_compiler=yes
13185 else
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189 ac_header_compiler=no
13190 fi
13191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13193 echo "${ECHO_T}$ac_header_compiler" >&6
13194
13195 # Is the header present?
13196 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13197 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 #include <tiffio.h>
13205 _ACEOF
13206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13208 ac_status=$?
13209 grep -v '^ *+' conftest.er1 >conftest.err
13210 rm -f conftest.er1
13211 cat conftest.err >&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } >/dev/null; then
13214 if test -s conftest.err; then
13215 ac_cpp_err=$ac_c_preproc_warn_flag
13216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13217 else
13218 ac_cpp_err=
13219 fi
13220 else
13221 ac_cpp_err=yes
13222 fi
13223 if test -z "$ac_cpp_err"; then
13224 ac_header_preproc=yes
13225 else
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229 ac_header_preproc=no
13230 fi
13231 rm -f conftest.err conftest.$ac_ext
13232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13233 echo "${ECHO_T}$ac_header_preproc" >&6
13234
13235 # So? What about this header?
13236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13237 yes:no: )
13238 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13239 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13240 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13241 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13242 ac_header_preproc=yes
13243 ;;
13244 no:yes:* )
13245 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13246 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13248 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13250 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13252 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13254 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13256 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13257 (
13258 cat <<\_ASBOX
13259 ## ------------------------------------------ ##
13260 ## Report this to the AC_PACKAGE_NAME lists. ##
13261 ## ------------------------------------------ ##
13262 _ASBOX
13263 ) |
13264 sed "s/^/$as_me: WARNING: /" >&2
13265 ;;
13266 esac
13267 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13268 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13269 if test "${ac_cv_header_tiffio_h+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 else
13272 ac_cv_header_tiffio_h=$ac_header_preproc
13273 fi
13274 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13275 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13276
13277 fi
13278 if test $ac_cv_header_tiffio_h = yes; then
13279 tifflibs="-lz -lm"
13280 # At least one tiff package requires the jpeg library.
13281 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13282 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13283 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
13284 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287 ac_check_lib_save_LIBS=$LIBS
13288 LIBS="-ltiff $tifflibs $LIBS"
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295
13296 /* Override any gcc2 internal prototype to avoid an error. */
13297 #ifdef __cplusplus
13298 extern "C"
13299 #endif
13300 /* We use char because int might match the return type of a gcc2
13301 builtin and then its argument prototype would still apply. */
13302 char TIFFGetVersion ();
13303 int
13304 main ()
13305 {
13306 TIFFGetVersion ();
13307 ;
13308 return 0;
13309 }
13310 _ACEOF
13311 rm -f conftest.$ac_objext conftest$ac_exeext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313 (eval $ac_link) 2>conftest.er1
13314 ac_status=$?
13315 grep -v '^ *+' conftest.er1 >conftest.err
13316 rm -f conftest.er1
13317 cat conftest.err >&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest$ac_exeext'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_cv_lib_tiff_TIFFGetVersion=yes
13333 else
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13336
13337 ac_cv_lib_tiff_TIFFGetVersion=no
13338 fi
13339 rm -f conftest.err conftest.$ac_objext \
13340 conftest$ac_exeext conftest.$ac_ext
13341 LIBS=$ac_check_lib_save_LIBS
13342 fi
13343 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13344 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
13345 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13346 HAVE_TIFF=yes
13347 fi
13348
13349 fi
13350
13351
13352 fi
13353
13354 if test "${HAVE_TIFF}" = "yes"; then
13355
13356 cat >>confdefs.h <<\_ACEOF
13357 #define HAVE_TIFF 1
13358 _ACEOF
13359
13360 fi
13361 fi
13362
13363 ### Use -lgif if available, unless `--with-gif=no'.
13364 HAVE_GIF=no
13365 if test "${HAVE_X11}" = "yes"; then
13366 if test "${with_gif}" != "no"; then
13367 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13368 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13369 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13370 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 fi
13373 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13374 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13375 else
13376 # Is the header compilable?
13377 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13378 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
13379 cat >conftest.$ac_ext <<_ACEOF
13380 /* confdefs.h. */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 $ac_includes_default
13386 #include <gif_lib.h>
13387 _ACEOF
13388 rm -f conftest.$ac_objext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390 (eval $ac_compile) 2>conftest.er1
13391 ac_status=$?
13392 grep -v '^ *+' conftest.er1 >conftest.err
13393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest.$ac_objext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 ac_header_compiler=yes
13410 else
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13413
13414 ac_header_compiler=no
13415 fi
13416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13418 echo "${ECHO_T}$ac_header_compiler" >&6
13419
13420 # Is the header present?
13421 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13422 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
13423 cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h. */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 #include <gif_lib.h>
13430 _ACEOF
13431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13433 ac_status=$?
13434 grep -v '^ *+' conftest.er1 >conftest.err
13435 rm -f conftest.er1
13436 cat conftest.err >&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } >/dev/null; then
13439 if test -s conftest.err; then
13440 ac_cpp_err=$ac_c_preproc_warn_flag
13441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13442 else
13443 ac_cpp_err=
13444 fi
13445 else
13446 ac_cpp_err=yes
13447 fi
13448 if test -z "$ac_cpp_err"; then
13449 ac_header_preproc=yes
13450 else
13451 echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.$ac_ext >&5
13453
13454 ac_header_preproc=no
13455 fi
13456 rm -f conftest.err conftest.$ac_ext
13457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13458 echo "${ECHO_T}$ac_header_preproc" >&6
13459
13460 # So? What about this header?
13461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13462 yes:no: )
13463 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13464 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13466 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13467 ac_header_preproc=yes
13468 ;;
13469 no:yes:* )
13470 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13471 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13473 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13475 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13477 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13478 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13479 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13481 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13482 (
13483 cat <<\_ASBOX
13484 ## ------------------------------------------ ##
13485 ## Report this to the AC_PACKAGE_NAME lists. ##
13486 ## ------------------------------------------ ##
13487 _ASBOX
13488 ) |
13489 sed "s/^/$as_me: WARNING: /" >&2
13490 ;;
13491 esac
13492 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13493 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13494 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497 ac_cv_header_gif_lib_h=$ac_header_preproc
13498 fi
13499 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13500 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13501
13502 fi
13503 if test $ac_cv_header_gif_lib_h = yes; then
13504 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13505 # Earlier versions can crash Emacs.
13506 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13507 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
13508 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511 ac_check_lib_save_LIBS=$LIBS
13512 LIBS="-lungif $LIBS"
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h. */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519
13520 /* Override any gcc2 internal prototype to avoid an error. */
13521 #ifdef __cplusplus
13522 extern "C"
13523 #endif
13524 /* We use char because int might match the return type of a gcc2
13525 builtin and then its argument prototype would still apply. */
13526 char EGifPutExtensionLast ();
13527 int
13528 main ()
13529 {
13530 EGifPutExtensionLast ();
13531 ;
13532 return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>conftest.er1
13538 ac_status=$?
13539 grep -v '^ *+' conftest.er1 >conftest.err
13540 rm -f conftest.er1
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest$ac_exeext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13561
13562 ac_cv_lib_ungif_EGifPutExtensionLast=no
13563 fi
13564 rm -f conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13567 fi
13568 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13569 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13570 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13571 HAVE_GIF=yes
13572 fi
13573
13574 fi
13575
13576
13577 fi
13578
13579 if test "${HAVE_GIF}" = "yes"; then
13580
13581 cat >>confdefs.h <<\_ACEOF
13582 #define HAVE_GIF 1
13583 _ACEOF
13584
13585 fi
13586 fi
13587
13588 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13589 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13590 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13591 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 fi
13594 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13595 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13596 else
13597 # Is the header compilable?
13598 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13599 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h. */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13606 $ac_includes_default
13607 #include <malloc/malloc.h>
13608 _ACEOF
13609 rm -f conftest.$ac_objext
13610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13611 (eval $ac_compile) 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
13618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest.$ac_objext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_header_compiler=yes
13631 else
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ac_header_compiler=no
13636 fi
13637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13639 echo "${ECHO_T}$ac_header_compiler" >&6
13640
13641 # Is the header present?
13642 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13643 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 #include <malloc/malloc.h>
13651 _ACEOF
13652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13654 ac_status=$?
13655 grep -v '^ *+' conftest.er1 >conftest.err
13656 rm -f conftest.er1
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } >/dev/null; then
13660 if test -s conftest.err; then
13661 ac_cpp_err=$ac_c_preproc_warn_flag
13662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13663 else
13664 ac_cpp_err=
13665 fi
13666 else
13667 ac_cpp_err=yes
13668 fi
13669 if test -z "$ac_cpp_err"; then
13670 ac_header_preproc=yes
13671 else
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675 ac_header_preproc=no
13676 fi
13677 rm -f conftest.err conftest.$ac_ext
13678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13679 echo "${ECHO_T}$ac_header_preproc" >&6
13680
13681 # So? What about this header?
13682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13683 yes:no: )
13684 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13685 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13687 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13688 ac_header_preproc=yes
13689 ;;
13690 no:yes:* )
13691 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13692 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13694 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13696 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13698 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13700 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13702 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13703 (
13704 cat <<\_ASBOX
13705 ## ------------------------------------------ ##
13706 ## Report this to the AC_PACKAGE_NAME lists. ##
13707 ## ------------------------------------------ ##
13708 _ASBOX
13709 ) |
13710 sed "s/^/$as_me: WARNING: /" >&2
13711 ;;
13712 esac
13713 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13714 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13715 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13719 fi
13720 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13721 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13722
13723 fi
13724 if test $ac_cv_header_malloc_malloc_h = yes; then
13725
13726 cat >>confdefs.h <<\_ACEOF
13727 #define HAVE_MALLOC_MALLOC_H 1
13728 _ACEOF
13729
13730 fi
13731
13732
13733
13734 ### Use Mac OS X Carbon API to implement GUI.
13735 if test "${HAVE_CARBON}" = "yes"; then
13736
13737 cat >>confdefs.h <<\_ACEOF
13738 #define HAVE_CARBON 1
13739 _ACEOF
13740
13741 ## Specify the install directory
13742 carbon_appdir=
13743 if test "${carbon_appdir_x}" != ""; then
13744 case ${carbon_appdir_x} in
13745 y | ye | yes) carbon_appdir=/Applications ;;
13746 * ) carbon_appdir=${carbon_appdir_x} ;;
13747 esac
13748 fi
13749 # We also have mouse menus.
13750 HAVE_MENUS=yes
13751
13752 tmp_CFLAGS="$CFLAGS"
13753 CFLAGS="$CFLAGS -framework Carbon"
13754 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13755 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13756 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 else
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13767 #define CancelMenuTracking innocuous_CancelMenuTracking
13768
13769 /* System header to define __stub macros and hopefully few prototypes,
13770 which can conflict with char CancelMenuTracking (); below.
13771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13772 <limits.h> exists even on freestanding compilers. */
13773
13774 #ifdef __STDC__
13775 # include <limits.h>
13776 #else
13777 # include <assert.h>
13778 #endif
13779
13780 #undef CancelMenuTracking
13781
13782 /* Override any gcc2 internal prototype to avoid an error. */
13783 #ifdef __cplusplus
13784 extern "C"
13785 {
13786 #endif
13787 /* We use char because int might match the return type of a gcc2
13788 builtin and then its argument prototype would still apply. */
13789 char CancelMenuTracking ();
13790 /* The GNU C library defines this for functions which it implements
13791 to always fail with ENOSYS. Some functions are actually named
13792 something starting with __ and the normal name is an alias. */
13793 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13794 choke me
13795 #else
13796 char (*f) () = CancelMenuTracking;
13797 #endif
13798 #ifdef __cplusplus
13799 }
13800 #endif
13801
13802 int
13803 main ()
13804 {
13805 return f != CancelMenuTracking;
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 rm -f conftest.$ac_objext conftest$ac_exeext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13812 (eval $ac_link) 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest$ac_exeext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_cv_func_CancelMenuTracking=yes
13832 else
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13835
13836 ac_cv_func_CancelMenuTracking=no
13837 fi
13838 rm -f conftest.err conftest.$ac_objext \
13839 conftest$ac_exeext conftest.$ac_ext
13840 fi
13841 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13842 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13843 if test $ac_cv_func_CancelMenuTracking = yes; then
13844 have_cmt=yes
13845 else
13846 have_cmt=no
13847 fi
13848
13849 if test "$have_cmt" = yes; then
13850
13851 cat >>confdefs.h <<\_ACEOF
13852 #define HAVE_CANCELMENUTRACKING 1
13853 _ACEOF
13854
13855 fi
13856 CFLAGS="$tmp_CFLAGS"
13857 fi
13858
13859 ### Use session management (-lSM -lICE) if available
13860 HAVE_X_SM=no
13861 if test "${HAVE_X11}" = "yes"; then
13862 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13863 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13864 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13865 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 fi
13868 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13869 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13870 else
13871 # Is the header compilable?
13872 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13873 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13874 cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h. */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 $ac_includes_default
13881 #include <X11/SM/SMlib.h>
13882 _ACEOF
13883 rm -f conftest.$ac_objext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885 (eval $ac_compile) 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; } &&
13898 { ac_try='test -s conftest.$ac_objext'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
13904 ac_header_compiler=yes
13905 else
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909 ac_header_compiler=no
13910 fi
13911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13913 echo "${ECHO_T}$ac_header_compiler" >&6
13914
13915 # Is the header present?
13916 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13917 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13918 cat >conftest.$ac_ext <<_ACEOF
13919 /* confdefs.h. */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h. */
13924 #include <X11/SM/SMlib.h>
13925 _ACEOF
13926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13928 ac_status=$?
13929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } >/dev/null; then
13934 if test -s conftest.err; then
13935 ac_cpp_err=$ac_c_preproc_warn_flag
13936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13937 else
13938 ac_cpp_err=
13939 fi
13940 else
13941 ac_cpp_err=yes
13942 fi
13943 if test -z "$ac_cpp_err"; then
13944 ac_header_preproc=yes
13945 else
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13948
13949 ac_header_preproc=no
13950 fi
13951 rm -f conftest.err conftest.$ac_ext
13952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13953 echo "${ECHO_T}$ac_header_preproc" >&6
13954
13955 # So? What about this header?
13956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13957 yes:no: )
13958 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13959 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13961 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13962 ac_header_preproc=yes
13963 ;;
13964 no:yes:* )
13965 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13966 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13968 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13969 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13970 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13972 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13974 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13976 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13977 (
13978 cat <<\_ASBOX
13979 ## ------------------------------------------ ##
13980 ## Report this to the AC_PACKAGE_NAME lists. ##
13981 ## ------------------------------------------ ##
13982 _ASBOX
13983 ) |
13984 sed "s/^/$as_me: WARNING: /" >&2
13985 ;;
13986 esac
13987 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13988 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13989 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13993 fi
13994 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13995 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13996
13997 fi
13998 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13999 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14000 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
14001 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 else
14004 ac_check_lib_save_LIBS=$LIBS
14005 LIBS="-lSM -lICE $LIBS"
14006 cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h. */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012
14013 /* Override any gcc2 internal prototype to avoid an error. */
14014 #ifdef __cplusplus
14015 extern "C"
14016 #endif
14017 /* We use char because int might match the return type of a gcc2
14018 builtin and then its argument prototype would still apply. */
14019 char SmcOpenConnection ();
14020 int
14021 main ()
14022 {
14023 SmcOpenConnection ();
14024 ;
14025 return 0;
14026 }
14027 _ACEOF
14028 rm -f conftest.$ac_objext conftest$ac_exeext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14030 (eval $ac_link) 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try='test -s conftest$ac_exeext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_cv_lib_SM_SmcOpenConnection=yes
14050 else
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054 ac_cv_lib_SM_SmcOpenConnection=no
14055 fi
14056 rm -f conftest.err conftest.$ac_objext \
14057 conftest$ac_exeext conftest.$ac_ext
14058 LIBS=$ac_check_lib_save_LIBS
14059 fi
14060 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14061 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
14062 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14063 HAVE_X_SM=yes
14064 fi
14065
14066 fi
14067
14068
14069
14070 if test "${HAVE_X_SM}" = "yes"; then
14071
14072 cat >>confdefs.h <<\_ACEOF
14073 #define HAVE_X_SM 1
14074 _ACEOF
14075
14076 case "$LIBS" in
14077 *-lSM*) ;;
14078 *) LIBS="-lSM -lICE $LIBS" ;;
14079 esac
14080 fi
14081 fi
14082
14083 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14084 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14085 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
14086 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 else
14089 cat >conftest.$ac_ext <<_ACEOF
14090 /* confdefs.h. */
14091 _ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14095 #include <netdb.h>
14096 int
14097 main ()
14098 {
14099 return h_errno;
14100 ;
14101 return 0;
14102 }
14103 _ACEOF
14104 rm -f conftest.$ac_objext conftest$ac_exeext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14106 (eval $ac_link) 2>conftest.er1
14107 ac_status=$?
14108 grep -v '^ *+' conftest.er1 >conftest.err
14109 rm -f conftest.er1
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; } &&
14119 { ac_try='test -s conftest$ac_exeext'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 emacs_cv_netdb_declares_h_errno=yes
14126 else
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14129
14130 emacs_cv_netdb_declares_h_errno=no
14131 fi
14132 rm -f conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134 fi
14135 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14136 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
14137 if test $emacs_cv_netdb_declares_h_errno = yes; then
14138
14139 cat >>confdefs.h <<\_ACEOF
14140 #define HAVE_H_ERRNO 1
14141 _ACEOF
14142
14143 fi
14144
14145 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14146 # for constant arguments. Useless!
14147 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14148 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14149 if test "${ac_cv_working_alloca_h+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h. */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <alloca.h>
14159 int
14160 main ()
14161 {
14162 char *p = (char *) alloca (2 * sizeof (int));
14163 ;
14164 return 0;
14165 }
14166 _ACEOF
14167 rm -f conftest.$ac_objext conftest$ac_exeext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169 (eval $ac_link) 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest$ac_exeext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_working_alloca_h=yes
14189 else
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 ac_cv_working_alloca_h=no
14194 fi
14195 rm -f conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14199 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14200 if test $ac_cv_working_alloca_h = yes; then
14201
14202 cat >>confdefs.h <<\_ACEOF
14203 #define HAVE_ALLOCA_H 1
14204 _ACEOF
14205
14206 fi
14207
14208 echo "$as_me:$LINENO: checking for alloca" >&5
14209 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14210 if test "${ac_cv_func_alloca_works+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 #ifdef __GNUC__
14220 # define alloca __builtin_alloca
14221 #else
14222 # ifdef _MSC_VER
14223 # include <malloc.h>
14224 # define alloca _alloca
14225 # else
14226 # if HAVE_ALLOCA_H
14227 # include <alloca.h>
14228 # else
14229 # ifdef _AIX
14230 #pragma alloca
14231 # else
14232 # ifndef alloca /* predefined by HP cc +Olibcalls */
14233 char *alloca ();
14234 # endif
14235 # endif
14236 # endif
14237 # endif
14238 #endif
14239
14240 int
14241 main ()
14242 {
14243 char *p = (char *) alloca (1);
14244 ;
14245 return 0;
14246 }
14247 _ACEOF
14248 rm -f conftest.$ac_objext conftest$ac_exeext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250 (eval $ac_link) 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
14257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14260 ac_status=$?
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); }; } &&
14263 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14269 ac_cv_func_alloca_works=yes
14270 else
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274 ac_cv_func_alloca_works=no
14275 fi
14276 rm -f conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 fi
14279 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14280 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14281
14282 if test $ac_cv_func_alloca_works = yes; then
14283
14284 cat >>confdefs.h <<\_ACEOF
14285 #define HAVE_ALLOCA 1
14286 _ACEOF
14287
14288 else
14289 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14290 # that cause trouble. Some versions do not even contain alloca or
14291 # contain a buggy version. If you still want to use their alloca,
14292 # use ar to extract alloca.o from them instead of compiling alloca.c.
14293
14294 ALLOCA=alloca.$ac_objext
14295
14296 cat >>confdefs.h <<\_ACEOF
14297 #define C_ALLOCA 1
14298 _ACEOF
14299
14300
14301 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14302 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14303 if test "${ac_cv_os_cray+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306 cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h. */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 #if defined(CRAY) && ! defined(CRAY2)
14313 webecray
14314 #else
14315 wenotbecray
14316 #endif
14317
14318 _ACEOF
14319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14320 $EGREP "webecray" >/dev/null 2>&1; then
14321 ac_cv_os_cray=yes
14322 else
14323 ac_cv_os_cray=no
14324 fi
14325 rm -f conftest*
14326
14327 fi
14328 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14329 echo "${ECHO_T}$ac_cv_os_cray" >&6
14330 if test $ac_cv_os_cray = yes; then
14331 for ac_func in _getb67 GETB67 getb67; do
14332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14333 echo "$as_me:$LINENO: checking for $ac_func" >&5
14334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14335 if eval "test \"\${$as_ac_var+set}\" = set"; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338 cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14346 #define $ac_func innocuous_$ac_func
14347
14348 /* System header to define __stub macros and hopefully few prototypes,
14349 which can conflict with char $ac_func (); below.
14350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14351 <limits.h> exists even on freestanding compilers. */
14352
14353 #ifdef __STDC__
14354 # include <limits.h>
14355 #else
14356 # include <assert.h>
14357 #endif
14358
14359 #undef $ac_func
14360
14361 /* Override any gcc2 internal prototype to avoid an error. */
14362 #ifdef __cplusplus
14363 extern "C"
14364 {
14365 #endif
14366 /* We use char because int might match the return type of a gcc2
14367 builtin and then its argument prototype would still apply. */
14368 char $ac_func ();
14369 /* The GNU C library defines this for functions which it implements
14370 to always fail with ENOSYS. Some functions are actually named
14371 something starting with __ and the normal name is an alias. */
14372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14373 choke me
14374 #else
14375 char (*f) () = $ac_func;
14376 #endif
14377 #ifdef __cplusplus
14378 }
14379 #endif
14380
14381 int
14382 main ()
14383 {
14384 return f != $ac_func;
14385 ;
14386 return 0;
14387 }
14388 _ACEOF
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14391 (eval $ac_link) 2>conftest.er1
14392 ac_status=$?
14393 grep -v '^ *+' conftest.er1 >conftest.err
14394 rm -f conftest.er1
14395 cat conftest.err >&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
14398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; } &&
14404 { ac_try='test -s conftest$ac_exeext'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 eval "$as_ac_var=yes"
14411 else
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415 eval "$as_ac_var=no"
14416 fi
14417 rm -f conftest.err conftest.$ac_objext \
14418 conftest$ac_exeext conftest.$ac_ext
14419 fi
14420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14422 if test `eval echo '${'$as_ac_var'}'` = yes; then
14423
14424 cat >>confdefs.h <<_ACEOF
14425 #define CRAY_STACKSEG_END $ac_func
14426 _ACEOF
14427
14428 break
14429 fi
14430
14431 done
14432 fi
14433
14434 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14435 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14436 if test "${ac_cv_c_stack_direction+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439 if test "$cross_compiling" = yes; then
14440 ac_cv_c_stack_direction=0
14441 else
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h. */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 int
14449 find_stack_direction ()
14450 {
14451 static char *addr = 0;
14452 auto char dummy;
14453 if (addr == 0)
14454 {
14455 addr = &dummy;
14456 return find_stack_direction ();
14457 }
14458 else
14459 return (&dummy > addr) ? 1 : -1;
14460 }
14461
14462 int
14463 main ()
14464 {
14465 exit (find_stack_direction () < 0);
14466 }
14467 _ACEOF
14468 rm -f conftest$ac_exeext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14470 (eval $ac_link) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14479 ac_cv_c_stack_direction=1
14480 else
14481 echo "$as_me: program exited with status $ac_status" >&5
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14484
14485 ( exit $ac_status )
14486 ac_cv_c_stack_direction=-1
14487 fi
14488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14489 fi
14490 fi
14491 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14492 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14493
14494 cat >>confdefs.h <<_ACEOF
14495 #define STACK_DIRECTION $ac_cv_c_stack_direction
14496 _ACEOF
14497
14498
14499 fi
14500
14501
14502 # fmod, logb, and frexp are found in -lm on most systems.
14503 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14504
14505 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14506 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
14507 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510 ac_check_lib_save_LIBS=$LIBS
14511 LIBS="-lm $LIBS"
14512 cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h. */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518
14519 /* Override any gcc2 internal prototype to avoid an error. */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14525 char sqrt ();
14526 int
14527 main ()
14528 {
14529 sqrt ();
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest$ac_exeext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_cv_lib_m_sqrt=yes
14556 else
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 ac_cv_lib_m_sqrt=no
14561 fi
14562 rm -f conftest.err conftest.$ac_objext \
14563 conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_check_lib_save_LIBS
14565 fi
14566 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14567 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14568 if test $ac_cv_lib_m_sqrt = yes; then
14569 cat >>confdefs.h <<_ACEOF
14570 #define HAVE_LIBM 1
14571 _ACEOF
14572
14573 LIBS="-lm $LIBS"
14574
14575 fi
14576
14577
14578 # Check for mail-locking functions in a "mail" library. Probably this should
14579 # have the same check as for liblockfile below.
14580
14581 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14582 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14583 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 else
14586 ac_check_lib_save_LIBS=$LIBS
14587 LIBS="-lmail $LIBS"
14588 cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h. */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594
14595 /* Override any gcc2 internal prototype to avoid an error. */
14596 #ifdef __cplusplus
14597 extern "C"
14598 #endif
14599 /* We use char because int might match the return type of a gcc2
14600 builtin and then its argument prototype would still apply. */
14601 char maillock ();
14602 int
14603 main ()
14604 {
14605 maillock ();
14606 ;
14607 return 0;
14608 }
14609 _ACEOF
14610 rm -f conftest.$ac_objext conftest$ac_exeext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14612 (eval $ac_link) 2>conftest.er1
14613 ac_status=$?
14614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; } &&
14625 { ac_try='test -s conftest$ac_exeext'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ac_cv_lib_mail_maillock=yes
14632 else
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636 ac_cv_lib_mail_maillock=no
14637 fi
14638 rm -f conftest.err conftest.$ac_objext \
14639 conftest$ac_exeext conftest.$ac_ext
14640 LIBS=$ac_check_lib_save_LIBS
14641 fi
14642 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14643 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14644 if test $ac_cv_lib_mail_maillock = yes; then
14645 cat >>confdefs.h <<_ACEOF
14646 #define HAVE_LIBMAIL 1
14647 _ACEOF
14648
14649 LIBS="-lmail $LIBS"
14650
14651 fi
14652
14653
14654 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14655 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14656 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 else
14659 ac_check_lib_save_LIBS=$LIBS
14660 LIBS="-llockfile $LIBS"
14661 cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h. */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667
14668 /* Override any gcc2 internal prototype to avoid an error. */
14669 #ifdef __cplusplus
14670 extern "C"
14671 #endif
14672 /* We use char because int might match the return type of a gcc2
14673 builtin and then its argument prototype would still apply. */
14674 char maillock ();
14675 int
14676 main ()
14677 {
14678 maillock ();
14679 ;
14680 return 0;
14681 }
14682 _ACEOF
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14685 (eval $ac_link) 2>conftest.er1
14686 ac_status=$?
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try='test -z "$ac_c_werror_flag"
14693 || test ! -s conftest.err'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; } &&
14699 { ac_try='test -s conftest$ac_exeext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_cv_lib_lockfile_maillock=yes
14706 else
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14709
14710 ac_cv_lib_lockfile_maillock=no
14711 fi
14712 rm -f conftest.err conftest.$ac_objext \
14713 conftest$ac_exeext conftest.$ac_ext
14714 LIBS=$ac_check_lib_save_LIBS
14715 fi
14716 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14717 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14718 if test $ac_cv_lib_lockfile_maillock = yes; then
14719 cat >>confdefs.h <<_ACEOF
14720 #define HAVE_LIBLOCKFILE 1
14721 _ACEOF
14722
14723 LIBS="-llockfile $LIBS"
14724
14725 fi
14726
14727 # If we have the shared liblockfile, assume we must use it for mail
14728 # locking (e.g. Debian). If we couldn't link against liblockfile
14729 # (no liblockfile.a installed), ensure that we don't need to.
14730 if test "$ac_cv_lib_lockfile_maillock" = no; then
14731 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14732 set dummy liblockfile.so; ac_word=$2
14733 echo "$as_me:$LINENO: checking for $ac_word" >&5
14734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14735 if test "${ac_cv_prog_liblockfile+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738 if test -n "$liblockfile"; then
14739 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14740 else
14741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14742 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14743 for as_dir in $as_dummy
14744 do
14745 IFS=$as_save_IFS
14746 test -z "$as_dir" && as_dir=.
14747 for ac_exec_ext in '' $ac_executable_extensions; do
14748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14749 ac_cv_prog_liblockfile="yes"
14750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14751 break 2
14752 fi
14753 done
14754 done
14755
14756 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14757 fi
14758 fi
14759 liblockfile=$ac_cv_prog_liblockfile
14760 if test -n "$liblockfile"; then
14761 echo "$as_me:$LINENO: result: $liblockfile" >&5
14762 echo "${ECHO_T}$liblockfile" >&6
14763 else
14764 echo "$as_me:$LINENO: result: no" >&5
14765 echo "${ECHO_T}no" >&6
14766 fi
14767
14768 if test $ac_cv_prog_liblockfile = yes; then
14769 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14770 This probably means that movemail could lose mail.
14771 There may be a \`development' package to install containing liblockfile." >&5
14772 echo "$as_me: error: Shared liblockfile found but can't link against it.
14773 This probably means that movemail could lose mail.
14774 There may be a \`development' package to install containing liblockfile." >&2;}
14775 { (exit 1); exit 1; }; }
14776 else :
14777 fi
14778 fi
14779
14780 for ac_func in touchlock
14781 do
14782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783 echo "$as_me:$LINENO: checking for $ac_func" >&5
14784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14785 if eval "test \"\${$as_ac_var+set}\" = set"; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14796 #define $ac_func innocuous_$ac_func
14797
14798 /* System header to define __stub macros and hopefully few prototypes,
14799 which can conflict with char $ac_func (); below.
14800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801 <limits.h> exists even on freestanding compilers. */
14802
14803 #ifdef __STDC__
14804 # include <limits.h>
14805 #else
14806 # include <assert.h>
14807 #endif
14808
14809 #undef $ac_func
14810
14811 /* Override any gcc2 internal prototype to avoid an error. */
14812 #ifdef __cplusplus
14813 extern "C"
14814 {
14815 #endif
14816 /* We use char because int might match the return type of a gcc2
14817 builtin and then its argument prototype would still apply. */
14818 char $ac_func ();
14819 /* The GNU C library defines this for functions which it implements
14820 to always fail with ENOSYS. Some functions are actually named
14821 something starting with __ and the normal name is an alias. */
14822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14823 choke me
14824 #else
14825 char (*f) () = $ac_func;
14826 #endif
14827 #ifdef __cplusplus
14828 }
14829 #endif
14830
14831 int
14832 main ()
14833 {
14834 return f != $ac_func;
14835 ;
14836 return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext conftest$ac_exeext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14841 (eval $ac_link) 2>conftest.er1
14842 ac_status=$?
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; } &&
14854 { ac_try='test -s conftest$ac_exeext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 eval "$as_ac_var=yes"
14861 else
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14864
14865 eval "$as_ac_var=no"
14866 fi
14867 rm -f conftest.err conftest.$ac_objext \
14868 conftest$ac_exeext conftest.$ac_ext
14869 fi
14870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14872 if test `eval echo '${'$as_ac_var'}'` = yes; then
14873 cat >>confdefs.h <<_ACEOF
14874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14875 _ACEOF
14876
14877 fi
14878 done
14879
14880
14881 for ac_header in maillock.h
14882 do
14883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14885 echo "$as_me:$LINENO: checking for $ac_header" >&5
14886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 fi
14890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14892 else
14893 # Is the header compilable?
14894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14896 cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h. */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 $ac_includes_default
14903 #include <$ac_header>
14904 _ACEOF
14905 rm -f conftest.$ac_objext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14907 (eval $ac_compile) 2>conftest.er1
14908 ac_status=$?
14909 grep -v '^ *+' conftest.er1 >conftest.err
14910 rm -f conftest.er1
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; } &&
14920 { ac_try='test -s conftest.$ac_objext'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 ac_header_compiler=yes
14927 else
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14930
14931 ac_header_compiler=no
14932 fi
14933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14935 echo "${ECHO_T}$ac_header_compiler" >&6
14936
14937 # Is the header present?
14938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14940 cat >conftest.$ac_ext <<_ACEOF
14941 /* confdefs.h. */
14942 _ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14946 #include <$ac_header>
14947 _ACEOF
14948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } >/dev/null; then
14956 if test -s conftest.err; then
14957 ac_cpp_err=$ac_c_preproc_warn_flag
14958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14959 else
14960 ac_cpp_err=
14961 fi
14962 else
14963 ac_cpp_err=yes
14964 fi
14965 if test -z "$ac_cpp_err"; then
14966 ac_header_preproc=yes
14967 else
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14970
14971 ac_header_preproc=no
14972 fi
14973 rm -f conftest.err conftest.$ac_ext
14974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14975 echo "${ECHO_T}$ac_header_preproc" >&6
14976
14977 # So? What about this header?
14978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14979 yes:no: )
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14984 ac_header_preproc=yes
14985 ;;
14986 no:yes:* )
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14999 (
15000 cat <<\_ASBOX
15001 ## ------------------------------------------ ##
15002 ## Report this to the AC_PACKAGE_NAME lists. ##
15003 ## ------------------------------------------ ##
15004 _ASBOX
15005 ) |
15006 sed "s/^/$as_me: WARNING: /" >&2
15007 ;;
15008 esac
15009 echo "$as_me:$LINENO: checking for $ac_header" >&5
15010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014 eval "$as_ac_Header=\$ac_header_preproc"
15015 fi
15016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15018
15019 fi
15020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15021 cat >>confdefs.h <<_ACEOF
15022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15023 _ACEOF
15024
15025 fi
15026
15027 done
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098 for ac_func in gethostname getdomainname dup2 \
15099 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15100 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15101 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15102 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15103 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15104 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15105 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
15106 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15107 do
15108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15109 echo "$as_me:$LINENO: checking for $ac_func" >&5
15110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15111 if eval "test \"\${$as_ac_var+set}\" = set"; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114 cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h. */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15122 #define $ac_func innocuous_$ac_func
15123
15124 /* System header to define __stub macros and hopefully few prototypes,
15125 which can conflict with char $ac_func (); below.
15126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15127 <limits.h> exists even on freestanding compilers. */
15128
15129 #ifdef __STDC__
15130 # include <limits.h>
15131 #else
15132 # include <assert.h>
15133 #endif
15134
15135 #undef $ac_func
15136
15137 /* Override any gcc2 internal prototype to avoid an error. */
15138 #ifdef __cplusplus
15139 extern "C"
15140 {
15141 #endif
15142 /* We use char because int might match the return type of a gcc2
15143 builtin and then its argument prototype would still apply. */
15144 char $ac_func ();
15145 /* The GNU C library defines this for functions which it implements
15146 to always fail with ENOSYS. Some functions are actually named
15147 something starting with __ and the normal name is an alias. */
15148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15149 choke me
15150 #else
15151 char (*f) () = $ac_func;
15152 #endif
15153 #ifdef __cplusplus
15154 }
15155 #endif
15156
15157 int
15158 main ()
15159 {
15160 return f != $ac_func;
15161 ;
15162 return 0;
15163 }
15164 _ACEOF
15165 rm -f conftest.$ac_objext conftest$ac_exeext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15167 (eval $ac_link) 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15177 ac_status=$?
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; } &&
15180 { ac_try='test -s conftest$ac_exeext'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 eval "$as_ac_var=yes"
15187 else
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191 eval "$as_ac_var=no"
15192 fi
15193 rm -f conftest.err conftest.$ac_objext \
15194 conftest$ac_exeext conftest.$ac_ext
15195 fi
15196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15198 if test `eval echo '${'$as_ac_var'}'` = yes; then
15199 cat >>confdefs.h <<_ACEOF
15200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15201 _ACEOF
15202
15203 fi
15204 done
15205
15206
15207
15208 for ac_header in sys/un.h
15209 do
15210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15212 echo "$as_me:$LINENO: checking for $ac_header" >&5
15213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 fi
15217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15219 else
15220 # Is the header compilable?
15221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15223 cat >conftest.$ac_ext <<_ACEOF
15224 /* confdefs.h. */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15229 $ac_includes_default
15230 #include <$ac_header>
15231 _ACEOF
15232 rm -f conftest.$ac_objext
15233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15234 (eval $ac_compile) 2>conftest.er1
15235 ac_status=$?
15236 grep -v '^ *+' conftest.er1 >conftest.err
15237 rm -f conftest.er1
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; } &&
15247 { ac_try='test -s conftest.$ac_objext'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 ac_header_compiler=yes
15254 else
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258 ac_header_compiler=no
15259 fi
15260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15262 echo "${ECHO_T}$ac_header_compiler" >&6
15263
15264 # Is the header present?
15265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15267 cat >conftest.$ac_ext <<_ACEOF
15268 /* confdefs.h. */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 #include <$ac_header>
15274 _ACEOF
15275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15277 ac_status=$?
15278 grep -v '^ *+' conftest.er1 >conftest.err
15279 rm -f conftest.er1
15280 cat conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } >/dev/null; then
15283 if test -s conftest.err; then
15284 ac_cpp_err=$ac_c_preproc_warn_flag
15285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15286 else
15287 ac_cpp_err=
15288 fi
15289 else
15290 ac_cpp_err=yes
15291 fi
15292 if test -z "$ac_cpp_err"; then
15293 ac_header_preproc=yes
15294 else
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15297
15298 ac_header_preproc=no
15299 fi
15300 rm -f conftest.err conftest.$ac_ext
15301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15302 echo "${ECHO_T}$ac_header_preproc" >&6
15303
15304 # So? What about this header?
15305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15306 yes:no: )
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15311 ac_header_preproc=yes
15312 ;;
15313 no:yes:* )
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15326 (
15327 cat <<\_ASBOX
15328 ## ------------------------------------------ ##
15329 ## Report this to the AC_PACKAGE_NAME lists. ##
15330 ## ------------------------------------------ ##
15331 _ASBOX
15332 ) |
15333 sed "s/^/$as_me: WARNING: /" >&2
15334 ;;
15335 esac
15336 echo "$as_me:$LINENO: checking for $ac_header" >&5
15337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341 eval "$as_ac_Header=\$ac_header_preproc"
15342 fi
15343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15345
15346 fi
15347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15348 cat >>confdefs.h <<_ACEOF
15349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15350 _ACEOF
15351
15352 fi
15353
15354 done
15355
15356
15357
15358
15359
15360 for ac_header in stdlib.h sys/time.h unistd.h
15361 do
15362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15364 echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 fi
15369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15371 else
15372 # Is the header compilable?
15373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15375 cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h. */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 $ac_includes_default
15382 #include <$ac_header>
15383 _ACEOF
15384 rm -f conftest.$ac_objext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>conftest.er1
15387 ac_status=$?
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try='test -s conftest.$ac_objext'
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; }; then
15405 ac_header_compiler=yes
15406 else
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15409
15410 ac_header_compiler=no
15411 fi
15412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15414 echo "${ECHO_T}$ac_header_compiler" >&6
15415
15416 # Is the header present?
15417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15419 cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h. */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 #include <$ac_header>
15426 _ACEOF
15427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15429 ac_status=$?
15430 grep -v '^ *+' conftest.er1 >conftest.err
15431 rm -f conftest.er1
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } >/dev/null; then
15435 if test -s conftest.err; then
15436 ac_cpp_err=$ac_c_preproc_warn_flag
15437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15438 else
15439 ac_cpp_err=
15440 fi
15441 else
15442 ac_cpp_err=yes
15443 fi
15444 if test -z "$ac_cpp_err"; then
15445 ac_header_preproc=yes
15446 else
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15449
15450 ac_header_preproc=no
15451 fi
15452 rm -f conftest.err conftest.$ac_ext
15453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15454 echo "${ECHO_T}$ac_header_preproc" >&6
15455
15456 # So? What about this header?
15457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15458 yes:no: )
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15463 ac_header_preproc=yes
15464 ;;
15465 no:yes:* )
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15478 (
15479 cat <<\_ASBOX
15480 ## ------------------------------------------ ##
15481 ## Report this to the AC_PACKAGE_NAME lists. ##
15482 ## ------------------------------------------ ##
15483 _ASBOX
15484 ) |
15485 sed "s/^/$as_me: WARNING: /" >&2
15486 ;;
15487 esac
15488 echo "$as_me:$LINENO: checking for $ac_header" >&5
15489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493 eval "$as_ac_Header=\$ac_header_preproc"
15494 fi
15495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15497
15498 fi
15499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15500 cat >>confdefs.h <<_ACEOF
15501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15502 _ACEOF
15503
15504 fi
15505
15506 done
15507
15508
15509 for ac_func in alarm
15510 do
15511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15512 echo "$as_me:$LINENO: checking for $ac_func" >&5
15513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15514 if eval "test \"\${$as_ac_var+set}\" = set"; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h. */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15525 #define $ac_func innocuous_$ac_func
15526
15527 /* System header to define __stub macros and hopefully few prototypes,
15528 which can conflict with char $ac_func (); below.
15529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15530 <limits.h> exists even on freestanding compilers. */
15531
15532 #ifdef __STDC__
15533 # include <limits.h>
15534 #else
15535 # include <assert.h>
15536 #endif
15537
15538 #undef $ac_func
15539
15540 /* Override any gcc2 internal prototype to avoid an error. */
15541 #ifdef __cplusplus
15542 extern "C"
15543 {
15544 #endif
15545 /* We use char because int might match the return type of a gcc2
15546 builtin and then its argument prototype would still apply. */
15547 char $ac_func ();
15548 /* The GNU C library defines this for functions which it implements
15549 to always fail with ENOSYS. Some functions are actually named
15550 something starting with __ and the normal name is an alias. */
15551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15552 choke me
15553 #else
15554 char (*f) () = $ac_func;
15555 #endif
15556 #ifdef __cplusplus
15557 }
15558 #endif
15559
15560 int
15561 main ()
15562 {
15563 return f != $ac_func;
15564 ;
15565 return 0;
15566 }
15567 _ACEOF
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570 (eval $ac_link) 2>conftest.er1
15571 ac_status=$?
15572 grep -v '^ *+' conftest.er1 >conftest.err
15573 rm -f conftest.er1
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
15577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } &&
15583 { ac_try='test -s conftest$ac_exeext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 eval "$as_ac_var=yes"
15590 else
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594 eval "$as_ac_var=no"
15595 fi
15596 rm -f conftest.err conftest.$ac_objext \
15597 conftest$ac_exeext conftest.$ac_ext
15598 fi
15599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15601 if test `eval echo '${'$as_ac_var'}'` = yes; then
15602 cat >>confdefs.h <<_ACEOF
15603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15604 _ACEOF
15605
15606 fi
15607 done
15608
15609 echo "$as_me:$LINENO: checking for working mktime" >&5
15610 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15611 if test "${ac_cv_func_working_mktime+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614 if test "$cross_compiling" = yes; then
15615 ac_cv_func_working_mktime=no
15616 else
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h. */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623 /* Test program from Paul Eggert and Tony Leneis. */
15624 #if TIME_WITH_SYS_TIME
15625 # include <sys/time.h>
15626 # include <time.h>
15627 #else
15628 # if HAVE_SYS_TIME_H
15629 # include <sys/time.h>
15630 # else
15631 # include <time.h>
15632 # endif
15633 #endif
15634
15635 #if HAVE_STDLIB_H
15636 # include <stdlib.h>
15637 #endif
15638
15639 #if HAVE_UNISTD_H
15640 # include <unistd.h>
15641 #endif
15642
15643 #if !HAVE_ALARM
15644 # define alarm(X) /* empty */
15645 #endif
15646
15647 /* Work around redefinition to rpl_putenv by other config tests. */
15648 #undef putenv
15649
15650 static time_t time_t_max;
15651 static time_t time_t_min;
15652
15653 /* Values we'll use to set the TZ environment variable. */
15654 static char *tz_strings[] = {
15655 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15656 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15657 };
15658 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15659
15660 /* Fail if mktime fails to convert a date in the spring-forward gap.
15661 Based on a problem report from Andreas Jaeger. */
15662 static void
15663 spring_forward_gap ()
15664 {
15665 /* glibc (up to about 1998-10-07) failed this test. */
15666 struct tm tm;
15667
15668 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15669 instead of "TZ=America/Vancouver" in order to detect the bug even
15670 on systems that don't support the Olson extension, or don't have the
15671 full zoneinfo tables installed. */
15672 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15673
15674 tm.tm_year = 98;
15675 tm.tm_mon = 3;
15676 tm.tm_mday = 5;
15677 tm.tm_hour = 2;
15678 tm.tm_min = 0;
15679 tm.tm_sec = 0;
15680 tm.tm_isdst = -1;
15681 if (mktime (&tm) == (time_t)-1)
15682 exit (1);
15683 }
15684
15685 static void
15686 mktime_test1 (now)
15687 time_t now;
15688 {
15689 struct tm *lt;
15690 if ((lt = localtime (&now)) && mktime (lt) != now)
15691 exit (1);
15692 }
15693
15694 static void
15695 mktime_test (now)
15696 time_t now;
15697 {
15698 mktime_test1 (now);
15699 mktime_test1 ((time_t) (time_t_max - now));
15700 mktime_test1 ((time_t) (time_t_min + now));
15701 }
15702
15703 static void
15704 irix_6_4_bug ()
15705 {
15706 /* Based on code from Ariel Faigon. */
15707 struct tm tm;
15708 tm.tm_year = 96;
15709 tm.tm_mon = 3;
15710 tm.tm_mday = 0;
15711 tm.tm_hour = 0;
15712 tm.tm_min = 0;
15713 tm.tm_sec = 0;
15714 tm.tm_isdst = -1;
15715 mktime (&tm);
15716 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15717 exit (1);
15718 }
15719
15720 static void
15721 bigtime_test (j)
15722 int j;
15723 {
15724 struct tm tm;
15725 time_t now;
15726 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15727 now = mktime (&tm);
15728 if (now != (time_t) -1)
15729 {
15730 struct tm *lt = localtime (&now);
15731 if (! (lt
15732 && lt->tm_year == tm.tm_year
15733 && lt->tm_mon == tm.tm_mon
15734 && lt->tm_mday == tm.tm_mday
15735 && lt->tm_hour == tm.tm_hour
15736 && lt->tm_min == tm.tm_min
15737 && lt->tm_sec == tm.tm_sec
15738 && lt->tm_yday == tm.tm_yday
15739 && lt->tm_wday == tm.tm_wday
15740 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15741 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15742 exit (1);
15743 }
15744 }
15745
15746 int
15747 main ()
15748 {
15749 time_t t, delta;
15750 int i, j;
15751
15752 /* This test makes some buggy mktime implementations loop.
15753 Give up after 60 seconds; a mktime slower than that
15754 isn't worth using anyway. */
15755 alarm (60);
15756
15757 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15758 continue;
15759 time_t_max--;
15760 if ((time_t) -1 < 0)
15761 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15762 continue;
15763 delta = time_t_max / 997; /* a suitable prime number */
15764 for (i = 0; i < N_STRINGS; i++)
15765 {
15766 if (tz_strings[i])
15767 putenv (tz_strings[i]);
15768
15769 for (t = 0; t <= time_t_max - delta; t += delta)
15770 mktime_test (t);
15771 mktime_test ((time_t) 1);
15772 mktime_test ((time_t) (60 * 60));
15773 mktime_test ((time_t) (60 * 60 * 24));
15774
15775 for (j = 1; 0 < j; j *= 2)
15776 bigtime_test (j);
15777 bigtime_test (j - 1);
15778 }
15779 irix_6_4_bug ();
15780 spring_forward_gap ();
15781 exit (0);
15782 }
15783 _ACEOF
15784 rm -f conftest$ac_exeext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15786 (eval $ac_link) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_cv_func_working_mktime=yes
15796 else
15797 echo "$as_me: program exited with status $ac_status" >&5
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15800
15801 ( exit $ac_status )
15802 ac_cv_func_working_mktime=no
15803 fi
15804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15805 fi
15806 fi
15807 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15808 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15809 if test $ac_cv_func_working_mktime = no; then
15810 case $LIBOBJS in
15811 "mktime.$ac_objext" | \
15812 *" mktime.$ac_objext" | \
15813 "mktime.$ac_objext "* | \
15814 *" mktime.$ac_objext "* ) ;;
15815 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15816 esac
15817
15818 fi
15819
15820 if test "$ac_cv_func_working_mktime" = no; then
15821
15822 cat >>confdefs.h <<\_ACEOF
15823 #define BROKEN_MKTIME 1
15824 _ACEOF
15825
15826 fi
15827
15828 ac_have_func=no # yes means we've found a way to get the load average.
15829
15830 # Make sure getloadavg.c is where it belongs, at configure-time.
15831 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15832 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15833 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15834 { (exit 1); exit 1; }; }
15835
15836 ac_save_LIBS=$LIBS
15837
15838 # Check for getloadavg, but be sure not to touch the cache variable.
15839 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15840 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15841 if test "${ac_cv_func_getloadavg+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h. */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15852 #define getloadavg innocuous_getloadavg
15853
15854 /* System header to define __stub macros and hopefully few prototypes,
15855 which can conflict with char getloadavg (); below.
15856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15857 <limits.h> exists even on freestanding compilers. */
15858
15859 #ifdef __STDC__
15860 # include <limits.h>
15861 #else
15862 # include <assert.h>
15863 #endif
15864
15865 #undef getloadavg
15866
15867 /* Override any gcc2 internal prototype to avoid an error. */
15868 #ifdef __cplusplus
15869 extern "C"
15870 {
15871 #endif
15872 /* We use char because int might match the return type of a gcc2
15873 builtin and then its argument prototype would still apply. */
15874 char getloadavg ();
15875 /* The GNU C library defines this for functions which it implements
15876 to always fail with ENOSYS. Some functions are actually named
15877 something starting with __ and the normal name is an alias. */
15878 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15879 choke me
15880 #else
15881 char (*f) () = getloadavg;
15882 #endif
15883 #ifdef __cplusplus
15884 }
15885 #endif
15886
15887 int
15888 main ()
15889 {
15890 return f != getloadavg;
15891 ;
15892 return 0;
15893 }
15894 _ACEOF
15895 rm -f conftest.$ac_objext conftest$ac_exeext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15897 (eval $ac_link) 2>conftest.er1
15898 ac_status=$?
15899 grep -v '^ *+' conftest.er1 >conftest.err
15900 rm -f conftest.er1
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try='test -s conftest$ac_exeext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_cv_func_getloadavg=yes
15917 else
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ac_cv_func_getloadavg=no
15922 fi
15923 rm -f conftest.err conftest.$ac_objext \
15924 conftest$ac_exeext conftest.$ac_ext
15925 fi
15926 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15927 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15928 if test $ac_cv_func_getloadavg = yes; then
15929 exit 0
15930 else
15931 exit 1
15932 fi
15933 ) && ac_have_func=yes
15934
15935 # On HPUX9, an unprivileged user can get load averages through this function.
15936
15937 for ac_func in pstat_getdynamic
15938 do
15939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15940 echo "$as_me:$LINENO: checking for $ac_func" >&5
15941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15942 if eval "test \"\${$as_ac_var+set}\" = set"; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945 cat >conftest.$ac_ext <<_ACEOF
15946 /* confdefs.h. */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15953 #define $ac_func innocuous_$ac_func
15954
15955 /* System header to define __stub macros and hopefully few prototypes,
15956 which can conflict with char $ac_func (); below.
15957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15958 <limits.h> exists even on freestanding compilers. */
15959
15960 #ifdef __STDC__
15961 # include <limits.h>
15962 #else
15963 # include <assert.h>
15964 #endif
15965
15966 #undef $ac_func
15967
15968 /* Override any gcc2 internal prototype to avoid an error. */
15969 #ifdef __cplusplus
15970 extern "C"
15971 {
15972 #endif
15973 /* We use char because int might match the return type of a gcc2
15974 builtin and then its argument prototype would still apply. */
15975 char $ac_func ();
15976 /* The GNU C library defines this for functions which it implements
15977 to always fail with ENOSYS. Some functions are actually named
15978 something starting with __ and the normal name is an alias. */
15979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15980 choke me
15981 #else
15982 char (*f) () = $ac_func;
15983 #endif
15984 #ifdef __cplusplus
15985 }
15986 #endif
15987
15988 int
15989 main ()
15990 {
15991 return f != $ac_func;
15992 ;
15993 return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15998 (eval $ac_link) 2>conftest.er1
15999 ac_status=$?
16000 grep -v '^ *+' conftest.er1 >conftest.err
16001 rm -f conftest.er1
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } &&
16005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest$ac_exeext'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16017 eval "$as_ac_var=yes"
16018 else
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022 eval "$as_ac_var=no"
16023 fi
16024 rm -f conftest.err conftest.$ac_objext \
16025 conftest$ac_exeext conftest.$ac_ext
16026 fi
16027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16029 if test `eval echo '${'$as_ac_var'}'` = yes; then
16030 cat >>confdefs.h <<_ACEOF
16031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16032 _ACEOF
16033
16034 fi
16035 done
16036
16037
16038 # Solaris has libkstat which does not require root.
16039
16040 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16041 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
16042 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16043 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 else
16045 ac_check_lib_save_LIBS=$LIBS
16046 LIBS="-lkstat $LIBS"
16047 cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h. */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053
16054 /* Override any gcc2 internal prototype to avoid an error. */
16055 #ifdef __cplusplus
16056 extern "C"
16057 #endif
16058 /* We use char because int might match the return type of a gcc2
16059 builtin and then its argument prototype would still apply. */
16060 char kstat_open ();
16061 int
16062 main ()
16063 {
16064 kstat_open ();
16065 ;
16066 return 0;
16067 }
16068 _ACEOF
16069 rm -f conftest.$ac_objext conftest$ac_exeext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16071 (eval $ac_link) 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; } &&
16084 { ac_try='test -s conftest$ac_exeext'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 ac_cv_lib_kstat_kstat_open=yes
16091 else
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095 ac_cv_lib_kstat_kstat_open=no
16096 fi
16097 rm -f conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16099 LIBS=$ac_check_lib_save_LIBS
16100 fi
16101 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16102 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
16103 if test $ac_cv_lib_kstat_kstat_open = yes; then
16104 cat >>confdefs.h <<_ACEOF
16105 #define HAVE_LIBKSTAT 1
16106 _ACEOF
16107
16108 LIBS="-lkstat $LIBS"
16109
16110 fi
16111
16112 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16113
16114 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16115 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16116 # to get the right answer into the cache.
16117 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16118 if test $ac_have_func = no; then
16119 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16120 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
16121 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 else
16124 ac_check_lib_save_LIBS=$LIBS
16125 LIBS="-lelf $LIBS"
16126 cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h. */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132
16133 /* Override any gcc2 internal prototype to avoid an error. */
16134 #ifdef __cplusplus
16135 extern "C"
16136 #endif
16137 /* We use char because int might match the return type of a gcc2
16138 builtin and then its argument prototype would still apply. */
16139 char elf_begin ();
16140 int
16141 main ()
16142 {
16143 elf_begin ();
16144 ;
16145 return 0;
16146 }
16147 _ACEOF
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16150 (eval $ac_link) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; } &&
16163 { ac_try='test -s conftest$ac_exeext'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; }; then
16169 ac_cv_lib_elf_elf_begin=yes
16170 else
16171 echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174 ac_cv_lib_elf_elf_begin=no
16175 fi
16176 rm -f conftest.err conftest.$ac_objext \
16177 conftest$ac_exeext conftest.$ac_ext
16178 LIBS=$ac_check_lib_save_LIBS
16179 fi
16180 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16181 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
16182 if test $ac_cv_lib_elf_elf_begin = yes; then
16183 LIBS="-lelf $LIBS"
16184 fi
16185
16186 fi
16187 if test $ac_have_func = no; then
16188 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16189 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
16190 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193 ac_check_lib_save_LIBS=$LIBS
16194 LIBS="-lkvm $LIBS"
16195 cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h. */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201
16202 /* Override any gcc2 internal prototype to avoid an error. */
16203 #ifdef __cplusplus
16204 extern "C"
16205 #endif
16206 /* We use char because int might match the return type of a gcc2
16207 builtin and then its argument prototype would still apply. */
16208 char kvm_open ();
16209 int
16210 main ()
16211 {
16212 kvm_open ();
16213 ;
16214 return 0;
16215 }
16216 _ACEOF
16217 rm -f conftest.$ac_objext conftest$ac_exeext
16218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16219 (eval $ac_link) 2>conftest.er1
16220 ac_status=$?
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
16226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try='test -s conftest$ac_exeext'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_cv_lib_kvm_kvm_open=yes
16239 else
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 ac_cv_lib_kvm_kvm_open=no
16244 fi
16245 rm -f conftest.err conftest.$ac_objext \
16246 conftest$ac_exeext conftest.$ac_ext
16247 LIBS=$ac_check_lib_save_LIBS
16248 fi
16249 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16250 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
16251 if test $ac_cv_lib_kvm_kvm_open = yes; then
16252 LIBS="-lkvm $LIBS"
16253 fi
16254
16255 # Check for the 4.4BSD definition of getloadavg.
16256 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16257 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
16258 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261 ac_check_lib_save_LIBS=$LIBS
16262 LIBS="-lutil $LIBS"
16263 cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h. */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269
16270 /* Override any gcc2 internal prototype to avoid an error. */
16271 #ifdef __cplusplus
16272 extern "C"
16273 #endif
16274 /* We use char because int might match the return type of a gcc2
16275 builtin and then its argument prototype would still apply. */
16276 char getloadavg ();
16277 int
16278 main ()
16279 {
16280 getloadavg ();
16281 ;
16282 return 0;
16283 }
16284 _ACEOF
16285 rm -f conftest.$ac_objext conftest$ac_exeext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>conftest.er1
16288 ac_status=$?
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; } &&
16300 { ac_try='test -s conftest$ac_exeext'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 ac_cv_lib_util_getloadavg=yes
16307 else
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 ac_cv_lib_util_getloadavg=no
16312 fi
16313 rm -f conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 LIBS=$ac_check_lib_save_LIBS
16316 fi
16317 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16318 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
16319 if test $ac_cv_lib_util_getloadavg = yes; then
16320 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16321 fi
16322
16323 fi
16324
16325 if test $ac_have_func = no; then
16326 # There is a commonly available library for RS/6000 AIX.
16327 # Since it is not a standard part of AIX, it might be installed locally.
16328 ac_getloadavg_LIBS=$LIBS
16329 LIBS="-L/usr/local/lib $LIBS"
16330 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16331 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
16332 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335 ac_check_lib_save_LIBS=$LIBS
16336 LIBS="-lgetloadavg $LIBS"
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h. */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343
16344 /* Override any gcc2 internal prototype to avoid an error. */
16345 #ifdef __cplusplus
16346 extern "C"
16347 #endif
16348 /* We use char because int might match the return type of a gcc2
16349 builtin and then its argument prototype would still apply. */
16350 char getloadavg ();
16351 int
16352 main ()
16353 {
16354 getloadavg ();
16355 ;
16356 return 0;
16357 }
16358 _ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>conftest.er1
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try='test -s conftest$ac_exeext'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 ac_cv_lib_getloadavg_getloadavg=yes
16381 else
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385 ac_cv_lib_getloadavg_getloadavg=no
16386 fi
16387 rm -f conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
16389 LIBS=$ac_check_lib_save_LIBS
16390 fi
16391 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16392 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
16393 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16394 LIBS="-lgetloadavg $LIBS"
16395 else
16396 LIBS=$ac_getloadavg_LIBS
16397 fi
16398
16399 fi
16400
16401 # Make sure it is really in the library, if we think we found it,
16402 # otherwise set up the replacement function.
16403
16404 for ac_func in getloadavg
16405 do
16406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16407 echo "$as_me:$LINENO: checking for $ac_func" >&5
16408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16409 if eval "test \"\${$as_ac_var+set}\" = set"; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h. */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16420 #define $ac_func innocuous_$ac_func
16421
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425 <limits.h> exists even on freestanding compilers. */
16426
16427 #ifdef __STDC__
16428 # include <limits.h>
16429 #else
16430 # include <assert.h>
16431 #endif
16432
16433 #undef $ac_func
16434
16435 /* Override any gcc2 internal prototype to avoid an error. */
16436 #ifdef __cplusplus
16437 extern "C"
16438 {
16439 #endif
16440 /* We use char because int might match the return type of a gcc2
16441 builtin and then its argument prototype would still apply. */
16442 char $ac_func ();
16443 /* The GNU C library defines this for functions which it implements
16444 to always fail with ENOSYS. Some functions are actually named
16445 something starting with __ and the normal name is an alias. */
16446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16447 choke me
16448 #else
16449 char (*f) () = $ac_func;
16450 #endif
16451 #ifdef __cplusplus
16452 }
16453 #endif
16454
16455 int
16456 main ()
16457 {
16458 return f != $ac_func;
16459 ;
16460 return 0;
16461 }
16462 _ACEOF
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16465 (eval $ac_link) 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -z "$ac_c_werror_flag" || 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 eval "$as_ac_var=yes"
16485 else
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489 eval "$as_ac_var=no"
16490 fi
16491 rm -f conftest.err conftest.$ac_objext \
16492 conftest$ac_exeext conftest.$ac_ext
16493 fi
16494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16496 if test `eval echo '${'$as_ac_var'}'` = yes; then
16497 cat >>confdefs.h <<_ACEOF
16498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16499 _ACEOF
16500
16501 else
16502 case $LIBOBJS in
16503 "getloadavg.$ac_objext" | \
16504 *" getloadavg.$ac_objext" | \
16505 "getloadavg.$ac_objext "* | \
16506 *" getloadavg.$ac_objext "* ) ;;
16507 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
16508 esac
16509
16510
16511 cat >>confdefs.h <<\_ACEOF
16512 #define C_GETLOADAVG 1
16513 _ACEOF
16514
16515 # Figure out what our getloadavg.c needs.
16516 ac_have_func=no
16517 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16518 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16519 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16520 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 fi
16523 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16524 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16525 else
16526 # Is the header compilable?
16527 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16528 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16529 cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h. */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 $ac_includes_default
16536 #include <sys/dg_sys_info.h>
16537 _ACEOF
16538 rm -f conftest.$ac_objext
16539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16540 (eval $ac_compile) 2>conftest.er1
16541 ac_status=$?
16542 grep -v '^ *+' conftest.er1 >conftest.err
16543 rm -f conftest.er1
16544 cat conftest.err >&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } &&
16547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; } &&
16553 { ac_try='test -s conftest.$ac_objext'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559 ac_header_compiler=yes
16560 else
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564 ac_header_compiler=no
16565 fi
16566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16568 echo "${ECHO_T}$ac_header_compiler" >&6
16569
16570 # Is the header present?
16571 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16572 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16573 cat >conftest.$ac_ext <<_ACEOF
16574 /* confdefs.h. */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16579 #include <sys/dg_sys_info.h>
16580 _ACEOF
16581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16583 ac_status=$?
16584 grep -v '^ *+' conftest.er1 >conftest.err
16585 rm -f conftest.er1
16586 cat conftest.err >&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } >/dev/null; then
16589 if test -s conftest.err; then
16590 ac_cpp_err=$ac_c_preproc_warn_flag
16591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16592 else
16593 ac_cpp_err=
16594 fi
16595 else
16596 ac_cpp_err=yes
16597 fi
16598 if test -z "$ac_cpp_err"; then
16599 ac_header_preproc=yes
16600 else
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16603
16604 ac_header_preproc=no
16605 fi
16606 rm -f conftest.err conftest.$ac_ext
16607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16608 echo "${ECHO_T}$ac_header_preproc" >&6
16609
16610 # So? What about this header?
16611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16612 yes:no: )
16613 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16614 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16616 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16617 ac_header_preproc=yes
16618 ;;
16619 no:yes:* )
16620 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16621 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16623 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16625 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16627 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16629 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16631 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16632 (
16633 cat <<\_ASBOX
16634 ## ------------------------------------------ ##
16635 ## Report this to the AC_PACKAGE_NAME lists. ##
16636 ## ------------------------------------------ ##
16637 _ASBOX
16638 ) |
16639 sed "s/^/$as_me: WARNING: /" >&2
16640 ;;
16641 esac
16642 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16643 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16644 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16648 fi
16649 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16650 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16651
16652 fi
16653 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16654 ac_have_func=yes
16655
16656 cat >>confdefs.h <<\_ACEOF
16657 #define DGUX 1
16658 _ACEOF
16659
16660
16661 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16662 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16663 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 else
16666 ac_check_lib_save_LIBS=$LIBS
16667 LIBS="-ldgc $LIBS"
16668 cat >conftest.$ac_ext <<_ACEOF
16669 /* confdefs.h. */
16670 _ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16674
16675 /* Override any gcc2 internal prototype to avoid an error. */
16676 #ifdef __cplusplus
16677 extern "C"
16678 #endif
16679 /* We use char because int might match the return type of a gcc2
16680 builtin and then its argument prototype would still apply. */
16681 char dg_sys_info ();
16682 int
16683 main ()
16684 {
16685 dg_sys_info ();
16686 ;
16687 return 0;
16688 }
16689 _ACEOF
16690 rm -f conftest.$ac_objext conftest$ac_exeext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16692 (eval $ac_link) 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest$ac_exeext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 ac_cv_lib_dgc_dg_sys_info=yes
16712 else
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ac_cv_lib_dgc_dg_sys_info=no
16717 fi
16718 rm -f conftest.err conftest.$ac_objext \
16719 conftest$ac_exeext conftest.$ac_ext
16720 LIBS=$ac_check_lib_save_LIBS
16721 fi
16722 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16723 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16724 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16725 cat >>confdefs.h <<_ACEOF
16726 #define HAVE_LIBDGC 1
16727 _ACEOF
16728
16729 LIBS="-ldgc $LIBS"
16730
16731 fi
16732
16733 fi
16734
16735
16736
16737 if test "${ac_cv_header_locale_h+set}" = set; then
16738 echo "$as_me:$LINENO: checking for locale.h" >&5
16739 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16740 if test "${ac_cv_header_locale_h+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16742 fi
16743 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16744 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16745 else
16746 # Is the header compilable?
16747 echo "$as_me:$LINENO: checking locale.h usability" >&5
16748 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h. */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 $ac_includes_default
16756 #include <locale.h>
16757 _ACEOF
16758 rm -f conftest.$ac_objext
16759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; } &&
16773 { ac_try='test -s conftest.$ac_objext'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_header_compiler=yes
16780 else
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784 ac_header_compiler=no
16785 fi
16786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16788 echo "${ECHO_T}$ac_header_compiler" >&6
16789
16790 # Is the header present?
16791 echo "$as_me:$LINENO: checking locale.h presence" >&5
16792 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16793 cat >conftest.$ac_ext <<_ACEOF
16794 /* confdefs.h. */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h. */
16799 #include <locale.h>
16800 _ACEOF
16801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } >/dev/null; then
16809 if test -s conftest.err; then
16810 ac_cpp_err=$ac_c_preproc_warn_flag
16811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16812 else
16813 ac_cpp_err=
16814 fi
16815 else
16816 ac_cpp_err=yes
16817 fi
16818 if test -z "$ac_cpp_err"; then
16819 ac_header_preproc=yes
16820 else
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16823
16824 ac_header_preproc=no
16825 fi
16826 rm -f conftest.err conftest.$ac_ext
16827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16828 echo "${ECHO_T}$ac_header_preproc" >&6
16829
16830 # So? What about this header?
16831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16832 yes:no: )
16833 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16834 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16835 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16836 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16837 ac_header_preproc=yes
16838 ;;
16839 no:yes:* )
16840 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16841 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16843 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16845 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16846 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16847 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16848 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16849 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16850 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16851 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16852 (
16853 cat <<\_ASBOX
16854 ## ------------------------------------------ ##
16855 ## Report this to the AC_PACKAGE_NAME lists. ##
16856 ## ------------------------------------------ ##
16857 _ASBOX
16858 ) |
16859 sed "s/^/$as_me: WARNING: /" >&2
16860 ;;
16861 esac
16862 echo "$as_me:$LINENO: checking for locale.h" >&5
16863 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16864 if test "${ac_cv_header_locale_h+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867 ac_cv_header_locale_h=$ac_header_preproc
16868 fi
16869 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16870 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16871
16872 fi
16873
16874
16875
16876 for ac_func in setlocale
16877 do
16878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16881 if eval "test \"\${$as_ac_var+set}\" = set"; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892 #define $ac_func innocuous_$ac_func
16893
16894 /* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16898
16899 #ifdef __STDC__
16900 # include <limits.h>
16901 #else
16902 # include <assert.h>
16903 #endif
16904
16905 #undef $ac_func
16906
16907 /* Override any gcc2 internal prototype to avoid an error. */
16908 #ifdef __cplusplus
16909 extern "C"
16910 {
16911 #endif
16912 /* We use char because int might match the return type of a gcc2
16913 builtin and then its argument prototype would still apply. */
16914 char $ac_func ();
16915 /* The GNU C library defines this for functions which it implements
16916 to always fail with ENOSYS. Some functions are actually named
16917 something starting with __ and the normal name is an alias. */
16918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16919 choke me
16920 #else
16921 char (*f) () = $ac_func;
16922 #endif
16923 #ifdef __cplusplus
16924 }
16925 #endif
16926
16927 int
16928 main ()
16929 {
16930 return f != $ac_func;
16931 ;
16932 return 0;
16933 }
16934 _ACEOF
16935 rm -f conftest.$ac_objext conftest$ac_exeext
16936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16937 (eval $ac_link) 2>conftest.er1
16938 ac_status=$?
16939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; } &&
16950 { ac_try='test -s conftest$ac_exeext'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 eval "$as_ac_var=yes"
16957 else
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961 eval "$as_ac_var=no"
16962 fi
16963 rm -f conftest.err conftest.$ac_objext \
16964 conftest$ac_exeext conftest.$ac_ext
16965 fi
16966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16968 if test `eval echo '${'$as_ac_var'}'` = yes; then
16969 cat >>confdefs.h <<_ACEOF
16970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16971 _ACEOF
16972
16973 fi
16974 done
16975
16976
16977 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16978 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16979 # Irix 4.0.5F has the header but not the library.
16980 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16981 ac_have_func=yes
16982
16983 cat >>confdefs.h <<\_ACEOF
16984 #define SVR4 1
16985 _ACEOF
16986
16987 fi
16988
16989 if test $ac_have_func = no; then
16990 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16991 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16992 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16993 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 fi
16996 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16997 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16998 else
16999 # Is the header compilable?
17000 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17001 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h. */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17008 $ac_includes_default
17009 #include <inq_stats/cpustats.h>
17010 _ACEOF
17011 rm -f conftest.$ac_objext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17013 (eval $ac_compile) 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_header_compiler=yes
17033 else
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17036
17037 ac_header_compiler=no
17038 fi
17039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17041 echo "${ECHO_T}$ac_header_compiler" >&6
17042
17043 # Is the header present?
17044 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17045 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
17046 cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h. */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 #include <inq_stats/cpustats.h>
17053 _ACEOF
17054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17056 ac_status=$?
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } >/dev/null; then
17062 if test -s conftest.err; then
17063 ac_cpp_err=$ac_c_preproc_warn_flag
17064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17065 else
17066 ac_cpp_err=
17067 fi
17068 else
17069 ac_cpp_err=yes
17070 fi
17071 if test -z "$ac_cpp_err"; then
17072 ac_header_preproc=yes
17073 else
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077 ac_header_preproc=no
17078 fi
17079 rm -f conftest.err conftest.$ac_ext
17080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17081 echo "${ECHO_T}$ac_header_preproc" >&6
17082
17083 # So? What about this header?
17084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17085 yes:no: )
17086 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17087 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17089 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17090 ac_header_preproc=yes
17091 ;;
17092 no:yes:* )
17093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17094 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17096 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17098 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17099 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17100 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17101 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17102 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17103 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17104 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17105 (
17106 cat <<\_ASBOX
17107 ## ------------------------------------------ ##
17108 ## Report this to the AC_PACKAGE_NAME lists. ##
17109 ## ------------------------------------------ ##
17110 _ASBOX
17111 ) |
17112 sed "s/^/$as_me: WARNING: /" >&2
17113 ;;
17114 esac
17115 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17116 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17117 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17121 fi
17122 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17123 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17124
17125 fi
17126 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17127 ac_have_func=yes
17128
17129 cat >>confdefs.h <<\_ACEOF
17130 #define UMAX 1
17131 _ACEOF
17132
17133
17134 cat >>confdefs.h <<\_ACEOF
17135 #define UMAX4_3 1
17136 _ACEOF
17137
17138 fi
17139
17140
17141 fi
17142
17143 if test $ac_have_func = no; then
17144 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17145 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17146 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17147 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 fi
17150 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17151 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17152 else
17153 # Is the header compilable?
17154 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17155 echo $ECHO_N "checking sys/cpustats.h usability... $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 $ac_includes_default
17163 #include <sys/cpustats.h>
17164 _ACEOF
17165 rm -f conftest.$ac_objext
17166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17167 (eval $ac_compile) 2>conftest.er1
17168 ac_status=$?
17169 grep -v '^ *+' conftest.er1 >conftest.err
17170 rm -f conftest.er1
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } &&
17174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; } &&
17180 { ac_try='test -s conftest.$ac_objext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_header_compiler=yes
17187 else
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 ac_header_compiler=no
17192 fi
17193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17195 echo "${ECHO_T}$ac_header_compiler" >&6
17196
17197 # Is the header present?
17198 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17199 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h. */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 #include <sys/cpustats.h>
17207 _ACEOF
17208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } >/dev/null; then
17216 if test -s conftest.err; then
17217 ac_cpp_err=$ac_c_preproc_warn_flag
17218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17219 else
17220 ac_cpp_err=
17221 fi
17222 else
17223 ac_cpp_err=yes
17224 fi
17225 if test -z "$ac_cpp_err"; then
17226 ac_header_preproc=yes
17227 else
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 ac_header_preproc=no
17232 fi
17233 rm -f conftest.err conftest.$ac_ext
17234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17235 echo "${ECHO_T}$ac_header_preproc" >&6
17236
17237 # So? What about this header?
17238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17239 yes:no: )
17240 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17241 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17242 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17243 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17244 ac_header_preproc=yes
17245 ;;
17246 no:yes:* )
17247 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17248 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17249 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17250 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17251 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17252 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17253 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17254 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17255 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17256 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17257 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17258 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17259 (
17260 cat <<\_ASBOX
17261 ## ------------------------------------------ ##
17262 ## Report this to the AC_PACKAGE_NAME lists. ##
17263 ## ------------------------------------------ ##
17264 _ASBOX
17265 ) |
17266 sed "s/^/$as_me: WARNING: /" >&2
17267 ;;
17268 esac
17269 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17270 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17271 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 else
17274 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17275 fi
17276 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17277 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17278
17279 fi
17280 if test $ac_cv_header_sys_cpustats_h = yes; then
17281 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17282 #define UMAX 1
17283 _ACEOF
17284
17285 fi
17286
17287
17288 fi
17289
17290 if test $ac_have_func = no; then
17291
17292 for ac_header in mach/mach.h
17293 do
17294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296 echo "$as_me:$LINENO: checking for $ac_header" >&5
17297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17300 fi
17301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17303 else
17304 # Is the header compilable?
17305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h. */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 $ac_includes_default
17314 #include <$ac_header>
17315 _ACEOF
17316 rm -f conftest.$ac_objext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17318 (eval $ac_compile) 2>conftest.er1
17319 ac_status=$?
17320 grep -v '^ *+' conftest.er1 >conftest.err
17321 rm -f conftest.er1
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest.$ac_objext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_header_compiler=yes
17338 else
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 ac_header_compiler=no
17343 fi
17344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17346 echo "${ECHO_T}$ac_header_compiler" >&6
17347
17348 # Is the header present?
17349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17351 cat >conftest.$ac_ext <<_ACEOF
17352 /* confdefs.h. */
17353 _ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17357 #include <$ac_header>
17358 _ACEOF
17359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } >/dev/null; then
17367 if test -s conftest.err; then
17368 ac_cpp_err=$ac_c_preproc_warn_flag
17369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17370 else
17371 ac_cpp_err=
17372 fi
17373 else
17374 ac_cpp_err=yes
17375 fi
17376 if test -z "$ac_cpp_err"; then
17377 ac_header_preproc=yes
17378 else
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382 ac_header_preproc=no
17383 fi
17384 rm -f conftest.err conftest.$ac_ext
17385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17386 echo "${ECHO_T}$ac_header_preproc" >&6
17387
17388 # So? What about this header?
17389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17390 yes:no: )
17391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17395 ac_header_preproc=yes
17396 ;;
17397 no:yes:* )
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17410 (
17411 cat <<\_ASBOX
17412 ## ------------------------------------------ ##
17413 ## Report this to the AC_PACKAGE_NAME lists. ##
17414 ## ------------------------------------------ ##
17415 _ASBOX
17416 ) |
17417 sed "s/^/$as_me: WARNING: /" >&2
17418 ;;
17419 esac
17420 echo "$as_me:$LINENO: checking for $ac_header" >&5
17421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 else
17425 eval "$as_ac_Header=\$ac_header_preproc"
17426 fi
17427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17429
17430 fi
17431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17432 cat >>confdefs.h <<_ACEOF
17433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17434 _ACEOF
17435
17436 fi
17437
17438 done
17439
17440 fi
17441
17442
17443 for ac_header in nlist.h
17444 do
17445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17447 echo "$as_me:$LINENO: checking for $ac_header" >&5
17448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 fi
17452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17454 else
17455 # Is the header compilable?
17456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17458 cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h. */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 $ac_includes_default
17465 #include <$ac_header>
17466 _ACEOF
17467 rm -f conftest.$ac_objext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469 (eval $ac_compile) 2>conftest.er1
17470 ac_status=$?
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest.$ac_objext'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 ac_header_compiler=yes
17489 else
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17492
17493 ac_header_compiler=no
17494 fi
17495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17497 echo "${ECHO_T}$ac_header_compiler" >&6
17498
17499 # Is the header present?
17500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17502 cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h. */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 #include <$ac_header>
17509 _ACEOF
17510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17512 ac_status=$?
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } >/dev/null; then
17518 if test -s conftest.err; then
17519 ac_cpp_err=$ac_c_preproc_warn_flag
17520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17521 else
17522 ac_cpp_err=
17523 fi
17524 else
17525 ac_cpp_err=yes
17526 fi
17527 if test -z "$ac_cpp_err"; then
17528 ac_header_preproc=yes
17529 else
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17532
17533 ac_header_preproc=no
17534 fi
17535 rm -f conftest.err conftest.$ac_ext
17536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17537 echo "${ECHO_T}$ac_header_preproc" >&6
17538
17539 # So? What about this header?
17540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17541 yes:no: )
17542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17546 ac_header_preproc=yes
17547 ;;
17548 no:yes:* )
17549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17561 (
17562 cat <<\_ASBOX
17563 ## ------------------------------------------ ##
17564 ## Report this to the AC_PACKAGE_NAME lists. ##
17565 ## ------------------------------------------ ##
17566 _ASBOX
17567 ) |
17568 sed "s/^/$as_me: WARNING: /" >&2
17569 ;;
17570 esac
17571 echo "$as_me:$LINENO: checking for $ac_header" >&5
17572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
17576 eval "$as_ac_Header=\$ac_header_preproc"
17577 fi
17578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17580
17581 fi
17582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17583 cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17585 _ACEOF
17586 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17587 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17588 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591 cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h. */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 #include <nlist.h>
17598
17599 int
17600 main ()
17601 {
17602 static struct nlist ac_aggr;
17603 if (ac_aggr.n_un.n_name)
17604 return 0;
17605 ;
17606 return 0;
17607 }
17608 _ACEOF
17609 rm -f conftest.$ac_objext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17611 (eval $ac_compile) 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest.$ac_objext'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_cv_member_struct_nlist_n_un_n_name=yes
17631 else
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17634
17635 cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h. */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 #include <nlist.h>
17642
17643 int
17644 main ()
17645 {
17646 static struct nlist ac_aggr;
17647 if (sizeof ac_aggr.n_un.n_name)
17648 return 0;
17649 ;
17650 return 0;
17651 }
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655 (eval $ac_compile) 2>conftest.er1
17656 ac_status=$?
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest.$ac_objext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_member_struct_nlist_n_un_n_name=yes
17675 else
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679 ac_cv_member_struct_nlist_n_un_n_name=no
17680 fi
17681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17682 fi
17683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17684 fi
17685 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17686 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17687 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17688
17689 cat >>confdefs.h <<_ACEOF
17690 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17691 _ACEOF
17692
17693
17694 cat >>confdefs.h <<\_ACEOF
17695 #define NLIST_NAME_UNION 1
17696 _ACEOF
17697
17698 fi
17699
17700
17701 fi
17702
17703 done
17704
17705 fi
17706 done
17707
17708
17709 # Some definitions of getloadavg require that the program be installed setgid.
17710 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17711 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17712 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715 cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h. */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17722 #ifdef LDAV_PRIVILEGED
17723 Yowza Am I SETGID yet
17724 #endif
17725 _ACEOF
17726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17727 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17728 ac_cv_func_getloadavg_setgid=yes
17729 else
17730 ac_cv_func_getloadavg_setgid=no
17731 fi
17732 rm -f conftest*
17733
17734 fi
17735 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17736 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17737 if test $ac_cv_func_getloadavg_setgid = yes; then
17738 NEED_SETGID=true
17739
17740 cat >>confdefs.h <<\_ACEOF
17741 #define GETLOADAVG_PRIVILEGED 1
17742 _ACEOF
17743
17744 else
17745 NEED_SETGID=false
17746 fi
17747
17748 if test $ac_cv_func_getloadavg_setgid = yes; then
17749 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17750 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17751 if test "${ac_cv_group_kmem+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17755 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17756 # If we got an error (system does not support symlinks), try without -L.
17757 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17758 ac_cv_group_kmem=`echo $ac_ls_output \
17759 | sed -ne 's/[ ][ ]*/ /g;
17760 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17761 / /s/.* //;p;'`
17762
17763 fi
17764 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17765 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17766 KMEM_GROUP=$ac_cv_group_kmem
17767 fi
17768 if test "x$ac_save_LIBS" = x; then
17769 GETLOADAVG_LIBS=$LIBS
17770 else
17771 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17772 fi
17773 LIBS=$ac_save_LIBS
17774
17775
17776
17777 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17778 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17779 if test "${ac_cv_sys_largefile_source+set}" = set; then
17780 echo $ECHO_N "(cached) $ECHO_C" >&6
17781 else
17782 while :; do
17783 ac_cv_sys_largefile_source=no
17784 cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h. */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 #include <stdio.h>
17791 int
17792 main ()
17793 {
17794 return !fseeko;
17795 ;
17796 return 0;
17797 }
17798 _ACEOF
17799 rm -f conftest.$ac_objext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17801 (eval $ac_compile) 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest.$ac_objext'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 break
17821 else
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17824
17825 fi
17826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17827 cat >conftest.$ac_ext <<_ACEOF
17828 /* confdefs.h. */
17829 _ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 #define _LARGEFILE_SOURCE 1
17834 #include <stdio.h>
17835 int
17836 main ()
17837 {
17838 return !fseeko;
17839 ;
17840 return 0;
17841 }
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845 (eval $ac_compile) 2>conftest.er1
17846 ac_status=$?
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17861 ac_status=$?
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17864 ac_cv_sys_largefile_source=1; break
17865 else
17866 echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17868
17869 fi
17870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17871 break
17872 done
17873 fi
17874 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17875 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17876 if test "$ac_cv_sys_largefile_source" != no; then
17877
17878 cat >>confdefs.h <<_ACEOF
17879 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17880 _ACEOF
17881
17882 fi
17883 rm -f conftest*
17884
17885 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17886 # in glibc 2.1.3, but that breaks too many other things.
17887 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17888 echo "$as_me:$LINENO: checking for fseeko" >&5
17889 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17890 if test "${ac_cv_func_fseeko+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 else
17893 cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h. */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 #include <stdio.h>
17900 int
17901 main ()
17902 {
17903 return fseeko && fseeko (stdin, 0, 0);
17904 ;
17905 return 0;
17906 }
17907 _ACEOF
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910 (eval $ac_link) 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } &&
17923 { ac_try='test -s conftest$ac_exeext'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_func_fseeko=yes
17930 else
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17933
17934 ac_cv_func_fseeko=no
17935 fi
17936 rm -f conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17938 fi
17939 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17940 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17941 if test $ac_cv_func_fseeko = yes; then
17942
17943 cat >>confdefs.h <<\_ACEOF
17944 #define HAVE_FSEEKO 1
17945 _ACEOF
17946
17947 fi
17948
17949
17950 # Configure getopt.
17951 # getopt.m4 serial 10
17952
17953 # The getopt module assume you want GNU getopt, with getopt_long etc,
17954 # rather than vanilla POSIX getopt. This means your your code should
17955 # always include <getopt.h> for the getopt prototypes.
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967 # Prerequisites of lib/getopt*.
17968
17969
17970
17971
17972 GETOPT_H=
17973
17974 for ac_header in getopt.h
17975 do
17976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17978 echo "$as_me:$LINENO: checking for $ac_header" >&5
17979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 fi
17983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17985 else
17986 # Is the header compilable?
17987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17989 cat >conftest.$ac_ext <<_ACEOF
17990 /* confdefs.h. */
17991 _ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995 $ac_includes_default
17996 #include <$ac_header>
17997 _ACEOF
17998 rm -f conftest.$ac_objext
17999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18000 (eval $ac_compile) 2>conftest.er1
18001 ac_status=$?
18002 grep -v '^ *+' conftest.er1 >conftest.err
18003 rm -f conftest.er1
18004 cat conftest.err >&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; } &&
18013 { ac_try='test -s conftest.$ac_objext'
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18016 ac_status=$?
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; }; then
18019 ac_header_compiler=yes
18020 else
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024 ac_header_compiler=no
18025 fi
18026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6
18029
18030 # Is the header present?
18031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <$ac_header>
18040 _ACEOF
18041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18043 ac_status=$?
18044 grep -v '^ *+' conftest.er1 >conftest.err
18045 rm -f conftest.er1
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } >/dev/null; then
18049 if test -s conftest.err; then
18050 ac_cpp_err=$ac_c_preproc_warn_flag
18051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18052 else
18053 ac_cpp_err=
18054 fi
18055 else
18056 ac_cpp_err=yes
18057 fi
18058 if test -z "$ac_cpp_err"; then
18059 ac_header_preproc=yes
18060 else
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18063
18064 ac_header_preproc=no
18065 fi
18066 rm -f conftest.err conftest.$ac_ext
18067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18068 echo "${ECHO_T}$ac_header_preproc" >&6
18069
18070 # So? What about this header?
18071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 yes:no: )
18073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18077 ac_header_preproc=yes
18078 ;;
18079 no:yes:* )
18080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18092 (
18093 cat <<\_ASBOX
18094 ## ------------------------------------------ ##
18095 ## Report this to the AC_PACKAGE_NAME lists. ##
18096 ## ------------------------------------------ ##
18097 _ASBOX
18098 ) |
18099 sed "s/^/$as_me: WARNING: /" >&2
18100 ;;
18101 esac
18102 echo "$as_me:$LINENO: checking for $ac_header" >&5
18103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 else
18107 eval "$as_ac_Header=\$ac_header_preproc"
18108 fi
18109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18111
18112 fi
18113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18114 cat >>confdefs.h <<_ACEOF
18115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18116 _ACEOF
18117
18118 else
18119 GETOPT_H=getopt.h
18120 fi
18121
18122 done
18123
18124 if test -z "$GETOPT_H"; then
18125
18126 for ac_func in getopt_long_only
18127 do
18128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18129 echo "$as_me:$LINENO: checking for $ac_func" >&5
18130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18131 if eval "test \"\${$as_ac_var+set}\" = set"; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134 cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h. */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18142 #define $ac_func innocuous_$ac_func
18143
18144 /* System header to define __stub macros and hopefully few prototypes,
18145 which can conflict with char $ac_func (); below.
18146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18147 <limits.h> exists even on freestanding compilers. */
18148
18149 #ifdef __STDC__
18150 # include <limits.h>
18151 #else
18152 # include <assert.h>
18153 #endif
18154
18155 #undef $ac_func
18156
18157 /* Override any gcc2 internal prototype to avoid an error. */
18158 #ifdef __cplusplus
18159 extern "C"
18160 {
18161 #endif
18162 /* We use char because int might match the return type of a gcc2
18163 builtin and then its argument prototype would still apply. */
18164 char $ac_func ();
18165 /* The GNU C library defines this for functions which it implements
18166 to always fail with ENOSYS. Some functions are actually named
18167 something starting with __ and the normal name is an alias. */
18168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18169 choke me
18170 #else
18171 char (*f) () = $ac_func;
18172 #endif
18173 #ifdef __cplusplus
18174 }
18175 #endif
18176
18177 int
18178 main ()
18179 {
18180 return f != $ac_func;
18181 ;
18182 return 0;
18183 }
18184 _ACEOF
18185 rm -f conftest.$ac_objext conftest$ac_exeext
18186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18187 (eval $ac_link) 2>conftest.er1
18188 ac_status=$?
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18197 ac_status=$?
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest$ac_exeext'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 eval "$as_ac_var=yes"
18207 else
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18210
18211 eval "$as_ac_var=no"
18212 fi
18213 rm -f conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215 fi
18216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18218 if test `eval echo '${'$as_ac_var'}'` = yes; then
18219 cat >>confdefs.h <<_ACEOF
18220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18221 _ACEOF
18222
18223 else
18224 GETOPT_H=getopt.h
18225 fi
18226 done
18227
18228 fi
18229
18230 if test -z "$GETOPT_H"; then
18231 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18232 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
18233 if test "${ac_cv_have_decl_optreset+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236 cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h. */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 #include <getopt.h>
18243
18244 int
18245 main ()
18246 {
18247 #ifndef optreset
18248 char *p = (char *) optreset;
18249 #endif
18250
18251 ;
18252 return 0;
18253 }
18254 _ACEOF
18255 rm -f conftest.$ac_objext
18256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18257 (eval $ac_compile) 2>conftest.er1
18258 ac_status=$?
18259 grep -v '^ *+' conftest.er1 >conftest.err
18260 rm -f conftest.er1
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; } &&
18270 { ac_try='test -s conftest.$ac_objext'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; }; then
18276 ac_cv_have_decl_optreset=yes
18277 else
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281 ac_cv_have_decl_optreset=no
18282 fi
18283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18284 fi
18285 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18286 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
18287 if test $ac_cv_have_decl_optreset = yes; then
18288 GETOPT_H=getopt.h
18289 fi
18290
18291 fi
18292
18293 if test -z "$GETOPT_H"; then
18294 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18295 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
18296 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299 if test "$cross_compiling" = yes; then
18300 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18301 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
18302 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 else
18305 cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h. */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18311 #include <getopt.h>
18312
18313 int
18314 main ()
18315 {
18316 #ifndef getopt_clip
18317 char *p = (char *) getopt_clip;
18318 #endif
18319
18320 ;
18321 return 0;
18322 }
18323 _ACEOF
18324 rm -f conftest.$ac_objext
18325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18326 (eval $ac_compile) 2>conftest.er1
18327 ac_status=$?
18328 grep -v '^ *+' conftest.er1 >conftest.err
18329 rm -f conftest.er1
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_have_decl_getopt_clip=yes
18346 else
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 ac_cv_have_decl_getopt_clip=no
18351 fi
18352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18353 fi
18354 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18355 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
18356 if test $ac_cv_have_decl_getopt_clip = yes; then
18357 gl_cv_func_gnu_getopt=no
18358 else
18359 gl_cv_func_gnu_getopt=yes
18360 fi
18361
18362 else
18363 cat >conftest.$ac_ext <<_ACEOF
18364 /* confdefs.h. */
18365 _ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18369 #include <getopt.h>
18370 int
18371 main ()
18372 {
18373
18374 char *myargv[3];
18375 myargv[0] = "conftest";
18376 myargv[1] = "-+";
18377 myargv[2] = 0;
18378 return getopt (2, myargv, "+a") != '?';
18379
18380 ;
18381 return 0;
18382 }
18383 _ACEOF
18384 rm -f conftest$ac_exeext
18385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18386 (eval $ac_link) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 gl_cv_func_gnu_getopt=yes
18396 else
18397 echo "$as_me: program exited with status $ac_status" >&5
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18400
18401 ( exit $ac_status )
18402 gl_cv_func_gnu_getopt=no
18403 fi
18404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18405 fi
18406 fi
18407 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18408 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
18409 if test "$gl_cv_func_gnu_getopt" = "no"; then
18410 GETOPT_H=getopt.h
18411 fi
18412 fi
18413
18414
18415
18416 if test -n "$GETOPT_H"; then
18417
18418
18419 GETOPT_H=getopt.h
18420
18421 cat >>confdefs.h <<\_ACEOF
18422 #define __GETOPT_PREFIX rpl_
18423 _ACEOF
18424
18425
18426
18427 :
18428 GETOPTOBJS='getopt.o getopt1.o'
18429
18430 fi
18431
18432
18433
18434
18435 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18436 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
18437 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440 # Use it with a single arg.
18441 cat >conftest.$ac_ext <<_ACEOF
18442 /* confdefs.h. */
18443 _ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18447 $ac_includes_default
18448 int
18449 main ()
18450 {
18451 getpgrp (0);
18452 ;
18453 return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18458 (eval $ac_compile) 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest.$ac_objext'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 ac_cv_func_getpgrp_void=no
18478 else
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18481
18482 ac_cv_func_getpgrp_void=yes
18483 fi
18484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18485
18486 fi
18487 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18488 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
18489 if test $ac_cv_func_getpgrp_void = yes; then
18490
18491 cat >>confdefs.h <<\_ACEOF
18492 #define GETPGRP_VOID 1
18493 _ACEOF
18494
18495 fi
18496
18497
18498
18499 for ac_func in strftime
18500 do
18501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18502 echo "$as_me:$LINENO: checking for $ac_func" >&5
18503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18504 if eval "test \"\${$as_ac_var+set}\" = set"; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507 cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h. */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18515 #define $ac_func innocuous_$ac_func
18516
18517 /* System header to define __stub macros and hopefully few prototypes,
18518 which can conflict with char $ac_func (); below.
18519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18520 <limits.h> exists even on freestanding compilers. */
18521
18522 #ifdef __STDC__
18523 # include <limits.h>
18524 #else
18525 # include <assert.h>
18526 #endif
18527
18528 #undef $ac_func
18529
18530 /* Override any gcc2 internal prototype to avoid an error. */
18531 #ifdef __cplusplus
18532 extern "C"
18533 {
18534 #endif
18535 /* We use char because int might match the return type of a gcc2
18536 builtin and then its argument prototype would still apply. */
18537 char $ac_func ();
18538 /* The GNU C library defines this for functions which it implements
18539 to always fail with ENOSYS. Some functions are actually named
18540 something starting with __ and the normal name is an alias. */
18541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18542 choke me
18543 #else
18544 char (*f) () = $ac_func;
18545 #endif
18546 #ifdef __cplusplus
18547 }
18548 #endif
18549
18550 int
18551 main ()
18552 {
18553 return f != $ac_func;
18554 ;
18555 return 0;
18556 }
18557 _ACEOF
18558 rm -f conftest.$ac_objext conftest$ac_exeext
18559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18560 (eval $ac_link) 2>conftest.er1
18561 ac_status=$?
18562 grep -v '^ *+' conftest.er1 >conftest.err
18563 rm -f conftest.er1
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; } &&
18573 { ac_try='test -s conftest$ac_exeext'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 eval "$as_ac_var=yes"
18580 else
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18583
18584 eval "$as_ac_var=no"
18585 fi
18586 rm -f conftest.err conftest.$ac_objext \
18587 conftest$ac_exeext conftest.$ac_ext
18588 fi
18589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18591 if test `eval echo '${'$as_ac_var'}'` = yes; then
18592 cat >>confdefs.h <<_ACEOF
18593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18594 _ACEOF
18595
18596 else
18597 # strftime is in -lintl on SCO UNIX.
18598 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18599 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18600 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
18603 ac_check_lib_save_LIBS=$LIBS
18604 LIBS="-lintl $LIBS"
18605 cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h. */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611
18612 /* Override any gcc2 internal prototype to avoid an error. */
18613 #ifdef __cplusplus
18614 extern "C"
18615 #endif
18616 /* We use char because int might match the return type of a gcc2
18617 builtin and then its argument prototype would still apply. */
18618 char strftime ();
18619 int
18620 main ()
18621 {
18622 strftime ();
18623 ;
18624 return 0;
18625 }
18626 _ACEOF
18627 rm -f conftest.$ac_objext conftest$ac_exeext
18628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18629 (eval $ac_link) 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try='test -s conftest$ac_exeext'
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18645 ac_status=$?
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 ac_cv_lib_intl_strftime=yes
18649 else
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18652
18653 ac_cv_lib_intl_strftime=no
18654 fi
18655 rm -f conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657 LIBS=$ac_check_lib_save_LIBS
18658 fi
18659 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18660 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18661 if test $ac_cv_lib_intl_strftime = yes; then
18662 cat >>confdefs.h <<\_ACEOF
18663 #define HAVE_STRFTIME 1
18664 _ACEOF
18665
18666 LIBS="-lintl $LIBS"
18667 fi
18668
18669 fi
18670 done
18671
18672
18673 # UNIX98 PTYs.
18674
18675 for ac_func in grantpt
18676 do
18677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18678 echo "$as_me:$LINENO: checking for $ac_func" >&5
18679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18680 if eval "test \"\${$as_ac_var+set}\" = set"; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18682 else
18683 cat >conftest.$ac_ext <<_ACEOF
18684 /* confdefs.h. */
18685 _ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18691 #define $ac_func innocuous_$ac_func
18692
18693 /* System header to define __stub macros and hopefully few prototypes,
18694 which can conflict with char $ac_func (); below.
18695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18696 <limits.h> exists even on freestanding compilers. */
18697
18698 #ifdef __STDC__
18699 # include <limits.h>
18700 #else
18701 # include <assert.h>
18702 #endif
18703
18704 #undef $ac_func
18705
18706 /* Override any gcc2 internal prototype to avoid an error. */
18707 #ifdef __cplusplus
18708 extern "C"
18709 {
18710 #endif
18711 /* We use char because int might match the return type of a gcc2
18712 builtin and then its argument prototype would still apply. */
18713 char $ac_func ();
18714 /* The GNU C library defines this for functions which it implements
18715 to always fail with ENOSYS. Some functions are actually named
18716 something starting with __ and the normal name is an alias. */
18717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18718 choke me
18719 #else
18720 char (*f) () = $ac_func;
18721 #endif
18722 #ifdef __cplusplus
18723 }
18724 #endif
18725
18726 int
18727 main ()
18728 {
18729 return f != $ac_func;
18730 ;
18731 return 0;
18732 }
18733 _ACEOF
18734 rm -f conftest.$ac_objext conftest$ac_exeext
18735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18736 (eval $ac_link) 2>conftest.er1
18737 ac_status=$?
18738 grep -v '^ *+' conftest.er1 >conftest.err
18739 rm -f conftest.er1
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } &&
18743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest$ac_exeext'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; }; then
18755 eval "$as_ac_var=yes"
18756 else
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18759
18760 eval "$as_ac_var=no"
18761 fi
18762 rm -f conftest.err conftest.$ac_objext \
18763 conftest$ac_exeext conftest.$ac_ext
18764 fi
18765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18767 if test `eval echo '${'$as_ac_var'}'` = yes; then
18768 cat >>confdefs.h <<_ACEOF
18769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18770 _ACEOF
18771
18772 fi
18773 done
18774
18775
18776 # PTY-related GNU extensions.
18777
18778 for ac_func in getpt
18779 do
18780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18781 echo "$as_me:$LINENO: checking for $ac_func" >&5
18782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18783 if eval "test \"\${$as_ac_var+set}\" = set"; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18785 else
18786 cat >conftest.$ac_ext <<_ACEOF
18787 /* confdefs.h. */
18788 _ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18794 #define $ac_func innocuous_$ac_func
18795
18796 /* System header to define __stub macros and hopefully few prototypes,
18797 which can conflict with char $ac_func (); below.
18798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18799 <limits.h> exists even on freestanding compilers. */
18800
18801 #ifdef __STDC__
18802 # include <limits.h>
18803 #else
18804 # include <assert.h>
18805 #endif
18806
18807 #undef $ac_func
18808
18809 /* Override any gcc2 internal prototype to avoid an error. */
18810 #ifdef __cplusplus
18811 extern "C"
18812 {
18813 #endif
18814 /* We use char because int might match the return type of a gcc2
18815 builtin and then its argument prototype would still apply. */
18816 char $ac_func ();
18817 /* The GNU C library defines this for functions which it implements
18818 to always fail with ENOSYS. Some functions are actually named
18819 something starting with __ and the normal name is an alias. */
18820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18821 choke me
18822 #else
18823 char (*f) () = $ac_func;
18824 #endif
18825 #ifdef __cplusplus
18826 }
18827 #endif
18828
18829 int
18830 main ()
18831 {
18832 return f != $ac_func;
18833 ;
18834 return 0;
18835 }
18836 _ACEOF
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839 (eval $ac_link) 2>conftest.er1
18840 ac_status=$?
18841 grep -v '^ *+' conftest.er1 >conftest.err
18842 rm -f conftest.er1
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
18846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest$ac_exeext'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 eval "$as_ac_var=yes"
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 eval "$as_ac_var=no"
18864 fi
18865 rm -f conftest.err conftest.$ac_objext \
18866 conftest$ac_exeext conftest.$ac_ext
18867 fi
18868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18870 if test `eval echo '${'$as_ac_var'}'` = yes; then
18871 cat >>confdefs.h <<_ACEOF
18872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18873 _ACEOF
18874
18875 fi
18876 done
18877
18878
18879 # Check this now, so that we will NOT find the above functions in ncurses.
18880 # That is because we have not set up to link ncurses in lib-src.
18881 # It's better to believe a function is not available
18882 # than to expect to find it in ncurses.
18883
18884 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18885 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18886 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 else
18889 ac_check_lib_save_LIBS=$LIBS
18890 LIBS="-lncurses $LIBS"
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897
18898 /* Override any gcc2 internal prototype to avoid an error. */
18899 #ifdef __cplusplus
18900 extern "C"
18901 #endif
18902 /* We use char because int might match the return type of a gcc2
18903 builtin and then its argument prototype would still apply. */
18904 char tparm ();
18905 int
18906 main ()
18907 {
18908 tparm ();
18909 ;
18910 return 0;
18911 }
18912 _ACEOF
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18915 (eval $ac_link) 2>conftest.er1
18916 ac_status=$?
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; } &&
18928 { ac_try='test -s conftest$ac_exeext'
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ac_cv_lib_ncurses_tparm=yes
18935 else
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18938
18939 ac_cv_lib_ncurses_tparm=no
18940 fi
18941 rm -f conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18943 LIBS=$ac_check_lib_save_LIBS
18944 fi
18945 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18946 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18947 if test $ac_cv_lib_ncurses_tparm = yes; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define HAVE_LIBNCURSES 1
18950 _ACEOF
18951
18952 LIBS="-lncurses $LIBS"
18953
18954 fi
18955
18956
18957 # Do we need the Hesiod library to provide the support routines?
18958 if test "$with_hesiod" = yes ; then
18959 # Don't set $LIBS here -- see comments above.
18960 resolv=no
18961 echo "$as_me:$LINENO: checking for res_send" >&5
18962 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18963 if test "${ac_cv_func_res_send+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966 cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h. */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18974 #define res_send innocuous_res_send
18975
18976 /* System header to define __stub macros and hopefully few prototypes,
18977 which can conflict with char res_send (); below.
18978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18979 <limits.h> exists even on freestanding compilers. */
18980
18981 #ifdef __STDC__
18982 # include <limits.h>
18983 #else
18984 # include <assert.h>
18985 #endif
18986
18987 #undef res_send
18988
18989 /* Override any gcc2 internal prototype to avoid an error. */
18990 #ifdef __cplusplus
18991 extern "C"
18992 {
18993 #endif
18994 /* We use char because int might match the return type of a gcc2
18995 builtin and then its argument prototype would still apply. */
18996 char res_send ();
18997 /* The GNU C library defines this for functions which it implements
18998 to always fail with ENOSYS. Some functions are actually named
18999 something starting with __ and the normal name is an alias. */
19000 #if defined (__stub_res_send) || defined (__stub___res_send)
19001 choke me
19002 #else
19003 char (*f) () = res_send;
19004 #endif
19005 #ifdef __cplusplus
19006 }
19007 #endif
19008
19009 int
19010 main ()
19011 {
19012 return f != res_send;
19013 ;
19014 return 0;
19015 }
19016 _ACEOF
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19019 (eval $ac_link) 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
19026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; } &&
19032 { ac_try='test -s conftest$ac_exeext'
19033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_cv_func_res_send=yes
19039 else
19040 echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19042
19043 ac_cv_func_res_send=no
19044 fi
19045 rm -f conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
19047 fi
19048 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19049 echo "${ECHO_T}$ac_cv_func_res_send" >&6
19050 if test $ac_cv_func_res_send = yes; then
19051 :
19052 else
19053 echo "$as_me:$LINENO: checking for __res_send" >&5
19054 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
19055 if test "${ac_cv_func___res_send+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058 cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h. */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19066 #define __res_send innocuous___res_send
19067
19068 /* System header to define __stub macros and hopefully few prototypes,
19069 which can conflict with char __res_send (); below.
19070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19071 <limits.h> exists even on freestanding compilers. */
19072
19073 #ifdef __STDC__
19074 # include <limits.h>
19075 #else
19076 # include <assert.h>
19077 #endif
19078
19079 #undef __res_send
19080
19081 /* Override any gcc2 internal prototype to avoid an error. */
19082 #ifdef __cplusplus
19083 extern "C"
19084 {
19085 #endif
19086 /* We use char because int might match the return type of a gcc2
19087 builtin and then its argument prototype would still apply. */
19088 char __res_send ();
19089 /* The GNU C library defines this for functions which it implements
19090 to always fail with ENOSYS. Some functions are actually named
19091 something starting with __ and the normal name is an alias. */
19092 #if defined (__stub___res_send) || defined (__stub_____res_send)
19093 choke me
19094 #else
19095 char (*f) () = __res_send;
19096 #endif
19097 #ifdef __cplusplus
19098 }
19099 #endif
19100
19101 int
19102 main ()
19103 {
19104 return f != __res_send;
19105 ;
19106 return 0;
19107 }
19108 _ACEOF
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111 (eval $ac_link) 2>conftest.er1
19112 ac_status=$?
19113 grep -v '^ *+' conftest.er1 >conftest.err
19114 rm -f conftest.er1
19115 cat conftest.err >&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
19118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try='test -s conftest$ac_exeext'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19130 ac_cv_func___res_send=yes
19131 else
19132 echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19134
19135 ac_cv_func___res_send=no
19136 fi
19137 rm -f conftest.err conftest.$ac_objext \
19138 conftest$ac_exeext conftest.$ac_ext
19139 fi
19140 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19141 echo "${ECHO_T}$ac_cv_func___res_send" >&6
19142 if test $ac_cv_func___res_send = yes; then
19143 :
19144 else
19145 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19146 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19147 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150 ac_check_lib_save_LIBS=$LIBS
19151 LIBS="-lresolv $LIBS"
19152 cat >conftest.$ac_ext <<_ACEOF
19153 /* confdefs.h. */
19154 _ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19158
19159 /* Override any gcc2 internal prototype to avoid an error. */
19160 #ifdef __cplusplus
19161 extern "C"
19162 #endif
19163 /* We use char because int might match the return type of a gcc2
19164 builtin and then its argument prototype would still apply. */
19165 char res_send ();
19166 int
19167 main ()
19168 {
19169 res_send ();
19170 ;
19171 return 0;
19172 }
19173 _ACEOF
19174 rm -f conftest.$ac_objext conftest$ac_exeext
19175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19176 (eval $ac_link) 2>conftest.er1
19177 ac_status=$?
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
19183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest$ac_exeext'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_lib_resolv_res_send=yes
19196 else
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 ac_cv_lib_resolv_res_send=no
19201 fi
19202 rm -f conftest.err conftest.$ac_objext \
19203 conftest$ac_exeext conftest.$ac_ext
19204 LIBS=$ac_check_lib_save_LIBS
19205 fi
19206 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19207 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19208 if test $ac_cv_lib_resolv_res_send = yes; then
19209 resolv=yes
19210 else
19211 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19212 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
19213 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 else
19216 ac_check_lib_save_LIBS=$LIBS
19217 LIBS="-lresolv $LIBS"
19218 cat >conftest.$ac_ext <<_ACEOF
19219 /* confdefs.h. */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224
19225 /* Override any gcc2 internal prototype to avoid an error. */
19226 #ifdef __cplusplus
19227 extern "C"
19228 #endif
19229 /* We use char because int might match the return type of a gcc2
19230 builtin and then its argument prototype would still apply. */
19231 char __res_send ();
19232 int
19233 main ()
19234 {
19235 __res_send ();
19236 ;
19237 return 0;
19238 }
19239 _ACEOF
19240 rm -f conftest.$ac_objext conftest$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest$ac_exeext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_cv_lib_resolv___res_send=yes
19262 else
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266 ac_cv_lib_resolv___res_send=no
19267 fi
19268 rm -f conftest.err conftest.$ac_objext \
19269 conftest$ac_exeext conftest.$ac_ext
19270 LIBS=$ac_check_lib_save_LIBS
19271 fi
19272 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19273 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
19274 if test $ac_cv_lib_resolv___res_send = yes; then
19275 resolv=yes
19276 fi
19277
19278 fi
19279
19280 fi
19281
19282 fi
19283
19284 if test "$resolv" = yes ; then
19285 RESOLVLIB=-lresolv
19286
19287 cat >>confdefs.h <<\_ACEOF
19288 #define HAVE_LIBRESOLV 1
19289 _ACEOF
19290
19291 else
19292 RESOLVLIB=
19293 fi
19294 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19295 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
19296 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19298 else
19299 cat >conftest.$ac_ext <<_ACEOF
19300 /* confdefs.h. */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19307 #define hes_getmailhost innocuous_hes_getmailhost
19308
19309 /* System header to define __stub macros and hopefully few prototypes,
19310 which can conflict with char hes_getmailhost (); below.
19311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19312 <limits.h> exists even on freestanding compilers. */
19313
19314 #ifdef __STDC__
19315 # include <limits.h>
19316 #else
19317 # include <assert.h>
19318 #endif
19319
19320 #undef hes_getmailhost
19321
19322 /* Override any gcc2 internal prototype to avoid an error. */
19323 #ifdef __cplusplus
19324 extern "C"
19325 {
19326 #endif
19327 /* We use char because int might match the return type of a gcc2
19328 builtin and then its argument prototype would still apply. */
19329 char hes_getmailhost ();
19330 /* The GNU C library defines this for functions which it implements
19331 to always fail with ENOSYS. Some functions are actually named
19332 something starting with __ and the normal name is an alias. */
19333 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
19334 choke me
19335 #else
19336 char (*f) () = hes_getmailhost;
19337 #endif
19338 #ifdef __cplusplus
19339 }
19340 #endif
19341
19342 int
19343 main ()
19344 {
19345 return f != hes_getmailhost;
19346 ;
19347 return 0;
19348 }
19349 _ACEOF
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19352 (eval $ac_link) 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest$ac_exeext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_cv_func_hes_getmailhost=yes
19372 else
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19375
19376 ac_cv_func_hes_getmailhost=no
19377 fi
19378 rm -f conftest.err conftest.$ac_objext \
19379 conftest$ac_exeext conftest.$ac_ext
19380 fi
19381 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19382 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
19383 if test $ac_cv_func_hes_getmailhost = yes; then
19384 :
19385 else
19386 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19387 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
19388 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391 ac_check_lib_save_LIBS=$LIBS
19392 LIBS="-lhesiod $RESOLVLIB $LIBS"
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h. */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399
19400 /* Override any gcc2 internal prototype to avoid an error. */
19401 #ifdef __cplusplus
19402 extern "C"
19403 #endif
19404 /* We use char because int might match the return type of a gcc2
19405 builtin and then its argument prototype would still apply. */
19406 char hes_getmailhost ();
19407 int
19408 main ()
19409 {
19410 hes_getmailhost ();
19411 ;
19412 return 0;
19413 }
19414 _ACEOF
19415 rm -f conftest.$ac_objext conftest$ac_exeext
19416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19417 (eval $ac_link) 2>conftest.er1
19418 ac_status=$?
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest$ac_exeext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_lib_hesiod_hes_getmailhost=yes
19437 else
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440
19441 ac_cv_lib_hesiod_hes_getmailhost=no
19442 fi
19443 rm -f conftest.err conftest.$ac_objext \
19444 conftest$ac_exeext conftest.$ac_ext
19445 LIBS=$ac_check_lib_save_LIBS
19446 fi
19447 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19448 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
19449 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19450
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_LIBHESIOD 1
19453 _ACEOF
19454
19455 else
19456 :
19457 fi
19458
19459 fi
19460
19461 fi
19462
19463 # These tell us which Kerberos-related libraries to use.
19464 if test "${with_kerberos+set}" = set; then
19465
19466 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19467 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
19468 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471 ac_check_lib_save_LIBS=$LIBS
19472 LIBS="-lcom_err $LIBS"
19473 cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h. */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479
19480 /* Override any gcc2 internal prototype to avoid an error. */
19481 #ifdef __cplusplus
19482 extern "C"
19483 #endif
19484 /* We use char because int might match the return type of a gcc2
19485 builtin and then its argument prototype would still apply. */
19486 char com_err ();
19487 int
19488 main ()
19489 {
19490 com_err ();
19491 ;
19492 return 0;
19493 }
19494 _ACEOF
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19497 (eval $ac_link) 2>conftest.er1
19498 ac_status=$?
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } &&
19510 { ac_try='test -s conftest$ac_exeext'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_cv_lib_com_err_com_err=yes
19517 else
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 ac_cv_lib_com_err_com_err=no
19522 fi
19523 rm -f conftest.err conftest.$ac_objext \
19524 conftest$ac_exeext conftest.$ac_ext
19525 LIBS=$ac_check_lib_save_LIBS
19526 fi
19527 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19528 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19529 if test $ac_cv_lib_com_err_com_err = yes; then
19530 cat >>confdefs.h <<_ACEOF
19531 #define HAVE_LIBCOM_ERR 1
19532 _ACEOF
19533
19534 LIBS="-lcom_err $LIBS"
19535
19536 fi
19537
19538
19539 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19540 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19541 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544 ac_check_lib_save_LIBS=$LIBS
19545 LIBS="-lk5crypto $LIBS"
19546 cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h. */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552
19553 /* Override any gcc2 internal prototype to avoid an error. */
19554 #ifdef __cplusplus
19555 extern "C"
19556 #endif
19557 /* We use char because int might match the return type of a gcc2
19558 builtin and then its argument prototype would still apply. */
19559 char mit_des_cbc_encrypt ();
19560 int
19561 main ()
19562 {
19563 mit_des_cbc_encrypt ();
19564 ;
19565 return 0;
19566 }
19567 _ACEOF
19568 rm -f conftest.$ac_objext conftest$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570 (eval $ac_link) 2>conftest.er1
19571 ac_status=$?
19572 grep -v '^ *+' conftest.er1 >conftest.err
19573 rm -f conftest.er1
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest$ac_exeext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19590 else
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19595 fi
19596 rm -f conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19599 fi
19600 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19601 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19602 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19603 cat >>confdefs.h <<_ACEOF
19604 #define HAVE_LIBK5CRYPTO 1
19605 _ACEOF
19606
19607 LIBS="-lk5crypto $LIBS"
19608
19609 fi
19610
19611
19612 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19613 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19614 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617 ac_check_lib_save_LIBS=$LIBS
19618 LIBS="-lcrypto $LIBS"
19619 cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h. */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19625
19626 /* Override any gcc2 internal prototype to avoid an error. */
19627 #ifdef __cplusplus
19628 extern "C"
19629 #endif
19630 /* We use char because int might match the return type of a gcc2
19631 builtin and then its argument prototype would still apply. */
19632 char mit_des_cbc_encrypt ();
19633 int
19634 main ()
19635 {
19636 mit_des_cbc_encrypt ();
19637 ;
19638 return 0;
19639 }
19640 _ACEOF
19641 rm -f conftest.$ac_objext conftest$ac_exeext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19643 (eval $ac_link) 2>conftest.er1
19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
19650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest$ac_exeext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19663 else
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19666
19667 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19668 fi
19669 rm -f conftest.err conftest.$ac_objext \
19670 conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19672 fi
19673 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19674 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19675 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19676 cat >>confdefs.h <<_ACEOF
19677 #define HAVE_LIBCRYPTO 1
19678 _ACEOF
19679
19680 LIBS="-lcrypto $LIBS"
19681
19682 fi
19683
19684
19685 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19686 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19687 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690 ac_check_lib_save_LIBS=$LIBS
19691 LIBS="-lkrb5 $LIBS"
19692 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h. */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698
19699 /* Override any gcc2 internal prototype to avoid an error. */
19700 #ifdef __cplusplus
19701 extern "C"
19702 #endif
19703 /* We use char because int might match the return type of a gcc2
19704 builtin and then its argument prototype would still apply. */
19705 char krb5_init_context ();
19706 int
19707 main ()
19708 {
19709 krb5_init_context ();
19710 ;
19711 return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716 (eval $ac_link) 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest$ac_exeext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_lib_krb5_krb5_init_context=yes
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_cv_lib_krb5_krb5_init_context=no
19741 fi
19742 rm -f conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19745 fi
19746 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19747 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19748 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19749 cat >>confdefs.h <<_ACEOF
19750 #define HAVE_LIBKRB5 1
19751 _ACEOF
19752
19753 LIBS="-lkrb5 $LIBS"
19754
19755 fi
19756
19757 if test "${with_kerberos5+set}" != set; then
19758
19759 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19760 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19761 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764 ac_check_lib_save_LIBS=$LIBS
19765 LIBS="-ldes425 $LIBS"
19766 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h. */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19772
19773 /* Override any gcc2 internal prototype to avoid an error. */
19774 #ifdef __cplusplus
19775 extern "C"
19776 #endif
19777 /* We use char because int might match the return type of a gcc2
19778 builtin and then its argument prototype would still apply. */
19779 char des_cbc_encrypt ();
19780 int
19781 main ()
19782 {
19783 des_cbc_encrypt ();
19784 ;
19785 return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790 (eval $ac_link) 2>conftest.er1
19791 ac_status=$?
19792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } &&
19803 { ac_try='test -s conftest$ac_exeext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 ac_cv_lib_des425_des_cbc_encrypt=yes
19810 else
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814 ac_cv_lib_des425_des_cbc_encrypt=no
19815 fi
19816 rm -f conftest.err conftest.$ac_objext \
19817 conftest$ac_exeext conftest.$ac_ext
19818 LIBS=$ac_check_lib_save_LIBS
19819 fi
19820 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19821 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19822 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19823 cat >>confdefs.h <<_ACEOF
19824 #define HAVE_LIBDES425 1
19825 _ACEOF
19826
19827 LIBS="-ldes425 $LIBS"
19828
19829 else
19830
19831 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19832 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19833 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836 ac_check_lib_save_LIBS=$LIBS
19837 LIBS="-ldes $LIBS"
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h. */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844
19845 /* Override any gcc2 internal prototype to avoid an error. */
19846 #ifdef __cplusplus
19847 extern "C"
19848 #endif
19849 /* We use char because int might match the return type of a gcc2
19850 builtin and then its argument prototype would still apply. */
19851 char des_cbc_encrypt ();
19852 int
19853 main ()
19854 {
19855 des_cbc_encrypt ();
19856 ;
19857 return 0;
19858 }
19859 _ACEOF
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19862 (eval $ac_link) 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
19869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; } &&
19875 { ac_try='test -s conftest$ac_exeext'
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; }; then
19881 ac_cv_lib_des_des_cbc_encrypt=yes
19882 else
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19885
19886 ac_cv_lib_des_des_cbc_encrypt=no
19887 fi
19888 rm -f conftest.err conftest.$ac_objext \
19889 conftest$ac_exeext conftest.$ac_ext
19890 LIBS=$ac_check_lib_save_LIBS
19891 fi
19892 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19893 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19894 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19895 cat >>confdefs.h <<_ACEOF
19896 #define HAVE_LIBDES 1
19897 _ACEOF
19898
19899 LIBS="-ldes $LIBS"
19900
19901 fi
19902
19903 fi
19904
19905
19906 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19907 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19908 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 else
19911 ac_check_lib_save_LIBS=$LIBS
19912 LIBS="-lkrb4 $LIBS"
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919
19920 /* Override any gcc2 internal prototype to avoid an error. */
19921 #ifdef __cplusplus
19922 extern "C"
19923 #endif
19924 /* We use char because int might match the return type of a gcc2
19925 builtin and then its argument prototype would still apply. */
19926 char krb_get_cred ();
19927 int
19928 main ()
19929 {
19930 krb_get_cred ();
19931 ;
19932 return 0;
19933 }
19934 _ACEOF
19935 rm -f conftest.$ac_objext conftest$ac_exeext
19936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19937 (eval $ac_link) 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; } &&
19950 { ac_try='test -s conftest$ac_exeext'
19951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952 (eval $ac_try) 2>&5
19953 ac_status=$?
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
19956 ac_cv_lib_krb4_krb_get_cred=yes
19957 else
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961 ac_cv_lib_krb4_krb_get_cred=no
19962 fi
19963 rm -f conftest.err conftest.$ac_objext \
19964 conftest$ac_exeext conftest.$ac_ext
19965 LIBS=$ac_check_lib_save_LIBS
19966 fi
19967 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19968 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19969 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971 #define HAVE_LIBKRB4 1
19972 _ACEOF
19973
19974 LIBS="-lkrb4 $LIBS"
19975
19976 else
19977
19978 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19979 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19980 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 else
19983 ac_check_lib_save_LIBS=$LIBS
19984 LIBS="-lkrb $LIBS"
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h. */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991
19992 /* Override any gcc2 internal prototype to avoid an error. */
19993 #ifdef __cplusplus
19994 extern "C"
19995 #endif
19996 /* We use char because int might match the return type of a gcc2
19997 builtin and then its argument prototype would still apply. */
19998 char krb_get_cred ();
19999 int
20000 main ()
20001 {
20002 krb_get_cred ();
20003 ;
20004 return 0;
20005 }
20006 _ACEOF
20007 rm -f conftest.$ac_objext conftest$ac_exeext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20009 (eval $ac_link) 2>conftest.er1
20010 ac_status=$?
20011 grep -v '^ *+' conftest.er1 >conftest.err
20012 rm -f conftest.er1
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } &&
20016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try='test -s conftest$ac_exeext'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_cv_lib_krb_krb_get_cred=yes
20029 else
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 ac_cv_lib_krb_krb_get_cred=no
20034 fi
20035 rm -f conftest.err conftest.$ac_objext \
20036 conftest$ac_exeext conftest.$ac_ext
20037 LIBS=$ac_check_lib_save_LIBS
20038 fi
20039 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20040 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
20041 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20042 cat >>confdefs.h <<_ACEOF
20043 #define HAVE_LIBKRB 1
20044 _ACEOF
20045
20046 LIBS="-lkrb $LIBS"
20047
20048 fi
20049
20050 fi
20051
20052 fi
20053
20054 if test "${with_kerberos5+set}" = set; then
20055
20056 for ac_header in krb5.h
20057 do
20058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20060 echo "$as_me:$LINENO: checking for $ac_header" >&5
20061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 fi
20065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20067 else
20068 # Is the header compilable?
20069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20071 cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h. */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 $ac_includes_default
20078 #include <$ac_header>
20079 _ACEOF
20080 rm -f conftest.$ac_objext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082 (eval $ac_compile) 2>conftest.er1
20083 ac_status=$?
20084 grep -v '^ *+' conftest.er1 >conftest.err
20085 rm -f conftest.er1
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
20089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; } &&
20095 { ac_try='test -s conftest.$ac_objext'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 ac_header_compiler=yes
20102 else
20103 echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20105
20106 ac_header_compiler=no
20107 fi
20108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20110 echo "${ECHO_T}$ac_header_compiler" >&6
20111
20112 # Is the header present?
20113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20115 cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h. */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 #include <$ac_header>
20122 _ACEOF
20123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20125 ac_status=$?
20126 grep -v '^ *+' conftest.er1 >conftest.err
20127 rm -f conftest.er1
20128 cat conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } >/dev/null; then
20131 if test -s conftest.err; then
20132 ac_cpp_err=$ac_c_preproc_warn_flag
20133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20134 else
20135 ac_cpp_err=
20136 fi
20137 else
20138 ac_cpp_err=yes
20139 fi
20140 if test -z "$ac_cpp_err"; then
20141 ac_header_preproc=yes
20142 else
20143 echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20145
20146 ac_header_preproc=no
20147 fi
20148 rm -f conftest.err conftest.$ac_ext
20149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20150 echo "${ECHO_T}$ac_header_preproc" >&6
20151
20152 # So? What about this header?
20153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20154 yes:no: )
20155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20159 ac_header_preproc=yes
20160 ;;
20161 no:yes:* )
20162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20174 (
20175 cat <<\_ASBOX
20176 ## ------------------------------------------ ##
20177 ## Report this to the AC_PACKAGE_NAME lists. ##
20178 ## ------------------------------------------ ##
20179 _ASBOX
20180 ) |
20181 sed "s/^/$as_me: WARNING: /" >&2
20182 ;;
20183 esac
20184 echo "$as_me:$LINENO: checking for $ac_header" >&5
20185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189 eval "$as_ac_Header=\$ac_header_preproc"
20190 fi
20191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20193
20194 fi
20195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20196 cat >>confdefs.h <<_ACEOF
20197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20198 _ACEOF
20199
20200 fi
20201
20202 done
20203
20204 else
20205
20206 for ac_header in des.h
20207 do
20208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20210 echo "$as_me:$LINENO: checking for $ac_header" >&5
20211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 fi
20215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20217 else
20218 # Is the header compilable?
20219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h. */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 $ac_includes_default
20228 #include <$ac_header>
20229 _ACEOF
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20233 ac_status=$?
20234 grep -v '^ *+' conftest.er1 >conftest.err
20235 rm -f conftest.er1
20236 cat conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; } &&
20245 { ac_try='test -s conftest.$ac_objext'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 ac_header_compiler=yes
20252 else
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256 ac_header_compiler=no
20257 fi
20258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20260 echo "${ECHO_T}$ac_header_compiler" >&6
20261
20262 # Is the header present?
20263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h. */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 #include <$ac_header>
20272 _ACEOF
20273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20275 ac_status=$?
20276 grep -v '^ *+' conftest.er1 >conftest.err
20277 rm -f conftest.er1
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } >/dev/null; then
20281 if test -s conftest.err; then
20282 ac_cpp_err=$ac_c_preproc_warn_flag
20283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20284 else
20285 ac_cpp_err=
20286 fi
20287 else
20288 ac_cpp_err=yes
20289 fi
20290 if test -z "$ac_cpp_err"; then
20291 ac_header_preproc=yes
20292 else
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295
20296 ac_header_preproc=no
20297 fi
20298 rm -f conftest.err conftest.$ac_ext
20299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20300 echo "${ECHO_T}$ac_header_preproc" >&6
20301
20302 # So? What about this header?
20303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20304 yes:no: )
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20309 ac_header_preproc=yes
20310 ;;
20311 no:yes:* )
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20324 (
20325 cat <<\_ASBOX
20326 ## ------------------------------------------ ##
20327 ## Report this to the AC_PACKAGE_NAME lists. ##
20328 ## ------------------------------------------ ##
20329 _ASBOX
20330 ) |
20331 sed "s/^/$as_me: WARNING: /" >&2
20332 ;;
20333 esac
20334 echo "$as_me:$LINENO: checking for $ac_header" >&5
20335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339 eval "$as_ac_Header=\$ac_header_preproc"
20340 fi
20341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20343
20344 fi
20345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20346 cat >>confdefs.h <<_ACEOF
20347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20348 _ACEOF
20349
20350 else
20351
20352 for ac_header in kerberosIV/des.h
20353 do
20354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20356 echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 fi
20361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20363 else
20364 # Is the header compilable?
20365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20367 cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h. */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 $ac_includes_default
20374 #include <$ac_header>
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20378 (eval $ac_compile) 2>conftest.er1
20379 ac_status=$?
20380 grep -v '^ *+' conftest.er1 >conftest.err
20381 rm -f conftest.er1
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
20385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20388 ac_status=$?
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; } &&
20391 { ac_try='test -s conftest.$ac_objext'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 ac_header_compiler=yes
20398 else
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20401
20402 ac_header_compiler=no
20403 fi
20404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20406 echo "${ECHO_T}$ac_header_compiler" >&6
20407
20408 # Is the header present?
20409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h. */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 #include <$ac_header>
20418 _ACEOF
20419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } >/dev/null; then
20427 if test -s conftest.err; then
20428 ac_cpp_err=$ac_c_preproc_warn_flag
20429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20430 else
20431 ac_cpp_err=
20432 fi
20433 else
20434 ac_cpp_err=yes
20435 fi
20436 if test -z "$ac_cpp_err"; then
20437 ac_header_preproc=yes
20438 else
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20441
20442 ac_header_preproc=no
20443 fi
20444 rm -f conftest.err conftest.$ac_ext
20445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20446 echo "${ECHO_T}$ac_header_preproc" >&6
20447
20448 # So? What about this header?
20449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20450 yes:no: )
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20455 ac_header_preproc=yes
20456 ;;
20457 no:yes:* )
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20470 (
20471 cat <<\_ASBOX
20472 ## ------------------------------------------ ##
20473 ## Report this to the AC_PACKAGE_NAME lists. ##
20474 ## ------------------------------------------ ##
20475 _ASBOX
20476 ) |
20477 sed "s/^/$as_me: WARNING: /" >&2
20478 ;;
20479 esac
20480 echo "$as_me:$LINENO: checking for $ac_header" >&5
20481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485 eval "$as_ac_Header=\$ac_header_preproc"
20486 fi
20487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20489
20490 fi
20491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20492 cat >>confdefs.h <<_ACEOF
20493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20494 _ACEOF
20495
20496 else
20497
20498 for ac_header in kerberos/des.h
20499 do
20500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20502 echo "$as_me:$LINENO: checking for $ac_header" >&5
20503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 fi
20507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20509 else
20510 # Is the header compilable?
20511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20513 cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h. */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 $ac_includes_default
20520 #include <$ac_header>
20521 _ACEOF
20522 rm -f conftest.$ac_objext
20523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20524 (eval $ac_compile) 2>conftest.er1
20525 ac_status=$?
20526 grep -v '^ *+' conftest.er1 >conftest.err
20527 rm -f conftest.er1
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } &&
20531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try='test -s conftest.$ac_objext'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 ac_header_compiler=yes
20544 else
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 ac_header_compiler=no
20549 fi
20550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20552 echo "${ECHO_T}$ac_header_compiler" >&6
20553
20554 # Is the header present?
20555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20557 cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h. */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20563 #include <$ac_header>
20564 _ACEOF
20565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20567 ac_status=$?
20568 grep -v '^ *+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } >/dev/null; then
20573 if test -s conftest.err; then
20574 ac_cpp_err=$ac_c_preproc_warn_flag
20575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20576 else
20577 ac_cpp_err=
20578 fi
20579 else
20580 ac_cpp_err=yes
20581 fi
20582 if test -z "$ac_cpp_err"; then
20583 ac_header_preproc=yes
20584 else
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 ac_header_preproc=no
20589 fi
20590 rm -f conftest.err conftest.$ac_ext
20591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20592 echo "${ECHO_T}$ac_header_preproc" >&6
20593
20594 # So? What about this header?
20595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20596 yes:no: )
20597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20601 ac_header_preproc=yes
20602 ;;
20603 no:yes:* )
20604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20616 (
20617 cat <<\_ASBOX
20618 ## ------------------------------------------ ##
20619 ## Report this to the AC_PACKAGE_NAME lists. ##
20620 ## ------------------------------------------ ##
20621 _ASBOX
20622 ) |
20623 sed "s/^/$as_me: WARNING: /" >&2
20624 ;;
20625 esac
20626 echo "$as_me:$LINENO: checking for $ac_header" >&5
20627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20629 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 else
20631 eval "$as_ac_Header=\$ac_header_preproc"
20632 fi
20633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20635
20636 fi
20637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20638 cat >>confdefs.h <<_ACEOF
20639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20640 _ACEOF
20641
20642 fi
20643
20644 done
20645
20646 fi
20647
20648 done
20649
20650 fi
20651
20652 done
20653
20654
20655 for ac_header in krb.h
20656 do
20657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20659 echo "$as_me:$LINENO: checking for $ac_header" >&5
20660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20663 fi
20664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20666 else
20667 # Is the header compilable?
20668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20670 cat >conftest.$ac_ext <<_ACEOF
20671 /* confdefs.h. */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $ac_includes_default
20677 #include <$ac_header>
20678 _ACEOF
20679 rm -f conftest.$ac_objext
20680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681 (eval $ac_compile) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690 (eval $ac_try) 2>&5
20691 ac_status=$?
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); }; } &&
20694 { ac_try='test -s conftest.$ac_objext'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_header_compiler=yes
20701 else
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20704
20705 ac_header_compiler=no
20706 fi
20707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20709 echo "${ECHO_T}$ac_header_compiler" >&6
20710
20711 # Is the header present?
20712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h. */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 #include <$ac_header>
20721 _ACEOF
20722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20724 ac_status=$?
20725 grep -v '^ *+' conftest.er1 >conftest.err
20726 rm -f conftest.er1
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } >/dev/null; then
20730 if test -s conftest.err; then
20731 ac_cpp_err=$ac_c_preproc_warn_flag
20732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20733 else
20734 ac_cpp_err=
20735 fi
20736 else
20737 ac_cpp_err=yes
20738 fi
20739 if test -z "$ac_cpp_err"; then
20740 ac_header_preproc=yes
20741 else
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20744
20745 ac_header_preproc=no
20746 fi
20747 rm -f conftest.err conftest.$ac_ext
20748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20749 echo "${ECHO_T}$ac_header_preproc" >&6
20750
20751 # So? What about this header?
20752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20753 yes:no: )
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20758 ac_header_preproc=yes
20759 ;;
20760 no:yes:* )
20761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20773 (
20774 cat <<\_ASBOX
20775 ## ------------------------------------------ ##
20776 ## Report this to the AC_PACKAGE_NAME lists. ##
20777 ## ------------------------------------------ ##
20778 _ASBOX
20779 ) |
20780 sed "s/^/$as_me: WARNING: /" >&2
20781 ;;
20782 esac
20783 echo "$as_me:$LINENO: checking for $ac_header" >&5
20784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 else
20788 eval "$as_ac_Header=\$ac_header_preproc"
20789 fi
20790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20792
20793 fi
20794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20795 cat >>confdefs.h <<_ACEOF
20796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20797 _ACEOF
20798
20799 else
20800
20801 for ac_header in kerberosIV/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" || test ! -s conftest.err'
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; } &&
20840 { ac_try='test -s conftest.$ac_objext'
20841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842 (eval $ac_try) 2>&5
20843 ac_status=$?
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); }; }; then
20846 ac_header_compiler=yes
20847 else
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20850
20851 ac_header_compiler=no
20852 fi
20853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20855 echo "${ECHO_T}$ac_header_compiler" >&6
20856
20857 # Is the header present?
20858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20860 cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h. */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20866 #include <$ac_header>
20867 _ACEOF
20868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20870 ac_status=$?
20871 grep -v '^ *+' conftest.er1 >conftest.err
20872 rm -f conftest.er1
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } >/dev/null; then
20876 if test -s conftest.err; then
20877 ac_cpp_err=$ac_c_preproc_warn_flag
20878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20879 else
20880 ac_cpp_err=
20881 fi
20882 else
20883 ac_cpp_err=yes
20884 fi
20885 if test -z "$ac_cpp_err"; then
20886 ac_header_preproc=yes
20887 else
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891 ac_header_preproc=no
20892 fi
20893 rm -f conftest.err conftest.$ac_ext
20894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20895 echo "${ECHO_T}$ac_header_preproc" >&6
20896
20897 # So? What about this header?
20898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20899 yes:no: )
20900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20904 ac_header_preproc=yes
20905 ;;
20906 no:yes:* )
20907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20919 (
20920 cat <<\_ASBOX
20921 ## ------------------------------------------ ##
20922 ## Report this to the AC_PACKAGE_NAME lists. ##
20923 ## ------------------------------------------ ##
20924 _ASBOX
20925 ) |
20926 sed "s/^/$as_me: WARNING: /" >&2
20927 ;;
20928 esac
20929 echo "$as_me:$LINENO: checking for $ac_header" >&5
20930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20933 else
20934 eval "$as_ac_Header=\$ac_header_preproc"
20935 fi
20936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20938
20939 fi
20940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20941 cat >>confdefs.h <<_ACEOF
20942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20943 _ACEOF
20944
20945 else
20946
20947 for ac_header in kerberos/krb.h
20948 do
20949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20951 echo "$as_me:$LINENO: checking for $ac_header" >&5
20952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 fi
20956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20958 else
20959 # Is the header compilable?
20960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20962 cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h. */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 $ac_includes_default
20969 #include <$ac_header>
20970 _ACEOF
20971 rm -f conftest.$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973 (eval $ac_compile) 2>conftest.er1
20974 ac_status=$?
20975 grep -v '^ *+' conftest.er1 >conftest.err
20976 rm -f conftest.er1
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } &&
20980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982 (eval $ac_try) 2>&5
20983 ac_status=$?
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; } &&
20986 { ac_try='test -s conftest.$ac_objext'
20987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20989 ac_status=$?
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; }; then
20992 ac_header_compiler=yes
20993 else
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997 ac_header_compiler=no
20998 fi
20999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21001 echo "${ECHO_T}$ac_header_compiler" >&6
21002
21003 # Is the header present?
21004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21006 cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h. */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 #include <$ac_header>
21013 _ACEOF
21014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21016 ac_status=$?
21017 grep -v '^ *+' conftest.er1 >conftest.err
21018 rm -f conftest.er1
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } >/dev/null; then
21022 if test -s conftest.err; then
21023 ac_cpp_err=$ac_c_preproc_warn_flag
21024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21025 else
21026 ac_cpp_err=
21027 fi
21028 else
21029 ac_cpp_err=yes
21030 fi
21031 if test -z "$ac_cpp_err"; then
21032 ac_header_preproc=yes
21033 else
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037 ac_header_preproc=no
21038 fi
21039 rm -f conftest.err conftest.$ac_ext
21040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21041 echo "${ECHO_T}$ac_header_preproc" >&6
21042
21043 # So? What about this header?
21044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21045 yes:no: )
21046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21050 ac_header_preproc=yes
21051 ;;
21052 no:yes:* )
21053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21065 (
21066 cat <<\_ASBOX
21067 ## ------------------------------------------ ##
21068 ## Report this to the AC_PACKAGE_NAME lists. ##
21069 ## ------------------------------------------ ##
21070 _ASBOX
21071 ) |
21072 sed "s/^/$as_me: WARNING: /" >&2
21073 ;;
21074 esac
21075 echo "$as_me:$LINENO: checking for $ac_header" >&5
21076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21079 else
21080 eval "$as_ac_Header=\$ac_header_preproc"
21081 fi
21082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21084
21085 fi
21086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21087 cat >>confdefs.h <<_ACEOF
21088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21089 _ACEOF
21090
21091 fi
21092
21093 done
21094
21095 fi
21096
21097 done
21098
21099 fi
21100
21101 done
21102
21103 fi
21104
21105 for ac_header in com_err.h
21106 do
21107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21109 echo "$as_me:$LINENO: checking for $ac_header" >&5
21110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 fi
21114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21116 else
21117 # Is the header compilable?
21118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h. */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 $ac_includes_default
21127 #include <$ac_header>
21128 _ACEOF
21129 rm -f conftest.$ac_objext
21130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21131 (eval $ac_compile) 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 ac_header_compiler=yes
21151 else
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ac_header_compiler=no
21156 fi
21157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21159 echo "${ECHO_T}$ac_header_compiler" >&6
21160
21161 # Is the header present?
21162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21164 cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h. */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 #include <$ac_header>
21171 _ACEOF
21172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21174 ac_status=$?
21175 grep -v '^ *+' conftest.er1 >conftest.err
21176 rm -f conftest.er1
21177 cat conftest.err >&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } >/dev/null; then
21180 if test -s conftest.err; then
21181 ac_cpp_err=$ac_c_preproc_warn_flag
21182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21183 else
21184 ac_cpp_err=
21185 fi
21186 else
21187 ac_cpp_err=yes
21188 fi
21189 if test -z "$ac_cpp_err"; then
21190 ac_header_preproc=yes
21191 else
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21194
21195 ac_header_preproc=no
21196 fi
21197 rm -f conftest.err conftest.$ac_ext
21198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21199 echo "${ECHO_T}$ac_header_preproc" >&6
21200
21201 # So? What about this header?
21202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21203 yes:no: )
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21208 ac_header_preproc=yes
21209 ;;
21210 no:yes:* )
21211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21223 (
21224 cat <<\_ASBOX
21225 ## ------------------------------------------ ##
21226 ## Report this to the AC_PACKAGE_NAME lists. ##
21227 ## ------------------------------------------ ##
21228 _ASBOX
21229 ) |
21230 sed "s/^/$as_me: WARNING: /" >&2
21231 ;;
21232 esac
21233 echo "$as_me:$LINENO: checking for $ac_header" >&5
21234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238 eval "$as_ac_Header=\$ac_header_preproc"
21239 fi
21240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21242
21243 fi
21244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21245 cat >>confdefs.h <<_ACEOF
21246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21247 _ACEOF
21248
21249 fi
21250
21251 done
21252
21253 fi
21254
21255 # Solaris requires -lintl if you want strerror (which calls dgettext)
21256 # to return localized messages.
21257
21258 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21259 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21260 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 else
21263 ac_check_lib_save_LIBS=$LIBS
21264 LIBS="-lintl $LIBS"
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271
21272 /* Override any gcc2 internal prototype to avoid an error. */
21273 #ifdef __cplusplus
21274 extern "C"
21275 #endif
21276 /* We use char because int might match the return type of a gcc2
21277 builtin and then its argument prototype would still apply. */
21278 char dgettext ();
21279 int
21280 main ()
21281 {
21282 dgettext ();
21283 ;
21284 return 0;
21285 }
21286 _ACEOF
21287 rm -f conftest.$ac_objext conftest$ac_exeext
21288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21289 (eval $ac_link) 2>conftest.er1
21290 ac_status=$?
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; } &&
21302 { ac_try='test -s conftest$ac_exeext'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 ac_cv_lib_intl_dgettext=yes
21309 else
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313 ac_cv_lib_intl_dgettext=no
21314 fi
21315 rm -f conftest.err conftest.$ac_objext \
21316 conftest$ac_exeext conftest.$ac_ext
21317 LIBS=$ac_check_lib_save_LIBS
21318 fi
21319 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21320 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21321 if test $ac_cv_lib_intl_dgettext = yes; then
21322 cat >>confdefs.h <<_ACEOF
21323 #define HAVE_LIBINTL 1
21324 _ACEOF
21325
21326 LIBS="-lintl $LIBS"
21327
21328 fi
21329
21330
21331 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21332 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
21333 if test "${emacs_cv_localtime_cache+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336 if test x$ac_cv_func_tzset = xyes; then
21337 if test "$cross_compiling" = yes; then
21338 # If we have tzset, assume the worst when cross-compiling.
21339 emacs_cv_localtime_cache=yes
21340 else
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h. */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 #include <time.h>
21348 extern char **environ;
21349 unset_TZ ()
21350 {
21351 char **from, **to;
21352 for (to = from = environ; (*to = *from); from++)
21353 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21354 to++;
21355 }
21356 char TZ_GMT0[] = "TZ=GMT0";
21357 char TZ_PST8[] = "TZ=PST8";
21358 main()
21359 {
21360 time_t now = time ((time_t *) 0);
21361 int hour_GMT0, hour_unset;
21362 if (putenv (TZ_GMT0) != 0)
21363 exit (1);
21364 hour_GMT0 = localtime (&now)->tm_hour;
21365 unset_TZ ();
21366 hour_unset = localtime (&now)->tm_hour;
21367 if (putenv (TZ_PST8) != 0)
21368 exit (1);
21369 if (localtime (&now)->tm_hour == hour_GMT0)
21370 exit (1);
21371 unset_TZ ();
21372 if (localtime (&now)->tm_hour != hour_unset)
21373 exit (1);
21374 exit (0);
21375 }
21376 _ACEOF
21377 rm -f conftest$ac_exeext
21378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21379 (eval $ac_link) 2>&5
21380 ac_status=$?
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21388 emacs_cv_localtime_cache=no
21389 else
21390 echo "$as_me: program exited with status $ac_status" >&5
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21393
21394 ( exit $ac_status )
21395 emacs_cv_localtime_cache=yes
21396 fi
21397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21398 fi
21399 else
21400 # If we lack tzset, report that localtime does not cache TZ,
21401 # since we can't invalidate the cache if we don't have tzset.
21402 emacs_cv_localtime_cache=no
21403 fi
21404 fi
21405 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21406 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
21407 if test $emacs_cv_localtime_cache = yes; then
21408
21409 cat >>confdefs.h <<\_ACEOF
21410 #define LOCALTIME_CACHE 1
21411 _ACEOF
21412
21413 fi
21414
21415 if test "x$HAVE_TIMEVAL" = xyes; then
21416
21417 for ac_func in gettimeofday
21418 do
21419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21420 echo "$as_me:$LINENO: checking for $ac_func" >&5
21421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21422 if eval "test \"\${$as_ac_var+set}\" = set"; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425 cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h. */
21427 _ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21433 #define $ac_func innocuous_$ac_func
21434
21435 /* System header to define __stub macros and hopefully few prototypes,
21436 which can conflict with char $ac_func (); below.
21437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21438 <limits.h> exists even on freestanding compilers. */
21439
21440 #ifdef __STDC__
21441 # include <limits.h>
21442 #else
21443 # include <assert.h>
21444 #endif
21445
21446 #undef $ac_func
21447
21448 /* Override any gcc2 internal prototype to avoid an error. */
21449 #ifdef __cplusplus
21450 extern "C"
21451 {
21452 #endif
21453 /* We use char because int might match the return type of a gcc2
21454 builtin and then its argument prototype would still apply. */
21455 char $ac_func ();
21456 /* The GNU C library defines this for functions which it implements
21457 to always fail with ENOSYS. Some functions are actually named
21458 something starting with __ and the normal name is an alias. */
21459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21460 choke me
21461 #else
21462 char (*f) () = $ac_func;
21463 #endif
21464 #ifdef __cplusplus
21465 }
21466 #endif
21467
21468 int
21469 main ()
21470 {
21471 return f != $ac_func;
21472 ;
21473 return 0;
21474 }
21475 _ACEOF
21476 rm -f conftest.$ac_objext conftest$ac_exeext
21477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21478 (eval $ac_link) 2>conftest.er1
21479 ac_status=$?
21480 grep -v '^ *+' conftest.er1 >conftest.err
21481 rm -f conftest.er1
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } &&
21485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21488 ac_status=$?
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; } &&
21491 { ac_try='test -s conftest$ac_exeext'
21492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; }; then
21497 eval "$as_ac_var=yes"
21498 else
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21501
21502 eval "$as_ac_var=no"
21503 fi
21504 rm -f conftest.err conftest.$ac_objext \
21505 conftest$ac_exeext conftest.$ac_ext
21506 fi
21507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21509 if test `eval echo '${'$as_ac_var'}'` = yes; then
21510 cat >>confdefs.h <<_ACEOF
21511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21512 _ACEOF
21513
21514 fi
21515 done
21516
21517 if test $ac_cv_func_gettimeofday = yes; then
21518 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21519 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21520 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21522 else
21523 cat >conftest.$ac_ext <<_ACEOF
21524 /* confdefs.h. */
21525 _ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21529
21530 #ifdef TIME_WITH_SYS_TIME
21531 #include <sys/time.h>
21532 #include <time.h>
21533 #else
21534 #ifdef HAVE_SYS_TIME_H
21535 #include <sys/time.h>
21536 #else
21537 #include <time.h>
21538 #endif
21539 #endif
21540 int
21541 main ()
21542 {
21543 struct timeval time;
21544 gettimeofday (&time, 0);
21545 ;
21546 return 0;
21547 }
21548 _ACEOF
21549 rm -f conftest.$ac_objext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21551 (eval $ac_compile) 2>conftest.er1
21552 ac_status=$?
21553 grep -v '^ *+' conftest.er1 >conftest.err
21554 rm -f conftest.er1
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
21558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; } &&
21564 { ac_try='test -s conftest.$ac_objext'
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21567 ac_status=$?
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; }; then
21570 emacs_cv_gettimeofday_two_arguments=yes
21571 else
21572 echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21574
21575 emacs_cv_gettimeofday_two_arguments=no
21576 fi
21577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21578 fi
21579 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21580 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21581 if test $emacs_cv_gettimeofday_two_arguments = no; then
21582
21583 cat >>confdefs.h <<\_ACEOF
21584 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21585 _ACEOF
21586
21587 fi
21588 fi
21589 fi
21590
21591 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21592 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21593 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21594 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 else
21597 cat >conftest.$ac_ext <<_ACEOF
21598 /* confdefs.h. */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21603 #include <sys/types.h>
21604 #include <$ac_cv_struct_tm>
21605
21606
21607 int
21608 main ()
21609 {
21610 static struct tm ac_aggr;
21611 if (ac_aggr.tm_zone)
21612 return 0;
21613 ;
21614 return 0;
21615 }
21616 _ACEOF
21617 rm -f conftest.$ac_objext
21618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21619 (eval $ac_compile) 2>conftest.er1
21620 ac_status=$?
21621 grep -v '^ *+' conftest.er1 >conftest.err
21622 rm -f conftest.er1
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } &&
21626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21629 ac_status=$?
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; } &&
21632 { ac_try='test -s conftest.$ac_objext'
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 ac_cv_member_struct_tm_tm_zone=yes
21639 else
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21642
21643 cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h. */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 #include <sys/types.h>
21650 #include <$ac_cv_struct_tm>
21651
21652
21653 int
21654 main ()
21655 {
21656 static struct tm ac_aggr;
21657 if (sizeof ac_aggr.tm_zone)
21658 return 0;
21659 ;
21660 return 0;
21661 }
21662 _ACEOF
21663 rm -f conftest.$ac_objext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665 (eval $ac_compile) 2>conftest.er1
21666 ac_status=$?
21667 grep -v '^ *+' conftest.er1 >conftest.err
21668 rm -f conftest.er1
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
21672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_cv_member_struct_tm_tm_zone=yes
21685 else
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21688
21689 ac_cv_member_struct_tm_tm_zone=no
21690 fi
21691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21692 fi
21693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21694 fi
21695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21696 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21697 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21698
21699 cat >>confdefs.h <<_ACEOF
21700 #define HAVE_STRUCT_TM_TM_ZONE 1
21701 _ACEOF
21702
21703
21704 fi
21705
21706 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21707
21708 cat >>confdefs.h <<\_ACEOF
21709 #define HAVE_TM_ZONE 1
21710 _ACEOF
21711
21712 else
21713 echo "$as_me:$LINENO: checking for tzname" >&5
21714 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21715 if test "${ac_cv_var_tzname+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 else
21718 cat >conftest.$ac_ext <<_ACEOF
21719 /* confdefs.h. */
21720 _ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21724 #include <time.h>
21725 #ifndef tzname /* For SGI. */
21726 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21727 #endif
21728
21729 int
21730 main ()
21731 {
21732 atoi(*tzname);
21733 ;
21734 return 0;
21735 }
21736 _ACEOF
21737 rm -f conftest.$ac_objext conftest$ac_exeext
21738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21739 (eval $ac_link) 2>conftest.er1
21740 ac_status=$?
21741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
21746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; } &&
21752 { ac_try='test -s conftest$ac_exeext'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21755 ac_status=$?
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21758 ac_cv_var_tzname=yes
21759 else
21760 echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.$ac_ext >&5
21762
21763 ac_cv_var_tzname=no
21764 fi
21765 rm -f conftest.err conftest.$ac_objext \
21766 conftest$ac_exeext conftest.$ac_ext
21767 fi
21768 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21769 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21770 if test $ac_cv_var_tzname = yes; then
21771
21772 cat >>confdefs.h <<\_ACEOF
21773 #define HAVE_TZNAME 1
21774 _ACEOF
21775
21776 fi
21777 fi
21778
21779
21780 if test "$ac_cv_func_gettimeofday" = yes; then
21781 echo "$as_me:$LINENO: checking for struct timezone" >&5
21782 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21783 if test "${emacs_cv_struct_timezone+set}" = set; then
21784 echo $ECHO_N "(cached) $ECHO_C" >&6
21785 else
21786 cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h. */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 #include <sys/time.h>
21793 int
21794 main ()
21795 {
21796 struct timezone tz;
21797 ;
21798 return 0;
21799 }
21800 _ACEOF
21801 rm -f conftest.$ac_objext
21802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21803 (eval $ac_compile) 2>conftest.er1
21804 ac_status=$?
21805 grep -v '^ *+' conftest.er1 >conftest.err
21806 rm -f conftest.er1
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } &&
21810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21813 ac_status=$?
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; } &&
21816 { ac_try='test -s conftest.$ac_objext'
21817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818 (eval $ac_try) 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; }; then
21822 if test "$cross_compiling" = yes; then
21823 emacs_cv_struct_timezone=yes
21824 else
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h. */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831
21832 #ifdef TIME_WITH_SYS_TIME
21833 #include <sys/time.h>
21834 #include <time.h>
21835 #else
21836 #ifdef HAVE_SYS_TIME_H
21837 #include <sys/time.h>
21838 #else
21839 #include <time.h>
21840 #endif
21841 #endif
21842 main () {
21843 struct timeval time;
21844 struct timezone dummy;
21845 exit (gettimeofday (&time, &dummy));
21846 }
21847 _ACEOF
21848 rm -f conftest$ac_exeext
21849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850 (eval $ac_link) 2>&5
21851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21856 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; }; then
21859 emacs_cv_struct_timezone=yes
21860 else
21861 echo "$as_me: program exited with status $ac_status" >&5
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865 ( exit $ac_status )
21866 emacs_cv_struct_timezone=no
21867 fi
21868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21869 fi
21870 else
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21873
21874 emacs_cv_struct_timezone=no
21875 fi
21876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21877 fi
21878 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21879 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21880 fi
21881
21882 ok_so_far=yes
21883 echo "$as_me:$LINENO: checking for socket" >&5
21884 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21885 if test "${ac_cv_func_socket+set}" = set; then
21886 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 else
21888 cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h. */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21896 #define socket innocuous_socket
21897
21898 /* System header to define __stub macros and hopefully few prototypes,
21899 which can conflict with char socket (); below.
21900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21901 <limits.h> exists even on freestanding compilers. */
21902
21903 #ifdef __STDC__
21904 # include <limits.h>
21905 #else
21906 # include <assert.h>
21907 #endif
21908
21909 #undef socket
21910
21911 /* Override any gcc2 internal prototype to avoid an error. */
21912 #ifdef __cplusplus
21913 extern "C"
21914 {
21915 #endif
21916 /* We use char because int might match the return type of a gcc2
21917 builtin and then its argument prototype would still apply. */
21918 char socket ();
21919 /* The GNU C library defines this for functions which it implements
21920 to always fail with ENOSYS. Some functions are actually named
21921 something starting with __ and the normal name is an alias. */
21922 #if defined (__stub_socket) || defined (__stub___socket)
21923 choke me
21924 #else
21925 char (*f) () = socket;
21926 #endif
21927 #ifdef __cplusplus
21928 }
21929 #endif
21930
21931 int
21932 main ()
21933 {
21934 return f != socket;
21935 ;
21936 return 0;
21937 }
21938 _ACEOF
21939 rm -f conftest.$ac_objext conftest$ac_exeext
21940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21941 (eval $ac_link) 2>conftest.er1
21942 ac_status=$?
21943 grep -v '^ *+' conftest.er1 >conftest.err
21944 rm -f conftest.er1
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } &&
21948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950 (eval $ac_try) 2>&5
21951 ac_status=$?
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; } &&
21954 { ac_try='test -s conftest$ac_exeext'
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; }; then
21960 ac_cv_func_socket=yes
21961 else
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21964
21965 ac_cv_func_socket=no
21966 fi
21967 rm -f conftest.err conftest.$ac_objext \
21968 conftest$ac_exeext conftest.$ac_ext
21969 fi
21970 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21971 echo "${ECHO_T}$ac_cv_func_socket" >&6
21972 if test $ac_cv_func_socket = yes; then
21973 :
21974 else
21975 ok_so_far=no
21976 fi
21977
21978 if test $ok_so_far = yes; then
21979 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21980 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21981 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21982 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
21984 fi
21985 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21986 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21987 else
21988 # Is the header compilable?
21989 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21990 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21991 cat >conftest.$ac_ext <<_ACEOF
21992 /* confdefs.h. */
21993 _ACEOF
21994 cat confdefs.h >>conftest.$ac_ext
21995 cat >>conftest.$ac_ext <<_ACEOF
21996 /* end confdefs.h. */
21997 $ac_includes_default
21998 #include <netinet/in.h>
21999 _ACEOF
22000 rm -f conftest.$ac_objext
22001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22002 (eval $ac_compile) 2>conftest.er1
22003 ac_status=$?
22004 grep -v '^ *+' conftest.er1 >conftest.err
22005 rm -f conftest.er1
22006 cat conftest.err >&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } &&
22009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; } &&
22015 { ac_try='test -s conftest.$ac_objext'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ac_header_compiler=yes
22022 else
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026 ac_header_compiler=no
22027 fi
22028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22030 echo "${ECHO_T}$ac_header_compiler" >&6
22031
22032 # Is the header present?
22033 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22034 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
22035 cat >conftest.$ac_ext <<_ACEOF
22036 /* confdefs.h. */
22037 _ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 #include <netinet/in.h>
22042 _ACEOF
22043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22045 ac_status=$?
22046 grep -v '^ *+' conftest.er1 >conftest.err
22047 rm -f conftest.er1
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } >/dev/null; then
22051 if test -s conftest.err; then
22052 ac_cpp_err=$ac_c_preproc_warn_flag
22053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22054 else
22055 ac_cpp_err=
22056 fi
22057 else
22058 ac_cpp_err=yes
22059 fi
22060 if test -z "$ac_cpp_err"; then
22061 ac_header_preproc=yes
22062 else
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22065
22066 ac_header_preproc=no
22067 fi
22068 rm -f conftest.err conftest.$ac_ext
22069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22070 echo "${ECHO_T}$ac_header_preproc" >&6
22071
22072 # So? What about this header?
22073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22074 yes:no: )
22075 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22076 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22078 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22079 ac_header_preproc=yes
22080 ;;
22081 no:yes:* )
22082 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22083 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22085 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22087 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22089 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22091 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22093 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22094 (
22095 cat <<\_ASBOX
22096 ## ------------------------------------------ ##
22097 ## Report this to the AC_PACKAGE_NAME lists. ##
22098 ## ------------------------------------------ ##
22099 _ASBOX
22100 ) |
22101 sed "s/^/$as_me: WARNING: /" >&2
22102 ;;
22103 esac
22104 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22105 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22106 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22108 else
22109 ac_cv_header_netinet_in_h=$ac_header_preproc
22110 fi
22111 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22112 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22113
22114 fi
22115 if test $ac_cv_header_netinet_in_h = yes; then
22116 :
22117 else
22118 ok_so_far=no
22119 fi
22120
22121
22122 fi
22123 if test $ok_so_far = yes; then
22124 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22125 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22126 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22127 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22128 echo $ECHO_N "(cached) $ECHO_C" >&6
22129 fi
22130 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22131 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22132 else
22133 # Is the header compilable?
22134 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22135 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
22136 cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h. */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 $ac_includes_default
22143 #include <arpa/inet.h>
22144 _ACEOF
22145 rm -f conftest.$ac_objext
22146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22147 (eval $ac_compile) 2>conftest.er1
22148 ac_status=$?
22149 grep -v '^ *+' conftest.er1 >conftest.err
22150 rm -f conftest.er1
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } &&
22154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22156 (eval $ac_try) 2>&5
22157 ac_status=$?
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); }; } &&
22160 { ac_try='test -s conftest.$ac_objext'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; }; then
22166 ac_header_compiler=yes
22167 else
22168 echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171 ac_header_compiler=no
22172 fi
22173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22175 echo "${ECHO_T}$ac_header_compiler" >&6
22176
22177 # Is the header present?
22178 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22179 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
22180 cat >conftest.$ac_ext <<_ACEOF
22181 /* confdefs.h. */
22182 _ACEOF
22183 cat confdefs.h >>conftest.$ac_ext
22184 cat >>conftest.$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22186 #include <arpa/inet.h>
22187 _ACEOF
22188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22190 ac_status=$?
22191 grep -v '^ *+' conftest.er1 >conftest.err
22192 rm -f conftest.er1
22193 cat conftest.err >&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } >/dev/null; then
22196 if test -s conftest.err; then
22197 ac_cpp_err=$ac_c_preproc_warn_flag
22198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22199 else
22200 ac_cpp_err=
22201 fi
22202 else
22203 ac_cpp_err=yes
22204 fi
22205 if test -z "$ac_cpp_err"; then
22206 ac_header_preproc=yes
22207 else
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 ac_header_preproc=no
22212 fi
22213 rm -f conftest.err conftest.$ac_ext
22214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22215 echo "${ECHO_T}$ac_header_preproc" >&6
22216
22217 # So? What about this header?
22218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22219 yes:no: )
22220 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22221 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22222 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22223 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22224 ac_header_preproc=yes
22225 ;;
22226 no:yes:* )
22227 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22228 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22230 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22232 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22234 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22236 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22238 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22239 (
22240 cat <<\_ASBOX
22241 ## ------------------------------------------ ##
22242 ## Report this to the AC_PACKAGE_NAME lists. ##
22243 ## ------------------------------------------ ##
22244 _ASBOX
22245 ) |
22246 sed "s/^/$as_me: WARNING: /" >&2
22247 ;;
22248 esac
22249 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22250 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22251 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22252 echo $ECHO_N "(cached) $ECHO_C" >&6
22253 else
22254 ac_cv_header_arpa_inet_h=$ac_header_preproc
22255 fi
22256 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22257 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22258
22259 fi
22260 if test $ac_cv_header_arpa_inet_h = yes; then
22261 :
22262 else
22263 ok_so_far=no
22264 fi
22265
22266
22267 fi
22268 if test $ok_so_far = yes; then
22269
22270 cat >>confdefs.h <<\_ACEOF
22271 #define HAVE_INET_SOCKETS 1
22272 _ACEOF
22273
22274 fi
22275
22276
22277 for ac_header in sys/ioctl.h
22278 do
22279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22281 echo "$as_me:$LINENO: checking for $ac_header" >&5
22282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 fi
22286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22288 else
22289 # Is the header compilable?
22290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22292 cat >conftest.$ac_ext <<_ACEOF
22293 /* confdefs.h. */
22294 _ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h. */
22298 $ac_includes_default
22299 #include <$ac_header>
22300 _ACEOF
22301 rm -f conftest.$ac_objext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22303 (eval $ac_compile) 2>conftest.er1
22304 ac_status=$?
22305 grep -v '^ *+' conftest.er1 >conftest.err
22306 rm -f conftest.er1
22307 cat conftest.err >&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } &&
22310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; } &&
22316 { ac_try='test -s conftest.$ac_objext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_header_compiler=yes
22323 else
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327 ac_header_compiler=no
22328 fi
22329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22331 echo "${ECHO_T}$ac_header_compiler" >&6
22332
22333 # Is the header present?
22334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22336 cat >conftest.$ac_ext <<_ACEOF
22337 /* confdefs.h. */
22338 _ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h. */
22342 #include <$ac_header>
22343 _ACEOF
22344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22346 ac_status=$?
22347 grep -v '^ *+' conftest.er1 >conftest.err
22348 rm -f conftest.er1
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } >/dev/null; then
22352 if test -s conftest.err; then
22353 ac_cpp_err=$ac_c_preproc_warn_flag
22354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22355 else
22356 ac_cpp_err=
22357 fi
22358 else
22359 ac_cpp_err=yes
22360 fi
22361 if test -z "$ac_cpp_err"; then
22362 ac_header_preproc=yes
22363 else
22364 echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22366
22367 ac_header_preproc=no
22368 fi
22369 rm -f conftest.err conftest.$ac_ext
22370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22371 echo "${ECHO_T}$ac_header_preproc" >&6
22372
22373 # So? What about this header?
22374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22375 yes:no: )
22376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22380 ac_header_preproc=yes
22381 ;;
22382 no:yes:* )
22383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22395 (
22396 cat <<\_ASBOX
22397 ## ------------------------------------------ ##
22398 ## Report this to the AC_PACKAGE_NAME lists. ##
22399 ## ------------------------------------------ ##
22400 _ASBOX
22401 ) |
22402 sed "s/^/$as_me: WARNING: /" >&2
22403 ;;
22404 esac
22405 echo "$as_me:$LINENO: checking for $ac_header" >&5
22406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 else
22410 eval "$as_ac_Header=\$ac_header_preproc"
22411 fi
22412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22414
22415 fi
22416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22417 cat >>confdefs.h <<_ACEOF
22418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22419 _ACEOF
22420
22421 fi
22422
22423 done
22424
22425
22426 if test -f /usr/lpp/X11/bin/smt.exp; then
22427
22428 cat >>confdefs.h <<\_ACEOF
22429 #define HAVE_AIX_SMT_EXP 1
22430 _ACEOF
22431
22432 fi
22433
22434 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22435 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
22436 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22437 echo "$as_me:$LINENO: result: yes" >&5
22438 echo "${ECHO_T}yes" >&6
22439
22440 cat >>confdefs.h <<\_ACEOF
22441 #define HAVE_DEV_PTMX 1
22442 _ACEOF
22443
22444 else
22445 echo "$as_me:$LINENO: result: no" >&5
22446 echo "${ECHO_T}no" >&6
22447 fi
22448
22449 echo "$as_me:$LINENO: checking for pid_t" >&5
22450 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22451 if test "${ac_cv_type_pid_t+set}" = set; then
22452 echo $ECHO_N "(cached) $ECHO_C" >&6
22453 else
22454 cat >conftest.$ac_ext <<_ACEOF
22455 /* confdefs.h. */
22456 _ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 $ac_includes_default
22461 int
22462 main ()
22463 {
22464 if ((pid_t *) 0)
22465 return 0;
22466 if (sizeof (pid_t))
22467 return 0;
22468 ;
22469 return 0;
22470 }
22471 _ACEOF
22472 rm -f conftest.$ac_objext
22473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22474 (eval $ac_compile) 2>conftest.er1
22475 ac_status=$?
22476 grep -v '^ *+' conftest.er1 >conftest.err
22477 rm -f conftest.er1
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } &&
22481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483 (eval $ac_try) 2>&5
22484 ac_status=$?
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); }; } &&
22487 { ac_try='test -s conftest.$ac_objext'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22490 ac_status=$?
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; }; then
22493 ac_cv_type_pid_t=yes
22494 else
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498 ac_cv_type_pid_t=no
22499 fi
22500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22501 fi
22502 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22503 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22504 if test $ac_cv_type_pid_t = yes; then
22505 :
22506 else
22507
22508 cat >>confdefs.h <<_ACEOF
22509 #define pid_t int
22510 _ACEOF
22511
22512 fi
22513
22514
22515
22516 for ac_header in unistd.h vfork.h
22517 do
22518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22520 echo "$as_me:$LINENO: checking for $ac_header" >&5
22521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 fi
22525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22527 else
22528 # Is the header compilable?
22529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22531 cat >conftest.$ac_ext <<_ACEOF
22532 /* confdefs.h. */
22533 _ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22537 $ac_includes_default
22538 #include <$ac_header>
22539 _ACEOF
22540 rm -f conftest.$ac_objext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22542 (eval $ac_compile) 2>conftest.er1
22543 ac_status=$?
22544 grep -v '^ *+' conftest.er1 >conftest.err
22545 rm -f conftest.er1
22546 cat conftest.err >&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } &&
22549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551 (eval $ac_try) 2>&5
22552 ac_status=$?
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); }; } &&
22555 { ac_try='test -s conftest.$ac_objext'
22556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22557 (eval $ac_try) 2>&5
22558 ac_status=$?
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); }; }; then
22561 ac_header_compiler=yes
22562 else
22563 echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22565
22566 ac_header_compiler=no
22567 fi
22568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22570 echo "${ECHO_T}$ac_header_compiler" >&6
22571
22572 # Is the header present?
22573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22575 cat >conftest.$ac_ext <<_ACEOF
22576 /* confdefs.h. */
22577 _ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 #include <$ac_header>
22582 _ACEOF
22583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22585 ac_status=$?
22586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } >/dev/null; then
22591 if test -s conftest.err; then
22592 ac_cpp_err=$ac_c_preproc_warn_flag
22593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22594 else
22595 ac_cpp_err=
22596 fi
22597 else
22598 ac_cpp_err=yes
22599 fi
22600 if test -z "$ac_cpp_err"; then
22601 ac_header_preproc=yes
22602 else
22603 echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22605
22606 ac_header_preproc=no
22607 fi
22608 rm -f conftest.err conftest.$ac_ext
22609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22610 echo "${ECHO_T}$ac_header_preproc" >&6
22611
22612 # So? What about this header?
22613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22614 yes:no: )
22615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22619 ac_header_preproc=yes
22620 ;;
22621 no:yes:* )
22622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22634 (
22635 cat <<\_ASBOX
22636 ## ------------------------------------------ ##
22637 ## Report this to the AC_PACKAGE_NAME lists. ##
22638 ## ------------------------------------------ ##
22639 _ASBOX
22640 ) |
22641 sed "s/^/$as_me: WARNING: /" >&2
22642 ;;
22643 esac
22644 echo "$as_me:$LINENO: checking for $ac_header" >&5
22645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 else
22649 eval "$as_ac_Header=\$ac_header_preproc"
22650 fi
22651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22653
22654 fi
22655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22656 cat >>confdefs.h <<_ACEOF
22657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22658 _ACEOF
22659
22660 fi
22661
22662 done
22663
22664
22665
22666 for ac_func in fork vfork
22667 do
22668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22669 echo "$as_me:$LINENO: checking for $ac_func" >&5
22670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22671 if eval "test \"\${$as_ac_var+set}\" = set"; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22673 else
22674 cat >conftest.$ac_ext <<_ACEOF
22675 /* confdefs.h. */
22676 _ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22682 #define $ac_func innocuous_$ac_func
22683
22684 /* System header to define __stub macros and hopefully few prototypes,
22685 which can conflict with char $ac_func (); below.
22686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22687 <limits.h> exists even on freestanding compilers. */
22688
22689 #ifdef __STDC__
22690 # include <limits.h>
22691 #else
22692 # include <assert.h>
22693 #endif
22694
22695 #undef $ac_func
22696
22697 /* Override any gcc2 internal prototype to avoid an error. */
22698 #ifdef __cplusplus
22699 extern "C"
22700 {
22701 #endif
22702 /* We use char because int might match the return type of a gcc2
22703 builtin and then its argument prototype would still apply. */
22704 char $ac_func ();
22705 /* The GNU C library defines this for functions which it implements
22706 to always fail with ENOSYS. Some functions are actually named
22707 something starting with __ and the normal name is an alias. */
22708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22709 choke me
22710 #else
22711 char (*f) () = $ac_func;
22712 #endif
22713 #ifdef __cplusplus
22714 }
22715 #endif
22716
22717 int
22718 main ()
22719 {
22720 return f != $ac_func;
22721 ;
22722 return 0;
22723 }
22724 _ACEOF
22725 rm -f conftest.$ac_objext conftest$ac_exeext
22726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727 (eval $ac_link) 2>conftest.er1
22728 ac_status=$?
22729 grep -v '^ *+' conftest.er1 >conftest.err
22730 rm -f conftest.er1
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } &&
22734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22736 (eval $ac_try) 2>&5
22737 ac_status=$?
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); }; } &&
22740 { ac_try='test -s conftest$ac_exeext'
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22743 ac_status=$?
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; }; then
22746 eval "$as_ac_var=yes"
22747 else
22748 echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22750
22751 eval "$as_ac_var=no"
22752 fi
22753 rm -f conftest.err conftest.$ac_objext \
22754 conftest$ac_exeext conftest.$ac_ext
22755 fi
22756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22758 if test `eval echo '${'$as_ac_var'}'` = yes; then
22759 cat >>confdefs.h <<_ACEOF
22760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22761 _ACEOF
22762
22763 fi
22764 done
22765
22766 if test "x$ac_cv_func_fork" = xyes; then
22767 echo "$as_me:$LINENO: checking for working fork" >&5
22768 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22769 if test "${ac_cv_func_fork_works+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 else
22772 if test "$cross_compiling" = yes; then
22773 ac_cv_func_fork_works=cross
22774 else
22775 cat >conftest.$ac_ext <<_ACEOF
22776 /* By Ruediger Kuhlmann. */
22777 #include <sys/types.h>
22778 #if HAVE_UNISTD_H
22779 # include <unistd.h>
22780 #endif
22781 /* Some systems only have a dummy stub for fork() */
22782 int main ()
22783 {
22784 if (fork() < 0)
22785 exit (1);
22786 exit (0);
22787 }
22788 _ACEOF
22789 rm -f conftest$ac_exeext
22790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22791 (eval $ac_link) 2>&5
22792 ac_status=$?
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22797 ac_status=$?
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; }; then
22800 ac_cv_func_fork_works=yes
22801 else
22802 echo "$as_me: program exited with status $ac_status" >&5
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806 ( exit $ac_status )
22807 ac_cv_func_fork_works=no
22808 fi
22809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22810 fi
22811 fi
22812 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22813 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22814
22815 else
22816 ac_cv_func_fork_works=$ac_cv_func_fork
22817 fi
22818 if test "x$ac_cv_func_fork_works" = xcross; then
22819 case $host in
22820 *-*-amigaos* | *-*-msdosdjgpp*)
22821 # Override, as these systems have only a dummy fork() stub
22822 ac_cv_func_fork_works=no
22823 ;;
22824 *)
22825 ac_cv_func_fork_works=yes
22826 ;;
22827 esac
22828 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22829 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22830 fi
22831 ac_cv_func_vfork_works=$ac_cv_func_vfork
22832 if test "x$ac_cv_func_vfork" = xyes; then
22833 echo "$as_me:$LINENO: checking for working vfork" >&5
22834 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22835 if test "${ac_cv_func_vfork_works+set}" = set; then
22836 echo $ECHO_N "(cached) $ECHO_C" >&6
22837 else
22838 if test "$cross_compiling" = yes; then
22839 ac_cv_func_vfork_works=cross
22840 else
22841 cat >conftest.$ac_ext <<_ACEOF
22842 /* confdefs.h. */
22843 _ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22847 /* Thanks to Paul Eggert for this test. */
22848 #include <stdio.h>
22849 #include <stdlib.h>
22850 #include <sys/types.h>
22851 #include <sys/stat.h>
22852 #include <sys/wait.h>
22853 #if HAVE_UNISTD_H
22854 # include <unistd.h>
22855 #endif
22856 #if HAVE_VFORK_H
22857 # include <vfork.h>
22858 #endif
22859 /* On some sparc systems, changes by the child to local and incoming
22860 argument registers are propagated back to the parent. The compiler
22861 is told about this with #include <vfork.h>, but some compilers
22862 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22863 static variable whose address is put into a register that is
22864 clobbered by the vfork. */
22865 static void
22866 #ifdef __cplusplus
22867 sparc_address_test (int arg)
22868 # else
22869 sparc_address_test (arg) int arg;
22870 #endif
22871 {
22872 static pid_t child;
22873 if (!child) {
22874 child = vfork ();
22875 if (child < 0) {
22876 perror ("vfork");
22877 _exit(2);
22878 }
22879 if (!child) {
22880 arg = getpid();
22881 write(-1, "", 0);
22882 _exit (arg);
22883 }
22884 }
22885 }
22886
22887 int
22888 main ()
22889 {
22890 pid_t parent = getpid ();
22891 pid_t child;
22892
22893 sparc_address_test (0);
22894
22895 child = vfork ();
22896
22897 if (child == 0) {
22898 /* Here is another test for sparc vfork register problems. This
22899 test uses lots of local variables, at least as many local
22900 variables as main has allocated so far including compiler
22901 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22902 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22903 reuse the register of parent for one of the local variables,
22904 since it will think that parent can't possibly be used any more
22905 in this routine. Assigning to the local variable will thus
22906 munge parent in the parent process. */
22907 pid_t
22908 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22909 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22910 /* Convince the compiler that p..p7 are live; otherwise, it might
22911 use the same hardware register for all 8 local variables. */
22912 if (p != p1 || p != p2 || p != p3 || p != p4
22913 || p != p5 || p != p6 || p != p7)
22914 _exit(1);
22915
22916 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22917 from child file descriptors. If the child closes a descriptor
22918 before it execs or exits, this munges the parent's descriptor
22919 as well. Test for this by closing stdout in the child. */
22920 _exit(close(fileno(stdout)) != 0);
22921 } else {
22922 int status;
22923 struct stat st;
22924
22925 while (wait(&status) != child)
22926 ;
22927 exit(
22928 /* Was there some problem with vforking? */
22929 child < 0
22930
22931 /* Did the child fail? (This shouldn't happen.) */
22932 || status
22933
22934 /* Did the vfork/compiler bug occur? */
22935 || parent != getpid()
22936
22937 /* Did the file descriptor bug occur? */
22938 || fstat(fileno(stdout), &st) != 0
22939 );
22940 }
22941 }
22942 _ACEOF
22943 rm -f conftest$ac_exeext
22944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22945 (eval $ac_link) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22951 ac_status=$?
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; }; then
22954 ac_cv_func_vfork_works=yes
22955 else
22956 echo "$as_me: program exited with status $ac_status" >&5
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22959
22960 ( exit $ac_status )
22961 ac_cv_func_vfork_works=no
22962 fi
22963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22964 fi
22965 fi
22966 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22967 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22968
22969 fi;
22970 if test "x$ac_cv_func_fork_works" = xcross; then
22971 ac_cv_func_vfork_works=$ac_cv_func_vfork
22972 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22973 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22974 fi
22975
22976 if test "x$ac_cv_func_vfork_works" = xyes; then
22977
22978 cat >>confdefs.h <<\_ACEOF
22979 #define HAVE_WORKING_VFORK 1
22980 _ACEOF
22981
22982 else
22983
22984 cat >>confdefs.h <<\_ACEOF
22985 #define vfork fork
22986 _ACEOF
22987
22988 fi
22989 if test "x$ac_cv_func_fork_works" = xyes; then
22990
22991 cat >>confdefs.h <<\_ACEOF
22992 #define HAVE_WORKING_FORK 1
22993 _ACEOF
22994
22995 fi
22996
22997
22998 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22999 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
23000 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23001 echo $ECHO_N "(cached) $ECHO_C" >&6
23002 else
23003 cat >conftest.$ac_ext <<_ACEOF
23004 /* confdefs.h. */
23005 _ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h. */
23009 #include <langinfo.h>
23010 int
23011 main ()
23012 {
23013 char* cs = nl_langinfo(CODESET);
23014 ;
23015 return 0;
23016 }
23017 _ACEOF
23018 rm -f conftest.$ac_objext conftest$ac_exeext
23019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020 (eval $ac_link) 2>conftest.er1
23021 ac_status=$?
23022 grep -v '^ *+' conftest.er1 >conftest.err
23023 rm -f conftest.er1
23024 cat conftest.err >&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } &&
23027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029 (eval $ac_try) 2>&5
23030 ac_status=$?
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; } &&
23033 { ac_try='test -s conftest$ac_exeext'
23034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035 (eval $ac_try) 2>&5
23036 ac_status=$?
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; }; then
23039 emacs_cv_langinfo_codeset=yes
23040 else
23041 echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23043
23044 emacs_cv_langinfo_codeset=no
23045 fi
23046 rm -f conftest.err conftest.$ac_objext \
23047 conftest$ac_exeext conftest.$ac_ext
23048
23049 fi
23050 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23051 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
23052 if test $emacs_cv_langinfo_codeset = yes; then
23053
23054 cat >>confdefs.h <<\_ACEOF
23055 #define HAVE_LANGINFO_CODESET 1
23056 _ACEOF
23057
23058 fi
23059
23060 echo "$as_me:$LINENO: checking for size_t" >&5
23061 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23062 if test "${ac_cv_type_size_t+set}" = set; then
23063 echo $ECHO_N "(cached) $ECHO_C" >&6
23064 else
23065 cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h. */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 $ac_includes_default
23072 int
23073 main ()
23074 {
23075 if ((size_t *) 0)
23076 return 0;
23077 if (sizeof (size_t))
23078 return 0;
23079 ;
23080 return 0;
23081 }
23082 _ACEOF
23083 rm -f conftest.$ac_objext
23084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23085 (eval $ac_compile) 2>conftest.er1
23086 ac_status=$?
23087 grep -v '^ *+' conftest.er1 >conftest.err
23088 rm -f conftest.er1
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } &&
23092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23095 ac_status=$?
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; } &&
23098 { ac_try='test -s conftest.$ac_objext'
23099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; }; then
23104 ac_cv_type_size_t=yes
23105 else
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23108
23109 ac_cv_type_size_t=no
23110 fi
23111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23112 fi
23113 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23114 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23115 if test $ac_cv_type_size_t = yes; then
23116
23117 cat >>confdefs.h <<_ACEOF
23118 #define HAVE_SIZE_T 1
23119 _ACEOF
23120
23121
23122 fi
23123
23124
23125 echo "$as_me:$LINENO: checking for mbstate_t" >&5
23126 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
23127 if test "${ac_cv_type_mbstate_t+set}" = set; then
23128 echo $ECHO_N "(cached) $ECHO_C" >&6
23129 else
23130 cat >conftest.$ac_ext <<_ACEOF
23131 /* confdefs.h. */
23132 _ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h. */
23136 $ac_includes_default
23137 # include <wchar.h>
23138 int
23139 main ()
23140 {
23141 mbstate_t x; return sizeof x;
23142 ;
23143 return 0;
23144 }
23145 _ACEOF
23146 rm -f conftest.$ac_objext
23147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23148 (eval $ac_compile) 2>conftest.er1
23149 ac_status=$?
23150 grep -v '^ *+' conftest.er1 >conftest.err
23151 rm -f conftest.er1
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } &&
23155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; } &&
23161 { ac_try='test -s conftest.$ac_objext'
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23164 ac_status=$?
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
23167 ac_cv_type_mbstate_t=yes
23168 else
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23171
23172 ac_cv_type_mbstate_t=no
23173 fi
23174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23175 fi
23176 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23177 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
23178 if test $ac_cv_type_mbstate_t = yes; then
23179
23180 cat >>confdefs.h <<\_ACEOF
23181 #define HAVE_MBSTATE_T 1
23182 _ACEOF
23183
23184 else
23185
23186 cat >>confdefs.h <<\_ACEOF
23187 #define mbstate_t int
23188 _ACEOF
23189
23190 fi
23191
23192 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23193 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
23194 if test "${emacs_cv_c_restrict+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 else
23197 cat >conftest.$ac_ext <<_ACEOF
23198 /* confdefs.h. */
23199 _ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h. */
23203 void fred (int *restrict x);
23204 int
23205 main ()
23206 {
23207
23208 ;
23209 return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest.$ac_objext
23213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23214 (eval $ac_compile) 2>conftest.er1
23215 ac_status=$?
23216 grep -v '^ *+' conftest.er1 >conftest.err
23217 rm -f conftest.er1
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } &&
23221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223 (eval $ac_try) 2>&5
23224 ac_status=$?
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); }; } &&
23227 { ac_try='test -s conftest.$ac_objext'
23228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229 (eval $ac_try) 2>&5
23230 ac_status=$?
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); }; }; then
23233 emacs_cv_c_restrict=yes
23234 else
23235 echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23237
23238 cat >conftest.$ac_ext <<_ACEOF
23239 /* confdefs.h. */
23240 _ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 void fred (int *__restrict x);
23245 int
23246 main ()
23247 {
23248
23249 ;
23250 return 0;
23251 }
23252 _ACEOF
23253 rm -f conftest.$ac_objext
23254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23255 (eval $ac_compile) 2>conftest.er1
23256 ac_status=$?
23257 grep -v '^ *+' conftest.er1 >conftest.err
23258 rm -f conftest.er1
23259 cat conftest.err >&5
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } &&
23262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; } &&
23268 { ac_try='test -s conftest.$ac_objext'
23269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23271 ac_status=$?
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 emacs_cv_c_restrict=__restrict
23275 else
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23278
23279 emacs_cv_c_restrict=no
23280 fi
23281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23282 fi
23283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23284 fi
23285 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23286 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
23287 case "$emacs_cv_c_restrict" in
23288 yes) emacs_restrict=restrict;;
23289 no) emacs_restrict="";;
23290 *) emacs_restrict="$emacs_cv_c_restrict";;
23291 esac
23292 if test "$emacs_restrict" != __restrict; then
23293
23294 cat >>confdefs.h <<_ACEOF
23295 #define __restrict $emacs_restrict
23296 _ACEOF
23297
23298 fi
23299
23300 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23301 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
23302 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 else
23305 cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h. */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h. */
23311 void fred (int x[__restrict]);
23312 int
23313 main ()
23314 {
23315
23316 ;
23317 return 0;
23318 }
23319 _ACEOF
23320 rm -f conftest.$ac_objext
23321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23322 (eval $ac_compile) 2>conftest.er1
23323 ac_status=$?
23324 grep -v '^ *+' conftest.er1 >conftest.err
23325 rm -f conftest.er1
23326 cat conftest.err >&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } &&
23329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331 (eval $ac_try) 2>&5
23332 ac_status=$?
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); }; } &&
23335 { ac_try='test -s conftest.$ac_objext'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23338 ac_status=$?
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; }; then
23341 emacs_cv_c_restrict_arr=yes
23342 else
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23345
23346 emacs_cv_c_restrict_arr=no
23347 fi
23348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23349 fi
23350 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23351 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
23352 if test "$emacs_cv_c_restrict_arr" = yes; then
23353
23354 cat >>confdefs.h <<\_ACEOF
23355 #define __restrict_arr __restrict
23356 _ACEOF
23357
23358 fi
23359
23360
23361
23362 # Set up the CFLAGS for real compilation, so we can substitute it.
23363 CFLAGS="$REAL_CFLAGS"
23364 CPPFLAGS="$REAL_CPPFLAGS"
23365
23366 #### Find out which version of Emacs this is.
23367 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23368 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23369 if test x"${version}" = x; then
23370 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23371 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23372 { (exit 1); exit 1; }; }
23373 fi
23374
23375 ### Specify what sort of things we'll be editing into Makefile and config.h.
23376 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412 cat >>confdefs.h <<_ACEOF
23413 #define EMACS_CONFIGURATION "${canonical}"
23414 _ACEOF
23415
23416
23417 cat >>confdefs.h <<_ACEOF
23418 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23419 _ACEOF
23420
23421
23422 cat >>confdefs.h <<_ACEOF
23423 #define config_machfile "${machfile}"
23424 _ACEOF
23425
23426
23427 cat >>confdefs.h <<_ACEOF
23428 #define config_opsysfile "${opsysfile}"
23429 _ACEOF
23430
23431
23432 cat >>confdefs.h <<_ACEOF
23433 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23434 _ACEOF
23435
23436
23437 cat >>confdefs.h <<_ACEOF
23438 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23439 _ACEOF
23440
23441
23442 cat >>confdefs.h <<_ACEOF
23443 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23444 _ACEOF
23445
23446
23447 cat >>confdefs.h <<_ACEOF
23448 #define UNEXEC_SRC ${UNEXEC_SRC}
23449 _ACEOF
23450
23451
23452 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23453
23454 cat >>confdefs.h <<\_ACEOF
23455 #define HAVE_X_WINDOWS 1
23456 _ACEOF
23457
23458 fi
23459 if test "${USE_X_TOOLKIT}" != "none" ; then
23460
23461 cat >>confdefs.h <<\_ACEOF
23462 #define USE_X_TOOLKIT 1
23463 _ACEOF
23464
23465 fi
23466 if test "${HAVE_X11}" = "yes" ; then
23467
23468 cat >>confdefs.h <<\_ACEOF
23469 #define HAVE_X11 1
23470 _ACEOF
23471
23472 fi
23473 if test "${HAVE_XFREE386}" = "yes" ; then
23474
23475 cat >>confdefs.h <<\_ACEOF
23476 #define HAVE_XFREE386 1
23477 _ACEOF
23478
23479 fi
23480 if test "${HAVE_MENUS}" = "yes" ; then
23481
23482 cat >>confdefs.h <<\_ACEOF
23483 #define HAVE_MENUS 1
23484 _ACEOF
23485
23486 fi
23487 if test "${GNU_MALLOC}" = "yes" ; then
23488
23489 cat >>confdefs.h <<\_ACEOF
23490 #define GNU_MALLOC 1
23491 _ACEOF
23492
23493 fi
23494 if test "${REL_ALLOC}" = "yes" ; then
23495
23496 cat >>confdefs.h <<\_ACEOF
23497 #define REL_ALLOC 1
23498 _ACEOF
23499
23500 fi
23501
23502
23503
23504
23505
23506 #### Report on what we decided to do.
23507 #### Report GTK as a toolkit, even if it doesn't use Xt.
23508 #### It makes printing result more understandable as using GTK sets
23509 #### toolkit_scroll_bars to yes by default.
23510 if test "${HAVE_GTK}" = "yes"; then
23511 USE_X_TOOLKIT=GTK
23512 fi
23513
23514 echo "
23515 Configured for \`${canonical}'.
23516
23517 Where should the build process find the source code? ${srcdir}
23518 What operating system and machine description files should Emacs use?
23519 \`${opsysfile}' and \`${machfile}'
23520 What compiler should emacs be built with? ${CC} ${CFLAGS}
23521 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23522 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23523 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23524 What window system should Emacs use? ${window_system}
23525 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23526
23527 if test -n "${x_includes}"; then
23528 echo " Where do we find X Windows header files? ${x_includes}"
23529 else
23530 echo " Where do we find X Windows header files? Standard dirs"
23531 fi
23532 if test -n "${x_libraries}"; then
23533 echo " Where do we find X Windows libraries? ${x_libraries}"
23534 else
23535 echo " Where do we find X Windows libraries? Standard dirs"
23536 fi
23537
23538 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23539 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23540 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23541 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23542 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23543 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23544 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23545 echo
23546
23547 if test $USE_XASSERTS = yes; then
23548 echo " Compiling with asserts turned on."
23549 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23550 echo
23551 fi
23552
23553
23554
23555 # Remove any trailing slashes in these variables.
23556 test "${prefix}" != NONE &&
23557 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23558 test "${exec_prefix}" != NONE &&
23559 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23560
23561 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23562 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23563 ## from Makefile.c can correctly provide the arg `-traditional' to the
23564 ## C preprocessor.
23565
23566 cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h. */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 yes..yes
23573 _ACEOF
23574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23575 $EGREP "yes..yes" >/dev/null 2>&1; then
23576 CPP_NEED_TRADITIONAL=no
23577 else
23578 CPP_NEED_TRADITIONAL=yes
23579 fi
23580 rm -f conftest*
23581
23582
23583 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"
23584 ac_config_commands="$ac_config_commands default"
23585 cat >confcache <<\_ACEOF
23586 # This file is a shell script that caches the results of configure
23587 # tests run on this system so they can be shared between configure
23588 # scripts and configure runs, see configure's option --config-cache.
23589 # It is not useful on other systems. If it contains results you don't
23590 # want to keep, you may remove or edit it.
23591 #
23592 # config.status only pays attention to the cache file if you give it
23593 # the --recheck option to rerun configure.
23594 #
23595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23597 # following values.
23598
23599 _ACEOF
23600
23601 # The following way of writing the cache mishandles newlines in values,
23602 # but we know of no workaround that is simple, portable, and efficient.
23603 # So, don't put newlines in cache variables' values.
23604 # Ultrix sh set writes to stderr and can't be redirected directly,
23605 # and sets the high bit in the cache file unless we assign to the vars.
23606 {
23607 (set) 2>&1 |
23608 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23609 *ac_space=\ *)
23610 # `set' does not quote correctly, so add quotes (double-quote
23611 # substitution turns \\\\ into \\, and sed turns \\ into \).
23612 sed -n \
23613 "s/'/'\\\\''/g;
23614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23615 ;;
23616 *)
23617 # `set' quotes correctly as required by POSIX, so do not add quotes.
23618 sed -n \
23619 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23620 ;;
23621 esac;
23622 } |
23623 sed '
23624 t clear
23625 : clear
23626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23627 t end
23628 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23629 : end' >>confcache
23630 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23631 if test -w $cache_file; then
23632 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23633 cat confcache >$cache_file
23634 else
23635 echo "not updating unwritable cache $cache_file"
23636 fi
23637 fi
23638 rm -f confcache
23639
23640 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23641 # Let make expand exec_prefix.
23642 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23643
23644 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23645 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23646 # trailing colons and then remove the whole line if VPATH becomes empty
23647 # (actually we leave an empty line to preserve line numbers).
23648 if test "x$srcdir" = x.; then
23649 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23650 s/:*\$(srcdir):*/:/;
23651 s/:*\${srcdir}:*/:/;
23652 s/:*@srcdir@:*/:/;
23653 s/^\([^=]*=[ ]*\):*/\1/;
23654 s/:*$//;
23655 s/^[^=]*=[ ]*$//;
23656 }'
23657 fi
23658
23659 DEFS=-DHAVE_CONFIG_H
23660
23661 ac_libobjs=
23662 ac_ltlibobjs=
23663 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23664 # 1. Remove the extension, and $U if already installed.
23665 ac_i=`echo "$ac_i" |
23666 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23667 # 2. Add them.
23668 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23669 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23670 done
23671 LIBOBJS=$ac_libobjs
23672
23673 LTLIBOBJS=$ac_ltlibobjs
23674
23675
23676
23677 : ${CONFIG_STATUS=./config.status}
23678 ac_clean_files_save=$ac_clean_files
23679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23680 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23681 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23682 cat >$CONFIG_STATUS <<_ACEOF
23683 #! $SHELL
23684 # Generated by $as_me.
23685 # Run this file to recreate the current configuration.
23686 # Compiler output produced by configure, useful for debugging
23687 # configure, is in config.log if it exists.
23688
23689 debug=false
23690 ac_cs_recheck=false
23691 ac_cs_silent=false
23692 SHELL=\${CONFIG_SHELL-$SHELL}
23693 _ACEOF
23694
23695 cat >>$CONFIG_STATUS <<\_ACEOF
23696 ## --------------------- ##
23697 ## M4sh Initialization. ##
23698 ## --------------------- ##
23699
23700 # Be Bourne compatible
23701 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23702 emulate sh
23703 NULLCMD=:
23704 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23705 # is contrary to our usage. Disable this feature.
23706 alias -g '${1+"$@"}'='"$@"'
23707 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23708 set -o posix
23709 fi
23710 DUALCASE=1; export DUALCASE # for MKS sh
23711
23712 # Support unset when possible.
23713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23714 as_unset=unset
23715 else
23716 as_unset=false
23717 fi
23718
23719
23720 # Work around bugs in pre-3.0 UWIN ksh.
23721 $as_unset ENV MAIL MAILPATH
23722 PS1='$ '
23723 PS2='> '
23724 PS4='+ '
23725
23726 # NLS nuisances.
23727 for as_var in \
23728 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23729 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23730 LC_TELEPHONE LC_TIME
23731 do
23732 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23733 eval $as_var=C; export $as_var
23734 else
23735 $as_unset $as_var
23736 fi
23737 done
23738
23739 # Required to use basename.
23740 if expr a : '\(a\)' >/dev/null 2>&1; then
23741 as_expr=expr
23742 else
23743 as_expr=false
23744 fi
23745
23746 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23747 as_basename=basename
23748 else
23749 as_basename=false
23750 fi
23751
23752
23753 # Name of the executable.
23754 as_me=`$as_basename "$0" ||
23755 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23756 X"$0" : 'X\(//\)$' \| \
23757 X"$0" : 'X\(/\)$' \| \
23758 . : '\(.\)' 2>/dev/null ||
23759 echo X/"$0" |
23760 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23761 /^X\/\(\/\/\)$/{ s//\1/; q; }
23762 /^X\/\(\/\).*/{ s//\1/; q; }
23763 s/.*/./; q'`
23764
23765
23766 # PATH needs CR, and LINENO needs CR and PATH.
23767 # Avoid depending upon Character Ranges.
23768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23771 as_cr_digits='0123456789'
23772 as_cr_alnum=$as_cr_Letters$as_cr_digits
23773
23774 # The user is always right.
23775 if test "${PATH_SEPARATOR+set}" != set; then
23776 echo "#! /bin/sh" >conf$$.sh
23777 echo "exit 0" >>conf$$.sh
23778 chmod +x conf$$.sh
23779 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23780 PATH_SEPARATOR=';'
23781 else
23782 PATH_SEPARATOR=:
23783 fi
23784 rm -f conf$$.sh
23785 fi
23786
23787
23788 as_lineno_1=$LINENO
23789 as_lineno_2=$LINENO
23790 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23791 test "x$as_lineno_1" != "x$as_lineno_2" &&
23792 test "x$as_lineno_3" = "x$as_lineno_2" || {
23793 # Find who we are. Look in the path if we contain no path at all
23794 # relative or not.
23795 case $0 in
23796 *[\\/]* ) as_myself=$0 ;;
23797 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23798 for as_dir in $PATH
23799 do
23800 IFS=$as_save_IFS
23801 test -z "$as_dir" && as_dir=.
23802 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23803 done
23804
23805 ;;
23806 esac
23807 # We did not find ourselves, most probably we were run as `sh COMMAND'
23808 # in which case we are not to be found in the path.
23809 if test "x$as_myself" = x; then
23810 as_myself=$0
23811 fi
23812 if test ! -f "$as_myself"; then
23813 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23814 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23815 { (exit 1); exit 1; }; }
23816 fi
23817 case $CONFIG_SHELL in
23818 '')
23819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23820 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23821 do
23822 IFS=$as_save_IFS
23823 test -z "$as_dir" && as_dir=.
23824 for as_base in sh bash ksh sh5; do
23825 case $as_dir in
23826 /*)
23827 if ("$as_dir/$as_base" -c '
23828 as_lineno_1=$LINENO
23829 as_lineno_2=$LINENO
23830 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23831 test "x$as_lineno_1" != "x$as_lineno_2" &&
23832 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23833 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23834 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23835 CONFIG_SHELL=$as_dir/$as_base
23836 export CONFIG_SHELL
23837 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23838 fi;;
23839 esac
23840 done
23841 done
23842 ;;
23843 esac
23844
23845 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23846 # uniformly replaced by the line number. The first 'sed' inserts a
23847 # line-number line before each line; the second 'sed' does the real
23848 # work. The second script uses 'N' to pair each line-number line
23849 # with the numbered line, and appends trailing '-' during
23850 # substitution so that $LINENO is not a special case at line end.
23851 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23852 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23853 sed '=' <$as_myself |
23854 sed '
23855 N
23856 s,$,-,
23857 : loop
23858 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23859 t loop
23860 s,-$,,
23861 s,^['$as_cr_digits']*\n,,
23862 ' >$as_me.lineno &&
23863 chmod +x $as_me.lineno ||
23864 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23865 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23866 { (exit 1); exit 1; }; }
23867
23868 # Don't try to exec as it changes $[0], causing all sort of problems
23869 # (the dirname of $[0] is not the place where we might find the
23870 # original and so on. Autoconf is especially sensible to this).
23871 . ./$as_me.lineno
23872 # Exit status is that of the last command.
23873 exit
23874 }
23875
23876
23877 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23878 *c*,-n*) ECHO_N= ECHO_C='
23879 ' ECHO_T=' ' ;;
23880 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23881 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23882 esac
23883
23884 if expr a : '\(a\)' >/dev/null 2>&1; then
23885 as_expr=expr
23886 else
23887 as_expr=false
23888 fi
23889
23890 rm -f conf$$ conf$$.exe conf$$.file
23891 echo >conf$$.file
23892 if ln -s conf$$.file conf$$ 2>/dev/null; then
23893 # We could just check for DJGPP; but this test a) works b) is more generic
23894 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23895 if test -f conf$$.exe; then
23896 # Don't use ln at all; we don't have any links
23897 as_ln_s='cp -p'
23898 else
23899 as_ln_s='ln -s'
23900 fi
23901 elif ln conf$$.file conf$$ 2>/dev/null; then
23902 as_ln_s=ln
23903 else
23904 as_ln_s='cp -p'
23905 fi
23906 rm -f conf$$ conf$$.exe conf$$.file
23907
23908 if mkdir -p . 2>/dev/null; then
23909 as_mkdir_p=:
23910 else
23911 test -d ./-p && rmdir ./-p
23912 as_mkdir_p=false
23913 fi
23914
23915 as_executable_p="test -f"
23916
23917 # Sed expression to map a string onto a valid CPP name.
23918 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23919
23920 # Sed expression to map a string onto a valid variable name.
23921 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23922
23923
23924 # IFS
23925 # We need space, tab and new line, in precisely that order.
23926 as_nl='
23927 '
23928 IFS=" $as_nl"
23929
23930 # CDPATH.
23931 $as_unset CDPATH
23932
23933 exec 6>&1
23934
23935 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23936 # report actual input values of CONFIG_FILES etc. instead of their
23937 # values after options handling. Logging --version etc. is OK.
23938 exec 5>>config.log
23939 {
23940 echo
23941 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23942 ## Running $as_me. ##
23943 _ASBOX
23944 } >&5
23945 cat >&5 <<_CSEOF
23946
23947 This file was extended by $as_me, which was
23948 generated by GNU Autoconf 2.59. Invocation command line was
23949
23950 CONFIG_FILES = $CONFIG_FILES
23951 CONFIG_HEADERS = $CONFIG_HEADERS
23952 CONFIG_LINKS = $CONFIG_LINKS
23953 CONFIG_COMMANDS = $CONFIG_COMMANDS
23954 $ $0 $@
23955
23956 _CSEOF
23957 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23958 echo >&5
23959 _ACEOF
23960
23961 # Files that config.status was made for.
23962 if test -n "$ac_config_files"; then
23963 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23964 fi
23965
23966 if test -n "$ac_config_headers"; then
23967 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23968 fi
23969
23970 if test -n "$ac_config_links"; then
23971 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23972 fi
23973
23974 if test -n "$ac_config_commands"; then
23975 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23976 fi
23977
23978 cat >>$CONFIG_STATUS <<\_ACEOF
23979
23980 ac_cs_usage="\
23981 \`$as_me' instantiates files from templates according to the
23982 current configuration.
23983
23984 Usage: $0 [OPTIONS] [FILE]...
23985
23986 -h, --help print this help, then exit
23987 -V, --version print version number, then exit
23988 -q, --quiet do not print progress messages
23989 -d, --debug don't remove temporary files
23990 --recheck update $as_me by reconfiguring in the same conditions
23991 --file=FILE[:TEMPLATE]
23992 instantiate the configuration file FILE
23993 --header=FILE[:TEMPLATE]
23994 instantiate the configuration header FILE
23995
23996 Configuration files:
23997 $config_files
23998
23999 Configuration headers:
24000 $config_headers
24001
24002 Configuration commands:
24003 $config_commands
24004
24005 Report bugs to <bug-autoconf@gnu.org>."
24006 _ACEOF
24007
24008 cat >>$CONFIG_STATUS <<_ACEOF
24009 ac_cs_version="\\
24010 config.status
24011 configured by $0, generated by GNU Autoconf 2.59,
24012 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24013
24014 Copyright (C) 2003 Free Software Foundation, Inc.
24015 This config.status script is free software; the Free Software Foundation
24016 gives unlimited permission to copy, distribute and modify it."
24017 srcdir=$srcdir
24018 INSTALL="$INSTALL"
24019 _ACEOF
24020
24021 cat >>$CONFIG_STATUS <<\_ACEOF
24022 # If no file are specified by the user, then we need to provide default
24023 # value. By we need to know if files were specified by the user.
24024 ac_need_defaults=:
24025 while test $# != 0
24026 do
24027 case $1 in
24028 --*=*)
24029 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24030 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24031 ac_shift=:
24032 ;;
24033 -*)
24034 ac_option=$1
24035 ac_optarg=$2
24036 ac_shift=shift
24037 ;;
24038 *) # This is not an option, so the user has probably given explicit
24039 # arguments.
24040 ac_option=$1
24041 ac_need_defaults=false;;
24042 esac
24043
24044 case $ac_option in
24045 # Handling of the options.
24046 _ACEOF
24047 cat >>$CONFIG_STATUS <<\_ACEOF
24048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24049 ac_cs_recheck=: ;;
24050 --version | --vers* | -V )
24051 echo "$ac_cs_version"; exit 0 ;;
24052 --he | --h)
24053 # Conflict between --help and --header
24054 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24055 Try \`$0 --help' for more information." >&5
24056 echo "$as_me: error: ambiguous option: $1
24057 Try \`$0 --help' for more information." >&2;}
24058 { (exit 1); exit 1; }; };;
24059 --help | --hel | -h )
24060 echo "$ac_cs_usage"; exit 0 ;;
24061 --debug | --d* | -d )
24062 debug=: ;;
24063 --file | --fil | --fi | --f )
24064 $ac_shift
24065 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24066 ac_need_defaults=false;;
24067 --header | --heade | --head | --hea )
24068 $ac_shift
24069 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24070 ac_need_defaults=false;;
24071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24072 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24073 ac_cs_silent=: ;;
24074
24075 # This is an error.
24076 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24077 Try \`$0 --help' for more information." >&5
24078 echo "$as_me: error: unrecognized option: $1
24079 Try \`$0 --help' for more information." >&2;}
24080 { (exit 1); exit 1; }; } ;;
24081
24082 *) ac_config_targets="$ac_config_targets $1" ;;
24083
24084 esac
24085 shift
24086 done
24087
24088 ac_configure_extra_args=
24089
24090 if $ac_cs_silent; then
24091 exec 6>/dev/null
24092 ac_configure_extra_args="$ac_configure_extra_args --silent"
24093 fi
24094
24095 _ACEOF
24096 cat >>$CONFIG_STATUS <<_ACEOF
24097 if \$ac_cs_recheck; then
24098 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24099 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24100 fi
24101
24102 _ACEOF
24103
24104 cat >>$CONFIG_STATUS <<_ACEOF
24105 #
24106 # INIT-COMMANDS section.
24107 #
24108
24109 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24110
24111 _ACEOF
24112
24113
24114
24115 cat >>$CONFIG_STATUS <<\_ACEOF
24116 for ac_config_target in $ac_config_targets
24117 do
24118 case "$ac_config_target" in
24119 # Handling of arguments.
24120 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24121 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24122 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24123 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24124 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24125 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24126 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24127 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24128 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24129 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24130 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24131 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24132 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24133 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24134 { (exit 1); exit 1; }; };;
24135 esac
24136 done
24137
24138 # If the user did not use the arguments to specify the items to instantiate,
24139 # then the envvar interface is used. Set only those that are not.
24140 # We use the long form for the default assignment because of an extremely
24141 # bizarre bug on SunOS 4.1.3.
24142 if $ac_need_defaults; then
24143 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24144 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24145 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24146 fi
24147
24148 # Have a temporary directory for convenience. Make it in the build tree
24149 # simply because there is no reason to put it here, and in addition,
24150 # creating and moving files from /tmp can sometimes cause problems.
24151 # Create a temporary directory, and hook for its removal unless debugging.
24152 $debug ||
24153 {
24154 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24155 trap '{ (exit 1); exit 1; }' 1 2 13 15
24156 }
24157
24158 # Create a (secure) tmp directory for tmp files.
24159
24160 {
24161 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24162 test -n "$tmp" && test -d "$tmp"
24163 } ||
24164 {
24165 tmp=./confstat$$-$RANDOM
24166 (umask 077 && mkdir $tmp)
24167 } ||
24168 {
24169 echo "$me: cannot create a temporary directory in ." >&2
24170 { (exit 1); exit 1; }
24171 }
24172
24173 _ACEOF
24174
24175 cat >>$CONFIG_STATUS <<_ACEOF
24176
24177 #
24178 # CONFIG_FILES section.
24179 #
24180
24181 # No need to generate the scripts if there are no CONFIG_FILES.
24182 # This happens for instance when ./config.status config.h
24183 if test -n "\$CONFIG_FILES"; then
24184 # Protect against being on the right side of a sed subst in config.status.
24185 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24186 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24187 s,@SHELL@,$SHELL,;t t
24188 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24189 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24190 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24191 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24192 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24193 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24194 s,@exec_prefix@,$exec_prefix,;t t
24195 s,@prefix@,$prefix,;t t
24196 s,@program_transform_name@,$program_transform_name,;t t
24197 s,@bindir@,$bindir,;t t
24198 s,@sbindir@,$sbindir,;t t
24199 s,@libexecdir@,$libexecdir,;t t
24200 s,@datadir@,$datadir,;t t
24201 s,@sysconfdir@,$sysconfdir,;t t
24202 s,@sharedstatedir@,$sharedstatedir,;t t
24203 s,@localstatedir@,$localstatedir,;t t
24204 s,@libdir@,$libdir,;t t
24205 s,@includedir@,$includedir,;t t
24206 s,@oldincludedir@,$oldincludedir,;t t
24207 s,@infodir@,$infodir,;t t
24208 s,@mandir@,$mandir,;t t
24209 s,@build_alias@,$build_alias,;t t
24210 s,@host_alias@,$host_alias,;t t
24211 s,@target_alias@,$target_alias,;t t
24212 s,@DEFS@,$DEFS,;t t
24213 s,@ECHO_C@,$ECHO_C,;t t
24214 s,@ECHO_N@,$ECHO_N,;t t
24215 s,@ECHO_T@,$ECHO_T,;t t
24216 s,@LIBS@,$LIBS,;t t
24217 s,@MAINT@,$MAINT,;t t
24218 s,@build@,$build,;t t
24219 s,@build_cpu@,$build_cpu,;t t
24220 s,@build_vendor@,$build_vendor,;t t
24221 s,@build_os@,$build_os,;t t
24222 s,@host@,$host,;t t
24223 s,@host_cpu@,$host_cpu,;t t
24224 s,@host_vendor@,$host_vendor,;t t
24225 s,@host_os@,$host_os,;t t
24226 s,@CC@,$CC,;t t
24227 s,@CFLAGS@,$CFLAGS,;t t
24228 s,@LDFLAGS@,$LDFLAGS,;t t
24229 s,@CPPFLAGS@,$CPPFLAGS,;t t
24230 s,@ac_ct_CC@,$ac_ct_CC,;t t
24231 s,@EXEEXT@,$EXEEXT,;t t
24232 s,@OBJEXT@,$OBJEXT,;t t
24233 s,@CPP@,$CPP,;t t
24234 s,@EGREP@,$EGREP,;t t
24235 s,@LN_S@,$LN_S,;t t
24236 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24237 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24238 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24239 s,@RANLIB@,$RANLIB,;t t
24240 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24241 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
24242 s,@GZIP_PROG@,$GZIP_PROG,;t t
24243 s,@LIBSOUND@,$LIBSOUND,;t t
24244 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24245 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
24246 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
24247 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
24248 s,@SET_MAKE@,$SET_MAKE,;t t
24249 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
24250 s,@GTK_LIBS@,$GTK_LIBS,;t t
24251 s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
24252 s,@XFT_LIBS@,$XFT_LIBS,;t t
24253 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
24254 s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
24255 s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
24256 s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
24257 s,@HAVE_LIBOTF@,$HAVE_LIBOTF,;t t
24258 s,@LIBOTF_CFLAGS@,$LIBOTF_CFLAGS,;t t
24259 s,@LIBOTF_LIBS@,$LIBOTF_LIBS,;t t
24260 s,@ALLOCA@,$ALLOCA,;t t
24261 s,@liblockfile@,$liblockfile,;t t
24262 s,@LIBOBJS@,$LIBOBJS,;t t
24263 s,@NEED_SETGID@,$NEED_SETGID,;t t
24264 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
24265 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
24266 s,@GETOPT_H@,$GETOPT_H,;t t
24267 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
24268 s,@version@,$version,;t t
24269 s,@configuration@,$configuration,;t t
24270 s,@canonical@,$canonical,;t t
24271 s,@srcdir@,$srcdir,;t t
24272 s,@lispdir@,$lispdir,;t t
24273 s,@locallisppath@,$locallisppath,;t t
24274 s,@lisppath@,$lisppath,;t t
24275 s,@x_default_search_path@,$x_default_search_path,;t t
24276 s,@etcdir@,$etcdir,;t t
24277 s,@archlibdir@,$archlibdir,;t t
24278 s,@docdir@,$docdir,;t t
24279 s,@bitmapdir@,$bitmapdir,;t t
24280 s,@gamedir@,$gamedir,;t t
24281 s,@gameuser@,$gameuser,;t t
24282 s,@c_switch_system@,$c_switch_system,;t t
24283 s,@c_switch_machine@,$c_switch_machine,;t t
24284 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
24285 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
24286 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
24287 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
24288 s,@machfile@,$machfile,;t t
24289 s,@opsysfile@,$opsysfile,;t t
24290 s,@carbon_appdir@,$carbon_appdir,;t t
24291 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24292 CEOF
24293
24294 _ACEOF
24295
24296 cat >>$CONFIG_STATUS <<\_ACEOF
24297 # Split the substitutions into bite-sized pieces for seds with
24298 # small command number limits, like on Digital OSF/1 and HP-UX.
24299 ac_max_sed_lines=48
24300 ac_sed_frag=1 # Number of current file.
24301 ac_beg=1 # First line for current file.
24302 ac_end=$ac_max_sed_lines # Line after last line for current file.
24303 ac_more_lines=:
24304 ac_sed_cmds=
24305 while $ac_more_lines; do
24306 if test $ac_beg -gt 1; then
24307 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24308 else
24309 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24310 fi
24311 if test ! -s $tmp/subs.frag; then
24312 ac_more_lines=false
24313 else
24314 # The purpose of the label and of the branching condition is to
24315 # speed up the sed processing (if there are no `@' at all, there
24316 # is no need to browse any of the substitutions).
24317 # These are the two extra sed commands mentioned above.
24318 (echo ':t
24319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24320 if test -z "$ac_sed_cmds"; then
24321 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24322 else
24323 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24324 fi
24325 ac_sed_frag=`expr $ac_sed_frag + 1`
24326 ac_beg=$ac_end
24327 ac_end=`expr $ac_end + $ac_max_sed_lines`
24328 fi
24329 done
24330 if test -z "$ac_sed_cmds"; then
24331 ac_sed_cmds=cat
24332 fi
24333 fi # test -n "$CONFIG_FILES"
24334
24335 _ACEOF
24336 cat >>$CONFIG_STATUS <<\_ACEOF
24337 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24338 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24339 case $ac_file in
24340 - | *:- | *:-:* ) # input from stdin
24341 cat >$tmp/stdin
24342 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24343 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24344 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24345 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24346 * ) ac_file_in=$ac_file.in ;;
24347 esac
24348
24349 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24350 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24352 X"$ac_file" : 'X\(//\)[^/]' \| \
24353 X"$ac_file" : 'X\(//\)$' \| \
24354 X"$ac_file" : 'X\(/\)' \| \
24355 . : '\(.\)' 2>/dev/null ||
24356 echo X"$ac_file" |
24357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24359 /^X\(\/\/\)$/{ s//\1/; q; }
24360 /^X\(\/\).*/{ s//\1/; q; }
24361 s/.*/./; q'`
24362 { if $as_mkdir_p; then
24363 mkdir -p "$ac_dir"
24364 else
24365 as_dir="$ac_dir"
24366 as_dirs=
24367 while test ! -d "$as_dir"; do
24368 as_dirs="$as_dir $as_dirs"
24369 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24371 X"$as_dir" : 'X\(//\)[^/]' \| \
24372 X"$as_dir" : 'X\(//\)$' \| \
24373 X"$as_dir" : 'X\(/\)' \| \
24374 . : '\(.\)' 2>/dev/null ||
24375 echo X"$as_dir" |
24376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24378 /^X\(\/\/\)$/{ s//\1/; q; }
24379 /^X\(\/\).*/{ s//\1/; q; }
24380 s/.*/./; q'`
24381 done
24382 test ! -n "$as_dirs" || mkdir $as_dirs
24383 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24384 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24385 { (exit 1); exit 1; }; }; }
24386
24387 ac_builddir=.
24388
24389 if test "$ac_dir" != .; then
24390 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24391 # A "../" for each directory in $ac_dir_suffix.
24392 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24393 else
24394 ac_dir_suffix= ac_top_builddir=
24395 fi
24396
24397 case $srcdir in
24398 .) # No --srcdir option. We are building in place.
24399 ac_srcdir=.
24400 if test -z "$ac_top_builddir"; then
24401 ac_top_srcdir=.
24402 else
24403 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24404 fi ;;
24405 [\\/]* | ?:[\\/]* ) # Absolute path.
24406 ac_srcdir=$srcdir$ac_dir_suffix;
24407 ac_top_srcdir=$srcdir ;;
24408 *) # Relative path.
24409 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24410 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24411 esac
24412
24413 # Do not use `cd foo && pwd` to compute absolute paths, because
24414 # the directories may not exist.
24415 case `pwd` in
24416 .) ac_abs_builddir="$ac_dir";;
24417 *)
24418 case "$ac_dir" in
24419 .) ac_abs_builddir=`pwd`;;
24420 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24421 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24422 esac;;
24423 esac
24424 case $ac_abs_builddir in
24425 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24426 *)
24427 case ${ac_top_builddir}. in
24428 .) ac_abs_top_builddir=$ac_abs_builddir;;
24429 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24430 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24431 esac;;
24432 esac
24433 case $ac_abs_builddir in
24434 .) ac_abs_srcdir=$ac_srcdir;;
24435 *)
24436 case $ac_srcdir in
24437 .) ac_abs_srcdir=$ac_abs_builddir;;
24438 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24439 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24440 esac;;
24441 esac
24442 case $ac_abs_builddir in
24443 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24444 *)
24445 case $ac_top_srcdir in
24446 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24447 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24448 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24449 esac;;
24450 esac
24451
24452
24453 case $INSTALL in
24454 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24455 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24456 esac
24457
24458 # Let's still pretend it is `configure' which instantiates (i.e., don't
24459 # use $as_me), people would be surprised to read:
24460 # /* config.h. Generated by config.status. */
24461 if test x"$ac_file" = x-; then
24462 configure_input=
24463 else
24464 configure_input="$ac_file. "
24465 fi
24466 configure_input=$configure_input"Generated from `echo $ac_file_in |
24467 sed 's,.*/,,'` by configure."
24468
24469 # First look for the input files in the build tree, otherwise in the
24470 # src tree.
24471 ac_file_inputs=`IFS=:
24472 for f in $ac_file_in; do
24473 case $f in
24474 -) echo $tmp/stdin ;;
24475 [\\/$]*)
24476 # Absolute (can't be DOS-style, as IFS=:)
24477 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24478 echo "$as_me: error: cannot find input file: $f" >&2;}
24479 { (exit 1); exit 1; }; }
24480 echo "$f";;
24481 *) # Relative
24482 if test -f "$f"; then
24483 # Build tree
24484 echo "$f"
24485 elif test -f "$srcdir/$f"; then
24486 # Source tree
24487 echo "$srcdir/$f"
24488 else
24489 # /dev/null tree
24490 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24491 echo "$as_me: error: cannot find input file: $f" >&2;}
24492 { (exit 1); exit 1; }; }
24493 fi;;
24494 esac
24495 done` || { (exit 1); exit 1; }
24496
24497 if test x"$ac_file" != x-; then
24498 { echo "$as_me:$LINENO: creating $ac_file" >&5
24499 echo "$as_me: creating $ac_file" >&6;}
24500 rm -f "$ac_file"
24501 fi
24502 _ACEOF
24503 cat >>$CONFIG_STATUS <<_ACEOF
24504 sed "$ac_vpsub
24505 $extrasub
24506 _ACEOF
24507 cat >>$CONFIG_STATUS <<\_ACEOF
24508 :t
24509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24510 s,@configure_input@,$configure_input,;t t
24511 s,@srcdir@,$ac_srcdir,;t t
24512 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24513 s,@top_srcdir@,$ac_top_srcdir,;t t
24514 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24515 s,@builddir@,$ac_builddir,;t t
24516 s,@abs_builddir@,$ac_abs_builddir,;t t
24517 s,@top_builddir@,$ac_top_builddir,;t t
24518 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24519 s,@INSTALL@,$ac_INSTALL,;t t
24520 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24521 rm -f $tmp/stdin
24522 if test x"$ac_file" != x-; then
24523 mv $tmp/out $ac_file
24524 else
24525 cat $tmp/out
24526 rm -f $tmp/out
24527 fi
24528
24529 done
24530 _ACEOF
24531 cat >>$CONFIG_STATUS <<\_ACEOF
24532
24533 #
24534 # CONFIG_HEADER section.
24535 #
24536
24537 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24538 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24539 #
24540 # ac_d sets the value in "#define NAME VALUE" lines.
24541 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24542 ac_dB='[ ].*$,\1#\2'
24543 ac_dC=' '
24544 ac_dD=',;t'
24545 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24546 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24547 ac_uB='$,\1#\2define\3'
24548 ac_uC=' '
24549 ac_uD=',;t'
24550
24551 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24553 case $ac_file in
24554 - | *:- | *:-:* ) # input from stdin
24555 cat >$tmp/stdin
24556 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24558 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24560 * ) ac_file_in=$ac_file.in ;;
24561 esac
24562
24563 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24564 echo "$as_me: creating $ac_file" >&6;}
24565
24566 # First look for the input files in the build tree, otherwise in the
24567 # src tree.
24568 ac_file_inputs=`IFS=:
24569 for f in $ac_file_in; do
24570 case $f in
24571 -) echo $tmp/stdin ;;
24572 [\\/$]*)
24573 # Absolute (can't be DOS-style, as IFS=:)
24574 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24575 echo "$as_me: error: cannot find input file: $f" >&2;}
24576 { (exit 1); exit 1; }; }
24577 # Do quote $f, to prevent DOS paths from being IFS'd.
24578 echo "$f";;
24579 *) # Relative
24580 if test -f "$f"; then
24581 # Build tree
24582 echo "$f"
24583 elif test -f "$srcdir/$f"; then
24584 # Source tree
24585 echo "$srcdir/$f"
24586 else
24587 # /dev/null tree
24588 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24589 echo "$as_me: error: cannot find input file: $f" >&2;}
24590 { (exit 1); exit 1; }; }
24591 fi;;
24592 esac
24593 done` || { (exit 1); exit 1; }
24594 # Remove the trailing spaces.
24595 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24596
24597 _ACEOF
24598
24599 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24600 # `conftest.undefs', that substitutes the proper values into
24601 # config.h.in to produce config.h. The first handles `#define'
24602 # templates, and the second `#undef' templates.
24603 # And first: Protect against being on the right side of a sed subst in
24604 # config.status. Protect against being in an unquoted here document
24605 # in config.status.
24606 rm -f conftest.defines conftest.undefs
24607 # Using a here document instead of a string reduces the quoting nightmare.
24608 # Putting comments in sed scripts is not portable.
24609 #
24610 # `end' is used to avoid that the second main sed command (meant for
24611 # 0-ary CPP macros) applies to n-ary macro definitions.
24612 # See the Autoconf documentation for `clear'.
24613 cat >confdef2sed.sed <<\_ACEOF
24614 s/[\\&,]/\\&/g
24615 s,[\\$`],\\&,g
24616 t clear
24617 : clear
24618 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24619 t end
24620 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24621 : end
24622 _ACEOF
24623 # If some macros were called several times there might be several times
24624 # the same #defines, which is useless. Nevertheless, we may not want to
24625 # sort them, since we want the *last* AC-DEFINE to be honored.
24626 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24627 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24628 rm -f confdef2sed.sed
24629
24630 # This sed command replaces #undef with comments. This is necessary, for
24631 # example, in the case of _POSIX_SOURCE, which is predefined and required
24632 # on some systems where configure will not decide to define it.
24633 cat >>conftest.undefs <<\_ACEOF
24634 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24635 _ACEOF
24636
24637 # Break up conftest.defines because some shells have a limit on the size
24638 # of here documents, and old seds have small limits too (100 cmds).
24639 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24640 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24641 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24642 echo ' :' >>$CONFIG_STATUS
24643 rm -f conftest.tail
24644 while grep . conftest.defines >/dev/null
24645 do
24646 # Write a limited-size here document to $tmp/defines.sed.
24647 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24648 # Speed up: don't consider the non `#define' lines.
24649 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24650 # Work around the forget-to-reset-the-flag bug.
24651 echo 't clr' >>$CONFIG_STATUS
24652 echo ': clr' >>$CONFIG_STATUS
24653 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24654 echo 'CEOF
24655 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24656 rm -f $tmp/in
24657 mv $tmp/out $tmp/in
24658 ' >>$CONFIG_STATUS
24659 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24660 rm -f conftest.defines
24661 mv conftest.tail conftest.defines
24662 done
24663 rm -f conftest.defines
24664 echo ' fi # grep' >>$CONFIG_STATUS
24665 echo >>$CONFIG_STATUS
24666
24667 # Break up conftest.undefs because some shells have a limit on the size
24668 # of here documents, and old seds have small limits too (100 cmds).
24669 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24670 rm -f conftest.tail
24671 while grep . conftest.undefs >/dev/null
24672 do
24673 # Write a limited-size here document to $tmp/undefs.sed.
24674 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24675 # Speed up: don't consider the non `#undef'
24676 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24677 # Work around the forget-to-reset-the-flag bug.
24678 echo 't clr' >>$CONFIG_STATUS
24679 echo ': clr' >>$CONFIG_STATUS
24680 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24681 echo 'CEOF
24682 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24683 rm -f $tmp/in
24684 mv $tmp/out $tmp/in
24685 ' >>$CONFIG_STATUS
24686 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24687 rm -f conftest.undefs
24688 mv conftest.tail conftest.undefs
24689 done
24690 rm -f conftest.undefs
24691
24692 cat >>$CONFIG_STATUS <<\_ACEOF
24693 # Let's still pretend it is `configure' which instantiates (i.e., don't
24694 # use $as_me), people would be surprised to read:
24695 # /* config.h. Generated by config.status. */
24696 if test x"$ac_file" = x-; then
24697 echo "/* Generated by configure. */" >$tmp/config.h
24698 else
24699 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24700 fi
24701 cat $tmp/in >>$tmp/config.h
24702 rm -f $tmp/in
24703 if test x"$ac_file" != x-; then
24704 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24705 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24706 echo "$as_me: $ac_file is unchanged" >&6;}
24707 else
24708 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24710 X"$ac_file" : 'X\(//\)[^/]' \| \
24711 X"$ac_file" : 'X\(//\)$' \| \
24712 X"$ac_file" : 'X\(/\)' \| \
24713 . : '\(.\)' 2>/dev/null ||
24714 echo X"$ac_file" |
24715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24717 /^X\(\/\/\)$/{ s//\1/; q; }
24718 /^X\(\/\).*/{ s//\1/; q; }
24719 s/.*/./; q'`
24720 { if $as_mkdir_p; then
24721 mkdir -p "$ac_dir"
24722 else
24723 as_dir="$ac_dir"
24724 as_dirs=
24725 while test ! -d "$as_dir"; do
24726 as_dirs="$as_dir $as_dirs"
24727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24729 X"$as_dir" : 'X\(//\)[^/]' \| \
24730 X"$as_dir" : 'X\(//\)$' \| \
24731 X"$as_dir" : 'X\(/\)' \| \
24732 . : '\(.\)' 2>/dev/null ||
24733 echo X"$as_dir" |
24734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24736 /^X\(\/\/\)$/{ s//\1/; q; }
24737 /^X\(\/\).*/{ s//\1/; q; }
24738 s/.*/./; q'`
24739 done
24740 test ! -n "$as_dirs" || mkdir $as_dirs
24741 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24742 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24743 { (exit 1); exit 1; }; }; }
24744
24745 rm -f $ac_file
24746 mv $tmp/config.h $ac_file
24747 fi
24748 else
24749 cat $tmp/config.h
24750 rm -f $tmp/config.h
24751 fi
24752 done
24753 _ACEOF
24754 cat >>$CONFIG_STATUS <<\_ACEOF
24755
24756 #
24757 # CONFIG_COMMANDS section.
24758 #
24759 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24760 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24761 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24762 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24763 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24764 X"$ac_dest" : 'X\(//\)[^/]' \| \
24765 X"$ac_dest" : 'X\(//\)$' \| \
24766 X"$ac_dest" : 'X\(/\)' \| \
24767 . : '\(.\)' 2>/dev/null ||
24768 echo X"$ac_dest" |
24769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24771 /^X\(\/\/\)$/{ s//\1/; q; }
24772 /^X\(\/\).*/{ s//\1/; q; }
24773 s/.*/./; q'`
24774 { if $as_mkdir_p; then
24775 mkdir -p "$ac_dir"
24776 else
24777 as_dir="$ac_dir"
24778 as_dirs=
24779 while test ! -d "$as_dir"; do
24780 as_dirs="$as_dir $as_dirs"
24781 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24783 X"$as_dir" : 'X\(//\)[^/]' \| \
24784 X"$as_dir" : 'X\(//\)$' \| \
24785 X"$as_dir" : 'X\(/\)' \| \
24786 . : '\(.\)' 2>/dev/null ||
24787 echo X"$as_dir" |
24788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24790 /^X\(\/\/\)$/{ s//\1/; q; }
24791 /^X\(\/\).*/{ s//\1/; q; }
24792 s/.*/./; q'`
24793 done
24794 test ! -n "$as_dirs" || mkdir $as_dirs
24795 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24796 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24797 { (exit 1); exit 1; }; }; }
24798
24799 ac_builddir=.
24800
24801 if test "$ac_dir" != .; then
24802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24803 # A "../" for each directory in $ac_dir_suffix.
24804 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24805 else
24806 ac_dir_suffix= ac_top_builddir=
24807 fi
24808
24809 case $srcdir in
24810 .) # No --srcdir option. We are building in place.
24811 ac_srcdir=.
24812 if test -z "$ac_top_builddir"; then
24813 ac_top_srcdir=.
24814 else
24815 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24816 fi ;;
24817 [\\/]* | ?:[\\/]* ) # Absolute path.
24818 ac_srcdir=$srcdir$ac_dir_suffix;
24819 ac_top_srcdir=$srcdir ;;
24820 *) # Relative path.
24821 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24822 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24823 esac
24824
24825 # Do not use `cd foo && pwd` to compute absolute paths, because
24826 # the directories may not exist.
24827 case `pwd` in
24828 .) ac_abs_builddir="$ac_dir";;
24829 *)
24830 case "$ac_dir" in
24831 .) ac_abs_builddir=`pwd`;;
24832 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24833 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24834 esac;;
24835 esac
24836 case $ac_abs_builddir in
24837 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24838 *)
24839 case ${ac_top_builddir}. in
24840 .) ac_abs_top_builddir=$ac_abs_builddir;;
24841 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24842 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24843 esac;;
24844 esac
24845 case $ac_abs_builddir in
24846 .) ac_abs_srcdir=$ac_srcdir;;
24847 *)
24848 case $ac_srcdir in
24849 .) ac_abs_srcdir=$ac_abs_builddir;;
24850 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24851 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24852 esac;;
24853 esac
24854 case $ac_abs_builddir in
24855 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24856 *)
24857 case $ac_top_srcdir in
24858 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24859 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24860 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24861 esac;;
24862 esac
24863
24864
24865 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24866 echo "$as_me: executing $ac_dest commands" >&6;}
24867 case $ac_dest in
24868 default )
24869
24870 ### Make the necessary directories, if they don't exist.
24871 for dir in etc lisp ; do
24872 test -d ${dir} || mkdir ${dir}
24873 done
24874
24875 # Build src/Makefile from ${srcdir}/src/Makefile.c
24876 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24877 # This must be done after src/config.h is built, since we rely on that file.
24878
24879 # Now get this: Some word that is part of the ${srcdir} directory name
24880 # or the ${configuration} value might, just might, happen to be an
24881 # identifier like `sun4' or `i386' or something, and be predefined by
24882 # the C preprocessor to some helpful value like 1, or maybe the empty
24883 # string. Needless to say consequent macro substitutions are less
24884 # than conducive to the makefile finding the correct directory.
24885 undefs="`echo $top_srcdir $configuration $canonical |
24886 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24887 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24888 `"
24889
24890 echo creating src/epaths.h
24891 ${MAKE-make} epaths-force
24892
24893 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24894 # `..' to `. .' unless invoked with -traditional
24895
24896 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24897 CPPFLAGS="$CPPFLAGS -traditional"
24898 fi
24899
24900 echo creating lib-src/Makefile
24901 ( cd lib-src
24902 rm -f junk.c junk1.c junk2.c
24903 sed -e '/start of cpp stuff/q' \
24904 < Makefile.c > junk1.c
24905 sed -e '1,/start of cpp stuff/d'\
24906 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24907 < Makefile.c > junk.c
24908 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24909 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24910 cat junk1.c junk2.c > Makefile.new
24911 rm -f junk.c junk1.c junk2.c
24912 chmod 444 Makefile.new
24913 mv -f Makefile.new Makefile
24914 )
24915
24916 echo creating src/Makefile
24917 ( cd src
24918 rm -f junk.c junk1.c junk2.c
24919 sed -e '/start of cpp stuff/q' \
24920 < Makefile.c > junk1.c
24921 sed -e '1,/start of cpp stuff/d'\
24922 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24923 < Makefile.c > junk.c
24924 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
24925 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
24926 fi
24927 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24928 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24929 cat junk1.c junk2.c > Makefile.new
24930 rm -f junk.c junk1.c junk2.c
24931 chmod 444 Makefile.new
24932 mv -f Makefile.new Makefile
24933 )
24934
24935 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24936 echo creating src/.gdbinit
24937 echo source $srcdir/src/.gdbinit > src/.gdbinit
24938 fi
24939
24940 # This is how we know whether to re-run configure in certain cases.
24941 touch src/config.stamp
24942
24943 ;;
24944 esac
24945 done
24946 _ACEOF
24947
24948 cat >>$CONFIG_STATUS <<\_ACEOF
24949
24950 { (exit 0); exit 0; }
24951 _ACEOF
24952 chmod +x $CONFIG_STATUS
24953 ac_clean_files=$ac_clean_files_save
24954
24955
24956 # configure is writing to config.log, and then calls config.status.
24957 # config.status does its own redirection, appending to config.log.
24958 # Unfortunately, on DOS this fails, as config.log is still kept open
24959 # by configure, so config.status won't be able to write to it; its
24960 # output is simply discarded. So we exec the FD to /dev/null,
24961 # effectively closing config.log, so it can be properly (re)opened and
24962 # appended to by config.status. When coming back to configure, we
24963 # need to make the FD available again.
24964 if test "$no_create" != yes; then
24965 ac_cs_success=:
24966 ac_config_status_args=
24967 test "$silent" = yes &&
24968 ac_config_status_args="$ac_config_status_args --quiet"
24969 exec 5>/dev/null
24970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24971 exec 5>>config.log
24972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24973 # would make configure fail if this is the last instruction.
24974 $ac_cs_success || { (exit 1); exit 1; }
24975 fi
24976
24977