New next-error framework, use in occur.
[bpt/emacs.git] / configure
CommitLineData
ba4481b5 1#! /bin/sh
ba4481b5 2# Guess values for system-dependent variables and create Makefiles.
35996d22 3# Generated by GNU Autoconf 2.59.
ba4481b5 4#
35996d22 5# Copyright (C) 2003 Free Software Foundation, Inc.
ba4481b5
DL
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c0d27fcc
MR
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
503d2be0
AS
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
6bae0ccf
DL
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+"$@"}'='"$@"'
503d2be0
AS
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
35996d22 22DUALCASE=1; export DUALCASE # for MKS sh
503d2be0 23
c0d27fcc 24# Support unset when possible.
35996d22 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
c0d27fcc
MR
26 as_unset=unset
27else
28 as_unset=false
29fi
30
6bae0ccf
DL
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
19650fd6
AS
39for 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
6bae0ccf 43do
35996d22 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6bae0ccf
DL
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
c0d27fcc
MR
63
64
503d2be0 65# Name of the executable.
6bae0ccf 66as_me=`$as_basename "$0" ||
c0d27fcc
MR
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
6bae0ccf 77
c0d27fcc
MR
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
19650fd6
AS
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
c0d27fcc
MR
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
19650fd6 96 rm -f conf$$.sh
c0d27fcc
MR
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
6bae0ccf
DL
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; }
c0d27fcc
MR
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
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
187case `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= ;;
192esac
503d2be0
AS
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
6bae0ccf
DL
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
35996d22 221 test -d ./-p && rmdir ./-p
6bae0ccf
DL
222 as_mkdir_p=false
223fi
224
503d2be0
AS
225as_executable_p="test -f"
226
c0d27fcc 227# Sed expression to map a string onto a valid CPP name.
35996d22 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c0d27fcc
MR
229
230# Sed expression to map a string onto a valid variable name.
35996d22 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
503d2be0 232
503d2be0
AS
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
6bae0ccf 241$as_unset CDPATH
c0d27fcc 242
503d2be0
AS
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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
ba4481b5 254ac_default_prefix=/usr/local
6bae0ccf 255ac_config_libobj_dir=.
503d2be0
AS
256cross_compiling=no
257subdirs=
c0d27fcc
MR
258MFLAGS=
259MAKEFLAGS=
503d2be0
AS
260SHELL=${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
c0d27fcc
MR
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
503d2be0 274ac_unique_file="src/lisp.h"
6bae0ccf 275ac_config_libobj_dir=src
503d2be0
AS
276# Factoring default headers for most tests.
277ac_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"
ba4481b5 312
19650fd6 313ac_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 LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
6bae0ccf 314ac_subst_files=''
c0d27fcc 315
ba4481b5 316# Initialize some variables set by options.
503d2be0
AS
317ac_init_help=
318ac_init_version=false
ba4481b5
DL
319# The variables have the same names as the options, with
320# dashes changed to underlines.
503d2be0 321cache_file=/dev/null
ba4481b5 322exec_prefix=NONE
ba4481b5 323no_create=
ba4481b5
DL
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
ba4481b5
DL
332verbose=
333x_includes=NONE
334x_libraries=NONE
503d2be0
AS
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.
ba4481b5
DL
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
ba4481b5
DL
354ac_prev=
355for ac_option
356do
ba4481b5
DL
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
503d2be0 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
ba4481b5
DL
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
503d2be0 368 case $ac_option in
ba4481b5
DL
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
503d2be0 373 bindir=$ac_optarg ;;
ba4481b5
DL
374
375 -build | --build | --buil | --bui | --bu)
503d2be0 376 ac_prev=build_alias ;;
ba4481b5 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
503d2be0 378 build_alias=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0
AS
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
ba4481b5
DL
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
503d2be0 394 datadir=$ac_optarg ;;
ba4481b5
DL
395
396 -disable-* | --disable-*)
503d2be0 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ba4481b5 398 # Reject names that are not valid shell variable names.
503d2be0
AS
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" ;;
ba4481b5
DL
404
405 -enable-* | --enable-*)
503d2be0 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ba4481b5 407 # Reject names that are not valid shell variable names.
503d2be0
AS
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"`;;
ba4481b5
DL
414 *) ac_optarg=yes ;;
415 esac
503d2be0 416 eval "enable_$ac_feature='$ac_optarg'" ;;
ba4481b5
DL
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=*)
503d2be0 425 exec_prefix=$ac_optarg ;;
ba4481b5
DL
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
503d2be0
AS
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 ;;
ba4481b5
DL
437
438 -host | --host | --hos | --ho)
503d2be0 439 ac_prev=host_alias ;;
ba4481b5 440 -host=* | --host=* | --hos=* | --ho=*)
503d2be0 441 host_alias=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0 448 includedir=$ac_optarg ;;
ba4481b5
DL
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
503d2be0 453 infodir=$ac_optarg ;;
ba4481b5
DL
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
503d2be0 458 libdir=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0 465 libexecdir=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0 474 localstatedir=$ac_optarg ;;
ba4481b5
DL
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
503d2be0 479 mandir=$ac_optarg ;;
ba4481b5
DL
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 \
c0d27fcc 486 | --no-cr | --no-c | -n)
ba4481b5
DL
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=*)
503d2be0 500 oldincludedir=$ac_optarg ;;
ba4481b5
DL
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503d2be0 505 prefix=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0 512 program_prefix=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0 519 program_suffix=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0 536 program_transform_name=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0 546 sbindir=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0 557 sharedstatedir=$ac_optarg ;;
ba4481b5
DL
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
503d2be0 562 site=$ac_optarg ;;
ba4481b5
DL
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
503d2be0 567 srcdir=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0 574 sysconfdir=$ac_optarg ;;
ba4481b5
DL
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
503d2be0 577 ac_prev=target_alias ;;
ba4481b5 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
503d2be0 579 target_alias=$ac_optarg ;;
ba4481b5
DL
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
503d2be0
AS
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
ba4481b5
DL
586
587 -with-* | --with-*)
503d2be0 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ba4481b5 589 # Reject names that are not valid shell variable names.
503d2be0
AS
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; }; }
ba4481b5 593 ac_package=`echo $ac_package| sed 's/-/_/g'`
503d2be0
AS
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ba4481b5
DL
596 *) ac_optarg=yes ;;
597 esac
503d2be0 598 eval "with_$ac_package='$ac_optarg'" ;;
ba4481b5
DL
599
600 -without-* | --without-*)
503d2be0 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ba4481b5 602 # Reject names that are not valid shell variable names.
503d2be0
AS
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" ;;
ba4481b5
DL
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=*)
503d2be0 618 x_includes=$ac_optarg ;;
ba4481b5
DL
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=*)
503d2be0 625 x_libraries=$ac_optarg ;;
ba4481b5 626
503d2be0
AS
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
ba4481b5
DL
630 ;;
631
503d2be0
AS
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
ba4481b5 642 *)
503d2be0
AS
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}
ba4481b5
DL
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
503d2be0
AS
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; }; }
ba4481b5 657fi
ba4481b5 658
503d2be0
AS
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
c0d27fcc 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
503d2be0
AS
666 { (exit 1); exit 1; }; };;
667 esac
668done
ba4481b5 669
503d2be0
AS
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
35996d22 672 localstatedir libdir includedir oldincludedir infodir mandir
ba4481b5 673do
503d2be0
AS
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
c0d27fcc 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
503d2be0 678 { (exit 1); exit 1; }; };;
ba4481b5
DL
679 esac
680done
681
503d2be0
AS
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
c0d27fcc 684# FIXME: To remove some day.
503d2be0
AS
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
c0d27fcc 689# FIXME: To remove some day.
503d2be0
AS
690if 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
698fi
ba4481b5 699
503d2be0
AS
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
ba4481b5 702
503d2be0 703test "$silent" = yes && exec 6>/dev/null
ba4481b5 704
c0d27fcc 705
ba4481b5
DL
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
c0d27fcc
MR
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
c0d27fcc
MR
716echo 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'`
ba4481b5
DL
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
c0d27fcc 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
503d2be0 732 { (exit 1); exit 1; }; }
ba4481b5 733 else
c0d27fcc 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
503d2be0 735 { (exit 1); exit 1; }; }
ba4481b5
DL
736 fi
737fi
6bae0ccf
DL
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; }; }
503d2be0
AS
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if 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.
c0d27fcc 781 cat <<_ACEOF
503d2be0
AS
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
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
c0d27fcc 802_ACEOF
503d2be0 803
c0d27fcc 804 cat <<_ACEOF
503d2be0
AS
805Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
35996d22 807 [$ac_default_prefix]
503d2be0 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
35996d22 809 [PREFIX]
503d2be0
AS
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine 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]
c0d27fcc 831_ACEOF
503d2be0 832
c0d27fcc 833 cat <<\_ACEOF
503d2be0 834
ba5da88a
PJ
835Program 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
503d2be0
AS
840X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844System types:
845 --build=BUILD configure for building on BUILD [guessed]
c0d27fcc
MR
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847_ACEOF
503d2be0
AS
848fi
849
850if test -n "$ac_init_help"; then
851
c0d27fcc 852 cat <<\_ACEOF
503d2be0
AS
853
854Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6a3a24fa
JD
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
19650fd6
AS
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
503d2be0
AS
861 --disable-largefile omit support for large files
862
863Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
2c9dccc9 871 --without-sound don't compile with sound support
488dd4c4
JD
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
503d2be0
AS
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
488dd4c4
JD
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
503d2be0 881 --without-toolkit-scroll-bars
cc227489
MB
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
e0f712ba 884 --without-carbon don't use Carbon GUI on Mac OS X
503d2be0
AS
885 --with-x use the X Window System
886
887Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
c0d27fcc 899_ACEOF
503d2be0
AS
900fi
901
902if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
c0d27fcc
MR
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913else
914 ac_dir_suffix= ac_top_builddir=
915fi
503d2be0 916
c0d27fcc
MR
917case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931esac
35996d22
AS
932
933# Do not use `cd foo && pwd` to compute absolute paths, because
934# the directories may not exist.
935case `pwd` in
936.) ac_abs_builddir="$ac_dir";;
937*)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_top_builddir=${ac_top_builddir}.;;
946*)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_srcdir=$ac_srcdir;;
955*)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_top_srcdir=$ac_top_srcdir;;
964*)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970esac
c0d27fcc
MR
971
972 cd $ac_dir
503d2be0 973 # Check for guested configure; otherwise get Cygnus style configure.
c0d27fcc 974 if test -f $ac_srcdir/configure.gnu; then
503d2be0 975 echo
c0d27fcc
MR
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
503d2be0 978 echo
c0d27fcc
MR
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
35996d22 981 test -f $ac_srcdir/configure.in; then
503d2be0
AS
982 echo
983 $ac_configure --help
984 else
c0d27fcc 985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
503d2be0 986 fi
57669b57 987 cd $ac_popdir
503d2be0
AS
988 done
989fi
990
991test -n "$ac_init_help" && exit 0
992if $ac_init_version; then
c0d27fcc 993 cat <<\_ACEOF
503d2be0 994
35996d22 995Copyright (C) 2003 Free Software Foundation, Inc.
503d2be0
AS
996This configure script is free software; the Free Software Foundation
997gives unlimited permission to copy, distribute and modify it.
c0d27fcc 998_ACEOF
503d2be0
AS
999 exit 0
1000fi
1001exec 5>config.log
c0d27fcc 1002cat >&5 <<_ACEOF
503d2be0
AS
1003This file contains any messages produced by compilers while
1004running configure, to aid debugging if configure makes a mistake.
1005
1006It was created by $as_me, which was
35996d22 1007generated by GNU Autoconf 2.59. Invocation command line was
503d2be0
AS
1008
1009 $ $0 $@
1010
c0d27fcc 1011_ACEOF
503d2be0
AS
1012{
1013cat <<_ASUNAME
c0d27fcc
MR
1014## --------- ##
1015## Platform. ##
1016## --------- ##
503d2be0
AS
1017
1018hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026
1027/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034
925c2f3f 1035_ASUNAME
c0d27fcc
MR
1036
1037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038for as_dir in $PATH
1039do
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043done
1044
503d2be0
AS
1045} >&5
1046
c0d27fcc
MR
1047cat >&5 <<_ACEOF
1048
1049
1050## ----------- ##
1051## Core tests. ##
1052## ----------- ##
1053
1054_ACEOF
503d2be0 1055
503d2be0
AS
1056
1057# Keep a trace of the command line.
1058# Strip out --no-create and --no-recursion so they do not pile up.
19650fd6 1059# Strip out --silent because we don't want to record it for future runs.
503d2be0 1060# Also quote any args containing shell meta-characters.
19650fd6 1061# Make two passes to allow for proper duplicate-argument suppression.
503d2be0 1062ac_configure_args=
19650fd6
AS
1063ac_configure_args0=
1064ac_configure_args1=
503d2be0 1065ac_sep=
19650fd6
AS
1066ac_must_keep_next=false
1067for ac_pass in 1 2
503d2be0 1068do
19650fd6
AS
1069 for ac_arg
1070 do
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 2)
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
35996d22 1084 ac_must_keep_next=false # Got value, back to normal.
19650fd6 1085 else
35996d22
AS
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1094 ;;
1095 -* ) ac_must_keep_next=true ;;
1096 esac
19650fd6
AS
1097 fi
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1101 ;;
1102 esac
1103 done
503d2be0 1104done
19650fd6
AS
1105$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
503d2be0
AS
1107
1108# When interrupted or exit'd, cleanup temporary files, and complete
1109# config.log. We remove comments because anyway the quotes in there
1110# would cause problems or look ugly.
c0d27fcc
MR
1111# WARNING: Be sure not to use single quotes in there, as some shells,
1112# such as our DU 5.0 friend, will then `close' the trap.
503d2be0
AS
1113trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
c0d27fcc
MR
1115 {
1116 echo
6bae0ccf 1117
c0d27fcc
MR
1118 cat <<\_ASBOX
1119## ---------------- ##
1120## Cache variables. ##
1121## ---------------- ##
1122_ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
503d2be0
AS
1125{
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
35996d22
AS
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
503d2be0
AS
1132 ;;
1133 *)
1134 sed -n \
35996d22 1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
503d2be0
AS
1136 ;;
1137 esac;
c0d27fcc
MR
1138}
1139 echo
6bae0ccf
DL
1140
1141 cat <<\_ASBOX
1142## ----------------- ##
1143## Output variables. ##
1144## ----------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156## ------------- ##
1157## Output files. ##
1158## ------------- ##
1159_ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1162 do
1163 eval ac_val=$`echo $ac_var`
35996d22 1164 echo "$ac_var='"'"'$ac_val'"'"'"
6bae0ccf
DL
1165 done | sort
1166 echo
1167 fi
1168
c0d27fcc
MR
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171## ----------- ##
1172## confdefs.h. ##
1173## ----------- ##
1174_ASBOX
1175 echo
6bae0ccf 1176 sed "/^$/d" confdefs.h | sort
c0d27fcc
MR
1177 echo
1178 fi
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
35996d22 1183 rm -f core *.core &&
c0d27fcc 1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
503d2be0
AS
1185 exit $exit_status
1186 ' 0
1187for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189done
1190ac_signal=0
1191
1192# confdefs.h avoids OS command line length limits that DEFS can exceed.
1193rm -rf conftest* confdefs.h
1194# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195echo >confdefs.h
ba4481b5 1196
c0d27fcc
MR
1197# Predefined preprocessor variables.
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_NAME "$PACKAGE_NAME"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_VERSION "$PACKAGE_VERSION"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_STRING "$PACKAGE_STRING"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221_ACEOF
1222
1223
503d2be0 1224# Let the site file select an alternate cache file if it wants to.
ba4481b5
DL
1225# Prefer explicitly selected file to automatically selected ones.
1226if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 fi
1232fi
1233for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
c0d27fcc 1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
503d2be0 1236echo "$as_me: loading site script $ac_site_file" >&6;}
c0d27fcc 1237 sed 's/^/| /' "$ac_site_file" >&5
ba4481b5
DL
1238 . "$ac_site_file"
1239 fi
1240done
1241
1242if test -r "$cache_file"; then
503d2be0
AS
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
c0d27fcc 1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
503d2be0
AS
1247echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1252 fi
ba4481b5 1253else
c0d27fcc 1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
503d2be0
AS
1255echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1257fi
1258
1259# Check that the precious variables saved in the cache have kept the same
1260# value.
1261ac_cache_corrupted=false
1262for ac_var in `(set) 2>&1 |
35996d22 1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
503d2be0
AS
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
c0d27fcc 1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
503d2be0
AS
1271echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
c0d27fcc 1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
503d2be0
AS
1275echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1278 *)
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
35996d22 1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
503d2be0 1281echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
35996d22 1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
503d2be0 1283echo "$as_me: former value: $ac_old_val" >&2;}
35996d22 1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
503d2be0 1285echo "$as_me: current value: $ac_new_val" >&2;}
35996d22 1286 ac_cache_corrupted=:
503d2be0
AS
1287 fi;;
1288 esac
c0d27fcc 1289 # Pass precious variables to config.status.
503d2be0
AS
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
c0d27fcc
MR
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
503d2be0
AS
1299 esac
1300 fi
1301done
1302if $ac_cache_corrupted; then
c0d27fcc 1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
503d2be0 1304echo "$as_me: error: changes in the environment can compromise the build" >&2;}
c0d27fcc 1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
503d2be0
AS
1306echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
ba4481b5
DL
1308fi
1309
1310ac_ext=c
ba4481b5 1311ac_cpp='$CPP $CPPFLAGS'
503d2be0
AS
1312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
c0d27fcc
MR
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
ba4481b5 1332
6bae0ccf
DL
1333
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
ba4481b5 1335
c0d27fcc 1336
ba5da88a
PJ
1337test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339# Use a double $ so make ignores it.
1340test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342# Double any \ or $. echo might interpret backslashes.
1343# By default was `s,x,x', remove it if useless.
1344cat <<\_ACEOF >conftest.sed
1345s/[\\$]/&&/g;s/;s,x,x,$//
1346_ACEOF
1347program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348rm conftest.sed
1349
c0d27fcc 1350
ba4481b5
DL
1351lispdir='${datadir}/emacs/${version}/lisp'
1352locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353'${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354lisppath='${locallisppath}:${lispdir}'
1355etcdir='${datadir}/emacs/${version}/etc'
1356archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357docdir='${datadir}/emacs/${version}/etc'
24b01ec4 1358gamedir='${localstatedir}/games/emacs'
98418dba
CW
1359
1360gameuser=games
1361
c0d27fcc 1362
ba4481b5
DL
1363# Check whether --with-gcc or --without-gcc was given.
1364if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
503d2be0
AS
1366
1367fi;
ba4481b5
DL
1368
1369# Check whether --with-pop or --without-pop was given.
1370if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
243cf185 1372 if test "$withval" = yes; then
c0d27fcc 1373 cat >>confdefs.h <<\_ACEOF
ba4481b5 1374#define MAIL_USE_POP 1
c0d27fcc 1375_ACEOF
ba4481b5 1376
243cf185
DL
1377else :
1378fi
3d9fec71 1379else
c0d27fcc 1380 cat >>confdefs.h <<\_ACEOF
3d9fec71 1381#define MAIL_USE_POP 1
c0d27fcc 1382_ACEOF
3d9fec71 1383
503d2be0 1384fi;
ba4481b5 1385
c0d27fcc 1386
a21616bd
KR
1387# Check whether --with-kerberos or --without-kerberos was given.
1388if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
c0d27fcc 1390 cat >>confdefs.h <<\_ACEOF
a21616bd 1391#define KERBEROS 1
c0d27fcc 1392_ACEOF
a21616bd 1393
503d2be0 1394fi;
a21616bd 1395
c0d27fcc 1396
a21616bd
KR
1397# Check whether --with-kerberos5 or --without-kerberos5 was given.
1398if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
c0d27fcc 1403 cat >>confdefs.h <<\_ACEOF
a21616bd 1404#define KERBEROS 1
c0d27fcc 1405_ACEOF
a21616bd
KR
1406
1407 fi
1408fi
b936fae4 1409
c0d27fcc 1410cat >>confdefs.h <<\_ACEOF
a21616bd 1411#define KERBEROS5 1
c0d27fcc 1412_ACEOF
a21616bd 1413
503d2be0 1414fi;
a21616bd 1415
ba4481b5
DL
1416# Check whether --with-hesiod or --without-hesiod was given.
1417if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
b936fae4 1419
c0d27fcc 1420cat >>confdefs.h <<\_ACEOF
ba4481b5 1421#define HESIOD 1
c0d27fcc 1422_ACEOF
ba4481b5 1423
503d2be0 1424fi;
ba4481b5 1425
c0d27fcc 1426
2c9dccc9
PJ
1427# Check whether --with-sound or --without-sound was given.
1428if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1430
1431fi;
1432
c0d27fcc 1433
ba4481b5
DL
1434# Check whether --with-x-toolkit or --without-x-toolkit was given.
1435if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
488dd4c4 1443 g | gt | gtk ) val=gtk ;;
ba4481b5 1444 * )
c0d27fcc 1445{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
488dd4c4 1446this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
503d2be0
AS
1447Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
488dd4c4 1449this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
503d2be0
AS
1450Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
ba4481b5
DL
1452 ;;
1453 esac
1454 with_x_toolkit=$val
1455
503d2be0 1456fi;
ba4481b5
DL
1457
1458# Check whether --with-xpm or --without-xpm was given.
1459if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
503d2be0
AS
1461
1462fi;
ba4481b5
DL
1463
1464# Check whether --with-jpeg or --without-jpeg was given.
1465if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
503d2be0
AS
1467
1468fi;
ba4481b5
DL
1469
1470# Check whether --with-tiff or --without-tiff was given.
1471if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
503d2be0
AS
1473
1474fi;
ba4481b5
DL
1475
1476# Check whether --with-gif or --without-gif was given.
1477if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
503d2be0
AS
1479
1480fi;
ba4481b5
DL
1481
1482# Check whether --with-png or --without-png was given.
1483if test "${with_png+set}" = set; then
1484 withval="$with_png"
503d2be0
AS
1485
1486fi;
ba4481b5 1487
488dd4c4
JD
1488# Check whether --with-gtk or --without-gtk was given.
1489if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1491
1492fi;
1493
1494# Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1497
1498fi;
1499
ba4481b5
DL
1500# Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
503d2be0
AS
1503
1504fi;
ba4481b5 1505
1d36487c
GM
1506# Check whether --with-xim or --without-xim was given.
1507if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1d36487c 1509
503d2be0 1510fi;
ba4481b5 1511
e0f712ba
AC
1512# Check whether --with-carbon or --without-carbon was given.
1513if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1515
1516fi;
6a3a24fa
JD
1517# Check whether --enable-carbon-app or --disable-carbon-app was given.
1518if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1521fi;
e0f712ba 1522
19650fd6
AS
1523# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527else
1528 USE_MAINTAINER_MODE=no
1529fi;
1530if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532else
1533 MAINT=#
1534fi
1535
1536
ba4481b5 1537#### Make srcdir absolute, if it isn't already. It's important to
17494071 1538#### avoid running the path through pwd unnecessarily, since pwd can
ba4481b5
DL
1539#### give you automounter prefixes, which can go away. We do all this
1540#### so Emacs can find its files when run uninstalled.
17494071
GM
1541## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542unset CDPATH
ba4481b5
DL
1543case "${srcdir}" in
1544 /* ) ;;
1545 . )
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
df645f7c
AS
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
ba4481b5
DL
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1556 fi
1557 ;;
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559esac
1560
1561#### Check if the source directory already has a configured system in it.
1562if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
c0d27fcc 1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
503d2be0
AS
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
ba4481b5
DL
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
503d2be0 1575 and then run $0 again." >&2;}
ba4481b5 1576
22044edf 1577extrasub='/^VPATH[ ]*=/c\
ba4481b5
DL
1578vpath %.c $(srcdir)\
1579vpath %.h $(srcdir)\
1580vpath %.y $(srcdir)\
1581vpath %.l $(srcdir)\
1582vpath %.s $(srcdir)\
1583vpath %.in $(srcdir)\
1584vpath %.texi $(srcdir)'
1585fi
1586
1587#### Given the configuration name, set machfile and opsysfile to the
1588#### names of the m/*.h and s/*.h files we should use.
1589
1590### Canonicalize the configuration name.
1591
1592ac_aux_dir=
1593for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594 if test -f $ac_dir/install-sh; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/install-sh -c"
1597 break
1598 elif test -f $ac_dir/install.sh; then
1599 ac_aux_dir=$ac_dir
1600 ac_install_sh="$ac_aux_dir/install.sh -c"
1601 break
503d2be0
AS
1602 elif test -f $ac_dir/shtool; then
1603 ac_aux_dir=$ac_dir
1604 ac_install_sh="$ac_aux_dir/shtool install -c"
1605 break
ba4481b5
DL
1606 fi
1607done
1608if test -z "$ac_aux_dir"; then
c0d27fcc 1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
503d2be0
AS
1610echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
ba4481b5 1612fi
503d2be0
AS
1613ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
ba4481b5
DL
1616
1617# Make sure we can run config.sub.
503d2be0 1618$ac_config_sub sun4 >/dev/null 2>&1 ||
c0d27fcc 1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
503d2be0
AS
1620echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1622
c0d27fcc 1623echo "$as_me:$LINENO: checking build system type" >&5
503d2be0
AS
1624echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_build_alias=$build_alias
1629test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631test -z "$ac_cv_build_alias" &&
c0d27fcc 1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
503d2be0
AS
1633echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
c0d27fcc
MR
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
503d2be0
AS
1638 { (exit 1); exit 1; }; }
1639
1640fi
c0d27fcc 1641echo "$as_me:$LINENO: result: $ac_cv_build" >&5
503d2be0
AS
1642echo "${ECHO_T}$ac_cv_build" >&6
1643build=$ac_cv_build
1644build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
c0d27fcc
MR
1648
1649echo "$as_me:$LINENO: checking host system type" >&5
503d2be0
AS
1650echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 ac_cv_host_alias=$host_alias
1655test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
c0d27fcc 1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
503d2be0
AS
1659echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662fi
c0d27fcc 1663echo "$as_me:$LINENO: result: $ac_cv_host" >&5
503d2be0
AS
1664echo "${ECHO_T}$ac_cv_host" >&6
1665host=$ac_cv_host
1666host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
ba4481b5 1669
c0d27fcc 1670
ba4481b5 1671canonical=$host
531a3336 1672configuration=${host_alias-$host}
ba4481b5 1673
c0d27fcc 1674
22044edf 1675
ba4481b5
DL
1676### If you add support for a new configuration, add code to this
1677### switch statement to recognize your configuration name and select
1678### the appropriate operating system and machine description files.
1679
1680### You would hope that you could choose an m/*.h file pretty much
1681### based on the machine portion of the configuration name, and an s-
1682### file based on the operating system portion. However, it turns out
1683### that each m/*.h file is pretty manufacturer-specific - for
1684### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686### machines. So we basically have to have a special case for each
1687### configuration name.
1688###
1689### As far as handling version numbers on operating systems is
1690### concerned, make sure things will fail in a fixable way. If
1691### /etc/MACHINES doesn't say anything about version numbers, be
1692### prepared to handle anything reasonably. If version numbers
1693### matter, be sure /etc/MACHINES says something about it.
1694###
1695### Eric Raymond says we should accept strings like "sysvr4" to mean
1696### "System V Release 4"; he writes, "The old convention encouraged
1697### confusion between `system' and `release' levels'."
1698
1699machine='' opsys='' unported=no
1700case "${canonical}" in
1701
1096bcc0
GM
1702 ## FreeBSD ports
1703 *-*-freebsd* )
1704 opsys=freebsd
1705 case "${canonical}" in
1706 alpha*-*-freebsd*) machine=alpha ;;
1707 i[3456]86-*-freebsd*) machine=intel386 ;;
1708 esac
1709 ;;
1710
ba4481b5
DL
1711 ## NetBSD ports
1712 *-*-netbsd* )
1713 opsys=netbsd
dd038e26 1714 if test -f /usr/lib/crti.o; then
f57bd967
DL
1715
1716cat >>confdefs.h <<\_ACEOF
1717#define HAVE_CRTIN
dd038e26
AS
1718_ACEOF
1719
1720 fi
1721
ba4481b5
DL
1722 case "${canonical}" in
1723 alpha*-*-netbsd*) machine=alpha ;;
1724 i[3456]86-*-netbsd*) machine=intel386 ;;
1725 m68k-*-netbsd*)
1726 # This is somewhat bogus.
1727 machine=hp9000s300 ;;
1728 powerpc-apple-netbsd*) machine=macppc ;;
1729 mips-*-netbsd*) machine=pmax ;;
2df636f4 1730 mipsel-*-netbsd*) machine=pmax ;;
97836269 1731 mipseb-*-netbsd*) machine=pmax ;;
ba4481b5 1732 ns32k-*-netbsd*) machine=ns32000 ;;
3a64eef5 1733 powerpc-*-netbsd*) machine=macppc ;;
71c9ec51 1734 sparc*-*-netbsd*) machine=sparc ;;
ba4481b5 1735 vax-*-netbsd*) machine=vax ;;
2df636f4 1736 arm-*-netbsd*) machine=arm ;;
ba4481b5
DL
1737 esac
1738 ;;
1739
1740 ## OpenBSD ports
1741 *-*-openbsd* )
1742 opsys=openbsd
1743 case "${canonical}" in
1744 alpha*-*-openbsd*) machine=alpha ;;
1745 i386-*-openbsd*) machine=intel386 ;;
1746 m68k-*-openbsd*) machine=hp9000s300 ;;
1747 mipsel-*-openbsd*) machine=pmax ;;
1748 ns32k-*-openbsd*) machine=ns32000 ;;
1749 sparc-*-openbsd*) machine=sparc ;;
1750 vax-*-openbsd*) machine=vax ;;
1751 esac
1752 ;;
1753
1754 ## Acorn RISCiX:
1755 arm-acorn-riscix1.1* )
1756 machine=acorn opsys=riscix1-1
1757 ;;
1758 arm-acorn-riscix1.2* | arm-acorn-riscix )
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine=acorn opsys=riscix12
1762 ;;
1763
1764 ## BSDI ports
1765 *-*-bsdi* )
1766 opsys=bsdi
1767 case "${canonical}" in
1768 i[345]86-*-bsdi*) machine=intel386 ;;
1769 sparc-*-bsdi*) machine=sparc ;;
3aeecf97 1770 powerpc-*-bsdi*) machine=macppc ;;
ba4481b5
DL
1771 esac
1772 case "${canonical}" in
1773 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1774 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1775 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1776 *-*-bsdi3* ) opsys=bsdos3 ;;
1d06fc82 1777 *-*-bsdi[45]* ) opsys=bsdos4 ;;
ba4481b5
DL
1778 esac
1779 ;;
1780
1781 ## Alliant machines
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1787 fx80-alliant-* )
1788 machine=alliant4 opsys=bsd4-2
1789 ;;
1790 i860-alliant-* )
1791 machine=alliant-2800 opsys=bsd4-3
1792 ;;
1793
1794 ## Alpha (DEC) machines.
1795 alpha*-dec-osf* )
1796 machine=alpha opsys=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1799 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
34979055
DL
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP=/usr/bin/cpp
ca512671 1805 case "${canonical}" in
a55b799a 1806 alpha*-dec-osf[5-9]*)
bb17930d 1807 opsys=osf5-0 ;;
ca512671 1808 esac
ba4481b5
DL
1809 ;;
1810
1811 alpha*-*-linux-gnu* )
1812 machine=alpha opsys=gnu-linux
1813 ;;
1814
c4bb2108
DL
1815 arm*-*-linux-gnu* )
1816 machine=arm opsys=gnu-linux
1817 ;;
1818
1819 ppc-*-linux | \
1820 powerpc-*-linux* )
3aeecf97 1821 machine=macppc opsys=gnu-linux
c4bb2108
DL
1822 ;;
1823
ba4481b5
DL
1824 ## Altos 3068
1825 m68*-altos-sysv* )
1826 machine=altos opsys=usg5-2
1827 ;;
1828
1829 ## Amdahl UTS
1830 580-amdahl-sysv* )
1831 machine=amdahl opsys=usg5-2-2
1832 ;;
1833
1834 ## Apollo, Domain/OS
1835 m68*-apollo-* )
1836 machine=apollo opsys=bsd4-3
1837 ;;
1838
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1840 we32k-att-sysv* )
1841 machine=att3b opsys=usg5-2-2
1842 ;;
1843
1844 ## AT&T 3b1 - The Mighty Unix PC!
1845 m68*-att-sysv* )
1846 machine=7300 opsys=usg5-2-2
1847 ;;
1848
1849 ## Bull dpx20
1850 rs6000-bull-bosx* )
1851 machine=ibmrs6000 opsys=aix3-2
1852 ;;
1853
1854 ## Bull dpx2
1855 m68*-bull-sysv3* )
1856 machine=dpx2 opsys=usg5-3
1857 ;;
1858
1859 ## Bull sps7
1860 m68*-bull-sysv2* )
1861 machine=sps7 opsys=usg5-2
1862 ;;
1863
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1865
1866 ## Celerity
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd* )
1871 machine=celerity opsys=bsd4-2
1872 ;;
1873
1874 ## Clipper
1875 ## What operating systems does this chip run that Emacs has been
1876 ## tested on?
1877 clipper-* )
1878 machine=clipper
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1881 ;;
1882
df645f7c
AS
1883 ## Compaq Nonstop
1884 mips-compaq-nonstopux* )
1885 machine=nonstopux opsys=nonstopux
1886 ;;
1887
ba4481b5
DL
1888 ## Convex
1889 *-convex-bsd* | *-convex-convexos* )
1890 machine=convex opsys=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP="cc -E -P"
1893 ;;
1894
1895 ## Cubix QBx/386
1896 i[3456]86-cubix-sysv* )
1897 machine=intel386 opsys=usg5-3
1898 ;;
1899
1900 ## Cydra 5
1901 cydra*-cydrome-sysv* )
1902 machine=cydra5 opsys=usg5-3
1903 ;;
1904
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1912 machine=aviion opsys=dgux4
1913 ;;
1914 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine=aviion opsys=dgux5-4-3
1918 ;;
1919 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1920 machine=aviion opsys=dgux5-4r2
1921 ;;
1922 m88k-dg-dgux* )
1923 machine=aviion opsys=dgux
1924 ;;
1925
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i[345]86-dg-dguxR4* )
1930 machine=aviion-intel opsys=dgux4
1931 ;;
1932
1933 ## DECstations
1934 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1935 machine=pmax opsys=bsd4-2
1936 ;;
1937 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1938 machine=pmax opsys=bsd4-3
1939 ;;
1940 mips-dec-ultrix* )
1941 machine=pmax opsys=ultrix4-3
1942 ;;
1943 mips-dec-osf* )
1944 machine=pmax opsys=osf1
1945 ;;
1946 mips-dec-mach_bsd4.3* )
1947 machine=pmax opsys=mach-bsd4-3
1948 ;;
1949
cd890796
JD
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv* | m68000-motorola-sysv* )
1952 machine=delta opsys=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1954 then
1955 if test -s /etc/167config
1956 then CC="gnucc -m68040"
1957 else CC="gnucc -m68881"
1958 fi
1959 else
1960 if test -z "`type gcc | grep 'not found'`"
1961 then CC=gcc
1962 else CC=cc
1963 fi
1964 fi
1965 ;;
ba4481b5
DL
1966 m88k-motorola-sysv4* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine=delta88k opsys=usg5-4-2
1972 ;;
1973 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1974 machine=delta88k opsys=usg5-3
1975 ;;
1976
1977 ## Dual machines
1978 m68*-dual-sysv* )
1979 machine=dual opsys=usg5-2
1980 ;;
1981 m68*-dual-uniplus* )
1982 machine=dual opsys=unipl5-2
1983 ;;
1984
1985 ## Elxsi 6400
1986 elxsi-elxsi-sysv* )
1987 machine=elxsi opsys=usg5-2
1988 ;;
1989
1990 ## Encore machines
1991 ns16k-encore-bsd* )
1992 machine=ns16000 opsys=umax
1993 ;;
1994
65171e3a
DL
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
ba4481b5
DL
1997
1998 ## Gould Power Node and NP1
1999 pn-gould-bsd4.2* )
2000 machine=gould opsys=bsd4-2
2001 ;;
2002 pn-gould-bsd4.3* )
2003 machine=gould opsys=bsd4-3
2004 ;;
2005 np1-gould-bsd* )
2006 machine=gould-np1 opsys=bsd4-3
2007 ;;
2008
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2011 m88k-harris-cxux* )
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2015 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2016 esac
2017 NON_GNU_CPP="/lib/cpp"
2018 ;;
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2020 m68k-harris-cxux* )
2021 machine=nh3000 opsys=cxux
2022 ;;
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix )
2025 machine=nh6000 opsys=powerunix
2026 NON_GNU_CPP="cc -Xo -E -P"
2027 ;;
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1-hitachi-hiuxmpp* )
2030 machine=sr2k opsys=hiuxmpp
2031 ;;
89a336fa
GM
2032 hppa1.1-hitachi-hiuxwe2* )
2033 machine=sr2k opsys=hiuxwe2
2034 ;;
ba4481b5
DL
2035 ## Honeywell XPS100
2036 xps*-honeywell-sysv* )
2037 machine=xps100 opsys=usg5-2
2038 ;;
2039
2040 ## HP 9000 series 200 or 300
2041 m68*-hp-bsd* )
2042 machine=hp9000s300 opsys=bsd4-3
2043 ;;
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2045 m68*-hp-hpux* )
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2050 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2051 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2052 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2053 *) machine=hp9000s300 opsys=hpux ;;
2054 esac
2055 ;;
2056
2057 ## HP 9000 series 700 and 800, running HP/UX
2058 hppa*-hp-hpux7* )
2059 machine=hp800 opsys=hpux
2060 ;;
2061 hppa*-hp-hpux8* )
2062 machine=hp800 opsys=hpux8
2063 ;;
2064 hppa*-hp-hpux9shr* )
2065 machine=hp800 opsys=hpux9shr
2066 ;;
2067 hppa*-hp-hpux9* )
2068 machine=hp800 opsys=hpux9
2069 ;;
b0e44248
RB
2070 hppa*-hp-hpux10.2* )
2071 machine=hp800 opsys=hpux10-20
2072 ;;
cc227489 2073 hppa*-hp-hpux10* )
ba4481b5
DL
2074 machine=hp800 opsys=hpux10
2075 ;;
cc227489
MB
2076 hppa*-hp-hpux1[1-9]* )
2077 machine=hp800 opsys=hpux11
2078 ;;
ba4481b5 2079
409d9577
GM
2080 hppa*-*-linux-gnu* )
2081 machine=hp800 opsys=gnu-linux
2082 ;;
2083
ba4481b5
DL
2084 ## HP 9000 series 700 and 800, running HP/UX
2085 hppa*-hp-hpux* )
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2091 *.08.* ) machine=hp800 opsys=hpux8 ;;
2092 *.09.* ) machine=hp800 opsys=hpux9 ;;
2093 *) machine=hp800 opsys=hpux10 ;;
2094 esac
2095 ;;
2096 hppa*-*-nextstep* )
2097 machine=hp800 opsys=nextstep
2098 ;;
2099
2100 ## Orion machines
2101 orion-orion-bsd* )
2102 machine=orion opsys=bsd4-2
2103 ;;
2104 clipper-orion-bsd* )
2105 machine=orion105 opsys=bsd4-2
2106 ;;
2107
2108 ## IBM machines
2109 i[3456]86-ibm-aix1.1* )
2110 machine=ibmps2-aix opsys=usg5-2-2
2111 ;;
2112 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2113 machine=ibmps2-aix opsys=usg5-3
2114 ;;
2115 i370-ibm-aix*)
2116 machine=ibm370aix opsys=usg5-3
2117 ;;
55597d70 2118 s390-*-linux-gnu* )
138f0859
GM
2119 machine=ibms390 opsys=gnu-linux
2120 ;;
ba4481b5
DL
2121 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2122 machine=ibmrs6000 opsys=aix3-1
2123 ;;
2124 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2125 machine=ibmrs6000 opsys=aix3-2-5
2126 ;;
2127 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2128 machine=ibmrs6000 opsys=aix4-1
2129 ;;
2130 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2131 machine=ibmrs6000 opsys=aix4-2
2132 ;;
55597d70 2133 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
d6b82250
EZ
2134 machine=ibmrs6000 opsys=aix4-2
2135 ;;
ba4481b5
DL
2136 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2137 machine=ibmrs6000 opsys=aix4
2138 ;;
2139 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2140 machine=ibmrs6000 opsys=aix4-1
2141 ;;
2142 rs6000-ibm-aix* | powerpc-ibm-aix* )
2143 machine=ibmrs6000 opsys=aix3-2
2144 ;;
2145 romp-ibm-bsd4.3* )
2146 machine=ibmrt opsys=bsd4-3
2147 ;;
2148 romp-ibm-bsd4.2* )
2149 machine=ibmrt opsys=bsd4-2
2150 ;;
2151 romp-ibm-aos4.3* )
2152 machine=ibmrt opsys=bsd4-3
2153 ;;
2154 romp-ibm-aos4.2* )
2155 machine=ibmrt opsys=bsd4-2
2156 ;;
2157 romp-ibm-aos* )
2158 machine=ibmrt opsys=bsd4-3
2159 ;;
2160 romp-ibm-bsd* )
2161 machine=ibmrt opsys=bsd4-3
2162 ;;
2163 romp-ibm-aix* )
2164 machine=ibmrt-aix opsys=usg5-2-2
2165 ;;
2166
2167 ## Integrated Solutions `Optimum V'
2168 m68*-isi-bsd4.2* )
2169 machine=isi-ov opsys=bsd4-2
2170 ;;
2171 m68*-isi-bsd4.3* )
2172 machine=isi-ov opsys=bsd4-3
2173 ;;
2174
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i[3456]86-intsys-sysv* )
2177 machine=is386 opsys=usg5-2-2
2178 ;;
2179
2180 ## Prime EXL
2181 i[3456]86-prime-sysv* )
2182 machine=i386 opsys=usg5-3
2183 ;;
2184
2185 ## Sequent Symmetry running Dynix
2186 i[3456]86-sequent-bsd* )
2187 machine=symmetry opsys=bsd4-3
2188 ;;
2189
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2192 machine=sequent-ptx opsys=ptx4
2193 NON_GNU_CPP=/lib/cpp
2194 ;;
2195
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i[3456]86-sequent-ptx* )
2199 machine=sequent-ptx opsys=ptx
2200 NON_GNU_CPP="/lib/cpp"
2201 ;;
2202
2203 ## ncr machine running svr4.3.
2204 i[3456]86-ncr-sysv4.3 )
2205 machine=ncr386 opsys=usg5-4-3
2206 ;;
2207
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i[3456]86-ncr-sysv* )
2211 machine=ncr386 opsys=usg5-4-2
2212 ;;
2213
2214 ## Intel Paragon OSF/1
2215 i860-intel-osf1* )
2216 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2217 ;;
2218
2219 ## Intel 860
2220 i860-*-sysv4* )
2221 machine=i860 opsys=usg5-4
2222 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2224 ;;
2225
c76e04a8
GM
2226 ## Macintosh PowerPC
2227 powerpc*-*-linux-gnu* )
2228 machine=macppc opsys=gnu-linux
2229 ;;
2230
ba4481b5
DL
2231 ## Masscomp machines
2232 m68*-masscomp-rtu* )
2233 machine=masscomp opsys=rtu
2234 ;;
2235
2236 ## Megatest machines
2237 m68*-megatest-bsd* )
2238 machine=mega68 opsys=bsd4-2
2239 ;;
2240
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2244
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2252 mips-mips-usg* )
2253 machine=mips4
2254 ## Fall through to the general code at the bottom to decide on the OS.
2255 ;;
2256 mips-mips-riscos4* )
2257 machine=mips4 opsys=bsd4-3
2258 NON_GNU_CC="cc -systype bsd43"
2259 NON_GNU_CPP="cc -systype bsd43 -E"
2260 ;;
2261 mips-mips-riscos5* )
2262 machine=mips4 opsys=riscos5
2263 NON_GNU_CC="cc -systype bsd43"
2264 NON_GNU_CPP="cc -systype bsd43 -E"
2265 ;;
2266 mips-mips-bsd* )
2267 machine=mips opsys=bsd4-3
2268 ;;
2269 mips-mips-* )
2270 machine=mips opsys=usg5-2-2
2271 ;;
2272
2273 ## NeXT
2274 m68*-next-* | m68k-*-nextstep* )
2275 machine=m68k opsys=nextstep
2276 ;;
2277
2278 ## The complete machine from National Semiconductor
2279 ns32k-ns-genix* )
2280 machine=ns32000 opsys=usg5-2
2281 ;;
2282
2283 ## NCR machines
2284 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2285 machine=tower32 opsys=usg5-2-2
2286 ;;
2287 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2288 machine=tower32v3 opsys=usg5-3
2289 ;;
2290
2291 ## NEC EWS4800
2292 mips-nec-sysv4*)
2293 machine=ews4800 opsys=ux4800
2294 ;;
2295
2296 ## Nixdorf Targon 31
2297 m68*-nixdorf-sysv* )
2298 machine=targon31 opsys=usg5-2-2
2299 ;;
2300
2301 ## Nu (TI or LMI)
2302 m68*-nu-sysv* )
2303 machine=nu opsys=usg5-2
2304 ;;
2305
2306 ## Plexus
2307 m68*-plexus-sysv* )
2308 machine=plexus opsys=usg5-2
2309 ;;
2310
ba4481b5
DL
2311 ## Pyramid machines
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd* )
2315 machine=pyramid opsys=bsd4-2
2316 ;;
2317
2318 ## Sequent Balance
2319 ns32k-sequent-bsd4.2* )
2320 machine=sequent opsys=bsd4-2
2321 ;;
2322 ns32k-sequent-bsd4.3* )
2323 machine=sequent opsys=bsd4-3
2324 ;;
2325
2326 ## Siemens Nixdorf
2327 mips-siemens-sysv* | mips-sni-sysv*)
2328 machine=mips-siemens opsys=usg5-4
2329 NON_GNU_CC=/usr/ccs/bin/cc
2330 NON_GNU_CPP=/usr/ccs/lib/cpp
2331 ;;
2332
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2335 m68*-sgi-iris3.5* )
2336 machine=irist opsys=iris3-5
2337 ;;
2338 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2339 machine=irist opsys=iris3-6
2340 ;;
2341 ## Iris 4D
2342 mips-sgi-irix3* )
2343 machine=iris4d opsys=irix3-3
2344 ;;
2345 mips-sgi-irix4* )
2346 machine=iris4d opsys=irix4-0
2347 ;;
2348 mips-sgi-irix6.5 )
2349 machine=iris4d opsys=irix6-5
946173ad
DL
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
d42122a3 2354 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
ba4481b5
DL
2355 ;;
2356 mips-sgi-irix6* )
2357 machine=iris4d opsys=irix6-0
c4bb2108 2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
946173ad
DL
2359 # but presumably it does no harm.
2360 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
d42122a3 2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
ba4481b5
DL
2362 NON_GCC_TEST_OPTIONS=-32
2363 ;;
2364 mips-sgi-irix5.[01]* )
2365 machine=iris4d opsys=irix5-0
2366 ;;
2367 mips-sgi-irix5* | mips-sgi-irix* )
2368 machine=iris4d opsys=irix5-2
2369 ;;
2370
2371 ## SONY machines
2372 m68*-sony-bsd4.2* )
2373 machine=news opsys=bsd4-2
2374 ;;
2375 m68*-sony-bsd4.3* )
2376 machine=news opsys=bsd4-3
2377 ;;
2378 m68*-sony-newsos3* | m68*-sony-news3*)
2379 machine=news opsys=bsd4-3
2380 ;;
2381 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2382 machine=news-risc opsys=bsd4-3
2383 ;;
2384 mips-sony-newsos6* )
2385 machine=news-r6 opsys=newsos6
2386 ;;
2387 mips-sony-news* )
2388 machine=news-risc opsys=newsos5
2389 ;;
2390
2391 ## Stride
2392 m68*-stride-sysv* )
2393 machine=stride opsys=usg5-2
2394 ;;
2395
2396 ## Suns
2397 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2398 machine=sparc opsys=gnu-linux
2399 ;;
2400
d054101f 2401 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
ba4481b5
DL
2402 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2403 | rs6000-*-solaris2*)
2404 case "${canonical}" in
2405 m68*-sunos1* ) machine=sun1 ;;
2406 m68*-sunos2* ) machine=sun2 ;;
2407 m68* ) machine=sun3 ;;
2408 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2409 i[3456]86-*-* ) machine=intel386 ;;
2410 powerpcle* ) machine=powerpcle ;;
2411 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2412 sparc* ) machine=sparc ;;
2413 * ) unported=yes ;;
2414 esac
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2418 *-sunos4.0* ) opsys=sunos4-0 ;;
2419 *-sunos4.1.[3-9]*noshare )
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2422 opsys=sunos413
2423 NON_GNU_CPP=/usr/lib/cpp
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2426 ;;
2427 *-sunos4.1.[3-9]* | *-sunos4shr*)
2428 opsys=sunos4shr
2429 NON_GNU_CPP=/usr/lib/cpp
2430 ;;
2431 *-sunos4* | *-sunos )
2432 opsys=sunos4-1
2433 NON_GCC_TEST_OPTIONS=-Bstatic
2434 GCC_TEST_OPTIONS=-static
2435 ;;
2436 *-sunos5.3* | *-solaris2.3* )
2437 opsys=sol2-3
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 ;;
2440 *-sunos5.4* | *-solaris2.4* )
2441 opsys=sol2-4
2442 NON_GNU_CPP=/usr/ccs/lib/cpp
2443 RANLIB="ar -ts"
2444 ;;
2445 *-sunos5.5* | *-solaris2.5* )
2446 opsys=sol2-5
2447 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 RANLIB="ar -ts"
2449 ;;
8e967cf7
MR
2450 *-sunos5.6* | *-solaris2.6* )
2451 opsys=sol2-6
2452 NON_GNU_CPP=/usr/ccs/lib/cpp
2453 RANLIB="ar -ts"
2454 ;;
ba4481b5 2455 *-sunos5* | *-solaris* )
9e71690e 2456 opsys=sol2-6
ba4481b5
DL
2457 NON_GNU_CPP=/usr/ccs/lib/cpp
2458 ;;
2459 * ) opsys=bsd4-2 ;;
2460 esac
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* | *-sunos5* )
2464 if [ "x$CC" = x/usr/ucb/cc ]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2467 unset CC
2468 fi
2469 ;;
2470 *) ;;
2471 esac
2472 ;;
2473 sparc-*-nextstep* )
2474 machine=sparc opsys=nextstep
2475 ;;
2476
2477 ## Tadpole 68k
2478 m68*-tadpole-sysv* )
2479 machine=tad68k opsys=usg5-3
2480 ;;
2481
2482 ## Tahoe machines
2483 tahoe-tahoe-bsd4.2* )
2484 machine=tahoe opsys=bsd4-2
2485 ;;
2486 tahoe-tahoe-bsd4.3* )
2487 machine=tahoe opsys=bsd4-3
2488 ;;
2489
2490 ## Tandem Integrity S2
2491 mips-tandem-sysv* )
2492 machine=tandem-s2 opsys=usg5-3
2493 ;;
2494
2495 ## Tektronix XD88
2496 m88k-tektronix-sysv3* )
2497 machine=tekxd88 opsys=usg5-3
2498 ;;
2499
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd* )
2502 machine=ns16000 opsys=bsd4-2
2503 ;;
2504 ## Tektronix 4300
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68*-tektronix-bsd* )
2507 machine=tek4300 opsys=bsd4-3
2508 ;;
2509
2510 ## Titan P2 or P3
2511 ## We seem to have lost the machine-description file titan.h!
2512 titan-titan-sysv* )
2513 machine=titan opsys=usg5-3
2514 ;;
2515
2516 ## Ustation E30 (SS5E)
2517 m68*-unisys-uniplus* )
2518 machine=ustation opsystem=unipl5-2
2519 ;;
2520
2521 ## Vaxen.
2522 vax-dec-* )
2523 machine=vax
2524 case "${canonical}" in
2525 *-bsd4.1* ) opsys=bsd4-1 ;;
2526 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2527 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2528 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2529 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2530 *-vms* ) opsys=vms ;;
2531 * ) unported=yes
2532 esac
2533 ;;
2534
2535 ## Whitechapel MG1
2536 ns16k-whitechapel-* )
2537 machine=mg1
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2540 ;;
2541
2542 ## Wicat
2543 m68*-wicat-sysv* )
2544 machine=wicat opsys=usg5-2
2545 ;;
2546
f4988be7
GM
2547 ## IA-64
2548 ia64*-*-linux* )
2549 machine=ia64 opsys=gnu-linux
2550 ;;
2551
ba4481b5
DL
2552 ## Intel 386 machines where we don't care about the manufacturer
2553 i[3456]86-*-* )
2554 machine=intel386
2555 case "${canonical}" in
c60ee5e7 2556 *-cygwin ) opsys=cygwin ;;
9f817ea4 2557 *-lynxos* ) opsys=lynxos ;;
ba4481b5
DL
2558 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2559 *-isc2.2* ) opsys=isc2-2 ;;
2560 *-isc4.0* ) opsys=isc4-0 ;;
2561 *-isc4.* ) opsys=isc4-1
2562 GCC_TEST_OPTIONS=-posix
2563 NON_GCC_TEST_OPTIONS=-Xp
2564 ;;
2565 *-isc* ) opsys=isc3-0 ;;
2566 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2567 *-esix* ) opsys=esix ;;
2568 *-xenix* ) opsys=xenix ;;
2569 *-linux-gnu* ) opsys=gnu-linux ;;
2570 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
503d2be0 2571 *-sco3.2v5* ) opsys=sco5
ba4481b5
DL
2572 NON_GNU_CPP=/lib/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS=" "
2576 ;;
2577 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
55597d70
DL
2578 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2579 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
ba4481b5 2580 *-386bsd* ) opsys=386bsd ;;
ba4481b5
DL
2581 *-nextstep* ) opsys=nextstep ;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2583 esac
2584 ;;
2585
2586 ## m68k Linux-based GNU system
2587 m68k-*-linux-gnu* )
2588 machine=m68k opsys=gnu-linux
2589 ;;
2590
2591 ## Mips Linux-based GNU system
cd958eb3 2592 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
ba4481b5
DL
2593 machine=mips opsys=gnu-linux
2594 ;;
2595
2596 ## UXP/DS
2597 sparc-fujitsu-sysv4* )
2598 machine=sparc opsys=uxpds
2599 NON_GNU_CPP=/usr/ccs/lib/cpp
2600 RANLIB="ar -ts"
2601 ;;
2602
2603 ## UXP/V
2604 f301-fujitsu-uxpv4.1)
2605 machine=f301 opsys=uxpv
2606 ;;
2607
e0f712ba
AC
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin* )
2610 machine=powermac opsys=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2a75d75d 2612 CPP="${CC-cc} -E -no-cpp-precomp"
c14dc0ed
AS
2613 # Use fink packages if available.
2614 if test -d /sw/include && test -d /sw/lib; then
2615 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2616 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2617 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2618 fi
e0f712ba
AC
2619 ;;
2620
598a2813
AS
2621 ## AMD x86-64 Linux-based GNU system
2622 x86_64-*-linux-gnu* )
24b01ec4 2623 machine=amdx86-64 opsys=gnu-linux
598a2813
AS
2624 ;;
2625
ba4481b5
DL
2626 * )
2627 unported=yes
2628 ;;
2629esac
2630
2631### If the code above didn't choose an operating system, just choose
2632### an operating system based on the configuration name. You really
2633### only want to use this when you have no idea what the right
2634### operating system is; if you know what operating systems a machine
2635### runs, it's cleaner to make it explicit in the case statement
2636### above.
2637if test x"${opsys}" = x; then
2638 case "${canonical}" in
2639 *-gnu* ) opsys=gnu ;;
2640 *-bsd4.[01] ) opsys=bsd4-1 ;;
2641 *-bsd4.2 ) opsys=bsd4-2 ;;
2642 *-bsd4.3 ) opsys=bsd4-3 ;;
2643 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2644 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2645 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2646 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2647 *-sysv4.2uw* ) opsys=unixware ;;
55597d70
DL
2648 *-sysv5uw* ) opsys=unixware ;;
2649 *-sysv5OpenUNIX* ) opsys=unixware ;;
ba4481b5
DL
2650 *-sysv4.1* | *-sysvr4.1* )
2651 NON_GNU_CPP=/usr/lib/cpp
2652 opsys=usg5-4 ;;
2653 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2654 if [ x$NON_GNU_CPP = x ]; then
2655 if [ -f /usr/ccs/lib/cpp ]; then
2656 NON_GNU_CPP=/usr/ccs/lib/cpp
2657 else
2658 NON_GNU_CPP=/lib/cpp
2659 fi
2660 fi
2661 opsys=usg5-4-2 ;;
2662 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2663 * )
2664 unported=yes
2665 ;;
2666 esac
2667fi
2668
c0d27fcc 2669
22044edf 2670
ba4481b5 2671if test $unported = yes; then
c0d27fcc 2672 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
503d2be0
AS
2673Check \`etc/MACHINES' for recognized configuration names." >&5
2674echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2675Check \`etc/MACHINES' for recognized configuration names." >&2;}
2676 { (exit 1); exit 1; }; }
ba4481b5
DL
2677fi
2678
2679machfile="m/${machine}.h"
2680opsysfile="s/${opsys}.h"
2681
c0d27fcc 2682
ba4481b5
DL
2683#### Choose a compiler.
2684test -n "$CC" && cc_specified=yes
2685
2686# Save the value of CFLAGS that the user specified.
2687SPECIFIED_CFLAGS="$CFLAGS"
2688
2689case ${with_gcc} in
2690 "yes" ) CC="gcc" GCC=yes ;;
2691 "no" ) : ${CC=cc} ;;
503d2be0
AS
2692 * )
2693esac
2694ac_ext=c
2695ac_cpp='$CPP $CPPFLAGS'
2696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701set dummy ${ac_tool_prefix}gcc; ac_word=$2
c0d27fcc 2702echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704if test "${ac_cv_prog_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5
DL
2706else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709else
c0d27fcc
MR
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721done
503d2be0
AS
2722done
2723
ba4481b5
DL
2724fi
2725fi
503d2be0 2726CC=$ac_cv_prog_CC
ba4481b5 2727if test -n "$CC"; then
c0d27fcc 2728 echo "$as_me:$LINENO: result: $CC" >&5
503d2be0
AS
2729echo "${ECHO_T}$CC" >&6
2730else
c0d27fcc 2731 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
2732echo "${ECHO_T}no" >&6
2733fi
2734
2735fi
2736if test -z "$ac_cv_prog_CC"; then
2737 ac_ct_CC=$CC
2738 # Extract the first word of "gcc", so it can be a program name with args.
2739set dummy gcc; ac_word=$2
c0d27fcc 2740echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744else
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747else
c0d27fcc
MR
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_CC="gcc"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
503d2be0
AS
2760done
2761
2762fi
2763fi
2764ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765if test -n "$ac_ct_CC"; then
c0d27fcc 2766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
503d2be0 2767echo "${ECHO_T}$ac_ct_CC" >&6
ba4481b5 2768else
c0d27fcc 2769 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
2770echo "${ECHO_T}no" >&6
2771fi
2772
2773 CC=$ac_ct_CC
2774else
2775 CC="$ac_cv_prog_CC"
ba4481b5
DL
2776fi
2777
2778if test -z "$CC"; then
503d2be0
AS
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781set dummy ${ac_tool_prefix}cc; ac_word=$2
c0d27fcc 2782echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5
DL
2786else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789else
c0d27fcc
MR
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC="${ac_tool_prefix}cc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
503d2be0
AS
2802done
2803
2804fi
2805fi
2806CC=$ac_cv_prog_CC
2807if test -n "$CC"; then
c0d27fcc 2808 echo "$as_me:$LINENO: result: $CC" >&5
503d2be0
AS
2809echo "${ECHO_T}$CC" >&6
2810else
c0d27fcc 2811 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
2812echo "${ECHO_T}no" >&6
2813fi
2814
2815fi
2816if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "cc", so it can be a program name with args.
2819set dummy cc; ac_word=$2
c0d27fcc 2820echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
c0d27fcc
MR
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
503d2be0
AS
2840done
2841
2842fi
2843fi
2844ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845if test -n "$ac_ct_CC"; then
c0d27fcc 2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
503d2be0
AS
2847echo "${ECHO_T}$ac_ct_CC" >&6
2848else
c0d27fcc 2849 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
2850echo "${ECHO_T}no" >&6
2851fi
2852
2853 CC=$ac_ct_CC
2854else
2855 CC="$ac_cv_prog_CC"
2856fi
2857
2858fi
2859if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861set dummy cc; ac_word=$2
c0d27fcc 2862echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869else
2870 ac_prog_rejected=no
c0d27fcc
MR
2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872for as_dir in $PATH
2873do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected=yes
2880 continue
2881 fi
2882 ac_cv_prog_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886done
503d2be0
AS
2887done
2888
ba4481b5
DL
2889if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy $ac_cv_prog_CC
2892 shift
503d2be0 2893 if test $# != 0; then
ba4481b5
DL
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2897 shift
6bae0ccf 2898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ba4481b5
DL
2899 fi
2900fi
2901fi
2902fi
503d2be0 2903CC=$ac_cv_prog_CC
ba4481b5 2904if test -n "$CC"; then
c0d27fcc 2905 echo "$as_me:$LINENO: result: $CC" >&5
503d2be0 2906echo "${ECHO_T}$CC" >&6
ba4481b5 2907else
c0d27fcc 2908 echo "$as_me:$LINENO: result: no" >&5
503d2be0 2909echo "${ECHO_T}no" >&6
ba4481b5
DL
2910fi
2911
503d2be0
AS
2912fi
2913if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 for ac_prog in cl
2916 do
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918set dummy $ac_tool_prefix$ac_prog; ac_word=$2
c0d27fcc 2919echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
c4bb2108
DL
2923else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926else
c0d27fcc
MR
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2937 fi
2938done
503d2be0
AS
2939done
2940
c4bb2108
DL
2941fi
2942fi
503d2be0 2943CC=$ac_cv_prog_CC
c4bb2108 2944if test -n "$CC"; then
c0d27fcc 2945 echo "$as_me:$LINENO: result: $CC" >&5
503d2be0 2946echo "${ECHO_T}$CC" >&6
c4bb2108 2947else
c0d27fcc 2948 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
2949echo "${ECHO_T}no" >&6
2950fi
2951
2952 test -n "$CC" && break
2953 done
2954fi
2955if test -z "$CC"; then
2956 ac_ct_CC=$CC
2957 for ac_prog in cl
2958do
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960set dummy $ac_prog; ac_word=$2
c0d27fcc 2961echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968else
c0d27fcc
MR
2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980done
503d2be0
AS
2981done
2982
c4bb2108 2983fi
503d2be0
AS
2984fi
2985ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986if test -n "$ac_ct_CC"; then
c0d27fcc 2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
503d2be0
AS
2988echo "${ECHO_T}$ac_ct_CC" >&6
2989else
c0d27fcc 2990 echo "$as_me:$LINENO: result: no" >&5
503d2be0 2991echo "${ECHO_T}no" >&6
ba4481b5
DL
2992fi
2993
503d2be0
AS
2994 test -n "$ac_ct_CC" && break
2995done
ba4481b5 2996
503d2be0
AS
2997 CC=$ac_ct_CC
2998fi
2999
3000fi
ba4481b5 3001
c0d27fcc 3002
19650fd6
AS
3003test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3004See \`config.log' for more details." >&5
3005echo "$as_me: error: no acceptable C compiler found in \$PATH
3006See \`config.log' for more details." >&2;}
503d2be0 3007 { (exit 1); exit 1; }; }
c4bb2108 3008
503d2be0 3009# Provide some information about the compiler.
c0d27fcc 3010echo "$as_me:$LINENO:" \
503d2be0
AS
3011 "checking for C compiler version" >&5
3012ac_compiler=`set X $ac_compile; echo $2`
c0d27fcc 3013{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
503d2be0
AS
3014 (eval $ac_compiler --version </dev/null >&5) 2>&5
3015 ac_status=$?
c0d27fcc 3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3017 (exit $ac_status); }
c0d27fcc 3018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
503d2be0
AS
3019 (eval $ac_compiler -v </dev/null >&5) 2>&5
3020 ac_status=$?
c0d27fcc 3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3022 (exit $ac_status); }
c0d27fcc 3023{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
503d2be0
AS
3024 (eval $ac_compiler -V </dev/null >&5) 2>&5
3025 ac_status=$?
c0d27fcc 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3027 (exit $ac_status); }
3028
3029cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3030/* confdefs.h. */
3031_ACEOF
3032cat confdefs.h >>conftest.$ac_ext
3033cat >>conftest.$ac_ext <<_ACEOF
3034/* end confdefs.h. */
c4bb2108 3035
503d2be0
AS
3036int
3037main ()
3038{
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044ac_clean_files_save=$ac_clean_files
19650fd6 3045ac_clean_files="$ac_clean_files a.out a.exe b.out"
503d2be0
AS
3046# Try to create an executable without -o first, disregard a.out.
3047# It will help us diagnose broken compilers, and finding out an intuition
3048# of exeext.
35996d22
AS
3049echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3050echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
503d2be0 3051ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
c0d27fcc 3052if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
503d2be0
AS
3053 (eval $ac_link_default) 2>&5
3054 ac_status=$?
c0d27fcc 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3056 (exit $ac_status); }; then
3057 # Find the output, starting from the most likely. This scheme is
3058# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3059# resort.
c0d27fcc
MR
3060
3061# Be careful to initialize this variable, since it used to be cached.
3062# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3063ac_cv_exeext=
19650fd6
AS
3064# b.out is created by i960 compilers.
3065for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3066do
6bae0ccf 3067 test -f "$ac_file" || continue
503d2be0 3068 case $ac_file in
19650fd6 3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
35996d22 3070 ;;
19650fd6 3071 conftest.$ac_ext )
35996d22
AS
3072 # This is the source file.
3073 ;;
19650fd6 3074 [ab].out )
35996d22
AS
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
19650fd6 3078 *.* )
35996d22
AS
3079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # FIXME: I believe we export ac_cv_exeext for Libtool,
3081 # but it would be cool to find out if it's true. Does anybody
3082 # maintain Libtool? --akim.
3083 export ac_cv_exeext
3084 break;;
19650fd6 3085 * )
35996d22 3086 break;;
503d2be0
AS
3087 esac
3088done
3089else
3090 echo "$as_me: failed program was:" >&5
19650fd6
AS
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
6bae0ccf 3093{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
19650fd6 3094See \`config.log' for more details." >&5
6bae0ccf 3095echo "$as_me: error: C compiler cannot create executables
19650fd6 3096See \`config.log' for more details." >&2;}
503d2be0
AS
3097 { (exit 77); exit 77; }; }
3098fi
3099
3100ac_exeext=$ac_cv_exeext
c0d27fcc 3101echo "$as_me:$LINENO: result: $ac_file" >&5
503d2be0
AS
3102echo "${ECHO_T}$ac_file" >&6
3103
3104# Check the compiler produces executables we can run. If not, either
3105# the compiler is broken, or we cross compile.
c0d27fcc 3106echo "$as_me:$LINENO: checking whether the C compiler works" >&5
503d2be0
AS
3107echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3108# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3109# If not cross compiling, check that we can run a simple program.
3110if test "$cross_compiling" != yes; then
3111 if { ac_try='./$ac_file'
c0d27fcc 3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
c0d27fcc 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3116 (exit $ac_status); }; }; then
3117 cross_compiling=no
ba4481b5 3118 else
503d2be0
AS
3119 if test "$cross_compiling" = maybe; then
3120 cross_compiling=yes
3121 else
c0d27fcc 3122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
19650fd6
AS
3123If you meant to cross compile, use \`--host'.
3124See \`config.log' for more details." >&5
503d2be0 3125echo "$as_me: error: cannot run C compiled programs.
19650fd6
AS
3126If you meant to cross compile, use \`--host'.
3127See \`config.log' for more details." >&2;}
503d2be0
AS
3128 { (exit 1); exit 1; }; }
3129 fi
ba4481b5 3130 fi
503d2be0 3131fi
c0d27fcc 3132echo "$as_me:$LINENO: result: yes" >&5
503d2be0
AS
3133echo "${ECHO_T}yes" >&6
3134
19650fd6 3135rm -f a.out a.exe conftest$ac_cv_exeext b.out
503d2be0
AS
3136ac_clean_files=$ac_clean_files_save
3137# Check the compiler produces executables we can run. If not, either
3138# the compiler is broken, or we cross compile.
c0d27fcc 3139echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
503d2be0 3140echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
c0d27fcc 3141echo "$as_me:$LINENO: result: $cross_compiling" >&5
503d2be0
AS
3142echo "${ECHO_T}$cross_compiling" >&6
3143
c0d27fcc
MR
3144echo "$as_me:$LINENO: checking for suffix of executables" >&5
3145echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
3147 (eval $ac_link) 2>&5
3148 ac_status=$?
c0d27fcc 3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3150 (exit $ac_status); }; then
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153# work properly (i.e., refer to `conftest.exe'), while it won't with
3154# `rm'.
6bae0ccf
DL
3155for ac_file in conftest.exe conftest conftest.*; do
3156 test -f "$ac_file" || continue
503d2be0 3157 case $ac_file in
6bae0ccf 3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
503d2be0 3159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
35996d22
AS
3160 export ac_cv_exeext
3161 break;;
503d2be0
AS
3162 * ) break;;
3163 esac
3164done
ba4481b5 3165else
19650fd6
AS
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167See \`config.log' for more details." >&5
3168echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169See \`config.log' for more details." >&2;}
503d2be0 3170 { (exit 1); exit 1; }; }
ba4481b5 3171fi
ba4481b5 3172
503d2be0 3173rm -f conftest$ac_cv_exeext
c0d27fcc 3174echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
503d2be0 3175echo "${ECHO_T}$ac_cv_exeext" >&6
ba4481b5 3176
503d2be0
AS
3177rm -f conftest.$ac_ext
3178EXEEXT=$ac_cv_exeext
3179ac_exeext=$EXEEXT
c0d27fcc
MR
3180echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
503d2be0
AS
3182if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 3184else
503d2be0 3185 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
ba4481b5 3191
503d2be0
AS
3192int
3193main ()
3194{
ba4481b5 3195
503d2be0
AS
3196 ;
3197 return 0;
3198}
3199_ACEOF
3200rm -f conftest.o conftest.obj
c0d27fcc 3201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
503d2be0
AS
3202 (eval $ac_compile) 2>&5
3203 ac_status=$?
c0d27fcc 3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3205 (exit $ac_status); }; then
3206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3207 case $ac_file in
6bae0ccf 3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
503d2be0
AS
3209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210 break;;
3211 esac
3212done
c4bb2108 3213else
503d2be0 3214 echo "$as_me: failed program was:" >&5
19650fd6
AS
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218See \`config.log' for more details." >&5
3219echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220See \`config.log' for more details." >&2;}
503d2be0 3221 { (exit 1); exit 1; }; }
c4bb2108
DL
3222fi
3223
503d2be0
AS
3224rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225fi
c0d27fcc 3226echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
503d2be0
AS
3227echo "${ECHO_T}$ac_cv_objext" >&6
3228OBJEXT=$ac_cv_objext
3229ac_objext=$OBJEXT
c0d27fcc 3230echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
503d2be0
AS
3231echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3232if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 3234else
503d2be0 3235 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
503d2be0
AS
3241
3242int
3243main ()
3244{
3245#ifndef __GNUC__
3246 choke me
3247#endif
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
c0d27fcc 3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3255 (eval $ac_compile) 2>conftest.er1
503d2be0 3256 ac_status=$?
35996d22
AS
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
c0d27fcc 3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3261 (exit $ac_status); } &&
35996d22
AS
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
c0d27fcc 3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3274 (exit $ac_status); }; }; then
3275 ac_compiler_gnu=yes
3276else
3277 echo "$as_me: failed program was:" >&5
19650fd6
AS
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
503d2be0
AS
3280ac_compiler_gnu=no
3281fi
35996d22 3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
3283ac_cv_c_compiler_gnu=$ac_compiler_gnu
3284
3285fi
c0d27fcc 3286echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
503d2be0
AS
3287echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3288GCC=`test $ac_compiler_gnu = yes && echo yes`
3289ac_test_CFLAGS=${CFLAGS+set}
3290ac_save_CFLAGS=$CFLAGS
3291CFLAGS="-g"
c0d27fcc 3292echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
503d2be0
AS
3293echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3294if test "${ac_cv_prog_cc_g+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
503d2be0
AS
3303
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312rm -f conftest.$ac_objext
c0d27fcc 3313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3314 (eval $ac_compile) 2>conftest.er1
503d2be0 3315 ac_status=$?
35996d22
AS
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
c0d27fcc 3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3320 (exit $ac_status); } &&
35996d22
AS
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
c0d27fcc 3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3333 (exit $ac_status); }; }; then
ba4481b5
DL
3334 ac_cv_prog_cc_g=yes
3335else
503d2be0 3336 echo "$as_me: failed program was:" >&5
19650fd6
AS
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
503d2be0 3339ac_cv_prog_cc_g=no
ba4481b5 3340fi
35996d22 3341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 3342fi
c0d27fcc 3343echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
503d2be0 3344echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c4bb2108 3345if test "$ac_test_CFLAGS" = set; then
503d2be0 3346 CFLAGS=$ac_save_CFLAGS
c4bb2108
DL
3347elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
ba4481b5
DL
3349 CFLAGS="-g -O2"
3350 else
c4bb2108 3351 CFLAGS="-g"
ba4481b5 3352 fi
22afa6e8 3353else
c4bb2108
DL
3354 if test "$GCC" = yes; then
3355 CFLAGS="-O2"
3356 else
3357 CFLAGS=
3358 fi
ba4481b5 3359fi
6bae0ccf
DL
3360echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3361echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3362if test "${ac_cv_prog_cc_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365 ac_cv_prog_cc_stdc=no
3366ac_save_CC=$CC
3367cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3368/* confdefs.h. */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h. */
6bae0ccf
DL
3373#include <stdarg.h>
3374#include <stdio.h>
3375#include <sys/types.h>
3376#include <sys/stat.h>
3377/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378struct buf { int x; };
3379FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380static char *e (p, i)
3381 char **p;
3382 int i;
3383{
3384 return p[i];
3385}
3386static char *f (char * (*g) (char **, int), char **p, ...)
3387{
3388 char *s;
3389 va_list v;
3390 va_start (v,p);
3391 s = g (p, va_arg (v,int));
3392 va_end (v);
3393 return s;
3394}
35996d22
AS
3395
3396/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std1 is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std1. */
3403int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3404
6bae0ccf
DL
3405int test (int i, double x);
3406struct s1 {int (*f) (int a);};
3407struct s2 {int (*f) (double a);};
3408int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409int argc;
3410char **argv;
3411int
3412main ()
3413{
3414return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3415 ;
3416 return 0;
3417}
3418_ACEOF
3419# Don't try gcc -ansi; that turns off useful extensions and
3420# breaks some systems' header files.
3421# AIX -qlanglvl=ansi
3422# Ultrix and OSF/1 -std1
3423# HP-UX 10.20 and later -Ae
3424# HP-UX older versions -Aa -D_HPUX_SOURCE
3425# SVR4 -Xc -D__EXTENSIONS__
3426for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3427do
3428 CC="$ac_save_CC $ac_arg"
3429 rm -f conftest.$ac_objext
3430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3431 (eval $ac_compile) 2>conftest.er1
6bae0ccf 3432 ac_status=$?
35996d22
AS
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
6bae0ccf
DL
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
35996d22
AS
3438 { ac_try='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
6bae0ccf
DL
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_cc_stdc=$ac_arg
3452break
3453else
3454 echo "$as_me: failed program was:" >&5
19650fd6
AS
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
6bae0ccf 3457fi
35996d22 3458rm -f conftest.err conftest.$ac_objext
6bae0ccf
DL
3459done
3460rm -f conftest.$ac_ext conftest.$ac_objext
3461CC=$ac_save_CC
3462
3463fi
3464
3465case "x$ac_cv_prog_cc_stdc" in
3466 x|xno)
3467 echo "$as_me:$LINENO: result: none needed" >&5
3468echo "${ECHO_T}none needed" >&6 ;;
3469 *)
3470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3471echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3472 CC="$CC $ac_cv_prog_cc_stdc" ;;
3473esac
3474
503d2be0
AS
3475# Some people use a C++ compiler to compile C. Since we use `exit',
3476# in C++ we need to declare it. In case someone uses the same compiler
3477# for both compiling C and C++ we need to have the C++ compiler decide
3478# the declaration of exit, since it's the most demanding environment.
3479cat >conftest.$ac_ext <<_ACEOF
3480#ifndef __cplusplus
3481 choke me
3482#endif
3483_ACEOF
3484rm -f conftest.$ac_objext
c0d27fcc 3485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3486 (eval $ac_compile) 2>conftest.er1
503d2be0 3487 ac_status=$?
35996d22
AS
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
c0d27fcc 3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3492 (exit $ac_status); } &&
35996d22
AS
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
c0d27fcc 3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3505 (exit $ac_status); }; }; then
3506 for ac_declaration in \
35996d22 3507 '' \
503d2be0
AS
3508 'extern "C" void std::exit (int) throw (); using std::exit;' \
3509 'extern "C" void std::exit (int); using std::exit;' \
3510 'extern "C" void exit (int) throw ();' \
3511 'extern "C" void exit (int);' \
cffcede7 3512 'void exit (int);'
503d2be0
AS
3513do
3514 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3515/* confdefs.h. */
3516_ACEOF
3517cat confdefs.h >>conftest.$ac_ext
3518cat >>conftest.$ac_ext <<_ACEOF
3519/* end confdefs.h. */
57669b57 3520$ac_declaration
35996d22 3521#include <stdlib.h>
503d2be0
AS
3522int
3523main ()
3524{
3525exit (42);
3526 ;
3527 return 0;
3528}
3529_ACEOF
3530rm -f conftest.$ac_objext
c0d27fcc 3531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3532 (eval $ac_compile) 2>conftest.er1
503d2be0 3533 ac_status=$?
35996d22
AS
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
c0d27fcc 3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3538 (exit $ac_status); } &&
35996d22
AS
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
c0d27fcc 3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3551 (exit $ac_status); }; }; then
3552 :
3553else
3554 echo "$as_me: failed program was:" >&5
19650fd6
AS
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
503d2be0
AS
3557continue
3558fi
35996d22 3559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0 3560 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3561/* confdefs.h. */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h. */
503d2be0
AS
3566$ac_declaration
3567int
3568main ()
3569{
3570exit (42);
3571 ;
3572 return 0;
3573}
3574_ACEOF
3575rm -f conftest.$ac_objext
c0d27fcc 3576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3577 (eval $ac_compile) 2>conftest.er1
503d2be0 3578 ac_status=$?
35996d22
AS
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
c0d27fcc 3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3583 (exit $ac_status); } &&
35996d22
AS
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
c0d27fcc 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3596 (exit $ac_status); }; }; then
3597 break
3598else
3599 echo "$as_me: failed program was:" >&5
19650fd6
AS
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
503d2be0 3602fi
35996d22 3603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
3604done
3605rm -f conftest*
3606if test -n "$ac_declaration"; then
3607 echo '#ifdef __cplusplus' >>confdefs.h
3608 echo $ac_declaration >>confdefs.h
3609 echo '#endif' >>confdefs.h
3610fi
ba4481b5 3611
503d2be0
AS
3612else
3613 echo "$as_me: failed program was:" >&5
19650fd6
AS
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
503d2be0 3616fi
35996d22 3617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
3618ac_ext=c
3619ac_cpp='$CPP $CPPFLAGS'
3620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622ac_compiler_gnu=$ac_cv_c_compiler_gnu
ba4481b5 3623
c0d27fcc 3624
ba4481b5
DL
3625# On Suns, sometimes $CPP names a directory.
3626if test -n "$CPP" && test -d "$CPP"; then
3627 CPP=
3628fi
3629
3630#### Some systems specify a CPP to use unless we are using GCC.
3631#### Now that we know whether we are using GCC, we can decide whether
3632#### to use that one.
3633if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3634then
3635 CPP="$NON_GNU_CPP"
3636fi
3637
3638#### Some systems specify a CC to use unless we are using GCC.
3639#### Now that we know whether we are using GCC, we can decide whether
3640#### to use that one.
3641if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3642 test x$cc_specified != xyes
3643then
3644 CC="$NON_GNU_CC"
3645fi
3646
3647if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3648then
3649 CC="$CC $GCC_TEST_OPTIONS"
3650fi
3651
3652if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3653then
3654 CC="$CC $NON_GCC_TEST_OPTIONS"
3655fi
3656
6a3a24fa 3657#### Some other nice autoconf tests.
ba4481b5 3658
c0d27fcc 3659echo "$as_me:$LINENO: checking whether ln -s works" >&5
503d2be0
AS
3660echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3661LN_S=$as_ln_s
3662if test "$LN_S" = "ln -s"; then
c0d27fcc 3663 echo "$as_me:$LINENO: result: yes" >&5
503d2be0 3664echo "${ECHO_T}yes" >&6
ba4481b5 3665else
c0d27fcc 3666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
503d2be0 3667echo "${ECHO_T}no, using $LN_S" >&6
ba4481b5
DL
3668fi
3669
503d2be0
AS
3670ac_ext=c
3671ac_cpp='$CPP $CPPFLAGS'
3672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674ac_compiler_gnu=$ac_cv_c_compiler_gnu
c0d27fcc 3675echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
503d2be0 3676echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
ba4481b5
DL
3677# On Suns, sometimes $CPP names a directory.
3678if test -n "$CPP" && test -d "$CPP"; then
3679 CPP=
3680fi
3681if test -z "$CPP"; then
503d2be0
AS
3682 if test "${ac_cv_prog_CPP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685 # Double quotes because CPP needs to be expanded
3686 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3687 do
3688 ac_preproc_ok=false
3689for ac_c_preproc_warn_flag in '' yes
3690do
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
19650fd6
AS
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
ba4481b5 3695 # On the NeXT, cc -E runs the code through the compiler's parser,
503d2be0
AS
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3698/* confdefs.h. */
3699_ACEOF
3700cat confdefs.h >>conftest.$ac_ext
3701cat >>conftest.$ac_ext <<_ACEOF
3702/* end confdefs.h. */
3703#ifdef __STDC__
3704# include <limits.h>
3705#else
3706# include <assert.h>
3707#endif
35996d22 3708 Syntax error
503d2be0 3709_ACEOF
c0d27fcc 3710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712 ac_status=$?
6bae0ccf 3713 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
3714 rm -f conftest.er1
3715 cat conftest.err >&5
c0d27fcc 3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3717 (exit $ac_status); } >/dev/null; then
3718 if test -s conftest.err; then
3719 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 3720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
3721 else
3722 ac_cpp_err=
3723 fi
3724else
3725 ac_cpp_err=yes
3726fi
3727if test -z "$ac_cpp_err"; then
ba4481b5
DL
3728 :
3729else
503d2be0 3730 echo "$as_me: failed program was:" >&5
19650fd6
AS
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
503d2be0
AS
3733 # Broken: fails on valid input.
3734continue
3735fi
3736rm -f conftest.err conftest.$ac_ext
3737
3738 # OK, works on sane cases. Now check whether non-existent headers
3739 # can be detected and how.
3740 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
503d2be0
AS
3746#include <ac_nonexistent.h>
3747_ACEOF
c0d27fcc 3748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
3749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3750 ac_status=$?
6bae0ccf 3751 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
3752 rm -f conftest.er1
3753 cat conftest.err >&5
c0d27fcc 3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3755 (exit $ac_status); } >/dev/null; then
3756 if test -s conftest.err; then
3757 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 3758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
3759 else
3760 ac_cpp_err=
3761 fi
3762else
3763 ac_cpp_err=yes
3764fi
3765if test -z "$ac_cpp_err"; then
3766 # Broken: success on invalid input.
3767continue
c4bb2108 3768else
503d2be0 3769 echo "$as_me: failed program was:" >&5
19650fd6
AS
3770sed 's/^/| /' conftest.$ac_ext >&5
3771
503d2be0
AS
3772 # Passes both tests.
3773ac_preproc_ok=:
3774break
3775fi
3776rm -f conftest.err conftest.$ac_ext
3777
3778done
3779# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780rm -f conftest.err conftest.$ac_ext
3781if $ac_preproc_ok; then
3782 break
3783fi
3784
3785 done
3786 ac_cv_prog_CPP=$CPP
3787
3788fi
3789 CPP=$ac_cv_prog_CPP
3790else
3791 ac_cv_prog_CPP=$CPP
3792fi
c0d27fcc 3793echo "$as_me:$LINENO: result: $CPP" >&5
503d2be0
AS
3794echo "${ECHO_T}$CPP" >&6
3795ac_preproc_ok=false
3796for ac_c_preproc_warn_flag in '' yes
3797do
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
19650fd6
AS
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
503d2be0
AS
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3805/* confdefs.h. */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h. */
3810#ifdef __STDC__
3811# include <limits.h>
3812#else
3813# include <assert.h>
3814#endif
35996d22 3815 Syntax error
503d2be0 3816_ACEOF
c0d27fcc 3817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
3818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3819 ac_status=$?
6bae0ccf 3820 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
3821 rm -f conftest.er1
3822 cat conftest.err >&5
c0d27fcc 3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3824 (exit $ac_status); } >/dev/null; then
3825 if test -s conftest.err; then
3826 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 3827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
3828 else
3829 ac_cpp_err=
3830 fi
3831else
3832 ac_cpp_err=yes
3833fi
3834if test -z "$ac_cpp_err"; then
ba4481b5
DL
3835 :
3836else
503d2be0 3837 echo "$as_me: failed program was:" >&5
19650fd6
AS
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
503d2be0
AS
3840 # Broken: fails on valid input.
3841continue
3842fi
3843rm -f conftest.err conftest.$ac_ext
3844
3845 # OK, works on sane cases. Now check whether non-existent headers
3846 # can be detected and how.
3847 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3848/* confdefs.h. */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
3852/* end confdefs.h. */
503d2be0
AS
3853#include <ac_nonexistent.h>
3854_ACEOF
c0d27fcc 3855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857 ac_status=$?
6bae0ccf 3858 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
3859 rm -f conftest.er1
3860 cat conftest.err >&5
c0d27fcc 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3862 (exit $ac_status); } >/dev/null; then
3863 if test -s conftest.err; then
3864 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 3865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
3866 else
3867 ac_cpp_err=
3868 fi
3869else
3870 ac_cpp_err=yes
c4bb2108 3871fi
503d2be0
AS
3872if test -z "$ac_cpp_err"; then
3873 # Broken: success on invalid input.
3874continue
3875else
3876 echo "$as_me: failed program was:" >&5
19650fd6
AS
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
503d2be0
AS
3879 # Passes both tests.
3880ac_preproc_ok=:
3881break
ba4481b5 3882fi
503d2be0
AS
3883rm -f conftest.err conftest.$ac_ext
3884
3885done
3886# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887rm -f conftest.err conftest.$ac_ext
3888if $ac_preproc_ok; then
3889 :
ba4481b5 3890else
19650fd6
AS
3891 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3892See \`config.log' for more details." >&5
3893echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3894See \`config.log' for more details." >&2;}
503d2be0 3895 { (exit 1); exit 1; }; }
ba4481b5 3896fi
503d2be0
AS
3897
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
ba4481b5
DL
3903
3904# Find a good install program. We prefer a C program (faster),
3905# so one script is as good as another. But avoid the broken or
3906# incompatible versions:
3907# SysV /etc/install, /usr/sbin/install
3908# SunOS /usr/etc/install
3909# IRIX /sbin/install
3910# AIX /bin/install
503d2be0 3911# AmigaOS /C/install, which installs bootblocks on floppy discs
c4bb2108 3912# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ba4481b5
DL
3913# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3914# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35996d22 3915# OS/2's system install, which has a completely different semantic
ba4481b5 3916# ./install, which can be erroneously created by make from ./install.sh.
c0d27fcc
MR
3917echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3918echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
ba4481b5 3919if test -z "$INSTALL"; then
503d2be0
AS
3920if test "${ac_cv_path_install+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 3922else
c0d27fcc
MR
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 # Account for people who put trailing slashes in PATH elements.
3929case $as_dir/ in
3930 ./ | .// | /cC/* | \
3931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
35996d22 3932 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
c0d27fcc
MR
3933 /usr/ucb/* ) ;;
3934 *)
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3937 # by default.
3938 for ac_prog in ginstall scoinst install; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
35996d22
AS
3940 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3941 if test $ac_prog = install &&
3942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3944 :
3945 elif test $ac_prog = install &&
3946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3948 :
3949 else
3950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3951 break 3
3952 fi
3953 fi
ba4481b5 3954 done
c0d27fcc
MR
3955 done
3956 ;;
3957esac
3958done
3959
ba4481b5
DL
3960
3961fi
3962 if test "${ac_cv_path_install+set}" = set; then
503d2be0 3963 INSTALL=$ac_cv_path_install
ba4481b5
DL
3964 else
3965 # As a last resort, use the slow shell script. We don't cache a
3966 # path for INSTALL within a source directory, because that will
3967 # break other packages using the cache if that directory is
3968 # removed, or if the path is relative.
503d2be0 3969 INSTALL=$ac_install_sh
ba4481b5
DL
3970 fi
3971fi
c0d27fcc 3972echo "$as_me:$LINENO: result: $INSTALL" >&5
503d2be0 3973echo "${ECHO_T}$INSTALL" >&6
ba4481b5
DL
3974
3975# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976# It thinks the first close brace ends the variable substitution.
3977test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3978
503d2be0 3979test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
c4bb2108 3980
ba4481b5
DL
3981test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3982
c0d27fcc
MR
3983if test "x$RANLIB" = x; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3987echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0 3988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c0d27fcc 3989if test "${ac_cv_prog_RANLIB+set}" = set; then
503d2be0 3990 echo $ECHO_N "(cached) $ECHO_C" >&6
7397acc4
DL
3991else
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3994else
c0d27fcc
MR
3995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH
3997do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4005 fi
4006done
503d2be0
AS
4007done
4008
7397acc4
DL
4009fi
4010fi
503d2be0 4011RANLIB=$ac_cv_prog_RANLIB
7397acc4 4012if test -n "$RANLIB"; then
c0d27fcc 4013 echo "$as_me:$LINENO: result: $RANLIB" >&5
503d2be0
AS
4014echo "${ECHO_T}$RANLIB" >&6
4015else
c0d27fcc 4016 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
4017echo "${ECHO_T}no" >&6
4018fi
4019
4020fi
4021if test -z "$ac_cv_prog_RANLIB"; then
4022 ac_ct_RANLIB=$RANLIB
4023 # Extract the first word of "ranlib", so it can be a program name with args.
4024set dummy ranlib; ac_word=$2
c0d27fcc 4025echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
4026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030 if test -n "$ac_ct_RANLIB"; then
4031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4032else
c0d27fcc
MR
4033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_RANLIB="ranlib"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044done
503d2be0
AS
4045done
4046
4047 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4048fi
4049fi
4050ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4051if test -n "$ac_ct_RANLIB"; then
c0d27fcc 4052 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
503d2be0
AS
4053echo "${ECHO_T}$ac_ct_RANLIB" >&6
4054else
c0d27fcc 4055 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
4056echo "${ECHO_T}no" >&6
4057fi
4058
4059 RANLIB=$ac_ct_RANLIB
7397acc4 4060else
503d2be0 4061 RANLIB="$ac_cv_prog_RANLIB"
7397acc4
DL
4062fi
4063
4064fi
9e71690e
DK
4065# Extract the first word of "install-info", so it can be a program name with args.
4066set dummy install-info; ac_word=$2
4067echo "$as_me:$LINENO: checking for $ac_word" >&5
4068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072 case $INSTALL_INFO in
4073 [\\/]* | ?:[\\/]*)
4074 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4075 ;;
4076 *)
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088done
4089done
4090
4091 ;;
4092esac
4093fi
4094INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4095
4096if test -n "$INSTALL_INFO"; then
4097 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4098echo "${ECHO_T}$INSTALL_INFO" >&6
4099else
4100 echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
4102fi
4103
4104# Extract the first word of "install-info", so it can be a program name with args.
4105set dummy install-info; ac_word=$2
4106echo "$as_me:$LINENO: checking for $ac_word" >&5
4107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111 case $INSTALL_INFO in
4112 [\\/]* | ?:[\\/]*)
4113 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4114 ;;
4115 *)
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in /usr/sbin
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127done
4128done
4129
4130 ;;
4131esac
4132fi
4133INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4134
4135if test -n "$INSTALL_INFO"; then
4136 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4137echo "${ECHO_T}$INSTALL_INFO" >&6
4138else
4139 echo "$as_me:$LINENO: result: no" >&5
4140echo "${ECHO_T}no" >&6
4141fi
4142
4143# Extract the first word of "install-info", so it can be a program name with args.
4144set dummy install-info; ac_word=$2
4145echo "$as_me:$LINENO: checking for $ac_word" >&5
4146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150 case $INSTALL_INFO in
4151 [\\/]* | ?:[\\/]*)
4152 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4153 ;;
4154 *)
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in /sbin
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166done
4167done
4168
4169 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4170 ;;
4171esac
4172fi
4173INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4174
4175if test -n "$INSTALL_INFO"; then
4176 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4177echo "${ECHO_T}$INSTALL_INFO" >&6
4178else
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
4181fi
4182
ba4481b5 4183
c0d27fcc 4184
8e967cf7
MR
4185if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4186then
4187 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4188fi
4189
4190if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4191then
4192 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4193fi
4194
c0d27fcc 4195
fe239f0f
AS
4196late_LDFLAGS=$LDFLAGS
4197if test $GCC = yes; then
4198 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4199else
4200 LDFLAGS="$LDFLAGS -znocombreloc"
4201fi
4202
4203echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4204echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4205
4206cat >conftest.$ac_ext <<_ACEOF
4207main(){return 0;}
4208_ACEOF
4209rm -f conftest.$ac_objext conftest$ac_exeext
4210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211 (eval $ac_link) 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -z "$ac_c_werror_flag"
4219 || test ! -s conftest.err'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try='test -s conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 echo "$as_me:$LINENO: result: yes" >&5
4232echo "${ECHO_T}yes" >&6
4233else
4234 echo "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4237LDFLAGS=$late_LDFLAGS
4238 echo "$as_me:$LINENO: result: no" >&5
4239echo "${ECHO_T}no" >&6
4240fi
4241rm -f conftest.err conftest.$ac_objext \
4242 conftest$ac_exeext conftest.$ac_ext
4243
c0d27fcc 4244
6bae0ccf
DL
4245echo "$as_me:$LINENO: checking for egrep" >&5
4246echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4247if test "${ac_cv_prog_egrep+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4251 then ac_cv_prog_egrep='grep -E'
4252 else ac_cv_prog_egrep='egrep'
4253 fi
4254fi
4255echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4256echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4257 EGREP=$ac_cv_prog_egrep
4258
4259
c0d27fcc
MR
4260
4261echo "$as_me:$LINENO: checking for AIX" >&5
503d2be0
AS
4262echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4263cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
ba4481b5
DL
4269#ifdef _AIX
4270 yes
4271#endif
4272
503d2be0 4273_ACEOF
ba4481b5 4274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 4275 $EGREP "yes" >/dev/null 2>&1; then
c0d27fcc 4276 echo "$as_me:$LINENO: result: yes" >&5
503d2be0 4277echo "${ECHO_T}yes" >&6
c0d27fcc 4278cat >>confdefs.h <<\_ACEOF
ba4481b5 4279#define _ALL_SOURCE 1
c0d27fcc 4280_ACEOF
ba4481b5
DL
4281
4282else
c0d27fcc 4283 echo "$as_me:$LINENO: result: no" >&5
503d2be0 4284echo "${ECHO_T}no" >&6
ba4481b5
DL
4285fi
4286rm -f conftest*
4287
c0d27fcc
MR
4288
4289
3b33a005
DL
4290#### Extract some information from the operating system and machine files.
4291
c0d27fcc 4292{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3b33a005 4293 - which libraries the lib-src programs will want, and
503d2be0
AS
4294 - whether the GNU malloc routines are usable..." >&5
4295echo "$as_me: checking the machine- and system-dependent files to find out
3b33a005 4296 - which libraries the lib-src programs will want, and
503d2be0 4297 - whether the GNU malloc routines are usable..." >&6;}
3b33a005
DL
4298
4299### First figure out CFLAGS (which we use for running the compiler here)
4300### and REAL_CFLAGS (which we use for real compilation).
4301### The two are the same except on a few systems, where they are made
4302### different to work around various lossages. For example,
4303### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4304### as implying static linking.
4305
4306### If the CFLAGS env var is specified, we use that value
4307### instead of the default.
4308
4309### It's not important that this name contain the PID; you can't run
4310### two configures in the same directory and have anything work
4311### anyway.
4312tempcname="conftest.c"
4313
4314echo '
4315#include "'${srcdir}'/src/'${opsysfile}'"
4316#include "'${srcdir}'/src/'${machfile}'"
4317#ifndef LIBS_MACHINE
4318#define LIBS_MACHINE
4319#endif
4320#ifndef LIBS_SYSTEM
4321#define LIBS_SYSTEM
4322#endif
4323#ifndef C_SWITCH_SYSTEM
4324#define C_SWITCH_SYSTEM
4325#endif
4326#ifndef C_SWITCH_MACHINE
4327#define C_SWITCH_MACHINE
4328#endif
4329configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4330configure___ c_switch_system=C_SWITCH_SYSTEM
4331configure___ c_switch_machine=C_SWITCH_MACHINE
4332
4333#ifndef LIB_X11_LIB
4334#define LIB_X11_LIB -lX11
4335#endif
4336
4337#ifndef LIBX11_MACHINE
4338#define LIBX11_MACHINE
4339#endif
4340
4341#ifndef LIBX11_SYSTEM
4342#define LIBX11_SYSTEM
4343#endif
4344configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4345
4346#ifdef UNEXEC
4347configure___ unexec=UNEXEC
4348#else
4349configure___ unexec=unexec.o
4350#endif
4351
4352#ifdef SYSTEM_MALLOC
4353configure___ system_malloc=yes
4354#else
4355configure___ system_malloc=no
4356#endif
4357
ef9e4345
GM
4358#ifdef USE_MMAP_FOR_BUFFERS
4359configure___ use_mmap_for_buffers=yes
73b77ee5 4360#else
ef9e4345 4361configure___ use_mmap_for_buffers=no
73b77ee5
GM
4362#endif
4363
3b33a005
DL
4364#ifndef C_DEBUG_SWITCH
4365#define C_DEBUG_SWITCH -g
4366#endif
4367
4368#ifndef C_OPTIMIZE_SWITCH
4369#ifdef __GNUC__
4370#define C_OPTIMIZE_SWITCH -O2
4371#else
4372#define C_OPTIMIZE_SWITCH -O
4373#endif
4374#endif
4375
4376#ifndef LD_SWITCH_MACHINE
4377#define LD_SWITCH_MACHINE
4378#endif
4379
4380#ifndef LD_SWITCH_SYSTEM
4381#define LD_SWITCH_SYSTEM
4382#endif
4383
4384#ifndef LD_SWITCH_X_SITE_AUX
4385#define LD_SWITCH_X_SITE_AUX
503d2be0 4386#endif
3b33a005
DL
4387
4388configure___ ld_switch_system=LD_SWITCH_SYSTEM
4389configure___ ld_switch_machine=LD_SWITCH_MACHINE
4390
4391#ifdef THIS_IS_CONFIGURE
4392
4393/* Get the CFLAGS for tests in configure. */
4394#ifdef __GNUC__
4395configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4396#else
4397configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4398#endif
4399
4400#else /* not THIS_IS_CONFIGURE */
4401
4402/* Get the CFLAGS for real compilation. */
4403#ifdef __GNUC__
4404configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4405#else
4406configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4407#endif
4408
4409#endif /* not THIS_IS_CONFIGURE */
4410' > ${tempcname}
4411
4412# The value of CPP is a quoted variable reference, so we need to do this
4413# to get its actual value...
4414CPP=`eval "echo $CPP"`
4415eval `${CPP} -Isrc ${tempcname} \
4416 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4417if test "x$SPECIFIED_CFLAGS" = x; then
4418 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4419 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4420else
4421 REAL_CFLAGS="$CFLAGS"
4422fi
4423rm ${tempcname}
4424
4425ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4426
4427### Make sure subsequent tests use flags consistent with the build flags.
4428
4429if test x"${OVERRIDE_CPPFLAGS}" != x; then
4430 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4431else
4432 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4433fi
4434
6bae0ccf
DL
4435
4436
22044edf
DL
4437
4438cat >>confdefs.h <<\_ACEOF
4439#define _GNU_SOURCE 1
4440_ACEOF
4441
4442
4443
503d2be0 4444# Check whether --enable-largefile or --disable-largefile was given.
f4988be7
GM
4445if test "${enable_largefile+set}" = set; then
4446 enableval="$enable_largefile"
f4988be7 4447
503d2be0
AS
4448fi;
4449if test "$enable_largefile" != no; then
f4988be7 4450
c0d27fcc 4451 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
503d2be0
AS
4452echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4453if test "${ac_cv_sys_largefile_CC+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 4455else
f4988be7 4456 ac_cv_sys_largefile_CC=no
503d2be0
AS
4457 if test "$GCC" != yes; then
4458 ac_save_CC=$CC
4459 while :; do
4460 # IRIX 6.2 and later do not support large files by default,
4461 # so use the C compiler's -n32 option if that helps.
35996d22 4462 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
f4988be7 4468#include <sys/types.h>
503d2be0
AS
4469 /* Check that off_t can represent 2**63 - 1 correctly.
4470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4471 since some C++ compilers masquerading as C compilers
4472 incorrectly reject 9223372036854775807. */
4473#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4475 && LARGE_OFF_T % 2147483647 == 1)
4476 ? 1 : -1];
4477int
4478main ()
4479{
f4988be7 4480
503d2be0
AS
4481 ;
4482 return 0;
4483}
4484_ACEOF
4485 rm -f conftest.$ac_objext
c0d27fcc 4486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4487 (eval $ac_compile) 2>conftest.er1
503d2be0 4488 ac_status=$?
35996d22
AS
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
c0d27fcc 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4493 (exit $ac_status); } &&
35996d22
AS
4494 { ac_try='test -z "$ac_c_werror_flag"
4495 || test ! -s conftest.err'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
c0d27fcc 4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4506 (exit $ac_status); }; }; then
4507 break
b192d653 4508else
503d2be0 4509 echo "$as_me: failed program was:" >&5
19650fd6
AS
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
503d2be0 4512fi
35996d22 4513rm -f conftest.err conftest.$ac_objext
503d2be0
AS
4514 CC="$CC -n32"
4515 rm -f conftest.$ac_objext
c0d27fcc 4516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4517 (eval $ac_compile) 2>conftest.er1
503d2be0 4518 ac_status=$?
35996d22
AS
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
c0d27fcc 4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4523 (exit $ac_status); } &&
35996d22
AS
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
c0d27fcc 4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4536 (exit $ac_status); }; }; then
4537 ac_cv_sys_largefile_CC=' -n32'; break
4538else
4539 echo "$as_me: failed program was:" >&5
19650fd6
AS
4540sed 's/^/| /' conftest.$ac_ext >&5
4541
503d2be0 4542fi
35996d22
AS
4543rm -f conftest.err conftest.$ac_objext
4544 break
503d2be0
AS
4545 done
4546 CC=$ac_save_CC
4547 rm -f conftest.$ac_ext
4548 fi
b192d653 4549fi
c0d27fcc 4550echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
503d2be0
AS
4551echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4552 if test "$ac_cv_sys_largefile_CC" != no; then
4553 CC=$CC$ac_cv_sys_largefile_CC
4554 fi
b192d653 4555
c0d27fcc 4556 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
503d2be0
AS
4557echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4558if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 4560else
503d2be0 4561 while :; do
f4988be7 4562 ac_cv_sys_file_offset_bits=no
503d2be0 4563 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4564/* confdefs.h. */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h. */
f4988be7 4569#include <sys/types.h>
503d2be0
AS
4570 /* Check that off_t can represent 2**63 - 1 correctly.
4571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4572 since some C++ compilers masquerading as C compilers
4573 incorrectly reject 9223372036854775807. */
4574#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4576 && LARGE_OFF_T % 2147483647 == 1)
4577 ? 1 : -1];
4578int
4579main ()
4580{
f4988be7 4581
503d2be0
AS
4582 ;
4583 return 0;
4584}
4585_ACEOF
4586rm -f conftest.$ac_objext
c0d27fcc 4587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4588 (eval $ac_compile) 2>conftest.er1
503d2be0 4589 ac_status=$?
35996d22
AS
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
c0d27fcc 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4594 (exit $ac_status); } &&
35996d22
AS
4595 { ac_try='test -z "$ac_c_werror_flag"
4596 || test ! -s conftest.err'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; } &&
4602 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
c0d27fcc 4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4607 (exit $ac_status); }; }; then
4608 break
f4988be7 4609else
503d2be0 4610 echo "$as_me: failed program was:" >&5
19650fd6
AS
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
503d2be0 4613fi
35996d22 4614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0 4615 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4616/* confdefs.h. */
4617_ACEOF
4618cat confdefs.h >>conftest.$ac_ext
4619cat >>conftest.$ac_ext <<_ACEOF
4620/* end confdefs.h. */
f4988be7
GM
4621#define _FILE_OFFSET_BITS 64
4622#include <sys/types.h>
503d2be0
AS
4623 /* Check that off_t can represent 2**63 - 1 correctly.
4624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4625 since some C++ compilers masquerading as C compilers
4626 incorrectly reject 9223372036854775807. */
4627#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4629 && LARGE_OFF_T % 2147483647 == 1)
4630 ? 1 : -1];
4631int
4632main ()
4633{
4634
4635 ;
4636 return 0;
4637}
4638_ACEOF
4639rm -f conftest.$ac_objext
c0d27fcc 4640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4641 (eval $ac_compile) 2>conftest.er1
503d2be0 4642 ac_status=$?
35996d22
AS
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
c0d27fcc 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4647 (exit $ac_status); } &&
35996d22
AS
4648 { ac_try='test -z "$ac_c_werror_flag"
4649 || test ! -s conftest.err'
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); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
c0d27fcc 4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4660 (exit $ac_status); }; }; then
4661 ac_cv_sys_file_offset_bits=64; break
4662else
4663 echo "$as_me: failed program was:" >&5
19650fd6
AS
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
503d2be0 4666fi
35996d22 4667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
4668 break
4669done
ba4481b5 4670fi
c0d27fcc 4671echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
503d2be0
AS
4672echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4673if test "$ac_cv_sys_file_offset_bits" != no; then
ba4481b5 4674
c0d27fcc 4675cat >>confdefs.h <<_ACEOF
f4988be7 4676#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
c0d27fcc 4677_ACEOF
f4988be7 4678
503d2be0
AS
4679fi
4680rm -f conftest*
c0d27fcc 4681 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
503d2be0
AS
4682echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4683if test "${ac_cv_sys_large_files+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 4685else
503d2be0 4686 while :; do
f4988be7 4687 ac_cv_sys_large_files=no
503d2be0 4688 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4689/* confdefs.h. */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h. */
503d2be0
AS
4694#include <sys/types.h>
4695 /* Check that off_t can represent 2**63 - 1 correctly.
4696 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4697 since some C++ compilers masquerading as C compilers
4698 incorrectly reject 9223372036854775807. */
4699#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4700 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4701 && LARGE_OFF_T % 2147483647 == 1)
4702 ? 1 : -1];
4703int
4704main ()
4705{
ba4481b5 4706
503d2be0
AS
4707 ;
4708 return 0;
4709}
4710_ACEOF
4711rm -f conftest.$ac_objext
c0d27fcc 4712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4713 (eval $ac_compile) 2>conftest.er1
503d2be0 4714 ac_status=$?
35996d22
AS
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
c0d27fcc 4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4719 (exit $ac_status); } &&
35996d22
AS
4720 { ac_try='test -z "$ac_c_werror_flag"
4721 || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
c0d27fcc 4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4732 (exit $ac_status); }; }; then
4733 break
ba4481b5 4734else
503d2be0 4735 echo "$as_me: failed program was:" >&5
19650fd6
AS
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
503d2be0 4738fi
35996d22 4739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0 4740 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4741/* confdefs.h. */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h. */
f4988be7 4746#define _LARGE_FILES 1
503d2be0
AS
4747#include <sys/types.h>
4748 /* Check that off_t can represent 2**63 - 1 correctly.
4749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4750 since some C++ compilers masquerading as C compilers
4751 incorrectly reject 9223372036854775807. */
4752#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4754 && LARGE_OFF_T % 2147483647 == 1)
4755 ? 1 : -1];
4756int
4757main ()
4758{
f4988be7 4759
503d2be0
AS
4760 ;
4761 return 0;
4762}
4763_ACEOF
4764rm -f conftest.$ac_objext
c0d27fcc 4765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4766 (eval $ac_compile) 2>conftest.er1
503d2be0 4767 ac_status=$?
35996d22
AS
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
c0d27fcc 4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4772 (exit $ac_status); } &&
35996d22
AS
4773 { ac_try='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
c0d27fcc 4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4785 (exit $ac_status); }; }; then
4786 ac_cv_sys_large_files=1; break
4787else
4788 echo "$as_me: failed program was:" >&5
19650fd6
AS
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
503d2be0 4791fi
35996d22 4792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
4793 break
4794done
ba4481b5 4795fi
c0d27fcc 4796echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
503d2be0
AS
4797echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4798if test "$ac_cv_sys_large_files" != no; then
ba4481b5 4799
c0d27fcc 4800cat >>confdefs.h <<_ACEOF
f4988be7 4801#define _LARGE_FILES $ac_cv_sys_large_files
c0d27fcc 4802_ACEOF
ba4481b5 4803
503d2be0
AS
4804fi
4805rm -f conftest*
4806fi
ba4481b5 4807
c0d27fcc 4808
2c9dccc9
PJ
4809if test "${with_sound}" != "no"; then
4810 # Sound support for GNU/Linux and the free BSDs.
c0d27fcc
MR
4811 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4812echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4813if test "${ac_cv_header_stdc+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4817/* confdefs.h. */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h. */
c0d27fcc
MR
4822#include <stdlib.h>
4823#include <stdarg.h>
4824#include <string.h>
4825#include <float.h>
98418dba 4826
19650fd6
AS
4827int
4828main ()
4829{
4830
4831 ;
4832 return 0;
4833}
c0d27fcc 4834_ACEOF
19650fd6
AS
4835rm -f conftest.$ac_objext
4836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4837 (eval $ac_compile) 2>conftest.er1
cd958eb3 4838 ac_status=$?
35996d22
AS
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
cd958eb3 4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650fd6 4843 (exit $ac_status); } &&
35996d22
AS
4844 { ac_try='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest.$ac_objext'
19650fd6
AS
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
c0d27fcc
MR
4857 ac_cv_header_stdc=yes
4858else
4859 echo "$as_me: failed program was:" >&5
19650fd6
AS
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
4862ac_cv_header_stdc=no
c0d27fcc 4863fi
35996d22 4864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
4865
4866if test $ac_cv_header_stdc = yes; then
4867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4868 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4869/* confdefs.h. */
4870_ACEOF
4871cat confdefs.h >>conftest.$ac_ext
4872cat >>conftest.$ac_ext <<_ACEOF
4873/* end confdefs.h. */
c0d27fcc
MR
4874#include <string.h>
4875
4876_ACEOF
4877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 4878 $EGREP "memchr" >/dev/null 2>&1; then
c0d27fcc
MR
4879 :
4880else
4881 ac_cv_header_stdc=no
4882fi
4883rm -f conftest*
4884
4885fi
4886
4887if test $ac_cv_header_stdc = yes; then
4888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4889 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4890/* confdefs.h. */
4891_ACEOF
4892cat confdefs.h >>conftest.$ac_ext
4893cat >>conftest.$ac_ext <<_ACEOF
4894/* end confdefs.h. */
c0d27fcc
MR
4895#include <stdlib.h>
4896
4897_ACEOF
4898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 4899 $EGREP "free" >/dev/null 2>&1; then
c0d27fcc
MR
4900 :
4901else
4902 ac_cv_header_stdc=no
4903fi
4904rm -f conftest*
4905
4906fi
4907
4908if test $ac_cv_header_stdc = yes; then
4909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4910 if test "$cross_compiling" = yes; then
4911 :
4912else
4913 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4914/* confdefs.h. */
4915_ACEOF
4916cat confdefs.h >>conftest.$ac_ext
4917cat >>conftest.$ac_ext <<_ACEOF
4918/* end confdefs.h. */
c0d27fcc
MR
4919#include <ctype.h>
4920#if ((' ' & 0x0FF) == 0x020)
4921# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4922# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4923#else
19650fd6 4924# define ISLOWER(c) \
35996d22
AS
4925 (('a' <= (c) && (c) <= 'i') \
4926 || ('j' <= (c) && (c) <= 'r') \
4927 || ('s' <= (c) && (c) <= 'z'))
c0d27fcc
MR
4928# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4929#endif
4930
4931#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4932int
4933main ()
4934{
4935 int i;
4936 for (i = 0; i < 256; i++)
4937 if (XOR (islower (i), ISLOWER (i))
35996d22 4938 || toupper (i) != TOUPPER (i))
c0d27fcc
MR
4939 exit(2);
4940 exit (0);
4941}
4942_ACEOF
4943rm -f conftest$ac_exeext
4944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945 (eval $ac_link) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 :
4955else
4956 echo "$as_me: program exited with status $ac_status" >&5
4957echo "$as_me: failed program was:" >&5
19650fd6
AS
4958sed 's/^/| /' conftest.$ac_ext >&5
4959
c0d27fcc
MR
4960( exit $ac_status )
4961ac_cv_header_stdc=no
4962fi
35996d22 4963rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
4964fi
4965fi
4966fi
4967echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4968echo "${ECHO_T}$ac_cv_header_stdc" >&6
4969if test $ac_cv_header_stdc = yes; then
4970
4971cat >>confdefs.h <<\_ACEOF
4972#define STDC_HEADERS 1
4973_ACEOF
4974
4975fi
4976
4977# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
35996d22 4988 inttypes.h stdint.h unistd.h
98418dba
CW
4989do
4990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc 4991echo "$as_me:$LINENO: checking for $ac_header" >&5
98418dba
CW
4992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4993if eval "test \"\${$as_ac_Header+set}\" = set"; then
503d2be0 4994 echo $ECHO_N "(cached) $ECHO_C" >&6
f4988be7 4995else
925c2f3f 4996 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
c0d27fcc
MR
5002$ac_includes_default
5003
5004#include <$ac_header>
5005_ACEOF
5006rm -f conftest.$ac_objext
5007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5008 (eval $ac_compile) 2>conftest.er1
c0d27fcc 5009 ac_status=$?
35996d22
AS
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
c0d27fcc
MR
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
35996d22
AS
5015 { ac_try='test -z "$ac_c_werror_flag"
5016 || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 eval "$as_ac_Header=yes"
5029else
5030 echo "$as_me: failed program was:" >&5
19650fd6
AS
5031sed 's/^/| /' conftest.$ac_ext >&5
5032
c0d27fcc
MR
5033eval "$as_ac_Header=no"
5034fi
35996d22 5035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
5036fi
5037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5039if test `eval echo '${'$as_ac_Header'}'` = yes; then
5040 cat >>confdefs.h <<_ACEOF
5041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042_ACEOF
5043
5044fi
5045
5046done
5047
5048
5049
5050
5051
5052for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5053do
5054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5055if eval "test \"\${$as_ac_Header+set}\" = set"; then
5056 echo "$as_me:$LINENO: checking for $ac_header" >&5
5057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5058if eval "test \"\${$as_ac_Header+set}\" = set"; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060fi
5061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5063else
5064 # Is the header compilable?
5065echo "$as_me:$LINENO: checking $ac_header usability" >&5
5066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5067cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5068/* confdefs.h. */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h. */
c0d27fcc 5073$ac_includes_default
98418dba 5074#include <$ac_header>
503d2be0 5075_ACEOF
c0d27fcc
MR
5076rm -f conftest.$ac_objext
5077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5078 (eval $ac_compile) 2>conftest.er1
c0d27fcc 5079 ac_status=$?
35996d22
AS
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
c0d27fcc
MR
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
35996d22
AS
5085 { ac_try='test -z "$ac_c_werror_flag"
5086 || test ! -s conftest.err'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 (eval $ac_try) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 ac_header_compiler=yes
5099else
5100 echo "$as_me: failed program was:" >&5
19650fd6
AS
5101sed 's/^/| /' conftest.$ac_ext >&5
5102
c0d27fcc
MR
5103ac_header_compiler=no
5104fi
35996d22 5105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
5106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5107echo "${ECHO_T}$ac_header_compiler" >&6
5108
5109# Is the header present?
5110echo "$as_me:$LINENO: checking $ac_header presence" >&5
5111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5112cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5113/* confdefs.h. */
5114_ACEOF
5115cat confdefs.h >>conftest.$ac_ext
5116cat >>conftest.$ac_ext <<_ACEOF
5117/* end confdefs.h. */
c0d27fcc
MR
5118#include <$ac_header>
5119_ACEOF
5120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba 5121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
503d2be0 5122 ac_status=$?
6bae0ccf 5123 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
5124 rm -f conftest.er1
5125 cat conftest.err >&5
c0d27fcc 5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
5127 (exit $ac_status); } >/dev/null; then
5128 if test -s conftest.err; then
5129 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 5130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
5131 else
5132 ac_cpp_err=
5133 fi
5134else
5135 ac_cpp_err=yes
5136fi
5137if test -z "$ac_cpp_err"; then
c0d27fcc 5138 ac_header_preproc=yes
f4988be7 5139else
503d2be0 5140 echo "$as_me: failed program was:" >&5
19650fd6
AS
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
c0d27fcc 5143 ac_header_preproc=no
f4988be7 5144fi
98418dba 5145rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
5146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5147echo "${ECHO_T}$ac_header_preproc" >&6
5148
5149# So? What about this header?
35996d22
AS
5150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5151 yes:no: )
c0d27fcc
MR
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5156 ac_header_preproc=yes
19650fd6 5157 ;;
35996d22 5158 no:yes:* )
c0d27fcc
MR
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 5167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 5168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
5171 (
5172 cat <<\_ASBOX
35996d22
AS
5173## ------------------------------------------ ##
5174## Report this to the AC_PACKAGE_NAME lists. ##
5175## ------------------------------------------ ##
19650fd6
AS
5176_ASBOX
5177 ) |
5178 sed "s/^/$as_me: WARNING: /" >&2
5179 ;;
c0d27fcc
MR
5180esac
5181echo "$as_me:$LINENO: checking for $ac_header" >&5
5182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5183if eval "test \"\${$as_ac_Header+set}\" = set"; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
35996d22 5186 eval "$as_ac_Header=\$ac_header_preproc"
f4988be7 5187fi
c0d27fcc 5188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
98418dba 5189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
5190
5191fi
98418dba 5192if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 5193 cat >>confdefs.h <<_ACEOF
98418dba 5194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 5195_ACEOF
f4988be7
GM
5196
5197fi
c0d27fcc 5198
98418dba
CW
5199done
5200
5201 # Emulation library used on NetBSD.
c0d27fcc 5202 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
98418dba
CW
5203echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5204if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
503d2be0 5205 echo $ECHO_N "(cached) $ECHO_C" >&6
f4988be7 5206else
98418dba
CW
5207 ac_check_lib_save_LIBS=$LIBS
5208LIBS="-lossaudio $LIBS"
5209cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5210/* confdefs.h. */
5211_ACEOF
5212cat confdefs.h >>conftest.$ac_ext
5213cat >>conftest.$ac_ext <<_ACEOF
5214/* end confdefs.h. */
98418dba
CW
5215
5216/* Override any gcc2 internal prototype to avoid an error. */
5217#ifdef __cplusplus
5218extern "C"
f4988be7 5219#endif
98418dba
CW
5220/* We use char because int might match the return type of a gcc2
5221 builtin and then its argument prototype would still apply. */
5222char _oss_ioctl ();
503d2be0
AS
5223int
5224main ()
5225{
98418dba 5226_oss_ioctl ();
503d2be0
AS
5227 ;
5228 return 0;
5229}
5230_ACEOF
98418dba 5231rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 5232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 5233 (eval $ac_link) 2>conftest.er1
503d2be0 5234 ac_status=$?
35996d22
AS
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
c0d27fcc 5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5239 (exit $ac_status); } &&
35996d22
AS
5240 { ac_try='test -z "$ac_c_werror_flag"
5241 || test ! -s conftest.err'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; } &&
5247 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
c0d27fcc 5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5252 (exit $ac_status); }; }; then
98418dba 5253 ac_cv_lib_ossaudio__oss_ioctl=yes
f4988be7 5254else
503d2be0 5255 echo "$as_me: failed program was:" >&5
19650fd6
AS
5256sed 's/^/| /' conftest.$ac_ext >&5
5257
98418dba 5258ac_cv_lib_ossaudio__oss_ioctl=no
f4988be7 5259fi
35996d22
AS
5260rm -f conftest.err conftest.$ac_objext \
5261 conftest$ac_exeext conftest.$ac_ext
98418dba 5262LIBS=$ac_check_lib_save_LIBS
f4988be7 5263fi
c0d27fcc 5264echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
98418dba
CW
5265echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5266if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5267 LIBSOUND=-lossaudio
5268else
5269 LIBSOUND=
5270fi
5271
c0d27fcc 5272
f4988be7 5273fi
c0d27fcc
MR
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
22044edf
DL
5292
5293
973a76b1 5294
cffcede7 5295
c0d27fcc 5296
f4988be7 5297
98418dba
CW
5298for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5299 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
25ca0bca 5300 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
cffcede7 5301 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
98418dba
CW
5302do
5303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
5304if eval "test \"\${$as_ac_Header+set}\" = set"; then
5305 echo "$as_me:$LINENO: checking for $ac_header" >&5
98418dba
CW
5306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5307if eval "test \"\${$as_ac_Header+set}\" = set"; then
503d2be0 5308 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
5309fi
5310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f4988be7 5312else
c0d27fcc
MR
5313 # Is the header compilable?
5314echo "$as_me:$LINENO: checking $ac_header usability" >&5
5315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5316cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */
c0d27fcc
MR
5322$ac_includes_default
5323#include <$ac_header>
5324_ACEOF
5325rm -f conftest.$ac_objext
5326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5327 (eval $ac_compile) 2>conftest.er1
c0d27fcc 5328 ac_status=$?
35996d22
AS
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
c0d27fcc
MR
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
35996d22
AS
5334 { ac_try='test -z "$ac_c_werror_flag"
5335 || test ! -s conftest.err'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; } &&
5341 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_header_compiler=yes
5348else
5349 echo "$as_me: failed program was:" >&5
19650fd6
AS
5350sed 's/^/| /' conftest.$ac_ext >&5
5351
c0d27fcc
MR
5352ac_header_compiler=no
5353fi
35996d22 5354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
5355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5356echo "${ECHO_T}$ac_header_compiler" >&6
5357
5358# Is the header present?
5359echo "$as_me:$LINENO: checking $ac_header presence" >&5
5360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5361cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
98418dba 5367#include <$ac_header>
503d2be0 5368_ACEOF
c0d27fcc 5369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba 5370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
503d2be0 5371 ac_status=$?
6bae0ccf 5372 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
5373 rm -f conftest.er1
5374 cat conftest.err >&5
c0d27fcc 5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
5376 (exit $ac_status); } >/dev/null; then
5377 if test -s conftest.err; then
5378 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 5379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
5380 else
5381 ac_cpp_err=
5382 fi
5383else
5384 ac_cpp_err=yes
5385fi
5386if test -z "$ac_cpp_err"; then
c0d27fcc 5387 ac_header_preproc=yes
34ec9ebe 5388else
503d2be0 5389 echo "$as_me: failed program was:" >&5
19650fd6
AS
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
c0d27fcc 5392 ac_header_preproc=no
34ec9ebe 5393fi
98418dba 5394rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
5395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5396echo "${ECHO_T}$ac_header_preproc" >&6
5397
5398# So? What about this header?
35996d22
AS
5399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5400 yes:no: )
c0d27fcc
MR
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5405 ac_header_preproc=yes
19650fd6 5406 ;;
35996d22 5407 no:yes:* )
c0d27fcc
MR
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5415echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 5416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 5417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
5420 (
5421 cat <<\_ASBOX
35996d22
AS
5422## ------------------------------------------ ##
5423## Report this to the AC_PACKAGE_NAME lists. ##
5424## ------------------------------------------ ##
19650fd6
AS
5425_ASBOX
5426 ) |
5427 sed "s/^/$as_me: WARNING: /" >&2
5428 ;;
c0d27fcc
MR
5429esac
5430echo "$as_me:$LINENO: checking for $ac_header" >&5
5431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5432if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434else
35996d22 5435 eval "$as_ac_Header=\$ac_header_preproc"
34ec9ebe 5436fi
c0d27fcc 5437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
98418dba 5438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
5439
5440fi
98418dba 5441if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 5442 cat >>confdefs.h <<_ACEOF
98418dba 5443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 5444_ACEOF
34ec9ebe 5445
98418dba 5446fi
c0d27fcc 5447
98418dba
CW
5448done
5449
22044edf
DL
5450
5451for ac_header in term.h
5452do
5453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5454echo "$as_me:$LINENO: checking for $ac_header" >&5
5455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5456if eval "test \"\${$as_ac_Header+set}\" = set"; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5458else
5459 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5460/* confdefs.h. */
5461_ACEOF
5462cat confdefs.h >>conftest.$ac_ext
5463cat >>conftest.$ac_ext <<_ACEOF
5464/* end confdefs.h. */
22044edf
DL
5465#include <$ac_header>
5466_ACEOF
5467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } >/dev/null; then
5475 if test -s conftest.err; then
5476 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 5477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22044edf
DL
5478 else
5479 ac_cpp_err=
5480 fi
5481else
5482 ac_cpp_err=yes
5483fi
5484if test -z "$ac_cpp_err"; then
5485 eval "$as_ac_Header=yes"
5486else
5487 echo "$as_me: failed program was:" >&5
19650fd6
AS
5488sed 's/^/| /' conftest.$ac_ext >&5
5489
22044edf
DL
5490 eval "$as_ac_Header=no"
5491fi
5492rm -f conftest.err conftest.$ac_ext
5493fi
5494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5496if test `eval echo '${'$as_ac_Header'}'` = yes; then
5497 cat >>confdefs.h <<_ACEOF
5498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5499_ACEOF
5500
5501fi
5502
5503done
5504
c0d27fcc 5505echo "$as_me:$LINENO: checking for ANSI C header files" >&5
98418dba
CW
5506echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5507if test "${ac_cv_header_stdc+set}" = set; then
503d2be0 5508 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 5509else
503d2be0 5510 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5511/* confdefs.h. */
5512_ACEOF
5513cat confdefs.h >>conftest.$ac_ext
5514cat >>conftest.$ac_ext <<_ACEOF
5515/* end confdefs.h. */
98418dba
CW
5516#include <stdlib.h>
5517#include <stdarg.h>
5518#include <string.h>
5519#include <float.h>
5520
19650fd6
AS
5521int
5522main ()
5523{
5524
5525 ;
5526 return 0;
5527}
98418dba 5528_ACEOF
19650fd6
AS
5529rm -f conftest.$ac_objext
5530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5531 (eval $ac_compile) 2>conftest.er1
cd958eb3 5532 ac_status=$?
35996d22
AS
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
cd958eb3 5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650fd6 5537 (exit $ac_status); } &&
35996d22
AS
5538 { ac_try='test -z "$ac_c_werror_flag"
5539 || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest.$ac_objext'
19650fd6
AS
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
98418dba 5551 ac_cv_header_stdc=yes
ba4481b5 5552else
503d2be0 5553 echo "$as_me: failed program was:" >&5
19650fd6
AS
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
5556ac_cv_header_stdc=no
ba4481b5 5557fi
35996d22 5558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba
CW
5559
5560if test $ac_cv_header_stdc = yes; then
5561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5562 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5563/* confdefs.h. */
5564_ACEOF
5565cat confdefs.h >>conftest.$ac_ext
5566cat >>conftest.$ac_ext <<_ACEOF
5567/* end confdefs.h. */
98418dba
CW
5568#include <string.h>
5569
5570_ACEOF
5571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 5572 $EGREP "memchr" >/dev/null 2>&1; then
98418dba
CW
5573 :
5574else
5575 ac_cv_header_stdc=no
ba4481b5 5576fi
98418dba 5577rm -f conftest*
ba4481b5
DL
5578
5579fi
5580
98418dba
CW
5581if test $ac_cv_header_stdc = yes; then
5582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5583 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5584/* confdefs.h. */
5585_ACEOF
5586cat confdefs.h >>conftest.$ac_ext
5587cat >>conftest.$ac_ext <<_ACEOF
5588/* end confdefs.h. */
98418dba
CW
5589#include <stdlib.h>
5590
5591_ACEOF
5592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 5593 $EGREP "free" >/dev/null 2>&1; then
98418dba
CW
5594 :
5595else
5596 ac_cv_header_stdc=no
5597fi
5598rm -f conftest*
5599
5600fi
5601
5602if test $ac_cv_header_stdc = yes; then
5603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5604 if test "$cross_compiling" = yes; then
5605 :
d42122a3 5606else
503d2be0 5607 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
98418dba
CW
5613#include <ctype.h>
5614#if ((' ' & 0x0FF) == 0x020)
5615# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5616# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5617#else
19650fd6 5618# define ISLOWER(c) \
35996d22
AS
5619 (('a' <= (c) && (c) <= 'i') \
5620 || ('j' <= (c) && (c) <= 'r') \
5621 || ('s' <= (c) && (c) <= 'z'))
98418dba
CW
5622# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5623#endif
5624
5625#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
503d2be0
AS
5626int
5627main ()
5628{
98418dba
CW
5629 int i;
5630 for (i = 0; i < 256; i++)
5631 if (XOR (islower (i), ISLOWER (i))
35996d22 5632 || toupper (i) != TOUPPER (i))
98418dba
CW
5633 exit(2);
5634 exit (0);
503d2be0
AS
5635}
5636_ACEOF
98418dba 5637rm -f conftest$ac_exeext
c0d27fcc 5638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
98418dba 5639 (eval $ac_link) 2>&5
503d2be0 5640 ac_status=$?
c0d27fcc 5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 5642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
c0d27fcc 5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5647 (exit $ac_status); }; }; then
98418dba 5648 :
d42122a3 5649else
98418dba
CW
5650 echo "$as_me: program exited with status $ac_status" >&5
5651echo "$as_me: failed program was:" >&5
19650fd6
AS
5652sed 's/^/| /' conftest.$ac_ext >&5
5653
c0d27fcc 5654( exit $ac_status )
98418dba 5655ac_cv_header_stdc=no
d42122a3 5656fi
35996d22 5657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d42122a3 5658fi
98418dba
CW
5659fi
5660fi
c0d27fcc 5661echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
98418dba
CW
5662echo "${ECHO_T}$ac_cv_header_stdc" >&6
5663if test $ac_cv_header_stdc = yes; then
5664
c0d27fcc 5665cat >>confdefs.h <<\_ACEOF
98418dba 5666#define STDC_HEADERS 1
c0d27fcc 5667_ACEOF
d42122a3
DL
5668
5669fi
5670
c0d27fcc 5671echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
98418dba
CW
5672echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5673if test "${ac_cv_header_time+set}" = set; then
503d2be0 5674 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 5675else
503d2be0 5676 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h. */
ba4481b5 5682#include <sys/types.h>
98418dba 5683#include <sys/time.h>
ba4481b5 5684#include <time.h>
503d2be0
AS
5685
5686int
5687main ()
5688{
98418dba
CW
5689if ((struct tm *) 0)
5690return 0;
503d2be0
AS
5691 ;
5692 return 0;
5693}
5694_ACEOF
5695rm -f conftest.$ac_objext
c0d27fcc 5696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5697 (eval $ac_compile) 2>conftest.er1
503d2be0 5698 ac_status=$?
35996d22
AS
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
c0d27fcc 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5703 (exit $ac_status); } &&
35996d22
AS
5704 { ac_try='test -z "$ac_c_werror_flag"
5705 || test ! -s conftest.err'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; } &&
5711 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
c0d27fcc 5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5716 (exit $ac_status); }; }; then
98418dba 5717 ac_cv_header_time=yes
ba4481b5 5718else
503d2be0 5719 echo "$as_me: failed program was:" >&5
19650fd6
AS
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
98418dba 5722ac_cv_header_time=no
ba4481b5 5723fi
35996d22 5724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 5725fi
c0d27fcc 5726echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
98418dba
CW
5727echo "${ECHO_T}$ac_cv_header_time" >&6
5728if test $ac_cv_header_time = yes; then
503d2be0 5729
c0d27fcc 5730cat >>confdefs.h <<\_ACEOF
98418dba 5731#define TIME_WITH_SYS_TIME 1
c0d27fcc 5732_ACEOF
ba4481b5
DL
5733
5734fi
5735
cd958eb3
MB
5736echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5737echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5738if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
503d2be0 5739 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 5740else
503d2be0 5741 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5742/* confdefs.h. */
5743_ACEOF
5744cat confdefs.h >>conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */
cd958eb3
MB
5747$ac_includes_default
5748int
5749main ()
5750{
5751#ifndef sys_siglist
5752 char *p = (char *) sys_siglist;
98418dba 5753#endif
503d2be0 5754
cd958eb3
MB
5755 ;
5756 return 0;
5757}
5758_ACEOF
5759rm -f conftest.$ac_objext
5760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5761 (eval $ac_compile) 2>conftest.er1
cd958eb3 5762 ac_status=$?
35996d22
AS
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
cd958eb3
MB
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
35996d22
AS
5768 { ac_try='test -z "$ac_c_werror_flag"
5769 || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
cd958eb3
MB
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_have_decl_sys_siglist=yes
5782else
5783 echo "$as_me: failed program was:" >&5
19650fd6
AS
5784sed 's/^/| /' conftest.$ac_ext >&5
5785
cd958eb3
MB
5786ac_cv_have_decl_sys_siglist=no
5787fi
35996d22 5788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cd958eb3
MB
5789fi
5790echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5791echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5792if test $ac_cv_have_decl_sys_siglist = yes; then
5793
5794cat >>confdefs.h <<_ACEOF
5795#define HAVE_DECL_SYS_SIGLIST 1
5796_ACEOF
5797
5798
5799else
5800 cat >>confdefs.h <<_ACEOF
5801#define HAVE_DECL_SYS_SIGLIST 0
5802_ACEOF
5803
5804
5805fi
5806
5807
5808if test $ac_cv_have_decl_sys_siglist != yes; then
5809 # For Tru64, at least:
5810 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5811echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5812if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
cd958eb3 5821$ac_includes_default
503d2be0
AS
5822int
5823main ()
5824{
cd958eb3
MB
5825#ifndef __sys_siglist
5826 char *p = (char *) __sys_siglist;
5827#endif
5828
503d2be0
AS
5829 ;
5830 return 0;
5831}
5832_ACEOF
5833rm -f conftest.$ac_objext
c0d27fcc 5834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5835 (eval $ac_compile) 2>conftest.er1
503d2be0 5836 ac_status=$?
35996d22
AS
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
c0d27fcc 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5841 (exit $ac_status); } &&
35996d22
AS
5842 { ac_try='test -z "$ac_c_werror_flag"
5843 || test ! -s conftest.err'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; } &&
5849 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
c0d27fcc 5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5854 (exit $ac_status); }; }; then
cd958eb3 5855 ac_cv_have_decl___sys_siglist=yes
ba4481b5 5856else
503d2be0 5857 echo "$as_me: failed program was:" >&5
19650fd6
AS
5858sed 's/^/| /' conftest.$ac_ext >&5
5859
cd958eb3 5860ac_cv_have_decl___sys_siglist=no
ba4481b5 5861fi
35996d22 5862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0 5863fi
cd958eb3
MB
5864echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5865echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5866if test $ac_cv_have_decl___sys_siglist = yes; then
503d2be0 5867
cd958eb3
MB
5868cat >>confdefs.h <<_ACEOF
5869#define HAVE_DECL___SYS_SIGLIST 1
5870_ACEOF
5871
5872
5873else
5874 cat >>confdefs.h <<_ACEOF
5875#define HAVE_DECL___SYS_SIGLIST 0
c0d27fcc 5876_ACEOF
503d2be0 5877
cd958eb3 5878
ba4481b5
DL
5879fi
5880
cd958eb3
MB
5881
5882 if test $ac_cv_have_decl___sys_siglist = yes; then
5883
5884cat >>confdefs.h <<\_ACEOF
5885#define sys_siglist __sys_siglist
5886_ACEOF
5887
5888 fi
5889fi
c0d27fcc 5890echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
98418dba
CW
5891echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5892if test "${ac_cv_header_sys_wait_h+set}" = set; then
503d2be0 5893 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 5894else
503d2be0 5895 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
98418dba
CW
5901#include <sys/types.h>
5902#include <sys/wait.h>
5903#ifndef WEXITSTATUS
5904# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5905#endif
5906#ifndef WIFEXITED
5907# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
ba4481b5 5908#endif
503d2be0
AS
5909
5910int
5911main ()
5912{
98418dba
CW
5913 int s;
5914 wait (&s);
5915 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
503d2be0
AS
5916 ;
5917 return 0;
5918}
5919_ACEOF
98418dba 5920rm -f conftest.$ac_objext
c0d27fcc 5921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5922 (eval $ac_compile) 2>conftest.er1
503d2be0 5923 ac_status=$?
35996d22
AS
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
c0d27fcc 5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5928 (exit $ac_status); } &&
35996d22
AS
5929 { ac_try='test -z "$ac_c_werror_flag"
5930 || test ! -s conftest.err'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
c0d27fcc 5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5941 (exit $ac_status); }; }; then
98418dba 5942 ac_cv_header_sys_wait_h=yes
ba4481b5 5943else
503d2be0 5944 echo "$as_me: failed program was:" >&5
19650fd6
AS
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
98418dba 5947ac_cv_header_sys_wait_h=no
ba4481b5 5948fi
35996d22 5949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 5950fi
c0d27fcc 5951echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
98418dba
CW
5952echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5953if test $ac_cv_header_sys_wait_h = yes; then
503d2be0 5954
c0d27fcc 5955cat >>confdefs.h <<\_ACEOF
98418dba 5956#define HAVE_SYS_WAIT_H 1
c0d27fcc 5957_ACEOF
ba4481b5 5958
ba4481b5
DL
5959fi
5960
c0d27fcc
MR
5961
5962echo "$as_me:$LINENO: checking for struct utimbuf" >&5
98418dba
CW
5963echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5964if test "${emacs_cv_struct_utimbuf+set}" = set; then
503d2be0 5965 echo $ECHO_N "(cached) $ECHO_C" >&6
1113b624 5966else
503d2be0 5967 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h. */
98418dba
CW
5973#ifdef TIME_WITH_SYS_TIME
5974#include <sys/time.h>
5975#include <time.h>
5976#else
5977#ifdef HAVE_SYS_TIME_H
5978#include <sys/time.h>
5979#else
1113b624 5980#include <time.h>
98418dba
CW
5981#endif
5982#endif
5983#ifdef HAVE_UTIME_H
5984#include <utime.h>
5985#endif
503d2be0
AS
5986int
5987main ()
5988{
98418dba 5989static struct utimbuf x; x.actime = x.modtime;
503d2be0
AS
5990 ;
5991 return 0;
5992}
5993_ACEOF
98418dba 5994rm -f conftest.$ac_objext
c0d27fcc 5995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5996 (eval $ac_compile) 2>conftest.er1
503d2be0 5997 ac_status=$?
35996d22
AS
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
c0d27fcc 6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6002 (exit $ac_status); } &&
35996d22
AS
6003 { ac_try='test -z "$ac_c_werror_flag"
6004 || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
c0d27fcc 6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6015 (exit $ac_status); }; }; then
98418dba 6016 emacs_cv_struct_utimbuf=yes
1113b624 6017else
503d2be0 6018 echo "$as_me: failed program was:" >&5
19650fd6
AS
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
98418dba 6021emacs_cv_struct_utimbuf=no
1113b624 6022fi
35996d22 6023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1113b624 6024fi
c0d27fcc 6025echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
98418dba
CW
6026echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6027if test $emacs_cv_struct_utimbuf = yes; then
b936fae4 6028
c0d27fcc 6029cat >>confdefs.h <<\_ACEOF
98418dba 6030#define HAVE_STRUCT_UTIMBUF 1
c0d27fcc 6031_ACEOF
1113b624
PE
6032
6033fi
ba4481b5 6034
c0d27fcc 6035echo "$as_me:$LINENO: checking return type of signal handlers" >&5
98418dba
CW
6036echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6037if test "${ac_cv_type_signal+set}" = set; then
503d2be0 6038 echo $ECHO_N "(cached) $ECHO_C" >&6
7397acc4 6039else
98418dba 6040 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
7397acc4 6046#include <sys/types.h>
98418dba
CW
6047#include <signal.h>
6048#ifdef signal
6049# undef signal
6050#endif
6051#ifdef __cplusplus
6052extern "C" void (*signal (int, void (*)(int)))(int);
6053#else
6054void (*signal ()) ();
6055#endif
6056
503d2be0
AS
6057int
6058main ()
6059{
98418dba 6060int i;
503d2be0
AS
6061 ;
6062 return 0;
6063}
6064_ACEOF
98418dba 6065rm -f conftest.$ac_objext
c0d27fcc 6066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6067 (eval $ac_compile) 2>conftest.er1
503d2be0 6068 ac_status=$?
35996d22
AS
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
c0d27fcc 6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6073 (exit $ac_status); } &&
35996d22
AS
6074 { ac_try='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
c0d27fcc 6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6086 (exit $ac_status); }; }; then
98418dba 6087 ac_cv_type_signal=void
503d2be0
AS
6088else
6089 echo "$as_me: failed program was:" >&5
19650fd6
AS
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
98418dba 6092ac_cv_type_signal=int
503d2be0 6093fi
35996d22 6094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7397acc4 6095fi
c0d27fcc 6096echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
98418dba 6097echo "${ECHO_T}$ac_cv_type_signal" >&6
7397acc4 6098
c0d27fcc 6099cat >>confdefs.h <<_ACEOF
98418dba 6100#define RETSIGTYPE $ac_cv_type_signal
c0d27fcc
MR
6101_ACEOF
6102
503d2be0 6103
c0d27fcc
MR
6104
6105echo "$as_me:$LINENO: checking for speed_t" >&5
98418dba
CW
6106echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6107if test "${emacs_cv_speed_t+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
7397acc4 6109else
98418dba 6110 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
98418dba 6116#include <termios.h>
98418dba
CW
6117int
6118main ()
6119{
6120speed_t x = 1;
6121 ;
6122 return 0;
6123}
6124_ACEOF
6125rm -f conftest.$ac_objext
c0d27fcc 6126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6127 (eval $ac_compile) 2>conftest.er1
98418dba 6128 ac_status=$?
35996d22
AS
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
c0d27fcc 6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 6133 (exit $ac_status); } &&
35996d22
AS
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
c0d27fcc 6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
6146 (exit $ac_status); }; }; then
6147 emacs_cv_speed_t=yes
6148else
6149 echo "$as_me: failed program was:" >&5
19650fd6
AS
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
98418dba
CW
6152emacs_cv_speed_t=no
6153fi
35996d22 6154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba 6155fi
c0d27fcc 6156echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
98418dba
CW
6157echo "${ECHO_T}$emacs_cv_speed_t" >&6
6158if test $emacs_cv_speed_t = yes; then
b936fae4 6159
c0d27fcc 6160cat >>confdefs.h <<\_ACEOF
98418dba 6161#define HAVE_SPEED_T 1
c0d27fcc 6162_ACEOF
98418dba 6163
7397acc4
DL
6164fi
6165
c0d27fcc 6166echo "$as_me:$LINENO: checking for struct timeval" >&5
98418dba
CW
6167echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6168if test "${emacs_cv_struct_timeval+set}" = set; then
503d2be0 6169 echo $ECHO_N "(cached) $ECHO_C" >&6
7397acc4 6170else
503d2be0 6171 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6172/* confdefs.h. */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h. */
98418dba
CW
6177#ifdef TIME_WITH_SYS_TIME
6178#include <sys/time.h>
6179#include <time.h>
6180#else
6181#ifdef HAVE_SYS_TIME_H
6182#include <sys/time.h>
6183#else
6184#include <time.h>
6185#endif
6186#endif
503d2be0
AS
6187int
6188main ()
6189{
98418dba 6190static struct timeval x; x.tv_sec = x.tv_usec;
503d2be0
AS
6191 ;
6192 return 0;
6193}
6194_ACEOF
6195rm -f conftest.$ac_objext
c0d27fcc 6196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6197 (eval $ac_compile) 2>conftest.er1
503d2be0 6198 ac_status=$?
35996d22
AS
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
c0d27fcc 6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6203 (exit $ac_status); } &&
35996d22
AS
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
c0d27fcc 6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6216 (exit $ac_status); }; }; then
98418dba 6217 emacs_cv_struct_timeval=yes
7397acc4 6218else
503d2be0 6219 echo "$as_me: failed program was:" >&5
19650fd6
AS
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
98418dba 6222emacs_cv_struct_timeval=no
7397acc4 6223fi
35996d22 6224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7397acc4 6225fi
c0d27fcc 6226echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
98418dba
CW
6227echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6228HAVE_TIMEVAL=$emacs_cv_struct_timeval
6229if test $emacs_cv_struct_timeval = yes; then
b936fae4 6230
c0d27fcc 6231cat >>confdefs.h <<\_ACEOF
98418dba 6232#define HAVE_TIMEVAL 1
c0d27fcc 6233_ACEOF
7397acc4
DL
6234
6235fi
6236
c0d27fcc 6237echo "$as_me:$LINENO: checking for struct exception" >&5
98418dba
CW
6238echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6239if test "${emacs_cv_struct_exception+set}" = set; then
503d2be0 6240 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 6241else
503d2be0 6242 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6243/* confdefs.h. */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h. */
98418dba 6248#include <math.h>
503d2be0
AS
6249int
6250main ()
6251{
98418dba 6252static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
503d2be0
AS
6253 ;
6254 return 0;
ba4481b5 6255}
503d2be0
AS
6256_ACEOF
6257rm -f conftest.$ac_objext
c0d27fcc 6258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6259 (eval $ac_compile) 2>conftest.er1
503d2be0 6260 ac_status=$?
35996d22
AS
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
c0d27fcc 6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6265 (exit $ac_status); } &&
35996d22
AS
6266 { ac_try='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
c0d27fcc 6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6278 (exit $ac_status); }; }; then
98418dba 6279 emacs_cv_struct_exception=yes
ba4481b5 6280else
503d2be0 6281 echo "$as_me: failed program was:" >&5
19650fd6
AS
6282sed 's/^/| /' conftest.$ac_ext >&5
6283
98418dba 6284emacs_cv_struct_exception=no
ba4481b5 6285fi
35996d22 6286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 6287fi
c0d27fcc 6288echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
98418dba
CW
6289echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6290HAVE_EXCEPTION=$emacs_cv_struct_exception
6291if test $emacs_cv_struct_exception != yes; then
b936fae4 6292
c0d27fcc 6293cat >>confdefs.h <<\_ACEOF
98418dba 6294#define NO_MATHERR 1
c0d27fcc 6295_ACEOF
ba4481b5
DL
6296
6297fi
6298
7862d3a8
AS
6299
6300for ac_header in sys/socket.h
6301do
6302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6303if eval "test \"\${$as_ac_Header+set}\" = set"; then
6304 echo "$as_me:$LINENO: checking for $ac_header" >&5
6305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6306if eval "test \"\${$as_ac_Header+set}\" = set"; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6308fi
6309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6311else
6312 # Is the header compilable?
6313echo "$as_me:$LINENO: checking $ac_header usability" >&5
6314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6315cat >conftest.$ac_ext <<_ACEOF
6316/* confdefs.h. */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h. */
6321$ac_includes_default
6322#include <$ac_header>
6323_ACEOF
6324rm -f conftest.$ac_objext
6325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6326 (eval $ac_compile) 2>conftest.er1
6327 ac_status=$?
6328 grep -v '^ *+' conftest.er1 >conftest.err
6329 rm -f conftest.er1
6330 cat conftest.err >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try='test -z "$ac_c_werror_flag"
6334 || test ! -s conftest.err'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; } &&
6340 { ac_try='test -s conftest.$ac_objext'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
6346 ac_header_compiler=yes
6347else
6348 echo "$as_me: failed program was:" >&5
6349sed 's/^/| /' conftest.$ac_ext >&5
6350
6351ac_header_compiler=no
6352fi
6353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6354echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6355echo "${ECHO_T}$ac_header_compiler" >&6
6356
6357# Is the header present?
6358echo "$as_me:$LINENO: checking $ac_header presence" >&5
6359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6360cat >conftest.$ac_ext <<_ACEOF
6361/* confdefs.h. */
6362_ACEOF
6363cat confdefs.h >>conftest.$ac_ext
6364cat >>conftest.$ac_ext <<_ACEOF
6365/* end confdefs.h. */
6366#include <$ac_header>
6367_ACEOF
6368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } >/dev/null; then
6376 if test -s conftest.err; then
6377 ac_cpp_err=$ac_c_preproc_warn_flag
6378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6379 else
6380 ac_cpp_err=
6381 fi
6382else
6383 ac_cpp_err=yes
6384fi
6385if test -z "$ac_cpp_err"; then
6386 ac_header_preproc=yes
6387else
6388 echo "$as_me: failed program was:" >&5
6389sed 's/^/| /' conftest.$ac_ext >&5
6390
6391 ac_header_preproc=no
6392fi
6393rm -f conftest.err conftest.$ac_ext
6394echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6395echo "${ECHO_T}$ac_header_preproc" >&6
6396
6397# So? What about this header?
6398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6399 yes:no: )
6400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6403echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6404 ac_header_preproc=yes
6405 ;;
6406 no:yes:* )
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6408echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6410echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6412echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6414echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6418echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6419 (
6420 cat <<\_ASBOX
6421## ------------------------------------------ ##
6422## Report this to the AC_PACKAGE_NAME lists. ##
6423## ------------------------------------------ ##
6424_ASBOX
6425 ) |
6426 sed "s/^/$as_me: WARNING: /" >&2
6427 ;;
6428esac
6429echo "$as_me:$LINENO: checking for $ac_header" >&5
6430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434 eval "$as_ac_Header=\$ac_header_preproc"
6435fi
6436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6438
6439fi
6440if test `eval echo '${'$as_ac_Header'}'` = yes; then
6441 cat >>confdefs.h <<_ACEOF
6442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6443_ACEOF
6444
6445fi
6446
6447done
6448
6449
6450for ac_header in net/if.h
6451do
6452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6453echo "$as_me:$LINENO: checking for $ac_header" >&5
6454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6455if eval "test \"\${$as_ac_Header+set}\" = set"; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457else
6458 cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h. */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h. */
6464$ac_includes_default
6465#if HAVE_SYS_SOCKET_H
6466#include <sys/socket.h>
6467#endif
6468
6469#include <$ac_header>
6470_ACEOF
6471rm -f conftest.$ac_objext
6472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473 (eval $ac_compile) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -z "$ac_c_werror_flag"
6481 || test ! -s conftest.err'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; } &&
6487 { ac_try='test -s conftest.$ac_objext'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6493 eval "$as_ac_Header=yes"
6494else
6495 echo "$as_me: failed program was:" >&5
6496sed 's/^/| /' conftest.$ac_ext >&5
6497
6498eval "$as_ac_Header=no"
6499fi
6500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6501fi
6502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6504if test `eval echo '${'$as_ac_Header'}'` = yes; then
6505 cat >>confdefs.h <<_ACEOF
6506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507_ACEOF
6508
6509fi
6510
6511done
6512
6513
c0d27fcc 6514echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
98418dba
CW
6515echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6516if test "${ac_cv_struct_tm+set}" = set; then
503d2be0 6517 echo $ECHO_N "(cached) $ECHO_C" >&6
7397acc4 6518else
503d2be0 6519 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6520/* confdefs.h. */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h. */
98418dba
CW
6525#include <sys/types.h>
6526#include <time.h>
7397acc4 6527
503d2be0
AS
6528int
6529main ()
6530{
98418dba 6531struct tm *tp; tp->tm_sec;
503d2be0
AS
6532 ;
6533 return 0;
6534}
6535_ACEOF
6536rm -f conftest.$ac_objext
c0d27fcc 6537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6538 (eval $ac_compile) 2>conftest.er1
503d2be0 6539 ac_status=$?
35996d22
AS
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
c0d27fcc 6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6544 (exit $ac_status); } &&
35996d22
AS
6545 { ac_try='test -z "$ac_c_werror_flag"
6546 || test ! -s conftest.err'
c0d27fcc 6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
c0d27fcc 6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996d22
AS
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest.$ac_objext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 ac_cv_struct_tm=time.h
6559else
503d2be0 6560 echo "$as_me: failed program was:" >&5
19650fd6
AS
6561sed 's/^/| /' conftest.$ac_ext >&5
6562
98418dba 6563ac_cv_struct_tm=sys/time.h
7397acc4 6564fi
35996d22 6565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7397acc4 6566fi
c0d27fcc 6567echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
98418dba
CW
6568echo "${ECHO_T}$ac_cv_struct_tm" >&6
6569if test $ac_cv_struct_tm = sys/time.h; then
7397acc4 6570
c0d27fcc 6571cat >>confdefs.h <<\_ACEOF
98418dba 6572#define TM_IN_SYS_TIME 1
c0d27fcc 6573_ACEOF
7397acc4
DL
6574
6575fi
ba4481b5 6576
c0d27fcc 6577echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
98418dba
CW
6578echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6579if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
503d2be0 6580 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 6581else
98418dba 6582 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6583/* confdefs.h. */
6584_ACEOF
6585cat confdefs.h >>conftest.$ac_ext
6586cat >>conftest.$ac_ext <<_ACEOF
6587/* end confdefs.h. */
98418dba
CW
6588#include <sys/types.h>
6589#include <$ac_cv_struct_tm>
ba4481b5 6590
c0d27fcc 6591
98418dba
CW
6592int
6593main ()
6594{
6595static struct tm ac_aggr;
6596if (ac_aggr.tm_zone)
6597return 0;
6598 ;
6599 return 0;
6600}
6601_ACEOF
6602rm -f conftest.$ac_objext
c0d27fcc 6603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6604 (eval $ac_compile) 2>conftest.er1
98418dba 6605 ac_status=$?
35996d22
AS
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
c0d27fcc 6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 6610 (exit $ac_status); } &&
35996d22
AS
6611 { ac_try='test -z "$ac_c_werror_flag"
6612 || test ! -s conftest.err'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; } &&
6618 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
c0d27fcc 6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
6623 (exit $ac_status); }; }; then
6624 ac_cv_member_struct_tm_tm_zone=yes
ba4481b5 6625else
98418dba 6626 echo "$as_me: failed program was:" >&5
19650fd6
AS
6627sed 's/^/| /' conftest.$ac_ext >&5
6628
6bae0ccf 6629cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6630/* confdefs.h. */
6631_ACEOF
6632cat confdefs.h >>conftest.$ac_ext
6633cat >>conftest.$ac_ext <<_ACEOF
6634/* end confdefs.h. */
6bae0ccf
DL
6635#include <sys/types.h>
6636#include <$ac_cv_struct_tm>
6637
6638
6639int
6640main ()
6641{
6642static struct tm ac_aggr;
6643if (sizeof ac_aggr.tm_zone)
6644return 0;
6645 ;
6646 return 0;
6647}
6648_ACEOF
6649rm -f conftest.$ac_objext
6650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6651 (eval $ac_compile) 2>conftest.er1
6bae0ccf 6652 ac_status=$?
35996d22
AS
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
6bae0ccf
DL
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
35996d22
AS
6658 { ac_try='test -z "$ac_c_werror_flag"
6659 || test ! -s conftest.err'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; } &&
6665 { ac_try='test -s conftest.$ac_objext'
6bae0ccf
DL
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 (eval $ac_try) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_cv_member_struct_tm_tm_zone=yes
6672else
6673 echo "$as_me: failed program was:" >&5
19650fd6
AS
6674sed 's/^/| /' conftest.$ac_ext >&5
6675
98418dba 6676ac_cv_member_struct_tm_tm_zone=no
ba4481b5 6677fi
35996d22 6678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 6679fi
35996d22 6680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bae0ccf 6681fi
c0d27fcc 6682echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
98418dba
CW
6683echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6684if test $ac_cv_member_struct_tm_tm_zone = yes; then
503d2be0 6685
c0d27fcc 6686cat >>confdefs.h <<_ACEOF
98418dba 6687#define HAVE_STRUCT_TM_TM_ZONE 1
c0d27fcc
MR
6688_ACEOF
6689
ba4481b5 6690
98418dba 6691fi
ba4481b5 6692
98418dba 6693if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
ba4481b5 6694
c0d27fcc 6695cat >>confdefs.h <<\_ACEOF
98418dba 6696#define HAVE_TM_ZONE 1
c0d27fcc 6697_ACEOF
ba4481b5 6698
ba4481b5 6699else
c0d27fcc 6700 echo "$as_me:$LINENO: checking for tzname" >&5
98418dba
CW
6701echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6702if test "${ac_cv_var_tzname+set}" = set; then
503d2be0 6703 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 6704else
98418dba 6705 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6706/* confdefs.h. */
6707_ACEOF
6708cat confdefs.h >>conftest.$ac_ext
6709cat >>conftest.$ac_ext <<_ACEOF
6710/* end confdefs.h. */
98418dba
CW
6711#include <time.h>
6712#ifndef tzname /* For SGI. */
6713extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6714#endif
6715
98418dba
CW
6716int
6717main ()
6718{
6719atoi(*tzname);
6720 ;
6721 return 0;
6722}
6723_ACEOF
6724rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 6725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 6726 (eval $ac_link) 2>conftest.er1
98418dba 6727 ac_status=$?
35996d22
AS
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
c0d27fcc 6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 6732 (exit $ac_status); } &&
35996d22
AS
6733 { ac_try='test -z "$ac_c_werror_flag"
6734 || test ! -s conftest.err'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 (eval $ac_try) 2>&5
6737 ac_status=$?
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; } &&
6740 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
6742 (eval $ac_try) 2>&5
6743 ac_status=$?
c0d27fcc 6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
6745 (exit $ac_status); }; }; then
6746 ac_cv_var_tzname=yes
6747else
6748 echo "$as_me: failed program was:" >&5
19650fd6
AS
6749sed 's/^/| /' conftest.$ac_ext >&5
6750
98418dba 6751ac_cv_var_tzname=no
ba4481b5 6752fi
35996d22
AS
6753rm -f conftest.err conftest.$ac_objext \
6754 conftest$ac_exeext conftest.$ac_ext
98418dba 6755fi
c0d27fcc 6756echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
98418dba
CW
6757echo "${ECHO_T}$ac_cv_var_tzname" >&6
6758 if test $ac_cv_var_tzname = yes; then
ba4481b5 6759
c0d27fcc 6760cat >>confdefs.h <<\_ACEOF
98418dba 6761#define HAVE_TZNAME 1
c0d27fcc 6762_ACEOF
503d2be0 6763
98418dba
CW
6764 fi
6765fi
503d2be0 6766
c0d27fcc 6767echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
b936fae4
AS
6768echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6769if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
98418dba
CW
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771else
6772 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6773/* confdefs.h. */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h. */
98418dba 6778#include <time.h>
b936fae4 6779
98418dba
CW
6780int
6781main ()
6782{
b936fae4
AS
6783static struct tm ac_aggr;
6784if (ac_aggr.tm_gmtoff)
6785return 0;
98418dba
CW
6786 ;
6787 return 0;
6788}
6789_ACEOF
b936fae4 6790rm -f conftest.$ac_objext
c0d27fcc 6791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6792 (eval $ac_compile) 2>conftest.er1
98418dba 6793 ac_status=$?
35996d22
AS
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
c0d27fcc 6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 6798 (exit $ac_status); } &&
35996d22
AS
6799 { ac_try='test -z "$ac_c_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
c0d27fcc 6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 6811 (exit $ac_status); }; }; then
b936fae4 6812 ac_cv_member_struct_tm_tm_gmtoff=yes
98418dba
CW
6813else
6814 echo "$as_me: failed program was:" >&5
19650fd6
AS
6815sed 's/^/| /' conftest.$ac_ext >&5
6816
8799b3e4 6817cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6818/* confdefs.h. */
6819_ACEOF
6820cat confdefs.h >>conftest.$ac_ext
6821cat >>conftest.$ac_ext <<_ACEOF
6822/* end confdefs.h. */
6bae0ccf
DL
6823#include <time.h>
6824
8799b3e4
CW
6825int
6826main ()
6827{
6bae0ccf
DL
6828static struct tm ac_aggr;
6829if (sizeof ac_aggr.tm_gmtoff)
6830return 0;
8799b3e4
CW
6831 ;
6832 return 0;
6833}
6834_ACEOF
6bae0ccf 6835rm -f conftest.$ac_objext
c0d27fcc 6836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6837 (eval $ac_compile) 2>conftest.er1
8799b3e4 6838 ac_status=$?
35996d22
AS
6839 grep -v '^ *+' conftest.er1 >conftest.err
6840 rm -f conftest.er1
6841 cat conftest.err >&5
c0d27fcc 6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799b3e4 6843 (exit $ac_status); } &&
35996d22
AS
6844 { ac_try='test -z "$ac_c_werror_flag"
6845 || test ! -s conftest.err'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; } &&
6851 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799b3e4
CW
6853 (eval $ac_try) 2>&5
6854 ac_status=$?
c0d27fcc 6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799b3e4 6856 (exit $ac_status); }; }; then
6bae0ccf 6857 ac_cv_member_struct_tm_tm_gmtoff=yes
8799b3e4
CW
6858else
6859 echo "$as_me: failed program was:" >&5
19650fd6
AS
6860sed 's/^/| /' conftest.$ac_ext >&5
6861
6bae0ccf 6862ac_cv_member_struct_tm_tm_gmtoff=no
8799b3e4 6863fi
35996d22 6864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bae0ccf 6865fi
35996d22 6866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8799b3e4 6867fi
6bae0ccf
DL
6868echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6869echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6870if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6871
6872cat >>confdefs.h <<\_ACEOF
6873#define HAVE_TM_GMTOFF 1
6874_ACEOF
6875
6876fi
6877
96f3a036
DL
6878echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6879echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6880if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883 cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
6884/* confdefs.h. */
6885_ACEOF
6886cat confdefs.h >>conftest.$ac_ext
6887cat >>conftest.$ac_ext <<_ACEOF
6888/* end confdefs.h. */
7862d3a8
AS
6889$ac_includes_default
6890#if HAVE_SYS_SOCKET_H
6891#include <sys/socket.h>
6892#endif
6893#if HAVE_NET_IF_H
96f3a036 6894#include <net/if.h>
7862d3a8 6895#endif
96f3a036
DL
6896
6897int
6898main ()
6899{
6900static struct ifreq ac_aggr;
6901if (ac_aggr.ifr_flags)
6902return 0;
6903 ;
6904 return 0;
6905}
6906_ACEOF
6907rm -f conftest.$ac_objext
6908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6909 (eval $ac_compile) 2>conftest.er1
96f3a036 6910 ac_status=$?
35996d22
AS
6911 grep -v '^ *+' conftest.er1 >conftest.err
6912 rm -f conftest.er1
6913 cat conftest.err >&5
96f3a036
DL
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
35996d22
AS
6916 { ac_try='test -z "$ac_c_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_cv_member_struct_ifreq_ifr_flags=yes
6930else
6931 echo "$as_me: failed program was:" >&5
6932sed 's/^/| /' conftest.$ac_ext >&5
6933
6934cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
6935/* confdefs.h. */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h. */
7862d3a8
AS
6940$ac_includes_default
6941#if HAVE_SYS_SOCKET_H
6942#include <sys/socket.h>
6943#endif
6944#if HAVE_NET_IF_H
96f3a036 6945#include <net/if.h>
7862d3a8 6946#endif
96f3a036
DL
6947
6948int
6949main ()
6950{
6951static struct ifreq ac_aggr;
6952if (sizeof ac_aggr.ifr_flags)
6953return 0;
6954 ;
6955 return 0;
6956}
6957_ACEOF
6958rm -f conftest.$ac_objext
6959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6960 (eval $ac_compile) 2>conftest.er1
96f3a036 6961 ac_status=$?
35996d22
AS
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
96f3a036
DL
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } &&
35996d22
AS
6967 { ac_try='test -z "$ac_c_werror_flag"
6968 || test ! -s conftest.err'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 (eval $ac_try) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_cv_member_struct_ifreq_ifr_flags=yes
6981else
6982 echo "$as_me: failed program was:" >&5
6983sed 's/^/| /' conftest.$ac_ext >&5
6984
6985ac_cv_member_struct_ifreq_ifr_flags=no
6986fi
35996d22 6987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036 6988fi
35996d22 6989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036
DL
6990fi
6991echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6992echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6993if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6994
6995cat >>confdefs.h <<_ACEOF
6996#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6997_ACEOF
6998
6999
7000fi
7001echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7002echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7003if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005else
7006 cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7007/* confdefs.h. */
7008_ACEOF
7009cat confdefs.h >>conftest.$ac_ext
7010cat >>conftest.$ac_ext <<_ACEOF
7011/* end confdefs.h. */
7862d3a8
AS
7012$ac_includes_default
7013#if HAVE_SYS_SOCKET_H
7014#include <sys/socket.h>
7015#endif
7016#if HAVE_NET_IF_H
96f3a036 7017#include <net/if.h>
7862d3a8 7018#endif
96f3a036
DL
7019
7020int
7021main ()
7022{
7023static struct ifreq ac_aggr;
7024if (ac_aggr.ifr_hwaddr)
7025return 0;
7026 ;
7027 return 0;
7028}
7029_ACEOF
7030rm -f conftest.$ac_objext
7031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7032 (eval $ac_compile) 2>conftest.er1
96f3a036 7033 ac_status=$?
35996d22
AS
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
96f3a036
DL
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
35996d22
AS
7039 { ac_try='test -z "$ac_c_werror_flag"
7040 || test ! -s conftest.err'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; } &&
7046 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7053else
7054 echo "$as_me: failed program was:" >&5
7055sed 's/^/| /' conftest.$ac_ext >&5
7056
7057cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7058/* confdefs.h. */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h. */
7862d3a8
AS
7063$ac_includes_default
7064#if HAVE_SYS_SOCKET_H
7065#include <sys/socket.h>
7066#endif
7067#if HAVE_NET_IF_H
96f3a036 7068#include <net/if.h>
7862d3a8 7069#endif
96f3a036
DL
7070
7071int
7072main ()
7073{
7074static struct ifreq ac_aggr;
7075if (sizeof ac_aggr.ifr_hwaddr)
7076return 0;
7077 ;
7078 return 0;
7079}
7080_ACEOF
7081rm -f conftest.$ac_objext
7082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7083 (eval $ac_compile) 2>conftest.er1
96f3a036 7084 ac_status=$?
35996d22
AS
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
96f3a036
DL
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
35996d22
AS
7090 { ac_try='test -z "$ac_c_werror_flag"
7091 || test ! -s conftest.err'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } &&
7097 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 (eval $ac_try) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7104else
7105 echo "$as_me: failed program was:" >&5
7106sed 's/^/| /' conftest.$ac_ext >&5
7107
7108ac_cv_member_struct_ifreq_ifr_hwaddr=no
7109fi
35996d22 7110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036 7111fi
35996d22 7112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036
DL
7113fi
7114echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7115echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7116if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7117
7118cat >>confdefs.h <<_ACEOF
7119#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7120_ACEOF
7121
7122
7123fi
7124echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7125echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7126if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128else
7129 cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7130/* confdefs.h. */
7131_ACEOF
7132cat confdefs.h >>conftest.$ac_ext
7133cat >>conftest.$ac_ext <<_ACEOF
7134/* end confdefs.h. */
7862d3a8
AS
7135$ac_includes_default
7136#if HAVE_SYS_SOCKET_H
7137#include <sys/socket.h>
7138#endif
7139#if HAVE_NET_IF_H
96f3a036 7140#include <net/if.h>
7862d3a8 7141#endif
96f3a036
DL
7142
7143int
7144main ()
7145{
7146static struct ifreq ac_aggr;
7147if (ac_aggr.ifr_netmask)
7148return 0;
7149 ;
7150 return 0;
7151}
7152_ACEOF
7153rm -f conftest.$ac_objext
7154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7155 (eval $ac_compile) 2>conftest.er1
96f3a036 7156 ac_status=$?
35996d22
AS
7157 grep -v '^ *+' conftest.er1 >conftest.err
7158 rm -f conftest.er1
7159 cat conftest.err >&5
96f3a036
DL
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } &&
35996d22
AS
7162 { ac_try='test -z "$ac_c_werror_flag"
7163 || test ! -s conftest.err'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; } &&
7169 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 (eval $ac_try) 2>&5
7172 ac_status=$?
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7175 ac_cv_member_struct_ifreq_ifr_netmask=yes
7176else
7177 echo "$as_me: failed program was:" >&5
7178sed 's/^/| /' conftest.$ac_ext >&5
7179
7180cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7181/* confdefs.h. */
7182_ACEOF
7183cat confdefs.h >>conftest.$ac_ext
7184cat >>conftest.$ac_ext <<_ACEOF
7185/* end confdefs.h. */
7862d3a8
AS
7186$ac_includes_default
7187#if HAVE_SYS_SOCKET_H
7188#include <sys/socket.h>
7189#endif
7190#if HAVE_NET_IF_H
96f3a036 7191#include <net/if.h>
7862d3a8 7192#endif
96f3a036
DL
7193
7194int
7195main ()
7196{
7197static struct ifreq ac_aggr;
7198if (sizeof ac_aggr.ifr_netmask)
7199return 0;
7200 ;
7201 return 0;
7202}
7203_ACEOF
7204rm -f conftest.$ac_objext
7205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7206 (eval $ac_compile) 2>conftest.er1
96f3a036 7207 ac_status=$?
35996d22
AS
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
96f3a036
DL
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
35996d22
AS
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_cv_member_struct_ifreq_ifr_netmask=yes
7227else
7228 echo "$as_me: failed program was:" >&5
7229sed 's/^/| /' conftest.$ac_ext >&5
7230
7231ac_cv_member_struct_ifreq_ifr_netmask=no
7232fi
35996d22 7233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036 7234fi
35996d22 7235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036
DL
7236fi
7237echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7238echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7239if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7240
7241cat >>confdefs.h <<_ACEOF
7242#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7243_ACEOF
7244
7245
7246fi
7247echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7248echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7249if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252 cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7253/* confdefs.h. */
7254_ACEOF
7255cat confdefs.h >>conftest.$ac_ext
7256cat >>conftest.$ac_ext <<_ACEOF
7257/* end confdefs.h. */
7862d3a8
AS
7258$ac_includes_default
7259#if HAVE_SYS_SOCKET_H
7260#include <sys/socket.h>
7261#endif
7262#if HAVE_NET_IF_H
96f3a036 7263#include <net/if.h>
7862d3a8 7264#endif
96f3a036
DL
7265
7266int
7267main ()
7268{
7269static struct ifreq ac_aggr;
7270if (ac_aggr.ifr_broadaddr)
7271return 0;
7272 ;
7273 return 0;
7274}
7275_ACEOF
7276rm -f conftest.$ac_objext
7277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7278 (eval $ac_compile) 2>conftest.er1
96f3a036 7279 ac_status=$?
35996d22
AS
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
96f3a036
DL
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
35996d22
AS
7285 { ac_try='test -z "$ac_c_werror_flag"
7286 || test ! -s conftest.err'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 (eval $ac_try) 2>&5
7289 ac_status=$?
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7299else
7300 echo "$as_me: failed program was:" >&5
7301sed 's/^/| /' conftest.$ac_ext >&5
7302
7303cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7304/* confdefs.h. */
7305_ACEOF
7306cat confdefs.h >>conftest.$ac_ext
7307cat >>conftest.$ac_ext <<_ACEOF
7308/* end confdefs.h. */
7862d3a8
AS
7309$ac_includes_default
7310#if HAVE_SYS_SOCKET_H
7311#include <sys/socket.h>
7312#endif
7313#if HAVE_NET_IF_H
96f3a036 7314#include <net/if.h>
7862d3a8 7315#endif
96f3a036
DL
7316
7317int
7318main ()
7319{
7320static struct ifreq ac_aggr;
7321if (sizeof ac_aggr.ifr_broadaddr)
7322return 0;
7323 ;
7324 return 0;
7325}
7326_ACEOF
7327rm -f conftest.$ac_objext
7328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7329 (eval $ac_compile) 2>conftest.er1
96f3a036 7330 ac_status=$?
35996d22
AS
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
96f3a036
DL
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
35996d22
AS
7336 { ac_try='test -z "$ac_c_werror_flag"
7337 || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7350else
7351 echo "$as_me: failed program was:" >&5
7352sed 's/^/| /' conftest.$ac_ext >&5
7353
7354ac_cv_member_struct_ifreq_ifr_broadaddr=no
7355fi
35996d22 7356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036 7357fi
35996d22 7358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036
DL
7359fi
7360echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7361echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7362if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7363
7364cat >>confdefs.h <<_ACEOF
7365#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7366_ACEOF
7367
7368
7369fi
7370echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7371echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7372if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374else
7375 cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7376/* confdefs.h. */
7377_ACEOF
7378cat confdefs.h >>conftest.$ac_ext
7379cat >>conftest.$ac_ext <<_ACEOF
7380/* end confdefs.h. */
7862d3a8
AS
7381$ac_includes_default
7382#if HAVE_SYS_SOCKET_H
7383#include <sys/socket.h>
7384#endif
7385#if HAVE_NET_IF_H
96f3a036 7386#include <net/if.h>
7862d3a8 7387#endif
96f3a036
DL
7388
7389int
7390main ()
7391{
7392static struct ifreq ac_aggr;
7393if (ac_aggr.ifr_addr)
7394return 0;
7395 ;
7396 return 0;
7397}
7398_ACEOF
7399rm -f conftest.$ac_objext
7400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7401 (eval $ac_compile) 2>conftest.er1
96f3a036 7402 ac_status=$?
35996d22
AS
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
96f3a036
DL
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
35996d22
AS
7408 { ac_try='test -z "$ac_c_werror_flag"
7409 || test ! -s conftest.err'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; } &&
7415 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7421 ac_cv_member_struct_ifreq_ifr_addr=yes
7422else
7423 echo "$as_me: failed program was:" >&5
7424sed 's/^/| /' conftest.$ac_ext >&5
7425
7426cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7427/* confdefs.h. */
7428_ACEOF
7429cat confdefs.h >>conftest.$ac_ext
7430cat >>conftest.$ac_ext <<_ACEOF
7431/* end confdefs.h. */
7862d3a8
AS
7432$ac_includes_default
7433#if HAVE_SYS_SOCKET_H
7434#include <sys/socket.h>
7435#endif
7436#if HAVE_NET_IF_H
96f3a036 7437#include <net/if.h>
7862d3a8 7438#endif
96f3a036
DL
7439
7440int
7441main ()
7442{
7443static struct ifreq ac_aggr;
7444if (sizeof ac_aggr.ifr_addr)
7445return 0;
7446 ;
7447 return 0;
7448}
7449_ACEOF
7450rm -f conftest.$ac_objext
7451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7452 (eval $ac_compile) 2>conftest.er1
96f3a036 7453 ac_status=$?
35996d22
AS
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
96f3a036
DL
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
35996d22
AS
7459 { ac_try='test -z "$ac_c_werror_flag"
7460 || test ! -s conftest.err'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 (eval $ac_try) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; } &&
7466 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 (eval $ac_try) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 ac_cv_member_struct_ifreq_ifr_addr=yes
7473else
7474 echo "$as_me: failed program was:" >&5
7475sed 's/^/| /' conftest.$ac_ext >&5
7476
7477ac_cv_member_struct_ifreq_ifr_addr=no
7478fi
35996d22 7479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036 7480fi
35996d22 7481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036
DL
7482fi
7483echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7484echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7485if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7486
7487cat >>confdefs.h <<_ACEOF
7488#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7489_ACEOF
7490
7491
7492fi
7493
8799b3e4 7494
8799b3e4 7495
c0d27fcc 7496echo "$as_me:$LINENO: checking for function prototypes" >&5
98418dba
CW
7497echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7498if test "$ac_cv_prog_cc_stdc" != no; then
c0d27fcc 7499 echo "$as_me:$LINENO: result: yes" >&5
98418dba
CW
7500echo "${ECHO_T}yes" >&6
7501
c0d27fcc 7502cat >>confdefs.h <<\_ACEOF
98418dba 7503#define PROTOTYPES 1
c0d27fcc
MR
7504_ACEOF
7505
7506
7507cat >>confdefs.h <<\_ACEOF
7508#define __PROTOTYPES 1
7509_ACEOF
98418dba
CW
7510
7511else
c0d27fcc 7512 echo "$as_me:$LINENO: result: no" >&5
98418dba
CW
7513echo "${ECHO_T}no" >&6
7514fi
7515
c0d27fcc 7516echo "$as_me:$LINENO: checking for working volatile" >&5
98418dba
CW
7517echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7518if test "${ac_cv_c_volatile+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
7522/* confdefs.h. */
7523_ACEOF
7524cat confdefs.h >>conftest.$ac_ext
7525cat >>conftest.$ac_ext <<_ACEOF
7526/* end confdefs.h. */
98418dba 7527
98418dba
CW
7528int
7529main ()
7530{
7531
7532volatile int x;
7533int * volatile y;
7534 ;
7535 return 0;
7536}
7537_ACEOF
7538rm -f conftest.$ac_objext
c0d27fcc 7539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7540 (eval $ac_compile) 2>conftest.er1
98418dba 7541 ac_status=$?
35996d22
AS
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
c0d27fcc 7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 7546 (exit $ac_status); } &&
35996d22
AS
7547 { ac_try='test -z "$ac_c_werror_flag"
7548 || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
c0d27fcc 7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
7559 (exit $ac_status); }; }; then
7560 ac_cv_c_volatile=yes
7561else
7562 echo "$as_me: failed program was:" >&5
19650fd6
AS
7563sed 's/^/| /' conftest.$ac_ext >&5
7564
98418dba
CW
7565ac_cv_c_volatile=no
7566fi
35996d22 7567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba 7568fi
c0d27fcc 7569echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
98418dba
CW
7570echo "${ECHO_T}$ac_cv_c_volatile" >&6
7571if test $ac_cv_c_volatile = no; then
7572
c0d27fcc 7573cat >>confdefs.h <<\_ACEOF
98418dba 7574#define volatile
c0d27fcc 7575_ACEOF
98418dba
CW
7576
7577fi
7578
c0d27fcc 7579echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
98418dba
CW
7580echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7581if test "${ac_cv_c_const+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583else
7584 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
7585/* confdefs.h. */
7586_ACEOF
7587cat confdefs.h >>conftest.$ac_ext
7588cat >>conftest.$ac_ext <<_ACEOF
7589/* end confdefs.h. */
98418dba 7590
98418dba
CW
7591int
7592main ()
7593{
7594/* FIXME: Include the comments suggested by Paul. */
7595#ifndef __cplusplus
7596 /* Ultrix mips cc rejects this. */
7597 typedef int charset[2];
7598 const charset x;
7599 /* SunOS 4.1.1 cc rejects this. */
7600 char const *const *ccp;
7601 char **p;
7602 /* NEC SVR4.0.2 mips cc rejects this. */
7603 struct point {int x, y;};
7604 static struct point const zero = {0,0};
7605 /* AIX XL C 1.02.0.0 rejects this.
7606 It does not let you subtract one const X* pointer from another in
7607 an arm of an if-expression whose if-part is not a constant
7608 expression */
7609 const char *g = "string";
7610 ccp = &g + (g ? g-g : 0);
7611 /* HPUX 7.0 cc rejects these. */
7612 ++ccp;
7613 p = (char**) ccp;
7614 ccp = (char const *const *) p;
7615 { /* SCO 3.2v4 cc rejects this. */
7616 char *t;
7617 char const *s = 0 ? (char *) 0 : (char const *) 0;
7618
7619 *t++ = 0;
7620 }
7621 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7622 int x[] = {25, 17};
7623 const int *foo = &x[0];
7624 ++foo;
7625 }
7626 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7627 typedef const int *iptr;
7628 iptr p = 0;
7629 ++p;
7630 }
7631 { /* AIX XL C 1.02.0.0 rejects this saying
7632 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7633 struct s { int j; const int *ap[3]; };
7634 struct s *b; b->j = 5;
7635 }
7636 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7637 const int foo = 10;
7638 }
7639#endif
7640
7641 ;
7642 return 0;
7643}
7644_ACEOF
7645rm -f conftest.$ac_objext
c0d27fcc 7646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7647 (eval $ac_compile) 2>conftest.er1
98418dba 7648 ac_status=$?
35996d22
AS
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
c0d27fcc 7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 7653 (exit $ac_status); } &&
35996d22
AS
7654 { ac_try='test -z "$ac_c_werror_flag"
7655 || test ! -s conftest.err'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 (eval $ac_try) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
c0d27fcc 7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
7666 (exit $ac_status); }; }; then
7667 ac_cv_c_const=yes
7668else
7669 echo "$as_me: failed program was:" >&5
19650fd6
AS
7670sed 's/^/| /' conftest.$ac_ext >&5
7671
98418dba
CW
7672ac_cv_c_const=no
7673fi
35996d22 7674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba 7675fi
c0d27fcc 7676echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
98418dba
CW
7677echo "${ECHO_T}$ac_cv_c_const" >&6
7678if test $ac_cv_c_const = no; then
7679
c0d27fcc 7680cat >>confdefs.h <<\_ACEOF
98418dba 7681#define const
c0d27fcc 7682_ACEOF
98418dba
CW
7683
7684fi
7685
c0d27fcc 7686echo "$as_me:$LINENO: checking for void * support" >&5
98418dba
CW
7687echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7688if test "${emacs_cv_void_star+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690else
7691 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
7692/* confdefs.h. */
7693_ACEOF
7694cat confdefs.h >>conftest.$ac_ext
7695cat >>conftest.$ac_ext <<_ACEOF
7696/* end confdefs.h. */
98418dba 7697
98418dba
CW
7698int
7699main ()
7700{
7701void * foo;
7702 ;
7703 return 0;
7704}
7705_ACEOF
7706rm -f conftest.$ac_objext
c0d27fcc 7707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7708 (eval $ac_compile) 2>conftest.er1
98418dba 7709 ac_status=$?
35996d22
AS
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
c0d27fcc 7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 7714 (exit $ac_status); } &&
35996d22
AS
7715 { ac_try='test -z "$ac_c_werror_flag"
7716 || test ! -s conftest.err'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 (eval $ac_try) 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
c0d27fcc 7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
7727 (exit $ac_status); }; }; then
7728 emacs_cv_void_star=yes
7729else
7730 echo "$as_me: failed program was:" >&5
19650fd6
AS
7731sed 's/^/| /' conftest.$ac_ext >&5
7732
98418dba
CW
7733emacs_cv_void_star=no
7734fi
35996d22 7735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba 7736fi
c0d27fcc 7737echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
98418dba
CW
7738echo "${ECHO_T}$emacs_cv_void_star" >&6
7739if test $emacs_cv_void_star = yes; then
c0d27fcc 7740 cat >>confdefs.h <<\_ACEOF
98418dba 7741#define POINTER_TYPE void
c0d27fcc 7742_ACEOF
98418dba
CW
7743
7744else
c0d27fcc 7745 cat >>confdefs.h <<\_ACEOF
98418dba 7746#define POINTER_TYPE char
c0d27fcc 7747_ACEOF
98418dba
CW
7748
7749fi
7750
c0d27fcc 7751
cd958eb3 7752
19650fd6
AS
7753echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7754echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35996d22 7755set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
98418dba
CW
7756if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
c0d27fcc 7759 cat >conftest.make <<\_ACEOF
98418dba 7760all:
19650fd6 7761 @echo 'ac_maketemp="$(MAKE)"'
c0d27fcc 7762_ACEOF
98418dba
CW
7763# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7764eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7765if test -n "$ac_maketemp"; then
7766 eval ac_cv_prog_make_${ac_make}_set=yes
7767else
7768 eval ac_cv_prog_make_${ac_make}_set=no
7769fi
7770rm -f conftest.make
7771fi
7772if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
c0d27fcc 7773 echo "$as_me:$LINENO: result: yes" >&5
98418dba
CW
7774echo "${ECHO_T}yes" >&6
7775 SET_MAKE=
7776else
c0d27fcc 7777 echo "$as_me:$LINENO: result: no" >&5
98418dba
CW
7778echo "${ECHO_T}no" >&6
7779 SET_MAKE="MAKE=${MAKE-make}"
7780fi
7781
c0d27fcc
MR
7782
7783echo "$as_me:$LINENO: checking for long file names" >&5
98418dba
CW
7784echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7785if test "${ac_cv_sys_long_file_names+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 ac_cv_sys_long_file_names=yes
7789# Test for long file names in all the places we know might matter:
7790# . the current directory, where building will happen
7791# $prefix/lib where we will be installing things
7792# $exec_prefix/lib likewise
7793# eval it to expand exec_prefix.
7794# $TMPDIR if set, where it might want to write temporary files
7795# if $TMPDIR is not set:
7796# /tmp where it might want to write temporary files
7797# /var/tmp likewise
7798# /usr/tmp likewise
7799if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7800 ac_tmpdirs=$TMPDIR
7801else
7802 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7803fi
7804for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7805 test -d $ac_dir || continue
7806 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7807 ac_xdir=$ac_dir/cf$$
7808 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7809 ac_tf1=$ac_xdir/conftest9012345
7810 ac_tf2=$ac_xdir/conftest9012346
7811 (echo 1 >$ac_tf1) 2>/dev/null
7812 (echo 2 >$ac_tf2) 2>/dev/null
7813 ac_val=`cat $ac_tf1 2>/dev/null`
7814 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7815 ac_cv_sys_long_file_names=no
7816 rm -rf $ac_xdir 2>/dev/null
7817 break
7818 fi
7819 rm -rf $ac_xdir 2>/dev/null
7820done
7821fi
c0d27fcc 7822echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
98418dba
CW
7823echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7824if test $ac_cv_sys_long_file_names = yes; then
7825
c0d27fcc 7826cat >>confdefs.h <<\_ACEOF
98418dba 7827#define HAVE_LONG_FILE_NAMES 1
c0d27fcc 7828_ACEOF
98418dba
CW
7829
7830fi
7831
c0d27fcc 7832
98418dba
CW
7833#### Choose a window system.
7834
c0d27fcc 7835echo "$as_me:$LINENO: checking for X" >&5
98418dba
CW
7836echo $ECHO_N "checking for X... $ECHO_C" >&6
7837
c0d27fcc 7838
98418dba
CW
7839# Check whether --with-x or --without-x was given.
7840if test "${with_x+set}" = set; then
7841 withval="$with_x"
7842
7843fi;
7844# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7845if test "x$with_x" = xno; then
7846 # The user explicitly disabled X.
7847 have_x=disabled
7848else
7849 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7850 # Both variables are already set.
7851 have_x=yes
7852 else
7853 if test "${ac_cv_have_x+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 # One or both of the vars are not set, and there is no cached value.
7857ac_x_includes=no ac_x_libraries=no
7858rm -fr conftest.dir
7859if mkdir conftest.dir; then
7860 cd conftest.dir
7861 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
c0d27fcc 7862 cat >Imakefile <<'_ACEOF'
98418dba
CW
7863acfindx:
7864 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
c0d27fcc 7865_ACEOF
98418dba
CW
7866 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7868 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7869 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7870 for ac_extension in a so sl; do
7871 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
35996d22
AS
7872 test -f $ac_im_libdir/libX11.$ac_extension; then
7873 ac_im_usrlibdir=$ac_im_libdir; break
98418dba
CW
7874 fi
7875 done
7876 # Screen out bogus values from the imake configuration. They are
7877 # bogus both because they are the default anyway, and because
7878 # using them would break gcc on systems where it needs fixed includes.
7879 case $ac_im_incroot in
7880 /usr/include) ;;
7881 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7882 esac
7883 case $ac_im_usrlibdir in
7884 /usr/lib | /lib) ;;
7885 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7886 esac
7887 fi
7888 cd ..
7889 rm -fr conftest.dir
7890fi
7891
7892# Standard set of common directories for X headers.
7893# Check X11 before X11Rn because it is often a symlink to the current release.
7894ac_x_header_dirs='
7895/usr/X11/include
7896/usr/X11R6/include
7897/usr/X11R5/include
7898/usr/X11R4/include
7899
7900/usr/include/X11
7901/usr/include/X11R6
7902/usr/include/X11R5
7903/usr/include/X11R4
7904
7905/usr/local/X11/include
7906/usr/local/X11R6/include
7907/usr/local/X11R5/include
7908/usr/local/X11R4/include
7909
7910/usr/local/include/X11
7911/usr/local/include/X11R6
7912/usr/local/include/X11R5
7913/usr/local/include/X11R4
7914
7915/usr/X386/include
7916/usr/x386/include
7917/usr/XFree86/include/X11
7918
7919/usr/include
7920/usr/local/include
7921/usr/unsupported/include
7922/usr/athena/include
7923/usr/local/x11r5/include
7924/usr/lpp/Xamples/include
7925
7926/usr/openwin/include
7927/usr/openwin/share/include'
7928
7929if test "$ac_x_includes" = no; then
7930 # Guess where to find include files, by looking for Intrinsic.h.
7931 # First, try using that file with no special directory specified.
7932 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
7933/* confdefs.h. */
7934_ACEOF
7935cat confdefs.h >>conftest.$ac_ext
7936cat >>conftest.$ac_ext <<_ACEOF
7937/* end confdefs.h. */
98418dba
CW
7938#include <X11/Intrinsic.h>
7939_ACEOF
c0d27fcc 7940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
7941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7942 ac_status=$?
6bae0ccf 7943 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
7944 rm -f conftest.er1
7945 cat conftest.err >&5
c0d27fcc 7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
7947 (exit $ac_status); } >/dev/null; then
7948 if test -s conftest.err; then
7949 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 7950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
7951 else
7952 ac_cpp_err=
7953 fi
7954else
7955 ac_cpp_err=yes
7956fi
7957if test -z "$ac_cpp_err"; then
7958 # We can compile using X headers with no special include directory.
7959ac_x_includes=
7960else
7961 echo "$as_me: failed program was:" >&5
19650fd6
AS
7962sed 's/^/| /' conftest.$ac_ext >&5
7963
98418dba
CW
7964 for ac_dir in $ac_x_header_dirs; do
7965 if test -r "$ac_dir/X11/Intrinsic.h"; then
7966 ac_x_includes=$ac_dir
7967 break
7968 fi
7969done
7970fi
7971rm -f conftest.err conftest.$ac_ext
7972fi # $ac_x_includes = no
7973
7974if test "$ac_x_libraries" = no; then
7975 # Check for the libraries.
7976 # See if we find them without any special options.
7977 # Don't add to $LIBS permanently.
7978 ac_save_LIBS=$LIBS
7979 LIBS="-lXt $LIBS"
7980 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
7981/* confdefs.h. */
7982_ACEOF
7983cat confdefs.h >>conftest.$ac_ext
7984cat >>conftest.$ac_ext <<_ACEOF
7985/* end confdefs.h. */
98418dba 7986#include <X11/Intrinsic.h>
98418dba
CW
7987int
7988main ()
7989{
7990XtMalloc (0)
7991 ;
7992 return 0;
7993}
7994_ACEOF
7995rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 7996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 7997 (eval $ac_link) 2>conftest.er1
98418dba 7998 ac_status=$?
35996d22
AS
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
c0d27fcc 8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8003 (exit $ac_status); } &&
35996d22
AS
8004 { ac_try='test -z "$ac_c_werror_flag"
8005 || test ! -s conftest.err'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; } &&
8011 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
c0d27fcc 8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8016 (exit $ac_status); }; }; then
8017 LIBS=$ac_save_LIBS
8018# We can link X programs with no special library path.
8019ac_x_libraries=
8020else
8021 echo "$as_me: failed program was:" >&5
19650fd6
AS
8022sed 's/^/| /' conftest.$ac_ext >&5
8023
98418dba
CW
8024LIBS=$ac_save_LIBS
8025for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8026do
8027 # Don't even attempt the hair of trying to link an X program!
8028 for ac_extension in a so sl; do
8029 if test -r $ac_dir/libXt.$ac_extension; then
8030 ac_x_libraries=$ac_dir
8031 break 2
8032 fi
8033 done
8034done
8035fi
35996d22
AS
8036rm -f conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
8038fi # $ac_x_libraries = no
8039
8040if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8041 # Didn't find X anywhere. Cache the known absence of X.
8042 ac_cv_have_x="have_x=no"
8043else
8044 # Record where we found X for the cache.
8045 ac_cv_have_x="have_x=yes \
35996d22 8046 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
98418dba
CW
8047fi
8048fi
8049
8050 fi
8051 eval "$ac_cv_have_x"
8052fi # $with_x != no
8053
8054if test "$have_x" != yes; then
c0d27fcc 8055 echo "$as_me:$LINENO: result: $have_x" >&5
98418dba
CW
8056echo "${ECHO_T}$have_x" >&6
8057 no_x=yes
8058else
8059 # If each of the values was on the command line, it overrides each guess.
8060 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8061 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8062 # Update the cache value to reflect the command line values.
8063 ac_cv_have_x="have_x=yes \
8064 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c0d27fcc 8065 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
98418dba
CW
8066echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8067fi
8068
8069if test "$no_x" = yes; then
8070 window_system=none
8071else
8072 window_system=x11
8073fi
8074
8075if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8076 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8077 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8078 x_default_search_path=""
8079 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8080 x_search_path="\
8081${x_library}/X11/%L/%T/%N%C%S:\
8082${x_library}/X11/%l/%T/%N%C%S:\
8083${x_library}/X11/%T/%N%C%S:\
8084${x_library}/X11/%L/%T/%N%S:\
8085${x_library}/X11/%l/%T/%N%S:\
8086${x_library}/X11/%T/%N%S"
8087 if test x"${x_default_search_path}" = x; then
8088 x_default_search_path=${x_search_path}
8089 else
8090 x_default_search_path="${x_search_path}:${x_default_search_path}"
8091 fi
8092 done
8093fi
8094if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8095 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8096fi
8097
8098if test x"${x_includes}" = x; then
8099 bitmapdir=/usr/include/X11/bitmaps
8100else
8101 # accumulate include directories that have X11 bitmap subdirectories
8102 bmd_acc="dummyval"
8103 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8104 if test -d "${bmd}/X11/bitmaps"; then
8105 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8106 fi
8107 if test -d "${bmd}/bitmaps"; then
8108 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8109 fi
8110 done
8111 if test ${bmd_acc} != "dummyval"; then
8112 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8113 fi
8114fi
8115
8116case "${window_system}" in
8117 x11 )
8118 HAVE_X_WINDOWS=yes
8119 HAVE_X11=yes
8120 case "${with_x_toolkit}" in
8121 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8122 motif ) USE_X_TOOLKIT=MOTIF ;;
488dd4c4
JD
8123 gtk ) with_gtk=yes
8124 USE_X_TOOLKIT=none ;;
98418dba
CW
8125 no ) USE_X_TOOLKIT=none ;;
8126 * ) USE_X_TOOLKIT=maybe ;;
8127 esac
8128 ;;
8129 none )
8130 HAVE_X_WINDOWS=no
8131 HAVE_X11=no
8132 USE_X_TOOLKIT=none
8133 ;;
8134esac
8135
8136### If we're using X11, we should use the X menu package.
8137HAVE_MENUS=no
8138case ${HAVE_X11} in
8139 yes ) HAVE_MENUS=yes ;;
8140esac
8141
8142if test "${opsys}" = "hpux9"; then
8143 case "${x_libraries}" in
8144 *X11R4* )
8145 opsysfile="s/hpux9-x11r4.h"
8146 ;;
8147 esac
8148fi
8149
8150if test "${opsys}" = "hpux9shr"; then
8151 case "${x_libraries}" in
8152 *X11R4* )
8153 opsysfile="s/hpux9shxr4.h"
8154 ;;
8155 esac
8156fi
8157
8158### Compute the unexec source name from the object name.
8159UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8160
8161# Do the opsystem or machine files prohibit the use of the GNU malloc?
8162# Assume not, until told otherwise.
8163GNU_MALLOC=yes
8164doug_lea_malloc=yes
c0d27fcc 8165echo "$as_me:$LINENO: checking for malloc_get_state" >&5
98418dba
CW
8166echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8167if test "${ac_cv_func_malloc_get_state+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169else
8170 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8171/* confdefs.h. */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
8175/* end confdefs.h. */
35996d22
AS
8176/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8178#define malloc_get_state innocuous_malloc_get_state
8179
98418dba 8180/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
8181 which can conflict with char malloc_get_state (); below.
8182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8183 <limits.h> exists even on freestanding compilers. */
35996d22 8184
19650fd6
AS
8185#ifdef __STDC__
8186# include <limits.h>
8187#else
8188# include <assert.h>
8189#endif
35996d22
AS
8190
8191#undef malloc_get_state
8192
98418dba
CW
8193/* Override any gcc2 internal prototype to avoid an error. */
8194#ifdef __cplusplus
8195extern "C"
19650fd6 8196{
98418dba
CW
8197#endif
8198/* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8200char malloc_get_state ();
98418dba
CW
8201/* The GNU C library defines this for functions which it implements
8202 to always fail with ENOSYS. Some functions are actually named
8203 something starting with __ and the normal name is an alias. */
8204#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8205choke me
8206#else
19650fd6
AS
8207char (*f) () = malloc_get_state;
8208#endif
8209#ifdef __cplusplus
8210}
98418dba
CW
8211#endif
8212
19650fd6
AS
8213int
8214main ()
8215{
8216return f != malloc_get_state;
98418dba
CW
8217 ;
8218 return 0;
8219}
8220_ACEOF
8221rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8223 (eval $ac_link) 2>conftest.er1
98418dba 8224 ac_status=$?
35996d22
AS
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
c0d27fcc 8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8229 (exit $ac_status); } &&
35996d22
AS
8230 { ac_try='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
c0d27fcc 8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8242 (exit $ac_status); }; }; then
8243 ac_cv_func_malloc_get_state=yes
8244else
8245 echo "$as_me: failed program was:" >&5
19650fd6
AS
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
98418dba
CW
8248ac_cv_func_malloc_get_state=no
8249fi
35996d22
AS
8250rm -f conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
98418dba 8252fi
c0d27fcc 8253echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
98418dba
CW
8254echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8255if test $ac_cv_func_malloc_get_state = yes; then
8256 :
8257else
8258 doug_lea_malloc=no
8259fi
8260
c0d27fcc 8261echo "$as_me:$LINENO: checking for malloc_set_state" >&5
98418dba
CW
8262echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8263if test "${ac_cv_func_malloc_set_state+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8267/* confdefs.h. */
8268_ACEOF
8269cat confdefs.h >>conftest.$ac_ext
8270cat >>conftest.$ac_ext <<_ACEOF
8271/* end confdefs.h. */
35996d22
AS
8272/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8274#define malloc_set_state innocuous_malloc_set_state
8275
98418dba 8276/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
8277 which can conflict with char malloc_set_state (); below.
8278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279 <limits.h> exists even on freestanding compilers. */
35996d22 8280
19650fd6
AS
8281#ifdef __STDC__
8282# include <limits.h>
8283#else
8284# include <assert.h>
8285#endif
35996d22
AS
8286
8287#undef malloc_set_state
8288
98418dba
CW
8289/* Override any gcc2 internal prototype to avoid an error. */
8290#ifdef __cplusplus
8291extern "C"
19650fd6 8292{
98418dba
CW
8293#endif
8294/* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296char malloc_set_state ();
98418dba
CW
8297/* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named
8299 something starting with __ and the normal name is an alias. */
8300#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8301choke me
8302#else
19650fd6
AS
8303char (*f) () = malloc_set_state;
8304#endif
8305#ifdef __cplusplus
8306}
98418dba
CW
8307#endif
8308
19650fd6
AS
8309int
8310main ()
8311{
8312return f != malloc_set_state;
98418dba
CW
8313 ;
8314 return 0;
8315}
8316_ACEOF
8317rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8319 (eval $ac_link) 2>conftest.er1
98418dba 8320 ac_status=$?
35996d22
AS
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
c0d27fcc 8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8325 (exit $ac_status); } &&
35996d22
AS
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
c0d27fcc 8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8338 (exit $ac_status); }; }; then
8339 ac_cv_func_malloc_set_state=yes
8340else
8341 echo "$as_me: failed program was:" >&5
19650fd6
AS
8342sed 's/^/| /' conftest.$ac_ext >&5
8343
98418dba
CW
8344ac_cv_func_malloc_set_state=no
8345fi
35996d22
AS
8346rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
98418dba 8348fi
c0d27fcc 8349echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
98418dba
CW
8350echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8351if test $ac_cv_func_malloc_set_state = yes; then
8352 :
8353else
8354 doug_lea_malloc=no
8355fi
8356
c0d27fcc 8357echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
98418dba
CW
8358echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8359if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8363/* confdefs.h. */
8364_ACEOF
8365cat confdefs.h >>conftest.$ac_ext
8366cat >>conftest.$ac_ext <<_ACEOF
8367/* end confdefs.h. */
98418dba 8368extern void (* __after_morecore_hook)();
98418dba
CW
8369int
8370main ()
8371{
8372__after_morecore_hook = 0
8373 ;
8374 return 0;
8375}
8376_ACEOF
8377rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8379 (eval $ac_link) 2>conftest.er1
98418dba 8380 ac_status=$?
35996d22
AS
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
c0d27fcc 8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8385 (exit $ac_status); } &&
35996d22
AS
8386 { ac_try='test -z "$ac_c_werror_flag"
8387 || test ! -s conftest.err'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
c0d27fcc 8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8398 (exit $ac_status); }; }; then
8399 emacs_cv_var___after_morecore_hook=yes
8400else
8401 echo "$as_me: failed program was:" >&5
19650fd6
AS
8402sed 's/^/| /' conftest.$ac_ext >&5
8403
98418dba
CW
8404emacs_cv_var___after_morecore_hook=no
8405fi
35996d22
AS
8406rm -f conftest.err conftest.$ac_objext \
8407 conftest$ac_exeext conftest.$ac_ext
98418dba 8408fi
c0d27fcc 8409echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
98418dba
CW
8410echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8411if test $emacs_cv_var___after_morecore_hook = no; then
8412 doug_lea_malloc=no
8413fi
8414if test "${system_malloc}" = "yes"; then
8415 GNU_MALLOC=no
8416 GNU_MALLOC_reason="
8417 (The GNU allocators don't work with this system configuration.)"
8418fi
8419if test "$doug_lea_malloc" = "yes" ; then
8420 if test "$GNU_MALLOC" = yes ; then
8421 GNU_MALLOC_reason="
8422 (Using Doug Lea's new malloc from the GNU C Library.)"
8423 fi
b936fae4 8424
c0d27fcc 8425cat >>confdefs.h <<\_ACEOF
98418dba 8426#define DOUG_LEA_MALLOC 1
c0d27fcc 8427_ACEOF
98418dba
CW
8428
8429fi
8430
8431if test x"${REL_ALLOC}" = x; then
8432 REL_ALLOC=${GNU_MALLOC}
8433fi
8434
8435
c0d27fcc
MR
8436
8437
8438for ac_header in stdlib.h unistd.h
98418dba
CW
8439do
8440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
8441if eval "test \"\${$as_ac_Header+set}\" = set"; then
8442 echo "$as_me:$LINENO: checking for $ac_header" >&5
98418dba
CW
8443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8444if eval "test \"\${$as_ac_Header+set}\" = set"; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
8446fi
8447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 8449else
c0d27fcc
MR
8450 # Is the header compilable?
8451echo "$as_me:$LINENO: checking $ac_header usability" >&5
8452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8453cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8454/* confdefs.h. */
8455_ACEOF
8456cat confdefs.h >>conftest.$ac_ext
8457cat >>conftest.$ac_ext <<_ACEOF
8458/* end confdefs.h. */
98418dba
CW
8459$ac_includes_default
8460#include <$ac_header>
8461_ACEOF
8462rm -f conftest.$ac_objext
c0d27fcc 8463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 8464 (eval $ac_compile) 2>conftest.er1
98418dba 8465 ac_status=$?
35996d22
AS
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
c0d27fcc 8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8470 (exit $ac_status); } &&
35996d22
AS
8471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
c0d27fcc 8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8483 (exit $ac_status); }; }; then
c0d27fcc 8484 ac_header_compiler=yes
98418dba
CW
8485else
8486 echo "$as_me: failed program was:" >&5
19650fd6
AS
8487sed 's/^/| /' conftest.$ac_ext >&5
8488
c0d27fcc 8489ac_header_compiler=no
98418dba 8490fi
35996d22 8491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
8492echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8493echo "${ECHO_T}$ac_header_compiler" >&6
98418dba 8494
c0d27fcc
MR
8495# Is the header present?
8496echo "$as_me:$LINENO: checking $ac_header presence" >&5
8497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8498cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8499/* confdefs.h. */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h. */
98418dba
CW
8504#include <$ac_header>
8505_ACEOF
c0d27fcc 8506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
8507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8508 ac_status=$?
6bae0ccf 8509 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
8510 rm -f conftest.er1
8511 cat conftest.err >&5
c0d27fcc 8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8513 (exit $ac_status); } >/dev/null; then
8514 if test -s conftest.err; then
8515 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 8516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
8517 else
8518 ac_cpp_err=
8519 fi
8520else
8521 ac_cpp_err=yes
8522fi
8523if test -z "$ac_cpp_err"; then
c0d27fcc 8524 ac_header_preproc=yes
98418dba
CW
8525else
8526 echo "$as_me: failed program was:" >&5
19650fd6
AS
8527sed 's/^/| /' conftest.$ac_ext >&5
8528
c0d27fcc 8529 ac_header_preproc=no
98418dba
CW
8530fi
8531rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
8532echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8533echo "${ECHO_T}$ac_header_preproc" >&6
8534
8535# So? What about this header?
35996d22
AS
8536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8537 yes:no: )
c0d27fcc
MR
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8539echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8541echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8542 ac_header_preproc=yes
19650fd6 8543 ;;
35996d22 8544 no:yes:* )
c0d27fcc
MR
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
8547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8550echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8552echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 8553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 8554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8556echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
8557 (
8558 cat <<\_ASBOX
35996d22
AS
8559## ------------------------------------------ ##
8560## Report this to the AC_PACKAGE_NAME lists. ##
8561## ------------------------------------------ ##
19650fd6
AS
8562_ASBOX
8563 ) |
8564 sed "s/^/$as_me: WARNING: /" >&2
8565 ;;
c0d27fcc
MR
8566esac
8567echo "$as_me:$LINENO: checking for $ac_header" >&5
8568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8569if eval "test \"\${$as_ac_Header+set}\" = set"; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571else
35996d22 8572 eval "$as_ac_Header=\$ac_header_preproc"
98418dba 8573fi
c0d27fcc 8574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
98418dba 8575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
8576
8577fi
98418dba 8578if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 8579 cat >>confdefs.h <<_ACEOF
98418dba 8580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 8581_ACEOF
98418dba
CW
8582
8583fi
c0d27fcc 8584
98418dba
CW
8585done
8586
c0d27fcc 8587
98418dba
CW
8588for ac_func in getpagesize
8589do
8590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 8591echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
8592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8593if eval "test \"\${$as_ac_var+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
8601/* end confdefs.h. */
35996d22
AS
8602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8604#define $ac_func innocuous_$ac_func
8605
98418dba 8606/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
8607 which can conflict with char $ac_func (); below.
8608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8609 <limits.h> exists even on freestanding compilers. */
35996d22 8610
19650fd6
AS
8611#ifdef __STDC__
8612# include <limits.h>
8613#else
8614# include <assert.h>
8615#endif
35996d22
AS
8616
8617#undef $ac_func
8618
98418dba
CW
8619/* Override any gcc2 internal prototype to avoid an error. */
8620#ifdef __cplusplus
8621extern "C"
19650fd6 8622{
98418dba
CW
8623#endif
8624/* We use char because int might match the return type of a gcc2
8625 builtin and then its argument prototype would still apply. */
8626char $ac_func ();
98418dba
CW
8627/* The GNU C library defines this for functions which it implements
8628 to always fail with ENOSYS. Some functions are actually named
8629 something starting with __ and the normal name is an alias. */
8630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8631choke me
8632#else
19650fd6
AS
8633char (*f) () = $ac_func;
8634#endif
8635#ifdef __cplusplus
8636}
98418dba
CW
8637#endif
8638
19650fd6
AS
8639int
8640main ()
8641{
8642return f != $ac_func;
98418dba
CW
8643 ;
8644 return 0;
8645}
8646_ACEOF
8647rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8649 (eval $ac_link) 2>conftest.er1
98418dba 8650 ac_status=$?
35996d22
AS
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
c0d27fcc 8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8655 (exit $ac_status); } &&
35996d22
AS
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 (eval $ac_try) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
c0d27fcc 8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8668 (exit $ac_status); }; }; then
8669 eval "$as_ac_var=yes"
8670else
8671 echo "$as_me: failed program was:" >&5
19650fd6
AS
8672sed 's/^/| /' conftest.$ac_ext >&5
8673
98418dba
CW
8674eval "$as_ac_var=no"
8675fi
35996d22
AS
8676rm -f conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
98418dba 8678fi
c0d27fcc 8679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
8680echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8681if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 8682 cat >>confdefs.h <<_ACEOF
98418dba 8683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 8684_ACEOF
98418dba
CW
8685
8686fi
8687done
8688
c0d27fcc 8689echo "$as_me:$LINENO: checking for working mmap" >&5
98418dba
CW
8690echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8691if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693else
8694 if test "$cross_compiling" = yes; then
8695 ac_cv_func_mmap_fixed_mapped=no
8696else
8697 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8698/* confdefs.h. */
8699_ACEOF
8700cat confdefs.h >>conftest.$ac_ext
8701cat >>conftest.$ac_ext <<_ACEOF
8702/* end confdefs.h. */
98418dba 8703$ac_includes_default
c0d27fcc
MR
8704/* malloc might have been renamed as rpl_malloc. */
8705#undef malloc
8706
98418dba
CW
8707/* Thanks to Mike Haertel and Jim Avera for this test.
8708 Here is a matrix of mmap possibilities:
8709 mmap private not fixed
8710 mmap private fixed at somewhere currently unmapped
8711 mmap private fixed at somewhere already mapped
8712 mmap shared not fixed
8713 mmap shared fixed at somewhere currently unmapped
8714 mmap shared fixed at somewhere already mapped
8715 For private mappings, we should verify that changes cannot be read()
8716 back from the file, nor mmap's back from the file at a different
8717 address. (There have been systems where private was not correctly
8718 implemented like the infamous i386 svr4.0, and systems where the
8719 VM page cache was not coherent with the file system buffer cache
8720 like early versions of FreeBSD and possibly contemporary NetBSD.)
8721 For shared mappings, we should conversely verify that changes get
c0d27fcc 8722 propagated back to all the places they're supposed to be.
98418dba
CW
8723
8724 Grep wants private fixed already mapped.
8725 The main things grep needs to know about mmap are:
8726 * does it exist and is it safe to write into the mmap'd area
8727 * how to use it (BSD variants) */
8728
8729#include <fcntl.h>
8730#include <sys/mman.h>
8731
8732#if !STDC_HEADERS && !HAVE_STDLIB_H
8733char *malloc ();
8734#endif
8735
8736/* This mess was copied from the GNU getpagesize.h. */
8737#if !HAVE_GETPAGESIZE
8738/* Assume that all systems that can run configure have sys/param.h. */
8739# if !HAVE_SYS_PARAM_H
8740# define HAVE_SYS_PARAM_H 1
8741# endif
8742
8743# ifdef _SC_PAGESIZE
8744# define getpagesize() sysconf(_SC_PAGESIZE)
8745# else /* no _SC_PAGESIZE */
8746# if HAVE_SYS_PARAM_H
8747# include <sys/param.h>
8748# ifdef EXEC_PAGESIZE
8749# define getpagesize() EXEC_PAGESIZE
8750# else /* no EXEC_PAGESIZE */
8751# ifdef NBPG
8752# define getpagesize() NBPG * CLSIZE
8753# ifndef CLSIZE
8754# define CLSIZE 1
8755# endif /* no CLSIZE */
8756# else /* no NBPG */
8757# ifdef NBPC
8758# define getpagesize() NBPC
8759# else /* no NBPC */
8760# ifdef PAGESIZE
8761# define getpagesize() PAGESIZE
8762# endif /* PAGESIZE */
8763# endif /* no NBPC */
8764# endif /* no NBPG */
8765# endif /* no EXEC_PAGESIZE */
8766# else /* no HAVE_SYS_PARAM_H */
8767# define getpagesize() 8192 /* punt totally */
8768# endif /* no HAVE_SYS_PARAM_H */
8769# endif /* no _SC_PAGESIZE */
8770
8771#endif /* no HAVE_GETPAGESIZE */
8772
8773int
8774main ()
8775{
8776 char *data, *data2, *data3;
8777 int i, pagesize;
8778 int fd;
8779
8780 pagesize = getpagesize ();
8781
8782 /* First, make a file with some known garbage in it. */
8783 data = (char *) malloc (pagesize);
8784 if (!data)
8785 exit (1);
8786 for (i = 0; i < pagesize; ++i)
8787 *(data + i) = rand ();
8788 umask (0);
8789 fd = creat ("conftest.mmap", 0600);
8790 if (fd < 0)
8791 exit (1);
8792 if (write (fd, data, pagesize) != pagesize)
8793 exit (1);
8794 close (fd);
8795
8796 /* Next, try to mmap the file at a fixed address which already has
8797 something else allocated at it. If we can, also make sure that
8798 we see the same garbage. */
8799 fd = open ("conftest.mmap", O_RDWR);
8800 if (fd < 0)
8801 exit (1);
8802 data2 = (char *) malloc (2 * pagesize);
8803 if (!data2)
8804 exit (1);
35996d22 8805 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
98418dba 8806 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
35996d22 8807 MAP_PRIVATE | MAP_FIXED, fd, 0L))
98418dba
CW
8808 exit (1);
8809 for (i = 0; i < pagesize; ++i)
8810 if (*(data + i) != *(data2 + i))
8811 exit (1);
8812
8813 /* Finally, make sure that changes to the mapped area do not
8814 percolate back to the file as seen by read(). (This is a bug on
8815 some variants of i386 svr4.0.) */
8816 for (i = 0; i < pagesize; ++i)
8817 *(data2 + i) = *(data2 + i) + 1;
8818 data3 = (char *) malloc (pagesize);
8819 if (!data3)
8820 exit (1);
8821 if (read (fd, data3, pagesize) != pagesize)
8822 exit (1);
8823 for (i = 0; i < pagesize; ++i)
8824 if (*(data + i) != *(data3 + i))
8825 exit (1);
8826 close (fd);
8827 exit (0);
8828}
8829_ACEOF
8830rm -f conftest$ac_exeext
c0d27fcc 8831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
98418dba
CW
8832 (eval $ac_link) 2>&5
8833 ac_status=$?
c0d27fcc 8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
c0d27fcc 8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8840 (exit $ac_status); }; }; then
8841 ac_cv_func_mmap_fixed_mapped=yes
8842else
8843 echo "$as_me: program exited with status $ac_status" >&5
8844echo "$as_me: failed program was:" >&5
19650fd6
AS
8845sed 's/^/| /' conftest.$ac_ext >&5
8846
c0d27fcc 8847( exit $ac_status )
98418dba
CW
8848ac_cv_func_mmap_fixed_mapped=no
8849fi
35996d22 8850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
98418dba
CW
8851fi
8852fi
c0d27fcc 8853echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
98418dba
CW
8854echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8855if test $ac_cv_func_mmap_fixed_mapped = yes; then
8856
c0d27fcc 8857cat >>confdefs.h <<\_ACEOF
98418dba 8858#define HAVE_MMAP 1
c0d27fcc 8859_ACEOF
98418dba
CW
8860
8861fi
8862rm -f conftest.mmap
8863
8864if test $use_mmap_for_buffers = yes; then
8865 REL_ALLOC=no
8866fi
8867
8868LIBS="$libsrc_libs $LIBS"
8869
c0d27fcc
MR
8870
8871echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
98418dba
CW
8872echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8873if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875else
8876 ac_check_lib_save_LIBS=$LIBS
8877LIBS="-ldnet $LIBS"
8878cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8879/* confdefs.h. */
8880_ACEOF
8881cat confdefs.h >>conftest.$ac_ext
8882cat >>conftest.$ac_ext <<_ACEOF
8883/* end confdefs.h. */
98418dba
CW
8884
8885/* Override any gcc2 internal prototype to avoid an error. */
8886#ifdef __cplusplus
8887extern "C"
8888#endif
8889/* We use char because int might match the return type of a gcc2
8890 builtin and then its argument prototype would still apply. */
8891char dnet_ntoa ();
98418dba
CW
8892int
8893main ()
8894{
8895dnet_ntoa ();
8896 ;
8897 return 0;
8898}
8899_ACEOF
8900rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8902 (eval $ac_link) 2>conftest.er1
98418dba 8903 ac_status=$?
35996d22
AS
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
c0d27fcc 8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8908 (exit $ac_status); } &&
35996d22
AS
8909 { ac_try='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
c0d27fcc 8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8921 (exit $ac_status); }; }; then
8922 ac_cv_lib_dnet_dnet_ntoa=yes
8923else
8924 echo "$as_me: failed program was:" >&5
19650fd6
AS
8925sed 's/^/| /' conftest.$ac_ext >&5
8926
98418dba
CW
8927ac_cv_lib_dnet_dnet_ntoa=no
8928fi
35996d22
AS
8929rm -f conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
8931LIBS=$ac_check_lib_save_LIBS
8932fi
c0d27fcc 8933echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
98418dba
CW
8934echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8935if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
c0d27fcc 8936 cat >>confdefs.h <<_ACEOF
98418dba 8937#define HAVE_LIBDNET 1
c0d27fcc 8938_ACEOF
98418dba
CW
8939
8940 LIBS="-ldnet $LIBS"
8941
8942fi
8943
c0d27fcc
MR
8944
8945echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
98418dba
CW
8946echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8947if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949else
8950 ac_check_lib_save_LIBS=$LIBS
8951LIBS="-lXbsd $LIBS"
8952cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8953/* confdefs.h. */
8954_ACEOF
8955cat confdefs.h >>conftest.$ac_ext
8956cat >>conftest.$ac_ext <<_ACEOF
8957/* end confdefs.h. */
98418dba 8958
c0d27fcc 8959
98418dba
CW
8960int
8961main ()
8962{
8963main ();
8964 ;
8965 return 0;
8966}
8967_ACEOF
8968rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8970 (eval $ac_link) 2>conftest.er1
98418dba 8971 ac_status=$?
35996d22
AS
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
c0d27fcc 8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8976 (exit $ac_status); } &&
35996d22
AS
8977 { ac_try='test -z "$ac_c_werror_flag"
8978 || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
c0d27fcc 8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8989 (exit $ac_status); }; }; then
8990 ac_cv_lib_Xbsd_main=yes
8991else
8992 echo "$as_me: failed program was:" >&5
19650fd6
AS
8993sed 's/^/| /' conftest.$ac_ext >&5
8994
98418dba
CW
8995ac_cv_lib_Xbsd_main=no
8996fi
35996d22
AS
8997rm -f conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
8999LIBS=$ac_check_lib_save_LIBS
9000fi
c0d27fcc 9001echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
98418dba
CW
9002echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9003if test $ac_cv_lib_Xbsd_main = yes; then
9004 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9005fi
9006
c0d27fcc
MR
9007
9008
9009echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
98418dba
CW
9010echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9011if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013else
9014 ac_check_lib_save_LIBS=$LIBS
9015LIBS="-lpthreads $LIBS"
9016cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9017/* confdefs.h. */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h. */
98418dba
CW
9022
9023/* Override any gcc2 internal prototype to avoid an error. */
9024#ifdef __cplusplus
9025extern "C"
9026#endif
9027/* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9029char cma_open ();
98418dba
CW
9030int
9031main ()
9032{
9033cma_open ();
9034 ;
9035 return 0;
9036}
9037_ACEOF
9038rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9040 (eval $ac_link) 2>conftest.er1
98418dba 9041 ac_status=$?
35996d22
AS
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
c0d27fcc 9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9046 (exit $ac_status); } &&
35996d22
AS
9047 { ac_try='test -z "$ac_c_werror_flag"
9048 || test ! -s conftest.err'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; } &&
9054 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
c0d27fcc 9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9059 (exit $ac_status); }; }; then
9060 ac_cv_lib_pthreads_cma_open=yes
9061else
9062 echo "$as_me: failed program was:" >&5
19650fd6
AS
9063sed 's/^/| /' conftest.$ac_ext >&5
9064
98418dba
CW
9065ac_cv_lib_pthreads_cma_open=no
9066fi
35996d22
AS
9067rm -f conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9069LIBS=$ac_check_lib_save_LIBS
9070fi
c0d27fcc 9071echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
98418dba
CW
9072echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9073if test $ac_cv_lib_pthreads_cma_open = yes; then
c0d27fcc 9074 cat >>confdefs.h <<_ACEOF
98418dba 9075#define HAVE_LIBPTHREADS 1
c0d27fcc 9076_ACEOF
98418dba
CW
9077
9078 LIBS="-lpthreads $LIBS"
9079
9080fi
9081
c0d27fcc
MR
9082
9083echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
98418dba
CW
9084echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9085if test -d /usr/X386/include; then
9086 HAVE_XFREE386=yes
9087 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9088else
9089 HAVE_XFREE386=no
9090fi
c0d27fcc 9091echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
98418dba
CW
9092echo "${ECHO_T}$HAVE_XFREE386" >&6
9093
55597d70
DL
9094
9095case ${host_os} in
9096aix*)
9097 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9098echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9099if test "${gdb_cv_bigtoc+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101else
9102
9103 case $GCC in
9104 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9105 *) gdb_cv_bigtoc=-bbigtoc ;;
9106 esac
9107
9108 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9109 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9110/* confdefs.h. */
9111_ACEOF
9112cat confdefs.h >>conftest.$ac_ext
9113cat >>conftest.$ac_ext <<_ACEOF
9114/* end confdefs.h. */
55597d70
DL
9115
9116int
9117main ()
9118{
9119int i;
9120 ;
9121 return 0;
9122}
9123_ACEOF
9124rm -f conftest.$ac_objext conftest$ac_exeext
9125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9126 (eval $ac_link) 2>conftest.er1
55597d70 9127 ac_status=$?
35996d22
AS
9128 grep -v '^ *+' conftest.er1 >conftest.err
9129 rm -f conftest.er1
9130 cat conftest.err >&5
55597d70
DL
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
35996d22
AS
9133 { ac_try='test -z "$ac_c_werror_flag"
9134 || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest$ac_exeext'
55597d70
DL
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 :
9147else
9148 echo "$as_me: failed program was:" >&5
19650fd6
AS
9149sed 's/^/| /' conftest.$ac_ext >&5
9150
55597d70
DL
9151gdb_cv_bigtoc=
9152fi
35996d22
AS
9153rm -f conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
55597d70
DL
9155
9156fi
9157echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9158echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9159 ;;
9160esac
9161
ae1a998c
RS
9162# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9163# used for the tests that follow. We set them back to REAL_CFLAGS and
9164# REAL_CPPFLAGS later on.
98418dba
CW
9165
9166REAL_CPPFLAGS="$CPPFLAGS"
9167
9168if test "${HAVE_X11}" = "yes"; then
9169 DEFS="$C_SWITCH_X_SITE $DEFS"
9170 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9171 LIBS="$LIBX $LIBS"
9172 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9173 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9174
9175 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9176 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9177 # but it's more convenient here to set LD_RUN_PATH
9178 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9179 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9180 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9181 export LD_RUN_PATH
9182 fi
9183
9184 if test "${opsys}" = "gnu-linux"; then
c0d27fcc 9185 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
98418dba
CW
9186echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9187 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9188/* confdefs.h. */
9189_ACEOF
9190cat confdefs.h >>conftest.$ac_ext
9191cat >>conftest.$ac_ext <<_ACEOF
9192/* end confdefs.h. */
98418dba 9193
98418dba
CW
9194int
9195main ()
9196{
9197XOpenDisplay ("foo");
9198 ;
9199 return 0;
9200}
9201_ACEOF
9202rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9204 (eval $ac_link) 2>conftest.er1
98418dba 9205 ac_status=$?
35996d22
AS
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
c0d27fcc 9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9210 (exit $ac_status); } &&
35996d22
AS
9211 { ac_try='test -z "$ac_c_werror_flag"
9212 || test ! -s conftest.err'
c0d27fcc 9213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9214 (eval $ac_try) 2>&5
9215 ac_status=$?
c0d27fcc 9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996d22
AS
9217 (exit $ac_status); }; } &&
9218 { ac_try='test -s conftest$ac_exeext'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; }; then
9224 xlinux_first_failure=no
98418dba
CW
9225else
9226 echo "$as_me: failed program was:" >&5
19650fd6
AS
9227sed 's/^/| /' conftest.$ac_ext >&5
9228
98418dba
CW
9229xlinux_first_failure=yes
9230fi
35996d22
AS
9231rm -f conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9233 if test "${xlinux_first_failure}" = "yes"; then
9234 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9235 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9236 OLD_CPPFLAGS="$CPPFLAGS"
9237 OLD_LIBS="$LIBS"
9238 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9239 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9240 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9241 LIBS="$LIBS -b i486-linuxaout"
9242 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9243/* confdefs.h. */
9244_ACEOF
9245cat confdefs.h >>conftest.$ac_ext
9246cat >>conftest.$ac_ext <<_ACEOF
9247/* end confdefs.h. */
98418dba 9248
98418dba
CW
9249int
9250main ()
9251{
9252XOpenDisplay ("foo");
9253 ;
9254 return 0;
9255}
9256_ACEOF
9257rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9259 (eval $ac_link) 2>conftest.er1
98418dba 9260 ac_status=$?
35996d22
AS
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
c0d27fcc 9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9265 (exit $ac_status); } &&
35996d22
AS
9266 { ac_try='test -z "$ac_c_werror_flag"
9267 || test ! -s conftest.err'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; } &&
9273 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
c0d27fcc 9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9278 (exit $ac_status); }; }; then
9279 xlinux_second_failure=no
9280else
9281 echo "$as_me: failed program was:" >&5
19650fd6
AS
9282sed 's/^/| /' conftest.$ac_ext >&5
9283
98418dba
CW
9284xlinux_second_failure=yes
9285fi
35996d22
AS
9286rm -f conftest.err conftest.$ac_objext \
9287 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9288 if test "${xlinux_second_failure}" = "yes"; then
9289 # If we get the same failure with -b, there is no use adding -b.
9290 # So take it out. This plays safe.
9291 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9292 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9293 CPPFLAGS="$OLD_CPPFLAGS"
9294 LIBS="$OLD_LIBS"
c0d27fcc 9295 echo "$as_me:$LINENO: result: no" >&5
98418dba
CW
9296echo "${ECHO_T}no" >&6
9297 else
c0d27fcc 9298 echo "$as_me:$LINENO: result: yes" >&5
98418dba
CW
9299echo "${ECHO_T}yes" >&6
9300 fi
9301 else
c0d27fcc 9302 echo "$as_me:$LINENO: result: no" >&5
98418dba
CW
9303echo "${ECHO_T}no" >&6
9304 fi
9305 fi
9306
9307 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9308 # header files included from there.
c0d27fcc 9309 echo "$as_me:$LINENO: checking for Xkb" >&5
98418dba
CW
9310echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9311 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9312/* confdefs.h. */
9313_ACEOF
9314cat confdefs.h >>conftest.$ac_ext
9315cat >>conftest.$ac_ext <<_ACEOF
9316/* end confdefs.h. */
98418dba
CW
9317#include <X11/Xlib.h>
9318#include <X11/XKBlib.h>
98418dba
CW
9319int
9320main ()
9321{
9322XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9323 ;
9324 return 0;
9325}
9326_ACEOF
9327rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9329 (eval $ac_link) 2>conftest.er1
98418dba 9330 ac_status=$?
35996d22
AS
9331 grep -v '^ *+' conftest.er1 >conftest.err
9332 rm -f conftest.er1
9333 cat conftest.err >&5
c0d27fcc 9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9335 (exit $ac_status); } &&
35996d22
AS
9336 { ac_try='test -z "$ac_c_werror_flag"
9337 || test ! -s conftest.err'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; } &&
9343 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
c0d27fcc 9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9348 (exit $ac_status); }; }; then
9349 emacs_xkb=yes
9350else
9351 echo "$as_me: failed program was:" >&5
19650fd6
AS
9352sed 's/^/| /' conftest.$ac_ext >&5
9353
98418dba
CW
9354emacs_xkb=no
9355fi
35996d22
AS
9356rm -f conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
c0d27fcc 9358 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
98418dba
CW
9359echo "${ECHO_T}$emacs_xkb" >&6
9360 if test $emacs_xkb = yes; then
b936fae4 9361
c0d27fcc 9362cat >>confdefs.h <<\_ACEOF
98418dba 9363#define HAVE_XKBGETKEYBOARD 1
c0d27fcc 9364_ACEOF
98418dba
CW
9365
9366 fi
9367
c0d27fcc
MR
9368
9369
9370
9371
98418dba
CW
9372for ac_func in XrmSetDatabase XScreenResourceString \
9373XScreenNumberOfScreen XSetWMProtocols
9374do
9375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 9376echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
9377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9378if eval "test \"\${$as_ac_var+set}\" = set"; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380else
9381 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9382/* confdefs.h. */
9383_ACEOF
9384cat confdefs.h >>conftest.$ac_ext
9385cat >>conftest.$ac_ext <<_ACEOF
9386/* end confdefs.h. */
35996d22
AS
9387/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9389#define $ac_func innocuous_$ac_func
9390
98418dba 9391/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
9392 which can conflict with char $ac_func (); below.
9393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9394 <limits.h> exists even on freestanding compilers. */
35996d22 9395
19650fd6
AS
9396#ifdef __STDC__
9397# include <limits.h>
9398#else
9399# include <assert.h>
9400#endif
35996d22
AS
9401
9402#undef $ac_func
9403
98418dba
CW
9404/* Override any gcc2 internal prototype to avoid an error. */
9405#ifdef __cplusplus
9406extern "C"
19650fd6 9407{
98418dba
CW
9408#endif
9409/* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9411char $ac_func ();
98418dba
CW
9412/* The GNU C library defines this for functions which it implements
9413 to always fail with ENOSYS. Some functions are actually named
9414 something starting with __ and the normal name is an alias. */
9415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9416choke me
9417#else
19650fd6
AS
9418char (*f) () = $ac_func;
9419#endif
9420#ifdef __cplusplus
9421}
98418dba
CW
9422#endif
9423
19650fd6
AS
9424int
9425main ()
9426{
9427return f != $ac_func;
98418dba
CW
9428 ;
9429 return 0;
9430}
9431_ACEOF
9432rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9434 (eval $ac_link) 2>conftest.er1
98418dba 9435 ac_status=$?
35996d22
AS
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
c0d27fcc 9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9440 (exit $ac_status); } &&
35996d22
AS
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
c0d27fcc 9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9453 (exit $ac_status); }; }; then
9454 eval "$as_ac_var=yes"
9455else
9456 echo "$as_me: failed program was:" >&5
19650fd6
AS
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
98418dba
CW
9459eval "$as_ac_var=no"
9460fi
35996d22
AS
9461rm -f conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
98418dba 9463fi
c0d27fcc 9464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
9465echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9466if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 9467 cat >>confdefs.h <<_ACEOF
98418dba 9468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 9469_ACEOF
98418dba
CW
9470
9471fi
9472done
9473
9474fi
9475
9476if test "${window_system}" = "x11"; then
c0d27fcc 9477 echo "$as_me:$LINENO: checking X11 version 6" >&5
98418dba
CW
9478echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9479 if test "${emacs_cv_x11_version_6+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9483/* confdefs.h. */
9484_ACEOF
9485cat confdefs.h >>conftest.$ac_ext
9486cat >>conftest.$ac_ext <<_ACEOF
9487/* end confdefs.h. */
98418dba 9488#include <X11/Xlib.h>
98418dba
CW
9489int
9490main ()
9491{
9492#if XlibSpecificationRelease < 6
9493fail;
9494#endif
9495
9496 ;
9497 return 0;
9498}
9499_ACEOF
9500rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9502 (eval $ac_link) 2>conftest.er1
98418dba 9503 ac_status=$?
35996d22
AS
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
c0d27fcc 9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9508 (exit $ac_status); } &&
35996d22
AS
9509 { ac_try='test -z "$ac_c_werror_flag"
9510 || test ! -s conftest.err'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; } &&
9516 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
c0d27fcc 9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9521 (exit $ac_status); }; }; then
9522 emacs_cv_x11_version_6=yes
9523else
9524 echo "$as_me: failed program was:" >&5
19650fd6
AS
9525sed 's/^/| /' conftest.$ac_ext >&5
9526
98418dba
CW
9527emacs_cv_x11_version_6=no
9528fi
35996d22
AS
9529rm -f conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9531fi
9532
9533 if test $emacs_cv_x11_version_6 = yes; then
c0d27fcc 9534 echo "$as_me:$LINENO: result: 6 or newer" >&5
98418dba 9535echo "${ECHO_T}6 or newer" >&6
b936fae4 9536
c0d27fcc 9537cat >>confdefs.h <<\_ACEOF
98418dba 9538#define HAVE_X11R6 1
c0d27fcc 9539_ACEOF
98418dba
CW
9540
9541 else
c0d27fcc 9542 echo "$as_me:$LINENO: result: before 6" >&5
98418dba
CW
9543echo "${ECHO_T}before 6" >&6
9544 fi
9545fi
9546
9547if test "${window_system}" = "x11"; then
c0d27fcc 9548 echo "$as_me:$LINENO: checking X11 version 5" >&5
98418dba
CW
9549echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9550 if test "${emacs_cv_x11_version_5+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552else
9553 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
98418dba 9559#include <X11/Xlib.h>
98418dba
CW
9560int
9561main ()
9562{
9563#if XlibSpecificationRelease < 5
9564fail;
9565#endif
9566
9567 ;
9568 return 0;
9569}
9570_ACEOF
9571rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9573 (eval $ac_link) 2>conftest.er1
98418dba 9574 ac_status=$?
35996d22
AS
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
c0d27fcc 9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9579 (exit $ac_status); } &&
35996d22
AS
9580 { ac_try='test -z "$ac_c_werror_flag"
9581 || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
c0d27fcc 9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9592 (exit $ac_status); }; }; then
9593 emacs_cv_x11_version_5=yes
9594else
9595 echo "$as_me: failed program was:" >&5
19650fd6
AS
9596sed 's/^/| /' conftest.$ac_ext >&5
9597
98418dba
CW
9598emacs_cv_x11_version_5=no
9599fi
35996d22
AS
9600rm -f conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9602fi
9603
9604 if test $emacs_cv_x11_version_5 = yes; then
c0d27fcc 9605 echo "$as_me:$LINENO: result: 5 or newer" >&5
98418dba
CW
9606echo "${ECHO_T}5 or newer" >&6
9607 HAVE_X11R5=yes
b936fae4 9608
c0d27fcc 9609cat >>confdefs.h <<\_ACEOF
98418dba 9610#define HAVE_X11R5 1
c0d27fcc 9611_ACEOF
98418dba
CW
9612
9613 else
9614 HAVE_X11R5=no
c0d27fcc 9615 echo "$as_me:$LINENO: result: before 5" >&5
98418dba
CW
9616echo "${ECHO_T}before 5" >&6
9617 fi
9618fi
9619
488dd4c4
JD
9620
9621
9622HAVE_GTK=no
9623if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
cd890796 9624 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
488dd4c4
JD
9625 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9626echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9627 { (exit 1); exit 1; }; };
9628 fi
9629 GLIB_REQUIRED=2.0.1
e512ece1 9630 GTK_REQUIRED=2.0.1
488dd4c4
JD
9631 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9632
9633 if test "X${with_pkg_config_prog}" != X; then
9634 PKG_CONFIG="${with_pkg_config_prog}"
9635 fi
9636
9637 succeeded=no
9638
9639 if test -z "$PKG_CONFIG"; then
9640 # Extract the first word of "pkg-config", so it can be a program name with args.
9641set dummy pkg-config; ac_word=$2
9642echo "$as_me:$LINENO: checking for $ac_word" >&5
9643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9644if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646else
9647 case $PKG_CONFIG in
9648 [\\/]* | ?:[\\/]*)
9649 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9650 ;;
9651 *)
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653for as_dir in $PATH
9654do
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9659 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9662 fi
9663done
9664done
9665
9666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9667 ;;
9668esac
9669fi
9670PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9671
9672if test -n "$PKG_CONFIG"; then
9673 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9674echo "${ECHO_T}$PKG_CONFIG" >&6
9675else
9676 echo "$as_me:$LINENO: result: no" >&5
9677echo "${ECHO_T}no" >&6
9678fi
9679
9680 fi
9681
9682 if test "$PKG_CONFIG" = "no" ; then
9683 echo "*** The pkg-config script could not be found. Make sure it is"
9684 echo "*** in your path, or give the full path to pkg-config with"
9685 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9686 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9687 else
9688 PKG_CONFIG_MIN_VERSION=0.9.0
9689 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9690 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9691echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9692
9693 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9694 echo "$as_me:$LINENO: result: yes" >&5
9695echo "${ECHO_T}yes" >&6
9696 succeeded=yes
9697
9698 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9699echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9700 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9701 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9702echo "${ECHO_T}$GTK_CFLAGS" >&6
9703
9704 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9705echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9706 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9707 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9708echo "${ECHO_T}$GTK_LIBS" >&6
9709 else
9710 GTK_CFLAGS=""
9711 GTK_LIBS=""
9712 ## If we have a custom action on failure, don't print errors, but
9713 ## do set a variable so people can do so.
9714 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9715 echo $GTK_PKG_ERRORS
9716 fi
9717
9718
9719
9720 else
9721 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9722 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9723 fi
9724 fi
9725
9726 if test $succeeded = yes; then
9727 :
9728 else
9729 { { 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
9730echo "$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;}
9731 { (exit 1); exit 1; }; }
9732 fi
9733
9734
9735
9736 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
57669b57
JD
9737 CFLAGS="$CFLAGS $GTK_CFLAGS"
9738 LIBS="$GTK_LIBS $LIBS"
488dd4c4
JD
9739 HAVE_GTK=yes
9740
9741cat >>confdefs.h <<\_ACEOF
9742#define HAVE_GTK 1
9743_ACEOF
9744
9745 USE_X_TOOLKIT=none
9746
9747 with_toolkit_scroll_bars=yes
57669b57
JD
9748
9749 HAVE_GTK_MULTIDISPLAY=no
9750
9751for ac_func in gdk_display_open
9752do
9753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9754echo "$as_me:$LINENO: checking for $ac_func" >&5
9755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9756if eval "test \"\${$as_ac_var+set}\" = set"; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9758else
9759 cat >conftest.$ac_ext <<_ACEOF
57669b57
JD
9760/* confdefs.h. */
9761_ACEOF
9762cat confdefs.h >>conftest.$ac_ext
9763cat >>conftest.$ac_ext <<_ACEOF
9764/* end confdefs.h. */
35996d22
AS
9765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9767#define $ac_func innocuous_$ac_func
9768
57669b57
JD
9769/* System header to define __stub macros and hopefully few prototypes,
9770 which can conflict with char $ac_func (); below.
9771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9772 <limits.h> exists even on freestanding compilers. */
35996d22 9773
57669b57
JD
9774#ifdef __STDC__
9775# include <limits.h>
9776#else
9777# include <assert.h>
9778#endif
35996d22
AS
9779
9780#undef $ac_func
9781
57669b57
JD
9782/* Override any gcc2 internal prototype to avoid an error. */
9783#ifdef __cplusplus
9784extern "C"
9785{
9786#endif
9787/* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9789char $ac_func ();
9790/* The GNU C library defines this for functions which it implements
9791 to always fail with ENOSYS. Some functions are actually named
9792 something starting with __ and the normal name is an alias. */
9793#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9794choke me
9795#else
9796char (*f) () = $ac_func;
9797#endif
9798#ifdef __cplusplus
9799}
9800#endif
9801
9802int
9803main ()
9804{
9805return f != $ac_func;
9806 ;
9807 return 0;
9808}
9809_ACEOF
9810rm -f conftest.$ac_objext conftest$ac_exeext
9811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9812 (eval $ac_link) 2>conftest.er1
57669b57 9813 ac_status=$?
35996d22
AS
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
57669b57
JD
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
35996d22
AS
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest$ac_exeext'
57669b57
JD
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 eval "$as_ac_var=yes"
9833else
9834 echo "$as_me: failed program was:" >&5
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
9837eval "$as_ac_var=no"
9838fi
35996d22
AS
9839rm -f conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
57669b57
JD
9841fi
9842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9843echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9844if test `eval echo '${'$as_ac_var'}'` = yes; then
9845 cat >>confdefs.h <<_ACEOF
9846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9847_ACEOF
9848 HAVE_GTK_MULTIDISPLAY=yes
9849fi
9850done
9851
9852 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9853
9854cat >>confdefs.h <<\_ACEOF
9855#define HAVE_GTK_MULTIDISPLAY 1
9856_ACEOF
9857
9858 fi
488dd4c4
JD
9859fi
9860
98418dba
CW
9861if test x"${USE_X_TOOLKIT}" = xmaybe; then
9862 if test x"${HAVE_X11R5}" = xyes; then
c0d27fcc 9863 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
98418dba
CW
9864echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9865 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867else
9868 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
98418dba
CW
9874
9875#include <X11/Intrinsic.h>
9876#include <X11/Xaw/Simple.h>
98418dba
CW
9877int
9878main ()
9879{
9880
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9887 (eval $ac_link) 2>conftest.er1
98418dba 9888 ac_status=$?
35996d22
AS
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
c0d27fcc 9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9893 (exit $ac_status); } &&
35996d22
AS
9894 { ac_try='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
c0d27fcc 9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9906 (exit $ac_status); }; }; then
9907 emacs_cv_x11_version_5_with_xaw=yes
9908else
9909 echo "$as_me: failed program was:" >&5
19650fd6
AS
9910sed 's/^/| /' conftest.$ac_ext >&5
9911
98418dba
CW
9912emacs_cv_x11_version_5_with_xaw=no
9913fi
35996d22
AS
9914rm -f conftest.err conftest.$ac_objext \
9915 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9916fi
9917
9918 if test $emacs_cv_x11_version_5_with_xaw = yes; then
c0d27fcc 9919 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
98418dba
CW
9920echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9921 USE_X_TOOLKIT=LUCID
9922 else
c0d27fcc 9923 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
98418dba
CW
9924echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9925 USE_X_TOOLKIT=none
9926 fi
9927 else
9928 USE_X_TOOLKIT=none
9929 fi
9930fi
9931
9932X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9933
9934if test "${USE_X_TOOLKIT}" != "none"; then
c0d27fcc 9935 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
98418dba
CW
9936echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9937 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9941/* confdefs.h. */
9942_ACEOF
9943cat confdefs.h >>conftest.$ac_ext
9944cat >>conftest.$ac_ext <<_ACEOF
9945/* end confdefs.h. */
98418dba 9946#include <X11/Intrinsic.h>
98418dba
CW
9947int
9948main ()
9949{
9950#if XtSpecificationRelease < 6
9951fail;
9952#endif
9953
9954 ;
9955 return 0;
9956}
9957_ACEOF
9958rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9960 (eval $ac_link) 2>conftest.er1
98418dba 9961 ac_status=$?
35996d22
AS
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
c0d27fcc 9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9966 (exit $ac_status); } &&
35996d22
AS
9967 { ac_try='test -z "$ac_c_werror_flag"
9968 || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
c0d27fcc 9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9979 (exit $ac_status); }; }; then
9980 emacs_cv_x11_toolkit_version_6=yes
9981else
9982 echo "$as_me: failed program was:" >&5
19650fd6
AS
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
98418dba
CW
9985emacs_cv_x11_toolkit_version_6=no
9986fi
35996d22
AS
9987rm -f conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9989fi
9990
9991 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9992 if test $emacs_cv_x11_toolkit_version_6 = yes; then
c0d27fcc 9993 echo "$as_me:$LINENO: result: 6 or newer" >&5
98418dba 9994echo "${ECHO_T}6 or newer" >&6
b936fae4 9995
c0d27fcc 9996cat >>confdefs.h <<\_ACEOF
98418dba 9997#define HAVE_X11XTR6 1
c0d27fcc 9998_ACEOF
98418dba
CW
9999
10000 else
c0d27fcc 10001 echo "$as_me:$LINENO: result: before 6" >&5
98418dba
CW
10002echo "${ECHO_T}before 6" >&6
10003 fi
10004
10005 OLDLIBS="$LIBS"
10006 if test x$HAVE_X11XTR6 = xyes; then
10007 LIBS="-lXt -lSM -lICE $LIBS"
10008 else
10009 LIBS="-lXt $LIBS"
10010 fi
10011
c0d27fcc 10012echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
98418dba
CW
10013echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10014if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016else
10017 ac_check_lib_save_LIBS=$LIBS
10018LIBS="-lXmu $LIBS"
10019cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10020/* confdefs.h. */
10021_ACEOF
10022cat confdefs.h >>conftest.$ac_ext
10023cat >>conftest.$ac_ext <<_ACEOF
10024/* end confdefs.h. */
98418dba
CW
10025
10026/* Override any gcc2 internal prototype to avoid an error. */
10027#ifdef __cplusplus
10028extern "C"
10029#endif
10030/* We use char because int might match the return type of a gcc2
10031 builtin and then its argument prototype would still apply. */
10032char XmuConvertStandardSelection ();
98418dba
CW
10033int
10034main ()
10035{
10036XmuConvertStandardSelection ();
10037 ;
10038 return 0;
10039}
10040_ACEOF
10041rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 10042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 10043 (eval $ac_link) 2>conftest.er1
98418dba 10044 ac_status=$?
35996d22
AS
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
c0d27fcc 10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 10049 (exit $ac_status); } &&
35996d22
AS
10050 { ac_try='test -z "$ac_c_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
c0d27fcc 10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10062 (exit $ac_status); }; }; then
10063 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10064else
10065 echo "$as_me: failed program was:" >&5
19650fd6
AS
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
98418dba
CW
10068ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10069fi
35996d22
AS
10070rm -f conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
10072LIBS=$ac_check_lib_save_LIBS
10073fi
c0d27fcc 10074echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
98418dba
CW
10075echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10076if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
c0d27fcc 10077 cat >>confdefs.h <<_ACEOF
98418dba 10078#define HAVE_LIBXMU 1
c0d27fcc 10079_ACEOF
98418dba
CW
10080
10081 LIBS="-lXmu $LIBS"
10082
10083fi
10084
10085 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10086fi
10087
10088# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10089if test "${HAVE_X11}" = "yes"; then
10090 if test "${USE_X_TOOLKIT}" != "none"; then
10091
c0d27fcc 10092echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
98418dba
CW
10093echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10094if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096else
10097 ac_check_lib_save_LIBS=$LIBS
10098LIBS="-lXext $LIBS"
10099cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10100/* confdefs.h. */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h. */
98418dba
CW
10105
10106/* Override any gcc2 internal prototype to avoid an error. */
10107#ifdef __cplusplus
10108extern "C"
10109#endif
10110/* We use char because int might match the return type of a gcc2
10111 builtin and then its argument prototype would still apply. */
10112char XShapeQueryExtension ();
98418dba
CW
10113int
10114main ()
10115{
10116XShapeQueryExtension ();
10117 ;
10118 return 0;
10119}
10120_ACEOF
10121rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 10122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 10123 (eval $ac_link) 2>conftest.er1
98418dba 10124 ac_status=$?
35996d22
AS
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
c0d27fcc 10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 10129 (exit $ac_status); } &&
35996d22
AS
10130 { ac_try='test -z "$ac_c_werror_flag"
10131 || test ! -s conftest.err'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
10139 (eval $ac_try) 2>&5
10140 ac_status=$?
c0d27fcc 10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10142 (exit $ac_status); }; }; then
10143 ac_cv_lib_Xext_XShapeQueryExtension=yes
10144else
10145 echo "$as_me: failed program was:" >&5
19650fd6
AS
10146sed 's/^/| /' conftest.$ac_ext >&5
10147
98418dba
CW
10148ac_cv_lib_Xext_XShapeQueryExtension=no
10149fi
35996d22
AS
10150rm -f conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
10152LIBS=$ac_check_lib_save_LIBS
10153fi
c0d27fcc 10154echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
98418dba
CW
10155echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10156if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
c0d27fcc 10157 cat >>confdefs.h <<_ACEOF
98418dba 10158#define HAVE_LIBXEXT 1
c0d27fcc 10159_ACEOF
98418dba
CW
10160
10161 LIBS="-lXext $LIBS"
10162
10163fi
10164
10165 fi
10166fi
10167
10168if test "${USE_X_TOOLKIT}" = "MOTIF"; then
c0d27fcc 10169 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8e967cf7
MR
10170echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10171if test "${emacs_cv_lesstif+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173else
ae1a998c
RS
10174 # We put this in CFLAGS temporarily to precede other -I options
10175 # that might be in CFLAGS temporarily.
10176 # We put this in CPPFLAGS where it precedes the other -I options.
10177 OLD_CPPFLAGS=$CPPFLAGS
10178 OLD_CFLAGS=$CFLAGS
10179 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10180 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8e967cf7 10181 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10182/* confdefs.h. */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h. */
8e967cf7
MR
10187#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10188int
10189main ()
10190{
10191int x = 5;
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196rm -f conftest.$ac_objext
c0d27fcc 10197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10198 (eval $ac_compile) 2>conftest.er1
8e967cf7 10199 ac_status=$?
35996d22
AS
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
c0d27fcc 10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8e967cf7 10204 (exit $ac_status); } &&
35996d22
AS
10205 { ac_try='test -z "$ac_c_werror_flag"
10206 || test ! -s conftest.err'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8e967cf7
MR
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
c0d27fcc 10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8e967cf7
MR
10217 (exit $ac_status); }; }; then
10218 emacs_cv_lesstif=yes
10219else
10220 echo "$as_me: failed program was:" >&5
19650fd6
AS
10221sed 's/^/| /' conftest.$ac_ext >&5
10222
8e967cf7
MR
10223emacs_cv_lesstif=no
10224fi
35996d22 10225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8e967cf7 10226fi
c0d27fcc 10227echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8e967cf7
MR
10228echo "${ECHO_T}$emacs_cv_lesstif" >&6
10229 if test $emacs_cv_lesstif = yes; then
ae1a998c
RS
10230 # Make sure this -I option remains in CPPFLAGS after it is set
10231 # back to REAL_CPPFLAGS.
10232 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10233 # have those other -I options anyway. Ultimately, having this
10234 # directory ultimately in CPPFLAGS will be enough.
10235 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8e967cf7 10236 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
ae1a998c
RS
10237 else
10238 CFLAGS=$OLD_CFLAGS
10239 CPPFLAGS=$OLD_CPPFLAGS
8e967cf7 10240 fi
c0d27fcc 10241 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
98418dba
CW
10242echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10243if test "${emacs_cv_motif_version_2_1+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245else
10246 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10247/* confdefs.h. */
10248_ACEOF
10249cat confdefs.h >>conftest.$ac_ext
10250cat >>conftest.$ac_ext <<_ACEOF
10251/* end confdefs.h. */
98418dba 10252#include <Xm/Xm.h>
98418dba
CW
10253int
10254main ()
10255{
10256#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10257int x = 5;
10258#else
10259Motif version prior to 2.1.
10260#endif
10261 ;
10262 return 0;
10263}
10264_ACEOF
10265rm -f conftest.$ac_objext
c0d27fcc 10266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10267 (eval $ac_compile) 2>conftest.er1
98418dba 10268 ac_status=$?
35996d22
AS
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
c0d27fcc 10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 10273 (exit $ac_status); } &&
35996d22
AS
10274 { ac_try='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
c0d27fcc 10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10286 (exit $ac_status); }; }; then
10287 emacs_cv_motif_version_2_1=yes
10288else
10289 echo "$as_me: failed program was:" >&5
19650fd6
AS
10290sed 's/^/| /' conftest.$ac_ext >&5
10291
98418dba
CW
10292emacs_cv_motif_version_2_1=no
10293fi
35996d22 10294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba 10295fi
c0d27fcc 10296echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
98418dba
CW
10297echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10298 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10299 if test $emacs_cv_motif_version_2_1 = yes; then
10300 HAVE_LIBXP=no
b936fae4 10301
c0d27fcc 10302cat >>confdefs.h <<\_ACEOF
98418dba 10303#define HAVE_MOTIF_2_1 1
c0d27fcc 10304_ACEOF
98418dba 10305
c0d27fcc 10306 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
98418dba
CW
10307echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10308if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10310else
10311 ac_check_lib_save_LIBS=$LIBS
10312LIBS="-lXp $LIBS"
10313cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10314/* confdefs.h. */
10315_ACEOF
10316cat confdefs.h >>conftest.$ac_ext
10317cat >>conftest.$ac_ext <<_ACEOF
10318/* end confdefs.h. */
98418dba
CW
10319
10320/* Override any gcc2 internal prototype to avoid an error. */
10321#ifdef __cplusplus
10322extern "C"
10323#endif
10324/* We use char because int might match the return type of a gcc2
10325 builtin and then its argument prototype would still apply. */
10326char XpCreateContext ();
98418dba
CW
10327int
10328main ()
10329{
10330XpCreateContext ();
10331 ;
10332 return 0;
10333}
10334_ACEOF
10335rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 10336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 10337 (eval $ac_link) 2>conftest.er1
98418dba 10338 ac_status=$?
35996d22
AS
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
c0d27fcc 10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 10343 (exit $ac_status); } &&
35996d22
AS
10344 { ac_try='test -z "$ac_c_werror_flag"
10345 || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
c0d27fcc 10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10356 (exit $ac_status); }; }; then
10357 ac_cv_lib_Xp_XpCreateContext=yes
10358else
10359 echo "$as_me: failed program was:" >&5
19650fd6
AS
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
98418dba
CW
10362ac_cv_lib_Xp_XpCreateContext=no
10363fi
35996d22
AS
10364rm -f conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
10366LIBS=$ac_check_lib_save_LIBS
10367fi
c0d27fcc 10368echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
98418dba
CW
10369echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10370if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10371 HAVE_LIBXP=yes
10372fi
503d2be0 10373
98418dba 10374 if test ${HAVE_LIBXP} = yes; then
b936fae4 10375
c0d27fcc 10376cat >>confdefs.h <<\_ACEOF
98418dba 10377#define HAVE_LIBXP 1
c0d27fcc 10378_ACEOF
503d2be0 10379
98418dba
CW
10380 fi
10381 fi
10382fi
10383
10384### Is -lXaw3d available?
10385HAVE_XAW3D=no
10386if test "${HAVE_X11}" = "yes"; then
10387 if test "${USE_X_TOOLKIT}" != "none"; then
22044edf 10388 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
98418dba
CW
10389echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10390if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
98418dba 10392else
22044edf 10393 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10394/* confdefs.h. */
10395_ACEOF
10396cat confdefs.h >>conftest.$ac_ext
10397cat >>conftest.$ac_ext <<_ACEOF
10398/* end confdefs.h. */
98418dba 10399#include <X11/Xaw3d/Scrollbar.h>
503d2be0 10400_ACEOF
c0d27fcc 10401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
10402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10403 ac_status=$?
6bae0ccf 10404 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
10405 rm -f conftest.er1
10406 cat conftest.err >&5
c0d27fcc 10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
10408 (exit $ac_status); } >/dev/null; then
10409 if test -s conftest.err; then
10410 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 10411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
10412 else
10413 ac_cpp_err=
10414 fi
10415else
10416 ac_cpp_err=yes
10417fi
10418if test -z "$ac_cpp_err"; then
22044edf 10419 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
ba4481b5 10420else
503d2be0 10421 echo "$as_me: failed program was:" >&5
19650fd6
AS
10422sed 's/^/| /' conftest.$ac_ext >&5
10423
22044edf 10424 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
ba4481b5 10425fi
503d2be0 10426rm -f conftest.err conftest.$ac_ext
98418dba 10427fi
c0d27fcc 10428echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
98418dba 10429echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
98418dba 10430if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
c0d27fcc 10431 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
98418dba
CW
10432echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10433if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435else
10436 ac_check_lib_save_LIBS=$LIBS
10437LIBS="-lXaw3d $LIBS"
10438cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10439/* confdefs.h. */
10440_ACEOF
10441cat confdefs.h >>conftest.$ac_ext
10442cat >>conftest.$ac_ext <<_ACEOF
10443/* end confdefs.h. */
98418dba
CW
10444
10445/* Override any gcc2 internal prototype to avoid an error. */
10446#ifdef __cplusplus
10447extern "C"
10448#endif
10449/* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10451char XawScrollbarSetThumb ();
503d2be0
AS
10452int
10453main ()
10454{
98418dba 10455XawScrollbarSetThumb ();
503d2be0
AS
10456 ;
10457 return 0;
10458}
10459_ACEOF
10460rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 10461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 10462 (eval $ac_link) 2>conftest.er1
503d2be0 10463 ac_status=$?
35996d22
AS
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
c0d27fcc 10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 10468 (exit $ac_status); } &&
35996d22
AS
10469 { ac_try='test -z "$ac_c_werror_flag"
10470 || test ! -s conftest.err'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; } &&
10476 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
c0d27fcc 10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 10481 (exit $ac_status); }; }; then
98418dba 10482 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
ba4481b5 10483else
503d2be0 10484 echo "$as_me: failed program was:" >&5
19650fd6
AS
10485sed 's/^/| /' conftest.$ac_ext >&5
10486
98418dba 10487ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
ba4481b5 10488fi
35996d22
AS
10489rm -f conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
98418dba 10491LIBS=$ac_check_lib_save_LIBS
ba4481b5 10492fi
c0d27fcc 10493echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
98418dba
CW
10494echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10495if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10496 HAVE_XAW3D=yes
ba4481b5 10497fi
503d2be0 10498
ba4481b5
DL
10499fi
10500
c0d27fcc 10501
98418dba 10502 if test "${HAVE_XAW3D}" = "yes"; then
b936fae4 10503
c0d27fcc 10504cat >>confdefs.h <<\_ACEOF
98418dba 10505#define HAVE_XAW3D 1
c0d27fcc 10506_ACEOF
98418dba 10507
ba4481b5 10508 fi
98418dba 10509 fi
ba4481b5
DL
10510fi
10511
c0d27fcc
MR
10512
10513
98418dba
CW
10514USE_TOOLKIT_SCROLL_BARS=no
10515if test "${with_toolkit_scroll_bars}" != "no"; then
10516 if test "${USE_X_TOOLKIT}" != "none"; then
10517 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
c0d27fcc 10518 cat >>confdefs.h <<\_ACEOF
98418dba 10519#define USE_TOOLKIT_SCROLL_BARS 1
c0d27fcc 10520_ACEOF
98418dba
CW
10521
10522 HAVE_XAW3D=no
10523 USE_TOOLKIT_SCROLL_BARS=yes
10524 elif test "${HAVE_XAW3D}" = "yes"; then
c0d27fcc 10525 cat >>confdefs.h <<\_ACEOF
98418dba 10526#define USE_TOOLKIT_SCROLL_BARS 1
c0d27fcc 10527_ACEOF
98418dba
CW
10528
10529 USE_TOOLKIT_SCROLL_BARS=yes
ba4481b5 10530 fi
488dd4c4
JD
10531 elif test "${HAVE_GTK}" = "yes"; then
10532 cat >>confdefs.h <<\_ACEOF
10533#define USE_TOOLKIT_SCROLL_BARS 1
10534_ACEOF
10535
10536 USE_TOOLKIT_SCROLL_BARS=yes
ba4481b5
DL
10537 fi
10538fi
10539
abd39b57 10540cat >conftest.$ac_ext <<_ACEOF
abd39b57
AC
10541/* confdefs.h. */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h. */
10546
10547 #include <X11/Xlib.h>
10548 #include <X11/Xresource.h>
10549int
10550main ()
10551{
10552XIMProc callback;
10553 ;
10554 return 0;
10555}
10556_ACEOF
10557rm -f conftest.$ac_objext
10558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10559 (eval $ac_compile) 2>conftest.er1
abd39b57 10560 ac_status=$?
35996d22
AS
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
abd39b57
AC
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
35996d22
AS
10566 { ac_try='test -z "$ac_c_werror_flag"
10567 || test ! -s conftest.err'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; } &&
10573 { ac_try='test -s conftest.$ac_objext'
abd39b57
AC
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 HAVE_XIM=yes
10580
10581cat >>confdefs.h <<\_ACEOF
10582#define HAVE_XIM 1
10583_ACEOF
10584
10585else
10586 echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589HAVE_XIM=no
10590fi
35996d22 10591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
abd39b57 10592
c0d27fcc 10593
98418dba 10594if test "${with_xim}" != "no"; then
b936fae4 10595
c0d27fcc 10596cat >>confdefs.h <<\_ACEOF
98418dba 10597#define USE_XIM 1
c0d27fcc 10598_ACEOF
98418dba 10599
793fa0d7 10600fi
abd39b57
AC
10601
10602
10603if test "${HAVE_XIM}" != "no"; then
849d80cf
DL
10604 late_CFLAGS=$CFLAGS
10605 if test "$GCC" = yes; then
10606 CFLAGS="$CFLAGS --pedantic-errors"
10607 fi
cffcede7 10608 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10609/* confdefs.h. */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */
cffcede7
JD
10614
10615#include <X11/Xlib.h>
10616#include <X11/Xresource.h>
10617int
10618main ()
10619{
10620Display *display;
10621XrmDatabase db;
10622char *res_name;
10623char *res_class;
10624XIMProc callback;
10625XPointer *client_data;
849d80cf
DL
10626#ifndef __GNUC__
10627/* If we're not using GCC, it's probably not XFree86, and this is
10628 probably right, but we can't use something like --pedantic-errors. */
10629extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10630 char*, XIMProc, XPointer*);
10631#endif
cffcede7
JD
10632(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10633 client_data);
10634 ;
10635 return 0;
10636}
10637_ACEOF
10638rm -f conftest.$ac_objext
10639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10640 (eval $ac_compile) 2>conftest.er1
cffcede7 10641 ac_status=$?
35996d22
AS
10642 grep -v '^ *+' conftest.er1 >conftest.err
10643 rm -f conftest.er1
10644 cat conftest.err >&5
cffcede7
JD
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
35996d22
AS
10647 { ac_try='test -z "$ac_c_werror_flag"
10648 || test ! -s conftest.err'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; } &&
10654 { ac_try='test -s conftest.$ac_objext'
cffcede7
JD
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 emacs_cv_arg6_star=yes
10661else
10662 echo "$as_me: failed program was:" >&5
19650fd6
AS
10663sed 's/^/| /' conftest.$ac_ext >&5
10664
cffcede7 10665fi
35996d22 10666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cffcede7
JD
10667
10668 if test "$emacs_cv_arg6_star" = yes; then
f57bd967 10669 cat >>confdefs.h <<\_ACEOF
cffcede7
JD
10670#define XRegisterIMInstantiateCallback_arg6 XPointer*
10671_ACEOF
10672
10673 else
f57bd967 10674 cat >>confdefs.h <<\_ACEOF
cffcede7
JD
10675#define XRegisterIMInstantiateCallback_arg6 XPointer
10676_ACEOF
10677
10678 fi
849d80cf 10679 CFLAGS=$late_CFLAGS
98418dba
CW
10680fi
10681
10682### Use -lXpm if available, unless `--with-xpm=no'.
10683HAVE_XPM=no
10684if test "${HAVE_X11}" = "yes"; then
10685 if test "${with_xpm}" != "no"; then
c0d27fcc
MR
10686 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10687 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
98418dba
CW
10688echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10689if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
10691fi
10692echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10693echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
98418dba 10694else
c0d27fcc
MR
10695 # Is the header compilable?
10696echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10697echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10698cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10699/* confdefs.h. */
10700_ACEOF
10701cat confdefs.h >>conftest.$ac_ext
10702cat >>conftest.$ac_ext <<_ACEOF
10703/* end confdefs.h. */
c0d27fcc
MR
10704$ac_includes_default
10705#include <X11/xpm.h>
10706_ACEOF
10707rm -f conftest.$ac_objext
10708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10709 (eval $ac_compile) 2>conftest.er1
c0d27fcc 10710 ac_status=$?
35996d22
AS
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
c0d27fcc
MR
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
35996d22
AS
10716 { ac_try='test -z "$ac_c_werror_flag"
10717 || test ! -s conftest.err'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; } &&
10723 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_header_compiler=yes
10730else
10731 echo "$as_me: failed program was:" >&5
19650fd6
AS
10732sed 's/^/| /' conftest.$ac_ext >&5
10733
c0d27fcc
MR
10734ac_header_compiler=no
10735fi
35996d22 10736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
10737echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10738echo "${ECHO_T}$ac_header_compiler" >&6
10739
10740# Is the header present?
10741echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10742echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10743cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10744/* confdefs.h. */
10745_ACEOF
10746cat confdefs.h >>conftest.$ac_ext
10747cat >>conftest.$ac_ext <<_ACEOF
10748/* end confdefs.h. */
98418dba
CW
10749#include <X11/xpm.h>
10750_ACEOF
c0d27fcc 10751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
10752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10753 ac_status=$?
6bae0ccf 10754 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
10755 rm -f conftest.er1
10756 cat conftest.err >&5
c0d27fcc 10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10758 (exit $ac_status); } >/dev/null; then
10759 if test -s conftest.err; then
10760 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 10761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
10762 else
10763 ac_cpp_err=
10764 fi
10765else
10766 ac_cpp_err=yes
10767fi
10768if test -z "$ac_cpp_err"; then
c0d27fcc 10769 ac_header_preproc=yes
98418dba
CW
10770else
10771 echo "$as_me: failed program was:" >&5
19650fd6
AS
10772sed 's/^/| /' conftest.$ac_ext >&5
10773
c0d27fcc 10774 ac_header_preproc=no
98418dba
CW
10775fi
10776rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
10777echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10778echo "${ECHO_T}$ac_header_preproc" >&6
10779
10780# So? What about this header?
35996d22
AS
10781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10782 yes:no: )
c0d27fcc
MR
10783 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10784echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
10785 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10786echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10787 ac_header_preproc=yes
19650fd6 10788 ;;
35996d22 10789 no:yes:* )
c0d27fcc
MR
10790 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10791echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
35996d22
AS
10792 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10793echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10795echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10797echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 10798 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
19650fd6 10799echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
10800 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10801echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
10802 (
10803 cat <<\_ASBOX
35996d22
AS
10804## ------------------------------------------ ##
10805## Report this to the AC_PACKAGE_NAME lists. ##
10806## ------------------------------------------ ##
19650fd6
AS
10807_ASBOX
10808 ) |
10809 sed "s/^/$as_me: WARNING: /" >&2
10810 ;;
c0d27fcc
MR
10811esac
10812echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10813echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10814if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816else
10817 ac_cv_header_X11_xpm_h=$ac_header_preproc
ba4481b5 10818fi
c0d27fcc 10819echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
98418dba 10820echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
c0d27fcc
MR
10821
10822fi
98418dba 10823if test $ac_cv_header_X11_xpm_h = yes; then
c0d27fcc 10824 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
98418dba
CW
10825echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10826if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
503d2be0 10827 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 10828else
98418dba
CW
10829 ac_check_lib_save_LIBS=$LIBS
10830LIBS="-lXpm -lX11 $LIBS"
10831cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h. */
98418dba 10837
ba4481b5 10838/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
10839#ifdef __cplusplus
10840extern "C"
10841#endif
ba4481b5 10842/* We use char because int might match the return type of a gcc2
503d2be0 10843 builtin and then its argument prototype would still apply. */
98418dba 10844char XpmReadFileToPixmap ();
503d2be0
AS
10845int
10846main ()
10847{
98418dba 10848XpmReadFileToPixmap ();
503d2be0
AS
10849 ;
10850 return 0;
10851}
10852_ACEOF
10853rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 10854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 10855 (eval $ac_link) 2>conftest.er1
503d2be0 10856 ac_status=$?
35996d22
AS
10857 grep -v '^ *+' conftest.er1 >conftest.err
10858 rm -f conftest.er1
10859 cat conftest.err >&5
c0d27fcc 10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 10861 (exit $ac_status); } &&
35996d22
AS
10862 { ac_try='test -z "$ac_c_werror_flag"
10863 || test ! -s conftest.err'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
10871 (eval $ac_try) 2>&5
10872 ac_status=$?
c0d27fcc 10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 10874 (exit $ac_status); }; }; then
98418dba 10875 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
503d2be0
AS
10876else
10877 echo "$as_me: failed program was:" >&5
19650fd6
AS
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
98418dba 10880ac_cv_lib_Xpm_XpmReadFileToPixmap=no
503d2be0 10881fi
35996d22
AS
10882rm -f conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
98418dba 10884LIBS=$ac_check_lib_save_LIBS
503d2be0 10885fi
c0d27fcc 10886echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
98418dba
CW
10887echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10888if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10889 HAVE_XPM=yes
ba4481b5
DL
10890fi
10891
98418dba
CW
10892fi
10893
c0d27fcc 10894
98418dba 10895 if test "${HAVE_XPM}" = "yes"; then
c0d27fcc 10896 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
98418dba
CW
10897echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10898 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10899/* confdefs.h. */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h. */
98418dba
CW
10904#include "X11/xpm.h"
10905#ifndef XpmReturnAllocPixels
10906no_return_alloc_pixels
503d2be0 10907#endif
ba4481b5 10908
98418dba
CW
10909_ACEOF
10910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 10911 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
98418dba
CW
10912 HAVE_XPM=no
10913else
10914 HAVE_XPM=yes
10915fi
10916rm -f conftest*
ba4481b5 10917
c0d27fcc 10918
98418dba 10919 if test "${HAVE_XPM}" = "yes"; then
c0d27fcc 10920 echo "$as_me:$LINENO: result: yes" >&5
98418dba
CW
10921echo "${ECHO_T}yes" >&6
10922 else
c0d27fcc 10923 echo "$as_me:$LINENO: result: no" >&5
98418dba
CW
10924echo "${ECHO_T}no" >&6
10925 fi
10926 fi
10927 fi
10928
10929 if test "${HAVE_XPM}" = "yes"; then
b936fae4 10930
c0d27fcc 10931cat >>confdefs.h <<\_ACEOF
98418dba 10932#define HAVE_XPM 1
c0d27fcc 10933_ACEOF
98418dba
CW
10934
10935 fi
10936fi
10937
10938### Use -ljpeg if available, unless `--with-jpeg=no'.
10939HAVE_JPEG=no
10940if test "${HAVE_X11}" = "yes"; then
10941 if test "${with_jpeg}" != "no"; then
c0d27fcc
MR
10942 if test "${ac_cv_header_jerror_h+set}" = set; then
10943 echo "$as_me:$LINENO: checking for jerror.h" >&5
98418dba
CW
10944echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10945if test "${ac_cv_header_jerror_h+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
10947fi
10948echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10949echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
503d2be0 10950else
c0d27fcc
MR
10951 # Is the header compilable?
10952echo "$as_me:$LINENO: checking jerror.h usability" >&5
10953echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10954cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10955/* confdefs.h. */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h. */
c0d27fcc
MR
10960$ac_includes_default
10961#include <jerror.h>
10962_ACEOF
10963rm -f conftest.$ac_objext
10964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10965 (eval $ac_compile) 2>conftest.er1
c0d27fcc 10966 ac_status=$?
35996d22
AS
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
c0d27fcc
MR
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
35996d22
AS
10972 { ac_try='test -z "$ac_c_werror_flag"
10973 || test ! -s conftest.err'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; } &&
10979 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_header_compiler=yes
10986else
10987 echo "$as_me: failed program was:" >&5
19650fd6
AS
10988sed 's/^/| /' conftest.$ac_ext >&5
10989
c0d27fcc
MR
10990ac_header_compiler=no
10991fi
35996d22 10992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
10993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10994echo "${ECHO_T}$ac_header_compiler" >&6
10995
10996# Is the header present?
10997echo "$as_me:$LINENO: checking jerror.h presence" >&5
10998echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10999cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11000/* confdefs.h. */
11001_ACEOF
11002cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF
11004/* end confdefs.h. */
98418dba
CW
11005#include <jerror.h>
11006_ACEOF
c0d27fcc 11007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
11008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11009 ac_status=$?
6bae0ccf 11010 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
11011 rm -f conftest.er1
11012 cat conftest.err >&5
c0d27fcc 11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
11014 (exit $ac_status); } >/dev/null; then
11015 if test -s conftest.err; then
11016 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 11017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
11018 else
11019 ac_cpp_err=
11020 fi
11021else
11022 ac_cpp_err=yes
503d2be0 11023fi
98418dba 11024if test -z "$ac_cpp_err"; then
c0d27fcc 11025 ac_header_preproc=yes
ba4481b5 11026else
98418dba 11027 echo "$as_me: failed program was:" >&5
19650fd6
AS
11028sed 's/^/| /' conftest.$ac_ext >&5
11029
c0d27fcc 11030 ac_header_preproc=no
98418dba
CW
11031fi
11032rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
11033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11034echo "${ECHO_T}$ac_header_preproc" >&6
11035
11036# So? What about this header?
35996d22
AS
11037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11038 yes:no: )
c0d27fcc
MR
11039 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11040echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
11041 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11042echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11043 ac_header_preproc=yes
19650fd6 11044 ;;
35996d22 11045 no:yes:* )
c0d27fcc
MR
11046 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11047echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
35996d22
AS
11048 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11049echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11051echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11053echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 11054 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
19650fd6 11055echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
11056 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11057echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
11058 (
11059 cat <<\_ASBOX
35996d22
AS
11060## ------------------------------------------ ##
11061## Report this to the AC_PACKAGE_NAME lists. ##
11062## ------------------------------------------ ##
19650fd6
AS
11063_ASBOX
11064 ) |
11065 sed "s/^/$as_me: WARNING: /" >&2
11066 ;;
c0d27fcc
MR
11067esac
11068echo "$as_me:$LINENO: checking for jerror.h" >&5
11069echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11070if test "${ac_cv_header_jerror_h+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072else
11073 ac_cv_header_jerror_h=$ac_header_preproc
ba4481b5 11074fi
c0d27fcc 11075echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
98418dba 11076echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
c0d27fcc
MR
11077
11078fi
98418dba 11079if test $ac_cv_header_jerror_h = yes; then
c0d27fcc 11080 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
98418dba
CW
11081echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11082if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
503d2be0 11083 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 11084else
98418dba
CW
11085 ac_check_lib_save_LIBS=$LIBS
11086LIBS="-ljpeg $LIBS"
11087cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11088/* confdefs.h. */
11089_ACEOF
11090cat confdefs.h >>conftest.$ac_ext
11091cat >>conftest.$ac_ext <<_ACEOF
11092/* end confdefs.h. */
98418dba
CW
11093
11094/* Override any gcc2 internal prototype to avoid an error. */
11095#ifdef __cplusplus
11096extern "C"
11097#endif
11098/* We use char because int might match the return type of a gcc2
11099 builtin and then its argument prototype would still apply. */
11100char jpeg_destroy_compress ();
503d2be0
AS
11101int
11102main ()
11103{
98418dba 11104jpeg_destroy_compress ();
503d2be0
AS
11105 ;
11106 return 0;
11107}
11108_ACEOF
11109rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 11110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 11111 (eval $ac_link) 2>conftest.er1
503d2be0 11112 ac_status=$?
35996d22
AS
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
c0d27fcc 11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 11117 (exit $ac_status); } &&
35996d22
AS
11118 { ac_try='test -z "$ac_c_werror_flag"
11119 || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
c0d27fcc 11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 11130 (exit $ac_status); }; }; then
98418dba 11131 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
ba4481b5 11132else
503d2be0 11133 echo "$as_me: failed program was:" >&5
19650fd6
AS
11134sed 's/^/| /' conftest.$ac_ext >&5
11135
98418dba 11136ac_cv_lib_jpeg_jpeg_destroy_compress=no
ba4481b5 11137fi
35996d22
AS
11138rm -f conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
98418dba 11140LIBS=$ac_check_lib_save_LIBS
ba4481b5 11141fi
c0d27fcc 11142echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
98418dba
CW
11143echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11144if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11145 HAVE_JPEG=yes
ba4481b5 11146fi
98418dba 11147
ba4481b5 11148fi
98418dba 11149
c0d27fcc 11150
ba4481b5 11151 fi
ba4481b5 11152
c0d27fcc 11153
98418dba 11154 if test "${HAVE_JPEG}" = "yes"; then
c0d27fcc 11155 cat >>confdefs.h <<\_ACEOF
98418dba 11156#define HAVE_JPEG 1
c0d27fcc 11157_ACEOF
98418dba
CW
11158
11159 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11160/* confdefs.h. */
11161_ACEOF
11162cat confdefs.h >>conftest.$ac_ext
11163cat >>conftest.$ac_ext <<_ACEOF
11164/* end confdefs.h. */
22044edf 11165#include <jpeglib.h>
98418dba
CW
11166 version=JPEG_LIB_VERSION
11167
11168_ACEOF
11169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 11170 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
c0d27fcc 11171 cat >>confdefs.h <<\_ACEOF
98418dba 11172#define HAVE_JPEG 1
c0d27fcc 11173_ACEOF
ba4481b5 11174
98418dba 11175else
c0d27fcc 11176 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
98418dba
CW
11177echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11178 HAVE_JPEG=no
ba4481b5 11179fi
98418dba 11180rm -f conftest*
ba4481b5 11181
98418dba
CW
11182 fi
11183fi
503d2be0 11184
98418dba
CW
11185### Use -lpng if available, unless `--with-png=no'.
11186HAVE_PNG=no
11187if test "${HAVE_X11}" = "yes"; then
11188 if test "${with_png}" != "no"; then
f57bd967
DL
11189 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11190 # in /usr/include/libpng.
11191
11192
11193for ac_header in png.h libpng/png.h
11194do
11195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11196if eval "test \"\${$as_ac_Header+set}\" = set"; then
11197 echo "$as_me:$LINENO: checking for $ac_header" >&5
11198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11199if eval "test \"\${$as_ac_Header+set}\" = set"; then
503d2be0 11200 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc 11201fi
f57bd967
DL
11202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
503d2be0 11204else
c0d27fcc 11205 # Is the header compilable?
f57bd967
DL
11206echo "$as_me:$LINENO: checking $ac_header usability" >&5
11207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
c0d27fcc 11208cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11209/* confdefs.h. */
11210_ACEOF
11211cat confdefs.h >>conftest.$ac_ext
11212cat >>conftest.$ac_ext <<_ACEOF
11213/* end confdefs.h. */
c0d27fcc 11214$ac_includes_default
f57bd967 11215#include <$ac_header>
c0d27fcc
MR
11216_ACEOF
11217rm -f conftest.$ac_objext
11218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 11219 (eval $ac_compile) 2>conftest.er1
c0d27fcc 11220 ac_status=$?
35996d22
AS
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
c0d27fcc
MR
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
35996d22
AS
11226 { ac_try='test -z "$ac_c_werror_flag"
11227 || test ! -s conftest.err'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_header_compiler=yes
11240else
11241 echo "$as_me: failed program was:" >&5
19650fd6
AS
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
c0d27fcc
MR
11244ac_header_compiler=no
11245fi
35996d22 11246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
11247echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11248echo "${ECHO_T}$ac_header_compiler" >&6
11249
11250# Is the header present?
f57bd967
DL
11251echo "$as_me:$LINENO: checking $ac_header presence" >&5
11252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
c0d27fcc 11253cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11254/* confdefs.h. */
11255_ACEOF
11256cat confdefs.h >>conftest.$ac_ext
11257cat >>conftest.$ac_ext <<_ACEOF
11258/* end confdefs.h. */
f57bd967 11259#include <$ac_header>
503d2be0 11260_ACEOF
c0d27fcc 11261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
11262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11263 ac_status=$?
6bae0ccf 11264 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
11265 rm -f conftest.er1
11266 cat conftest.err >&5
c0d27fcc 11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
11268 (exit $ac_status); } >/dev/null; then
11269 if test -s conftest.err; then
11270 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 11271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
11272 else
11273 ac_cpp_err=
11274 fi
11275else
11276 ac_cpp_err=yes
11277fi
11278if test -z "$ac_cpp_err"; then
c0d27fcc 11279 ac_header_preproc=yes
503d2be0
AS
11280else
11281 echo "$as_me: failed program was:" >&5
19650fd6
AS
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
c0d27fcc 11284 ac_header_preproc=no
ba4481b5 11285fi
503d2be0 11286rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
11287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11288echo "${ECHO_T}$ac_header_preproc" >&6
11289
11290# So? What about this header?
35996d22
AS
11291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11292 yes:no: )
f57bd967
DL
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11296echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11297 ac_header_preproc=yes
19650fd6 11298 ;;
35996d22 11299 no:yes:* )
f57bd967
DL
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11303echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11305echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11307echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
f57bd967 11308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 11309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11311echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
11312 (
11313 cat <<\_ASBOX
35996d22
AS
11314## ------------------------------------------ ##
11315## Report this to the AC_PACKAGE_NAME lists. ##
11316## ------------------------------------------ ##
19650fd6
AS
11317_ASBOX
11318 ) |
11319 sed "s/^/$as_me: WARNING: /" >&2
11320 ;;
c0d27fcc 11321esac
f57bd967
DL
11322echo "$as_me:$LINENO: checking for $ac_header" >&5
11323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11324if eval "test \"\${$as_ac_Header+set}\" = set"; then
c0d27fcc
MR
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
35996d22 11327 eval "$as_ac_Header=\$ac_header_preproc"
f57bd967
DL
11328fi
11329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11331
ba4481b5 11332fi
f57bd967
DL
11333if test `eval echo '${'$as_ac_Header'}'` = yes; then
11334 cat >>confdefs.h <<_ACEOF
11335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11336_ACEOF
c0d27fcc
MR
11337
11338fi
f57bd967
DL
11339
11340done
11341
11342 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11343 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
98418dba
CW
11344echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11345if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
503d2be0 11346 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 11347else
98418dba
CW
11348 ac_check_lib_save_LIBS=$LIBS
11349LIBS="-lpng -lz -lm $LIBS"
11350cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11351/* confdefs.h. */
11352_ACEOF
11353cat confdefs.h >>conftest.$ac_ext
11354cat >>conftest.$ac_ext <<_ACEOF
11355/* end confdefs.h. */
98418dba 11356
ba4481b5 11357/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
11358#ifdef __cplusplus
11359extern "C"
11360#endif
ba4481b5 11361/* We use char because int might match the return type of a gcc2
503d2be0 11362 builtin and then its argument prototype would still apply. */
98418dba 11363char png_get_channels ();
503d2be0
AS
11364int
11365main ()
11366{
98418dba 11367png_get_channels ();
503d2be0
AS
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 11373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 11374 (eval $ac_link) 2>conftest.er1
503d2be0 11375 ac_status=$?
35996d22
AS
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
c0d27fcc 11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 11380 (exit $ac_status); } &&
35996d22
AS
11381 { ac_try='test -z "$ac_c_werror_flag"
11382 || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
c0d27fcc 11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 11393 (exit $ac_status); }; }; then
98418dba 11394 ac_cv_lib_png_png_get_channels=yes
73b77ee5 11395else
98418dba 11396 echo "$as_me: failed program was:" >&5
19650fd6
AS
11397sed 's/^/| /' conftest.$ac_ext >&5
11398
98418dba 11399ac_cv_lib_png_png_get_channels=no
73b77ee5 11400fi
35996d22
AS
11401rm -f conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
98418dba 11403LIBS=$ac_check_lib_save_LIBS
73b77ee5 11404fi
c0d27fcc 11405echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
98418dba
CW
11406echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11407if test $ac_cv_lib_png_png_get_channels = yes; then
11408 HAVE_PNG=yes
73b77ee5 11409fi
503d2be0 11410
f57bd967 11411 fi
98418dba
CW
11412 fi
11413
11414 if test "${HAVE_PNG}" = "yes"; then
b936fae4 11415
c0d27fcc 11416cat >>confdefs.h <<\_ACEOF
98418dba 11417#define HAVE_PNG 1
c0d27fcc 11418_ACEOF
73b77ee5 11419
98418dba 11420 fi
73b77ee5
GM
11421fi
11422
98418dba
CW
11423### Use -ltiff if available, unless `--with-tiff=no'.
11424HAVE_TIFF=no
11425if test "${HAVE_X11}" = "yes"; then
11426 if test "${with_tiff}" != "no"; then
c0d27fcc
MR
11427 if test "${ac_cv_header_tiffio_h+set}" = set; then
11428 echo "$as_me:$LINENO: checking for tiffio.h" >&5
98418dba
CW
11429echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11430if test "${ac_cv_header_tiffio_h+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
11432fi
11433echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11434echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
98418dba 11435else
c0d27fcc
MR
11436 # Is the header compilable?
11437echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11438echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11439cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11440/* confdefs.h. */
11441_ACEOF
11442cat confdefs.h >>conftest.$ac_ext
11443cat >>conftest.$ac_ext <<_ACEOF
11444/* end confdefs.h. */
c0d27fcc
MR
11445$ac_includes_default
11446#include <tiffio.h>
11447_ACEOF
11448rm -f conftest.$ac_objext
11449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 11450 (eval $ac_compile) 2>conftest.er1
c0d27fcc 11451 ac_status=$?
35996d22
AS
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
c0d27fcc
MR
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
35996d22
AS
11457 { ac_try='test -z "$ac_c_werror_flag"
11458 || test ! -s conftest.err'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; } &&
11464 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 ac_header_compiler=yes
11471else
11472 echo "$as_me: failed program was:" >&5
19650fd6
AS
11473sed 's/^/| /' conftest.$ac_ext >&5
11474
c0d27fcc
MR
11475ac_header_compiler=no
11476fi
35996d22 11477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
11478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479echo "${ECHO_T}$ac_header_compiler" >&6
11480
11481# Is the header present?
11482echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11483echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11484cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11485/* confdefs.h. */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h. */
98418dba
CW
11490#include <tiffio.h>
11491_ACEOF
c0d27fcc 11492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
11493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11494 ac_status=$?
6bae0ccf 11495 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
11496 rm -f conftest.er1
11497 cat conftest.err >&5
c0d27fcc 11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
11499 (exit $ac_status); } >/dev/null; then
11500 if test -s conftest.err; then
11501 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 11502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
11503 else
11504 ac_cpp_err=
11505 fi
11506else
11507 ac_cpp_err=yes
11508fi
11509if test -z "$ac_cpp_err"; then
c0d27fcc 11510 ac_header_preproc=yes
98418dba
CW
11511else
11512 echo "$as_me: failed program was:" >&5
19650fd6
AS
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
c0d27fcc 11515 ac_header_preproc=no
98418dba
CW
11516fi
11517rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
11518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519echo "${ECHO_T}$ac_header_preproc" >&6
11520
11521# So? What about this header?
35996d22
AS
11522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 yes:no: )
c0d27fcc
MR
11524 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11525echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
11526 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11527echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11528 ac_header_preproc=yes
19650fd6 11529 ;;
35996d22 11530 no:yes:* )
c0d27fcc
MR
11531 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11532echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
35996d22
AS
11533 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11534echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11536echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11538echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 11539 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19650fd6 11540echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
11541 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11542echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
11543 (
11544 cat <<\_ASBOX
35996d22
AS
11545## ------------------------------------------ ##
11546## Report this to the AC_PACKAGE_NAME lists. ##
11547## ------------------------------------------ ##
19650fd6
AS
11548_ASBOX
11549 ) |
11550 sed "s/^/$as_me: WARNING: /" >&2
11551 ;;
c0d27fcc
MR
11552esac
11553echo "$as_me:$LINENO: checking for tiffio.h" >&5
11554echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11555if test "${ac_cv_header_tiffio_h+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557else
11558 ac_cv_header_tiffio_h=$ac_header_preproc
98418dba 11559fi
c0d27fcc 11560echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
98418dba 11561echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
c0d27fcc
MR
11562
11563fi
98418dba
CW
11564if test $ac_cv_header_tiffio_h = yes; then
11565 tifflibs="-lz -lm"
11566 # At least one tiff package requires the jpeg library.
11567 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
c0d27fcc 11568 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
98418dba
CW
11569echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11570if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
503d2be0 11571 echo $ECHO_N "(cached) $ECHO_C" >&6
73b77ee5 11572else
503d2be0 11573 ac_check_lib_save_LIBS=$LIBS
98418dba 11574LIBS="-ltiff $tifflibs $LIBS"
503d2be0 11575cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
503d2be0 11581
73b77ee5 11582/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
11583#ifdef __cplusplus
11584extern "C"
11585#endif
73b77ee5 11586/* We use char because int might match the return type of a gcc2
503d2be0 11587 builtin and then its argument prototype would still apply. */
98418dba 11588char TIFFGetVersion ();
503d2be0
AS
11589int
11590main ()
11591{
98418dba 11592TIFFGetVersion ();
503d2be0
AS
11593 ;
11594 return 0;
11595}
11596_ACEOF
11597rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 11598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 11599 (eval $ac_link) 2>conftest.er1
503d2be0 11600 ac_status=$?
35996d22
AS
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
c0d27fcc 11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 11605 (exit $ac_status); } &&
35996d22
AS
11606 { ac_try='test -z "$ac_c_werror_flag"
11607 || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
c0d27fcc 11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 11618 (exit $ac_status); }; }; then
98418dba 11619 ac_cv_lib_tiff_TIFFGetVersion=yes
503d2be0
AS
11620else
11621 echo "$as_me: failed program was:" >&5
19650fd6
AS
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
98418dba 11624ac_cv_lib_tiff_TIFFGetVersion=no
503d2be0 11625fi
35996d22
AS
11626rm -f conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
11628LIBS=$ac_check_lib_save_LIBS
11629fi
c0d27fcc 11630echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
98418dba
CW
11631echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11632if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11633 HAVE_TIFF=yes
11634fi
11635
11636fi
73b77ee5 11637
c0d27fcc 11638
98418dba
CW
11639 fi
11640
11641 if test "${HAVE_TIFF}" = "yes"; then
b936fae4 11642
c0d27fcc 11643cat >>confdefs.h <<\_ACEOF
98418dba 11644#define HAVE_TIFF 1
c0d27fcc 11645_ACEOF
98418dba
CW
11646
11647 fi
73b77ee5
GM
11648fi
11649
98418dba
CW
11650### Use -lgif if available, unless `--with-gif=no'.
11651HAVE_GIF=no
11652if test "${HAVE_X11}" = "yes"; then
11653 if test "${with_gif}" != "no"; then
c0d27fcc
MR
11654 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11655 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
98418dba
CW
11656echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11657if test "${ac_cv_header_gif_lib_h+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
11659fi
11660echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11661echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
98418dba 11662else
c0d27fcc
MR
11663 # Is the header compilable?
11664echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11665echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11666cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
c0d27fcc
MR
11672$ac_includes_default
11673#include <gif_lib.h>
11674_ACEOF
11675rm -f conftest.$ac_objext
11676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 11677 (eval $ac_compile) 2>conftest.er1
c0d27fcc 11678 ac_status=$?
35996d22
AS
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
c0d27fcc
MR
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
35996d22
AS
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_header_compiler=yes
11698else
11699 echo "$as_me: failed program was:" >&5
19650fd6
AS
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
c0d27fcc
MR
11702ac_header_compiler=no
11703fi
35996d22 11704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
11705echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11706echo "${ECHO_T}$ac_header_compiler" >&6
11707
11708# Is the header present?
11709echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11710echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11711cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
98418dba
CW
11717#include <gif_lib.h>
11718_ACEOF
c0d27fcc 11719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
11720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11721 ac_status=$?
6bae0ccf 11722 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
11723 rm -f conftest.er1
11724 cat conftest.err >&5
c0d27fcc 11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
11726 (exit $ac_status); } >/dev/null; then
11727 if test -s conftest.err; then
11728 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 11729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
11730 else
11731 ac_cpp_err=
11732 fi
11733else
11734 ac_cpp_err=yes
11735fi
11736if test -z "$ac_cpp_err"; then
c0d27fcc 11737 ac_header_preproc=yes
98418dba
CW
11738else
11739 echo "$as_me: failed program was:" >&5
19650fd6
AS
11740sed 's/^/| /' conftest.$ac_ext >&5
11741
c0d27fcc 11742 ac_header_preproc=no
98418dba
CW
11743fi
11744rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
11745echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11746echo "${ECHO_T}$ac_header_preproc" >&6
11747
11748# So? What about this header?
35996d22
AS
11749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11750 yes:no: )
c0d27fcc
MR
11751 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11752echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
11753 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11754echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11755 ac_header_preproc=yes
19650fd6 11756 ;;
35996d22 11757 no:yes:* )
c0d27fcc
MR
11758 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11759echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
35996d22
AS
11760 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11761echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11763echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11765echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 11766 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
19650fd6 11767echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
11768 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11769echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
11770 (
11771 cat <<\_ASBOX
35996d22
AS
11772## ------------------------------------------ ##
11773## Report this to the AC_PACKAGE_NAME lists. ##
11774## ------------------------------------------ ##
19650fd6
AS
11775_ASBOX
11776 ) |
11777 sed "s/^/$as_me: WARNING: /" >&2
11778 ;;
c0d27fcc
MR
11779esac
11780echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11781echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11782if test "${ac_cv_header_gif_lib_h+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784else
11785 ac_cv_header_gif_lib_h=$ac_header_preproc
98418dba 11786fi
c0d27fcc 11787echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
98418dba 11788echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
c0d27fcc
MR
11789
11790fi
98418dba
CW
11791if test $ac_cv_header_gif_lib_h = yes; then
11792 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11793# Earlier versions can crash Emacs.
c0d27fcc 11794 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
98418dba
CW
11795echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11796if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
503d2be0 11797 echo $ECHO_N "(cached) $ECHO_C" >&6
73b77ee5 11798else
503d2be0 11799 ac_check_lib_save_LIBS=$LIBS
98418dba 11800LIBS="-lungif $LIBS"
503d2be0 11801cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
73b77ee5 11807
98418dba
CW
11808/* Override any gcc2 internal prototype to avoid an error. */
11809#ifdef __cplusplus
11810extern "C"
11811#endif
11812/* We use char because int might match the return type of a gcc2
11813 builtin and then its argument prototype would still apply. */
11814char EGifPutExtensionLast ();
503d2be0
AS
11815int
11816main ()
11817{
98418dba 11818EGifPutExtensionLast ();
503d2be0
AS
11819 ;
11820 return 0;
11821}
11822_ACEOF
11823rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 11824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 11825 (eval $ac_link) 2>conftest.er1
503d2be0 11826 ac_status=$?
35996d22
AS
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
c0d27fcc 11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 11831 (exit $ac_status); } &&
35996d22
AS
11832 { ac_try='test -z "$ac_c_werror_flag"
11833 || test ! -s conftest.err'
c0d27fcc 11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
c0d27fcc 11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996d22
AS
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11846else
98418dba 11847 echo "$as_me: failed program was:" >&5
19650fd6
AS
11848sed 's/^/| /' conftest.$ac_ext >&5
11849
98418dba
CW
11850ac_cv_lib_ungif_EGifPutExtensionLast=no
11851fi
35996d22
AS
11852rm -f conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
11854LIBS=$ac_check_lib_save_LIBS
11855fi
c0d27fcc 11856echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
98418dba
CW
11857echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11858if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11859 HAVE_GIF=yes
11860fi
11861
11862fi
11863
c0d27fcc 11864
98418dba
CW
11865 fi
11866
11867 if test "${HAVE_GIF}" = "yes"; then
b936fae4 11868
c0d27fcc 11869cat >>confdefs.h <<\_ACEOF
98418dba 11870#define HAVE_GIF 1
c0d27fcc 11871_ACEOF
98418dba
CW
11872
11873 fi
11874fi
11875
c0d27fcc
MR
11876### Use Mac OS X Carbon API to implement GUI.
11877HAVE_CARBON=no
11878if test "${with_carbon}" != "no"; then
11879 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11880 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11881echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11882if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884fi
11885echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11886echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11887else
11888 # Is the header compilable?
11889echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11890echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11891cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11892/* confdefs.h. */
11893_ACEOF
11894cat confdefs.h >>conftest.$ac_ext
11895cat >>conftest.$ac_ext <<_ACEOF
11896/* end confdefs.h. */
c0d27fcc
MR
11897$ac_includes_default
11898#include <Carbon/Carbon.h>
11899_ACEOF
11900rm -f conftest.$ac_objext
11901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 11902 (eval $ac_compile) 2>conftest.er1
c0d27fcc 11903 ac_status=$?
35996d22
AS
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
c0d27fcc
MR
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
35996d22
AS
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_header_compiler=yes
11923else
11924 echo "$as_me: failed program was:" >&5
19650fd6
AS
11925sed 's/^/| /' conftest.$ac_ext >&5
11926
c0d27fcc
MR
11927ac_header_compiler=no
11928fi
35996d22 11929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
11930echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11931echo "${ECHO_T}$ac_header_compiler" >&6
11932
11933# Is the header present?
11934echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11935echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11936cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11937/* confdefs.h. */
11938_ACEOF
11939cat confdefs.h >>conftest.$ac_ext
11940cat >>conftest.$ac_ext <<_ACEOF
11941/* end confdefs.h. */
e0f712ba
AC
11942#include <Carbon/Carbon.h>
11943_ACEOF
c0d27fcc 11944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
e0f712ba
AC
11945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11946 ac_status=$?
6bae0ccf 11947 grep -v '^ *+' conftest.er1 >conftest.err
e0f712ba
AC
11948 rm -f conftest.er1
11949 cat conftest.err >&5
c0d27fcc 11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
e0f712ba
AC
11951 (exit $ac_status); } >/dev/null; then
11952 if test -s conftest.err; then
11953 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 11954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e0f712ba
AC
11955 else
11956 ac_cpp_err=
11957 fi
11958else
11959 ac_cpp_err=yes
11960fi
11961if test -z "$ac_cpp_err"; then
c0d27fcc 11962 ac_header_preproc=yes
e0f712ba
AC
11963else
11964 echo "$as_me: failed program was:" >&5
19650fd6
AS
11965sed 's/^/| /' conftest.$ac_ext >&5
11966
c0d27fcc 11967 ac_header_preproc=no
e0f712ba
AC
11968fi
11969rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
11970echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11971echo "${ECHO_T}$ac_header_preproc" >&6
11972
11973# So? What about this header?
35996d22
AS
11974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11975 yes:no: )
c0d27fcc
MR
11976 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11977echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
11978 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11979echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11980 ac_header_preproc=yes
19650fd6 11981 ;;
35996d22 11982 no:yes:* )
c0d27fcc
MR
11983 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11984echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
35996d22
AS
11985 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11986echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11988echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11990echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 11991 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
19650fd6 11992echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
11993 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11994echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
11995 (
11996 cat <<\_ASBOX
35996d22
AS
11997## ------------------------------------------ ##
11998## Report this to the AC_PACKAGE_NAME lists. ##
11999## ------------------------------------------ ##
19650fd6
AS
12000_ASBOX
12001 ) |
12002 sed "s/^/$as_me: WARNING: /" >&2
12003 ;;
c0d27fcc
MR
12004esac
12005echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12006echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12007if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009else
12010 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
e0f712ba 12011fi
c0d27fcc 12012echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
e0f712ba 12013echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
c0d27fcc
MR
12014
12015fi
e0f712ba
AC
12016if test $ac_cv_header_Carbon_Carbon_h = yes; then
12017 HAVE_CARBON=yes
12018fi
12019
c0d27fcc 12020
e0f712ba
AC
12021fi
12022
12023if test "${HAVE_CARBON}" = "yes"; then
e3ba1015 12024
c0d27fcc 12025cat >>confdefs.h <<\_ACEOF
e0f712ba 12026#define HAVE_CARBON 1
c0d27fcc 12027_ACEOF
e0f712ba 12028
6a3a24fa
JD
12029 window_system=mac
12030 ## Specify the install directory
12031 carbon_appdir=
12032 if test "${carbon_appdir_x}" != ""; then
12033 case ${carbon_appdir_x} in
12034 y | ye | yes) carbon_appdir=/Applications ;;
12035 * ) carbon_appdir=${carbon_appdir_x} ;;
12036 esac
12037 fi
8f417b3b
AS
12038 # We also have mouse menus.
12039 HAVE_MENUS=yes
e0f712ba
AC
12040fi
12041
98418dba
CW
12042### Use session management (-lSM -lICE) if available
12043HAVE_X_SM=no
12044if test "${HAVE_X11}" = "yes"; then
c0d27fcc
MR
12045 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12046 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
98418dba
CW
12047echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12048if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
12050fi
12051echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12052echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
503d2be0 12053else
c0d27fcc
MR
12054 # Is the header compilable?
12055echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12056echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12057cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
c0d27fcc
MR
12063$ac_includes_default
12064#include <X11/SM/SMlib.h>
12065_ACEOF
12066rm -f conftest.$ac_objext
12067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 12068 (eval $ac_compile) 2>conftest.er1
c0d27fcc 12069 ac_status=$?
35996d22
AS
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
c0d27fcc
MR
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
35996d22
AS
12075 { ac_try='test -z "$ac_c_werror_flag"
12076 || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_header_compiler=yes
12089else
12090 echo "$as_me: failed program was:" >&5
19650fd6
AS
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
c0d27fcc
MR
12093ac_header_compiler=no
12094fi
35996d22 12095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
12096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12097echo "${ECHO_T}$ac_header_compiler" >&6
12098
12099# Is the header present?
12100echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12101echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12102cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12103/* confdefs.h. */
12104_ACEOF
12105cat confdefs.h >>conftest.$ac_ext
12106cat >>conftest.$ac_ext <<_ACEOF
12107/* end confdefs.h. */
98418dba
CW
12108#include <X11/SM/SMlib.h>
12109_ACEOF
c0d27fcc 12110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
12111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12112 ac_status=$?
6bae0ccf 12113 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
12114 rm -f conftest.er1
12115 cat conftest.err >&5
c0d27fcc 12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
12117 (exit $ac_status); } >/dev/null; then
12118 if test -s conftest.err; then
12119 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 12120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
12121 else
12122 ac_cpp_err=
12123 fi
12124else
12125 ac_cpp_err=yes
503d2be0 12126fi
98418dba 12127if test -z "$ac_cpp_err"; then
c0d27fcc 12128 ac_header_preproc=yes
98418dba
CW
12129else
12130 echo "$as_me: failed program was:" >&5
19650fd6
AS
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
c0d27fcc 12133 ac_header_preproc=no
98418dba
CW
12134fi
12135rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
12136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12137echo "${ECHO_T}$ac_header_preproc" >&6
12138
12139# So? What about this header?
35996d22
AS
12140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12141 yes:no: )
c0d27fcc
MR
12142 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12143echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
12144 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12145echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12146 ac_header_preproc=yes
19650fd6 12147 ;;
35996d22 12148 no:yes:* )
c0d27fcc
MR
12149 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12150echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
35996d22
AS
12151 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12152echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12154echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12156echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 12157 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
19650fd6 12158echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
12159 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12160echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
12161 (
12162 cat <<\_ASBOX
35996d22
AS
12163## ------------------------------------------ ##
12164## Report this to the AC_PACKAGE_NAME lists. ##
12165## ------------------------------------------ ##
19650fd6
AS
12166_ASBOX
12167 ) |
12168 sed "s/^/$as_me: WARNING: /" >&2
12169 ;;
c0d27fcc
MR
12170esac
12171echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12172echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12173if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12175else
12176 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
73b77ee5 12177fi
c0d27fcc 12178echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
98418dba 12179echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
c0d27fcc
MR
12180
12181fi
98418dba 12182if test $ac_cv_header_X11_SM_SMlib_h = yes; then
c0d27fcc 12183 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
98418dba
CW
12184echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12185if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
503d2be0 12186 echo $ECHO_N "(cached) $ECHO_C" >&6
73b77ee5 12187else
503d2be0 12188 ac_check_lib_save_LIBS=$LIBS
1660500f 12189LIBS="-lSM -lICE $LIBS"
503d2be0 12190cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12191/* confdefs.h. */
12192_ACEOF
12193cat confdefs.h >>conftest.$ac_ext
12194cat >>conftest.$ac_ext <<_ACEOF
12195/* end confdefs.h. */
503d2be0 12196
73b77ee5 12197/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
12198#ifdef __cplusplus
12199extern "C"
12200#endif
73b77ee5 12201/* We use char because int might match the return type of a gcc2
503d2be0 12202 builtin and then its argument prototype would still apply. */
98418dba 12203char SmcOpenConnection ();
503d2be0
AS
12204int
12205main ()
12206{
98418dba 12207SmcOpenConnection ();
503d2be0
AS
12208 ;
12209 return 0;
12210}
12211_ACEOF
12212rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12214 (eval $ac_link) 2>conftest.er1
503d2be0 12215 ac_status=$?
35996d22
AS
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
c0d27fcc 12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12220 (exit $ac_status); } &&
35996d22
AS
12221 { ac_try='test -z "$ac_c_werror_flag"
12222 || test ! -s conftest.err'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
c0d27fcc 12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12233 (exit $ac_status); }; }; then
98418dba 12234 ac_cv_lib_SM_SmcOpenConnection=yes
503d2be0
AS
12235else
12236 echo "$as_me: failed program was:" >&5
19650fd6
AS
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
98418dba 12239ac_cv_lib_SM_SmcOpenConnection=no
503d2be0 12240fi
35996d22
AS
12241rm -f conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
12243LIBS=$ac_check_lib_save_LIBS
12244fi
c0d27fcc 12245echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
98418dba
CW
12246echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12247if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12248 HAVE_X_SM=yes
73b77ee5
GM
12249fi
12250
73b77ee5 12251fi
73b77ee5 12252
c0d27fcc
MR
12253
12254
98418dba 12255 if test "${HAVE_X_SM}" = "yes"; then
b936fae4 12256
c0d27fcc 12257cat >>confdefs.h <<\_ACEOF
98418dba 12258#define HAVE_X_SM 1
c0d27fcc 12259_ACEOF
73b77ee5 12260
98418dba
CW
12261 case "$LIBS" in
12262 *-lSM*) ;;
12263 *) LIBS="-lSM -lICE $LIBS" ;;
12264 esac
73b77ee5 12265 fi
98418dba 12266fi
73b77ee5 12267
98418dba 12268# If netdb.h doesn't declare h_errno, we must declare it by hand.
c0d27fcc 12269echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
98418dba
CW
12270echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12271if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12275/* confdefs.h. */
12276_ACEOF
12277cat confdefs.h >>conftest.$ac_ext
12278cat >>conftest.$ac_ext <<_ACEOF
12279/* end confdefs.h. */
98418dba 12280#include <netdb.h>
503d2be0
AS
12281int
12282main ()
12283{
98418dba 12284return h_errno;
503d2be0
AS
12285 ;
12286 return 0;
12287}
12288_ACEOF
12289rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12291 (eval $ac_link) 2>conftest.er1
503d2be0 12292 ac_status=$?
35996d22
AS
12293 grep -v '^ *+' conftest.er1 >conftest.err
12294 rm -f conftest.er1
12295 cat conftest.err >&5
c0d27fcc 12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12297 (exit $ac_status); } &&
35996d22
AS
12298 { ac_try='test -z "$ac_c_werror_flag"
12299 || test ! -s conftest.err'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
c0d27fcc 12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12310 (exit $ac_status); }; }; then
98418dba 12311 emacs_cv_netdb_declares_h_errno=yes
73b77ee5 12312else
503d2be0 12313 echo "$as_me: failed program was:" >&5
19650fd6
AS
12314sed 's/^/| /' conftest.$ac_ext >&5
12315
98418dba 12316emacs_cv_netdb_declares_h_errno=no
73b77ee5 12317fi
35996d22
AS
12318rm -f conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
98418dba 12320fi
c0d27fcc 12321echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
98418dba
CW
12322echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12323if test $emacs_cv_netdb_declares_h_errno = yes; then
b936fae4 12324
c0d27fcc 12325cat >>confdefs.h <<\_ACEOF
98418dba 12326#define HAVE_H_ERRNO 1
c0d27fcc 12327_ACEOF
73b77ee5 12328
98418dba
CW
12329fi
12330
12331# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12332# for constant arguments. Useless!
c0d27fcc 12333echo "$as_me:$LINENO: checking for working alloca.h" >&5
98418dba
CW
12334echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12335if test "${ac_cv_working_alloca_h+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337else
12338 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */
98418dba 12344#include <alloca.h>
503d2be0
AS
12345int
12346main ()
12347{
98418dba 12348char *p = (char *) alloca (2 * sizeof (int));
503d2be0
AS
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12355 (eval $ac_link) 2>conftest.er1
503d2be0 12356 ac_status=$?
35996d22
AS
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
c0d27fcc 12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12361 (exit $ac_status); } &&
35996d22
AS
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
c0d27fcc 12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12374 (exit $ac_status); }; }; then
98418dba 12375 ac_cv_working_alloca_h=yes
73b77ee5 12376else
503d2be0 12377 echo "$as_me: failed program was:" >&5
19650fd6
AS
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
98418dba 12380ac_cv_working_alloca_h=no
73b77ee5 12381fi
35996d22
AS
12382rm -f conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
98418dba 12384fi
c0d27fcc 12385echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
98418dba
CW
12386echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12387if test $ac_cv_working_alloca_h = yes; then
73b77ee5 12388
c0d27fcc 12389cat >>confdefs.h <<\_ACEOF
98418dba 12390#define HAVE_ALLOCA_H 1
c0d27fcc 12391_ACEOF
98418dba
CW
12392
12393fi
12394
c0d27fcc 12395echo "$as_me:$LINENO: checking for alloca" >&5
98418dba
CW
12396echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12397if test "${ac_cv_func_alloca_works+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399else
503d2be0 12400 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12401/* confdefs.h. */
12402_ACEOF
12403cat confdefs.h >>conftest.$ac_ext
12404cat >>conftest.$ac_ext <<_ACEOF
12405/* end confdefs.h. */
98418dba
CW
12406#ifdef __GNUC__
12407# define alloca __builtin_alloca
12408#else
12409# ifdef _MSC_VER
12410# include <malloc.h>
12411# define alloca _alloca
12412# else
12413# if HAVE_ALLOCA_H
12414# include <alloca.h>
12415# else
12416# ifdef _AIX
12417 #pragma alloca
12418# else
12419# ifndef alloca /* predefined by HP cc +Olibcalls */
12420char *alloca ();
12421# endif
12422# endif
12423# endif
12424# endif
12425#endif
12426
503d2be0
AS
12427int
12428main ()
12429{
98418dba 12430char *p = (char *) alloca (1);
503d2be0
AS
12431 ;
12432 return 0;
12433}
12434_ACEOF
12435rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12437 (eval $ac_link) 2>conftest.er1
503d2be0 12438 ac_status=$?
35996d22
AS
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
c0d27fcc 12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12443 (exit $ac_status); } &&
35996d22
AS
12444 { ac_try='test -z "$ac_c_werror_flag"
12445 || test ! -s conftest.err'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
c0d27fcc 12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12456 (exit $ac_status); }; }; then
98418dba 12457 ac_cv_func_alloca_works=yes
ac95a621 12458else
503d2be0 12459 echo "$as_me: failed program was:" >&5
19650fd6
AS
12460sed 's/^/| /' conftest.$ac_ext >&5
12461
98418dba 12462ac_cv_func_alloca_works=no
ac95a621 12463fi
35996d22
AS
12464rm -f conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
98418dba 12466fi
c0d27fcc 12467echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
98418dba 12468echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
ac95a621 12469
98418dba
CW
12470if test $ac_cv_func_alloca_works = yes; then
12471
c0d27fcc 12472cat >>confdefs.h <<\_ACEOF
98418dba 12473#define HAVE_ALLOCA 1
c0d27fcc 12474_ACEOF
98418dba
CW
12475
12476else
12477 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12478# that cause trouble. Some versions do not even contain alloca or
12479# contain a buggy version. If you still want to use their alloca,
12480# use ar to extract alloca.o from them instead of compiling alloca.c.
12481
12482ALLOCA=alloca.$ac_objext
12483
c0d27fcc 12484cat >>confdefs.h <<\_ACEOF
98418dba 12485#define C_ALLOCA 1
c0d27fcc 12486_ACEOF
98418dba 12487
c0d27fcc
MR
12488
12489echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
98418dba
CW
12490echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12491if test "${ac_cv_os_cray+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493else
12494 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12495/* confdefs.h. */
12496_ACEOF
12497cat confdefs.h >>conftest.$ac_ext
12498cat >>conftest.$ac_ext <<_ACEOF
12499/* end confdefs.h. */
98418dba
CW
12500#if defined(CRAY) && ! defined(CRAY2)
12501webecray
12502#else
12503wenotbecray
12504#endif
12505
12506_ACEOF
12507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 12508 $EGREP "webecray" >/dev/null 2>&1; then
98418dba
CW
12509 ac_cv_os_cray=yes
12510else
12511 ac_cv_os_cray=no
12512fi
12513rm -f conftest*
ac95a621 12514
98418dba 12515fi
c0d27fcc 12516echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
98418dba
CW
12517echo "${ECHO_T}$ac_cv_os_cray" >&6
12518if test $ac_cv_os_cray = yes; then
12519 for ac_func in _getb67 GETB67 getb67; do
12520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 12521echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
12522echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12523if eval "test \"\${$as_ac_var+set}\" = set"; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
73b77ee5 12525else
503d2be0 12526 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12527/* confdefs.h. */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
12531/* end confdefs.h. */
35996d22
AS
12532/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12534#define $ac_func innocuous_$ac_func
12535
73b77ee5 12536/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
12537 which can conflict with char $ac_func (); below.
12538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12539 <limits.h> exists even on freestanding compilers. */
35996d22 12540
19650fd6
AS
12541#ifdef __STDC__
12542# include <limits.h>
12543#else
12544# include <assert.h>
12545#endif
35996d22
AS
12546
12547#undef $ac_func
12548
73b77ee5 12549/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
12550#ifdef __cplusplus
12551extern "C"
19650fd6 12552{
503d2be0 12553#endif
73b77ee5 12554/* We use char because int might match the return type of a gcc2
503d2be0
AS
12555 builtin and then its argument prototype would still apply. */
12556char $ac_func ();
73b77ee5
GM
12557/* The GNU C library defines this for functions which it implements
12558 to always fail with ENOSYS. Some functions are actually named
12559 something starting with __ and the normal name is an alias. */
12560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12561choke me
12562#else
19650fd6
AS
12563char (*f) () = $ac_func;
12564#endif
12565#ifdef __cplusplus
12566}
73b77ee5
GM
12567#endif
12568
19650fd6
AS
12569int
12570main ()
12571{
12572return f != $ac_func;
503d2be0
AS
12573 ;
12574 return 0;
12575}
12576_ACEOF
12577rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12579 (eval $ac_link) 2>conftest.er1
503d2be0 12580 ac_status=$?
35996d22
AS
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
c0d27fcc 12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12585 (exit $ac_status); } &&
35996d22
AS
12586 { ac_try='test -z "$ac_c_werror_flag"
12587 || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
c0d27fcc 12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
12598 (exit $ac_status); }; }; then
12599 eval "$as_ac_var=yes"
12600else
12601 echo "$as_me: failed program was:" >&5
19650fd6
AS
12602sed 's/^/| /' conftest.$ac_ext >&5
12603
503d2be0
AS
12604eval "$as_ac_var=no"
12605fi
35996d22
AS
12606rm -f conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
503d2be0 12608fi
c0d27fcc 12609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
12610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12611if test `eval echo '${'$as_ac_var'}'` = yes; then
73b77ee5 12612
c0d27fcc 12613cat >>confdefs.h <<_ACEOF
98418dba 12614#define CRAY_STACKSEG_END $ac_func
c0d27fcc 12615_ACEOF
98418dba
CW
12616
12617 break
73b77ee5 12618fi
73b77ee5 12619
98418dba 12620 done
73b77ee5
GM
12621fi
12622
c0d27fcc 12623echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
98418dba
CW
12624echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12625if test "${ac_cv_c_stack_direction+set}" = set; then
503d2be0 12626 echo $ECHO_N "(cached) $ECHO_C" >&6
98418dba
CW
12627else
12628 if test "$cross_compiling" = yes; then
12629 ac_cv_c_stack_direction=0
73b77ee5 12630else
503d2be0 12631 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
503d2be0 12637int
98418dba 12638find_stack_direction ()
503d2be0 12639{
98418dba
CW
12640 static char *addr = 0;
12641 auto char dummy;
12642 if (addr == 0)
12643 {
12644 addr = &dummy;
12645 return find_stack_direction ();
12646 }
73b77ee5 12647 else
98418dba
CW
12648 return (&dummy > addr) ? 1 : -1;
12649}
ba4481b5 12650
503d2be0
AS
12651int
12652main ()
12653{
98418dba 12654 exit (find_stack_direction () < 0);
503d2be0
AS
12655}
12656_ACEOF
98418dba 12657rm -f conftest$ac_exeext
c0d27fcc 12658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
12659 (eval $ac_link) 2>&5
12660 ac_status=$?
c0d27fcc 12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 12662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12664 (eval $ac_try) 2>&5
12665 ac_status=$?
c0d27fcc 12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12667 (exit $ac_status); }; }; then
98418dba 12668 ac_cv_c_stack_direction=1
ba4481b5 12669else
98418dba
CW
12670 echo "$as_me: program exited with status $ac_status" >&5
12671echo "$as_me: failed program was:" >&5
19650fd6
AS
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
c0d27fcc 12674( exit $ac_status )
98418dba 12675ac_cv_c_stack_direction=-1
ba4481b5 12676fi
35996d22 12677rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ba4481b5 12678fi
98418dba 12679fi
c0d27fcc 12680echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
98418dba
CW
12681echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12682
c0d27fcc 12683cat >>confdefs.h <<_ACEOF
98418dba 12684#define STACK_DIRECTION $ac_cv_c_stack_direction
c0d27fcc
MR
12685_ACEOF
12686
ba4481b5 12687
ba4481b5
DL
12688fi
12689
c0d27fcc 12690
98418dba
CW
12691# fmod, logb, and frexp are found in -lm on most systems.
12692# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12693
c0d27fcc 12694echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
98418dba
CW
12695echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12696if test "${ac_cv_lib_m_sqrt+set}" = set; then
503d2be0 12697 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 12698else
98418dba
CW
12699 ac_check_lib_save_LIBS=$LIBS
12700LIBS="-lm $LIBS"
12701cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12702/* confdefs.h. */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h. */
ba4481b5 12707
98418dba
CW
12708/* Override any gcc2 internal prototype to avoid an error. */
12709#ifdef __cplusplus
12710extern "C"
12711#endif
12712/* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12714char sqrt ();
503d2be0
AS
12715int
12716main ()
12717{
98418dba 12718sqrt ();
503d2be0
AS
12719 ;
12720 return 0;
12721}
12722_ACEOF
12723rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12725 (eval $ac_link) 2>conftest.er1
503d2be0 12726 ac_status=$?
35996d22
AS
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
c0d27fcc 12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12731 (exit $ac_status); } &&
35996d22
AS
12732 { ac_try='test -z "$ac_c_werror_flag"
12733 || test ! -s conftest.err'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
c0d27fcc 12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12744 (exit $ac_status); }; }; then
98418dba 12745 ac_cv_lib_m_sqrt=yes
ba4481b5 12746else
503d2be0 12747 echo "$as_me: failed program was:" >&5
19650fd6
AS
12748sed 's/^/| /' conftest.$ac_ext >&5
12749
98418dba 12750ac_cv_lib_m_sqrt=no
ba4481b5 12751fi
35996d22
AS
12752rm -f conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
98418dba 12754LIBS=$ac_check_lib_save_LIBS
ba4481b5 12755fi
c0d27fcc 12756echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
98418dba
CW
12757echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12758if test $ac_cv_lib_m_sqrt = yes; then
c0d27fcc 12759 cat >>confdefs.h <<_ACEOF
98418dba 12760#define HAVE_LIBM 1
c0d27fcc 12761_ACEOF
98418dba
CW
12762
12763 LIBS="-lm $LIBS"
ba4481b5 12764
ba4481b5
DL
12765fi
12766
c0d27fcc 12767
55597d70
DL
12768# Check for mail-locking functions in a "mail" library. Probably this should
12769# have the same check as for liblockfile below.
98418dba 12770
c0d27fcc 12771echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
98418dba
CW
12772echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12773if test "${ac_cv_lib_mail_maillock+set}" = set; then
503d2be0 12774 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 12775else
98418dba
CW
12776 ac_check_lib_save_LIBS=$LIBS
12777LIBS="-lmail $LIBS"
12778cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12779/* confdefs.h. */
12780_ACEOF
12781cat confdefs.h >>conftest.$ac_ext
12782cat >>conftest.$ac_ext <<_ACEOF
12783/* end confdefs.h. */
98418dba
CW
12784
12785/* Override any gcc2 internal prototype to avoid an error. */
12786#ifdef __cplusplus
12787extern "C"
12788#endif
12789/* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12791char maillock ();
503d2be0
AS
12792int
12793main ()
12794{
98418dba 12795maillock ();
503d2be0
AS
12796 ;
12797 return 0;
12798}
12799_ACEOF
12800rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12802 (eval $ac_link) 2>conftest.er1
503d2be0 12803 ac_status=$?
35996d22
AS
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
c0d27fcc 12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12808 (exit $ac_status); } &&
35996d22
AS
12809 { ac_try='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
c0d27fcc 12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12821 (exit $ac_status); }; }; then
98418dba 12822 ac_cv_lib_mail_maillock=yes
ba4481b5 12823else
503d2be0 12824 echo "$as_me: failed program was:" >&5
19650fd6
AS
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
98418dba 12827ac_cv_lib_mail_maillock=no
ba4481b5 12828fi
35996d22
AS
12829rm -f conftest.err conftest.$ac_objext \
12830 conftest$ac_exeext conftest.$ac_ext
98418dba 12831LIBS=$ac_check_lib_save_LIBS
ba4481b5 12832fi
c0d27fcc 12833echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
98418dba
CW
12834echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12835if test $ac_cv_lib_mail_maillock = yes; then
c0d27fcc 12836 cat >>confdefs.h <<_ACEOF
98418dba 12837#define HAVE_LIBMAIL 1
c0d27fcc 12838_ACEOF
ba4481b5 12839
98418dba 12840 LIBS="-lmail $LIBS"
ba4481b5 12841
98418dba 12842fi
ba4481b5 12843
c0d27fcc
MR
12844
12845echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
98418dba
CW
12846echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12847if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
503d2be0 12848 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 12849else
503d2be0 12850 ac_check_lib_save_LIBS=$LIBS
98418dba 12851LIBS="-llockfile $LIBS"
503d2be0 12852cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12853/* confdefs.h. */
12854_ACEOF
12855cat confdefs.h >>conftest.$ac_ext
12856cat >>conftest.$ac_ext <<_ACEOF
12857/* end confdefs.h. */
503d2be0 12858
ba4481b5 12859/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
12860#ifdef __cplusplus
12861extern "C"
12862#endif
ba4481b5 12863/* We use char because int might match the return type of a gcc2
503d2be0 12864 builtin and then its argument prototype would still apply. */
98418dba 12865char maillock ();
503d2be0
AS
12866int
12867main ()
12868{
98418dba 12869maillock ();
503d2be0
AS
12870 ;
12871 return 0;
12872}
12873_ACEOF
12874rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12876 (eval $ac_link) 2>conftest.er1
503d2be0 12877 ac_status=$?
35996d22
AS
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
c0d27fcc 12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12882 (exit $ac_status); } &&
35996d22
AS
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
c0d27fcc 12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12895 (exit $ac_status); }; }; then
98418dba 12896 ac_cv_lib_lockfile_maillock=yes
503d2be0
AS
12897else
12898 echo "$as_me: failed program was:" >&5
19650fd6
AS
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
98418dba
CW
12901ac_cv_lib_lockfile_maillock=no
12902fi
35996d22
AS
12903rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
12905LIBS=$ac_check_lib_save_LIBS
12906fi
c0d27fcc 12907echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
98418dba
CW
12908echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12909if test $ac_cv_lib_lockfile_maillock = yes; then
c0d27fcc 12910 cat >>confdefs.h <<_ACEOF
98418dba 12911#define HAVE_LIBLOCKFILE 1
c0d27fcc 12912_ACEOF
98418dba
CW
12913
12914 LIBS="-llockfile $LIBS"
12915
12916fi
12917
12918# If we have the shared liblockfile, assume we must use it for mail
12919# locking (e.g. Debian). If we couldn't link against liblockfile
12920# (no liblockfile.a installed), ensure that we don't need to.
12921if test "$ac_cv_lib_lockfile_maillock" = no; then
12922 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12923set dummy liblockfile.so; ac_word=$2
c0d27fcc 12924echo "$as_me:$LINENO: checking for $ac_word" >&5
98418dba
CW
12925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12926if test "${ac_cv_prog_liblockfile+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12928else
12929 if test -n "$liblockfile"; then
12930 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12931else
c0d27fcc 12932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bae0ccf
DL
12933as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12934for as_dir in $as_dummy
c0d27fcc
MR
12935do
12936 IFS=$as_save_IFS
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12940 ac_cv_prog_liblockfile="yes"
12941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 break 2
12943 fi
12944done
98418dba
CW
12945done
12946
12947 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
503d2be0 12948fi
503d2be0 12949fi
98418dba
CW
12950liblockfile=$ac_cv_prog_liblockfile
12951if test -n "$liblockfile"; then
c0d27fcc 12952 echo "$as_me:$LINENO: result: $liblockfile" >&5
98418dba
CW
12953echo "${ECHO_T}$liblockfile" >&6
12954else
c0d27fcc 12955 echo "$as_me:$LINENO: result: no" >&5
98418dba 12956echo "${ECHO_T}no" >&6
ba4481b5
DL
12957fi
12958
98418dba 12959 if test $ac_cv_prog_liblockfile = yes; then
c0d27fcc 12960 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
98418dba
CW
12961This probably means that movemail could lose mail.
12962There may be a \`development' package to install containing liblockfile." >&5
12963echo "$as_me: error: Shared liblockfile found but can't link against it.
12964This probably means that movemail could lose mail.
12965There may be a \`development' package to install containing liblockfile." >&2;}
12966 { (exit 1); exit 1; }; }
98418dba 12967 else :
55597d70 12968 fi
98418dba 12969fi
503d2be0 12970
98418dba
CW
12971for ac_func in touchlock
12972do
12973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 12974echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
12975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12976if eval "test \"\${$as_ac_var+set}\" = set"; then
503d2be0 12977 echo $ECHO_N "(cached) $ECHO_C" >&6
457b792c 12978else
98418dba 12979 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12980/* confdefs.h. */
12981_ACEOF
12982cat confdefs.h >>conftest.$ac_ext
12983cat >>conftest.$ac_ext <<_ACEOF
12984/* end confdefs.h. */
35996d22
AS
12985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12987#define $ac_func innocuous_$ac_func
12988
98418dba 12989/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
12990 which can conflict with char $ac_func (); below.
12991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12992 <limits.h> exists even on freestanding compilers. */
35996d22 12993
19650fd6
AS
12994#ifdef __STDC__
12995# include <limits.h>
12996#else
12997# include <assert.h>
12998#endif
35996d22
AS
12999
13000#undef $ac_func
13001
457b792c 13002/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
13003#ifdef __cplusplus
13004extern "C"
19650fd6 13005{
503d2be0 13006#endif
457b792c 13007/* We use char because int might match the return type of a gcc2
503d2be0 13008 builtin and then its argument prototype would still apply. */
98418dba 13009char $ac_func ();
98418dba
CW
13010/* The GNU C library defines this for functions which it implements
13011 to always fail with ENOSYS. Some functions are actually named
13012 something starting with __ and the normal name is an alias. */
13013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13014choke me
13015#else
19650fd6
AS
13016char (*f) () = $ac_func;
13017#endif
13018#ifdef __cplusplus
13019}
cd958eb3
MB
13020#endif
13021
19650fd6
AS
13022int
13023main ()
13024{
13025return f != $ac_func;
503d2be0
AS
13026 ;
13027 return 0;
13028}
13029_ACEOF
13030rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 13031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 13032 (eval $ac_link) 2>conftest.er1
503d2be0 13033 ac_status=$?
35996d22
AS
13034 grep -v '^ *+' conftest.er1 >conftest.err
13035 rm -f conftest.er1
13036 cat conftest.err >&5
c0d27fcc 13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13038 (exit $ac_status); } &&
35996d22
AS
13039 { ac_try='test -z "$ac_c_werror_flag"
13040 || test ! -s conftest.err'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
c0d27fcc 13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13051 (exit $ac_status); }; }; then
98418dba 13052 eval "$as_ac_var=yes"
503d2be0
AS
13053else
13054 echo "$as_me: failed program was:" >&5
19650fd6
AS
13055sed 's/^/| /' conftest.$ac_ext >&5
13056
98418dba 13057eval "$as_ac_var=no"
503d2be0 13058fi
35996d22
AS
13059rm -f conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
503d2be0 13061fi
c0d27fcc 13062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
13063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13064if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 13065 cat >>confdefs.h <<_ACEOF
98418dba 13066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 13067_ACEOF
457b792c 13068
457b792c 13069fi
98418dba 13070done
457b792c 13071
c0d27fcc 13072
98418dba
CW
13073for ac_header in maillock.h
13074do
13075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
13076if eval "test \"\${$as_ac_Header+set}\" = set"; then
13077 echo "$as_me:$LINENO: checking for $ac_header" >&5
98418dba
CW
13078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13079if eval "test \"\${$as_ac_Header+set}\" = set"; then
503d2be0 13080 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
13081fi
13082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ba4481b5 13084else
c0d27fcc
MR
13085 # Is the header compilable?
13086echo "$as_me:$LINENO: checking $ac_header usability" >&5
13087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13088cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13089/* confdefs.h. */
13090_ACEOF
13091cat confdefs.h >>conftest.$ac_ext
13092cat >>conftest.$ac_ext <<_ACEOF
13093/* end confdefs.h. */
c0d27fcc
MR
13094$ac_includes_default
13095#include <$ac_header>
13096_ACEOF
13097rm -f conftest.$ac_objext
13098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 13099 (eval $ac_compile) 2>conftest.er1
c0d27fcc 13100 ac_status=$?
35996d22
AS
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
c0d27fcc
MR
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
35996d22
AS
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_header_compiler=yes
13120else
13121 echo "$as_me: failed program was:" >&5
19650fd6
AS
13122sed 's/^/| /' conftest.$ac_ext >&5
13123
c0d27fcc
MR
13124ac_header_compiler=no
13125fi
35996d22 13126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
13127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13128echo "${ECHO_T}$ac_header_compiler" >&6
13129
13130# Is the header present?
13131echo "$as_me:$LINENO: checking $ac_header presence" >&5
13132echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13133cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13134/* confdefs.h. */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h. */
98418dba 13139#include <$ac_header>
503d2be0 13140_ACEOF
c0d27fcc 13141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba 13142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
503d2be0 13143 ac_status=$?
6bae0ccf 13144 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
13145 rm -f conftest.er1
13146 cat conftest.err >&5
c0d27fcc 13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
13148 (exit $ac_status); } >/dev/null; then
13149 if test -s conftest.err; then
13150 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 13151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
13152 else
13153 ac_cpp_err=
13154 fi
503d2be0 13155else
98418dba 13156 ac_cpp_err=yes
503d2be0 13157fi
98418dba 13158if test -z "$ac_cpp_err"; then
c0d27fcc 13159 ac_header_preproc=yes
98418dba
CW
13160else
13161 echo "$as_me: failed program was:" >&5
19650fd6
AS
13162sed 's/^/| /' conftest.$ac_ext >&5
13163
c0d27fcc 13164 ac_header_preproc=no
503d2be0 13165fi
98418dba 13166rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
13167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13168echo "${ECHO_T}$ac_header_preproc" >&6
13169
13170# So? What about this header?
35996d22
AS
13171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13172 yes:no: )
c0d27fcc
MR
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13176echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13177 ac_header_preproc=yes
19650fd6 13178 ;;
35996d22 13179 no:yes:* )
c0d27fcc
MR
13180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13181echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
13182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13183echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13185echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13187echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 13188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 13189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13191echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
13192 (
13193 cat <<\_ASBOX
35996d22
AS
13194## ------------------------------------------ ##
13195## Report this to the AC_PACKAGE_NAME lists. ##
13196## ------------------------------------------ ##
19650fd6
AS
13197_ASBOX
13198 ) |
13199 sed "s/^/$as_me: WARNING: /" >&2
13200 ;;
c0d27fcc
MR
13201esac
13202echo "$as_me:$LINENO: checking for $ac_header" >&5
13203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13204if eval "test \"\${$as_ac_Header+set}\" = set"; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
35996d22 13207 eval "$as_ac_Header=\$ac_header_preproc"
ba4481b5 13208fi
c0d27fcc 13209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
98418dba 13210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
13211
13212fi
98418dba 13213if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 13214 cat >>confdefs.h <<_ACEOF
98418dba 13215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 13216_ACEOF
48d4b120 13217
ba4481b5 13218fi
c0d27fcc 13219
98418dba
CW
13220done
13221
c0d27fcc
MR
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
22044edf
DL
13277
13278
c0d27fcc 13279
b0e44248
RB
13280
13281
973a76b1
DL
13282
13283
13284
cd958eb3 13285
25ca0bca 13286
28127e47 13287
c0d27fcc
MR
13288
13289
98418dba
CW
13290for ac_func in gethostname getdomainname dup2 \
13291rename closedir mkdir rmdir sysinfo \
13292random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13293strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
973a76b1 13294utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
98418dba
CW
13295__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13296sendto recvfrom getsockopt setsockopt getsockname getpeername \
b0e44248 13297gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
28127e47 13298memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
98418dba
CW
13299do
13300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 13301echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
13302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13303if eval "test \"\${$as_ac_var+set}\" = set"; then
503d2be0 13304 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 13305else
503d2be0 13306 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13307/* confdefs.h. */
13308_ACEOF
13309cat confdefs.h >>conftest.$ac_ext
13310cat >>conftest.$ac_ext <<_ACEOF
13311/* end confdefs.h. */
35996d22
AS
13312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13314#define $ac_func innocuous_$ac_func
13315
98418dba 13316/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
13317 which can conflict with char $ac_func (); below.
13318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13319 <limits.h> exists even on freestanding compilers. */
35996d22 13320
19650fd6
AS
13321#ifdef __STDC__
13322# include <limits.h>
13323#else
13324# include <assert.h>
13325#endif
35996d22
AS
13326
13327#undef $ac_func
13328
ba4481b5 13329/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
13330#ifdef __cplusplus
13331extern "C"
19650fd6 13332{
503d2be0 13333#endif
ba4481b5 13334/* We use char because int might match the return type of a gcc2
503d2be0 13335 builtin and then its argument prototype would still apply. */
98418dba 13336char $ac_func ();
98418dba
CW
13337/* The GNU C library defines this for functions which it implements
13338 to always fail with ENOSYS. Some functions are actually named
13339 something starting with __ and the normal name is an alias. */
13340#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13341choke me
13342#else
19650fd6
AS
13343char (*f) () = $ac_func;
13344#endif
13345#ifdef __cplusplus
13346}
98418dba
CW
13347#endif
13348
19650fd6
AS
13349int
13350main ()
13351{
13352return f != $ac_func;
503d2be0
AS
13353 ;
13354 return 0;
13355}
13356_ACEOF
13357rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 13358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 13359 (eval $ac_link) 2>conftest.er1
503d2be0 13360 ac_status=$?
35996d22
AS
13361 grep -v '^ *+' conftest.er1 >conftest.err
13362 rm -f conftest.er1
13363 cat conftest.err >&5
c0d27fcc 13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13365 (exit $ac_status); } &&
35996d22
AS
13366 { ac_try='test -z "$ac_c_werror_flag"
13367 || test ! -s conftest.err'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
13375 (eval $ac_try) 2>&5
13376 ac_status=$?
c0d27fcc 13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13378 (exit $ac_status); }; }; then
98418dba 13379 eval "$as_ac_var=yes"
503d2be0
AS
13380else
13381 echo "$as_me: failed program was:" >&5
19650fd6
AS
13382sed 's/^/| /' conftest.$ac_ext >&5
13383
98418dba 13384eval "$as_ac_var=no"
503d2be0 13385fi
35996d22
AS
13386rm -f conftest.err conftest.$ac_objext \
13387 conftest$ac_exeext conftest.$ac_ext
ba4481b5 13388fi
c0d27fcc 13389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
13390echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13391if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 13392 cat >>confdefs.h <<_ACEOF
98418dba 13393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 13394_ACEOF
ba4481b5 13395
ba4481b5 13396fi
98418dba 13397done
ba4481b5 13398
c0d27fcc
MR
13399
13400
98418dba
CW
13401for ac_header in sys/un.h
13402do
13403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
13404if eval "test \"\${$as_ac_Header+set}\" = set"; then
13405 echo "$as_me:$LINENO: checking for $ac_header" >&5
98418dba
CW
13406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13407if eval "test \"\${$as_ac_Header+set}\" = set"; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
13409fi
13410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 13412else
c0d27fcc
MR
13413 # Is the header compilable?
13414echo "$as_me:$LINENO: checking $ac_header usability" >&5
13415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13416cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13417/* confdefs.h. */
13418_ACEOF
13419cat confdefs.h >>conftest.$ac_ext
13420cat >>conftest.$ac_ext <<_ACEOF
13421/* end confdefs.h. */
c0d27fcc
MR
13422$ac_includes_default
13423#include <$ac_header>
13424_ACEOF
13425rm -f conftest.$ac_objext
13426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 13427 (eval $ac_compile) 2>conftest.er1
c0d27fcc 13428 ac_status=$?
35996d22
AS
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
c0d27fcc
MR
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
35996d22
AS
13434 { ac_try='test -z "$ac_c_werror_flag"
13435 || test ! -s conftest.err'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_header_compiler=yes
13448else
13449 echo "$as_me: failed program was:" >&5
19650fd6
AS
13450sed 's/^/| /' conftest.$ac_ext >&5
13451
c0d27fcc
MR
13452ac_header_compiler=no
13453fi
35996d22 13454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
13455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13456echo "${ECHO_T}$ac_header_compiler" >&6
13457
13458# Is the header present?
13459echo "$as_me:$LINENO: checking $ac_header presence" >&5
13460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13461cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h. */
98418dba 13467#include <$ac_header>
503d2be0 13468_ACEOF
c0d27fcc 13469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
13470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13471 ac_status=$?
6bae0ccf 13472 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
13473 rm -f conftest.er1
13474 cat conftest.err >&5
c0d27fcc 13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
13476 (exit $ac_status); } >/dev/null; then
13477 if test -s conftest.err; then
13478 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 13479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
13480 else
13481 ac_cpp_err=
13482 fi
13483else
13484 ac_cpp_err=yes
13485fi
13486if test -z "$ac_cpp_err"; then
c0d27fcc 13487 ac_header_preproc=yes
ba4481b5 13488else
503d2be0 13489 echo "$as_me: failed program was:" >&5
19650fd6
AS
13490sed 's/^/| /' conftest.$ac_ext >&5
13491
c0d27fcc 13492 ac_header_preproc=no
ba4481b5 13493fi
503d2be0 13494rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
13495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13496echo "${ECHO_T}$ac_header_preproc" >&6
13497
13498# So? What about this header?
35996d22
AS
13499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13500 yes:no: )
c0d27fcc
MR
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13505 ac_header_preproc=yes
19650fd6 13506 ;;
35996d22 13507 no:yes:* )
c0d27fcc
MR
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
13510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13511echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13515echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 13516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 13517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
13518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
13520 (
13521 cat <<\_ASBOX
35996d22
AS
13522## ------------------------------------------ ##
13523## Report this to the AC_PACKAGE_NAME lists. ##
13524## ------------------------------------------ ##
19650fd6
AS
13525_ASBOX
13526 ) |
13527 sed "s/^/$as_me: WARNING: /" >&2
13528 ;;
c0d27fcc
MR
13529esac
13530echo "$as_me:$LINENO: checking for $ac_header" >&5
13531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13532if eval "test \"\${$as_ac_Header+set}\" = set"; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534else
35996d22 13535 eval "$as_ac_Header=\$ac_header_preproc"
ba4481b5 13536fi
c0d27fcc 13537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
925c2f3f 13538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
13539
13540fi
925c2f3f 13541if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 13542 cat >>confdefs.h <<_ACEOF
925c2f3f 13543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 13544_ACEOF
503d2be0 13545
925c2f3f 13546fi
c0d27fcc 13547
925c2f3f
EZ
13548done
13549
c0d27fcc
MR
13550
13551
13552
35996d22
AS
13553
13554for ac_header in stdlib.h sys/time.h unistd.h
925c2f3f
EZ
13555do
13556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
13557if eval "test \"\${$as_ac_Header+set}\" = set"; then
13558 echo "$as_me:$LINENO: checking for $ac_header" >&5
925c2f3f
EZ
13559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13560if eval "test \"\${$as_ac_Header+set}\" = set"; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
13562fi
13563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
925c2f3f 13565else
c0d27fcc
MR
13566 # Is the header compilable?
13567echo "$as_me:$LINENO: checking $ac_header usability" >&5
13568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13569cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13570/* confdefs.h. */
13571_ACEOF
13572cat confdefs.h >>conftest.$ac_ext
13573cat >>conftest.$ac_ext <<_ACEOF
13574/* end confdefs.h. */
c0d27fcc
MR
13575$ac_includes_default
13576#include <$ac_header>
13577_ACEOF
13578rm -f conftest.$ac_objext
13579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 13580 (eval $ac_compile) 2>conftest.er1
c0d27fcc 13581 ac_status=$?
35996d22
AS
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
c0d27fcc
MR
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
35996d22
AS
13587 { ac_try='test -z "$ac_c_werror_flag"
13588 || test ! -s conftest.err'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; } &&
13594 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_header_compiler=yes
13601else
13602 echo "$as_me: failed program was:" >&5
19650fd6
AS
13603sed 's/^/| /' conftest.$ac_ext >&5
13604
c0d27fcc
MR
13605ac_header_compiler=no
13606fi
35996d22 13607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
13608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13609echo "${ECHO_T}$ac_header_compiler" >&6
13610
13611# Is the header present?
13612echo "$as_me:$LINENO: checking $ac_header presence" >&5
13613echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13614cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13615/* confdefs.h. */
13616_ACEOF
13617cat confdefs.h >>conftest.$ac_ext
13618cat >>conftest.$ac_ext <<_ACEOF
13619/* end confdefs.h. */
98418dba 13620#include <$ac_header>
503d2be0 13621_ACEOF
c0d27fcc 13622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
13623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13624 ac_status=$?
6bae0ccf 13625 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
13626 rm -f conftest.er1
13627 cat conftest.err >&5
c0d27fcc 13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
13629 (exit $ac_status); } >/dev/null; then
13630 if test -s conftest.err; then
13631 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 13632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
13633 else
13634 ac_cpp_err=
13635 fi
13636else
13637 ac_cpp_err=yes
13638fi
13639if test -z "$ac_cpp_err"; then
c0d27fcc 13640 ac_header_preproc=yes
98418dba
CW
13641else
13642 echo "$as_me: failed program was:" >&5
19650fd6
AS
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
c0d27fcc 13645 ac_header_preproc=no
98418dba
CW
13646fi
13647rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
13648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13649echo "${ECHO_T}$ac_header_preproc" >&6
13650
13651# So? What about this header?
35996d22
AS
13652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13653 yes:no: )
c0d27fcc
MR
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13658 ac_header_preproc=yes
19650fd6 13659 ;;
35996d22 13660 no:yes:* )
c0d27fcc
MR
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 13669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 13670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
13673 (
13674 cat <<\_ASBOX
35996d22
AS
13675## ------------------------------------------ ##
13676## Report this to the AC_PACKAGE_NAME lists. ##
13677## ------------------------------------------ ##
19650fd6
AS
13678_ASBOX
13679 ) |
13680 sed "s/^/$as_me: WARNING: /" >&2
13681 ;;
c0d27fcc
MR
13682esac
13683echo "$as_me:$LINENO: checking for $ac_header" >&5
13684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13685if eval "test \"\${$as_ac_Header+set}\" = set"; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13687else
35996d22 13688 eval "$as_ac_Header=\$ac_header_preproc"
ffe36136 13689fi
c0d27fcc 13690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
98418dba 13691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
13692
13693fi
98418dba 13694if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 13695 cat >>confdefs.h <<_ACEOF
98418dba 13696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 13697_ACEOF
98418dba
CW
13698
13699fi
c0d27fcc 13700
98418dba
CW
13701done
13702
c0d27fcc 13703
98418dba
CW
13704for ac_func in alarm
13705do
13706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 13707echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
13708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13709if eval "test \"\${$as_ac_var+set}\" = set"; then
503d2be0 13710 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 13711else
98418dba 13712 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13713/* confdefs.h. */
13714_ACEOF
13715cat confdefs.h >>conftest.$ac_ext
13716cat >>conftest.$ac_ext <<_ACEOF
13717/* end confdefs.h. */
35996d22
AS
13718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13720#define $ac_func innocuous_$ac_func
13721
98418dba 13722/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
13723 which can conflict with char $ac_func (); below.
13724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13725 <limits.h> exists even on freestanding compilers. */
35996d22 13726
19650fd6
AS
13727#ifdef __STDC__
13728# include <limits.h>
13729#else
13730# include <assert.h>
13731#endif
35996d22
AS
13732
13733#undef $ac_func
13734
ba4481b5 13735/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
13736#ifdef __cplusplus
13737extern "C"
19650fd6 13738{
503d2be0 13739#endif
ba4481b5 13740/* We use char because int might match the return type of a gcc2
503d2be0 13741 builtin and then its argument prototype would still apply. */
98418dba 13742char $ac_func ();
98418dba
CW
13743/* The GNU C library defines this for functions which it implements
13744 to always fail with ENOSYS. Some functions are actually named
13745 something starting with __ and the normal name is an alias. */
13746#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13747choke me
13748#else
19650fd6
AS
13749char (*f) () = $ac_func;
13750#endif
13751#ifdef __cplusplus
13752}
98418dba
CW
13753#endif
13754
19650fd6
AS
13755int
13756main ()
13757{
13758return f != $ac_func;
503d2be0
AS
13759 ;
13760 return 0;
13761}
13762_ACEOF
13763rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 13764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 13765 (eval $ac_link) 2>conftest.er1
503d2be0 13766 ac_status=$?
35996d22
AS
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
c0d27fcc 13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13771 (exit $ac_status); } &&
35996d22
AS
13772 { ac_try='test -z "$ac_c_werror_flag"
13773 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
c0d27fcc 13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13784 (exit $ac_status); }; }; then
98418dba 13785 eval "$as_ac_var=yes"
503d2be0
AS
13786else
13787 echo "$as_me: failed program was:" >&5
19650fd6
AS
13788sed 's/^/| /' conftest.$ac_ext >&5
13789
98418dba 13790eval "$as_ac_var=no"
503d2be0 13791fi
35996d22
AS
13792rm -f conftest.err conftest.$ac_objext \
13793 conftest$ac_exeext conftest.$ac_ext
ffe36136 13794fi
c0d27fcc 13795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
13796echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13797if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 13798 cat >>confdefs.h <<_ACEOF
98418dba 13799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 13800_ACEOF
ffe36136 13801
ba4481b5 13802fi
98418dba 13803done
ba4481b5 13804
c0d27fcc 13805echo "$as_me:$LINENO: checking for working mktime" >&5
98418dba
CW
13806echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13807if test "${ac_cv_func_working_mktime+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 if test "$cross_compiling" = yes; then
13811 ac_cv_func_working_mktime=no
13812else
13813 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13814/* confdefs.h. */
13815_ACEOF
13816cat confdefs.h >>conftest.$ac_ext
13817cat >>conftest.$ac_ext <<_ACEOF
13818/* end confdefs.h. */
98418dba
CW
13819/* Test program from Paul Eggert and Tony Leneis. */
13820#if TIME_WITH_SYS_TIME
13821# include <sys/time.h>
13822# include <time.h>
13823#else
13824# if HAVE_SYS_TIME_H
13825# include <sys/time.h>
13826# else
13827# include <time.h>
13828# endif
13829#endif
ba4481b5 13830
35996d22
AS
13831#if HAVE_STDLIB_H
13832# include <stdlib.h>
13833#endif
13834
98418dba
CW
13835#if HAVE_UNISTD_H
13836# include <unistd.h>
13837#endif
ba4481b5 13838
98418dba
CW
13839#if !HAVE_ALARM
13840# define alarm(X) /* empty */
13841#endif
df645f7c 13842
98418dba
CW
13843/* Work around redefinition to rpl_putenv by other config tests. */
13844#undef putenv
df645f7c 13845
98418dba 13846static time_t time_t_max;
35996d22 13847static time_t time_t_min;
df645f7c 13848
98418dba 13849/* Values we'll use to set the TZ environment variable. */
35996d22
AS
13850static char *tz_strings[] = {
13851 (char *) 0, "TZ=GMT0", "TZ=JST-9",
98418dba
CW
13852 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13853};
13854#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
503d2be0 13855
98418dba
CW
13856/* Fail if mktime fails to convert a date in the spring-forward gap.
13857 Based on a problem report from Andreas Jaeger. */
13858static void
13859spring_forward_gap ()
13860{
13861 /* glibc (up to about 1998-10-07) failed this test. */
13862 struct tm tm;
13863
13864 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13865 instead of "TZ=America/Vancouver" in order to detect the bug even
13866 on systems that don't support the Olson extension, or don't have the
13867 full zoneinfo tables installed. */
13868 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13869
13870 tm.tm_year = 98;
13871 tm.tm_mon = 3;
13872 tm.tm_mday = 5;
13873 tm.tm_hour = 2;
13874 tm.tm_min = 0;
13875 tm.tm_sec = 0;
13876 tm.tm_isdst = -1;
13877 if (mktime (&tm) == (time_t)-1)
13878 exit (1);
13879}
13880
13881static void
35996d22 13882mktime_test1 (now)
98418dba
CW
13883 time_t now;
13884{
13885 struct tm *lt;
13886 if ((lt = localtime (&now)) && mktime (lt) != now)
13887 exit (1);
35996d22
AS
13888}
13889
13890static void
13891mktime_test (now)
13892 time_t now;
13893{
13894 mktime_test1 (now);
13895 mktime_test1 ((time_t) (time_t_max - now));
13896 mktime_test1 ((time_t) (time_t_min + now));
98418dba
CW
13897}
13898
13899static void
13900irix_6_4_bug ()
13901{
13902 /* Based on code from Ariel Faigon. */
13903 struct tm tm;
13904 tm.tm_year = 96;
13905 tm.tm_mon = 3;
13906 tm.tm_mday = 0;
13907 tm.tm_hour = 0;
13908 tm.tm_min = 0;
13909 tm.tm_sec = 0;
13910 tm.tm_isdst = -1;
13911 mktime (&tm);
13912 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13913 exit (1);
13914}
13915
13916static void
13917bigtime_test (j)
13918 int j;
13919{
13920 struct tm tm;
13921 time_t now;
13922 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13923 now = mktime (&tm);
13924 if (now != (time_t) -1)
13925 {
13926 struct tm *lt = localtime (&now);
13927 if (! (lt
13928 && lt->tm_year == tm.tm_year
13929 && lt->tm_mon == tm.tm_mon
13930 && lt->tm_mday == tm.tm_mday
13931 && lt->tm_hour == tm.tm_hour
13932 && lt->tm_min == tm.tm_min
13933 && lt->tm_sec == tm.tm_sec
13934 && lt->tm_yday == tm.tm_yday
13935 && lt->tm_wday == tm.tm_wday
13936 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13937 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13938 exit (1);
13939 }
13940}
13941
13942int
13943main ()
13944{
13945 time_t t, delta;
13946 int i, j;
13947
13948 /* This test makes some buggy mktime implementations loop.
13949 Give up after 60 seconds; a mktime slower than that
13950 isn't worth using anyway. */
13951 alarm (60);
13952
13953 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13954 continue;
13955 time_t_max--;
35996d22
AS
13956 if ((time_t) -1 < 0)
13957 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13958 continue;
98418dba
CW
13959 delta = time_t_max / 997; /* a suitable prime number */
13960 for (i = 0; i < N_STRINGS; i++)
13961 {
13962 if (tz_strings[i])
13963 putenv (tz_strings[i]);
503d2be0 13964
98418dba
CW
13965 for (t = 0; t <= time_t_max - delta; t += delta)
13966 mktime_test (t);
35996d22
AS
13967 mktime_test ((time_t) 1);
13968 mktime_test ((time_t) (60 * 60));
13969 mktime_test ((time_t) (60 * 60 * 24));
98418dba
CW
13970
13971 for (j = 1; 0 < j; j *= 2)
35996d22 13972 bigtime_test (j);
98418dba
CW
13973 bigtime_test (j - 1);
13974 }
13975 irix_6_4_bug ();
13976 spring_forward_gap ();
13977 exit (0);
503d2be0
AS
13978}
13979_ACEOF
98418dba 13980rm -f conftest$ac_exeext
c0d27fcc 13981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
13982 (eval $ac_link) 2>&5
13983 ac_status=$?
c0d27fcc 13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 13985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
c0d27fcc 13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13990 (exit $ac_status); }; }; then
98418dba 13991 ac_cv_func_working_mktime=yes
503d2be0 13992else
98418dba
CW
13993 echo "$as_me: program exited with status $ac_status" >&5
13994echo "$as_me: failed program was:" >&5
19650fd6
AS
13995sed 's/^/| /' conftest.$ac_ext >&5
13996
c0d27fcc 13997( exit $ac_status )
98418dba 13998ac_cv_func_working_mktime=no
503d2be0 13999fi
35996d22 14000rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
503d2be0 14001fi
ba4481b5 14002fi
c0d27fcc 14003echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
98418dba
CW
14004echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14005if test $ac_cv_func_working_mktime = no; then
35996d22
AS
14006 case $LIBOBJS in
14007 "mktime.$ac_objext" | \
14008 *" mktime.$ac_objext" | \
14009 "mktime.$ac_objext "* | \
14010 *" mktime.$ac_objext "* ) ;;
14011 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14012esac
14013
ba4481b5
DL
14014fi
14015
98418dba 14016if test "$ac_cv_func_working_mktime" = no; then
b936fae4 14017
c0d27fcc 14018cat >>confdefs.h <<\_ACEOF
98418dba 14019#define BROKEN_MKTIME 1
c0d27fcc 14020_ACEOF
ba4481b5 14021
ba4481b5 14022fi
503d2be0 14023
98418dba
CW
14024ac_have_func=no # yes means we've found a way to get the load average.
14025
6bae0ccf
DL
14026# Make sure getloadavg.c is where it belongs, at configure-time.
14027test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14028 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14029echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14030 { (exit 1); exit 1; }; }
14031
98418dba
CW
14032ac_save_LIBS=$LIBS
14033
14034# Check for getloadavg, but be sure not to touch the cache variable.
c0d27fcc 14035(echo "$as_me:$LINENO: checking for getloadavg" >&5
98418dba
CW
14036echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14037if test "${ac_cv_func_getloadavg+set}" = set; then
503d2be0 14038 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14039else
503d2be0 14040 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14041/* confdefs.h. */
14042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
14045/* end confdefs.h. */
35996d22
AS
14046/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14048#define getloadavg innocuous_getloadavg
14049
98418dba 14050/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
14051 which can conflict with char getloadavg (); below.
14052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14053 <limits.h> exists even on freestanding compilers. */
35996d22 14054
19650fd6
AS
14055#ifdef __STDC__
14056# include <limits.h>
14057#else
14058# include <assert.h>
14059#endif
35996d22
AS
14060
14061#undef getloadavg
14062
ba4481b5 14063/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
14064#ifdef __cplusplus
14065extern "C"
19650fd6 14066{
503d2be0 14067#endif
ba4481b5 14068/* We use char because int might match the return type of a gcc2
503d2be0 14069 builtin and then its argument prototype would still apply. */
98418dba 14070char getloadavg ();
98418dba
CW
14071/* The GNU C library defines this for functions which it implements
14072 to always fail with ENOSYS. Some functions are actually named
14073 something starting with __ and the normal name is an alias. */
14074#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14075choke me
14076#else
19650fd6
AS
14077char (*f) () = getloadavg;
14078#endif
14079#ifdef __cplusplus
14080}
cd958eb3
MB
14081#endif
14082
19650fd6
AS
14083int
14084main ()
14085{
14086return f != getloadavg;
503d2be0
AS
14087 ;
14088 return 0;
14089}
14090_ACEOF
14091rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14093 (eval $ac_link) 2>conftest.er1
503d2be0 14094 ac_status=$?
35996d22
AS
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
c0d27fcc 14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14099 (exit $ac_status); } &&
35996d22
AS
14100 { ac_try='test -z "$ac_c_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
c0d27fcc 14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14112 (exit $ac_status); }; }; then
98418dba 14113 ac_cv_func_getloadavg=yes
503d2be0
AS
14114else
14115 echo "$as_me: failed program was:" >&5
19650fd6
AS
14116sed 's/^/| /' conftest.$ac_ext >&5
14117
98418dba 14118ac_cv_func_getloadavg=no
503d2be0 14119fi
35996d22
AS
14120rm -f conftest.err conftest.$ac_objext \
14121 conftest$ac_exeext conftest.$ac_ext
ba4481b5 14122fi
c0d27fcc 14123echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
98418dba
CW
14124echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14125if test $ac_cv_func_getloadavg = yes; then
14126 exit 0
14127else
14128 exit 1
ba4481b5 14129fi
98418dba 14130) && ac_have_func=yes
ba4481b5 14131
98418dba 14132# On HPUX9, an unprivileged user can get load averages through this function.
503d2be0 14133
98418dba
CW
14134for ac_func in pstat_getdynamic
14135do
14136as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 14137echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
14138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14139if eval "test \"\${$as_ac_var+set}\" = set"; then
503d2be0 14140 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14141else
503d2be0 14142 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14143/* confdefs.h. */
14144_ACEOF
14145cat confdefs.h >>conftest.$ac_ext
14146cat >>conftest.$ac_ext <<_ACEOF
14147/* end confdefs.h. */
35996d22
AS
14148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14150#define $ac_func innocuous_$ac_func
14151
98418dba 14152/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
14153 which can conflict with char $ac_func (); below.
14154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14155 <limits.h> exists even on freestanding compilers. */
35996d22 14156
19650fd6
AS
14157#ifdef __STDC__
14158# include <limits.h>
14159#else
14160# include <assert.h>
14161#endif
35996d22
AS
14162
14163#undef $ac_func
14164
ba4481b5 14165/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
14166#ifdef __cplusplus
14167extern "C"
19650fd6 14168{
503d2be0 14169#endif
ba4481b5 14170/* We use char because int might match the return type of a gcc2
503d2be0 14171 builtin and then its argument prototype would still apply. */
98418dba 14172char $ac_func ();
98418dba
CW
14173/* The GNU C library defines this for functions which it implements
14174 to always fail with ENOSYS. Some functions are actually named
14175 something starting with __ and the normal name is an alias. */
14176#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14177choke me
14178#else
19650fd6
AS
14179char (*f) () = $ac_func;
14180#endif
14181#ifdef __cplusplus
14182}
98418dba
CW
14183#endif
14184
19650fd6
AS
14185int
14186main ()
14187{
14188return f != $ac_func;
98418dba
CW
14189 ;
14190 return 0;
14191}
f21fadcc 14192_ACEOF
98418dba 14193rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14195 (eval $ac_link) 2>conftest.er1
f21fadcc 14196 ac_status=$?
35996d22
AS
14197 grep -v '^ *+' conftest.er1 >conftest.err
14198 rm -f conftest.er1
14199 cat conftest.err >&5
c0d27fcc 14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 14201 (exit $ac_status); } &&
35996d22
AS
14202 { ac_try='test -z "$ac_c_werror_flag"
14203 || test ! -s conftest.err'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
14211 (eval $ac_try) 2>&5
14212 ac_status=$?
c0d27fcc 14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
14214 (exit $ac_status); }; }; then
14215 eval "$as_ac_var=yes"
f21fadcc
JD
14216else
14217 echo "$as_me: failed program was:" >&5
19650fd6
AS
14218sed 's/^/| /' conftest.$ac_ext >&5
14219
98418dba 14220eval "$as_ac_var=no"
f21fadcc 14221fi
35996d22
AS
14222rm -f conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
f21fadcc 14224fi
c0d27fcc 14225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
14226echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14227if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 14228 cat >>confdefs.h <<_ACEOF
98418dba 14229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 14230_ACEOF
98418dba
CW
14231
14232fi
14233done
14234
c0d27fcc 14235
98418dba
CW
14236# Solaris has libkstat which does not require root.
14237
c0d27fcc 14238echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
98418dba
CW
14239echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14240if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
f21fadcc
JD
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242else
14243 ac_check_lib_save_LIBS=$LIBS
98418dba 14244LIBS="-lkstat $LIBS"
f21fadcc 14245cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14246/* confdefs.h. */
14247_ACEOF
14248cat confdefs.h >>conftest.$ac_ext
14249cat >>conftest.$ac_ext <<_ACEOF
14250/* end confdefs.h. */
f21fadcc
JD
14251
14252/* Override any gcc2 internal prototype to avoid an error. */
14253#ifdef __cplusplus
14254extern "C"
14255#endif
14256/* We use char because int might match the return type of a gcc2
14257 builtin and then its argument prototype would still apply. */
98418dba 14258char kstat_open ();
f21fadcc
JD
14259int
14260main ()
14261{
98418dba 14262kstat_open ();
f21fadcc
JD
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14269 (eval $ac_link) 2>conftest.er1
f21fadcc 14270 ac_status=$?
35996d22
AS
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
c0d27fcc 14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f21fadcc 14275 (exit $ac_status); } &&
35996d22
AS
14276 { ac_try='test -z "$ac_c_werror_flag"
14277 || test ! -s conftest.err'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f21fadcc
JD
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
c0d27fcc 14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f21fadcc 14288 (exit $ac_status); }; }; then
98418dba 14289 ac_cv_lib_kstat_kstat_open=yes
f21fadcc
JD
14290else
14291 echo "$as_me: failed program was:" >&5
19650fd6
AS
14292sed 's/^/| /' conftest.$ac_ext >&5
14293
98418dba 14294ac_cv_lib_kstat_kstat_open=no
f21fadcc 14295fi
35996d22
AS
14296rm -f conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
f21fadcc
JD
14298LIBS=$ac_check_lib_save_LIBS
14299fi
c0d27fcc 14300echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
98418dba
CW
14301echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14302if test $ac_cv_lib_kstat_kstat_open = yes; then
c0d27fcc 14303 cat >>confdefs.h <<_ACEOF
98418dba 14304#define HAVE_LIBKSTAT 1
c0d27fcc 14305_ACEOF
f21fadcc 14306
98418dba 14307 LIBS="-lkstat $LIBS"
f21fadcc 14308
f21fadcc
JD
14309fi
14310
98418dba
CW
14311test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14312
14313# Some systems with -lutil have (and need) -lkvm as well, some do not.
14314# On Solaris, -lkvm requires nlist from -lelf, so check that first
14315# to get the right answer into the cache.
14316# For kstat on solaris, we need libelf to force the definition of SVR4 below.
14317if test $ac_have_func = no; then
c0d27fcc 14318 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
98418dba
CW
14319echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14320if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
503d2be0 14321 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14322else
98418dba
CW
14323 ac_check_lib_save_LIBS=$LIBS
14324LIBS="-lelf $LIBS"
14325cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14326/* confdefs.h. */
14327_ACEOF
14328cat confdefs.h >>conftest.$ac_ext
14329cat >>conftest.$ac_ext <<_ACEOF
14330/* end confdefs.h. */
98418dba
CW
14331
14332/* Override any gcc2 internal prototype to avoid an error. */
14333#ifdef __cplusplus
14334extern "C"
14335#endif
14336/* We use char because int might match the return type of a gcc2
14337 builtin and then its argument prototype would still apply. */
14338char elf_begin ();
503d2be0
AS
14339int
14340main ()
14341{
98418dba 14342elf_begin ();
503d2be0
AS
14343 ;
14344 return 0;
14345}
14346_ACEOF
14347rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14349 (eval $ac_link) 2>conftest.er1
503d2be0 14350 ac_status=$?
35996d22
AS
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
c0d27fcc 14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14355 (exit $ac_status); } &&
35996d22
AS
14356 { ac_try='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
c0d27fcc 14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14368 (exit $ac_status); }; }; then
98418dba 14369 ac_cv_lib_elf_elf_begin=yes
ba4481b5 14370else
503d2be0 14371 echo "$as_me: failed program was:" >&5
19650fd6
AS
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
98418dba 14374ac_cv_lib_elf_elf_begin=no
ba4481b5 14375fi
35996d22
AS
14376rm -f conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
98418dba 14378LIBS=$ac_check_lib_save_LIBS
ba4481b5 14379fi
c0d27fcc 14380echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
98418dba
CW
14381echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14382if test $ac_cv_lib_elf_elf_begin = yes; then
14383 LIBS="-lelf $LIBS"
ba4481b5
DL
14384fi
14385
98418dba
CW
14386fi
14387if test $ac_have_func = no; then
c0d27fcc 14388 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
98418dba
CW
14389echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14390if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
503d2be0 14391 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14392else
98418dba
CW
14393 ac_check_lib_save_LIBS=$LIBS
14394LIBS="-lkvm $LIBS"
14395cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14396/* confdefs.h. */
14397_ACEOF
14398cat confdefs.h >>conftest.$ac_ext
14399cat >>conftest.$ac_ext <<_ACEOF
14400/* end confdefs.h. */
98418dba
CW
14401
14402/* Override any gcc2 internal prototype to avoid an error. */
14403#ifdef __cplusplus
14404extern "C"
14405#endif
14406/* We use char because int might match the return type of a gcc2
14407 builtin and then its argument prototype would still apply. */
14408char kvm_open ();
503d2be0
AS
14409int
14410main ()
14411{
98418dba 14412kvm_open ();
503d2be0
AS
14413 ;
14414 return 0;
14415}
14416_ACEOF
14417rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14419 (eval $ac_link) 2>conftest.er1
503d2be0 14420 ac_status=$?
35996d22
AS
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
c0d27fcc 14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14425 (exit $ac_status); } &&
35996d22
AS
14426 { ac_try='test -z "$ac_c_werror_flag"
14427 || test ! -s conftest.err'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; } &&
14433 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
c0d27fcc 14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14438 (exit $ac_status); }; }; then
98418dba 14439 ac_cv_lib_kvm_kvm_open=yes
503d2be0
AS
14440else
14441 echo "$as_me: failed program was:" >&5
19650fd6
AS
14442sed 's/^/| /' conftest.$ac_ext >&5
14443
98418dba 14444ac_cv_lib_kvm_kvm_open=no
503d2be0 14445fi
35996d22
AS
14446rm -f conftest.err conftest.$ac_objext \
14447 conftest$ac_exeext conftest.$ac_ext
98418dba 14448LIBS=$ac_check_lib_save_LIBS
503d2be0 14449fi
c0d27fcc 14450echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
98418dba
CW
14451echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14452if test $ac_cv_lib_kvm_kvm_open = yes; then
14453 LIBS="-lkvm $LIBS"
ba4481b5
DL
14454fi
14455
98418dba 14456 # Check for the 4.4BSD definition of getloadavg.
c0d27fcc 14457 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
98418dba
CW
14458echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14459if test "${ac_cv_lib_util_getloadavg+set}" = set; then
503d2be0 14460 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14461else
98418dba
CW
14462 ac_check_lib_save_LIBS=$LIBS
14463LIBS="-lutil $LIBS"
14464cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14465/* confdefs.h. */
14466_ACEOF
14467cat confdefs.h >>conftest.$ac_ext
14468cat >>conftest.$ac_ext <<_ACEOF
14469/* end confdefs.h. */
98418dba
CW
14470
14471/* Override any gcc2 internal prototype to avoid an error. */
14472#ifdef __cplusplus
14473extern "C"
14474#endif
14475/* We use char because int might match the return type of a gcc2
14476 builtin and then its argument prototype would still apply. */
14477char getloadavg ();
503d2be0
AS
14478int
14479main ()
14480{
98418dba 14481getloadavg ();
503d2be0
AS
14482 ;
14483 return 0;
14484}
14485_ACEOF
14486rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14488 (eval $ac_link) 2>conftest.er1
503d2be0 14489 ac_status=$?
35996d22
AS
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
c0d27fcc 14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14494 (exit $ac_status); } &&
35996d22
AS
14495 { ac_try='test -z "$ac_c_werror_flag"
14496 || test ! -s conftest.err'
c0d27fcc 14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
c0d27fcc 14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996d22
AS
14501 (exit $ac_status); }; } &&
14502 { ac_try='test -s conftest$ac_exeext'
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14505 ac_status=$?
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }; then
14508 ac_cv_lib_util_getloadavg=yes
14509else
503d2be0 14510 echo "$as_me: failed program was:" >&5
19650fd6
AS
14511sed 's/^/| /' conftest.$ac_ext >&5
14512
98418dba 14513ac_cv_lib_util_getloadavg=no
ba4481b5 14514fi
35996d22
AS
14515rm -f conftest.err conftest.$ac_objext \
14516 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
14517LIBS=$ac_check_lib_save_LIBS
14518fi
c0d27fcc 14519echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
98418dba
CW
14520echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14521if test $ac_cv_lib_util_getloadavg = yes; then
14522 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
ba4481b5 14523fi
503d2be0 14524
98418dba 14525fi
ba4481b5 14526
98418dba
CW
14527if test $ac_have_func = no; then
14528 # There is a commonly available library for RS/6000 AIX.
14529 # Since it is not a standard part of AIX, it might be installed locally.
14530 ac_getloadavg_LIBS=$LIBS
14531 LIBS="-L/usr/local/lib $LIBS"
c0d27fcc 14532 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
98418dba
CW
14533echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14534if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
503d2be0 14535 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14536else
98418dba
CW
14537 ac_check_lib_save_LIBS=$LIBS
14538LIBS="-lgetloadavg $LIBS"
14539cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
14544/* end confdefs.h. */
ba4481b5 14545
98418dba
CW
14546/* Override any gcc2 internal prototype to avoid an error. */
14547#ifdef __cplusplus
14548extern "C"
14549#endif
14550/* We use char because int might match the return type of a gcc2
14551 builtin and then its argument prototype would still apply. */
14552char getloadavg ();
98418dba
CW
14553int
14554main ()
14555{
14556getloadavg ();
14557 ;
14558 return 0;
14559}
503d2be0 14560_ACEOF
98418dba 14561rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14563 (eval $ac_link) 2>conftest.er1
98418dba 14564 ac_status=$?
35996d22
AS
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
c0d27fcc 14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 14569 (exit $ac_status); } &&
35996d22
AS
14570 { ac_try='test -z "$ac_c_werror_flag"
14571 || test ! -s conftest.err'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
c0d27fcc 14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
14582 (exit $ac_status); }; }; then
14583 ac_cv_lib_getloadavg_getloadavg=yes
ba4481b5 14584else
98418dba 14585 echo "$as_me: failed program was:" >&5
19650fd6
AS
14586sed 's/^/| /' conftest.$ac_ext >&5
14587
98418dba
CW
14588ac_cv_lib_getloadavg_getloadavg=no
14589fi
35996d22
AS
14590rm -f conftest.err conftest.$ac_objext \
14591 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
14592LIBS=$ac_check_lib_save_LIBS
14593fi
c0d27fcc 14594echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
98418dba
CW
14595echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14596if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14597 LIBS="-lgetloadavg $LIBS"
14598else
14599 LIBS=$ac_getloadavg_LIBS
ba4481b5 14600fi
ba4481b5
DL
14601
14602fi
98418dba
CW
14603
14604# Make sure it is really in the library, if we think we found it,
14605# otherwise set up the replacement function.
14606
14607for ac_func in getloadavg
14608do
14609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 14610echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
14611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14612if eval "test \"\${$as_ac_var+set}\" = set"; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14614else
503d2be0 14615 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14616/* confdefs.h. */
14617_ACEOF
14618cat confdefs.h >>conftest.$ac_ext
14619cat >>conftest.$ac_ext <<_ACEOF
14620/* end confdefs.h. */
35996d22
AS
14621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14623#define $ac_func innocuous_$ac_func
14624
ba4481b5 14625/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
14626 which can conflict with char $ac_func (); below.
14627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14628 <limits.h> exists even on freestanding compilers. */
35996d22 14629
19650fd6
AS
14630#ifdef __STDC__
14631# include <limits.h>
14632#else
14633# include <assert.h>
14634#endif
35996d22
AS
14635
14636#undef $ac_func
14637
ba4481b5 14638/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
14639#ifdef __cplusplus
14640extern "C"
19650fd6 14641{
503d2be0 14642#endif
ba4481b5 14643/* We use char because int might match the return type of a gcc2
503d2be0
AS
14644 builtin and then its argument prototype would still apply. */
14645char $ac_func ();
ba4481b5
DL
14646/* The GNU C library defines this for functions which it implements
14647 to always fail with ENOSYS. Some functions are actually named
14648 something starting with __ and the normal name is an alias. */
14649#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14650choke me
14651#else
19650fd6
AS
14652char (*f) () = $ac_func;
14653#endif
14654#ifdef __cplusplus
14655}
cd958eb3
MB
14656#endif
14657
19650fd6
AS
14658int
14659main ()
14660{
14661return f != $ac_func;
503d2be0
AS
14662 ;
14663 return 0;
14664}
14665_ACEOF
14666rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14668 (eval $ac_link) 2>conftest.er1
503d2be0 14669 ac_status=$?
35996d22
AS
14670 grep -v '^ *+' conftest.er1 >conftest.err
14671 rm -f conftest.er1
14672 cat conftest.err >&5
c0d27fcc 14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14674 (exit $ac_status); } &&
35996d22
AS
14675 { ac_try='test -z "$ac_c_werror_flag"
14676 || test ! -s conftest.err'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } &&
14682 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
c0d27fcc 14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
14687 (exit $ac_status); }; }; then
14688 eval "$as_ac_var=yes"
14689else
14690 echo "$as_me: failed program was:" >&5
19650fd6
AS
14691sed 's/^/| /' conftest.$ac_ext >&5
14692
503d2be0
AS
14693eval "$as_ac_var=no"
14694fi
35996d22
AS
14695rm -f conftest.err conftest.$ac_objext \
14696 conftest$ac_exeext conftest.$ac_ext
503d2be0 14697fi
c0d27fcc 14698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
14699echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14700if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 14701 cat >>confdefs.h <<_ACEOF
98418dba 14702#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 14703_ACEOF
503d2be0 14704
98418dba 14705else
35996d22
AS
14706 case $LIBOBJS in
14707 "getloadavg.$ac_objext" | \
14708 *" getloadavg.$ac_objext" | \
14709 "getloadavg.$ac_objext "* | \
14710 *" getloadavg.$ac_objext "* ) ;;
14711 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14712esac
14713
ba4481b5 14714
c0d27fcc 14715cat >>confdefs.h <<\_ACEOF
98418dba 14716#define C_GETLOADAVG 1
c0d27fcc 14717_ACEOF
ba4481b5 14718
98418dba
CW
14719# Figure out what our getloadavg.c needs.
14720ac_have_func=no
c0d27fcc
MR
14721if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14722 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
98418dba
CW
14723echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14724if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
503d2be0 14725 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
14726fi
14727echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14728echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
ba4481b5 14729else
c0d27fcc
MR
14730 # Is the header compilable?
14731echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14732echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14733cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14734/* confdefs.h. */
14735_ACEOF
14736cat confdefs.h >>conftest.$ac_ext
14737cat >>conftest.$ac_ext <<_ACEOF
14738/* end confdefs.h. */
c0d27fcc
MR
14739$ac_includes_default
14740#include <sys/dg_sys_info.h>
14741_ACEOF
14742rm -f conftest.$ac_objext
14743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 14744 (eval $ac_compile) 2>conftest.er1
c0d27fcc 14745 ac_status=$?
35996d22
AS
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
c0d27fcc
MR
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
35996d22
AS
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_header_compiler=yes
14765else
14766 echo "$as_me: failed program was:" >&5
19650fd6
AS
14767sed 's/^/| /' conftest.$ac_ext >&5
14768
c0d27fcc
MR
14769ac_header_compiler=no
14770fi
35996d22 14771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
14772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14773echo "${ECHO_T}$ac_header_compiler" >&6
14774
14775# Is the header present?
14776echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14777echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14778cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14779/* confdefs.h. */
14780_ACEOF
14781cat confdefs.h >>conftest.$ac_ext
14782cat >>conftest.$ac_ext <<_ACEOF
14783/* end confdefs.h. */
98418dba
CW
14784#include <sys/dg_sys_info.h>
14785_ACEOF
c0d27fcc 14786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
14787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14788 ac_status=$?
6bae0ccf 14789 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
14790 rm -f conftest.er1
14791 cat conftest.err >&5
c0d27fcc 14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
14793 (exit $ac_status); } >/dev/null; then
14794 if test -s conftest.err; then
14795 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 14796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
14797 else
14798 ac_cpp_err=
14799 fi
14800else
14801 ac_cpp_err=yes
ba4481b5 14802fi
98418dba 14803if test -z "$ac_cpp_err"; then
c0d27fcc 14804 ac_header_preproc=yes
98418dba
CW
14805else
14806 echo "$as_me: failed program was:" >&5
19650fd6
AS
14807sed 's/^/| /' conftest.$ac_ext >&5
14808
c0d27fcc 14809 ac_header_preproc=no
ba4481b5 14810fi
98418dba 14811rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
14812echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813echo "${ECHO_T}$ac_header_preproc" >&6
14814
14815# So? What about this header?
35996d22
AS
14816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817 yes:no: )
c0d27fcc
MR
14818 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14819echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
14820 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14821echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14822 ac_header_preproc=yes
19650fd6 14823 ;;
35996d22 14824 no:yes:* )
c0d27fcc
MR
14825 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14826echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
35996d22
AS
14827 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14828echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14830echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14832echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 14833 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19650fd6 14834echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
14835 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14836echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
14837 (
14838 cat <<\_ASBOX
35996d22
AS
14839## ------------------------------------------ ##
14840## Report this to the AC_PACKAGE_NAME lists. ##
14841## ------------------------------------------ ##
19650fd6
AS
14842_ASBOX
14843 ) |
14844 sed "s/^/$as_me: WARNING: /" >&2
14845 ;;
c0d27fcc
MR
14846esac
14847echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14848echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14849if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851else
14852 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
98418dba 14853fi
c0d27fcc 14854echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
98418dba 14855echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
c0d27fcc
MR
14856
14857fi
98418dba
CW
14858if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14859 ac_have_func=yes
ba4481b5 14860
c0d27fcc 14861cat >>confdefs.h <<\_ACEOF
98418dba 14862#define DGUX 1
c0d27fcc
MR
14863_ACEOF
14864
503d2be0 14865
c0d27fcc 14866echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
98418dba
CW
14867echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14868if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
503d2be0 14869 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14870else
503d2be0 14871 ac_check_lib_save_LIBS=$LIBS
98418dba 14872LIBS="-ldgc $LIBS"
503d2be0 14873cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
503d2be0 14879
ba4481b5 14880/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
14881#ifdef __cplusplus
14882extern "C"
14883#endif
ba4481b5 14884/* We use char because int might match the return type of a gcc2
503d2be0 14885 builtin and then its argument prototype would still apply. */
98418dba 14886char dg_sys_info ();
503d2be0
AS
14887int
14888main ()
14889{
98418dba 14890dg_sys_info ();
503d2be0
AS
14891 ;
14892 return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14897 (eval $ac_link) 2>conftest.er1
503d2be0 14898 ac_status=$?
35996d22
AS
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
c0d27fcc 14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14903 (exit $ac_status); } &&
35996d22
AS
14904 { ac_try='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; } &&
14911 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
c0d27fcc 14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14916 (exit $ac_status); }; }; then
98418dba 14917 ac_cv_lib_dgc_dg_sys_info=yes
503d2be0
AS
14918else
14919 echo "$as_me: failed program was:" >&5
19650fd6
AS
14920sed 's/^/| /' conftest.$ac_ext >&5
14921
98418dba 14922ac_cv_lib_dgc_dg_sys_info=no
503d2be0 14923fi
35996d22
AS
14924rm -f conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
14926LIBS=$ac_check_lib_save_LIBS
14927fi
c0d27fcc 14928echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
98418dba
CW
14929echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14930if test $ac_cv_lib_dgc_dg_sys_info = yes; then
c0d27fcc 14931 cat >>confdefs.h <<_ACEOF
98418dba 14932#define HAVE_LIBDGC 1
c0d27fcc 14933_ACEOF
ba4481b5 14934
98418dba 14935 LIBS="-ldgc $LIBS"
ba4481b5 14936
ba4481b5
DL
14937fi
14938
98418dba 14939fi
503d2be0 14940
c0d27fcc
MR
14941
14942
14943if test "${ac_cv_header_locale_h+set}" = set; then
14944 echo "$as_me:$LINENO: checking for locale.h" >&5
98418dba
CW
14945echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14946if test "${ac_cv_header_locale_h+set}" = set; then
503d2be0 14947 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
14948fi
14949echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14950echo "${ECHO_T}$ac_cv_header_locale_h" >&6
503d2be0 14951else
c0d27fcc
MR
14952 # Is the header compilable?
14953echo "$as_me:$LINENO: checking locale.h usability" >&5
14954echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14955cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
c0d27fcc
MR
14961$ac_includes_default
14962#include <locale.h>
14963_ACEOF
14964rm -f conftest.$ac_objext
14965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 14966 (eval $ac_compile) 2>conftest.er1
c0d27fcc 14967 ac_status=$?
35996d22
AS
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
c0d27fcc
MR
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
35996d22
AS
14973 { ac_try='test -z "$ac_c_werror_flag"
14974 || test ! -s conftest.err'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; } &&
14980 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; }; then
14986 ac_header_compiler=yes
14987else
14988 echo "$as_me: failed program was:" >&5
19650fd6
AS
14989sed 's/^/| /' conftest.$ac_ext >&5
14990
c0d27fcc
MR
14991ac_header_compiler=no
14992fi
35996d22 14993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
14994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995echo "${ECHO_T}$ac_header_compiler" >&6
14996
14997# Is the header present?
14998echo "$as_me:$LINENO: checking locale.h presence" >&5
14999echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15000cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15001/* confdefs.h. */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
15005/* end confdefs.h. */
98418dba 15006#include <locale.h>
503d2be0 15007_ACEOF
c0d27fcc 15008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba 15009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
503d2be0 15010 ac_status=$?
6bae0ccf 15011 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
15012 rm -f conftest.er1
15013 cat conftest.err >&5
c0d27fcc 15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
15015 (exit $ac_status); } >/dev/null; then
15016 if test -s conftest.err; then
15017 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 15018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
15019 else
15020 ac_cpp_err=
15021 fi
503d2be0 15022else
98418dba 15023 ac_cpp_err=yes
503d2be0 15024fi
98418dba 15025if test -z "$ac_cpp_err"; then
c0d27fcc 15026 ac_header_preproc=yes
98418dba
CW
15027else
15028 echo "$as_me: failed program was:" >&5
19650fd6
AS
15029sed 's/^/| /' conftest.$ac_ext >&5
15030
c0d27fcc 15031 ac_header_preproc=no
ba4481b5 15032fi
98418dba 15033rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
15034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15035echo "${ECHO_T}$ac_header_preproc" >&6
15036
15037# So? What about this header?
35996d22
AS
15038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15039 yes:no: )
c0d27fcc
MR
15040 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15041echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
15042 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15043echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15044 ac_header_preproc=yes
19650fd6 15045 ;;
35996d22 15046 no:yes:* )
c0d27fcc
MR
15047 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15048echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
35996d22
AS
15049 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15050echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15052echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15054echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 15055 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19650fd6 15056echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
15057 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15058echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
15059 (
15060 cat <<\_ASBOX
35996d22
AS
15061## ------------------------------------------ ##
15062## Report this to the AC_PACKAGE_NAME lists. ##
15063## ------------------------------------------ ##
19650fd6
AS
15064_ASBOX
15065 ) |
15066 sed "s/^/$as_me: WARNING: /" >&2
15067 ;;
c0d27fcc
MR
15068esac
15069echo "$as_me:$LINENO: checking for locale.h" >&5
15070echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15071if test "${ac_cv_header_locale_h+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073else
15074 ac_cv_header_locale_h=$ac_header_preproc
ba4481b5 15075fi
c0d27fcc 15076echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
98418dba
CW
15077echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15078
c0d27fcc
MR
15079fi
15080
15081
15082
98418dba 15083for ac_func in setlocale
ba4481b5 15084do
503d2be0 15085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 15086echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
15087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15088if eval "test \"\${$as_ac_var+set}\" = set"; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 15090else
503d2be0 15091 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15092/* confdefs.h. */
15093_ACEOF
15094cat confdefs.h >>conftest.$ac_ext
15095cat >>conftest.$ac_ext <<_ACEOF
15096/* end confdefs.h. */
35996d22
AS
15097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15099#define $ac_func innocuous_$ac_func
15100
ba4481b5 15101/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
15102 which can conflict with char $ac_func (); below.
15103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15104 <limits.h> exists even on freestanding compilers. */
35996d22 15105
19650fd6
AS
15106#ifdef __STDC__
15107# include <limits.h>
15108#else
15109# include <assert.h>
15110#endif
35996d22
AS
15111
15112#undef $ac_func
15113
ba4481b5 15114/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
15115#ifdef __cplusplus
15116extern "C"
19650fd6 15117{
503d2be0 15118#endif
ba4481b5 15119/* We use char because int might match the return type of a gcc2
503d2be0
AS
15120 builtin and then its argument prototype would still apply. */
15121char $ac_func ();
ba4481b5
DL
15122/* The GNU C library defines this for functions which it implements
15123 to always fail with ENOSYS. Some functions are actually named
15124 something starting with __ and the normal name is an alias. */
15125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15126choke me
15127#else
19650fd6
AS
15128char (*f) () = $ac_func;
15129#endif
15130#ifdef __cplusplus
15131}
ba4481b5
DL
15132#endif
15133
19650fd6
AS
15134int
15135main ()
15136{
15137return f != $ac_func;
503d2be0
AS
15138 ;
15139 return 0;
15140}
15141_ACEOF
15142rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 15143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 15144 (eval $ac_link) 2>conftest.er1
503d2be0 15145 ac_status=$?
35996d22
AS
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
c0d27fcc 15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 15150 (exit $ac_status); } &&
35996d22
AS
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
c0d27fcc 15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
15163 (exit $ac_status); }; }; then
15164 eval "$as_ac_var=yes"
15165else
15166 echo "$as_me: failed program was:" >&5
19650fd6
AS
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
503d2be0
AS
15169eval "$as_ac_var=no"
15170fi
35996d22
AS
15171rm -f conftest.err conftest.$ac_objext \
15172 conftest$ac_exeext conftest.$ac_ext
503d2be0 15173fi
c0d27fcc 15174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
15175echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15176if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 15177 cat >>confdefs.h <<_ACEOF
503d2be0 15178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 15179_ACEOF
ba4481b5 15180
ba4481b5
DL
15181fi
15182done
15183
c0d27fcc 15184
98418dba
CW
15185# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15186# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15187# Irix 4.0.5F has the header but not the library.
15188if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15189 ac_have_func=yes
15190
c0d27fcc 15191cat >>confdefs.h <<\_ACEOF
98418dba 15192#define SVR4 1
c0d27fcc 15193_ACEOF
98418dba
CW
15194
15195fi
15196
15197if test $ac_have_func = no; then
c0d27fcc
MR
15198 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15199 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
98418dba
CW
15200echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15201if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
503d2be0 15202 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
15203fi
15204echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15205echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
98418dba 15206else
c0d27fcc
MR
15207 # Is the header compilable?
15208echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15209echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15210cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15211/* confdefs.h. */
15212_ACEOF
15213cat confdefs.h >>conftest.$ac_ext
15214cat >>conftest.$ac_ext <<_ACEOF
15215/* end confdefs.h. */
c0d27fcc
MR
15216$ac_includes_default
15217#include <inq_stats/cpustats.h>
15218_ACEOF
15219rm -f conftest.$ac_objext
15220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15221 (eval $ac_compile) 2>conftest.er1
c0d27fcc 15222 ac_status=$?
35996d22
AS
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
c0d27fcc
MR
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } &&
35996d22
AS
15228 { ac_try='test -z "$ac_c_werror_flag"
15229 || test ! -s conftest.err'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_header_compiler=yes
15242else
15243 echo "$as_me: failed program was:" >&5
19650fd6
AS
15244sed 's/^/| /' conftest.$ac_ext >&5
15245
c0d27fcc
MR
15246ac_header_compiler=no
15247fi
35996d22 15248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
15249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15250echo "${ECHO_T}$ac_header_compiler" >&6
15251
15252# Is the header present?
15253echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15254echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15255cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15256/* confdefs.h. */
15257_ACEOF
15258cat confdefs.h >>conftest.$ac_ext
15259cat >>conftest.$ac_ext <<_ACEOF
15260/* end confdefs.h. */
98418dba 15261#include <inq_stats/cpustats.h>
503d2be0 15262_ACEOF
c0d27fcc 15263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
15264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15265 ac_status=$?
6bae0ccf 15266 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
15267 rm -f conftest.er1
15268 cat conftest.err >&5
c0d27fcc 15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
15270 (exit $ac_status); } >/dev/null; then
15271 if test -s conftest.err; then
15272 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 15273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
15274 else
15275 ac_cpp_err=
15276 fi
15277else
15278 ac_cpp_err=yes
15279fi
15280if test -z "$ac_cpp_err"; then
c0d27fcc 15281 ac_header_preproc=yes
503d2be0
AS
15282else
15283 echo "$as_me: failed program was:" >&5
19650fd6
AS
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
c0d27fcc 15286 ac_header_preproc=no
ba4481b5 15287fi
503d2be0 15288rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
15289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15290echo "${ECHO_T}$ac_header_preproc" >&6
15291
15292# So? What about this header?
35996d22
AS
15293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15294 yes:no: )
c0d27fcc
MR
15295 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15296echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
15297 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15298echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15299 ac_header_preproc=yes
19650fd6 15300 ;;
35996d22 15301 no:yes:* )
c0d27fcc
MR
15302 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15303echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
35996d22
AS
15304 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15305echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15307echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15309echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 15310 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19650fd6 15311echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
15312 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15313echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
15314 (
15315 cat <<\_ASBOX
35996d22
AS
15316## ------------------------------------------ ##
15317## Report this to the AC_PACKAGE_NAME lists. ##
15318## ------------------------------------------ ##
19650fd6
AS
15319_ASBOX
15320 ) |
15321 sed "s/^/$as_me: WARNING: /" >&2
15322 ;;
c0d27fcc
MR
15323esac
15324echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15325echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15326if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15328else
15329 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
ba4481b5 15330fi
c0d27fcc 15331echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
98418dba 15332echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
c0d27fcc
MR
15333
15334fi
98418dba
CW
15335if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15336 ac_have_func=yes
ba4481b5 15337
c0d27fcc 15338cat >>confdefs.h <<\_ACEOF
98418dba 15339#define UMAX 1
c0d27fcc 15340_ACEOF
98418dba 15341
c0d27fcc
MR
15342
15343cat >>confdefs.h <<\_ACEOF
98418dba 15344#define UMAX4_3 1
c0d27fcc 15345_ACEOF
98418dba
CW
15346
15347fi
15348
c0d27fcc 15349
98418dba
CW
15350fi
15351
15352if test $ac_have_func = no; then
c0d27fcc
MR
15353 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15354 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
98418dba
CW
15355echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15356if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
503d2be0 15357 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
15358fi
15359echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15360echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
503d2be0 15361else
c0d27fcc
MR
15362 # Is the header compilable?
15363echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15364echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15365cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
15370/* end confdefs.h. */
c0d27fcc
MR
15371$ac_includes_default
15372#include <sys/cpustats.h>
15373_ACEOF
15374rm -f conftest.$ac_objext
15375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15376 (eval $ac_compile) 2>conftest.er1
c0d27fcc 15377 ac_status=$?
35996d22
AS
15378 grep -v '^ *+' conftest.er1 >conftest.err
15379 rm -f conftest.er1
15380 cat conftest.err >&5
c0d27fcc
MR
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
35996d22
AS
15383 { ac_try='test -z "$ac_c_werror_flag"
15384 || test ! -s conftest.err'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; } &&
15390 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 ac_header_compiler=yes
15397else
15398 echo "$as_me: failed program was:" >&5
19650fd6
AS
15399sed 's/^/| /' conftest.$ac_ext >&5
15400
c0d27fcc
MR
15401ac_header_compiler=no
15402fi
35996d22 15403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
15404echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15405echo "${ECHO_T}$ac_header_compiler" >&6
15406
15407# Is the header present?
15408echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15409echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15410cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15411/* confdefs.h. */
15412_ACEOF
15413cat confdefs.h >>conftest.$ac_ext
15414cat >>conftest.$ac_ext <<_ACEOF
15415/* end confdefs.h. */
98418dba
CW
15416#include <sys/cpustats.h>
15417_ACEOF
c0d27fcc 15418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
15419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15420 ac_status=$?
6bae0ccf 15421 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
15422 rm -f conftest.er1
15423 cat conftest.err >&5
c0d27fcc 15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
15425 (exit $ac_status); } >/dev/null; then
15426 if test -s conftest.err; then
15427 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 15428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
15429 else
15430 ac_cpp_err=
15431 fi
15432else
15433 ac_cpp_err=yes
503d2be0 15434fi
98418dba 15435if test -z "$ac_cpp_err"; then
c0d27fcc 15436 ac_header_preproc=yes
98418dba
CW
15437else
15438 echo "$as_me: failed program was:" >&5
19650fd6
AS
15439sed 's/^/| /' conftest.$ac_ext >&5
15440
c0d27fcc 15441 ac_header_preproc=no
98418dba
CW
15442fi
15443rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
15444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15445echo "${ECHO_T}$ac_header_preproc" >&6
15446
15447# So? What about this header?
35996d22
AS
15448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15449 yes:no: )
c0d27fcc
MR
15450 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15451echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
15452 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15453echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15454 ac_header_preproc=yes
19650fd6 15455 ;;
35996d22 15456 no:yes:* )
c0d27fcc
MR
15457 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15458echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
35996d22
AS
15459 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15460echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15462echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15464echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 15465 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19650fd6 15466echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
15467 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15468echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
15469 (
15470 cat <<\_ASBOX
35996d22
AS
15471## ------------------------------------------ ##
15472## Report this to the AC_PACKAGE_NAME lists. ##
15473## ------------------------------------------ ##
19650fd6
AS
15474_ASBOX
15475 ) |
15476 sed "s/^/$as_me: WARNING: /" >&2
15477 ;;
c0d27fcc
MR
15478esac
15479echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15480echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15481if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15483else
15484 ac_cv_header_sys_cpustats_h=$ac_header_preproc
98418dba 15485fi
c0d27fcc 15486echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
98418dba 15487echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
c0d27fcc
MR
15488
15489fi
98418dba 15490if test $ac_cv_header_sys_cpustats_h = yes; then
c0d27fcc 15491 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
98418dba 15492#define UMAX 1
c0d27fcc 15493_ACEOF
ba4481b5 15494
98418dba
CW
15495fi
15496
c0d27fcc 15497
98418dba
CW
15498fi
15499
15500if test $ac_have_func = no; then
15501
15502for ac_header in mach/mach.h
2c9dccc9
PJ
15503do
15504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
15505if eval "test \"\${$as_ac_Header+set}\" = set"; then
15506 echo "$as_me:$LINENO: checking for $ac_header" >&5
2c9dccc9
PJ
15507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15508if eval "test \"\${$as_ac_Header+set}\" = set"; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
15510fi
15511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 15513else
c0d27fcc
MR
15514 # Is the header compilable?
15515echo "$as_me:$LINENO: checking $ac_header usability" >&5
15516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15517cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
c0d27fcc
MR
15523$ac_includes_default
15524#include <$ac_header>
15525_ACEOF
15526rm -f conftest.$ac_objext
15527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15528 (eval $ac_compile) 2>conftest.er1
c0d27fcc 15529 ac_status=$?
35996d22
AS
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
c0d27fcc
MR
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
35996d22
AS
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_header_compiler=yes
15549else
15550 echo "$as_me: failed program was:" >&5
19650fd6
AS
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
c0d27fcc
MR
15553ac_header_compiler=no
15554fi
35996d22 15555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
15556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15557echo "${ECHO_T}$ac_header_compiler" >&6
15558
15559# Is the header present?
15560echo "$as_me:$LINENO: checking $ac_header presence" >&5
15561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15562cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15563/* confdefs.h. */
15564_ACEOF
15565cat confdefs.h >>conftest.$ac_ext
15566cat >>conftest.$ac_ext <<_ACEOF
15567/* end confdefs.h. */
2c9dccc9
PJ
15568#include <$ac_header>
15569_ACEOF
c0d27fcc 15570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2c9dccc9
PJ
15571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15572 ac_status=$?
6bae0ccf 15573 grep -v '^ *+' conftest.er1 >conftest.err
2c9dccc9
PJ
15574 rm -f conftest.er1
15575 cat conftest.err >&5
c0d27fcc 15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2c9dccc9
PJ
15577 (exit $ac_status); } >/dev/null; then
15578 if test -s conftest.err; then
15579 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 15580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2c9dccc9
PJ
15581 else
15582 ac_cpp_err=
15583 fi
15584else
15585 ac_cpp_err=yes
15586fi
15587if test -z "$ac_cpp_err"; then
c0d27fcc
MR
15588 ac_header_preproc=yes
15589else
15590 echo "$as_me: failed program was:" >&5
19650fd6
AS
15591sed 's/^/| /' conftest.$ac_ext >&5
15592
c0d27fcc
MR
15593 ac_header_preproc=no
15594fi
15595rm -f conftest.err conftest.$ac_ext
15596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15597echo "${ECHO_T}$ac_header_preproc" >&6
15598
15599# So? What about this header?
35996d22
AS
15600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15601 yes:no: )
c0d27fcc
MR
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15606 ac_header_preproc=yes
19650fd6 15607 ;;
35996d22 15608 no:yes:* )
c0d27fcc
MR
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 15617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 15618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
15621 (
15622 cat <<\_ASBOX
35996d22
AS
15623## ------------------------------------------ ##
15624## Report this to the AC_PACKAGE_NAME lists. ##
15625## ------------------------------------------ ##
19650fd6
AS
15626_ASBOX
15627 ) |
15628 sed "s/^/$as_me: WARNING: /" >&2
15629 ;;
c0d27fcc
MR
15630esac
15631echo "$as_me:$LINENO: checking for $ac_header" >&5
15632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15633if eval "test \"\${$as_ac_Header+set}\" = set"; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635else
35996d22 15636 eval "$as_ac_Header=\$ac_header_preproc"
c0d27fcc
MR
15637fi
15638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15640
15641fi
15642if test `eval echo '${'$as_ac_Header'}'` = yes; then
15643 cat >>confdefs.h <<_ACEOF
15644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15645_ACEOF
15646
15647fi
15648
15649done
15650
15651fi
15652
15653
15654for ac_header in nlist.h
15655do
15656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15657if eval "test \"\${$as_ac_Header+set}\" = set"; then
15658 echo "$as_me:$LINENO: checking for $ac_header" >&5
15659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15660if eval "test \"\${$as_ac_Header+set}\" = set"; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15662fi
15663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15665else
15666 # Is the header compilable?
15667echo "$as_me:$LINENO: checking $ac_header usability" >&5
15668echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15669cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15670/* confdefs.h. */
15671_ACEOF
15672cat confdefs.h >>conftest.$ac_ext
15673cat >>conftest.$ac_ext <<_ACEOF
15674/* end confdefs.h. */
c0d27fcc
MR
15675$ac_includes_default
15676#include <$ac_header>
15677_ACEOF
15678rm -f conftest.$ac_objext
15679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15680 (eval $ac_compile) 2>conftest.er1
c0d27fcc 15681 ac_status=$?
35996d22
AS
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
c0d27fcc
MR
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
35996d22
AS
15687 { ac_try='test -z "$ac_c_werror_flag"
15688 || test ! -s conftest.err'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_header_compiler=yes
2c9dccc9
PJ
15701else
15702 echo "$as_me: failed program was:" >&5
19650fd6
AS
15703sed 's/^/| /' conftest.$ac_ext >&5
15704
c0d27fcc 15705ac_header_compiler=no
98418dba 15706fi
35996d22 15707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
15708echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15709echo "${ECHO_T}$ac_header_compiler" >&6
98418dba 15710
c0d27fcc
MR
15711# Is the header present?
15712echo "$as_me:$LINENO: checking $ac_header presence" >&5
15713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15714cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15715/* confdefs.h. */
15716_ACEOF
15717cat confdefs.h >>conftest.$ac_ext
15718cat >>conftest.$ac_ext <<_ACEOF
15719/* end confdefs.h. */
503d2be0
AS
15720#include <$ac_header>
15721_ACEOF
c0d27fcc 15722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
15723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15724 ac_status=$?
6bae0ccf 15725 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
15726 rm -f conftest.er1
15727 cat conftest.err >&5
c0d27fcc 15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
15729 (exit $ac_status); } >/dev/null; then
15730 if test -s conftest.err; then
15731 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 15732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
15733 else
15734 ac_cpp_err=
15735 fi
15736else
15737 ac_cpp_err=yes
15738fi
15739if test -z "$ac_cpp_err"; then
c0d27fcc 15740 ac_header_preproc=yes
503d2be0
AS
15741else
15742 echo "$as_me: failed program was:" >&5
19650fd6
AS
15743sed 's/^/| /' conftest.$ac_ext >&5
15744
c0d27fcc 15745 ac_header_preproc=no
b5de8dc0 15746fi
503d2be0 15747rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
15748echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15749echo "${ECHO_T}$ac_header_preproc" >&6
15750
15751# So? What about this header?
35996d22
AS
15752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15753 yes:no: )
c0d27fcc
MR
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15757echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15758 ac_header_preproc=yes
19650fd6 15759 ;;
35996d22 15760 no:yes:* )
c0d27fcc
MR
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15762echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15764echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15766echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15768echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 15769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 15770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15772echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
15773 (
15774 cat <<\_ASBOX
35996d22
AS
15775## ------------------------------------------ ##
15776## Report this to the AC_PACKAGE_NAME lists. ##
15777## ------------------------------------------ ##
19650fd6
AS
15778_ASBOX
15779 ) |
15780 sed "s/^/$as_me: WARNING: /" >&2
15781 ;;
c0d27fcc
MR
15782esac
15783echo "$as_me:$LINENO: checking for $ac_header" >&5
15784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15785if eval "test \"\${$as_ac_Header+set}\" = set"; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787else
35996d22 15788 eval "$as_ac_Header=\$ac_header_preproc"
b5de8dc0 15789fi
c0d27fcc 15790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 15791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
15792
15793fi
98418dba 15794if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 15795 cat >>confdefs.h <<_ACEOF
98418dba 15796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc
MR
15797_ACEOF
15798 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
98418dba
CW
15799echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15800if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
503d2be0 15801 echo $ECHO_N "(cached) $ECHO_C" >&6
b5de8dc0 15802else
503d2be0 15803 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15804/* confdefs.h. */
15805_ACEOF
15806cat confdefs.h >>conftest.$ac_ext
15807cat >>conftest.$ac_ext <<_ACEOF
15808/* end confdefs.h. */
98418dba 15809#include <nlist.h>
b5de8dc0 15810
503d2be0
AS
15811int
15812main ()
15813{
98418dba
CW
15814static struct nlist ac_aggr;
15815if (ac_aggr.n_un.n_name)
15816return 0;
503d2be0
AS
15817 ;
15818 return 0;
15819}
15820_ACEOF
98418dba 15821rm -f conftest.$ac_objext
c0d27fcc 15822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15823 (eval $ac_compile) 2>conftest.er1
503d2be0 15824 ac_status=$?
35996d22
AS
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
c0d27fcc 15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 15829 (exit $ac_status); } &&
35996d22
AS
15830 { ac_try='test -z "$ac_c_werror_flag"
15831 || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
c0d27fcc 15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 15842 (exit $ac_status); }; }; then
98418dba 15843 ac_cv_member_struct_nlist_n_un_n_name=yes
503d2be0
AS
15844else
15845 echo "$as_me: failed program was:" >&5
19650fd6
AS
15846sed 's/^/| /' conftest.$ac_ext >&5
15847
6bae0ccf 15848cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15849/* confdefs.h. */
15850_ACEOF
15851cat confdefs.h >>conftest.$ac_ext
15852cat >>conftest.$ac_ext <<_ACEOF
15853/* end confdefs.h. */
6bae0ccf
DL
15854#include <nlist.h>
15855
15856int
15857main ()
15858{
15859static struct nlist ac_aggr;
15860if (sizeof ac_aggr.n_un.n_name)
15861return 0;
15862 ;
15863 return 0;
15864}
15865_ACEOF
15866rm -f conftest.$ac_objext
15867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15868 (eval $ac_compile) 2>conftest.er1
6bae0ccf 15869 ac_status=$?
35996d22
AS
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
6bae0ccf
DL
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
35996d22
AS
15875 { ac_try='test -z "$ac_c_werror_flag"
15876 || test ! -s conftest.err'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15879 ac_status=$?
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; } &&
15882 { ac_try='test -s conftest.$ac_objext'
6bae0ccf
DL
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; }; then
15888 ac_cv_member_struct_nlist_n_un_n_name=yes
15889else
15890 echo "$as_me: failed program was:" >&5
19650fd6
AS
15891sed 's/^/| /' conftest.$ac_ext >&5
15892
98418dba 15893ac_cv_member_struct_nlist_n_un_n_name=no
503d2be0 15894fi
35996d22 15895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b5de8dc0 15896fi
35996d22 15897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bae0ccf 15898fi
c0d27fcc 15899echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
98418dba
CW
15900echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15901if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
b5de8dc0 15902
c0d27fcc 15903cat >>confdefs.h <<_ACEOF
98418dba 15904#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
c0d27fcc 15905_ACEOF
b5de8dc0 15906
c0d27fcc
MR
15907
15908cat >>confdefs.h <<\_ACEOF
98418dba 15909#define NLIST_NAME_UNION 1
c0d27fcc 15910_ACEOF
b5de8dc0 15911
98418dba 15912fi
b5de8dc0 15913
c0d27fcc 15914
98418dba 15915fi
c0d27fcc 15916
98418dba 15917done
b5de8dc0 15918
98418dba
CW
15919fi
15920done
b5de8dc0 15921
c0d27fcc 15922
98418dba 15923# Some definitions of getloadavg require that the program be installed setgid.
c0d27fcc 15924echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
98418dba
CW
15925echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15926if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928else
15929 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15930/* confdefs.h. */
15931_ACEOF
15932cat confdefs.h >>conftest.$ac_ext
15933cat >>conftest.$ac_ext <<_ACEOF
15934/* end confdefs.h. */
6bae0ccf 15935#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
98418dba
CW
15936#ifdef LDAV_PRIVILEGED
15937Yowza Am I SETGID yet
15938#endif
15939_ACEOF
15940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 15941 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
98418dba
CW
15942 ac_cv_func_getloadavg_setgid=yes
15943else
15944 ac_cv_func_getloadavg_setgid=no
15945fi
15946rm -f conftest*
b5de8dc0 15947
98418dba 15948fi
c0d27fcc 15949echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
98418dba
CW
15950echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15951if test $ac_cv_func_getloadavg_setgid = yes; then
15952 NEED_SETGID=true
b5de8dc0 15953
c0d27fcc 15954cat >>confdefs.h <<\_ACEOF
98418dba 15955#define GETLOADAVG_PRIVILEGED 1
c0d27fcc 15956_ACEOF
98418dba 15957
b5de8dc0 15958else
98418dba 15959 NEED_SETGID=false
b5de8dc0 15960fi
98418dba
CW
15961
15962if test $ac_cv_func_getloadavg_setgid = yes; then
c0d27fcc 15963 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
98418dba
CW
15964echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15965if test "${ac_cv_group_kmem+set}" = set; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15967else
15968 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15969 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15970 # If we got an error (system does not support symlinks), try without -L.
15971 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15972 ac_cv_group_kmem=`echo $ac_ls_output \
35996d22 15973 | sed -ne 's/[ ][ ]*/ /g;
98418dba
CW
15974 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15975 / /s/.* //;p;'`
15976
b5de8dc0 15977fi
c0d27fcc 15978echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
98418dba
CW
15979echo "${ECHO_T}$ac_cv_group_kmem" >&6
15980 KMEM_GROUP=$ac_cv_group_kmem
b5de8dc0 15981fi
98418dba
CW
15982if test "x$ac_save_LIBS" = x; then
15983 GETLOADAVG_LIBS=$LIBS
15984else
15985 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
b5de8dc0 15986fi
98418dba 15987LIBS=$ac_save_LIBS
b5de8dc0 15988
c0d27fcc
MR
15989
15990
15991echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
b936fae4
AS
15992echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15993if test "${ac_cv_sys_largefile_source+set}" = set; then
503d2be0 15994 echo $ECHO_N "(cached) $ECHO_C" >&6
4c343001 15995else
b936fae4
AS
15996 while :; do
15997 ac_cv_sys_largefile_source=no
503d2be0 15998 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15999/* confdefs.h. */
16000_ACEOF
16001cat confdefs.h >>conftest.$ac_ext
16002cat >>conftest.$ac_ext <<_ACEOF
16003/* end confdefs.h. */
b936fae4 16004#include <stdio.h>
503d2be0
AS
16005int
16006main ()
16007{
b936fae4
AS
16008return !fseeko;
16009 ;
16010 return 0;
16011}
16012_ACEOF
16013rm -f conftest.$ac_objext
c0d27fcc 16014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 16015 (eval $ac_compile) 2>conftest.er1
b936fae4 16016 ac_status=$?
35996d22
AS
16017 grep -v '^ *+' conftest.er1 >conftest.err
16018 rm -f conftest.er1
16019 cat conftest.err >&5
c0d27fcc 16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b936fae4 16021 (exit $ac_status); } &&
35996d22
AS
16022 { ac_try='test -z "$ac_c_werror_flag"
16023 || test ! -s conftest.err'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
b936fae4
AS
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
c0d27fcc 16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b936fae4
AS
16034 (exit $ac_status); }; }; then
16035 break
16036else
16037 echo "$as_me: failed program was:" >&5
19650fd6
AS
16038sed 's/^/| /' conftest.$ac_ext >&5
16039
b936fae4 16040fi
35996d22 16041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b936fae4 16042 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16043/* confdefs.h. */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */
b936fae4
AS
16048#define _LARGEFILE_SOURCE 1
16049#include <stdio.h>
b936fae4
AS
16050int
16051main ()
16052{
16053return !fseeko;
16054 ;
16055 return 0;
16056}
16057_ACEOF
16058rm -f conftest.$ac_objext
c0d27fcc 16059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 16060 (eval $ac_compile) 2>conftest.er1
b936fae4 16061 ac_status=$?
35996d22
AS
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
c0d27fcc 16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b936fae4 16066 (exit $ac_status); } &&
35996d22
AS
16067 { ac_try='test -z "$ac_c_werror_flag"
16068 || test ! -s conftest.err'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
b936fae4
AS
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
c0d27fcc 16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b936fae4
AS
16079 (exit $ac_status); }; }; then
16080 ac_cv_sys_largefile_source=1; break
16081else
16082 echo "$as_me: failed program was:" >&5
19650fd6
AS
16083sed 's/^/| /' conftest.$ac_ext >&5
16084
b936fae4 16085fi
35996d22 16086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b936fae4
AS
16087 break
16088done
16089fi
c0d27fcc 16090echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
b936fae4
AS
16091echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16092if test "$ac_cv_sys_largefile_source" != no; then
16093
c0d27fcc 16094cat >>confdefs.h <<_ACEOF
b936fae4 16095#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
c0d27fcc 16096_ACEOF
b936fae4
AS
16097
16098fi
16099rm -f conftest*
4c343001 16100
b936fae4
AS
16101# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16102# in glibc 2.1.3, but that breaks too many other things.
16103# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
c0d27fcc 16104echo "$as_me:$LINENO: checking for fseeko" >&5
b936fae4
AS
16105echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16106if test "${ac_cv_func_fseeko+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108else
16109 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
b936fae4 16115#include <stdio.h>
b936fae4
AS
16116int
16117main ()
16118{
16119return fseeko && fseeko (stdin, 0, 0);
503d2be0
AS
16120 ;
16121 return 0;
16122}
16123_ACEOF
16124rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16126 (eval $ac_link) 2>conftest.er1
503d2be0 16127 ac_status=$?
35996d22
AS
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
c0d27fcc 16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 16132 (exit $ac_status); } &&
35996d22
AS
16133 { ac_try='test -z "$ac_c_werror_flag"
16134 || test ! -s conftest.err'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
c0d27fcc 16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 16145 (exit $ac_status); }; }; then
b936fae4 16146 ac_cv_func_fseeko=yes
503d2be0
AS
16147else
16148 echo "$as_me: failed program was:" >&5
19650fd6
AS
16149sed 's/^/| /' conftest.$ac_ext >&5
16150
b936fae4 16151ac_cv_func_fseeko=no
503d2be0 16152fi
35996d22
AS
16153rm -f conftest.err conftest.$ac_objext \
16154 conftest$ac_exeext conftest.$ac_ext
503d2be0 16155fi
c0d27fcc 16156echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
b936fae4
AS
16157echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16158if test $ac_cv_func_fseeko = yes; then
16159
c0d27fcc 16160cat >>confdefs.h <<\_ACEOF
b936fae4 16161#define HAVE_FSEEKO 1
c0d27fcc 16162_ACEOF
b936fae4 16163
4c343001
DL
16164fi
16165
c0d27fcc 16166
cd958eb3
MB
16167echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16168echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16169if test "${ac_cv_func_getpgrp_void+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16171else
16172 # Use it with a single arg.
16173cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
cd958eb3
MB
16179$ac_includes_default
16180int
16181main ()
16182{
16183getpgrp (0);
16184 ;
16185 return 0;
16186}
16187_ACEOF
16188rm -f conftest.$ac_objext
16189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 16190 (eval $ac_compile) 2>conftest.er1
cd958eb3 16191 ac_status=$?
35996d22
AS
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
cd958eb3
MB
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
35996d22
AS
16197 { ac_try='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
cd958eb3
MB
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_cv_func_getpgrp_void=no
16211else
16212 echo "$as_me: failed program was:" >&5
19650fd6
AS
16213sed 's/^/| /' conftest.$ac_ext >&5
16214
cd958eb3
MB
16215ac_cv_func_getpgrp_void=yes
16216fi
35996d22 16217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cd958eb3
MB
16218
16219fi
16220echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16221echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16222if test $ac_cv_func_getpgrp_void = yes; then
16223
16224cat >>confdefs.h <<\_ACEOF
16225#define GETPGRP_VOID 1
16226_ACEOF
16227
16228fi
16229
16230
973a76b1
DL
16231
16232for ac_func in strftime
16233do
16234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16235echo "$as_me:$LINENO: checking for $ac_func" >&5
16236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16237if eval "test \"\${$as_ac_var+set}\" = set"; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239else
16240 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16241/* confdefs.h. */
16242_ACEOF
16243cat confdefs.h >>conftest.$ac_ext
16244cat >>conftest.$ac_ext <<_ACEOF
16245/* end confdefs.h. */
35996d22
AS
16246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16248#define $ac_func innocuous_$ac_func
16249
973a76b1 16250/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
16251 which can conflict with char $ac_func (); below.
16252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16253 <limits.h> exists even on freestanding compilers. */
35996d22 16254
19650fd6
AS
16255#ifdef __STDC__
16256# include <limits.h>
16257#else
16258# include <assert.h>
16259#endif
35996d22
AS
16260
16261#undef $ac_func
16262
973a76b1
DL
16263/* Override any gcc2 internal prototype to avoid an error. */
16264#ifdef __cplusplus
16265extern "C"
19650fd6 16266{
973a76b1
DL
16267#endif
16268/* We use char because int might match the return type of a gcc2
16269 builtin and then its argument prototype would still apply. */
16270char $ac_func ();
16271/* The GNU C library defines this for functions which it implements
16272 to always fail with ENOSYS. Some functions are actually named
16273 something starting with __ and the normal name is an alias. */
16274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16275choke me
16276#else
19650fd6
AS
16277char (*f) () = $ac_func;
16278#endif
16279#ifdef __cplusplus
16280}
973a76b1
DL
16281#endif
16282
19650fd6
AS
16283int
16284main ()
16285{
16286return f != $ac_func;
973a76b1
DL
16287 ;
16288 return 0;
16289}
16290_ACEOF
16291rm -f conftest.$ac_objext conftest$ac_exeext
16292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16293 (eval $ac_link) 2>conftest.er1
973a76b1 16294 ac_status=$?
35996d22
AS
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
973a76b1
DL
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
35996d22
AS
16300 { ac_try='test -z "$ac_c_werror_flag"
16301 || test ! -s conftest.err'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try='test -s conftest$ac_exeext'
973a76b1
DL
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 eval "$as_ac_var=yes"
16314else
16315 echo "$as_me: failed program was:" >&5
19650fd6
AS
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
973a76b1
DL
16318eval "$as_ac_var=no"
16319fi
35996d22
AS
16320rm -f conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
973a76b1
DL
16322fi
16323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16325if test `eval echo '${'$as_ac_var'}'` = yes; then
16326 cat >>confdefs.h <<_ACEOF
16327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16328_ACEOF
16329
16330else
16331 # strftime is in -lintl on SCO UNIX.
16332echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16333echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16334if test "${ac_cv_lib_intl_strftime+set}" = set; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16336else
16337 ac_check_lib_save_LIBS=$LIBS
16338LIBS="-lintl $LIBS"
16339cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16340/* confdefs.h. */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h. */
973a76b1
DL
16345
16346/* Override any gcc2 internal prototype to avoid an error. */
16347#ifdef __cplusplus
16348extern "C"
16349#endif
16350/* We use char because int might match the return type of a gcc2
16351 builtin and then its argument prototype would still apply. */
16352char strftime ();
16353int
16354main ()
16355{
16356strftime ();
16357 ;
16358 return 0;
16359}
16360_ACEOF
16361rm -f conftest.$ac_objext conftest$ac_exeext
16362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16363 (eval $ac_link) 2>conftest.er1
973a76b1 16364 ac_status=$?
35996d22
AS
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
973a76b1
DL
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
35996d22
AS
16370 { ac_try='test -z "$ac_c_werror_flag"
16371 || test ! -s conftest.err'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } &&
16377 { ac_try='test -s conftest$ac_exeext'
973a76b1
DL
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 ac_cv_lib_intl_strftime=yes
16384else
16385 echo "$as_me: failed program was:" >&5
19650fd6
AS
16386sed 's/^/| /' conftest.$ac_ext >&5
16387
973a76b1
DL
16388ac_cv_lib_intl_strftime=no
16389fi
35996d22
AS
16390rm -f conftest.err conftest.$ac_objext \
16391 conftest$ac_exeext conftest.$ac_ext
973a76b1
DL
16392LIBS=$ac_check_lib_save_LIBS
16393fi
16394echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16395echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16396if test $ac_cv_lib_intl_strftime = yes; then
16397 cat >>confdefs.h <<\_ACEOF
16398#define HAVE_STRFTIME 1
16399_ACEOF
16400
16401LIBS="-lintl $LIBS"
16402fi
16403
16404fi
16405done
16406
16407
b936fae4
AS
16408# UNIX98 PTYs.
16409
16410for ac_func in grantpt
503d2be0
AS
16411do
16412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 16413echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
16414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16415if eval "test \"\${$as_ac_var+set}\" = set"; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
4c343001 16417else
503d2be0 16418 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16419/* confdefs.h. */
16420_ACEOF
16421cat confdefs.h >>conftest.$ac_ext
16422cat >>conftest.$ac_ext <<_ACEOF
16423/* end confdefs.h. */
35996d22
AS
16424/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16426#define $ac_func innocuous_$ac_func
16427
503d2be0 16428/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
16429 which can conflict with char $ac_func (); below.
16430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16431 <limits.h> exists even on freestanding compilers. */
35996d22 16432
19650fd6
AS
16433#ifdef __STDC__
16434# include <limits.h>
16435#else
16436# include <assert.h>
16437#endif
35996d22
AS
16438
16439#undef $ac_func
16440
4c343001 16441/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
16442#ifdef __cplusplus
16443extern "C"
19650fd6 16444{
503d2be0 16445#endif
4c343001 16446/* We use char because int might match the return type of a gcc2
503d2be0
AS
16447 builtin and then its argument prototype would still apply. */
16448char $ac_func ();
503d2be0
AS
16449/* The GNU C library defines this for functions which it implements
16450 to always fail with ENOSYS. Some functions are actually named
16451 something starting with __ and the normal name is an alias. */
16452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16453choke me
16454#else
19650fd6
AS
16455char (*f) () = $ac_func;
16456#endif
16457#ifdef __cplusplus
16458}
503d2be0 16459#endif
4c343001 16460
19650fd6
AS
16461int
16462main ()
16463{
16464return f != $ac_func;
503d2be0
AS
16465 ;
16466 return 0;
16467}
16468_ACEOF
16469rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16471 (eval $ac_link) 2>conftest.er1
503d2be0 16472 ac_status=$?
35996d22
AS
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
c0d27fcc 16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 16477 (exit $ac_status); } &&
35996d22
AS
16478 { ac_try='test -z "$ac_c_werror_flag"
16479 || test ! -s conftest.err'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; } &&
16485 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
c0d27fcc 16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
16490 (exit $ac_status); }; }; then
16491 eval "$as_ac_var=yes"
16492else
16493 echo "$as_me: failed program was:" >&5
19650fd6
AS
16494sed 's/^/| /' conftest.$ac_ext >&5
16495
503d2be0
AS
16496eval "$as_ac_var=no"
16497fi
35996d22
AS
16498rm -f conftest.err conftest.$ac_objext \
16499 conftest$ac_exeext conftest.$ac_ext
503d2be0 16500fi
c0d27fcc 16501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
16502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16503if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 16504 cat >>confdefs.h <<_ACEOF
503d2be0 16505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 16506_ACEOF
4c343001
DL
16507
16508fi
503d2be0
AS
16509done
16510
c0d27fcc 16511
b936fae4 16512# PTY-related GNU extensions.
4c343001 16513
b936fae4
AS
16514for ac_func in getpt
16515do
16516as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 16517echo "$as_me:$LINENO: checking for $ac_func" >&5
b936fae4
AS
16518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16519if eval "test \"\${$as_ac_var+set}\" = set"; then
503d2be0 16520 echo $ECHO_N "(cached) $ECHO_C" >&6
4c343001 16521else
b936fae4 16522 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
35996d22
AS
16528/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16530#define $ac_func innocuous_$ac_func
16531
087121cc 16532/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
16533 which can conflict with char $ac_func (); below.
16534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16535 <limits.h> exists even on freestanding compilers. */
35996d22 16536
19650fd6
AS
16537#ifdef __STDC__
16538# include <limits.h>
16539#else
16540# include <assert.h>
16541#endif
35996d22
AS
16542
16543#undef $ac_func
16544
087121cc 16545/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
16546#ifdef __cplusplus
16547extern "C"
19650fd6 16548{
503d2be0 16549#endif
087121cc 16550/* We use char because int might match the return type of a gcc2
503d2be0
AS
16551 builtin and then its argument prototype would still apply. */
16552char $ac_func ();
087121cc
GM
16553/* The GNU C library defines this for functions which it implements
16554 to always fail with ENOSYS. Some functions are actually named
16555 something starting with __ and the normal name is an alias. */
16556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16557choke me
16558#else
19650fd6
AS
16559char (*f) () = $ac_func;
16560#endif
16561#ifdef __cplusplus
16562}
087121cc
GM
16563#endif
16564
19650fd6
AS
16565int
16566main ()
16567{
16568return f != $ac_func;
503d2be0
AS
16569 ;
16570 return 0;
16571}
16572_ACEOF
16573rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16575 (eval $ac_link) 2>conftest.er1
503d2be0 16576 ac_status=$?
35996d22
AS
16577 grep -v '^ *+' conftest.er1 >conftest.err
16578 rm -f conftest.er1
16579 cat conftest.err >&5
c0d27fcc 16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 16581 (exit $ac_status); } &&
35996d22
AS
16582 { ac_try='test -z "$ac_c_werror_flag"
16583 || test ! -s conftest.err'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } &&
16589 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
c0d27fcc 16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
16594 (exit $ac_status); }; }; then
16595 eval "$as_ac_var=yes"
16596else
16597 echo "$as_me: failed program was:" >&5
19650fd6
AS
16598sed 's/^/| /' conftest.$ac_ext >&5
16599
503d2be0
AS
16600eval "$as_ac_var=no"
16601fi
35996d22
AS
16602rm -f conftest.err conftest.$ac_objext \
16603 conftest$ac_exeext conftest.$ac_ext
503d2be0 16604fi
c0d27fcc 16605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
16606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16607if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 16608 cat >>confdefs.h <<_ACEOF
503d2be0 16609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 16610_ACEOF
087121cc 16611
087121cc
GM
16612fi
16613done
16614
c0d27fcc 16615
ba4481b5
DL
16616# Check this now, so that we will NOT find the above functions in ncurses.
16617# That is because we have not set up to link ncurses in lib-src.
16618# It's better to believe a function is not available
16619# than to expect to find it in ncurses.
503d2be0 16620
c0d27fcc 16621echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
503d2be0
AS
16622echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16623if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 16625else
503d2be0 16626 ac_check_lib_save_LIBS=$LIBS
ba4481b5 16627LIBS="-lncurses $LIBS"
503d2be0 16628cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16629/* confdefs.h. */
16630_ACEOF
16631cat confdefs.h >>conftest.$ac_ext
16632cat >>conftest.$ac_ext <<_ACEOF
16633/* end confdefs.h. */
503d2be0 16634
ba4481b5 16635/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
16636#ifdef __cplusplus
16637extern "C"
16638#endif
ba4481b5 16639/* We use char because int might match the return type of a gcc2
503d2be0
AS
16640 builtin and then its argument prototype would still apply. */
16641char tparm ();
16642int
16643main ()
16644{
16645tparm ();
16646 ;
16647 return 0;
16648}
16649_ACEOF
16650rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16652 (eval $ac_link) 2>conftest.er1
503d2be0 16653 ac_status=$?
35996d22
AS
16654 grep -v '^ *+' conftest.er1 >conftest.err
16655 rm -f conftest.er1
16656 cat conftest.err >&5
c0d27fcc 16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 16658 (exit $ac_status); } &&
35996d22
AS
16659 { ac_try='test -z "$ac_c_werror_flag"
16660 || test ! -s conftest.err'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
c0d27fcc 16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
16671 (exit $ac_status); }; }; then
16672 ac_cv_lib_ncurses_tparm=yes
16673else
16674 echo "$as_me: failed program was:" >&5
19650fd6
AS
16675sed 's/^/| /' conftest.$ac_ext >&5
16676
503d2be0
AS
16677ac_cv_lib_ncurses_tparm=no
16678fi
35996d22
AS
16679rm -f conftest.err conftest.$ac_objext \
16680 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
16681LIBS=$ac_check_lib_save_LIBS
16682fi
c0d27fcc 16683echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
503d2be0
AS
16684echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16685if test $ac_cv_lib_ncurses_tparm = yes; then
c0d27fcc 16686 cat >>confdefs.h <<_ACEOF
503d2be0 16687#define HAVE_LIBNCURSES 1
c0d27fcc 16688_ACEOF
ba4481b5
DL
16689
16690 LIBS="-lncurses $LIBS"
16691
ba4481b5
DL
16692fi
16693
c0d27fcc 16694
84e70f78
KR
16695# Do we need the Hesiod library to provide the support routines?
16696if test "$with_hesiod" = yes ; then
16697 # Don't set $LIBS here -- see comments above.
16698 resolv=no
c0d27fcc 16699 echo "$as_me:$LINENO: checking for res_send" >&5
84e70f78
KR
16700echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16701if test "${ac_cv_func_res_send+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16703else
16704 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16705/* confdefs.h. */
16706_ACEOF
16707cat confdefs.h >>conftest.$ac_ext
16708cat >>conftest.$ac_ext <<_ACEOF
16709/* end confdefs.h. */
35996d22
AS
16710/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16712#define res_send innocuous_res_send
16713
84e70f78 16714/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
16715 which can conflict with char res_send (); below.
16716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16717 <limits.h> exists even on freestanding compilers. */
35996d22 16718
19650fd6
AS
16719#ifdef __STDC__
16720# include <limits.h>
16721#else
16722# include <assert.h>
16723#endif
35996d22
AS
16724
16725#undef res_send
16726
84e70f78
KR
16727/* Override any gcc2 internal prototype to avoid an error. */
16728#ifdef __cplusplus
16729extern "C"
19650fd6 16730{
84e70f78
KR
16731#endif
16732/* We use char because int might match the return type of a gcc2
16733 builtin and then its argument prototype would still apply. */
16734char res_send ();
84e70f78
KR
16735/* The GNU C library defines this for functions which it implements
16736 to always fail with ENOSYS. Some functions are actually named
16737 something starting with __ and the normal name is an alias. */
16738#if defined (__stub_res_send) || defined (__stub___res_send)
16739choke me
16740#else
19650fd6
AS
16741char (*f) () = res_send;
16742#endif
16743#ifdef __cplusplus
16744}
cd958eb3
MB
16745#endif
16746
19650fd6
AS
16747int
16748main ()
16749{
16750return f != res_send;
84e70f78
KR
16751 ;
16752 return 0;
16753}
16754_ACEOF
16755rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16757 (eval $ac_link) 2>conftest.er1
84e70f78 16758 ac_status=$?
35996d22
AS
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
c0d27fcc 16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 16763 (exit $ac_status); } &&
35996d22
AS
16764 { ac_try='test -z "$ac_c_werror_flag"
16765 || test ! -s conftest.err'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
c0d27fcc 16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
16776 (exit $ac_status); }; }; then
16777 ac_cv_func_res_send=yes
16778else
16779 echo "$as_me: failed program was:" >&5
19650fd6
AS
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
84e70f78
KR
16782ac_cv_func_res_send=no
16783fi
35996d22
AS
16784rm -f conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext conftest.$ac_ext
84e70f78 16786fi
c0d27fcc 16787echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
84e70f78
KR
16788echo "${ECHO_T}$ac_cv_func_res_send" >&6
16789if test $ac_cv_func_res_send = yes; then
16790 :
16791else
c0d27fcc 16792 echo "$as_me:$LINENO: checking for __res_send" >&5
84e70f78
KR
16793echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16794if test "${ac_cv_func___res_send+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16796else
16797 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16798/* confdefs.h. */
16799_ACEOF
16800cat confdefs.h >>conftest.$ac_ext
16801cat >>conftest.$ac_ext <<_ACEOF
16802/* end confdefs.h. */
35996d22
AS
16803/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16805#define __res_send innocuous___res_send
16806
84e70f78 16807/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
16808 which can conflict with char __res_send (); below.
16809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16810 <limits.h> exists even on freestanding compilers. */
35996d22 16811
19650fd6
AS
16812#ifdef __STDC__
16813# include <limits.h>
16814#else
16815# include <assert.h>
16816#endif
35996d22
AS
16817
16818#undef __res_send
16819
84e70f78
KR
16820/* Override any gcc2 internal prototype to avoid an error. */
16821#ifdef __cplusplus
16822extern "C"
19650fd6 16823{
84e70f78
KR
16824#endif
16825/* We use char because int might match the return type of a gcc2
16826 builtin and then its argument prototype would still apply. */
16827char __res_send ();
84e70f78
KR
16828/* The GNU C library defines this for functions which it implements
16829 to always fail with ENOSYS. Some functions are actually named
16830 something starting with __ and the normal name is an alias. */
16831#if defined (__stub___res_send) || defined (__stub_____res_send)
16832choke me
16833#else
19650fd6
AS
16834char (*f) () = __res_send;
16835#endif
16836#ifdef __cplusplus
16837}
84e70f78
KR
16838#endif
16839
19650fd6
AS
16840int
16841main ()
16842{
16843return f != __res_send;
84e70f78
KR
16844 ;
16845 return 0;
16846}
16847_ACEOF
16848rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16850 (eval $ac_link) 2>conftest.er1
84e70f78 16851 ac_status=$?
35996d22
AS
16852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
c0d27fcc 16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 16856 (exit $ac_status); } &&
35996d22
AS
16857 { ac_try='test -z "$ac_c_werror_flag"
16858 || test ! -s conftest.err'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
c0d27fcc 16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
16869 (exit $ac_status); }; }; then
16870 ac_cv_func___res_send=yes
16871else
16872 echo "$as_me: failed program was:" >&5
19650fd6
AS
16873sed 's/^/| /' conftest.$ac_ext >&5
16874
84e70f78
KR
16875ac_cv_func___res_send=no
16876fi
35996d22
AS
16877rm -f conftest.err conftest.$ac_objext \
16878 conftest$ac_exeext conftest.$ac_ext
84e70f78 16879fi
c0d27fcc 16880echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
84e70f78
KR
16881echo "${ECHO_T}$ac_cv_func___res_send" >&6
16882if test $ac_cv_func___res_send = yes; then
16883 :
16884else
c0d27fcc 16885 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
84e70f78
KR
16886echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16887if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16889else
16890 ac_check_lib_save_LIBS=$LIBS
16891LIBS="-lresolv $LIBS"
16892cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16893/* confdefs.h. */
16894_ACEOF
16895cat confdefs.h >>conftest.$ac_ext
16896cat >>conftest.$ac_ext <<_ACEOF
16897/* end confdefs.h. */
84e70f78
KR
16898
16899/* Override any gcc2 internal prototype to avoid an error. */
16900#ifdef __cplusplus
16901extern "C"
16902#endif
16903/* We use char because int might match the return type of a gcc2
16904 builtin and then its argument prototype would still apply. */
16905char res_send ();
16906int
16907main ()
16908{
16909res_send ();
16910 ;
16911 return 0;
16912}
16913_ACEOF
16914rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16916 (eval $ac_link) 2>conftest.er1
84e70f78 16917 ac_status=$?
35996d22
AS
16918 grep -v '^ *+' conftest.er1 >conftest.err
16919 rm -f conftest.er1
16920 cat conftest.err >&5
c0d27fcc 16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 16922 (exit $ac_status); } &&
35996d22
AS
16923 { ac_try='test -z "$ac_c_werror_flag"
16924 || test ! -s conftest.err'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; } &&
16930 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
16932 (eval $ac_try) 2>&5
16933 ac_status=$?
c0d27fcc 16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
16935 (exit $ac_status); }; }; then
16936 ac_cv_lib_resolv_res_send=yes
16937else
16938 echo "$as_me: failed program was:" >&5
19650fd6
AS
16939sed 's/^/| /' conftest.$ac_ext >&5
16940
84e70f78
KR
16941ac_cv_lib_resolv_res_send=no
16942fi
35996d22
AS
16943rm -f conftest.err conftest.$ac_objext \
16944 conftest$ac_exeext conftest.$ac_ext
84e70f78
KR
16945LIBS=$ac_check_lib_save_LIBS
16946fi
c0d27fcc 16947echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
84e70f78
KR
16948echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16949if test $ac_cv_lib_resolv_res_send = yes; then
16950 resolv=yes
16951else
c0d27fcc 16952 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
84e70f78
KR
16953echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16954if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956else
16957 ac_check_lib_save_LIBS=$LIBS
16958LIBS="-lresolv $LIBS"
16959cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16960/* confdefs.h. */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h. */
84e70f78
KR
16965
16966/* Override any gcc2 internal prototype to avoid an error. */
16967#ifdef __cplusplus
16968extern "C"
16969#endif
16970/* We use char because int might match the return type of a gcc2
16971 builtin and then its argument prototype would still apply. */
16972char __res_send ();
16973int
16974main ()
16975{
16976__res_send ();
16977 ;
16978 return 0;
16979}
16980_ACEOF
16981rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16983 (eval $ac_link) 2>conftest.er1
84e70f78 16984 ac_status=$?
35996d22
AS
16985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
c0d27fcc 16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 16989 (exit $ac_status); } &&
35996d22
AS
16990 { ac_try='test -z "$ac_c_werror_flag"
16991 || test ! -s conftest.err'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; } &&
16997 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
c0d27fcc 17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
17002 (exit $ac_status); }; }; then
17003 ac_cv_lib_resolv___res_send=yes
17004else
17005 echo "$as_me: failed program was:" >&5
19650fd6
AS
17006sed 's/^/| /' conftest.$ac_ext >&5
17007
84e70f78
KR
17008ac_cv_lib_resolv___res_send=no
17009fi
35996d22
AS
17010rm -f conftest.err conftest.$ac_objext \
17011 conftest$ac_exeext conftest.$ac_ext
84e70f78
KR
17012LIBS=$ac_check_lib_save_LIBS
17013fi
c0d27fcc 17014echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
84e70f78
KR
17015echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17016if test $ac_cv_lib_resolv___res_send = yes; then
17017 resolv=yes
17018fi
17019
17020fi
17021
17022fi
17023
17024fi
17025
17026 if test "$resolv" = yes ; then
17027 RESOLVLIB=-lresolv
b936fae4 17028
c0d27fcc 17029cat >>confdefs.h <<\_ACEOF
84e70f78 17030#define HAVE_LIBRESOLV 1
c0d27fcc 17031_ACEOF
84e70f78
KR
17032
17033 else
17034 RESOLVLIB=
17035 fi
c0d27fcc 17036 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
84e70f78
KR
17037echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17038if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040else
17041 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17042/* confdefs.h. */
17043_ACEOF
17044cat confdefs.h >>conftest.$ac_ext
17045cat >>conftest.$ac_ext <<_ACEOF
17046/* end confdefs.h. */
35996d22
AS
17047/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17049#define hes_getmailhost innocuous_hes_getmailhost
17050
84e70f78 17051/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
17052 which can conflict with char hes_getmailhost (); below.
17053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17054 <limits.h> exists even on freestanding compilers. */
35996d22 17055
19650fd6
AS
17056#ifdef __STDC__
17057# include <limits.h>
17058#else
17059# include <assert.h>
17060#endif
35996d22
AS
17061
17062#undef hes_getmailhost
17063
84e70f78
KR
17064/* Override any gcc2 internal prototype to avoid an error. */
17065#ifdef __cplusplus
17066extern "C"
19650fd6 17067{
84e70f78
KR
17068#endif
17069/* We use char because int might match the return type of a gcc2
17070 builtin and then its argument prototype would still apply. */
17071char hes_getmailhost ();
84e70f78
KR
17072/* The GNU C library defines this for functions which it implements
17073 to always fail with ENOSYS. Some functions are actually named
17074 something starting with __ and the normal name is an alias. */
17075#if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17076choke me
17077#else
19650fd6
AS
17078char (*f) () = hes_getmailhost;
17079#endif
17080#ifdef __cplusplus
17081}
cd958eb3
MB
17082#endif
17083
19650fd6
AS
17084int
17085main ()
17086{
17087return f != hes_getmailhost;
84e70f78
KR
17088 ;
17089 return 0;
17090}
17091_ACEOF
17092rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17094 (eval $ac_link) 2>conftest.er1
84e70f78 17095 ac_status=$?
35996d22
AS
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
c0d27fcc 17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 17100 (exit $ac_status); } &&
35996d22
AS
17101 { ac_try='test -z "$ac_c_werror_flag"
17102 || test ! -s conftest.err'
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
c0d27fcc 17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
17113 (exit $ac_status); }; }; then
17114 ac_cv_func_hes_getmailhost=yes
17115else
17116 echo "$as_me: failed program was:" >&5
19650fd6
AS
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
84e70f78
KR
17119ac_cv_func_hes_getmailhost=no
17120fi
35996d22
AS
17121rm -f conftest.err conftest.$ac_objext \
17122 conftest$ac_exeext conftest.$ac_ext
84e70f78 17123fi
c0d27fcc 17124echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
84e70f78
KR
17125echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17126if test $ac_cv_func_hes_getmailhost = yes; then
17127 :
17128else
c0d27fcc 17129 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
84e70f78
KR
17130echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17131if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133else
17134 ac_check_lib_save_LIBS=$LIBS
17135LIBS="-lhesiod $RESOLVLIB $LIBS"
17136cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17137/* confdefs.h. */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h. */
84e70f78
KR
17142
17143/* Override any gcc2 internal prototype to avoid an error. */
17144#ifdef __cplusplus
17145extern "C"
17146#endif
17147/* We use char because int might match the return type of a gcc2
17148 builtin and then its argument prototype would still apply. */
17149char hes_getmailhost ();
17150int
17151main ()
17152{
17153hes_getmailhost ();
17154 ;
17155 return 0;
17156}
17157_ACEOF
17158rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17160 (eval $ac_link) 2>conftest.er1
84e70f78 17161 ac_status=$?
35996d22
AS
17162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
c0d27fcc 17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 17166 (exit $ac_status); } &&
35996d22
AS
17167 { ac_try='test -z "$ac_c_werror_flag"
17168 || test ! -s conftest.err'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
c0d27fcc 17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
17179 (exit $ac_status); }; }; then
17180 ac_cv_lib_hesiod_hes_getmailhost=yes
17181else
17182 echo "$as_me: failed program was:" >&5
19650fd6
AS
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
84e70f78
KR
17185ac_cv_lib_hesiod_hes_getmailhost=no
17186fi
35996d22
AS
17187rm -f conftest.err conftest.$ac_objext \
17188 conftest$ac_exeext conftest.$ac_ext
84e70f78
KR
17189LIBS=$ac_check_lib_save_LIBS
17190fi
c0d27fcc 17191echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
84e70f78
KR
17192echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17193if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
b936fae4 17194
c0d27fcc 17195cat >>confdefs.h <<\_ACEOF
84e70f78 17196#define HAVE_LIBHESIOD 1
c0d27fcc 17197_ACEOF
84e70f78
KR
17198
17199else
17200 :
17201fi
17202
17203fi
17204
17205fi
17206
a21616bd
KR
17207# These tell us which Kerberos-related libraries to use.
17208if test "${with_kerberos+set}" = set; then
503d2be0 17209
c0d27fcc 17210echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
503d2be0
AS
17211echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17212if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17214else
503d2be0 17215 ac_check_lib_save_LIBS=$LIBS
a21616bd 17216LIBS="-lcom_err $LIBS"
503d2be0 17217cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17218/* confdefs.h. */
17219_ACEOF
17220cat confdefs.h >>conftest.$ac_ext
17221cat >>conftest.$ac_ext <<_ACEOF
17222/* end confdefs.h. */
503d2be0 17223
a21616bd 17224/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17225#ifdef __cplusplus
17226extern "C"
17227#endif
a21616bd 17228/* We use char because int might match the return type of a gcc2
503d2be0
AS
17229 builtin and then its argument prototype would still apply. */
17230char com_err ();
17231int
17232main ()
17233{
17234com_err ();
17235 ;
17236 return 0;
17237}
17238_ACEOF
17239rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17241 (eval $ac_link) 2>conftest.er1
503d2be0 17242 ac_status=$?
35996d22
AS
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
c0d27fcc 17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17247 (exit $ac_status); } &&
35996d22
AS
17248 { ac_try='test -z "$ac_c_werror_flag"
17249 || test ! -s conftest.err'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
c0d27fcc 17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17260 (exit $ac_status); }; }; then
17261 ac_cv_lib_com_err_com_err=yes
17262else
17263 echo "$as_me: failed program was:" >&5
19650fd6
AS
17264sed 's/^/| /' conftest.$ac_ext >&5
17265
503d2be0
AS
17266ac_cv_lib_com_err_com_err=no
17267fi
35996d22
AS
17268rm -f conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17270LIBS=$ac_check_lib_save_LIBS
17271fi
c0d27fcc 17272echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
503d2be0
AS
17273echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17274if test $ac_cv_lib_com_err_com_err = yes; then
c0d27fcc 17275 cat >>confdefs.h <<_ACEOF
503d2be0 17276#define HAVE_LIBCOM_ERR 1
c0d27fcc 17277_ACEOF
a21616bd
KR
17278
17279 LIBS="-lcom_err $LIBS"
17280
a21616bd
KR
17281fi
17282
c0d27fcc
MR
17283
17284echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
503d2be0
AS
17285echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17286if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17288else
503d2be0 17289 ac_check_lib_save_LIBS=$LIBS
a21616bd 17290LIBS="-lk5crypto $LIBS"
503d2be0 17291cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17292/* confdefs.h. */
17293_ACEOF
17294cat confdefs.h >>conftest.$ac_ext
17295cat >>conftest.$ac_ext <<_ACEOF
17296/* end confdefs.h. */
503d2be0 17297
a21616bd 17298/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17299#ifdef __cplusplus
17300extern "C"
17301#endif
a21616bd 17302/* We use char because int might match the return type of a gcc2
503d2be0
AS
17303 builtin and then its argument prototype would still apply. */
17304char mit_des_cbc_encrypt ();
17305int
17306main ()
17307{
17308mit_des_cbc_encrypt ();
17309 ;
17310 return 0;
17311}
17312_ACEOF
17313rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17315 (eval $ac_link) 2>conftest.er1
503d2be0 17316 ac_status=$?
35996d22
AS
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
c0d27fcc 17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17321 (exit $ac_status); } &&
35996d22
AS
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
c0d27fcc 17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17334 (exit $ac_status); }; }; then
17335 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17336else
17337 echo "$as_me: failed program was:" >&5
19650fd6
AS
17338sed 's/^/| /' conftest.$ac_ext >&5
17339
503d2be0
AS
17340ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17341fi
35996d22
AS
17342rm -f conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17344LIBS=$ac_check_lib_save_LIBS
17345fi
c0d27fcc 17346echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
503d2be0
AS
17347echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17348if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
c0d27fcc 17349 cat >>confdefs.h <<_ACEOF
503d2be0 17350#define HAVE_LIBK5CRYPTO 1
c0d27fcc 17351_ACEOF
a21616bd
KR
17352
17353 LIBS="-lk5crypto $LIBS"
17354
a21616bd
KR
17355fi
17356
c0d27fcc
MR
17357
17358echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
503d2be0
AS
17359echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17360if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17362else
503d2be0 17363 ac_check_lib_save_LIBS=$LIBS
a21616bd 17364LIBS="-lcrypto $LIBS"
503d2be0 17365cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17366/* confdefs.h. */
17367_ACEOF
17368cat confdefs.h >>conftest.$ac_ext
17369cat >>conftest.$ac_ext <<_ACEOF
17370/* end confdefs.h. */
503d2be0 17371
a21616bd 17372/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17373#ifdef __cplusplus
17374extern "C"
17375#endif
a21616bd 17376/* We use char because int might match the return type of a gcc2
503d2be0
AS
17377 builtin and then its argument prototype would still apply. */
17378char mit_des_cbc_encrypt ();
17379int
17380main ()
17381{
17382mit_des_cbc_encrypt ();
17383 ;
17384 return 0;
17385}
17386_ACEOF
17387rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17389 (eval $ac_link) 2>conftest.er1
503d2be0 17390 ac_status=$?
35996d22
AS
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
c0d27fcc 17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17395 (exit $ac_status); } &&
35996d22
AS
17396 { ac_try='test -z "$ac_c_werror_flag"
17397 || test ! -s conftest.err'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
c0d27fcc 17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17408 (exit $ac_status); }; }; then
17409 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17410else
17411 echo "$as_me: failed program was:" >&5
19650fd6
AS
17412sed 's/^/| /' conftest.$ac_ext >&5
17413
503d2be0
AS
17414ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17415fi
35996d22
AS
17416rm -f conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17418LIBS=$ac_check_lib_save_LIBS
17419fi
c0d27fcc 17420echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
503d2be0
AS
17421echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17422if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
c0d27fcc 17423 cat >>confdefs.h <<_ACEOF
503d2be0 17424#define HAVE_LIBCRYPTO 1
c0d27fcc 17425_ACEOF
a21616bd
KR
17426
17427 LIBS="-lcrypto $LIBS"
17428
a21616bd
KR
17429fi
17430
c0d27fcc
MR
17431
17432echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
503d2be0
AS
17433echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17434if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17436else
503d2be0 17437 ac_check_lib_save_LIBS=$LIBS
a21616bd 17438LIBS="-lkrb5 $LIBS"
503d2be0 17439cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17440/* confdefs.h. */
17441_ACEOF
17442cat confdefs.h >>conftest.$ac_ext
17443cat >>conftest.$ac_ext <<_ACEOF
17444/* end confdefs.h. */
a21616bd 17445
503d2be0
AS
17446/* Override any gcc2 internal prototype to avoid an error. */
17447#ifdef __cplusplus
17448extern "C"
17449#endif
17450/* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17452char krb5_init_context ();
17453int
17454main ()
17455{
17456krb5_init_context ();
17457 ;
17458 return 0;
17459}
17460_ACEOF
17461rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17463 (eval $ac_link) 2>conftest.er1
503d2be0 17464 ac_status=$?
35996d22
AS
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
c0d27fcc 17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17469 (exit $ac_status); } &&
35996d22
AS
17470 { ac_try='test -z "$ac_c_werror_flag"
17471 || test ! -s conftest.err'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
c0d27fcc 17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17482 (exit $ac_status); }; }; then
17483 ac_cv_lib_krb5_krb5_init_context=yes
17484else
17485 echo "$as_me: failed program was:" >&5
19650fd6
AS
17486sed 's/^/| /' conftest.$ac_ext >&5
17487
503d2be0
AS
17488ac_cv_lib_krb5_krb5_init_context=no
17489fi
35996d22
AS
17490rm -f conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17492LIBS=$ac_check_lib_save_LIBS
17493fi
c0d27fcc 17494echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
503d2be0
AS
17495echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17496if test $ac_cv_lib_krb5_krb5_init_context = yes; then
c0d27fcc 17497 cat >>confdefs.h <<_ACEOF
503d2be0 17498#define HAVE_LIBKRB5 1
c0d27fcc 17499_ACEOF
a21616bd
KR
17500
17501 LIBS="-lkrb5 $LIBS"
17502
a21616bd
KR
17503fi
17504
17505 if test "${with_kerberos5+set}" != set; then
503d2be0 17506
c0d27fcc 17507echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
503d2be0
AS
17508echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17509if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17511else
503d2be0 17512 ac_check_lib_save_LIBS=$LIBS
a21616bd 17513LIBS="-ldes425 $LIBS"
503d2be0 17514cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17515/* confdefs.h. */
17516_ACEOF
17517cat confdefs.h >>conftest.$ac_ext
17518cat >>conftest.$ac_ext <<_ACEOF
17519/* end confdefs.h. */
503d2be0 17520
a21616bd 17521/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17522#ifdef __cplusplus
17523extern "C"
17524#endif
a21616bd 17525/* We use char because int might match the return type of a gcc2
503d2be0
AS
17526 builtin and then its argument prototype would still apply. */
17527char des_cbc_encrypt ();
17528int
17529main ()
17530{
17531des_cbc_encrypt ();
17532 ;
17533 return 0;
17534}
17535_ACEOF
17536rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17538 (eval $ac_link) 2>conftest.er1
503d2be0 17539 ac_status=$?
35996d22
AS
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
c0d27fcc 17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17544 (exit $ac_status); } &&
35996d22
AS
17545 { ac_try='test -z "$ac_c_werror_flag"
17546 || test ! -s conftest.err'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
c0d27fcc 17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17557 (exit $ac_status); }; }; then
17558 ac_cv_lib_des425_des_cbc_encrypt=yes
17559else
17560 echo "$as_me: failed program was:" >&5
19650fd6
AS
17561sed 's/^/| /' conftest.$ac_ext >&5
17562
503d2be0
AS
17563ac_cv_lib_des425_des_cbc_encrypt=no
17564fi
35996d22
AS
17565rm -f conftest.err conftest.$ac_objext \
17566 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17567LIBS=$ac_check_lib_save_LIBS
17568fi
c0d27fcc 17569echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
503d2be0
AS
17570echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17571if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
c0d27fcc 17572 cat >>confdefs.h <<_ACEOF
503d2be0 17573#define HAVE_LIBDES425 1
c0d27fcc 17574_ACEOF
a21616bd
KR
17575
17576 LIBS="-ldes425 $LIBS"
17577
17578else
503d2be0 17579
c0d27fcc 17580echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
503d2be0
AS
17581echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17582if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17584else
503d2be0 17585 ac_check_lib_save_LIBS=$LIBS
a21616bd 17586LIBS="-ldes $LIBS"
503d2be0 17587cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17588/* confdefs.h. */
17589_ACEOF
17590cat confdefs.h >>conftest.$ac_ext
17591cat >>conftest.$ac_ext <<_ACEOF
17592/* end confdefs.h. */
503d2be0 17593
a21616bd 17594/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17595#ifdef __cplusplus
17596extern "C"
17597#endif
a21616bd 17598/* We use char because int might match the return type of a gcc2
503d2be0
AS
17599 builtin and then its argument prototype would still apply. */
17600char des_cbc_encrypt ();
17601int
17602main ()
17603{
17604des_cbc_encrypt ();
17605 ;
17606 return 0;
17607}
17608_ACEOF
17609rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17611 (eval $ac_link) 2>conftest.er1
503d2be0 17612 ac_status=$?
35996d22
AS
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
c0d27fcc 17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17617 (exit $ac_status); } &&
35996d22
AS
17618 { ac_try='test -z "$ac_c_werror_flag"
17619 || test ! -s conftest.err'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; } &&
17625 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
c0d27fcc 17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17630 (exit $ac_status); }; }; then
17631 ac_cv_lib_des_des_cbc_encrypt=yes
17632else
17633 echo "$as_me: failed program was:" >&5
19650fd6
AS
17634sed 's/^/| /' conftest.$ac_ext >&5
17635
503d2be0
AS
17636ac_cv_lib_des_des_cbc_encrypt=no
17637fi
35996d22
AS
17638rm -f conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17640LIBS=$ac_check_lib_save_LIBS
17641fi
c0d27fcc 17642echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
503d2be0
AS
17643echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17644if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
c0d27fcc 17645 cat >>confdefs.h <<_ACEOF
503d2be0 17646#define HAVE_LIBDES 1
c0d27fcc 17647_ACEOF
a21616bd
KR
17648
17649 LIBS="-ldes $LIBS"
17650
a21616bd
KR
17651fi
17652
17653fi
17654
c0d27fcc
MR
17655
17656echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
503d2be0
AS
17657echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17658if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17660else
503d2be0 17661 ac_check_lib_save_LIBS=$LIBS
a21616bd 17662LIBS="-lkrb4 $LIBS"
503d2be0 17663cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17664/* confdefs.h. */
17665_ACEOF
17666cat confdefs.h >>conftest.$ac_ext
17667cat >>conftest.$ac_ext <<_ACEOF
17668/* end confdefs.h. */
503d2be0 17669
a21616bd 17670/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17671#ifdef __cplusplus
17672extern "C"
17673#endif
a21616bd 17674/* We use char because int might match the return type of a gcc2
503d2be0
AS
17675 builtin and then its argument prototype would still apply. */
17676char krb_get_cred ();
17677int
17678main ()
17679{
17680krb_get_cred ();
17681 ;
17682 return 0;
17683}
17684_ACEOF
17685rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17687 (eval $ac_link) 2>conftest.er1
503d2be0 17688 ac_status=$?
35996d22
AS
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
c0d27fcc 17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17693 (exit $ac_status); } &&
35996d22
AS
17694 { ac_try='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
c0d27fcc 17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17706 (exit $ac_status); }; }; then
17707 ac_cv_lib_krb4_krb_get_cred=yes
17708else
17709 echo "$as_me: failed program was:" >&5
19650fd6
AS
17710sed 's/^/| /' conftest.$ac_ext >&5
17711
503d2be0
AS
17712ac_cv_lib_krb4_krb_get_cred=no
17713fi
35996d22
AS
17714rm -f conftest.err conftest.$ac_objext \
17715 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17716LIBS=$ac_check_lib_save_LIBS
17717fi
c0d27fcc 17718echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
503d2be0
AS
17719echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17720if test $ac_cv_lib_krb4_krb_get_cred = yes; then
c0d27fcc 17721 cat >>confdefs.h <<_ACEOF
503d2be0 17722#define HAVE_LIBKRB4 1
c0d27fcc 17723_ACEOF
a21616bd
KR
17724
17725 LIBS="-lkrb4 $LIBS"
17726
17727else
503d2be0 17728
c0d27fcc 17729echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
503d2be0
AS
17730echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17731if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17733else
503d2be0 17734 ac_check_lib_save_LIBS=$LIBS
a21616bd 17735LIBS="-lkrb $LIBS"
503d2be0 17736cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17737/* confdefs.h. */
17738_ACEOF
17739cat confdefs.h >>conftest.$ac_ext
17740cat >>conftest.$ac_ext <<_ACEOF
17741/* end confdefs.h. */
503d2be0 17742
a21616bd 17743/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17744#ifdef __cplusplus
17745extern "C"
17746#endif
a21616bd 17747/* We use char because int might match the return type of a gcc2
503d2be0
AS
17748 builtin and then its argument prototype would still apply. */
17749char krb_get_cred ();
17750int
17751main ()
17752{
17753krb_get_cred ();
17754 ;
17755 return 0;
17756}
17757_ACEOF
17758rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17760 (eval $ac_link) 2>conftest.er1
503d2be0 17761 ac_status=$?
35996d22
AS
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
c0d27fcc 17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17766 (exit $ac_status); } &&
35996d22
AS
17767 { ac_try='test -z "$ac_c_werror_flag"
17768 || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
c0d27fcc 17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17779 (exit $ac_status); }; }; then
17780 ac_cv_lib_krb_krb_get_cred=yes
17781else
17782 echo "$as_me: failed program was:" >&5
19650fd6
AS
17783sed 's/^/| /' conftest.$ac_ext >&5
17784
503d2be0
AS
17785ac_cv_lib_krb_krb_get_cred=no
17786fi
35996d22
AS
17787rm -f conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17789LIBS=$ac_check_lib_save_LIBS
17790fi
c0d27fcc 17791echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
503d2be0
AS
17792echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17793if test $ac_cv_lib_krb_krb_get_cred = yes; then
c0d27fcc 17794 cat >>confdefs.h <<_ACEOF
503d2be0 17795#define HAVE_LIBKRB 1
c0d27fcc 17796_ACEOF
a21616bd
KR
17797
17798 LIBS="-lkrb $LIBS"
17799
a21616bd
KR
17800fi
17801
17802fi
17803
17804 fi
17805
17806 if test "${with_kerberos5+set}" = set; then
503d2be0
AS
17807
17808for ac_header in krb5.h
a21616bd 17809do
503d2be0 17810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
17811if eval "test \"\${$as_ac_Header+set}\" = set"; then
17812 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
17813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17814if eval "test \"\${$as_ac_Header+set}\" = set"; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
17816fi
17817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 17819else
c0d27fcc
MR
17820 # Is the header compilable?
17821echo "$as_me:$LINENO: checking $ac_header usability" >&5
17822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17823cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17824/* confdefs.h. */
17825_ACEOF
17826cat confdefs.h >>conftest.$ac_ext
17827cat >>conftest.$ac_ext <<_ACEOF
17828/* end confdefs.h. */
c0d27fcc
MR
17829$ac_includes_default
17830#include <$ac_header>
17831_ACEOF
17832rm -f conftest.$ac_objext
17833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 17834 (eval $ac_compile) 2>conftest.er1
c0d27fcc 17835 ac_status=$?
35996d22
AS
17836 grep -v '^ *+' conftest.er1 >conftest.err
17837 rm -f conftest.er1
17838 cat conftest.err >&5
c0d27fcc
MR
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
35996d22
AS
17841 { ac_try='test -z "$ac_c_werror_flag"
17842 || test ! -s conftest.err'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 ac_header_compiler=yes
17855else
17856 echo "$as_me: failed program was:" >&5
19650fd6
AS
17857sed 's/^/| /' conftest.$ac_ext >&5
17858
c0d27fcc
MR
17859ac_header_compiler=no
17860fi
35996d22 17861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
17862echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17863echo "${ECHO_T}$ac_header_compiler" >&6
17864
17865# Is the header present?
17866echo "$as_me:$LINENO: checking $ac_header presence" >&5
17867echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17868cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17869/* confdefs.h. */
17870_ACEOF
17871cat confdefs.h >>conftest.$ac_ext
17872cat >>conftest.$ac_ext <<_ACEOF
17873/* end confdefs.h. */
503d2be0
AS
17874#include <$ac_header>
17875_ACEOF
c0d27fcc 17876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
17877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17878 ac_status=$?
6bae0ccf 17879 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
17880 rm -f conftest.er1
17881 cat conftest.err >&5
c0d27fcc 17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17883 (exit $ac_status); } >/dev/null; then
17884 if test -s conftest.err; then
17885 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 17886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
17887 else
17888 ac_cpp_err=
17889 fi
17890else
17891 ac_cpp_err=yes
17892fi
17893if test -z "$ac_cpp_err"; then
c0d27fcc 17894 ac_header_preproc=yes
503d2be0
AS
17895else
17896 echo "$as_me: failed program was:" >&5
19650fd6
AS
17897sed 's/^/| /' conftest.$ac_ext >&5
17898
c0d27fcc 17899 ac_header_preproc=no
a21616bd 17900fi
503d2be0 17901rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
17902echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17903echo "${ECHO_T}$ac_header_preproc" >&6
17904
17905# So? What about this header?
35996d22
AS
17906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17907 yes:no: )
c0d27fcc
MR
17908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17909echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
17910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17911echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17912 ac_header_preproc=yes
19650fd6 17913 ;;
35996d22 17914 no:yes:* )
c0d27fcc
MR
17915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17916echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
17917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17918echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17920echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17922echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 17923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 17924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
17925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17926echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
17927 (
17928 cat <<\_ASBOX
35996d22
AS
17929## ------------------------------------------ ##
17930## Report this to the AC_PACKAGE_NAME lists. ##
17931## ------------------------------------------ ##
19650fd6
AS
17932_ASBOX
17933 ) |
17934 sed "s/^/$as_me: WARNING: /" >&2
17935 ;;
c0d27fcc
MR
17936esac
17937echo "$as_me:$LINENO: checking for $ac_header" >&5
17938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17939if eval "test \"\${$as_ac_Header+set}\" = set"; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17941else
35996d22 17942 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 17943fi
c0d27fcc 17944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 17945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
17946
17947fi
503d2be0 17948if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 17949 cat >>confdefs.h <<_ACEOF
503d2be0 17950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 17951_ACEOF
503d2be0 17952
a21616bd 17953fi
c0d27fcc 17954
a21616bd
KR
17955done
17956
17957 else
503d2be0
AS
17958
17959for ac_header in des.h
a21616bd 17960do
503d2be0 17961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
17962if eval "test \"\${$as_ac_Header+set}\" = set"; then
17963 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
17964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17965if eval "test \"\${$as_ac_Header+set}\" = set"; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
17967fi
17968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 17970else
c0d27fcc
MR
17971 # Is the header compilable?
17972echo "$as_me:$LINENO: checking $ac_header usability" >&5
17973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17974cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17975/* confdefs.h. */
17976_ACEOF
17977cat confdefs.h >>conftest.$ac_ext
17978cat >>conftest.$ac_ext <<_ACEOF
17979/* end confdefs.h. */
c0d27fcc
MR
17980$ac_includes_default
17981#include <$ac_header>
17982_ACEOF
17983rm -f conftest.$ac_objext
17984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 17985 (eval $ac_compile) 2>conftest.er1
c0d27fcc 17986 ac_status=$?
35996d22
AS
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
c0d27fcc
MR
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
35996d22
AS
17992 { ac_try='test -z "$ac_c_werror_flag"
17993 || test ! -s conftest.err'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17996 ac_status=$?
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 ac_header_compiler=yes
18006else
18007 echo "$as_me: failed program was:" >&5
19650fd6
AS
18008sed 's/^/| /' conftest.$ac_ext >&5
18009
c0d27fcc
MR
18010ac_header_compiler=no
18011fi
35996d22 18012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18014echo "${ECHO_T}$ac_header_compiler" >&6
18015
18016# Is the header present?
18017echo "$as_me:$LINENO: checking $ac_header presence" >&5
18018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18019cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18020/* confdefs.h. */
18021_ACEOF
18022cat confdefs.h >>conftest.$ac_ext
18023cat >>conftest.$ac_ext <<_ACEOF
18024/* end confdefs.h. */
503d2be0
AS
18025#include <$ac_header>
18026_ACEOF
c0d27fcc 18027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18029 ac_status=$?
6bae0ccf 18030 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18031 rm -f conftest.er1
18032 cat conftest.err >&5
c0d27fcc 18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18034 (exit $ac_status); } >/dev/null; then
18035 if test -s conftest.err; then
18036 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18038 else
18039 ac_cpp_err=
18040 fi
18041else
18042 ac_cpp_err=yes
18043fi
18044if test -z "$ac_cpp_err"; then
c0d27fcc 18045 ac_header_preproc=yes
503d2be0
AS
18046else
18047 echo "$as_me: failed program was:" >&5
19650fd6
AS
18048sed 's/^/| /' conftest.$ac_ext >&5
18049
c0d27fcc 18050 ac_header_preproc=no
a21616bd 18051fi
503d2be0 18052rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18054echo "${ECHO_T}$ac_header_preproc" >&6
18055
18056# So? What about this header?
35996d22
AS
18057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18058 yes:no: )
c0d27fcc
MR
18059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18062echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18063 ac_header_preproc=yes
19650fd6 18064 ;;
35996d22 18065 no:yes:* )
c0d27fcc
MR
18066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18069echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18071echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18073echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18077echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18078 (
18079 cat <<\_ASBOX
35996d22
AS
18080## ------------------------------------------ ##
18081## Report this to the AC_PACKAGE_NAME lists. ##
18082## ------------------------------------------ ##
19650fd6
AS
18083_ASBOX
18084 ) |
18085 sed "s/^/$as_me: WARNING: /" >&2
18086 ;;
c0d27fcc
MR
18087esac
18088echo "$as_me:$LINENO: checking for $ac_header" >&5
18089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18090if eval "test \"\${$as_ac_Header+set}\" = set"; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18092else
35996d22 18093 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18094fi
c0d27fcc 18095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18097
18098fi
503d2be0 18099if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18100 cat >>confdefs.h <<_ACEOF
503d2be0 18101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18102_ACEOF
503d2be0 18103
a21616bd 18104else
503d2be0
AS
18105
18106for ac_header in kerberosIV/des.h
a21616bd 18107do
503d2be0 18108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18109if eval "test \"\${$as_ac_Header+set}\" = set"; then
18110 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
18111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18112if eval "test \"\${$as_ac_Header+set}\" = set"; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18114fi
18115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 18117else
c0d27fcc
MR
18118 # Is the header compilable?
18119echo "$as_me:$LINENO: checking $ac_header usability" >&5
18120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18121cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18122/* confdefs.h. */
18123_ACEOF
18124cat confdefs.h >>conftest.$ac_ext
18125cat >>conftest.$ac_ext <<_ACEOF
18126/* end confdefs.h. */
c0d27fcc
MR
18127$ac_includes_default
18128#include <$ac_header>
18129_ACEOF
18130rm -f conftest.$ac_objext
18131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18132 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18133 ac_status=$?
35996d22
AS
18134 grep -v '^ *+' conftest.er1 >conftest.err
18135 rm -f conftest.er1
18136 cat conftest.err >&5
c0d27fcc
MR
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
35996d22
AS
18139 { ac_try='test -z "$ac_c_werror_flag"
18140 || test ! -s conftest.err'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
18152 ac_header_compiler=yes
18153else
18154 echo "$as_me: failed program was:" >&5
19650fd6
AS
18155sed 's/^/| /' conftest.$ac_ext >&5
18156
c0d27fcc
MR
18157ac_header_compiler=no
18158fi
35996d22 18159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18161echo "${ECHO_T}$ac_header_compiler" >&6
18162
18163# Is the header present?
18164echo "$as_me:$LINENO: checking $ac_header presence" >&5
18165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18166cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18167/* confdefs.h. */
18168_ACEOF
18169cat confdefs.h >>conftest.$ac_ext
18170cat >>conftest.$ac_ext <<_ACEOF
18171/* end confdefs.h. */
503d2be0
AS
18172#include <$ac_header>
18173_ACEOF
c0d27fcc 18174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18176 ac_status=$?
6bae0ccf 18177 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18178 rm -f conftest.er1
18179 cat conftest.err >&5
c0d27fcc 18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18181 (exit $ac_status); } >/dev/null; then
18182 if test -s conftest.err; then
18183 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18185 else
18186 ac_cpp_err=
18187 fi
18188else
18189 ac_cpp_err=yes
18190fi
18191if test -z "$ac_cpp_err"; then
c0d27fcc 18192 ac_header_preproc=yes
503d2be0
AS
18193else
18194 echo "$as_me: failed program was:" >&5
19650fd6
AS
18195sed 's/^/| /' conftest.$ac_ext >&5
18196
c0d27fcc 18197 ac_header_preproc=no
a21616bd 18198fi
503d2be0 18199rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18201echo "${ECHO_T}$ac_header_preproc" >&6
18202
18203# So? What about this header?
35996d22
AS
18204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18205 yes:no: )
c0d27fcc
MR
18206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18210 ac_header_preproc=yes
19650fd6 18211 ;;
35996d22 18212 no:yes:* )
c0d27fcc
MR
18213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18220echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18225 (
18226 cat <<\_ASBOX
35996d22
AS
18227## ------------------------------------------ ##
18228## Report this to the AC_PACKAGE_NAME lists. ##
18229## ------------------------------------------ ##
19650fd6
AS
18230_ASBOX
18231 ) |
18232 sed "s/^/$as_me: WARNING: /" >&2
18233 ;;
c0d27fcc
MR
18234esac
18235echo "$as_me:$LINENO: checking for $ac_header" >&5
18236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18237if eval "test \"\${$as_ac_Header+set}\" = set"; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18239else
35996d22 18240 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18241fi
c0d27fcc 18242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18244
18245fi
503d2be0 18246if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18247 cat >>confdefs.h <<_ACEOF
503d2be0 18248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18249_ACEOF
503d2be0 18250
a21616bd 18251else
503d2be0
AS
18252
18253for ac_header in kerberos/des.h
a21616bd 18254do
503d2be0 18255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18256if eval "test \"\${$as_ac_Header+set}\" = set"; then
18257 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
18258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18259if eval "test \"\${$as_ac_Header+set}\" = set"; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18261fi
18262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 18264else
c0d27fcc
MR
18265 # Is the header compilable?
18266echo "$as_me:$LINENO: checking $ac_header usability" >&5
18267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18268cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18269/* confdefs.h. */
18270_ACEOF
18271cat confdefs.h >>conftest.$ac_ext
18272cat >>conftest.$ac_ext <<_ACEOF
18273/* end confdefs.h. */
c0d27fcc
MR
18274$ac_includes_default
18275#include <$ac_header>
18276_ACEOF
18277rm -f conftest.$ac_objext
18278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18279 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18280 ac_status=$?
35996d22
AS
18281 grep -v '^ *+' conftest.er1 >conftest.err
18282 rm -f conftest.er1
18283 cat conftest.err >&5
c0d27fcc
MR
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
35996d22
AS
18286 { ac_try='test -z "$ac_c_werror_flag"
18287 || test ! -s conftest.err'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_header_compiler=yes
18300else
18301 echo "$as_me: failed program was:" >&5
19650fd6
AS
18302sed 's/^/| /' conftest.$ac_ext >&5
18303
c0d27fcc
MR
18304ac_header_compiler=no
18305fi
35996d22 18306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18308echo "${ECHO_T}$ac_header_compiler" >&6
18309
18310# Is the header present?
18311echo "$as_me:$LINENO: checking $ac_header presence" >&5
18312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18313cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18314/* confdefs.h. */
18315_ACEOF
18316cat confdefs.h >>conftest.$ac_ext
18317cat >>conftest.$ac_ext <<_ACEOF
18318/* end confdefs.h. */
503d2be0
AS
18319#include <$ac_header>
18320_ACEOF
c0d27fcc 18321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18323 ac_status=$?
6bae0ccf 18324 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18325 rm -f conftest.er1
18326 cat conftest.err >&5
c0d27fcc 18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18328 (exit $ac_status); } >/dev/null; then
18329 if test -s conftest.err; then
18330 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18332 else
18333 ac_cpp_err=
18334 fi
18335else
18336 ac_cpp_err=yes
18337fi
18338if test -z "$ac_cpp_err"; then
c0d27fcc 18339 ac_header_preproc=yes
503d2be0
AS
18340else
18341 echo "$as_me: failed program was:" >&5
19650fd6
AS
18342sed 's/^/| /' conftest.$ac_ext >&5
18343
c0d27fcc 18344 ac_header_preproc=no
a21616bd 18345fi
503d2be0 18346rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18348echo "${ECHO_T}$ac_header_preproc" >&6
18349
18350# So? What about this header?
35996d22
AS
18351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18352 yes:no: )
c0d27fcc
MR
18353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18357 ac_header_preproc=yes
19650fd6 18358 ;;
35996d22 18359 no:yes:* )
c0d27fcc
MR
18360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18372 (
18373 cat <<\_ASBOX
35996d22
AS
18374## ------------------------------------------ ##
18375## Report this to the AC_PACKAGE_NAME lists. ##
18376## ------------------------------------------ ##
19650fd6
AS
18377_ASBOX
18378 ) |
18379 sed "s/^/$as_me: WARNING: /" >&2
18380 ;;
c0d27fcc
MR
18381esac
18382echo "$as_me:$LINENO: checking for $ac_header" >&5
18383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18384if eval "test \"\${$as_ac_Header+set}\" = set"; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18386else
35996d22 18387 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18388fi
c0d27fcc 18389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18391
18392fi
503d2be0 18393if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18394 cat >>confdefs.h <<_ACEOF
503d2be0 18395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18396_ACEOF
a21616bd
KR
18397
18398fi
c0d27fcc 18399
a21616bd
KR
18400done
18401
98418dba 18402fi
c0d27fcc 18403
925c2f3f
EZ
18404done
18405
98418dba 18406fi
c0d27fcc 18407
925c2f3f 18408done
98418dba 18409
c0d27fcc 18410
925c2f3f
EZ
18411for ac_header in krb.h
18412do
18413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18414if eval "test \"\${$as_ac_Header+set}\" = set"; then
18415 echo "$as_me:$LINENO: checking for $ac_header" >&5
925c2f3f
EZ
18416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18417if eval "test \"\${$as_ac_Header+set}\" = set"; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18419fi
18420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18422else
18423 # Is the header compilable?
18424echo "$as_me:$LINENO: checking $ac_header usability" >&5
18425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18426cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18427/* confdefs.h. */
18428_ACEOF
18429cat confdefs.h >>conftest.$ac_ext
18430cat >>conftest.$ac_ext <<_ACEOF
18431/* end confdefs.h. */
c0d27fcc
MR
18432$ac_includes_default
18433#include <$ac_header>
18434_ACEOF
18435rm -f conftest.$ac_objext
18436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18437 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18438 ac_status=$?
35996d22
AS
18439 grep -v '^ *+' conftest.er1 >conftest.err
18440 rm -f conftest.er1
18441 cat conftest.err >&5
c0d27fcc
MR
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } &&
35996d22
AS
18444 { ac_try='test -z "$ac_c_werror_flag"
18445 || test ! -s conftest.err'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 ac_header_compiler=yes
925c2f3f 18458else
c0d27fcc 18459 echo "$as_me: failed program was:" >&5
19650fd6
AS
18460sed 's/^/| /' conftest.$ac_ext >&5
18461
c0d27fcc
MR
18462ac_header_compiler=no
18463fi
35996d22 18464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18466echo "${ECHO_T}$ac_header_compiler" >&6
18467
18468# Is the header present?
18469echo "$as_me:$LINENO: checking $ac_header presence" >&5
18470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18471cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18472/* confdefs.h. */
18473_ACEOF
18474cat confdefs.h >>conftest.$ac_ext
18475cat >>conftest.$ac_ext <<_ACEOF
18476/* end confdefs.h. */
503d2be0
AS
18477#include <$ac_header>
18478_ACEOF
c0d27fcc 18479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18481 ac_status=$?
6bae0ccf 18482 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18483 rm -f conftest.er1
18484 cat conftest.err >&5
c0d27fcc 18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18486 (exit $ac_status); } >/dev/null; then
18487 if test -s conftest.err; then
18488 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18490 else
18491 ac_cpp_err=
18492 fi
18493else
18494 ac_cpp_err=yes
18495fi
18496if test -z "$ac_cpp_err"; then
c0d27fcc 18497 ac_header_preproc=yes
503d2be0
AS
18498else
18499 echo "$as_me: failed program was:" >&5
19650fd6
AS
18500sed 's/^/| /' conftest.$ac_ext >&5
18501
c0d27fcc 18502 ac_header_preproc=no
a21616bd 18503fi
503d2be0 18504rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18506echo "${ECHO_T}$ac_header_preproc" >&6
18507
18508# So? What about this header?
35996d22
AS
18509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18510 yes:no: )
c0d27fcc
MR
18511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18515 ac_header_preproc=yes
19650fd6 18516 ;;
35996d22 18517 no:yes:* )
c0d27fcc
MR
18518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18530 (
18531 cat <<\_ASBOX
35996d22
AS
18532## ------------------------------------------ ##
18533## Report this to the AC_PACKAGE_NAME lists. ##
18534## ------------------------------------------ ##
19650fd6
AS
18535_ASBOX
18536 ) |
18537 sed "s/^/$as_me: WARNING: /" >&2
18538 ;;
c0d27fcc
MR
18539esac
18540echo "$as_me:$LINENO: checking for $ac_header" >&5
18541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18542if eval "test \"\${$as_ac_Header+set}\" = set"; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18544else
35996d22 18545 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18546fi
c0d27fcc 18547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18549
18550fi
503d2be0 18551if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18552 cat >>confdefs.h <<_ACEOF
503d2be0 18553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18554_ACEOF
503d2be0 18555
a21616bd 18556else
503d2be0
AS
18557
18558for ac_header in kerberosIV/krb.h
a21616bd 18559do
503d2be0 18560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18561if eval "test \"\${$as_ac_Header+set}\" = set"; then
18562 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
18563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18564if eval "test \"\${$as_ac_Header+set}\" = set"; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18566fi
18567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 18569else
c0d27fcc
MR
18570 # Is the header compilable?
18571echo "$as_me:$LINENO: checking $ac_header usability" >&5
18572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18573cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18574/* confdefs.h. */
18575_ACEOF
18576cat confdefs.h >>conftest.$ac_ext
18577cat >>conftest.$ac_ext <<_ACEOF
18578/* end confdefs.h. */
c0d27fcc
MR
18579$ac_includes_default
18580#include <$ac_header>
18581_ACEOF
18582rm -f conftest.$ac_objext
18583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18584 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18585 ac_status=$?
35996d22
AS
18586 grep -v '^ *+' conftest.er1 >conftest.err
18587 rm -f conftest.er1
18588 cat conftest.err >&5
c0d27fcc
MR
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } &&
35996d22
AS
18591 { ac_try='test -z "$ac_c_werror_flag"
18592 || test ! -s conftest.err'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18595 ac_status=$?
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; } &&
18598 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; }; then
18604 ac_header_compiler=yes
18605else
18606 echo "$as_me: failed program was:" >&5
19650fd6
AS
18607sed 's/^/| /' conftest.$ac_ext >&5
18608
c0d27fcc
MR
18609ac_header_compiler=no
18610fi
35996d22 18611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18613echo "${ECHO_T}$ac_header_compiler" >&6
18614
18615# Is the header present?
18616echo "$as_me:$LINENO: checking $ac_header presence" >&5
18617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18618cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18619/* confdefs.h. */
18620_ACEOF
18621cat confdefs.h >>conftest.$ac_ext
18622cat >>conftest.$ac_ext <<_ACEOF
18623/* end confdefs.h. */
503d2be0
AS
18624#include <$ac_header>
18625_ACEOF
c0d27fcc 18626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18628 ac_status=$?
6bae0ccf 18629 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18630 rm -f conftest.er1
18631 cat conftest.err >&5
c0d27fcc 18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18633 (exit $ac_status); } >/dev/null; then
18634 if test -s conftest.err; then
18635 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18637 else
18638 ac_cpp_err=
18639 fi
18640else
18641 ac_cpp_err=yes
18642fi
18643if test -z "$ac_cpp_err"; then
c0d27fcc 18644 ac_header_preproc=yes
503d2be0
AS
18645else
18646 echo "$as_me: failed program was:" >&5
19650fd6
AS
18647sed 's/^/| /' conftest.$ac_ext >&5
18648
c0d27fcc 18649 ac_header_preproc=no
a21616bd 18650fi
503d2be0 18651rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18653echo "${ECHO_T}$ac_header_preproc" >&6
18654
18655# So? What about this header?
35996d22
AS
18656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18657 yes:no: )
c0d27fcc
MR
18658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18662 ac_header_preproc=yes
19650fd6 18663 ;;
35996d22 18664 no:yes:* )
c0d27fcc
MR
18665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18672echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18677 (
18678 cat <<\_ASBOX
35996d22
AS
18679## ------------------------------------------ ##
18680## Report this to the AC_PACKAGE_NAME lists. ##
18681## ------------------------------------------ ##
19650fd6
AS
18682_ASBOX
18683 ) |
18684 sed "s/^/$as_me: WARNING: /" >&2
18685 ;;
c0d27fcc
MR
18686esac
18687echo "$as_me:$LINENO: checking for $ac_header" >&5
18688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18689if eval "test \"\${$as_ac_Header+set}\" = set"; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18691else
35996d22 18692 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18693fi
c0d27fcc 18694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18696
18697fi
503d2be0 18698if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18699 cat >>confdefs.h <<_ACEOF
503d2be0 18700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18701_ACEOF
503d2be0 18702
a21616bd 18703else
503d2be0
AS
18704
18705for ac_header in kerberos/krb.h
a21616bd 18706do
503d2be0 18707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18708if eval "test \"\${$as_ac_Header+set}\" = set"; then
18709 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
18710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18711if eval "test \"\${$as_ac_Header+set}\" = set"; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18713fi
18714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 18716else
c0d27fcc
MR
18717 # Is the header compilable?
18718echo "$as_me:$LINENO: checking $ac_header usability" >&5
18719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18720cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18721/* confdefs.h. */
18722_ACEOF
18723cat confdefs.h >>conftest.$ac_ext
18724cat >>conftest.$ac_ext <<_ACEOF
18725/* end confdefs.h. */
c0d27fcc
MR
18726$ac_includes_default
18727#include <$ac_header>
18728_ACEOF
18729rm -f conftest.$ac_objext
18730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18731 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18732 ac_status=$?
35996d22
AS
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
c0d27fcc
MR
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
35996d22
AS
18738 { ac_try='test -z "$ac_c_werror_flag"
18739 || test ! -s conftest.err'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; } &&
18745 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
18751 ac_header_compiler=yes
18752else
18753 echo "$as_me: failed program was:" >&5
19650fd6
AS
18754sed 's/^/| /' conftest.$ac_ext >&5
18755
c0d27fcc
MR
18756ac_header_compiler=no
18757fi
35996d22 18758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18760echo "${ECHO_T}$ac_header_compiler" >&6
18761
18762# Is the header present?
18763echo "$as_me:$LINENO: checking $ac_header presence" >&5
18764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18765cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18766/* confdefs.h. */
18767_ACEOF
18768cat confdefs.h >>conftest.$ac_ext
18769cat >>conftest.$ac_ext <<_ACEOF
18770/* end confdefs.h. */
503d2be0
AS
18771#include <$ac_header>
18772_ACEOF
c0d27fcc 18773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18775 ac_status=$?
6bae0ccf 18776 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18777 rm -f conftest.er1
18778 cat conftest.err >&5
c0d27fcc 18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18780 (exit $ac_status); } >/dev/null; then
18781 if test -s conftest.err; then
18782 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18784 else
18785 ac_cpp_err=
18786 fi
18787else
18788 ac_cpp_err=yes
18789fi
18790if test -z "$ac_cpp_err"; then
c0d27fcc 18791 ac_header_preproc=yes
503d2be0
AS
18792else
18793 echo "$as_me: failed program was:" >&5
19650fd6
AS
18794sed 's/^/| /' conftest.$ac_ext >&5
18795
c0d27fcc 18796 ac_header_preproc=no
a21616bd 18797fi
503d2be0 18798rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18800echo "${ECHO_T}$ac_header_preproc" >&6
35996d22
AS
18801
18802# So? What about this header?
18803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18804 yes:no: )
18805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18809 ac_header_preproc=yes
19650fd6 18810 ;;
35996d22 18811 no:yes:* )
c0d27fcc
MR
18812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18819echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18824 (
18825 cat <<\_ASBOX
35996d22
AS
18826## ------------------------------------------ ##
18827## Report this to the AC_PACKAGE_NAME lists. ##
18828## ------------------------------------------ ##
19650fd6
AS
18829_ASBOX
18830 ) |
18831 sed "s/^/$as_me: WARNING: /" >&2
18832 ;;
c0d27fcc
MR
18833esac
18834echo "$as_me:$LINENO: checking for $ac_header" >&5
18835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18836if eval "test \"\${$as_ac_Header+set}\" = set"; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838else
35996d22 18839 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18840fi
c0d27fcc 18841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18843
18844fi
503d2be0 18845if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18846 cat >>confdefs.h <<_ACEOF
503d2be0 18847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18848_ACEOF
503d2be0 18849
a21616bd 18850fi
c0d27fcc 18851
a21616bd
KR
18852done
18853
18854fi
c0d27fcc 18855
a21616bd
KR
18856done
18857
18858fi
c0d27fcc 18859
a21616bd
KR
18860done
18861
18862 fi
503d2be0
AS
18863
18864for ac_header in com_err.h
a21616bd 18865do
503d2be0 18866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18867if eval "test \"\${$as_ac_Header+set}\" = set"; then
18868 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
18869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18870if eval "test \"\${$as_ac_Header+set}\" = set"; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18872fi
18873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 18875else
c0d27fcc
MR
18876 # Is the header compilable?
18877echo "$as_me:$LINENO: checking $ac_header usability" >&5
18878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18879cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18880/* confdefs.h. */
18881_ACEOF
18882cat confdefs.h >>conftest.$ac_ext
18883cat >>conftest.$ac_ext <<_ACEOF
18884/* end confdefs.h. */
c0d27fcc
MR
18885$ac_includes_default
18886#include <$ac_header>
18887_ACEOF
18888rm -f conftest.$ac_objext
18889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18890 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18891 ac_status=$?
35996d22
AS
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
c0d27fcc
MR
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
35996d22
AS
18897 { ac_try='test -z "$ac_c_werror_flag"
18898 || test ! -s conftest.err'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; }; then
18910 ac_header_compiler=yes
18911else
18912 echo "$as_me: failed program was:" >&5
19650fd6
AS
18913sed 's/^/| /' conftest.$ac_ext >&5
18914
c0d27fcc
MR
18915ac_header_compiler=no
18916fi
35996d22 18917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18919echo "${ECHO_T}$ac_header_compiler" >&6
18920
18921# Is the header present?
18922echo "$as_me:$LINENO: checking $ac_header presence" >&5
18923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18924cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18925/* confdefs.h. */
18926_ACEOF
18927cat confdefs.h >>conftest.$ac_ext
18928cat >>conftest.$ac_ext <<_ACEOF
18929/* end confdefs.h. */
503d2be0
AS
18930#include <$ac_header>
18931_ACEOF
c0d27fcc 18932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18934 ac_status=$?
6bae0ccf 18935 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18936 rm -f conftest.er1
18937 cat conftest.err >&5
c0d27fcc 18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18939 (exit $ac_status); } >/dev/null; then
18940 if test -s conftest.err; then
18941 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18943 else
18944 ac_cpp_err=
18945 fi
18946else
18947 ac_cpp_err=yes
18948fi
18949if test -z "$ac_cpp_err"; then
c0d27fcc 18950 ac_header_preproc=yes
503d2be0
AS
18951else
18952 echo "$as_me: failed program was:" >&5
19650fd6
AS
18953sed 's/^/| /' conftest.$ac_ext >&5
18954
c0d27fcc 18955 ac_header_preproc=no
a21616bd 18956fi
503d2be0 18957rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18959echo "${ECHO_T}$ac_header_preproc" >&6
18960
18961# So? What about this header?
35996d22
AS
18962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18963 yes:no: )
c0d27fcc
MR
18964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18968 ac_header_preproc=yes
19650fd6 18969 ;;
35996d22 18970 no:yes:* )
c0d27fcc
MR
18971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18974echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18978echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18983 (
18984 cat <<\_ASBOX
35996d22
AS
18985## ------------------------------------------ ##
18986## Report this to the AC_PACKAGE_NAME lists. ##
18987## ------------------------------------------ ##
19650fd6
AS
18988_ASBOX
18989 ) |
18990 sed "s/^/$as_me: WARNING: /" >&2
18991 ;;
c0d27fcc
MR
18992esac
18993echo "$as_me:$LINENO: checking for $ac_header" >&5
18994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18995if eval "test \"\${$as_ac_Header+set}\" = set"; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997else
35996d22 18998 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18999fi
c0d27fcc 19000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 19001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
19002
19003fi
503d2be0 19004if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 19005 cat >>confdefs.h <<_ACEOF
503d2be0 19006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 19007_ACEOF
503d2be0 19008
a21616bd 19009fi
c0d27fcc 19010
a21616bd
KR
19011done
19012
19013fi
19014
ba4481b5
DL
19015# Solaris requires -lintl if you want strerror (which calls dgettext)
19016# to return localized messages.
503d2be0 19017
c0d27fcc 19018echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
503d2be0
AS
19019echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19020if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 19022else
503d2be0 19023 ac_check_lib_save_LIBS=$LIBS
ba4481b5 19024LIBS="-lintl $LIBS"
503d2be0 19025cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19026/* confdefs.h. */
19027_ACEOF
19028cat confdefs.h >>conftest.$ac_ext
19029cat >>conftest.$ac_ext <<_ACEOF
19030/* end confdefs.h. */
503d2be0 19031
ba4481b5 19032/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
19033#ifdef __cplusplus
19034extern "C"
19035#endif
ba4481b5 19036/* We use char because int might match the return type of a gcc2
503d2be0
AS
19037 builtin and then its argument prototype would still apply. */
19038char dgettext ();
19039int
19040main ()
19041{
19042dgettext ();
19043 ;
19044 return 0;
19045}
19046_ACEOF
19047rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 19048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 19049 (eval $ac_link) 2>conftest.er1
503d2be0 19050 ac_status=$?
35996d22
AS
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
c0d27fcc 19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19055 (exit $ac_status); } &&
35996d22
AS
19056 { ac_try='test -z "$ac_c_werror_flag"
19057 || test ! -s conftest.err'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19060 ac_status=$?
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; } &&
19063 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19065 (eval $ac_try) 2>&5
19066 ac_status=$?
c0d27fcc 19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
19068 (exit $ac_status); }; }; then
19069 ac_cv_lib_intl_dgettext=yes
19070else
19071 echo "$as_me: failed program was:" >&5
19650fd6
AS
19072sed 's/^/| /' conftest.$ac_ext >&5
19073
503d2be0
AS
19074ac_cv_lib_intl_dgettext=no
19075fi
35996d22
AS
19076rm -f conftest.err conftest.$ac_objext \
19077 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
19078LIBS=$ac_check_lib_save_LIBS
19079fi
c0d27fcc 19080echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
503d2be0
AS
19081echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19082if test $ac_cv_lib_intl_dgettext = yes; then
c0d27fcc 19083 cat >>confdefs.h <<_ACEOF
503d2be0 19084#define HAVE_LIBINTL 1
c0d27fcc 19085_ACEOF
ba4481b5
DL
19086
19087 LIBS="-lintl $LIBS"
19088
ba4481b5
DL
19089fi
19090
c0d27fcc
MR
19091
19092echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
503d2be0
AS
19093echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19094if test "${emacs_cv_localtime_cache+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5
DL
19096else
19097 if test x$ac_cv_func_tzset = xyes; then
19098if test "$cross_compiling" = yes; then
19099 # If we have tzset, assume the worst when cross-compiling.
19100emacs_cv_localtime_cache=yes
19101else
503d2be0 19102 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19103/* confdefs.h. */
19104_ACEOF
19105cat confdefs.h >>conftest.$ac_ext
19106cat >>conftest.$ac_ext <<_ACEOF
19107/* end confdefs.h. */
ba4481b5 19108#include <time.h>
ba4481b5
DL
19109extern char **environ;
19110unset_TZ ()
19111{
19112 char **from, **to;
19113 for (to = from = environ; (*to = *from); from++)
19114 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19115 to++;
19116}
19117char TZ_GMT0[] = "TZ=GMT0";
19118char TZ_PST8[] = "TZ=PST8";
19119main()
19120{
19121 time_t now = time ((time_t *) 0);
19122 int hour_GMT0, hour_unset;
19123 if (putenv (TZ_GMT0) != 0)
19124 exit (1);
19125 hour_GMT0 = localtime (&now)->tm_hour;
19126 unset_TZ ();
19127 hour_unset = localtime (&now)->tm_hour;
19128 if (putenv (TZ_PST8) != 0)
19129 exit (1);
19130 if (localtime (&now)->tm_hour == hour_GMT0)
19131 exit (1);
19132 unset_TZ ();
19133 if (localtime (&now)->tm_hour != hour_unset)
19134 exit (1);
19135 exit (0);
19136}
503d2be0
AS
19137_ACEOF
19138rm -f conftest$ac_exeext
c0d27fcc 19139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
19140 (eval $ac_link) 2>&5
19141 ac_status=$?
c0d27fcc 19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
c0d27fcc 19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19148 (exit $ac_status); }; }; then
ba4481b5
DL
19149 emacs_cv_localtime_cache=no
19150else
503d2be0
AS
19151 echo "$as_me: program exited with status $ac_status" >&5
19152echo "$as_me: failed program was:" >&5
19650fd6
AS
19153sed 's/^/| /' conftest.$ac_ext >&5
19154
c0d27fcc 19155( exit $ac_status )
503d2be0 19156emacs_cv_localtime_cache=yes
ba4481b5 19157fi
35996d22 19158rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ba4481b5 19159fi
ba4481b5
DL
19160else
19161 # If we lack tzset, report that localtime does not cache TZ,
19162 # since we can't invalidate the cache if we don't have tzset.
19163 emacs_cv_localtime_cache=no
19164fi
19165fi
c0d27fcc 19166echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
503d2be0 19167echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
ba4481b5 19168if test $emacs_cv_localtime_cache = yes; then
b936fae4 19169
c0d27fcc 19170cat >>confdefs.h <<\_ACEOF
ba4481b5 19171#define LOCALTIME_CACHE 1
c0d27fcc 19172_ACEOF
ba4481b5
DL
19173
19174fi
19175
19176if test "x$HAVE_TIMEVAL" = xyes; then
503d2be0
AS
19177
19178for ac_func in gettimeofday
48d4b120 19179do
503d2be0 19180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 19181echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
19182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19183if eval "test \"\${$as_ac_var+set}\" = set"; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
48d4b120 19185else
503d2be0 19186 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19187/* confdefs.h. */
19188_ACEOF
19189cat confdefs.h >>conftest.$ac_ext
19190cat >>conftest.$ac_ext <<_ACEOF
19191/* end confdefs.h. */
35996d22
AS
19192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19194#define $ac_func innocuous_$ac_func
19195
48d4b120 19196/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
19197 which can conflict with char $ac_func (); below.
19198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19199 <limits.h> exists even on freestanding compilers. */
35996d22 19200
19650fd6
AS
19201#ifdef __STDC__
19202# include <limits.h>
19203#else
19204# include <assert.h>
19205#endif
35996d22
AS
19206
19207#undef $ac_func
19208
48d4b120 19209/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
19210#ifdef __cplusplus
19211extern "C"
19650fd6 19212{
503d2be0 19213#endif
48d4b120 19214/* We use char because int might match the return type of a gcc2
503d2be0
AS
19215 builtin and then its argument prototype would still apply. */
19216char $ac_func ();
48d4b120
DL
19217/* The GNU C library defines this for functions which it implements
19218 to always fail with ENOSYS. Some functions are actually named
19219 something starting with __ and the normal name is an alias. */
19220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19221choke me
19222#else
19650fd6
AS
19223char (*f) () = $ac_func;
19224#endif
19225#ifdef __cplusplus
19226}
cd958eb3
MB
19227#endif
19228
19650fd6
AS
19229int
19230main ()
19231{
19232return f != $ac_func;
503d2be0
AS
19233 ;
19234 return 0;
19235}
19236_ACEOF
19237rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 19238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 19239 (eval $ac_link) 2>conftest.er1
503d2be0 19240 ac_status=$?
35996d22
AS
19241 grep -v '^ *+' conftest.er1 >conftest.err
19242 rm -f conftest.er1
19243 cat conftest.err >&5
c0d27fcc 19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19245 (exit $ac_status); } &&
35996d22
AS
19246 { ac_try='test -z "$ac_c_werror_flag"
19247 || test ! -s conftest.err'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
c0d27fcc 19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
19258 (exit $ac_status); }; }; then
19259 eval "$as_ac_var=yes"
19260else
19261 echo "$as_me: failed program was:" >&5
19650fd6
AS
19262sed 's/^/| /' conftest.$ac_ext >&5
19263
503d2be0
AS
19264eval "$as_ac_var=no"
19265fi
35996d22
AS
19266rm -f conftest.err conftest.$ac_objext \
19267 conftest$ac_exeext conftest.$ac_ext
503d2be0 19268fi
c0d27fcc 19269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
19270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19271if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 19272 cat >>confdefs.h <<_ACEOF
503d2be0 19273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 19274_ACEOF
48d4b120 19275
48d4b120
DL
19276fi
19277done
19278
b936fae4 19279 if test $ac_cv_func_gettimeofday = yes; then
c0d27fcc 19280 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
503d2be0
AS
19281echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19282if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 19284else
503d2be0 19285 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19286/* confdefs.h. */
19287_ACEOF
19288cat confdefs.h >>conftest.$ac_ext
19289cat >>conftest.$ac_ext <<_ACEOF
19290/* end confdefs.h. */
ba4481b5 19291
a3f08d9e
DL
19292#ifdef TIME_WITH_SYS_TIME
19293#include <sys/time.h>
19294#include <time.h>
19295#else
19296#ifdef HAVE_SYS_TIME_H
19297#include <sys/time.h>
19298#else
19299#include <time.h>
19300#endif
19301#endif
503d2be0
AS
19302int
19303main ()
19304{
a3f08d9e 19305struct timeval time;
b936fae4 19306 gettimeofday (&time, 0);
503d2be0
AS
19307 ;
19308 return 0;
19309}
19310_ACEOF
19311rm -f conftest.$ac_objext
c0d27fcc 19312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19313 (eval $ac_compile) 2>conftest.er1
503d2be0 19314 ac_status=$?
35996d22
AS
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
c0d27fcc 19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19319 (exit $ac_status); } &&
35996d22
AS
19320 { ac_try='test -z "$ac_c_werror_flag"
19321 || test ! -s conftest.err'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
c0d27fcc 19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19332 (exit $ac_status); }; }; then
ba4481b5
DL
19333 emacs_cv_gettimeofday_two_arguments=yes
19334else
503d2be0 19335 echo "$as_me: failed program was:" >&5
19650fd6
AS
19336sed 's/^/| /' conftest.$ac_ext >&5
19337
503d2be0 19338emacs_cv_gettimeofday_two_arguments=no
ba4481b5 19339fi
35996d22 19340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 19341fi
c0d27fcc 19342echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
503d2be0 19343echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
b936fae4
AS
19344 if test $emacs_cv_gettimeofday_two_arguments = no; then
19345
c0d27fcc 19346cat >>confdefs.h <<\_ACEOF
ba4481b5 19347#define GETTIMEOFDAY_ONE_ARGUMENT 1
c0d27fcc 19348_ACEOF
ba4481b5 19349
b936fae4 19350 fi
ba4481b5
DL
19351 fi
19352fi
19353
973a76b1
DL
19354# This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19355echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19356echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19357if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19358 echo $ECHO_N "(cached) $ECHO_C" >&6
19359else
19360 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19361/* confdefs.h. */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h. */
973a76b1
DL
19366#include <sys/types.h>
19367#include <$ac_cv_struct_tm>
19368
19369
19370int
19371main ()
19372{
19373static struct tm ac_aggr;
19374if (ac_aggr.tm_zone)
19375return 0;
19376 ;
19377 return 0;
19378}
19379_ACEOF
19380rm -f conftest.$ac_objext
19381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19382 (eval $ac_compile) 2>conftest.er1
973a76b1 19383 ac_status=$?
35996d22
AS
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
973a76b1
DL
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
35996d22
AS
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
973a76b1
DL
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_cv_member_struct_tm_tm_zone=yes
19403else
19404 echo "$as_me: failed program was:" >&5
19650fd6
AS
19405sed 's/^/| /' conftest.$ac_ext >&5
19406
973a76b1 19407cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19408/* confdefs.h. */
19409_ACEOF
19410cat confdefs.h >>conftest.$ac_ext
19411cat >>conftest.$ac_ext <<_ACEOF
19412/* end confdefs.h. */
973a76b1
DL
19413#include <sys/types.h>
19414#include <$ac_cv_struct_tm>
19415
19416
19417int
19418main ()
19419{
19420static struct tm ac_aggr;
19421if (sizeof ac_aggr.tm_zone)
19422return 0;
19423 ;
19424 return 0;
19425}
19426_ACEOF
19427rm -f conftest.$ac_objext
19428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19429 (eval $ac_compile) 2>conftest.er1
973a76b1 19430 ac_status=$?
35996d22
AS
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
973a76b1
DL
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
35996d22
AS
19436 { ac_try='test -z "$ac_c_werror_flag"
19437 || test ! -s conftest.err'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; } &&
19443 { ac_try='test -s conftest.$ac_objext'
973a76b1
DL
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
19449 ac_cv_member_struct_tm_tm_zone=yes
19450else
19451 echo "$as_me: failed program was:" >&5
19650fd6
AS
19452sed 's/^/| /' conftest.$ac_ext >&5
19453
973a76b1
DL
19454ac_cv_member_struct_tm_tm_zone=no
19455fi
35996d22 19456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
973a76b1 19457fi
35996d22 19458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
973a76b1
DL
19459fi
19460echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19461echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19462if test $ac_cv_member_struct_tm_tm_zone = yes; then
19463
19464cat >>confdefs.h <<_ACEOF
19465#define HAVE_STRUCT_TM_TM_ZONE 1
19466_ACEOF
19467
19468
19469fi
19470
19471if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19472
19473cat >>confdefs.h <<\_ACEOF
19474#define HAVE_TM_ZONE 1
19475_ACEOF
19476
19477else
19478 echo "$as_me:$LINENO: checking for tzname" >&5
19479echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19480if test "${ac_cv_var_tzname+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19482else
19483 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19484/* confdefs.h. */
19485_ACEOF
19486cat confdefs.h >>conftest.$ac_ext
19487cat >>conftest.$ac_ext <<_ACEOF
19488/* end confdefs.h. */
973a76b1
DL
19489#include <time.h>
19490#ifndef tzname /* For SGI. */
19491extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19492#endif
19493
19494int
19495main ()
19496{
19497atoi(*tzname);
19498 ;
19499 return 0;
19500}
19501_ACEOF
19502rm -f conftest.$ac_objext conftest$ac_exeext
19503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 19504 (eval $ac_link) 2>conftest.er1
973a76b1 19505 ac_status=$?
35996d22
AS
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
973a76b1
DL
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
35996d22
AS
19511 { ac_try='test -z "$ac_c_werror_flag"
19512 || test ! -s conftest.err'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest$ac_exeext'
973a76b1
DL
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_var_tzname=yes
19525else
19526 echo "$as_me: failed program was:" >&5
19650fd6
AS
19527sed 's/^/| /' conftest.$ac_ext >&5
19528
973a76b1
DL
19529ac_cv_var_tzname=no
19530fi
35996d22
AS
19531rm -f conftest.err conftest.$ac_objext \
19532 conftest$ac_exeext conftest.$ac_ext
973a76b1
DL
19533fi
19534echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19535echo "${ECHO_T}$ac_cv_var_tzname" >&6
19536 if test $ac_cv_var_tzname = yes; then
19537
19538cat >>confdefs.h <<\_ACEOF
19539#define HAVE_TZNAME 1
19540_ACEOF
19541
19542 fi
19543fi
19544
19545
48d4b120 19546if test "$ac_cv_func_gettimeofday" = yes; then
c0d27fcc 19547 echo "$as_me:$LINENO: checking for struct timezone" >&5
503d2be0
AS
19548echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19549if test "${emacs_cv_struct_timezone+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
48d4b120 19551else
503d2be0 19552 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19553/* confdefs.h. */
19554_ACEOF
19555cat confdefs.h >>conftest.$ac_ext
19556cat >>conftest.$ac_ext <<_ACEOF
19557/* end confdefs.h. */
48d4b120 19558#include <sys/time.h>
503d2be0
AS
19559int
19560main ()
19561{
48d4b120 19562struct timezone tz;
503d2be0
AS
19563 ;
19564 return 0;
19565}
19566_ACEOF
19567rm -f conftest.$ac_objext
c0d27fcc 19568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19569 (eval $ac_compile) 2>conftest.er1
503d2be0 19570 ac_status=$?
35996d22
AS
19571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
c0d27fcc 19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19575 (exit $ac_status); } &&
35996d22
AS
19576 { ac_try='test -z "$ac_c_werror_flag"
19577 || 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_objext'
c0d27fcc 19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
c0d27fcc 19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19588 (exit $ac_status); }; }; then
48d4b120
DL
19589 if test "$cross_compiling" = yes; then
19590 emacs_cv_struct_timezone=yes
19591else
503d2be0 19592 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19593/* confdefs.h. */
19594_ACEOF
19595cat confdefs.h >>conftest.$ac_ext
19596cat >>conftest.$ac_ext <<_ACEOF
19597/* end confdefs.h. */
48d4b120
DL
19598
19599#ifdef TIME_WITH_SYS_TIME
19600#include <sys/time.h>
19601#include <time.h>
19602#else
19603#ifdef HAVE_SYS_TIME_H
19604#include <sys/time.h>
19605#else
19606#include <time.h>
19607#endif
19608#endif
19609main () {
19610 struct timeval time;
19611 struct timezone dummy;
19612 exit (gettimeofday (&time, &dummy));
19613}
503d2be0
AS
19614_ACEOF
19615rm -f conftest$ac_exeext
c0d27fcc 19616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
19617 (eval $ac_link) 2>&5
19618 ac_status=$?
c0d27fcc 19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19622 (eval $ac_try) 2>&5
19623 ac_status=$?
c0d27fcc 19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19625 (exit $ac_status); }; }; then
48d4b120
DL
19626 emacs_cv_struct_timezone=yes
19627else
503d2be0
AS
19628 echo "$as_me: program exited with status $ac_status" >&5
19629echo "$as_me: failed program was:" >&5
19650fd6
AS
19630sed 's/^/| /' conftest.$ac_ext >&5
19631
c0d27fcc 19632( exit $ac_status )
503d2be0 19633emacs_cv_struct_timezone=no
48d4b120 19634fi
35996d22 19635rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48d4b120 19636fi
48d4b120 19637else
503d2be0 19638 echo "$as_me: failed program was:" >&5
19650fd6
AS
19639sed 's/^/| /' conftest.$ac_ext >&5
19640
503d2be0 19641emacs_cv_struct_timezone=no
48d4b120 19642fi
35996d22 19643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48d4b120 19644fi
c0d27fcc 19645echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
503d2be0 19646echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
48d4b120
DL
19647fi
19648
ba4481b5 19649ok_so_far=yes
c0d27fcc 19650echo "$as_me:$LINENO: checking for socket" >&5
503d2be0
AS
19651echo $ECHO_N "checking for socket... $ECHO_C" >&6
19652if test "${ac_cv_func_socket+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 19654else
503d2be0 19655 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19656/* confdefs.h. */
19657_ACEOF
19658cat confdefs.h >>conftest.$ac_ext
19659cat >>conftest.$ac_ext <<_ACEOF
19660/* end confdefs.h. */
35996d22
AS
19661/* Define socket to an innocuous variant, in case <limits.h> declares socket.
19662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19663#define socket innocuous_socket
19664
ba4481b5 19665/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
19666 which can conflict with char socket (); below.
19667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19668 <limits.h> exists even on freestanding compilers. */
35996d22 19669
19650fd6
AS
19670#ifdef __STDC__
19671# include <limits.h>
19672#else
19673# include <assert.h>
19674#endif
35996d22
AS
19675
19676#undef socket
19677
ba4481b5 19678/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
19679#ifdef __cplusplus
19680extern "C"
19650fd6 19681{
503d2be0 19682#endif
ba4481b5 19683/* We use char because int might match the return type of a gcc2
503d2be0
AS
19684 builtin and then its argument prototype would still apply. */
19685char socket ();
ba4481b5
DL
19686/* The GNU C library defines this for functions which it implements
19687 to always fail with ENOSYS. Some functions are actually named
19688 something starting with __ and the normal name is an alias. */
19689#if defined (__stub_socket) || defined (__stub___socket)
19690choke me
19691#else
19650fd6
AS
19692char (*f) () = socket;
19693#endif
19694#ifdef __cplusplus
19695}
cd958eb3
MB
19696#endif
19697
19650fd6
AS
19698int
19699main ()
19700{
19701return f != socket;
503d2be0
AS
19702 ;
19703 return 0;
19704}
19705_ACEOF
19706rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 19707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 19708 (eval $ac_link) 2>conftest.er1
503d2be0 19709 ac_status=$?
35996d22
AS
19710 grep -v '^ *+' conftest.er1 >conftest.err
19711 rm -f conftest.er1
19712 cat conftest.err >&5
c0d27fcc 19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19714 (exit $ac_status); } &&
35996d22
AS
19715 { ac_try='test -z "$ac_c_werror_flag"
19716 || test ! -s conftest.err'
19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718 (eval $ac_try) 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; } &&
19722 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19724 (eval $ac_try) 2>&5
19725 ac_status=$?
c0d27fcc 19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
19727 (exit $ac_status); }; }; then
19728 ac_cv_func_socket=yes
19729else
19730 echo "$as_me: failed program was:" >&5
19650fd6
AS
19731sed 's/^/| /' conftest.$ac_ext >&5
19732
503d2be0
AS
19733ac_cv_func_socket=no
19734fi
35996d22
AS
19735rm -f conftest.err conftest.$ac_objext \
19736 conftest$ac_exeext conftest.$ac_ext
503d2be0 19737fi
c0d27fcc 19738echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
503d2be0
AS
19739echo "${ECHO_T}$ac_cv_func_socket" >&6
19740if test $ac_cv_func_socket = yes; then
ba4481b5
DL
19741 :
19742else
503d2be0 19743 ok_so_far=no
ba4481b5
DL
19744fi
19745
19746if test $ok_so_far = yes; then
c0d27fcc
MR
19747 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19748 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
503d2be0
AS
19749echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19750if test "${ac_cv_header_netinet_in_h+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
19752fi
19753echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19754echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
98418dba 19755else
c0d27fcc
MR
19756 # Is the header compilable?
19757echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19758echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19759cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19760/* confdefs.h. */
19761_ACEOF
19762cat confdefs.h >>conftest.$ac_ext
19763cat >>conftest.$ac_ext <<_ACEOF
19764/* end confdefs.h. */
c0d27fcc
MR
19765$ac_includes_default
19766#include <netinet/in.h>
19767_ACEOF
19768rm -f conftest.$ac_objext
19769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19770 (eval $ac_compile) 2>conftest.er1
c0d27fcc 19771 ac_status=$?
35996d22
AS
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
c0d27fcc
MR
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
35996d22
AS
19777 { ac_try='test -z "$ac_c_werror_flag"
19778 || test ! -s conftest.err'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_header_compiler=yes
19791else
19792 echo "$as_me: failed program was:" >&5
19650fd6
AS
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
c0d27fcc
MR
19795ac_header_compiler=no
19796fi
35996d22 19797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
19798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19799echo "${ECHO_T}$ac_header_compiler" >&6
19800
19801# Is the header present?
19802echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19803echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19804cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19805/* confdefs.h. */
19806_ACEOF
19807cat confdefs.h >>conftest.$ac_ext
19808cat >>conftest.$ac_ext <<_ACEOF
19809/* end confdefs.h. */
ba4481b5 19810#include <netinet/in.h>
503d2be0 19811_ACEOF
c0d27fcc 19812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
19813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19814 ac_status=$?
6bae0ccf 19815 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
19816 rm -f conftest.er1
19817 cat conftest.err >&5
c0d27fcc 19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
19819 (exit $ac_status); } >/dev/null; then
19820 if test -s conftest.err; then
19821 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 19822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
19823 else
19824 ac_cpp_err=
19825 fi
19826else
19827 ac_cpp_err=yes
19828fi
19829if test -z "$ac_cpp_err"; then
c0d27fcc 19830 ac_header_preproc=yes
ba4481b5 19831else
503d2be0 19832 echo "$as_me: failed program was:" >&5
19650fd6
AS
19833sed 's/^/| /' conftest.$ac_ext >&5
19834
c0d27fcc 19835 ac_header_preproc=no
ba4481b5 19836fi
503d2be0 19837rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
19838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19839echo "${ECHO_T}$ac_header_preproc" >&6
19840
19841# So? What about this header?
35996d22
AS
19842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19843 yes:no: )
c0d27fcc
MR
19844 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19845echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
19846 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19847echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19848 ac_header_preproc=yes
19650fd6 19849 ;;
35996d22 19850 no:yes:* )
c0d27fcc
MR
19851 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19852echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
35996d22
AS
19853 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19854echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19856echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19857 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19858echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 19859 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19650fd6 19860echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
19861 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19862echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
19863 (
19864 cat <<\_ASBOX
35996d22
AS
19865## ------------------------------------------ ##
19866## Report this to the AC_PACKAGE_NAME lists. ##
19867## ------------------------------------------ ##
19650fd6
AS
19868_ASBOX
19869 ) |
19870 sed "s/^/$as_me: WARNING: /" >&2
19871 ;;
c0d27fcc
MR
19872esac
19873echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19874echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19875if test "${ac_cv_header_netinet_in_h+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877else
19878 ac_cv_header_netinet_in_h=$ac_header_preproc
ba4481b5 19879fi
c0d27fcc 19880echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
503d2be0 19881echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
c0d27fcc
MR
19882
19883fi
503d2be0 19884if test $ac_cv_header_netinet_in_h = yes; then
ba4481b5
DL
19885 :
19886else
503d2be0 19887 ok_so_far=no
ba4481b5
DL
19888fi
19889
c0d27fcc 19890
ba4481b5
DL
19891fi
19892if test $ok_so_far = yes; then
c0d27fcc
MR
19893 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19894 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
503d2be0
AS
19895echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19896if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
19898fi
19899echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19900echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
98418dba 19901else
c0d27fcc
MR
19902 # Is the header compilable?
19903echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19904echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19905cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19906/* confdefs.h. */
19907_ACEOF
19908cat confdefs.h >>conftest.$ac_ext
19909cat >>conftest.$ac_ext <<_ACEOF
19910/* end confdefs.h. */
c0d27fcc
MR
19911$ac_includes_default
19912#include <arpa/inet.h>
19913_ACEOF
19914rm -f conftest.$ac_objext
19915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19916 (eval $ac_compile) 2>conftest.er1
c0d27fcc 19917 ac_status=$?
35996d22
AS
19918 grep -v '^ *+' conftest.er1 >conftest.err
19919 rm -f conftest.er1
19920 cat conftest.err >&5
c0d27fcc
MR
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
35996d22
AS
19923 { ac_try='test -z "$ac_c_werror_flag"
19924 || test ! -s conftest.err'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; } &&
19930 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19933 ac_status=$?
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; }; then
19936 ac_header_compiler=yes
19937else
19938 echo "$as_me: failed program was:" >&5
19650fd6
AS
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
c0d27fcc
MR
19941ac_header_compiler=no
19942fi
35996d22 19943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
19944echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19945echo "${ECHO_T}$ac_header_compiler" >&6
19946
19947# Is the header present?
19948echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19949echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19950cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19951/* confdefs.h. */
19952_ACEOF
19953cat confdefs.h >>conftest.$ac_ext
19954cat >>conftest.$ac_ext <<_ACEOF
19955/* end confdefs.h. */
ba4481b5 19956#include <arpa/inet.h>
503d2be0 19957_ACEOF
c0d27fcc 19958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
19959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19960 ac_status=$?
6bae0ccf 19961 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
19962 rm -f conftest.er1
19963 cat conftest.err >&5
c0d27fcc 19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
19965 (exit $ac_status); } >/dev/null; then
19966 if test -s conftest.err; then
19967 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 19968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
19969 else
19970 ac_cpp_err=
19971 fi
19972else
19973 ac_cpp_err=yes
19974fi
19975if test -z "$ac_cpp_err"; then
c0d27fcc 19976 ac_header_preproc=yes
ba4481b5 19977else
503d2be0 19978 echo "$as_me: failed program was:" >&5
19650fd6
AS
19979sed 's/^/| /' conftest.$ac_ext >&5
19980
c0d27fcc 19981 ac_header_preproc=no
ba4481b5 19982fi
503d2be0 19983rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
19984echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19985echo "${ECHO_T}$ac_header_preproc" >&6
19986
19987# So? What about this header?
35996d22
AS
19988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19989 yes:no: )
c0d27fcc
MR
19990 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19991echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
19992 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19993echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19994 ac_header_preproc=yes
19650fd6 19995 ;;
35996d22 19996 no:yes:* )
c0d27fcc
MR
19997 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19998echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
35996d22
AS
19999 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20000echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20002echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20003 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20004echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 20005 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19650fd6 20006echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
20007 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20008echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
20009 (
20010 cat <<\_ASBOX
35996d22
AS
20011## ------------------------------------------ ##
20012## Report this to the AC_PACKAGE_NAME lists. ##
20013## ------------------------------------------ ##
19650fd6
AS
20014_ASBOX
20015 ) |
20016 sed "s/^/$as_me: WARNING: /" >&2
20017 ;;
c0d27fcc
MR
20018esac
20019echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20020echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20021if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023else
20024 ac_cv_header_arpa_inet_h=$ac_header_preproc
ba4481b5 20025fi
c0d27fcc 20026echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
503d2be0 20027echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
c0d27fcc
MR
20028
20029fi
503d2be0 20030if test $ac_cv_header_arpa_inet_h = yes; then
ba4481b5
DL
20031 :
20032else
503d2be0 20033 ok_so_far=no
ba4481b5
DL
20034fi
20035
c0d27fcc 20036
ba4481b5
DL
20037fi
20038if test $ok_so_far = yes; then
b936fae4 20039
c0d27fcc 20040cat >>confdefs.h <<\_ACEOF
ba4481b5 20041#define HAVE_INET_SOCKETS 1
c0d27fcc 20042_ACEOF
ba4481b5
DL
20043
20044fi
20045
2d2b6695 20046
7862d3a8 20047for ac_header in sys/ioctl.h
2d2b6695
KS
20048do
20049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20050if eval "test \"\${$as_ac_Header+set}\" = set"; then
20051 echo "$as_me:$LINENO: checking for $ac_header" >&5
20052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20053if eval "test \"\${$as_ac_Header+set}\" = set"; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055fi
20056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20058else
20059 # Is the header compilable?
20060echo "$as_me:$LINENO: checking $ac_header usability" >&5
20061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20062cat >conftest.$ac_ext <<_ACEOF
2d2b6695
KS
20063/* confdefs.h. */
20064_ACEOF
20065cat confdefs.h >>conftest.$ac_ext
20066cat >>conftest.$ac_ext <<_ACEOF
20067/* end confdefs.h. */
20068$ac_includes_default
20069#include <$ac_header>
20070_ACEOF
20071rm -f conftest.$ac_objext
20072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20073 (eval $ac_compile) 2>conftest.er1
2d2b6695 20074 ac_status=$?
35996d22
AS
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
2d2b6695
KS
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } &&
35996d22
AS
20080 { ac_try='test -z "$ac_c_werror_flag"
20081 || test ! -s conftest.err'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; } &&
20087 { ac_try='test -s conftest.$ac_objext'
2d2b6695
KS
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; }; then
20093 ac_header_compiler=yes
20094else
20095 echo "$as_me: failed program was:" >&5
20096sed 's/^/| /' conftest.$ac_ext >&5
20097
20098ac_header_compiler=no
20099fi
35996d22 20100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2d2b6695
KS
20101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20102echo "${ECHO_T}$ac_header_compiler" >&6
20103
20104# Is the header present?
20105echo "$as_me:$LINENO: checking $ac_header presence" >&5
20106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20107cat >conftest.$ac_ext <<_ACEOF
2d2b6695
KS
20108/* confdefs.h. */
20109_ACEOF
20110cat confdefs.h >>conftest.$ac_ext
20111cat >>conftest.$ac_ext <<_ACEOF
20112/* end confdefs.h. */
20113#include <$ac_header>
20114_ACEOF
20115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20117 ac_status=$?
20118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } >/dev/null; then
20123 if test -s conftest.err; then
20124 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 20125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2d2b6695
KS
20126 else
20127 ac_cpp_err=
20128 fi
20129else
20130 ac_cpp_err=yes
20131fi
20132if test -z "$ac_cpp_err"; then
20133 ac_header_preproc=yes
20134else
20135 echo "$as_me: failed program was:" >&5
20136sed 's/^/| /' conftest.$ac_ext >&5
20137
20138 ac_header_preproc=no
20139fi
20140rm -f conftest.err conftest.$ac_ext
20141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20142echo "${ECHO_T}$ac_header_preproc" >&6
20143
20144# So? What about this header?
35996d22
AS
20145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20146 yes:no: )
2d2b6695
KS
20147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
20149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20151 ac_header_preproc=yes
2d2b6695 20152 ;;
35996d22 20153 no:yes:* )
2d2b6695
KS
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20161echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2d2b6695
KS
20162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
20164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2d2b6695
KS
20166 (
20167 cat <<\_ASBOX
35996d22
AS
20168## ------------------------------------------ ##
20169## Report this to the AC_PACKAGE_NAME lists. ##
20170## ------------------------------------------ ##
2d2b6695
KS
20171_ASBOX
20172 ) |
20173 sed "s/^/$as_me: WARNING: /" >&2
20174 ;;
20175esac
20176echo "$as_me:$LINENO: checking for $ac_header" >&5
20177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20178if eval "test \"\${$as_ac_Header+set}\" = set"; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20180else
35996d22 20181 eval "$as_ac_Header=\$ac_header_preproc"
2d2b6695
KS
20182fi
20183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20185
20186fi
20187if test `eval echo '${'$as_ac_Header'}'` = yes; then
20188 cat >>confdefs.h <<_ACEOF
20189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20190_ACEOF
20191
20192fi
20193
20194done
20195
20196
ba4481b5 20197if test -f /usr/lpp/X11/bin/smt.exp; then
b936fae4 20198
c0d27fcc 20199cat >>confdefs.h <<\_ACEOF
ba4481b5 20200#define HAVE_AIX_SMT_EXP 1
c0d27fcc 20201_ACEOF
ba4481b5
DL
20202
20203fi
20204
c0d27fcc 20205echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
503d2be0 20206echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
3d9fec71 20207if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
c0d27fcc 20208 echo "$as_me:$LINENO: result: yes" >&5
503d2be0 20209echo "${ECHO_T}yes" >&6
b936fae4 20210
c0d27fcc 20211cat >>confdefs.h <<\_ACEOF
3d9fec71 20212#define HAVE_DEV_PTMX 1
c0d27fcc 20213_ACEOF
3d9fec71
DL
20214
20215else
c0d27fcc 20216 echo "$as_me:$LINENO: result: no" >&5
503d2be0 20217echo "${ECHO_T}no" >&6
3d9fec71
DL
20218fi
20219
c0d27fcc 20220echo "$as_me:$LINENO: checking for pid_t" >&5
503d2be0
AS
20221echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20222if test "${ac_cv_type_pid_t+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
647847ea 20224else
503d2be0 20225 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20226/* confdefs.h. */
20227_ACEOF
20228cat confdefs.h >>conftest.$ac_ext
20229cat >>conftest.$ac_ext <<_ACEOF
20230/* end confdefs.h. */
503d2be0
AS
20231$ac_includes_default
20232int
20233main ()
20234{
20235if ((pid_t *) 0)
20236 return 0;
20237if (sizeof (pid_t))
20238 return 0;
20239 ;
20240 return 0;
20241}
20242_ACEOF
20243rm -f conftest.$ac_objext
c0d27fcc 20244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20245 (eval $ac_compile) 2>conftest.er1
503d2be0 20246 ac_status=$?
35996d22
AS
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
c0d27fcc 20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20251 (exit $ac_status); } &&
35996d22
AS
20252 { ac_try='test -z "$ac_c_werror_flag"
20253 || test ! -s conftest.err'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
c0d27fcc 20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20264 (exit $ac_status); }; }; then
647847ea
DL
20265 ac_cv_type_pid_t=yes
20266else
503d2be0 20267 echo "$as_me: failed program was:" >&5
19650fd6
AS
20268sed 's/^/| /' conftest.$ac_ext >&5
20269
503d2be0 20270ac_cv_type_pid_t=no
647847ea 20271fi
35996d22 20272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
647847ea 20273fi
c0d27fcc 20274echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
503d2be0
AS
20275echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20276if test $ac_cv_type_pid_t = yes; then
20277 :
20278else
20279
c0d27fcc 20280cat >>confdefs.h <<_ACEOF
647847ea 20281#define pid_t int
c0d27fcc 20282_ACEOF
647847ea
DL
20283
20284fi
20285
c0d27fcc
MR
20286
20287
503d2be0
AS
20288for ac_header in unistd.h vfork.h
20289do
20290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
20291if eval "test \"\${$as_ac_Header+set}\" = set"; then
20292 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
20293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20294if eval "test \"\${$as_ac_Header+set}\" = set"; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
20296fi
20297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 20299else
c0d27fcc
MR
20300 # Is the header compilable?
20301echo "$as_me:$LINENO: checking $ac_header usability" >&5
20302echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20303cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20304/* confdefs.h. */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h. */
c0d27fcc
MR
20309$ac_includes_default
20310#include <$ac_header>
20311_ACEOF
20312rm -f conftest.$ac_objext
20313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20314 (eval $ac_compile) 2>conftest.er1
c0d27fcc 20315 ac_status=$?
35996d22
AS
20316 grep -v '^ *+' conftest.er1 >conftest.err
20317 rm -f conftest.er1
20318 cat conftest.err >&5
c0d27fcc
MR
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
35996d22
AS
20321 { ac_try='test -z "$ac_c_werror_flag"
20322 || test ! -s conftest.err'
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; } &&
20328 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; }; then
20334 ac_header_compiler=yes
20335else
20336 echo "$as_me: failed program was:" >&5
19650fd6
AS
20337sed 's/^/| /' conftest.$ac_ext >&5
20338
c0d27fcc
MR
20339ac_header_compiler=no
20340fi
35996d22 20341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
20342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20343echo "${ECHO_T}$ac_header_compiler" >&6
20344
20345# Is the header present?
20346echo "$as_me:$LINENO: checking $ac_header presence" >&5
20347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20348cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20349/* confdefs.h. */
20350_ACEOF
20351cat confdefs.h >>conftest.$ac_ext
20352cat >>conftest.$ac_ext <<_ACEOF
20353/* end confdefs.h. */
503d2be0
AS
20354#include <$ac_header>
20355_ACEOF
c0d27fcc 20356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
20357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20358 ac_status=$?
6bae0ccf 20359 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
20360 rm -f conftest.er1
20361 cat conftest.err >&5
c0d27fcc 20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
20363 (exit $ac_status); } >/dev/null; then
20364 if test -s conftest.err; then
20365 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 20366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
20367 else
20368 ac_cpp_err=
20369 fi
647847ea 20370else
503d2be0
AS
20371 ac_cpp_err=yes
20372fi
20373if test -z "$ac_cpp_err"; then
c0d27fcc 20374 ac_header_preproc=yes
647847ea 20375else
503d2be0 20376 echo "$as_me: failed program was:" >&5
19650fd6
AS
20377sed 's/^/| /' conftest.$ac_ext >&5
20378
c0d27fcc 20379 ac_header_preproc=no
647847ea 20380fi
503d2be0 20381rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
20382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20383echo "${ECHO_T}$ac_header_preproc" >&6
20384
20385# So? What about this header?
35996d22
AS
20386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20387 yes:no: )
c0d27fcc
MR
20388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20392 ac_header_preproc=yes
19650fd6 20393 ;;
35996d22 20394 no:yes:* )
c0d27fcc
MR
20395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
20397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20398echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20402echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 20403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 20404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
20405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
20407 (
20408 cat <<\_ASBOX
35996d22
AS
20409## ------------------------------------------ ##
20410## Report this to the AC_PACKAGE_NAME lists. ##
20411## ------------------------------------------ ##
19650fd6
AS
20412_ASBOX
20413 ) |
20414 sed "s/^/$as_me: WARNING: /" >&2
20415 ;;
c0d27fcc
MR
20416esac
20417echo "$as_me:$LINENO: checking for $ac_header" >&5
20418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20419if eval "test \"\${$as_ac_Header+set}\" = set"; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20421else
35996d22 20422 eval "$as_ac_Header=\$ac_header_preproc"
647847ea 20423fi
c0d27fcc 20424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 20425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
20426
20427fi
503d2be0 20428if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 20429 cat >>confdefs.h <<_ACEOF
503d2be0 20430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 20431_ACEOF
647847ea 20432
73b77ee5 20433fi
c0d27fcc 20434
503d2be0 20435done
73b77ee5 20436
c0d27fcc
MR
20437
20438
503d2be0
AS
20439for ac_func in fork vfork
20440do
20441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 20442echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
20443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20444if eval "test \"\${$as_ac_var+set}\" = set"; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
fa0b693c 20446else
503d2be0 20447 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20448/* confdefs.h. */
20449_ACEOF
20450cat confdefs.h >>conftest.$ac_ext
20451cat >>conftest.$ac_ext <<_ACEOF
20452/* end confdefs.h. */
35996d22
AS
20453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20455#define $ac_func innocuous_$ac_func
20456
fa0b693c 20457/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
20458 which can conflict with char $ac_func (); below.
20459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20460 <limits.h> exists even on freestanding compilers. */
35996d22 20461
19650fd6
AS
20462#ifdef __STDC__
20463# include <limits.h>
20464#else
20465# include <assert.h>
20466#endif
35996d22
AS
20467
20468#undef $ac_func
20469
fa0b693c 20470/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
20471#ifdef __cplusplus
20472extern "C"
19650fd6 20473{
503d2be0 20474#endif
fa0b693c 20475/* We use char because int might match the return type of a gcc2
503d2be0
AS
20476 builtin and then its argument prototype would still apply. */
20477char $ac_func ();
fa0b693c
GM
20478/* The GNU C library defines this for functions which it implements
20479 to always fail with ENOSYS. Some functions are actually named
20480 something starting with __ and the normal name is an alias. */
503d2be0 20481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
fa0b693c
GM
20482choke me
20483#else
19650fd6
AS
20484char (*f) () = $ac_func;
20485#endif
20486#ifdef __cplusplus
20487}
fa0b693c
GM
20488#endif
20489
19650fd6
AS
20490int
20491main ()
20492{
20493return f != $ac_func;
503d2be0
AS
20494 ;
20495 return 0;
20496}
20497_ACEOF
20498rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 20499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 20500 (eval $ac_link) 2>conftest.er1
503d2be0 20501 ac_status=$?
35996d22
AS
20502 grep -v '^ *+' conftest.er1 >conftest.err
20503 rm -f conftest.er1
20504 cat conftest.err >&5
c0d27fcc 20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20506 (exit $ac_status); } &&
35996d22
AS
20507 { ac_try='test -z "$ac_c_werror_flag"
20508 || test ! -s conftest.err'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; } &&
20514 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
c0d27fcc 20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
20519 (exit $ac_status); }; }; then
20520 eval "$as_ac_var=yes"
20521else
20522 echo "$as_me: failed program was:" >&5
19650fd6
AS
20523sed 's/^/| /' conftest.$ac_ext >&5
20524
503d2be0
AS
20525eval "$as_ac_var=no"
20526fi
35996d22
AS
20527rm -f conftest.err conftest.$ac_objext \
20528 conftest$ac_exeext conftest.$ac_ext
503d2be0 20529fi
c0d27fcc 20530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
20531echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20532if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 20533 cat >>confdefs.h <<_ACEOF
503d2be0 20534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 20535_ACEOF
503d2be0 20536
fa0b693c 20537fi
503d2be0 20538done
fa0b693c 20539
503d2be0 20540if test "x$ac_cv_func_fork" = xyes; then
c0d27fcc 20541 echo "$as_me:$LINENO: checking for working fork" >&5
503d2be0
AS
20542echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20543if test "${ac_cv_func_fork_works+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
fa0b693c 20545else
503d2be0
AS
20546 if test "$cross_compiling" = yes; then
20547 ac_cv_func_fork_works=cross
20548else
20549 cat >conftest.$ac_ext <<_ACEOF
c0d27fcc 20550/* By Ruediger Kuhlmann. */
503d2be0
AS
20551 #include <sys/types.h>
20552 #if HAVE_UNISTD_H
20553 # include <unistd.h>
20554 #endif
20555 /* Some systems only have a dummy stub for fork() */
20556 int main ()
20557 {
35996d22
AS
20558 if (fork() < 0)
20559 exit (1);
20560 exit (0);
503d2be0
AS
20561 }
20562_ACEOF
20563rm -f conftest$ac_exeext
c0d27fcc 20564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
20565 (eval $ac_link) 2>&5
20566 ac_status=$?
c0d27fcc 20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
c0d27fcc 20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
20573 (exit $ac_status); }; }; then
20574 ac_cv_func_fork_works=yes
20575else
20576 echo "$as_me: program exited with status $ac_status" >&5
20577echo "$as_me: failed program was:" >&5
19650fd6
AS
20578sed 's/^/| /' conftest.$ac_ext >&5
20579
c0d27fcc 20580( exit $ac_status )
503d2be0
AS
20581ac_cv_func_fork_works=no
20582fi
35996d22 20583rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
20584fi
20585fi
c0d27fcc 20586echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
503d2be0
AS
20587echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20588
6bae0ccf
DL
20589else
20590 ac_cv_func_fork_works=$ac_cv_func_fork
503d2be0
AS
20591fi
20592if test "x$ac_cv_func_fork_works" = xcross; then
20593 case $host in
20594 *-*-amigaos* | *-*-msdosdjgpp*)
20595 # Override, as these systems have only a dummy fork() stub
20596 ac_cv_func_fork_works=no
20597 ;;
20598 *)
20599 ac_cv_func_fork_works=yes
20600 ;;
20601 esac
c0d27fcc
MR
20602 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20603echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fa0b693c 20604fi
73b77ee5 20605ac_cv_func_vfork_works=$ac_cv_func_vfork
503d2be0 20606if test "x$ac_cv_func_vfork" = xyes; then
c0d27fcc 20607 echo "$as_me:$LINENO: checking for working vfork" >&5
503d2be0
AS
20608echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20609if test "${ac_cv_func_vfork_works+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611else
20612 if test "$cross_compiling" = yes; then
20613 ac_cv_func_vfork_works=cross
fa0b693c 20614else
503d2be0 20615 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20616/* confdefs.h. */
20617_ACEOF
20618cat confdefs.h >>conftest.$ac_ext
20619cat >>conftest.$ac_ext <<_ACEOF
20620/* end confdefs.h. */
73b77ee5
GM
20621/* Thanks to Paul Eggert for this test. */
20622#include <stdio.h>
19650fd6 20623#include <stdlib.h>
fa0b693c 20624#include <sys/types.h>
73b77ee5 20625#include <sys/stat.h>
19650fd6 20626#include <sys/wait.h>
503d2be0
AS
20627#if HAVE_UNISTD_H
20628# include <unistd.h>
73b77ee5 20629#endif
503d2be0
AS
20630#if HAVE_VFORK_H
20631# include <vfork.h>
73b77ee5
GM
20632#endif
20633/* On some sparc systems, changes by the child to local and incoming
503d2be0
AS
20634 argument registers are propagated back to the parent. The compiler
20635 is told about this with #include <vfork.h>, but some compilers
20636 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20637 static variable whose address is put into a register that is
20638 clobbered by the vfork. */
19650fd6 20639static void
fa0b693c 20640#ifdef __cplusplus
73b77ee5 20641sparc_address_test (int arg)
503d2be0 20642# else
73b77ee5 20643sparc_address_test (arg) int arg;
fa0b693c 20644#endif
fa0b693c 20645{
73b77ee5
GM
20646 static pid_t child;
20647 if (!child) {
20648 child = vfork ();
20649 if (child < 0) {
20650 perror ("vfork");
20651 _exit(2);
20652 }
20653 if (!child) {
20654 arg = getpid();
20655 write(-1, "", 0);
20656 _exit (arg);
20657 }
20658 }
20659}
503d2be0
AS
20660
20661int
20662main ()
20663{
73b77ee5
GM
20664 pid_t parent = getpid ();
20665 pid_t child;
fa0b693c 20666
19650fd6 20667 sparc_address_test (0);
fa0b693c 20668
73b77ee5 20669 child = vfork ();
fa0b693c 20670
73b77ee5 20671 if (child == 0) {
503d2be0
AS
20672 /* Here is another test for sparc vfork register problems. This
20673 test uses lots of local variables, at least as many local
20674 variables as main has allocated so far including compiler
20675 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20676 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20677 reuse the register of parent for one of the local variables,
20678 since it will think that parent can't possibly be used any more
20679 in this routine. Assigning to the local variable will thus
20680 munge parent in the parent process. */
73b77ee5
GM
20681 pid_t
20682 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20683 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20684 /* Convince the compiler that p..p7 are live; otherwise, it might
20685 use the same hardware register for all 8 local variables. */
20686 if (p != p1 || p != p2 || p != p3 || p != p4
20687 || p != p5 || p != p6 || p != p7)
20688 _exit(1);
fa0b693c 20689
503d2be0
AS
20690 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20691 from child file descriptors. If the child closes a descriptor
20692 before it execs or exits, this munges the parent's descriptor
20693 as well. Test for this by closing stdout in the child. */
73b77ee5
GM
20694 _exit(close(fileno(stdout)) != 0);
20695 } else {
20696 int status;
20697 struct stat st;
20698
20699 while (wait(&status) != child)
20700 ;
20701 exit(
20702 /* Was there some problem with vforking? */
20703 child < 0
20704
20705 /* Did the child fail? (This shouldn't happen.) */
20706 || status
20707
20708 /* Did the vfork/compiler bug occur? */
20709 || parent != getpid()
fa0b693c 20710
73b77ee5
GM
20711 /* Did the file descriptor bug occur? */
20712 || fstat(fileno(stdout), &st) != 0
20713 );
20714 }
20715}
503d2be0
AS
20716_ACEOF
20717rm -f conftest$ac_exeext
c0d27fcc 20718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
20719 (eval $ac_link) 2>&5
20720 ac_status=$?
c0d27fcc 20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
c0d27fcc 20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20727 (exit $ac_status); }; }; then
73b77ee5 20728 ac_cv_func_vfork_works=yes
fa0b693c 20729else
503d2be0
AS
20730 echo "$as_me: program exited with status $ac_status" >&5
20731echo "$as_me: failed program was:" >&5
19650fd6
AS
20732sed 's/^/| /' conftest.$ac_ext >&5
20733
c0d27fcc 20734( exit $ac_status )
503d2be0
AS
20735ac_cv_func_vfork_works=no
20736fi
35996d22 20737rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fa0b693c 20738fi
fa0b693c 20739fi
c0d27fcc 20740echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
503d2be0 20741echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
fa0b693c 20742
503d2be0
AS
20743fi;
20744if test "x$ac_cv_func_fork_works" = xcross; then
35996d22 20745 ac_cv_func_vfork_works=$ac_cv_func_vfork
c0d27fcc
MR
20746 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20747echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fa0b693c
GM
20748fi
20749
503d2be0
AS
20750if test "x$ac_cv_func_vfork_works" = xyes; then
20751
c0d27fcc 20752cat >>confdefs.h <<\_ACEOF
503d2be0 20753#define HAVE_WORKING_VFORK 1
c0d27fcc 20754_ACEOF
503d2be0
AS
20755
20756else
20757
c0d27fcc 20758cat >>confdefs.h <<\_ACEOF
73b77ee5 20759#define vfork fork
c0d27fcc 20760_ACEOF
fa0b693c
GM
20761
20762fi
503d2be0
AS
20763if test "x$ac_cv_func_fork_works" = xyes; then
20764
c0d27fcc 20765cat >>confdefs.h <<\_ACEOF
503d2be0 20766#define HAVE_WORKING_FORK 1
c0d27fcc 20767_ACEOF
fa0b693c 20768
503d2be0 20769fi
647847ea 20770
c0d27fcc 20771
6a3a24fa
JD
20772echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20773echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20774if test "${emacs_cv_langinfo_codeset+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776else
20777 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20778/* confdefs.h. */
20779_ACEOF
20780cat confdefs.h >>conftest.$ac_ext
20781cat >>conftest.$ac_ext <<_ACEOF
20782/* end confdefs.h. */
6a3a24fa
JD
20783#include <langinfo.h>
20784int
20785main ()
20786{
20787char* cs = nl_langinfo(CODESET);
20788 ;
20789 return 0;
20790}
20791_ACEOF
20792rm -f conftest.$ac_objext conftest$ac_exeext
20793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 20794 (eval $ac_link) 2>conftest.er1
6a3a24fa 20795 ac_status=$?
35996d22
AS
20796 grep -v '^ *+' conftest.er1 >conftest.err
20797 rm -f conftest.er1
20798 cat conftest.err >&5
6a3a24fa
JD
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } &&
35996d22
AS
20801 { ac_try='test -z "$ac_c_werror_flag"
20802 || test ! -s conftest.err'
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; } &&
20808 { ac_try='test -s conftest$ac_exeext'
6a3a24fa
JD
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 emacs_cv_langinfo_codeset=yes
20815else
20816 echo "$as_me: failed program was:" >&5
19650fd6
AS
20817sed 's/^/| /' conftest.$ac_ext >&5
20818
6a3a24fa
JD
20819emacs_cv_langinfo_codeset=no
20820fi
35996d22
AS
20821rm -f conftest.err conftest.$ac_objext \
20822 conftest$ac_exeext conftest.$ac_ext
6a3a24fa
JD
20823
20824fi
20825echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20826echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20827if test $emacs_cv_langinfo_codeset = yes; then
20828
20829cat >>confdefs.h <<\_ACEOF
20830#define HAVE_LANGINFO_CODESET 1
20831_ACEOF
20832
20833fi
20834
c0d27fcc 20835echo "$as_me:$LINENO: checking for size_t" >&5
503d2be0
AS
20836echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20837if test "${ac_cv_type_size_t+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
8730a8da 20839else
503d2be0 20840 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20841/* confdefs.h. */
20842_ACEOF
20843cat confdefs.h >>conftest.$ac_ext
20844cat >>conftest.$ac_ext <<_ACEOF
20845/* end confdefs.h. */
503d2be0
AS
20846$ac_includes_default
20847int
20848main ()
20849{
20850if ((size_t *) 0)
20851 return 0;
20852if (sizeof (size_t))
20853 return 0;
20854 ;
20855 return 0;
20856}
20857_ACEOF
20858rm -f conftest.$ac_objext
c0d27fcc 20859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20860 (eval $ac_compile) 2>conftest.er1
503d2be0 20861 ac_status=$?
35996d22
AS
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
c0d27fcc 20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20866 (exit $ac_status); } &&
35996d22
AS
20867 { ac_try='test -z "$ac_c_werror_flag"
20868 || test ! -s conftest.err'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; } &&
20874 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
c0d27fcc 20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20879 (exit $ac_status); }; }; then
8730a8da
DL
20880 ac_cv_type_size_t=yes
20881else
503d2be0 20882 echo "$as_me: failed program was:" >&5
19650fd6
AS
20883sed 's/^/| /' conftest.$ac_ext >&5
20884
503d2be0 20885ac_cv_type_size_t=no
8730a8da 20886fi
35996d22 20887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8730a8da 20888fi
c0d27fcc 20889echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
503d2be0
AS
20890echo "${ECHO_T}$ac_cv_type_size_t" >&6
20891if test $ac_cv_type_size_t = yes; then
503d2be0 20892
c0d27fcc
MR
20893cat >>confdefs.h <<_ACEOF
20894#define HAVE_SIZE_T 1
20895_ACEOF
20896
8730a8da
DL
20897
20898fi
20899
c0d27fcc 20900
973a76b1
DL
20901echo "$as_me:$LINENO: checking for mbstate_t" >&5
20902echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20903if test "${ac_cv_type_mbstate_t+set}" = set; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20905else
20906 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20907/* confdefs.h. */
20908_ACEOF
20909cat confdefs.h >>conftest.$ac_ext
20910cat >>conftest.$ac_ext <<_ACEOF
20911/* end confdefs.h. */
973a76b1
DL
20912$ac_includes_default
20913# include <wchar.h>
20914int
20915main ()
20916{
20917mbstate_t x; return sizeof x;
20918 ;
20919 return 0;
20920}
20921_ACEOF
20922rm -f conftest.$ac_objext
20923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20924 (eval $ac_compile) 2>conftest.er1
973a76b1 20925 ac_status=$?
35996d22
AS
20926 grep -v '^ *+' conftest.er1 >conftest.err
20927 rm -f conftest.er1
20928 cat conftest.err >&5
973a76b1
DL
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
35996d22
AS
20931 { ac_try='test -z "$ac_c_werror_flag"
20932 || test ! -s conftest.err'
20933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934 (eval $ac_try) 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; } &&
20938 { ac_try='test -s conftest.$ac_objext'
973a76b1
DL
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 ac_cv_type_mbstate_t=yes
20945else
20946 echo "$as_me: failed program was:" >&5
19650fd6
AS
20947sed 's/^/| /' conftest.$ac_ext >&5
20948
973a76b1
DL
20949ac_cv_type_mbstate_t=no
20950fi
35996d22 20951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
973a76b1
DL
20952fi
20953echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20954echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20955 if test $ac_cv_type_mbstate_t = yes; then
20956
20957cat >>confdefs.h <<\_ACEOF
20958#define HAVE_MBSTATE_T 1
20959_ACEOF
20960
20961 else
20962
20963cat >>confdefs.h <<\_ACEOF
20964#define mbstate_t int
20965_ACEOF
20966
20967 fi
20968
22044edf
DL
20969echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20970echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20971if test "${emacs_cv_c_restrict+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973else
20974 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20975/* confdefs.h. */
20976_ACEOF
20977cat confdefs.h >>conftest.$ac_ext
20978cat >>conftest.$ac_ext <<_ACEOF
20979/* end confdefs.h. */
22044edf
DL
20980void fred (int *restrict x);
20981int
20982main ()
20983{
b936fae4 20984
22044edf
DL
20985 ;
20986 return 0;
20987}
c0d27fcc 20988_ACEOF
22044edf
DL
20989rm -f conftest.$ac_objext
20990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20991 (eval $ac_compile) 2>conftest.er1
22044edf 20992 ac_status=$?
35996d22
AS
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
22044edf
DL
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
35996d22
AS
20998 { ac_try='test -z "$ac_c_werror_flag"
20999 || test ! -s conftest.err'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } &&
21005 { ac_try='test -s conftest.$ac_objext'
22044edf
DL
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 emacs_cv_c_restrict=yes
21012else
21013 echo "$as_me: failed program was:" >&5
19650fd6
AS
21014sed 's/^/| /' conftest.$ac_ext >&5
21015
22044edf 21016cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
21017/* confdefs.h. */
21018_ACEOF
21019cat confdefs.h >>conftest.$ac_ext
21020cat >>conftest.$ac_ext <<_ACEOF
21021/* end confdefs.h. */
22044edf
DL
21022void fred (int *__restrict x);
21023int
21024main ()
21025{
c0d27fcc 21026
22044edf
DL
21027 ;
21028 return 0;
21029}
c0d27fcc 21030_ACEOF
22044edf
DL
21031rm -f conftest.$ac_objext
21032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 21033 (eval $ac_compile) 2>conftest.er1
22044edf 21034 ac_status=$?
35996d22
AS
21035 grep -v '^ *+' conftest.er1 >conftest.err
21036 rm -f conftest.er1
21037 cat conftest.err >&5
22044edf
DL
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } &&
35996d22
AS
21040 { ac_try='test -z "$ac_c_werror_flag"
21041 || test ! -s conftest.err'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; } &&
21047 { ac_try='test -s conftest.$ac_objext'
22044edf
DL
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 emacs_cv_c_restrict=__restrict
21054else
21055 echo "$as_me: failed program was:" >&5
19650fd6
AS
21056sed 's/^/| /' conftest.$ac_ext >&5
21057
22044edf 21058emacs_cv_c_restrict=no
ba4481b5 21059fi
35996d22 21060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 21061fi
35996d22 21062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 21063fi
22044edf
DL
21064echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21065echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21066case "$emacs_cv_c_restrict" in
21067 yes) emacs_restrict=restrict;;
21068 no) emacs_restrict="";;
21069 *) emacs_restrict="$emacs_cv_c_restrict";;
21070esac
21071if test "$emacs_restrict" != __restrict; then
b936fae4 21072
22044edf
DL
21073cat >>confdefs.h <<_ACEOF
21074#define __restrict $emacs_restrict
c0d27fcc 21075_ACEOF
ba4481b5
DL
21076
21077fi
ba4481b5 21078
22044edf
DL
21079echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21080echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21081if test "${emacs_cv_c_restrict_arr+set}" = set; then
21082 echo $ECHO_N "(cached) $ECHO_C" >&6
21083else
21084 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
21085/* confdefs.h. */
21086_ACEOF
21087cat confdefs.h >>conftest.$ac_ext
21088cat >>conftest.$ac_ext <<_ACEOF
21089/* end confdefs.h. */
22044edf
DL
21090void fred (int x[__restrict]);
21091int
21092main ()
21093{
b936fae4 21094
22044edf
DL
21095 ;
21096 return 0;
21097}
c0d27fcc 21098_ACEOF
22044edf
DL
21099rm -f conftest.$ac_objext
21100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 21101 (eval $ac_compile) 2>conftest.er1
22044edf 21102 ac_status=$?
35996d22
AS
21103 grep -v '^ *+' conftest.er1 >conftest.err
21104 rm -f conftest.er1
21105 cat conftest.err >&5
22044edf
DL
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
35996d22
AS
21108 { ac_try='test -z "$ac_c_werror_flag"
21109 || test ! -s conftest.err'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; } &&
21115 { ac_try='test -s conftest.$ac_objext'
22044edf
DL
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21118 ac_status=$?
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; }; then
21121 emacs_cv_c_restrict_arr=yes
21122else
21123 echo "$as_me: failed program was:" >&5
19650fd6
AS
21124sed 's/^/| /' conftest.$ac_ext >&5
21125
22044edf 21126emacs_cv_c_restrict_arr=no
ba4481b5 21127fi
35996d22 21128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22044edf
DL
21129fi
21130echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21131echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21132if test "$emacs_cv_c_restrict_arr" = yes; then
b936fae4 21133
c0d27fcc 21134cat >>confdefs.h <<\_ACEOF
22044edf 21135#define __restrict_arr __restrict
c0d27fcc 21136_ACEOF
ba4481b5 21137
ba4481b5
DL
21138fi
21139
c0d27fcc 21140
c0d27fcc 21141
22044edf
DL
21142# Set up the CFLAGS for real compilation, so we can substitute it.
21143CFLAGS="$REAL_CFLAGS"
21144CPPFLAGS="$REAL_CPPFLAGS"
21145
21146#### Find out which version of Emacs this is.
21147version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21148 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21149if test x"${version}" = x; then
21150 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21151echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21152 { (exit 1); exit 1; }; }
21153fi
21154
21155### Specify what sort of things we'll be editing into Makefile and config.h.
21156### Use configuration here uncanonicalized to avoid exceeding size limits.
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
6a3a24fa 21189
22044edf
DL
21190
21191
21192cat >>confdefs.h <<_ACEOF
21193#define EMACS_CONFIGURATION "${canonical}"
21194_ACEOF
21195
21196
21197cat >>confdefs.h <<_ACEOF
21198#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21199_ACEOF
21200
21201
21202cat >>confdefs.h <<_ACEOF
21203#define config_machfile "${machfile}"
21204_ACEOF
21205
21206
21207cat >>confdefs.h <<_ACEOF
21208#define config_opsysfile "${opsysfile}"
21209_ACEOF
21210
21211
21212cat >>confdefs.h <<_ACEOF
21213#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21214_ACEOF
21215
21216
21217cat >>confdefs.h <<_ACEOF
21218#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21219_ACEOF
21220
21221
21222cat >>confdefs.h <<_ACEOF
21223#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21224_ACEOF
21225
21226
21227cat >>confdefs.h <<_ACEOF
21228#define UNEXEC_SRC ${UNEXEC_SRC}
21229_ACEOF
21230
21231
21232if test "${HAVE_X_WINDOWS}" = "yes" ; then
21233
21234cat >>confdefs.h <<\_ACEOF
21235#define HAVE_X_WINDOWS 1
21236_ACEOF
21237
21238fi
21239if test "${USE_X_TOOLKIT}" != "none" ; then
21240
21241cat >>confdefs.h <<\_ACEOF
21242#define USE_X_TOOLKIT 1
21243_ACEOF
21244
21245fi
21246if test "${HAVE_X11}" = "yes" ; then
21247
21248cat >>confdefs.h <<\_ACEOF
21249#define HAVE_X11 1
21250_ACEOF
21251
21252fi
21253if test "${HAVE_XFREE386}" = "yes" ; then
21254
21255cat >>confdefs.h <<\_ACEOF
21256#define HAVE_XFREE386 1
21257_ACEOF
21258
21259fi
21260if test "${HAVE_MENUS}" = "yes" ; then
21261
21262cat >>confdefs.h <<\_ACEOF
21263#define HAVE_MENUS 1
21264_ACEOF
21265
21266fi
21267if test "${GNU_MALLOC}" = "yes" ; then
21268
21269cat >>confdefs.h <<\_ACEOF
21270#define GNU_MALLOC 1
21271_ACEOF
21272
21273fi
21274if test "${REL_ALLOC}" = "yes" ; then
21275
21276cat >>confdefs.h <<\_ACEOF
21277#define REL_ALLOC 1
21278_ACEOF
21279
21280fi
21281
21282
21283
c0d27fcc
MR
21284
21285
ba4481b5 21286#### Report on what we decided to do.
488dd4c4
JD
21287#### Report GTK as a toolkit, even if it doesn't use Xt.
21288#### It makes printing result more understandable as using GTK sets
21289#### toolkit_scroll_bars to yes by default.
21290if test "${HAVE_GTK}" = "yes"; then
21291 USE_X_TOOLKIT=GTK
21292fi
21293
ba4481b5
DL
21294echo "
21295Configured for \`${canonical}'.
21296
21297 Where should the build process find the source code? ${srcdir}
21298 What operating system and machine description files should Emacs use?
21299 \`${opsysfile}' and \`${machfile}'
21300 What compiler should emacs be built with? ${CC} ${CFLAGS}
21301 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
73b77ee5 21302 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
ef9e4345 21303 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
ba4481b5 21304 What window system should Emacs use? ${window_system}
8e967cf7 21305 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
ba4481b5
DL
21306
21307if test -n "${x_includes}"; then
21308echo " Where do we find X Windows header files? ${x_includes}"
21309else
21310echo " Where do we find X Windows header files? Standard dirs"
21311fi
21312if test -n "${x_libraries}"; then
21313echo " Where do we find X Windows libraries? ${x_libraries}"
21314else
21315echo " Where do we find X Windows libraries? Standard dirs"
21316fi
21317
21318echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21319echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21320echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21321echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21322echo " Does Emacs use -lungif? ${HAVE_GIF}"
21323echo " Does Emacs use -lpng? ${HAVE_PNG}"
21324echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21325echo
21326
21327# Remove any trailing slashes in these variables.
21328test "${prefix}" != NONE &&
21329 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21330test "${exec_prefix}" != NONE &&
21331 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21332
d0e9bfd2
GM
21333## Check if the C preprocessor will convert `..' to `. .'. If so, set
21334## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21335## from Makefile.c can correctly provide the arg `-traditional' to the
21336## C preprocessor.
21337
503d2be0 21338cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
21339/* confdefs.h. */
21340_ACEOF
21341cat confdefs.h >>conftest.$ac_ext
21342cat >>conftest.$ac_ext <<_ACEOF
21343/* end confdefs.h. */
d0e9bfd2 21344yes..yes
503d2be0 21345_ACEOF
d0e9bfd2 21346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 21347 $EGREP "yes..yes" >/dev/null 2>&1; then
d0e9bfd2
GM
21348 CPP_NEED_TRADITIONAL=no
21349else
d0e9bfd2
GM
21350 CPP_NEED_TRADITIONAL=yes
21351fi
21352rm -f conftest*
21353
c0d27fcc 21354
6bae0ccf
DL
21355 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"
21356 ac_config_commands="$ac_config_commands default"
503d2be0 21357cat >confcache <<\_ACEOF
ba4481b5
DL
21358# This file is a shell script that caches the results of configure
21359# tests run on this system so they can be shared between configure
503d2be0
AS
21360# scripts and configure runs, see configure's option --config-cache.
21361# It is not useful on other systems. If it contains results you don't
21362# want to keep, you may remove or edit it.
ba4481b5 21363#
503d2be0
AS
21364# config.status only pays attention to the cache file if you give it
21365# the --recheck option to rerun configure.
ba4481b5 21366#
6bae0ccf 21367# `ac_cv_env_foo' variables (set or unset) will be overridden when
503d2be0
AS
21368# loading this file, other *unset* `ac_cv_foo' will be assigned the
21369# following values.
21370
21371_ACEOF
21372
ba4481b5
DL
21373# The following way of writing the cache mishandles newlines in values,
21374# but we know of no workaround that is simple, portable, and efficient.
21375# So, don't put newlines in cache variables' values.
21376# Ultrix sh set writes to stderr and can't be redirected directly,
21377# and sets the high bit in the cache file unless we assign to the vars.
503d2be0
AS
21378{
21379 (set) 2>&1 |
21380 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21381 *ac_space=\ *)
21382 # `set' does not quote correctly, so add quotes (double-quote
21383 # substitution turns \\\\ into \\, and sed turns \\ into \).
21384 sed -n \
35996d22
AS
21385 "s/'/'\\\\''/g;
21386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
503d2be0
AS
21387 ;;
21388 *)
21389 # `set' quotes correctly as required by POSIX, so do not add quotes.
21390 sed -n \
35996d22 21391 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
503d2be0
AS
21392 ;;
21393 esac;
21394} |
21395 sed '
21396 t clear
21397 : clear
21398 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21399 t end
21400 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21401 : end' >>confcache
19650fd6 21402if diff $cache_file confcache >/dev/null 2>&1; then :; else
ba4481b5 21403 if test -w $cache_file; then
503d2be0
AS
21404 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21405 cat confcache >$cache_file
ba4481b5
DL
21406 else
21407 echo "not updating unwritable cache $cache_file"
21408 fi
21409fi
21410rm -f confcache
21411
ba4481b5
DL
21412test "x$prefix" = xNONE && prefix=$ac_default_prefix
21413# Let make expand exec_prefix.
21414test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21415
503d2be0
AS
21416# VPATH may cause trouble with some makes, so we remove $(srcdir),
21417# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21418# trailing colons and then remove the whole line if VPATH becomes empty
21419# (actually we leave an empty line to preserve line numbers).
ba4481b5 21420if test "x$srcdir" = x.; then
35996d22 21421 ac_vpsub='/^[ ]*VPATH[ ]*=/{
503d2be0
AS
21422s/:*\$(srcdir):*/:/;
21423s/:*\${srcdir}:*/:/;
21424s/:*@srcdir@:*/:/;
35996d22 21425s/^\([^=]*=[ ]*\):*/\1/;
503d2be0 21426s/:*$//;
35996d22 21427s/^[^=]*=[ ]*$//;
503d2be0 21428}'
ba4481b5
DL
21429fi
21430
ba4481b5
DL
21431DEFS=-DHAVE_CONFIG_H
21432
6bae0ccf
DL
21433ac_libobjs=
21434ac_ltlibobjs=
21435for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21436 # 1. Remove the extension, and $U if already installed.
21437 ac_i=`echo "$ac_i" |
35996d22 21438 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6bae0ccf
DL
21439 # 2. Add them.
21440 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21441 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21442done
21443LIBOBJS=$ac_libobjs
21444
21445LTLIBOBJS=$ac_ltlibobjs
21446
21447
c0d27fcc 21448
ba4481b5 21449: ${CONFIG_STATUS=./config.status}
503d2be0
AS
21450ac_clean_files_save=$ac_clean_files
21451ac_clean_files="$ac_clean_files $CONFIG_STATUS"
c0d27fcc 21452{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
503d2be0
AS
21453echo "$as_me: creating $CONFIG_STATUS" >&6;}
21454cat >$CONFIG_STATUS <<_ACEOF
21455#! $SHELL
c0d27fcc 21456# Generated by $as_me.
ba4481b5 21457# Run this file to recreate the current configuration.
ba4481b5 21458# Compiler output produced by configure, useful for debugging
503d2be0 21459# configure, is in config.log if it exists.
ba4481b5 21460
503d2be0 21461debug=false
19650fd6
AS
21462ac_cs_recheck=false
21463ac_cs_silent=false
503d2be0 21464SHELL=\${CONFIG_SHELL-$SHELL}
503d2be0
AS
21465_ACEOF
21466
21467cat >>$CONFIG_STATUS <<\_ACEOF
c0d27fcc
MR
21468## --------------------- ##
21469## M4sh Initialization. ##
21470## --------------------- ##
21471
503d2be0
AS
21472# Be Bourne compatible
21473if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21474 emulate sh
21475 NULLCMD=:
6bae0ccf
DL
21476 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21477 # is contrary to our usage. Disable this feature.
21478 alias -g '${1+"$@"}'='"$@"'
503d2be0
AS
21479elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21480 set -o posix
21481fi
35996d22 21482DUALCASE=1; export DUALCASE # for MKS sh
503d2be0 21483
c0d27fcc 21484# Support unset when possible.
35996d22 21485if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
c0d27fcc
MR
21486 as_unset=unset
21487else
21488 as_unset=false
21489fi
21490
6bae0ccf
DL
21491
21492# Work around bugs in pre-3.0 UWIN ksh.
21493$as_unset ENV MAIL MAILPATH
21494PS1='$ '
21495PS2='> '
21496PS4='+ '
21497
21498# NLS nuisances.
19650fd6
AS
21499for as_var in \
21500 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21501 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21502 LC_TELEPHONE LC_TIME
6bae0ccf 21503do
35996d22 21504 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6bae0ccf
DL
21505 eval $as_var=C; export $as_var
21506 else
21507 $as_unset $as_var
21508 fi
21509done
21510
21511# Required to use basename.
21512if expr a : '\(a\)' >/dev/null 2>&1; then
21513 as_expr=expr
21514else
21515 as_expr=false
21516fi
21517
21518if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21519 as_basename=basename
21520else
21521 as_basename=false
21522fi
c0d27fcc
MR
21523
21524
503d2be0 21525# Name of the executable.
6bae0ccf 21526as_me=`$as_basename "$0" ||
c0d27fcc
MR
21527$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21528 X"$0" : 'X\(//\)$' \| \
21529 X"$0" : 'X\(/\)$' \| \
21530 . : '\(.\)' 2>/dev/null ||
21531echo X/"$0" |
21532 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21533 /^X\/\(\/\/\)$/{ s//\1/; q; }
21534 /^X\/\(\/\).*/{ s//\1/; q; }
21535 s/.*/./; q'`
21536
6bae0ccf 21537
c0d27fcc
MR
21538# PATH needs CR, and LINENO needs CR and PATH.
21539# Avoid depending upon Character Ranges.
21540as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21541as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21542as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21543as_cr_digits='0123456789'
21544as_cr_alnum=$as_cr_Letters$as_cr_digits
21545
21546# The user is always right.
21547if test "${PATH_SEPARATOR+set}" != set; then
19650fd6
AS
21548 echo "#! /bin/sh" >conf$$.sh
21549 echo "exit 0" >>conf$$.sh
21550 chmod +x conf$$.sh
21551 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
c0d27fcc
MR
21552 PATH_SEPARATOR=';'
21553 else
21554 PATH_SEPARATOR=:
21555 fi
19650fd6 21556 rm -f conf$$.sh
c0d27fcc
MR
21557fi
21558
21559
21560 as_lineno_1=$LINENO
21561 as_lineno_2=$LINENO
21562 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21563 test "x$as_lineno_1" != "x$as_lineno_2" &&
21564 test "x$as_lineno_3" = "x$as_lineno_2" || {
21565 # Find who we are. Look in the path if we contain no path at all
21566 # relative or not.
21567 case $0 in
21568 *[\\/]* ) as_myself=$0 ;;
21569 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21570for as_dir in $PATH
21571do
21572 IFS=$as_save_IFS
21573 test -z "$as_dir" && as_dir=.
21574 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21575done
21576
21577 ;;
21578 esac
21579 # We did not find ourselves, most probably we were run as `sh COMMAND'
21580 # in which case we are not to be found in the path.
21581 if test "x$as_myself" = x; then
21582 as_myself=$0
21583 fi
21584 if test ! -f "$as_myself"; then
21585 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21586echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21587 { (exit 1); exit 1; }; }
21588 fi
21589 case $CONFIG_SHELL in
21590 '')
21591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21592for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21593do
21594 IFS=$as_save_IFS
21595 test -z "$as_dir" && as_dir=.
21596 for as_base in sh bash ksh sh5; do
21597 case $as_dir in
21598 /*)
21599 if ("$as_dir/$as_base" -c '
21600 as_lineno_1=$LINENO
21601 as_lineno_2=$LINENO
21602 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21603 test "x$as_lineno_1" != "x$as_lineno_2" &&
21604 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6bae0ccf
DL
21605 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21606 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
c0d27fcc
MR
21607 CONFIG_SHELL=$as_dir/$as_base
21608 export CONFIG_SHELL
21609 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21610 fi;;
21611 esac
21612 done
21613done
21614;;
21615 esac
21616
21617 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21618 # uniformly replaced by the line number. The first 'sed' inserts a
21619 # line-number line before each line; the second 'sed' does the real
21620 # work. The second script uses 'N' to pair each line-number line
21621 # with the numbered line, and appends trailing '-' during
21622 # substitution so that $LINENO is not a special case at line end.
21623 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21624 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21625 sed '=' <$as_myself |
21626 sed '
21627 N
21628 s,$,-,
21629 : loop
21630 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21631 t loop
21632 s,-$,,
21633 s,^['$as_cr_digits']*\n,,
21634 ' >$as_me.lineno &&
21635 chmod +x $as_me.lineno ||
21636 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21637echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21638 { (exit 1); exit 1; }; }
21639
21640 # Don't try to exec as it changes $[0], causing all sort of problems
21641 # (the dirname of $[0] is not the place where we might find the
21642 # original and so on. Autoconf is especially sensible to this).
21643 . ./$as_me.lineno
21644 # Exit status is that of the last command.
21645 exit
21646}
21647
21648
21649case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21650 *c*,-n*) ECHO_N= ECHO_C='
21651' ECHO_T=' ' ;;
21652 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21653 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21654esac
503d2be0
AS
21655
21656if expr a : '\(a\)' >/dev/null 2>&1; then
21657 as_expr=expr
21658else
21659 as_expr=false
21660fi
21661
21662rm -f conf$$ conf$$.exe conf$$.file
21663echo >conf$$.file
21664if ln -s conf$$.file conf$$ 2>/dev/null; then
21665 # We could just check for DJGPP; but this test a) works b) is more generic
21666 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21667 if test -f conf$$.exe; then
21668 # Don't use ln at all; we don't have any links
21669 as_ln_s='cp -p'
21670 else
21671 as_ln_s='ln -s'
21672 fi
21673elif ln conf$$.file conf$$ 2>/dev/null; then
21674 as_ln_s=ln
21675else
21676 as_ln_s='cp -p'
21677fi
21678rm -f conf$$ conf$$.exe conf$$.file
21679
6bae0ccf
DL
21680if mkdir -p . 2>/dev/null; then
21681 as_mkdir_p=:
21682else
35996d22 21683 test -d ./-p && rmdir ./-p
6bae0ccf
DL
21684 as_mkdir_p=false
21685fi
21686
503d2be0
AS
21687as_executable_p="test -f"
21688
c0d27fcc 21689# Sed expression to map a string onto a valid CPP name.
35996d22 21690as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c0d27fcc
MR
21691
21692# Sed expression to map a string onto a valid variable name.
35996d22 21693as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
503d2be0 21694
503d2be0
AS
21695
21696# IFS
21697# We need space, tab and new line, in precisely that order.
21698as_nl='
21699'
21700IFS=" $as_nl"
21701
21702# CDPATH.
6bae0ccf 21703$as_unset CDPATH
503d2be0
AS
21704
21705exec 6>&1
21706
c0d27fcc
MR
21707# Open the log real soon, to keep \$[0] and so on meaningful, and to
21708# report actual input values of CONFIG_FILES etc. instead of their
21709# values after options handling. Logging --version etc. is OK.
21710exec 5>>config.log
21711{
21712 echo
21713 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21714## Running $as_me. ##
21715_ASBOX
21716} >&5
21717cat >&5 <<_CSEOF
21718
21719This file was extended by $as_me, which was
35996d22 21720generated by GNU Autoconf 2.59. Invocation command line was
c0d27fcc
MR
21721
21722 CONFIG_FILES = $CONFIG_FILES
21723 CONFIG_HEADERS = $CONFIG_HEADERS
21724 CONFIG_LINKS = $CONFIG_LINKS
21725 CONFIG_COMMANDS = $CONFIG_COMMANDS
21726 $ $0 $@
21727
21728_CSEOF
21729echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21730echo >&5
503d2be0
AS
21731_ACEOF
21732
21733# Files that config.status was made for.
21734if test -n "$ac_config_files"; then
21735 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21736fi
21737
21738if test -n "$ac_config_headers"; then
21739 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21740fi
21741
21742if test -n "$ac_config_links"; then
21743 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21744fi
21745
21746if test -n "$ac_config_commands"; then
21747 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21748fi
21749
c0d27fcc 21750cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
21751
21752ac_cs_usage="\
21753\`$as_me' instantiates files from templates according to the
21754current configuration.
21755
21756Usage: $0 [OPTIONS] [FILE]...
21757
21758 -h, --help print this help, then exit
21759 -V, --version print version number, then exit
19650fd6 21760 -q, --quiet do not print progress messages
503d2be0
AS
21761 -d, --debug don't remove temporary files
21762 --recheck update $as_me by reconfiguring in the same conditions
21763 --file=FILE[:TEMPLATE]
35996d22 21764 instantiate the configuration file FILE
503d2be0 21765 --header=FILE[:TEMPLATE]
35996d22 21766 instantiate the configuration header FILE
503d2be0
AS
21767
21768Configuration files:
21769$config_files
21770
21771Configuration headers:
21772$config_headers
21773
21774Configuration commands:
21775$config_commands
21776
21777Report bugs to <bug-autoconf@gnu.org>."
c0d27fcc 21778_ACEOF
503d2be0 21779
c0d27fcc 21780cat >>$CONFIG_STATUS <<_ACEOF
503d2be0
AS
21781ac_cs_version="\\
21782config.status
35996d22 21783configured by $0, generated by GNU Autoconf 2.59,
503d2be0
AS
21784 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21785
35996d22 21786Copyright (C) 2003 Free Software Foundation, Inc.
503d2be0
AS
21787This config.status script is free software; the Free Software Foundation
21788gives unlimited permission to copy, distribute and modify it."
21789srcdir=$srcdir
21790INSTALL="$INSTALL"
c0d27fcc 21791_ACEOF
503d2be0 21792
c0d27fcc 21793cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
21794# If no file are specified by the user, then we need to provide default
21795# value. By we need to know if files were specified by the user.
21796ac_need_defaults=:
21797while test $# != 0
ba4481b5 21798do
503d2be0
AS
21799 case $1 in
21800 --*=*)
21801 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21802 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6bae0ccf
DL
21803 ac_shift=:
21804 ;;
21805 -*)
21806 ac_option=$1
21807 ac_optarg=$2
21808 ac_shift=shift
503d2be0 21809 ;;
503d2be0
AS
21810 *) # This is not an option, so the user has probably given explicit
21811 # arguments.
6bae0ccf 21812 ac_option=$1
503d2be0
AS
21813 ac_need_defaults=false;;
21814 esac
21815
6bae0ccf 21816 case $ac_option in
503d2be0 21817 # Handling of the options.
c0d27fcc 21818_ACEOF
f57bd967 21819cat >>$CONFIG_STATUS <<\_ACEOF
19650fd6
AS
21820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21821 ac_cs_recheck=: ;;
503d2be0
AS
21822 --version | --vers* | -V )
21823 echo "$ac_cs_version"; exit 0 ;;
21824 --he | --h)
21825 # Conflict between --help and --header
c0d27fcc 21826 { { echo "$as_me:$LINENO: error: ambiguous option: $1
503d2be0
AS
21827Try \`$0 --help' for more information." >&5
21828echo "$as_me: error: ambiguous option: $1
21829Try \`$0 --help' for more information." >&2;}
21830 { (exit 1); exit 1; }; };;
21831 --help | --hel | -h )
21832 echo "$ac_cs_usage"; exit 0 ;;
21833 --debug | --d* | -d )
21834 debug=: ;;
21835 --file | --fil | --fi | --f )
6bae0ccf
DL
21836 $ac_shift
21837 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
503d2be0
AS
21838 ac_need_defaults=false;;
21839 --header | --heade | --head | --hea )
6bae0ccf
DL
21840 $ac_shift
21841 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
503d2be0 21842 ac_need_defaults=false;;
19650fd6
AS
21843 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21844 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21845 ac_cs_silent=: ;;
503d2be0
AS
21846
21847 # This is an error.
c0d27fcc 21848 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
503d2be0
AS
21849Try \`$0 --help' for more information." >&5
21850echo "$as_me: error: unrecognized option: $1
21851Try \`$0 --help' for more information." >&2;}
21852 { (exit 1); exit 1; }; } ;;
21853
21854 *) ac_config_targets="$ac_config_targets $1" ;;
21855
ba4481b5 21856 esac
503d2be0 21857 shift
ba4481b5
DL
21858done
21859
19650fd6
AS
21860ac_configure_extra_args=
21861
21862if $ac_cs_silent; then
21863 exec 6>/dev/null
21864 ac_configure_extra_args="$ac_configure_extra_args --silent"
21865fi
21866
21867_ACEOF
21868cat >>$CONFIG_STATUS <<_ACEOF
21869if \$ac_cs_recheck; then
21870 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21871 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21872fi
21873
503d2be0 21874_ACEOF
ba4481b5 21875
c0d27fcc 21876cat >>$CONFIG_STATUS <<_ACEOF
503d2be0
AS
21877#
21878# INIT-COMMANDS section.
21879#
ba4481b5 21880
503d2be0
AS
21881GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21882
c0d27fcc
MR
21883_ACEOF
21884
503d2be0 21885
c0d27fcc
MR
21886
21887cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
21888for ac_config_target in $ac_config_targets
21889do
21890 case "$ac_config_target" in
21891 # Handling of arguments.
21892 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21893 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21894 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21895 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21896 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21897 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21898 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23b24859 21899 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
981626b7 21900 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
503d2be0
AS
21901 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21902 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21903 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
c0d27fcc 21904 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
503d2be0
AS
21905echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21906 { (exit 1); exit 1; }; };;
21907 esac
ba4481b5 21908done
503d2be0
AS
21909
21910# If the user did not use the arguments to specify the items to instantiate,
21911# then the envvar interface is used. Set only those that are not.
21912# We use the long form for the default assignment because of an extremely
21913# bizarre bug on SunOS 4.1.3.
21914if $ac_need_defaults; then
21915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21916 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21917 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
ba4481b5 21918fi
503d2be0 21919
19650fd6
AS
21920# Have a temporary directory for convenience. Make it in the build tree
21921# simply because there is no reason to put it here, and in addition,
21922# creating and moving files from /tmp can sometimes cause problems.
503d2be0
AS
21923# Create a temporary directory, and hook for its removal unless debugging.
21924$debug ||
21925{
21926 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21927 trap '{ (exit 1); exit 1; }' 1 2 13 15
21928}
21929
21930# Create a (secure) tmp directory for tmp files.
19650fd6 21931
503d2be0 21932{
19650fd6 21933 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
503d2be0
AS
21934 test -n "$tmp" && test -d "$tmp"
21935} ||
21936{
19650fd6 21937 tmp=./confstat$$-$RANDOM
503d2be0
AS
21938 (umask 077 && mkdir $tmp)
21939} ||
21940{
19650fd6 21941 echo "$me: cannot create a temporary directory in ." >&2
503d2be0
AS
21942 { (exit 1); exit 1; }
21943}
21944
c0d27fcc 21945_ACEOF
503d2be0 21946
c0d27fcc 21947cat >>$CONFIG_STATUS <<_ACEOF
503d2be0
AS
21948
21949#
21950# CONFIG_FILES section.
21951#
21952
21953# No need to generate the scripts if there are no CONFIG_FILES.
21954# This happens for instance when ./config.status config.h
21955if test -n "\$CONFIG_FILES"; then
21956 # Protect against being on the right side of a sed subst in config.status.
21957 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21958 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21959s,@SHELL@,$SHELL,;t t
c0d27fcc
MR
21960s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21961s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21962s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21963s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21964s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21965s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
503d2be0
AS
21966s,@exec_prefix@,$exec_prefix,;t t
21967s,@prefix@,$prefix,;t t
21968s,@program_transform_name@,$program_transform_name,;t t
21969s,@bindir@,$bindir,;t t
21970s,@sbindir@,$sbindir,;t t
21971s,@libexecdir@,$libexecdir,;t t
21972s,@datadir@,$datadir,;t t
21973s,@sysconfdir@,$sysconfdir,;t t
21974s,@sharedstatedir@,$sharedstatedir,;t t
21975s,@localstatedir@,$localstatedir,;t t
21976s,@libdir@,$libdir,;t t
21977s,@includedir@,$includedir,;t t
21978s,@oldincludedir@,$oldincludedir,;t t
21979s,@infodir@,$infodir,;t t
21980s,@mandir@,$mandir,;t t
503d2be0
AS
21981s,@build_alias@,$build_alias,;t t
21982s,@host_alias@,$host_alias,;t t
21983s,@target_alias@,$target_alias,;t t
c0d27fcc 21984s,@DEFS@,$DEFS,;t t
503d2be0
AS
21985s,@ECHO_C@,$ECHO_C,;t t
21986s,@ECHO_N@,$ECHO_N,;t t
21987s,@ECHO_T@,$ECHO_T,;t t
503d2be0 21988s,@LIBS@,$LIBS,;t t
19650fd6 21989s,@MAINT@,$MAINT,;t t
503d2be0
AS
21990s,@build@,$build,;t t
21991s,@build_cpu@,$build_cpu,;t t
21992s,@build_vendor@,$build_vendor,;t t
21993s,@build_os@,$build_os,;t t
21994s,@host@,$host,;t t
21995s,@host_cpu@,$host_cpu,;t t
21996s,@host_vendor@,$host_vendor,;t t
21997s,@host_os@,$host_os,;t t
21998s,@CC@,$CC,;t t
21999s,@CFLAGS@,$CFLAGS,;t t
22000s,@LDFLAGS@,$LDFLAGS,;t t
22001s,@CPPFLAGS@,$CPPFLAGS,;t t
22002s,@ac_ct_CC@,$ac_ct_CC,;t t
22003s,@EXEEXT@,$EXEEXT,;t t
22004s,@OBJEXT@,$OBJEXT,;t t
22005s,@LN_S@,$LN_S,;t t
22006s,@CPP@,$CPP,;t t
22007s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22008s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22009s,@INSTALL_DATA@,$INSTALL_DATA,;t t
503d2be0
AS
22010s,@RANLIB@,$RANLIB,;t t
22011s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9e71690e 22012s,@INSTALL_INFO@,$INSTALL_INFO,;t t
6bae0ccf 22013s,@EGREP@,$EGREP,;t t
503d2be0
AS
22014s,@LIBSOUND@,$LIBSOUND,;t t
22015s,@SET_MAKE@,$SET_MAKE,;t t
488dd4c4
JD
22016s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22017s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22018s,@GTK_LIBS@,$GTK_LIBS,;t t
503d2be0
AS
22019s,@ALLOCA@,$ALLOCA,;t t
22020s,@liblockfile@,$liblockfile,;t t
22021s,@LIBOBJS@,$LIBOBJS,;t t
22022s,@NEED_SETGID@,$NEED_SETGID,;t t
22023s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22024s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22025s,@version@,$version,;t t
22026s,@configuration@,$configuration,;t t
22027s,@canonical@,$canonical,;t t
22028s,@srcdir@,$srcdir,;t t
22029s,@lispdir@,$lispdir,;t t
22030s,@locallisppath@,$locallisppath,;t t
22031s,@lisppath@,$lisppath,;t t
22032s,@x_default_search_path@,$x_default_search_path,;t t
22033s,@etcdir@,$etcdir,;t t
22034s,@archlibdir@,$archlibdir,;t t
22035s,@docdir@,$docdir,;t t
22036s,@bitmapdir@,$bitmapdir,;t t
98418dba
CW
22037s,@gamedir@,$gamedir,;t t
22038s,@gameuser@,$gameuser,;t t
503d2be0
AS
22039s,@c_switch_system@,$c_switch_system,;t t
22040s,@c_switch_machine@,$c_switch_machine,;t t
22041s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22042s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22043s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22044s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22045s,@machfile@,$machfile,;t t
22046s,@opsysfile@,$opsysfile,;t t
6a3a24fa 22047s,@carbon_appdir@,$carbon_appdir,;t t
6bae0ccf 22048s,@LTLIBOBJS@,$LTLIBOBJS,;t t
503d2be0
AS
22049CEOF
22050
c0d27fcc 22051_ACEOF
ba4481b5 22052
c0d27fcc 22053 cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
22054 # Split the substitutions into bite-sized pieces for seds with
22055 # small command number limits, like on Digital OSF/1 and HP-UX.
22056 ac_max_sed_lines=48
22057 ac_sed_frag=1 # Number of current file.
22058 ac_beg=1 # First line for current file.
22059 ac_end=$ac_max_sed_lines # Line after last line for current file.
22060 ac_more_lines=:
22061 ac_sed_cmds=
22062 while $ac_more_lines; do
22063 if test $ac_beg -gt 1; then
22064 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22065 else
22066 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22067 fi
22068 if test ! -s $tmp/subs.frag; then
22069 ac_more_lines=false
22070 else
22071 # The purpose of the label and of the branching condition is to
22072 # speed up the sed processing (if there are no `@' at all, there
22073 # is no need to browse any of the substitutions).
22074 # These are the two extra sed commands mentioned above.
22075 (echo ':t
22076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22077 if test -z "$ac_sed_cmds"; then
35996d22 22078 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
503d2be0 22079 else
35996d22 22080 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
503d2be0
AS
22081 fi
22082 ac_sed_frag=`expr $ac_sed_frag + 1`
22083 ac_beg=$ac_end
22084 ac_end=`expr $ac_end + $ac_max_sed_lines`
22085 fi
22086 done
22087 if test -z "$ac_sed_cmds"; then
22088 ac_sed_cmds=cat
22089 fi
22090fi # test -n "$CONFIG_FILES"
ba4481b5 22091
c0d27fcc
MR
22092_ACEOF
22093cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0 22094for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
ba4481b5 22095 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
503d2be0
AS
22096 case $ac_file in
22097 - | *:- | *:-:* ) # input from stdin
35996d22
AS
22098 cat >$tmp/stdin
22099 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
503d2be0 22101 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35996d22 22102 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
503d2be0 22103 * ) ac_file_in=$ac_file.in ;;
ba4481b5
DL
22104 esac
22105
503d2be0 22106 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
c0d27fcc
MR
22107 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22108$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
22109 X"$ac_file" : 'X\(//\)[^/]' \| \
22110 X"$ac_file" : 'X\(//\)$' \| \
22111 X"$ac_file" : 'X\(/\)' \| \
22112 . : '\(.\)' 2>/dev/null ||
503d2be0
AS
22113echo X"$ac_file" |
22114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22116 /^X\(\/\/\)$/{ s//\1/; q; }
22117 /^X\(\/\).*/{ s//\1/; q; }
22118 s/.*/./; q'`
6bae0ccf
DL
22119 { if $as_mkdir_p; then
22120 mkdir -p "$ac_dir"
22121 else
22122 as_dir="$ac_dir"
22123 as_dirs=
22124 while test ! -d "$as_dir"; do
22125 as_dirs="$as_dir $as_dirs"
22126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
22128 X"$as_dir" : 'X\(//\)[^/]' \| \
22129 X"$as_dir" : 'X\(//\)$' \| \
22130 X"$as_dir" : 'X\(/\)' \| \
22131 . : '\(.\)' 2>/dev/null ||
6bae0ccf
DL
22132echo X"$as_dir" |
22133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22135 /^X\(\/\/\)$/{ s//\1/; q; }
22136 /^X\(\/\).*/{ s//\1/; q; }
22137 s/.*/./; q'`
22138 done
22139 test ! -n "$as_dirs" || mkdir $as_dirs
22140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22141echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22142 { (exit 1); exit 1; }; }; }
503d2be0 22143
c0d27fcc 22144 ac_builddir=.
98418dba 22145
c0d27fcc
MR
22146if test "$ac_dir" != .; then
22147 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22148 # A "../" for each directory in $ac_dir_suffix.
22149 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22150else
22151 ac_dir_suffix= ac_top_builddir=
22152fi
22153
22154case $srcdir in
22155 .) # No --srcdir option. We are building in place.
22156 ac_srcdir=.
22157 if test -z "$ac_top_builddir"; then
22158 ac_top_srcdir=.
22159 else
22160 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22161 fi ;;
22162 [\\/]* | ?:[\\/]* ) # Absolute path.
22163 ac_srcdir=$srcdir$ac_dir_suffix;
22164 ac_top_srcdir=$srcdir ;;
ba4481b5 22165 *) # Relative path.
c0d27fcc
MR
22166 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22167 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22168esac
35996d22
AS
22169
22170# Do not use `cd foo && pwd` to compute absolute paths, because
22171# the directories may not exist.
22172case `pwd` in
22173.) ac_abs_builddir="$ac_dir";;
22174*)
22175 case "$ac_dir" in
22176 .) ac_abs_builddir=`pwd`;;
22177 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22178 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22179 esac;;
22180esac
22181case $ac_abs_builddir in
22182.) ac_abs_top_builddir=${ac_top_builddir}.;;
22183*)
22184 case ${ac_top_builddir}. in
22185 .) ac_abs_top_builddir=$ac_abs_builddir;;
22186 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22187 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22188 esac;;
22189esac
22190case $ac_abs_builddir in
22191.) ac_abs_srcdir=$ac_srcdir;;
22192*)
22193 case $ac_srcdir in
22194 .) ac_abs_srcdir=$ac_abs_builddir;;
22195 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22196 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22197 esac;;
22198esac
22199case $ac_abs_builddir in
22200.) ac_abs_top_srcdir=$ac_top_srcdir;;
22201*)
22202 case $ac_top_srcdir in
22203 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22204 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22205 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22206 esac;;
22207esac
c0d27fcc 22208
ba4481b5 22209
503d2be0
AS
22210 case $INSTALL in
22211 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
c0d27fcc 22212 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
ba4481b5
DL
22213 esac
22214
503d2be0 22215 if test x"$ac_file" != x-; then
c0d27fcc 22216 { echo "$as_me:$LINENO: creating $ac_file" >&5
503d2be0
AS
22217echo "$as_me: creating $ac_file" >&6;}
22218 rm -f "$ac_file"
22219 fi
22220 # Let's still pretend it is `configure' which instantiates (i.e., don't
22221 # use $as_me), people would be surprised to read:
c0d27fcc
MR
22222 # /* config.h. Generated by config.status. */
22223 if test x"$ac_file" = x-; then
22224 configure_input=
22225 else
22226 configure_input="$ac_file. "
22227 fi
22228 configure_input=$configure_input"Generated from `echo $ac_file_in |
35996d22 22229 sed 's,.*/,,'` by configure."
503d2be0
AS
22230
22231 # First look for the input files in the build tree, otherwise in the
22232 # src tree.
22233 ac_file_inputs=`IFS=:
22234 for f in $ac_file_in; do
22235 case $f in
22236 -) echo $tmp/stdin ;;
22237 [\\/$]*)
35996d22
AS
22238 # Absolute (can't be DOS-style, as IFS=:)
22239 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
503d2be0
AS
22240echo "$as_me: error: cannot find input file: $f" >&2;}
22241 { (exit 1); exit 1; }; }
35996d22 22242 echo "$f";;
503d2be0 22243 *) # Relative
35996d22
AS
22244 if test -f "$f"; then
22245 # Build tree
22246 echo "$f"
22247 elif test -f "$srcdir/$f"; then
22248 # Source tree
22249 echo "$srcdir/$f"
22250 else
22251 # /dev/null tree
22252 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
503d2be0
AS
22253echo "$as_me: error: cannot find input file: $f" >&2;}
22254 { (exit 1); exit 1; }; }
35996d22 22255 fi;;
503d2be0
AS
22256 esac
22257 done` || { (exit 1); exit 1; }
c0d27fcc
MR
22258_ACEOF
22259cat >>$CONFIG_STATUS <<_ACEOF
503d2be0
AS
22260 sed "$ac_vpsub
22261$extrasub
c0d27fcc
MR
22262_ACEOF
22263cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
22264:t
22265/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22266s,@configure_input@,$configure_input,;t t
22267s,@srcdir@,$ac_srcdir,;t t
c0d27fcc 22268s,@abs_srcdir@,$ac_abs_srcdir,;t t
503d2be0 22269s,@top_srcdir@,$ac_top_srcdir,;t t
c0d27fcc
MR
22270s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22271s,@builddir@,$ac_builddir,;t t
22272s,@abs_builddir@,$ac_abs_builddir,;t t
22273s,@top_builddir@,$ac_top_builddir,;t t
22274s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
503d2be0
AS
22275s,@INSTALL@,$ac_INSTALL,;t t
22276" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22277 rm -f $tmp/stdin
22278 if test x"$ac_file" != x-; then
22279 mv $tmp/out $ac_file
22280 else
22281 cat $tmp/out
22282 rm -f $tmp/out
22283 fi
22284
22285done
c0d27fcc
MR
22286_ACEOF
22287cat >>$CONFIG_STATUS <<\_ACEOF
ba4481b5 22288
503d2be0
AS
22289#
22290# CONFIG_HEADER section.
22291#
ba4481b5
DL
22292
22293# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22294# NAME is the cpp macro being defined and VALUE is the value it is being given.
22295#
22296# ac_d sets the value in "#define NAME VALUE" lines.
35996d22
AS
22297ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22298ac_dB='[ ].*$,\1#\2'
503d2be0
AS
22299ac_dC=' '
22300ac_dD=',;t'
22301# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35996d22 22302ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
503d2be0 22303ac_uB='$,\1#\2define\3'
ba4481b5 22304ac_uC=' '
503d2be0 22305ac_uD=',;t'
ba4481b5 22306
503d2be0 22307for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
ba4481b5 22308 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
503d2be0
AS
22309 case $ac_file in
22310 - | *:- | *:-:* ) # input from stdin
35996d22
AS
22311 cat >$tmp/stdin
22312 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
503d2be0 22314 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35996d22 22315 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
503d2be0 22316 * ) ac_file_in=$ac_file.in ;;
ba4481b5
DL
22317 esac
22318
c0d27fcc 22319 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
503d2be0
AS
22320echo "$as_me: creating $ac_file" >&6;}
22321
22322 # First look for the input files in the build tree, otherwise in the
22323 # src tree.
22324 ac_file_inputs=`IFS=:
22325 for f in $ac_file_in; do
22326 case $f in
22327 -) echo $tmp/stdin ;;
22328 [\\/$]*)
35996d22
AS
22329 # Absolute (can't be DOS-style, as IFS=:)
22330 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
503d2be0
AS
22331echo "$as_me: error: cannot find input file: $f" >&2;}
22332 { (exit 1); exit 1; }; }
35996d22
AS
22333 # Do quote $f, to prevent DOS paths from being IFS'd.
22334 echo "$f";;
503d2be0 22335 *) # Relative
35996d22
AS
22336 if test -f "$f"; then
22337 # Build tree
22338 echo "$f"
22339 elif test -f "$srcdir/$f"; then
22340 # Source tree
22341 echo "$srcdir/$f"
22342 else
22343 # /dev/null tree
22344 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
503d2be0
AS
22345echo "$as_me: error: cannot find input file: $f" >&2;}
22346 { (exit 1); exit 1; }; }
35996d22 22347 fi;;
503d2be0
AS
22348 esac
22349 done` || { (exit 1); exit 1; }
22350 # Remove the trailing spaces.
35996d22 22351 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
503d2be0 22352
c0d27fcc 22353_ACEOF
503d2be0
AS
22354
22355# Transform confdefs.h into two sed scripts, `conftest.defines' and
22356# `conftest.undefs', that substitutes the proper values into
22357# config.h.in to produce config.h. The first handles `#define'
22358# templates, and the second `#undef' templates.
22359# And first: Protect against being on the right side of a sed subst in
22360# config.status. Protect against being in an unquoted here document
22361# in config.status.
22362rm -f conftest.defines conftest.undefs
22363# Using a here document instead of a string reduces the quoting nightmare.
22364# Putting comments in sed scripts is not portable.
22365#
22366# `end' is used to avoid that the second main sed command (meant for
22367# 0-ary CPP macros) applies to n-ary macro definitions.
22368# See the Autoconf documentation for `clear'.
c0d27fcc 22369cat >confdef2sed.sed <<\_ACEOF
503d2be0
AS
22370s/[\\&,]/\\&/g
22371s,[\\$`],\\&,g
22372t clear
22373: clear
35996d22 22374s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
503d2be0 22375t end
35996d22 22376s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
503d2be0 22377: end
c0d27fcc 22378_ACEOF
503d2be0
AS
22379# If some macros were called several times there might be several times
22380# the same #defines, which is useless. Nevertheless, we may not want to
22381# sort them, since we want the *last* AC-DEFINE to be honored.
22382uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22383sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22384rm -f confdef2sed.sed
ba4481b5
DL
22385
22386# This sed command replaces #undef with comments. This is necessary, for
22387# example, in the case of _POSIX_SOURCE, which is predefined and required
22388# on some systems where configure will not decide to define it.
c0d27fcc 22389cat >>conftest.undefs <<\_ACEOF
35996d22 22390s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
c0d27fcc 22391_ACEOF
ba4481b5 22392
503d2be0
AS
22393# Break up conftest.defines because some shells have a limit on the size
22394# of here documents, and old seds have small limits too (100 cmds).
22395echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35996d22 22396echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
503d2be0
AS
22397echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22398echo ' :' >>$CONFIG_STATUS
22399rm -f conftest.tail
22400while grep . conftest.defines >/dev/null
22401do
22402 # Write a limited-size here document to $tmp/defines.sed.
22403 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22404 # Speed up: don't consider the non `#define' lines.
35996d22 22405 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
503d2be0
AS
22406 # Work around the forget-to-reset-the-flag bug.
22407 echo 't clr' >>$CONFIG_STATUS
22408 echo ': clr' >>$CONFIG_STATUS
22409 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22410 echo 'CEOF
22411 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22412 rm -f $tmp/in
22413 mv $tmp/out $tmp/in
22414' >>$CONFIG_STATUS
22415 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22416 rm -f conftest.defines
22417 mv conftest.tail conftest.defines
22418done
22419rm -f conftest.defines
6bae0ccf 22420echo ' fi # grep' >>$CONFIG_STATUS
503d2be0 22421echo >>$CONFIG_STATUS
ba4481b5 22422
503d2be0
AS
22423# Break up conftest.undefs because some shells have a limit on the size
22424# of here documents, and old seds have small limits too (100 cmds).
22425echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
ba4481b5 22426rm -f conftest.tail
503d2be0 22427while grep . conftest.undefs >/dev/null
ba4481b5 22428do
503d2be0
AS
22429 # Write a limited-size here document to $tmp/undefs.sed.
22430 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22431 # Speed up: don't consider the non `#undef'
35996d22 22432 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
503d2be0
AS
22433 # Work around the forget-to-reset-the-flag bug.
22434 echo 't clr' >>$CONFIG_STATUS
22435 echo ': clr' >>$CONFIG_STATUS
22436 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
ba4481b5 22437 echo 'CEOF
503d2be0
AS
22438 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22439 rm -f $tmp/in
22440 mv $tmp/out $tmp/in
22441' >>$CONFIG_STATUS
22442 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22443 rm -f conftest.undefs
22444 mv conftest.tail conftest.undefs
ba4481b5 22445done
503d2be0
AS
22446rm -f conftest.undefs
22447
c0d27fcc 22448cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
22449 # Let's still pretend it is `configure' which instantiates (i.e., don't
22450 # use $as_me), people would be surprised to read:
c0d27fcc 22451 # /* config.h. Generated by config.status. */
503d2be0 22452 if test x"$ac_file" = x-; then
c0d27fcc 22453 echo "/* Generated by configure. */" >$tmp/config.h
ba4481b5 22454 else
c0d27fcc 22455 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
503d2be0
AS
22456 fi
22457 cat $tmp/in >>$tmp/config.h
22458 rm -f $tmp/in
22459 if test x"$ac_file" != x-; then
19650fd6 22460 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
c0d27fcc 22461 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
503d2be0
AS
22462echo "$as_me: $ac_file is unchanged" >&6;}
22463 else
c0d27fcc
MR
22464 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22465$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
22466 X"$ac_file" : 'X\(//\)[^/]' \| \
22467 X"$ac_file" : 'X\(//\)$' \| \
22468 X"$ac_file" : 'X\(/\)' \| \
22469 . : '\(.\)' 2>/dev/null ||
503d2be0
AS
22470echo X"$ac_file" |
22471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22473 /^X\(\/\/\)$/{ s//\1/; q; }
22474 /^X\(\/\).*/{ s//\1/; q; }
22475 s/.*/./; q'`
6bae0ccf
DL
22476 { if $as_mkdir_p; then
22477 mkdir -p "$ac_dir"
22478 else
22479 as_dir="$ac_dir"
22480 as_dirs=
22481 while test ! -d "$as_dir"; do
22482 as_dirs="$as_dir $as_dirs"
22483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
22485 X"$as_dir" : 'X\(//\)[^/]' \| \
22486 X"$as_dir" : 'X\(//\)$' \| \
22487 X"$as_dir" : 'X\(/\)' \| \
22488 . : '\(.\)' 2>/dev/null ||
6bae0ccf
DL
22489echo X"$as_dir" |
22490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22492 /^X\(\/\/\)$/{ s//\1/; q; }
22493 /^X\(\/\).*/{ s//\1/; q; }
22494 s/.*/./; q'`
22495 done
22496 test ! -n "$as_dirs" || mkdir $as_dirs
22497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22498echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22499 { (exit 1); exit 1; }; }; }
503d2be0 22500
503d2be0
AS
22501 rm -f $ac_file
22502 mv $tmp/config.h $ac_file
ba4481b5 22503 fi
503d2be0
AS
22504 else
22505 cat $tmp/config.h
22506 rm -f $tmp/config.h
ba4481b5 22507 fi
503d2be0 22508done
c0d27fcc
MR
22509_ACEOF
22510cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
22511
22512#
22513# CONFIG_COMMANDS section.
22514#
22515for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22516 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22517 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c0d27fcc
MR
22518 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22519$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
22520 X"$ac_dest" : 'X\(//\)[^/]' \| \
22521 X"$ac_dest" : 'X\(//\)$' \| \
22522 X"$ac_dest" : 'X\(/\)' \| \
22523 . : '\(.\)' 2>/dev/null ||
c0d27fcc
MR
22524echo X"$ac_dest" |
22525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22527 /^X\(\/\/\)$/{ s//\1/; q; }
22528 /^X\(\/\).*/{ s//\1/; q; }
22529 s/.*/./; q'`
35996d22
AS
22530 { if $as_mkdir_p; then
22531 mkdir -p "$ac_dir"
22532 else
22533 as_dir="$ac_dir"
22534 as_dirs=
22535 while test ! -d "$as_dir"; do
22536 as_dirs="$as_dir $as_dirs"
22537 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22538$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22539 X"$as_dir" : 'X\(//\)[^/]' \| \
22540 X"$as_dir" : 'X\(//\)$' \| \
22541 X"$as_dir" : 'X\(/\)' \| \
22542 . : '\(.\)' 2>/dev/null ||
22543echo X"$as_dir" |
22544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22546 /^X\(\/\/\)$/{ s//\1/; q; }
22547 /^X\(\/\).*/{ s//\1/; q; }
22548 s/.*/./; q'`
22549 done
22550 test ! -n "$as_dirs" || mkdir $as_dirs
22551 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22552echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22553 { (exit 1); exit 1; }; }; }
22554
c0d27fcc
MR
22555 ac_builddir=.
22556
22557if test "$ac_dir" != .; then
22558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22559 # A "../" for each directory in $ac_dir_suffix.
22560 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22561else
22562 ac_dir_suffix= ac_top_builddir=
22563fi
22564
22565case $srcdir in
22566 .) # No --srcdir option. We are building in place.
22567 ac_srcdir=.
22568 if test -z "$ac_top_builddir"; then
22569 ac_top_srcdir=.
22570 else
22571 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22572 fi ;;
22573 [\\/]* | ?:[\\/]* ) # Absolute path.
22574 ac_srcdir=$srcdir$ac_dir_suffix;
22575 ac_top_srcdir=$srcdir ;;
22576 *) # Relative path.
22577 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22578 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22579esac
35996d22
AS
22580
22581# Do not use `cd foo && pwd` to compute absolute paths, because
22582# the directories may not exist.
22583case `pwd` in
22584.) ac_abs_builddir="$ac_dir";;
22585*)
22586 case "$ac_dir" in
22587 .) ac_abs_builddir=`pwd`;;
22588 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22589 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22590 esac;;
22591esac
22592case $ac_abs_builddir in
22593.) ac_abs_top_builddir=${ac_top_builddir}.;;
22594*)
22595 case ${ac_top_builddir}. in
22596 .) ac_abs_top_builddir=$ac_abs_builddir;;
22597 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22598 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22599 esac;;
22600esac
22601case $ac_abs_builddir in
22602.) ac_abs_srcdir=$ac_srcdir;;
22603*)
22604 case $ac_srcdir in
22605 .) ac_abs_srcdir=$ac_abs_builddir;;
22606 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22607 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22608 esac;;
22609esac
22610case $ac_abs_builddir in
22611.) ac_abs_top_srcdir=$ac_top_srcdir;;
22612*)
22613 case $ac_top_srcdir in
22614 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22615 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22616 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22617 esac;;
22618esac
ba4481b5 22619
c0d27fcc
MR
22620
22621 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22622echo "$as_me: executing $ac_dest commands" >&6;}
503d2be0
AS
22623 case $ac_dest in
22624 default )
ba4481b5
DL
22625
22626### Make the necessary directories, if they don't exist.
22627for dir in etc lisp ; do
22628 test -d ${dir} || mkdir ${dir}
22629done
22630
22631# Build src/Makefile from ${srcdir}/src/Makefile.c
22632# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22633# This must be done after src/config.h is built, since we rely on that file.
22634
22635# Now get this: Some word that is part of the ${srcdir} directory name
22636# or the ${configuration} value might, just might, happen to be an
22637# identifier like `sun4' or `i386' or something, and be predefined by
22638# the C preprocessor to some helpful value like 1, or maybe the empty
22639# string. Needless to say consequent macro substitutions are less
22640# than conducive to the makefile finding the correct directory.
22641undefs="`echo $top_srcdir $configuration $canonical |
22642sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22643 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22644`"
22645
22646echo creating src/epaths.h
4aa6b955 22647${MAKE-make} epaths-force
ba4481b5 22648
1c203d4c
DL
22649# As of 2000-11-19, newest development versions of GNU cpp preprocess
22650# `..' to `. .' unless invoked with -traditional
22651
d0e9bfd2 22652if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
1c203d4c
DL
22653 CPPFLAGS="$CPPFLAGS -traditional"
22654fi
22655
ba4481b5
DL
22656echo creating lib-src/Makefile
22657( cd lib-src
22658 rm -f junk.c junk1.c junk2.c
22659 sed -e '/start of cpp stuff/q' \
22660 < Makefile.c > junk1.c
22661 sed -e '1,/start of cpp stuff/d'\
9a72e4c1 22662 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
ba4481b5 22663 < Makefile.c > junk.c
503d2be0 22664 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
ba4481b5
DL
22665 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22666 cat junk1.c junk2.c > Makefile.new
22667 rm -f junk.c junk1.c junk2.c
22668 chmod 444 Makefile.new
22669 mv -f Makefile.new Makefile
22670)
22671
22672echo creating src/Makefile
22673( cd src
22674 rm -f junk.c junk1.c junk2.c
22675 sed -e '/start of cpp stuff/q' \
22676 < Makefile.c > junk1.c
22677 sed -e '1,/start of cpp stuff/d'\
9a72e4c1 22678 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
ba4481b5 22679 < Makefile.c > junk.c
503d2be0 22680 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
ba4481b5
DL
22681 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22682 cat junk1.c junk2.c > Makefile.new
22683 rm -f junk.c junk1.c junk2.c
22684 chmod 444 Makefile.new
22685 mv -f Makefile.new Makefile
22686)
22687
503d2be0 22688if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
ba4481b5 22689 echo creating src/.gdbinit
503d2be0 22690 echo source $srcdir/src/.gdbinit > src/.gdbinit
ba4481b5
DL
22691fi
22692
22693# This is how we know whether to re-run configure in certain cases.
22694touch src/config.stamp
22695
503d2be0
AS
22696 ;;
22697 esac
22698done
c0d27fcc 22699_ACEOF
503d2be0 22700
c0d27fcc 22701cat >>$CONFIG_STATUS <<\_ACEOF
ba4481b5 22702
503d2be0 22703{ (exit 0); exit 0; }
c0d27fcc 22704_ACEOF
ba4481b5 22705chmod +x $CONFIG_STATUS
503d2be0
AS
22706ac_clean_files=$ac_clean_files_save
22707
c0d27fcc 22708
503d2be0
AS
22709# configure is writing to config.log, and then calls config.status.
22710# config.status does its own redirection, appending to config.log.
22711# Unfortunately, on DOS this fails, as config.log is still kept open
22712# by configure, so config.status won't be able to write to it; its
22713# output is simply discarded. So we exec the FD to /dev/null,
22714# effectively closing config.log, so it can be properly (re)opened and
22715# appended to by config.status. When coming back to configure, we
22716# need to make the FD available again.
22717if test "$no_create" != yes; then
22718 ac_cs_success=:
19650fd6
AS
22719 ac_config_status_args=
22720 test "$silent" = yes &&
22721 ac_config_status_args="$ac_config_status_args --quiet"
503d2be0 22722 exec 5>/dev/null
19650fd6 22723 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
503d2be0
AS
22724 exec 5>>config.log
22725 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22726 # would make configure fail if this is the last instruction.
22727 $ac_cs_success || { (exit 1); exit 1; }
22728fi
f5f47add 22729
c0d27fcc 22730