aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2001-10-19 12:33:10 +0000
committerAndreas Schwab2001-10-19 12:33:10 +0000
commit503d2be044b52f0e792dd51e3a31fed5c87447f1 (patch)
treefc3a2ebdcba3c47dd58b0ec6054de28a507dc9ea
parent96ac8fc97108b142159de3a8432a7a0b2d66d140 (diff)
downloademacs-503d2be044b52f0e792dd51e3a31fed5c87447f1.tar.gz
emacs-503d2be044b52f0e792dd51e3a31fed5c87447f1.zip
Regenerated.
-rwxr-xr-xconfigure12794
1 files changed, 8181 insertions, 4613 deletions
diff --git a/configure b/configure
index 2cd1a40949e..0cc12f936ce 100755
--- a/configure
+++ b/configure
@@ -1,57 +1,155 @@
1#! /bin/sh 1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13 3# Generated by Autoconf 2.52.
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6# 4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation 7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 8# gives unlimited permission to copy, distribute and modify it.
9 9
10# Defaults: 10# Avoid depending upon Character Ranges.
11ac_help= 11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29fi
30
31# Name of the executable.
32as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36else
37 as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53else
54 as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
58as_executable_p="test -f"
59
60# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63else
64 as_unset=false
65fi
66
67# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS=" $as_nl"
82
83# CDPATH.
84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
12ac_default_prefix=/usr/local 96ac_default_prefix=/usr/local
13# Any additions from configure.in: 97cross_compiling=no
14ac_help="$ac_help 98subdirs=
15 --without-gcc don't use GCC to compile Emacs if GCC is found" 99MFLAGS= MAKEFLAGS=
16ac_help="$ac_help 100SHELL=${CONFIG_SHELL-/bin/sh}
17 --without-pop don't support POP mail retrieval with movemail" 101
18ac_help="$ac_help 102# Maximum number of lines to put in a shell here document.
19 --with-kerberos support Kerberos-authenticated POP" 103# This variable seems obsolete. It should probably be removed, and
20ac_help="$ac_help 104# only ac_max_sed_lines should be used.
21 --with-kerberos5 support Kerberos version 5 authenticated POP" 105: ${ac_max_here_lines=38}
22ac_help="$ac_help 106
23 --with-hesiod support Hesiod to get the POP server host" 107ac_unique_file="src/lisp.h"
24ac_help="$ac_help 108# Factoring default headers for most tests.
25 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)" 109ac_includes_default="\
26ac_help="$ac_help 110#include <stdio.h>
27 --with-xpm use -lXpm for displaying XPM images" 111#if HAVE_SYS_TYPES_H
28ac_help="$ac_help 112# include <sys/types.h>
29 --with-jpeg use -ljpeg for displaying JPEG images" 113#endif
30ac_help="$ac_help 114#if HAVE_SYS_STAT_H
31 --with-tiff use -ltiff for displaying TIFF images" 115# include <sys/stat.h>
32ac_help="$ac_help 116#endif
33 --with-gif use -lungif for displaying GIF images" 117#if STDC_HEADERS
34ac_help="$ac_help 118# include <stdlib.h>
35 --with-png use -lpng for displaying PNG images" 119# include <stddef.h>
36ac_help="$ac_help 120#else
37 --without-toolkit-scroll-bars 121# if HAVE_STDLIB_H
38 don't use Motif or Xaw3d scroll bars" 122# include <stdlib.h>
39ac_help="$ac_help 123# endif
40 --without-xim don't use X11 XIM" 124#endif
41ac_help="$ac_help 125#if HAVE_STRING_H
42 --disable-largefile omit support for large files" 126# if !STDC_HEADERS && HAVE_MEMORY_H
43ac_help="$ac_help 127# include <memory.h>
44 --with-x use the X Window System" 128# endif
129# include <string.h>
130#endif
131#if HAVE_STRINGS_H
132# include <strings.h>
133#endif
134#if HAVE_INTTYPES_H
135# include <inttypes.h>
136#else
137# if HAVE_STDINT_H
138# include <stdint.h>
139# endif
140#endif
141#if HAVE_UNISTD_H
142# include <unistd.h>
143#endif"
45 144
46# Initialize some variables set by options. 145# Initialize some variables set by options.
146ac_init_help=
147ac_init_version=false
47# The variables have the same names as the options, with 148# The variables have the same names as the options, with
48# dashes changed to underlines. 149# dashes changed to underlines.
49build=NONE 150cache_file=/dev/null
50cache_file=./config.cache
51exec_prefix=NONE 151exec_prefix=NONE
52host=NONE
53no_create= 152no_create=
54nonopt=NONE
55no_recursion= 153no_recursion=
56prefix=NONE 154prefix=NONE
57program_prefix=NONE 155program_prefix=NONE
@@ -60,10 +158,15 @@ program_transform_name=s,x,x,
60silent= 158silent=
61site= 159site=
62srcdir= 160srcdir=
63target=NONE
64verbose= 161verbose=
65x_includes=NONE 162x_includes=NONE
66x_libraries=NONE 163x_libraries=NONE
164
165# Installation directory options.
166# These are left unexpanded so users can "make install exec_prefix=/foo"
167# and all the variables that are supposed to be based on exec_prefix
168# by default will actually change.
169# Use braces instead of parens because sh, perl, etc. also accept them.
67bindir='${exec_prefix}/bin' 170bindir='${exec_prefix}/bin'
68sbindir='${exec_prefix}/sbin' 171sbindir='${exec_prefix}/sbin'
69libexecdir='${exec_prefix}/libexec' 172libexecdir='${exec_prefix}/libexec'
@@ -77,17 +180,16 @@ oldincludedir='/usr/include'
77infodir='${prefix}/info' 180infodir='${prefix}/info'
78mandir='${prefix}/man' 181mandir='${prefix}/man'
79 182
80# Initialize some other variables. 183# Identity of this package.
81subdirs= 184PACKAGE_NAME=
82MFLAGS= MAKEFLAGS= 185PACKAGE_TARNAME=
83SHELL=${CONFIG_SHELL-/bin/sh} 186PACKAGE_VERSION=
84# Maximum number of lines to put in a shell here document. 187PACKAGE_STRING=
85ac_max_here_lines=12 188PACKAGE_BUGREPORT=
86 189
87ac_prev= 190ac_prev=
88for ac_option 191for ac_option
89do 192do
90
91 # If the previous option needs an argument, assign it. 193 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then 194 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option" 195 eval "$ac_prev=\$ac_option"
@@ -95,59 +197,59 @@ do
95 continue 197 continue
96 fi 198 fi
97 199
98 case "$ac_option" in 200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
102 201
103 # Accept the important Cygnus configure options, so we can diagnose typos. 202 # Accept the important Cygnus configure options, so we can diagnose typos.
104 203
105 case "$ac_option" in 204 case $ac_option in
106 205
107 -bindir | --bindir | --bindi | --bind | --bin | --bi) 206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 ac_prev=bindir ;; 207 ac_prev=bindir ;;
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;; 209 bindir=$ac_optarg ;;
111 210
112 -build | --build | --buil | --bui | --bu) 211 -build | --build | --buil | --bui | --bu)
113 ac_prev=build ;; 212 ac_prev=build_alias ;;
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;; 214 build_alias=$ac_optarg ;;
116 215
117 -cache-file | --cache-file | --cache-fil | --cache-fi \ 216 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;; 218 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;; 221 cache_file=$ac_optarg ;;
222
223 --config-cache | -C)
224 cache_file=config.cache ;;
123 225
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 ac_prev=datadir ;; 227 ac_prev=datadir ;;
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 | --da=*) 229 | --da=*)
128 datadir="$ac_optarg" ;; 230 datadir=$ac_optarg ;;
129 231
130 -disable-* | --disable-*) 232 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
132 # Reject names that are not valid shell variable names. 234 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
135 fi 237 { (exit 1); exit 1; }; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;; 239 eval "enable_$ac_feature=no" ;;
138 240
139 -enable-* | --enable-*) 241 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
141 # Reject names that are not valid shell variable names. 243 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
144 fi 246 { (exit 1); exit 1; }; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
146 case "$ac_option" in 248 case $ac_option in
147 *=*) ;; 249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
148 *) ac_optarg=yes ;; 250 *) ac_optarg=yes ;;
149 esac 251 esac
150 eval "enable_${ac_feature}='$ac_optarg'" ;; 252 eval "enable_$ac_feature='$ac_optarg'" ;;
151 253
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
@@ -156,95 +258,47 @@ do
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*) 260 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;; 261 exec_prefix=$ac_optarg ;;
160 262
161 -gas | --gas | --ga | --g) 263 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas. 264 # Obsolete; use --with-gas.
163 with_gas=yes ;; 265 with_gas=yes ;;
164 266
165 -help | --help | --hel | --he) 267 -help | --help | --hel | --he | -h)
166 # Omit some internal or obsolete options to make the list less imposing. 268 ac_init_help=long ;;
167 # This message is too long to be a string in the A/UX 3.1 sh. 269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
168 cat << EOF 270 ac_init_help=recursive ;;
169Usage: configure [options] [host] 271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
170Options: [defaults in brackets after descriptions] 272 ac_init_help=short ;;
171Configuration:
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
179 [$ac_default_prefix]
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 [same as prefix]
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
186 [PREFIX/share]
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 [PREFIX/com]
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
201EOF
202 cat << EOF
203Host type:
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
214EOF
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
217 fi
218 exit 0 ;;
219 273
220 -host | --host | --hos | --ho) 274 -host | --host | --hos | --ho)
221 ac_prev=host ;; 275 ac_prev=host_alias ;;
222 -host=* | --host=* | --hos=* | --ho=*) 276 -host=* | --host=* | --hos=* | --ho=*)
223 host="$ac_optarg" ;; 277 host_alias=$ac_optarg ;;
224 278
225 -includedir | --includedir | --includedi | --included | --include \ 279 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc) 280 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;; 281 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*) 283 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;; 284 includedir=$ac_optarg ;;
231 285
232 -infodir | --infodir | --infodi | --infod | --info | --inf) 286 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 ac_prev=infodir ;; 287 ac_prev=infodir ;;
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;; 289 infodir=$ac_optarg ;;
236 290
237 -libdir | --libdir | --libdi | --libd) 291 -libdir | --libdir | --libdi | --libd)
238 ac_prev=libdir ;; 292 ac_prev=libdir ;;
239 -libdir=* | --libdir=* | --libdi=* | --libd=*) 293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;; 294 libdir=$ac_optarg ;;
241 295
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe) 297 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;; 298 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*) 300 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;; 301 libexecdir=$ac_optarg ;;
248 302
249 -localstatedir | --localstatedir | --localstatedi | --localstated \ 303 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \ 304 | --localstate | --localstat | --localsta | --localst \
@@ -253,12 +307,12 @@ EOF
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;; 310 localstatedir=$ac_optarg ;;
257 311
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 ac_prev=mandir ;; 313 ac_prev=mandir ;;
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;; 315 mandir=$ac_optarg ;;
262 316
263 -nfp | --nfp | --nf) 317 -nfp | --nfp | --nf)
264 # Obsolete; use --without-fp. 318 # Obsolete; use --without-fp.
@@ -279,26 +333,26 @@ EOF
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;; 336 oldincludedir=$ac_optarg ;;
283 337
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 ac_prev=prefix ;; 339 ac_prev=prefix ;;
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;; 341 prefix=$ac_optarg ;;
288 342
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p) 344 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;; 345 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;; 348 program_prefix=$ac_optarg ;;
295 349
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s) 351 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;; 352 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;; 355 program_suffix=$ac_optarg ;;
302 356
303 -program-transform-name | --program-transform-name \ 357 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \ 358 | --program-transform-nam | --program-transform-na \
@@ -315,7 +369,7 @@ EOF
315 | --program-transfo=* | --program-transf=* \ 369 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \ 370 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*) 371 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;; 372 program_transform_name=$ac_optarg ;;
319 373
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil) 375 | -silent | --silent | --silen | --sile | --sil)
@@ -325,7 +379,7 @@ EOF
325 ac_prev=sbindir ;; 379 ac_prev=sbindir ;;
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 | --sbi=* | --sb=*) 381 | --sbi=* | --sb=*)
328 sbindir="$ac_optarg" ;; 382 sbindir=$ac_optarg ;;
329 383
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
@@ -336,58 +390,57 @@ EOF
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 | --sha=* | --sh=*) 392 | --sha=* | --sh=*)
339 sharedstatedir="$ac_optarg" ;; 393 sharedstatedir=$ac_optarg ;;
340 394
341 -site | --site | --sit) 395 -site | --site | --sit)
342 ac_prev=site ;; 396 ac_prev=site ;;
343 -site=* | --site=* | --sit=*) 397 -site=* | --site=* | --sit=*)
344 site="$ac_optarg" ;; 398 site=$ac_optarg ;;
345 399
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;; 401 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;; 403 srcdir=$ac_optarg ;;
350 404
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy) 406 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;; 407 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;; 410 sysconfdir=$ac_optarg ;;
357 411
358 -target | --target | --targe | --targ | --tar | --ta | --t) 412 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;; 413 ac_prev=target_alias ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;; 415 target_alias=$ac_optarg ;;
362 416
363 -v | -verbose | --verbose | --verbos | --verbo | --verb) 417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;; 418 verbose=yes ;;
365 419
366 -version | --version | --versio | --versi | --vers) 420 -version | --version | --versio | --versi | --vers | -V)
367 echo "configure generated by autoconf version 2.13" 421 ac_init_version=: ;;
368 exit 0 ;;
369 422
370 -with-* | --with-*) 423 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
372 # Reject names that are not valid shell variable names. 425 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 427 { echo "$as_me: error: invalid package name: $ac_package" >&2
375 fi 428 { (exit 1); exit 1; }; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'` 429 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in 430 case $ac_option in
378 *=*) ;; 431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 *) ac_optarg=yes ;; 432 *) ac_optarg=yes ;;
380 esac 433 esac
381 eval "with_${ac_package}='$ac_optarg'" ;; 434 eval "with_$ac_package='$ac_optarg'" ;;
382 435
383 -without-* | --without-*) 436 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
385 # Reject names that are not valid shell variable names. 438 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 440 { echo "$as_me: error: invalid package name: $ac_package" >&2
388 fi 441 { (exit 1); exit 1; }; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'` 442 ac_package=`echo $ac_package | sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;; 443 eval "with_$ac_package=no" ;;
391 444
392 --x) 445 --x)
393 # Obsolete; use --with-x. 446 # Obsolete; use --with-x.
@@ -398,98 +451,98 @@ EOF
398 ac_prev=x_includes ;; 451 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;; 454 x_includes=$ac_optarg ;;
402 455
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;; 458 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;; 461 x_libraries=$ac_optarg ;;
409 462
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
411 ;; 466 ;;
412 467
468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
477
413 *) 478 *)
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 479 # FIXME: should be removed in autoconf 3.0.
415 echo "configure: warning: $ac_option: invalid host type" 1>&2 480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
416 fi 481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
417 if test "x$nonopt" != xNONE; then 482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
419 fi
420 nonopt="$ac_option"
421 ;; 484 ;;
422 485
423 esac 486 esac
424done 487done
425 488
426if test -n "$ac_prev"; then 489if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
428fi 491 { echo "$as_me: error: missing argument to $ac_option" >&2
429 492 { (exit 1); exit 1; }; }
430trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431
432# File descriptor usage:
433# 0 standard input
434# 1 file creation
435# 2 errors and warnings
436# 3 some systems may open it to /dev/tty
437# 4 used on the Kubota Titan
438# 6 checking for... messages and results
439# 5 compiler messages saved in config.log
440if test "$silent" = yes; then
441 exec 6>/dev/null
442else
443 exec 6>&1
444fi 493fi
445exec 5>./config.log
446 494
447echo "\ 495# Be sure to have absolute paths.
448This file contains any messages produced by compilers while 496for ac_var in exec_prefix prefix
449running configure, to aid debugging if configure makes a mistake. 497do
450" 1>&5 498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504done
451 505
452# Strip out --no-create and --no-recursion so they do not pile up. 506# Be sure to have absolute paths.
453# Also quote any args containing shell metacharacters. 507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
454ac_configure_args= 508 localstatedir libdir includedir oldincludedir infodir mandir
455for ac_arg
456do 509do
457 case "$ac_arg" in 510 eval ac_val=$`echo $ac_var`
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 511 case $ac_val in
459 | --no-cr | --no-c) ;; 512 [\\/$]* | ?:[\\/]* ) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 514 { (exit 1); exit 1; }; };;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac 515 esac
466done 516done
467 517
468# NLS nuisances. 518# There might be people who depend on the old broken behavior: `$host'
469# Only set these to C if already set. These must not be set unconditionally 519# used to hold the argument of --host etc.
470# because not all systems understand e.g. LANG=C (notably SCO). 520build=$build_alias
471# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 521host=$host_alias
472# Non-C LC_CTYPE values break the ctype check. 522target=$target_alias
473if test "${LANG+set}" = set; then LANG=C; export LANG; fi 523
474if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 524# FIXME: should be removed in autoconf 3.0.
475if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 525if test "x$host_alias" != x; then
476if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
532 fi
533fi
477 534
478# confdefs.h avoids OS command line length limits that DEFS can exceed. 535ac_tool_prefix=
479rm -rf conftest* confdefs.h 536test -n "$host_alias" && ac_tool_prefix=$host_alias-
480# AIX cpp loses on an empty file, so make sure it contains at least a newline.
481echo > confdefs.h
482 537
483# A filename unique to this package, relative to the directory that 538test "$silent" = yes && exec 6>/dev/null
484# configure is in, which we can look for to find out if srcdir is correct.
485ac_unique_file=src/lisp.h
486 539
487# Find the source files, if location was not specified. 540# Find the source files, if location was not specified.
488if test -z "$srcdir"; then 541if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes 542 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent. 543 # Try the directory containing this script, then its parent.
491 ac_prog=$0 544 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir 547 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then 548 if test ! -r $srcdir/$ac_unique_file; then
@@ -500,13 +553,327 @@ else
500fi 553fi
501if test ! -r $srcdir/$ac_unique_file; then 554if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then 555 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
504 else 558 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
506 fi 561 fi
507fi 562fi
508srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564ac_env_build_alias_set=${build_alias+set}
565ac_env_build_alias_value=$build_alias
566ac_cv_env_build_alias_set=${build_alias+set}
567ac_cv_env_build_alias_value=$build_alias
568ac_env_host_alias_set=${host_alias+set}
569ac_env_host_alias_value=$host_alias
570ac_cv_env_host_alias_set=${host_alias+set}
571ac_cv_env_host_alias_value=$host_alias
572ac_env_target_alias_set=${target_alias+set}
573ac_env_target_alias_value=$target_alias
574ac_cv_env_target_alias_set=${target_alias+set}
575ac_cv_env_target_alias_value=$target_alias
576ac_env_CC_set=${CC+set}
577ac_env_CC_value=$CC
578ac_cv_env_CC_set=${CC+set}
579ac_cv_env_CC_value=$CC
580ac_env_CFLAGS_set=${CFLAGS+set}
581ac_env_CFLAGS_value=$CFLAGS
582ac_cv_env_CFLAGS_set=${CFLAGS+set}
583ac_cv_env_CFLAGS_value=$CFLAGS
584ac_env_LDFLAGS_set=${LDFLAGS+set}
585ac_env_LDFLAGS_value=$LDFLAGS
586ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587ac_cv_env_LDFLAGS_value=$LDFLAGS
588ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589ac_env_CPPFLAGS_value=$CPPFLAGS
590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592ac_env_CPP_set=${CPP+set}
593ac_env_CPP_value=$CPP
594ac_cv_env_CPP_set=${CPP+set}
595ac_cv_env_CPP_value=$CPP
596
597#
598# Report the --help message.
599#
600if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF
604\`configure' configures this package to adapt to many kinds of systems.
605
606Usage: $0 [OPTION]... [VAR=VALUE]...
607
608To assign environment variables (e.g., CC, CFLAGS...), specify them as
609VAR=VALUE. See below for descriptions of some of the useful variables.
610
611Defaults for the options are specified in brackets.
612
613Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
623
624EOF
625
626 cat <<EOF
627Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
632
633By default, \`make install' will install all the files in
634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636for instance \`--prefix=\$HOME'.
637
638For better control, use the options below.
639
640Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
653EOF
654
655 cat <<\EOF
656
657X features:
658 --x-includes=DIR X include files are in DIR
659 --x-libraries=DIR X library files are in DIR
660
661System types:
662 --build=BUILD configure for building on BUILD [guessed]
663 --host=HOST build programs to run on HOST [BUILD]
664EOF
665fi
666
667if test -n "$ac_init_help"; then
668
669 cat <<\EOF
670
671Optional Features:
672 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
673 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
674 --disable-largefile omit support for large files
675
676Optional Packages:
677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
679 --without-gcc don't use GCC to compile Emacs if GCC is found
680 --without-pop don't support POP mail retrieval with movemail
681 --with-kerberos support Kerberos-authenticated POP
682 --with-kerberos5 support Kerberos version 5 authenticated POP
683 --with-hesiod support Hesiod to get the POP server host
684 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
685 --with-xpm use -lXpm for displaying XPM images
686 --with-jpeg use -ljpeg for displaying JPEG images
687 --with-tiff use -ltiff for displaying TIFF images
688 --with-gif use -lungif for displaying GIF images
689 --with-png use -lpng for displaying PNG images
690 --without-toolkit-scroll-bars
691 don't use Motif or Xaw3d scroll bars
692 --without-xim don't use X11 XIM
693 --with-x use the X Window System
694
695Some influential environment variables:
696 CC C compiler command
697 CFLAGS C compiler flags
698 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
699 nonstandard directory <lib dir>
700 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
701 headers in a nonstandard directory <include dir>
702 CPP C preprocessor
703
704Use these variables to override the choices made by `configure' or to help
705it to find libraries and programs with nonstandard names/locations.
706
707EOF
708fi
709
710if test "$ac_init_help" = "recursive"; then
711 # If there are subdirs, report their specific --help.
712 ac_popdir=`pwd`
713 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
714 cd $ac_subdir
715 # A "../" for each directory in /$ac_subdir.
716 ac_dots=`echo $ac_subdir |
717 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
718
719 case $srcdir in
720 .) # No --srcdir option. We are building in place.
721 ac_sub_srcdir=$srcdir ;;
722 [\\/]* | ?:[\\/]* ) # Absolute path.
723 ac_sub_srcdir=$srcdir/$ac_subdir ;;
724 *) # Relative path.
725 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
726 esac
727
728 # Check for guested configure; otherwise get Cygnus style configure.
729 if test -f $ac_sub_srcdir/configure.gnu; then
730 echo
731 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
732 elif test -f $ac_sub_srcdir/configure; then
733 echo
734 $SHELL $ac_sub_srcdir/configure --help=recursive
735 elif test -f $ac_sub_srcdir/configure.ac ||
736 test -f $ac_sub_srcdir/configure.in; then
737 echo
738 $ac_configure --help
739 else
740 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
741 fi
742 cd $ac_popdir
743 done
744fi
745
746test -n "$ac_init_help" && exit 0
747if $ac_init_version; then
748 cat <<\EOF
749
750Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
751Free Software Foundation, Inc.
752This configure script is free software; the Free Software Foundation
753gives unlimited permission to copy, distribute and modify it.
754EOF
755 exit 0
756fi
757exec 5>config.log
758cat >&5 <<EOF
759This file contains any messages produced by compilers while
760running configure, to aid debugging if configure makes a mistake.
761
762It was created by $as_me, which was
763generated by GNU Autoconf 2.52. Invocation command line was
764
765 $ $0 $@
766
767EOF
768{
769cat <<_ASUNAME
770## ---------- ##
771## Platform. ##
772## ---------- ##
773
774hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
775uname -m = `(uname -m) 2>/dev/null || echo unknown`
776uname -r = `(uname -r) 2>/dev/null || echo unknown`
777uname -s = `(uname -s) 2>/dev/null || echo unknown`
778uname -v = `(uname -v) 2>/dev/null || echo unknown`
509 779
780/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
781/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
782
783/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
784/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
785/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
786hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
787/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
788/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
789/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
790
791PATH = $PATH
792
793_ASUNAME
794} >&5
795
796cat >&5 <<EOF
797## ------------ ##
798## Core tests. ##
799## ------------ ##
800
801EOF
802
803# Keep a trace of the command line.
804# Strip out --no-create and --no-recursion so they do not pile up.
805# Also quote any args containing shell meta-characters.
806ac_configure_args=
807ac_sep=
808for ac_arg
809do
810 case $ac_arg in
811 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
812 | --no-cr | --no-c) ;;
813 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
814 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
815 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
816 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
817 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
818 ac_sep=" " ;;
819 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
820 ac_sep=" " ;;
821 esac
822 # Get rid of the leading space.
823done
824
825# When interrupted or exit'd, cleanup temporary files, and complete
826# config.log. We remove comments because anyway the quotes in there
827# would cause problems or look ugly.
828trap 'exit_status=$?
829 # Save into config.log some information that might help in debugging.
830 echo >&5
831 echo "## ----------------- ##" >&5
832 echo "## Cache variables. ##" >&5
833 echo "## ----------------- ##" >&5
834 echo >&5
835 # The following way of writing the cache mishandles newlines in values,
836{
837 (set) 2>&1 |
838 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
839 *ac_space=\ *)
840 sed -n \
841 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
843 ;;
844 *)
845 sed -n \
846 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
847 ;;
848 esac;
849} >&5
850 sed "/^$/d" confdefs.h >conftest.log
851 if test -s conftest.log; then
852 echo >&5
853 echo "## ------------ ##" >&5
854 echo "## confdefs.h. ##" >&5
855 echo "## ------------ ##" >&5
856 echo >&5
857 cat conftest.log >&5
858 fi
859 (echo; echo) >&5
860 test "$ac_signal" != 0 &&
861 echo "$as_me: caught signal $ac_signal" >&5
862 echo "$as_me: exit $exit_status" >&5
863 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
864 exit $exit_status
865 ' 0
866for ac_signal in 1 2 13 15; do
867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
868done
869ac_signal=0
870
871# confdefs.h avoids OS command line length limits that DEFS can exceed.
872rm -rf conftest* confdefs.h
873# AIX cpp loses on an empty file, so make sure it contains at least a newline.
874echo >confdefs.h
875
876# Let the site file select an alternate cache file if it wants to.
510# Prefer explicitly selected file to automatically selected ones. 877# Prefer explicitly selected file to automatically selected ones.
511if test -z "$CONFIG_SITE"; then 878if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then 879 if test "x$prefix" != xNONE; then
@@ -517,42 +884,109 @@ if test -z "$CONFIG_SITE"; then
517fi 884fi
518for ac_site_file in $CONFIG_SITE; do 885for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then 886 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file" 887 { echo "$as_me:887: loading site script $ac_site_file" >&5
888echo "$as_me: loading site script $ac_site_file" >&6;}
889 cat "$ac_site_file" >&5
521 . "$ac_site_file" 890 . "$ac_site_file"
522 fi 891 fi
523done 892done
524 893
525if test -r "$cache_file"; then 894if test -r "$cache_file"; then
526 echo "loading cache $cache_file" 895 # Some versions of bash will fail to source /dev/null (special
527 . $cache_file 896 # files actually), so we avoid doing that.
897 if test -f "$cache_file"; then
898 { echo "$as_me:898: loading cache $cache_file" >&5
899echo "$as_me: loading cache $cache_file" >&6;}
900 case $cache_file in
901 [\\/]* | ?:[\\/]* ) . $cache_file;;
902 *) . ./$cache_file;;
903 esac
904 fi
528else 905else
529 echo "creating cache $cache_file" 906 { echo "$as_me:906: creating cache $cache_file" >&5
530 > $cache_file 907echo "$as_me: creating cache $cache_file" >&6;}
908 >$cache_file
909fi
910
911# Check that the precious variables saved in the cache have kept the same
912# value.
913ac_cache_corrupted=false
914for ac_var in `(set) 2>&1 |
915 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
916 eval ac_old_set=\$ac_cv_env_${ac_var}_set
917 eval ac_new_set=\$ac_env_${ac_var}_set
918 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
919 eval ac_new_val="\$ac_env_${ac_var}_value"
920 case $ac_old_set,$ac_new_set in
921 set,)
922 { echo "$as_me:922: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
923echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
924 ac_cache_corrupted=: ;;
925 ,set)
926 { echo "$as_me:926: error: \`$ac_var' was not set in the previous run" >&5
927echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
928 ac_cache_corrupted=: ;;
929 ,);;
930 *)
931 if test "x$ac_old_val" != "x$ac_new_val"; then
932 { echo "$as_me:932: error: \`$ac_var' has changed since the previous run:" >&5
933echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
934 { echo "$as_me:934: former value: $ac_old_val" >&5
935echo "$as_me: former value: $ac_old_val" >&2;}
936 { echo "$as_me:936: current value: $ac_new_val" >&5
937echo "$as_me: current value: $ac_new_val" >&2;}
938 ac_cache_corrupted=:
939 fi;;
940 esac
941 # Pass precious variables to config.status. It doesn't matter if
942 # we pass some twice (in addition to the command line arguments).
943 if test "$ac_new_set" = set; then
944 case $ac_new_val in
945 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
946 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
947 ac_configure_args="$ac_configure_args '$ac_arg'"
948 ;;
949 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
950 ;;
951 esac
952 fi
953done
954if $ac_cache_corrupted; then
955 { echo "$as_me:955: error: changes in the environment can compromise the build" >&5
956echo "$as_me: error: changes in the environment can compromise the build" >&2;}
957 { { echo "$as_me:957: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
958echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
959 { (exit 1); exit 1; }; }
531fi 960fi
532 961
533ac_ext=c 962ac_ext=c
534# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535ac_cpp='$CPP $CPPFLAGS' 963ac_cpp='$CPP $CPPFLAGS'
536ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
537ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
538cross_compiling=$ac_cv_prog_cc_cross 966ac_compiler_gnu=$ac_cv_c_compiler_gnu
539 967
540ac_exeext= 968case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
541ac_objext=o 969 *c*,-n*) ECHO_N= ECHO_C='
542if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 970' ECHO_T=' ' ;;
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 971 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 972 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
545 ac_n= ac_c=' 973esac
546' ac_t=' ' 974echo "#! $SHELL" >conftest.sh
547 else 975echo "exit 0" >>conftest.sh
548 ac_n=-n ac_c= ac_t= 976chmod +x conftest.sh
549 fi 977if { (echo "$as_me:977: PATH=\".;.\"; conftest.sh") >&5
978 (PATH=".;."; conftest.sh) 2>&5
979 ac_status=$?
980 echo "$as_me:980: \$? = $ac_status" >&5
981 (exit $ac_status); }; then
982 ac_path_separator=';'
550else 983else
551 ac_n= ac_c='\c' ac_t= 984 ac_path_separator=:
552fi 985fi
986PATH_SEPARATOR="$ac_path_separator"
987rm -f conftest.sh
553 988
554 989ac_config_headers="$ac_config_headers src/config.h:src/config.in"
555
556 990
557lispdir='${datadir}/emacs/${version}/lisp' 991lispdir='${datadir}/emacs/${version}/lisp'
558locallisppath='${datadir}/emacs/${version}/site-lisp:'\ 992locallisppath='${datadir}/emacs/${version}/site-lisp:'\
@@ -565,34 +999,34 @@ docdir='${datadir}/emacs/${version}/etc'
565# Check whether --with-gcc or --without-gcc was given. 999# Check whether --with-gcc or --without-gcc was given.
566if test "${with_gcc+set}" = set; then 1000if test "${with_gcc+set}" = set; then
567 withval="$with_gcc" 1001 withval="$with_gcc"
568 : 1002
569fi 1003fi;
570 1004
571# Check whether --with-pop or --without-pop was given. 1005# Check whether --with-pop or --without-pop was given.
572if test "${with_pop+set}" = set; then 1006if test "${with_pop+set}" = set; then
573 withval="$with_pop" 1007 withval="$with_pop"
574 if test "$withval" = yes; then 1008 if test "$withval" = yes; then
575 cat >> confdefs.h <<\EOF 1009 cat >>confdefs.h <<\EOF
576#define MAIL_USE_POP 1 1010#define MAIL_USE_POP 1
577EOF 1011EOF
578 1012
579else : 1013else :
580fi 1014fi
581else 1015else
582 cat >> confdefs.h <<\EOF 1016 cat >>confdefs.h <<\EOF
583#define MAIL_USE_POP 1 1017#define MAIL_USE_POP 1
584EOF 1018EOF
585 1019
586fi 1020fi;
587 1021
588# Check whether --with-kerberos or --without-kerberos was given. 1022# Check whether --with-kerberos or --without-kerberos was given.
589if test "${with_kerberos+set}" = set; then 1023if test "${with_kerberos+set}" = set; then
590 withval="$with_kerberos" 1024 withval="$with_kerberos"
591 cat >> confdefs.h <<\EOF 1025 cat >>confdefs.h <<\EOF
592#define KERBEROS 1 1026#define KERBEROS 1
593EOF 1027EOF
594 1028
595fi 1029fi;
596 1030
597# Check whether --with-kerberos5 or --without-kerberos5 was given. 1031# Check whether --with-kerberos5 or --without-kerberos5 was given.
598if test "${with_kerberos5+set}" = set; then 1032if test "${with_kerberos5+set}" = set; then
@@ -600,26 +1034,26 @@ if test "${with_kerberos5+set}" = set; then
600 if test "${with_kerberos5+set}" = set; then 1034 if test "${with_kerberos5+set}" = set; then
601 if test "${with_kerberos+set}" != set; then 1035 if test "${with_kerberos+set}" != set; then
602 with_kerberos=yes 1036 with_kerberos=yes
603 cat >> confdefs.h <<\EOF 1037 cat >>confdefs.h <<\EOF
604#define KERBEROS 1 1038#define KERBEROS 1
605EOF 1039EOF
606 1040
607 fi 1041 fi
608fi 1042fi
609cat >> confdefs.h <<\EOF 1043cat >>confdefs.h <<\EOF
610#define KERBEROS5 1 1044#define KERBEROS5 1
611EOF 1045EOF
612 1046
613fi 1047fi;
614 1048
615# Check whether --with-hesiod or --without-hesiod was given. 1049# Check whether --with-hesiod or --without-hesiod was given.
616if test "${with_hesiod+set}" = set; then 1050if test "${with_hesiod+set}" = set; then
617 withval="$with_hesiod" 1051 withval="$with_hesiod"
618 cat >> confdefs.h <<\EOF 1052 cat >>confdefs.h <<\EOF
619#define HESIOD 1 1053#define HESIOD 1
620EOF 1054EOF
621 1055
622fi 1056fi;
623 1057
624# Check whether --with-x-toolkit or --without-x-toolkit was given. 1058# Check whether --with-x-toolkit or --without-x-toolkit was given.
625if test "${with_x_toolkit+set}" = set; then 1059if test "${with_x_toolkit+set}" = set; then
@@ -631,57 +1065,60 @@ if test "${with_x_toolkit+set}" = set; then
631 a | at | ath | athe | athen | athena ) val=athena ;; 1065 a | at | ath | athe | athen | athena ) val=athena ;;
632 m | mo | mot | moti | motif ) val=motif ;; 1066 m | mo | mot | moti | motif ) val=motif ;;
633 * ) 1067 * )
634{ echo "configure: error: \`--with-x-toolkit=$withval' is invalid\; 1068{ { echo "$as_me:1068: error: \`--with-x-toolkit=$withval' is invalid\;
1069this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1070Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1071echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
635this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. 1072this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
636Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; } 1073Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1074 { (exit 1); exit 1; }; }
637 ;; 1075 ;;
638 esac 1076 esac
639 with_x_toolkit=$val 1077 with_x_toolkit=$val
640 1078
641fi 1079fi;
642 1080
643# Check whether --with-xpm or --without-xpm was given. 1081# Check whether --with-xpm or --without-xpm was given.
644if test "${with_xpm+set}" = set; then 1082if test "${with_xpm+set}" = set; then
645 withval="$with_xpm" 1083 withval="$with_xpm"
646 : 1084
647fi 1085fi;
648 1086
649# Check whether --with-jpeg or --without-jpeg was given. 1087# Check whether --with-jpeg or --without-jpeg was given.
650if test "${with_jpeg+set}" = set; then 1088if test "${with_jpeg+set}" = set; then
651 withval="$with_jpeg" 1089 withval="$with_jpeg"
652 : 1090
653fi 1091fi;
654 1092
655# Check whether --with-tiff or --without-tiff was given. 1093# Check whether --with-tiff or --without-tiff was given.
656if test "${with_tiff+set}" = set; then 1094if test "${with_tiff+set}" = set; then
657 withval="$with_tiff" 1095 withval="$with_tiff"
658 : 1096
659fi 1097fi;
660 1098
661# Check whether --with-gif or --without-gif was given. 1099# Check whether --with-gif or --without-gif was given.
662if test "${with_gif+set}" = set; then 1100if test "${with_gif+set}" = set; then
663 withval="$with_gif" 1101 withval="$with_gif"
664 : 1102
665fi 1103fi;
666 1104
667# Check whether --with-png or --without-png was given. 1105# Check whether --with-png or --without-png was given.
668if test "${with_png+set}" = set; then 1106if test "${with_png+set}" = set; then
669 withval="$with_png" 1107 withval="$with_png"
670 : 1108
671fi 1109fi;
672 1110
673# Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. 1111# Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
674if test "${with_toolkit_scroll_bars+set}" = set; then 1112if test "${with_toolkit_scroll_bars+set}" = set; then
675 withval="$with_toolkit_scroll_bars" 1113 withval="$with_toolkit_scroll_bars"
676 : 1114
677fi 1115fi;
678 1116
679# Check whether --with-xim or --without-xim was given. 1117# Check whether --with-xim or --without-xim was given.
680if test "${with_xim+set}" = set; then 1118if test "${with_xim+set}" = set; then
681 withval="$with_xim" 1119 withval="$with_xim"
682 :
683fi
684 1120
1121fi;
685 1122
686#### Make srcdir absolute, if it isn't already. It's important to 1123#### Make srcdir absolute, if it isn't already. It's important to
687#### avoid running the path through pwd unnecessarily, since pwd can 1124#### avoid running the path through pwd unnecessarily, since pwd can
@@ -707,12 +1144,18 @@ esac
707#### Check if the source directory already has a configured system in it. 1144#### Check if the source directory already has a configured system in it.
708if test `pwd` != `(cd ${srcdir} && pwd)` \ 1145if test `pwd` != `(cd ${srcdir} && pwd)` \
709 && test -f "${srcdir}/src/config.h" ; then 1146 && test -f "${srcdir}/src/config.h" ; then
710 echo "configure: warning: The directory tree \`${srcdir}' is being used 1147 { echo "$as_me:1147: WARNING: The directory tree \`${srcdir}' is being used
711 as a build directory right now; it has been configured in its own 1148 as a build directory right now; it has been configured in its own
712 right. To configure in another directory as well, you MUST 1149 right. To configure in another directory as well, you MUST
713 use GNU make. If you do not have GNU make, then you must 1150 use GNU make. If you do not have GNU make, then you must
714 now do \`make distclean' in ${srcdir}, 1151 now do \`make distclean' in ${srcdir},
715 and then run $0 again." 1>&2 1152 and then run $0 again." >&5
1153echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1154 as a build directory right now; it has been configured in its own
1155 right. To configure in another directory as well, you MUST
1156 use GNU make. If you do not have GNU make, then you must
1157 now do \`make distclean' in ${srcdir},
1158 and then run $0 again." >&2;}
716 1159
717 extrasub='/^VPATH[ ]*=/c\ 1160 extrasub='/^VPATH[ ]*=/c\
718vpath %.c $(srcdir)\ 1161vpath %.c $(srcdir)\
@@ -739,46 +1182,76 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
739 ac_aux_dir=$ac_dir 1182 ac_aux_dir=$ac_dir
740 ac_install_sh="$ac_aux_dir/install.sh -c" 1183 ac_install_sh="$ac_aux_dir/install.sh -c"
741 break 1184 break
1185 elif test -f $ac_dir/shtool; then
1186 ac_aux_dir=$ac_dir
1187 ac_install_sh="$ac_aux_dir/shtool install -c"
1188 break
742 fi 1189 fi
743done 1190done
744if test -z "$ac_aux_dir"; then 1191if test -z "$ac_aux_dir"; then
745 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 1192 { { echo "$as_me:1192: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1193echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1194 { (exit 1); exit 1; }; }
746fi 1195fi
747ac_config_guess=$ac_aux_dir/config.guess 1196ac_config_guess="$SHELL $ac_aux_dir/config.guess"
748ac_config_sub=$ac_aux_dir/config.sub 1197ac_config_sub="$SHELL $ac_aux_dir/config.sub"
749ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1198ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
750
751 1199
752# Make sure we can run config.sub. 1200# Make sure we can run config.sub.
753if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 1201$ac_config_sub sun4 >/dev/null 2>&1 ||
754else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 1202 { { echo "$as_me:1202: error: cannot run $ac_config_sub" >&5
755fi 1203echo "$as_me: error: cannot run $ac_config_sub" >&2;}
756 1204 { (exit 1); exit 1; }; }
757echo $ac_n "checking host system type""... $ac_c" 1>&6 1205
758echo "configure:759: checking host system type" >&5 1206echo "$as_me:1206: checking build system type" >&5
759 1207echo $ECHO_N "checking build system type... $ECHO_C" >&6
760host_alias=$host 1208if test "${ac_cv_build+set}" = set; then
761case "$host_alias" in 1209 echo $ECHO_N "(cached) $ECHO_C" >&6
762NONE) 1210else
763 case $nonopt in 1211 ac_cv_build_alias=$build_alias
764 NONE) 1212test -z "$ac_cv_build_alias" &&
765 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 1213 ac_cv_build_alias=`$ac_config_guess`
766 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 1214test -z "$ac_cv_build_alias" &&
767 fi ;; 1215 { { echo "$as_me:1215: error: cannot guess build type; you must specify one" >&5
768 *) host_alias=$nonopt ;; 1216echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
769 esac ;; 1217 { (exit 1); exit 1; }; }
770esac 1218ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
771 1219 { { echo "$as_me:1219: error: $ac_config_sub $ac_cv_build_alias failed." >&5
772host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 1220echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
773host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1221 { (exit 1); exit 1; }; }
774host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1222
775host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1223fi
776echo "$ac_t""$host" 1>&6 1224echo "$as_me:1224: result: $ac_cv_build" >&5
1225echo "${ECHO_T}$ac_cv_build" >&6
1226build=$ac_cv_build
1227build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1228build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1229build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1230
1231echo "$as_me:1231: checking host system type" >&5
1232echo $ECHO_N "checking host system type... $ECHO_C" >&6
1233if test "${ac_cv_host+set}" = set; then
1234 echo $ECHO_N "(cached) $ECHO_C" >&6
1235else
1236 ac_cv_host_alias=$host_alias
1237test -z "$ac_cv_host_alias" &&
1238 ac_cv_host_alias=$ac_cv_build_alias
1239ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1240 { { echo "$as_me:1240: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1241echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1242 { (exit 1); exit 1; }; }
1243
1244fi
1245echo "$as_me:1245: result: $ac_cv_host" >&5
1246echo "${ECHO_T}$ac_cv_host" >&6
1247host=$ac_cv_host
1248host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1249host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1250host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
777 1251
778canonical=$host 1252canonical=$host
779configuration=$host_alias 1253configuration=$host_alias
780 1254
781
782### If you add support for a new configuration, add code to this 1255### If you add support for a new configuration, add code to this
783### switch statement to recognize your configuration name and select 1256### switch statement to recognize your configuration name and select
784### the appropriate operating system and machine description files. 1257### the appropriate operating system and machine description files.
@@ -1635,7 +2108,7 @@ case "${canonical}" in
1635 *-xenix* ) opsys=xenix ;; 2108 *-xenix* ) opsys=xenix ;;
1636 *-linux-gnu* ) opsys=gnu-linux ;; 2109 *-linux-gnu* ) opsys=gnu-linux ;;
1637 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; 2110 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
1638 *-sco3.2v5* ) opsys=sco5 2111 *-sco3.2v5* ) opsys=sco5
1639 NON_GNU_CPP=/lib/cpp 2112 NON_GNU_CPP=/lib/cpp
1640 # Prevent -belf from being passed to $CPP. 2113 # Prevent -belf from being passed to $CPP.
1641 # /lib/cpp does not accept it. 2114 # /lib/cpp does not accept it.
@@ -1712,16 +2185,17 @@ if test x"${opsys}" = x; then
1712 esac 2185 esac
1713fi 2186fi
1714 2187
1715
1716if test $unported = yes; then 2188if test $unported = yes; then
1717 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems. 2189 { { echo "$as_me:2189: error: Emacs hasn't been ported to \`${canonical}' systems.
1718Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; } 2190Check \`etc/MACHINES' for recognized configuration names." >&5
2191echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2192Check \`etc/MACHINES' for recognized configuration names." >&2;}
2193 { (exit 1); exit 1; }; }
1719fi 2194fi
1720 2195
1721machfile="m/${machine}.h" 2196machfile="m/${machine}.h"
1722opsysfile="s/${opsys}.h" 2197opsysfile="s/${opsys}.h"
1723 2198
1724
1725#### Choose a compiler. 2199#### Choose a compiler.
1726test -n "$CC" && cc_specified=yes 2200test -n "$CC" && cc_specified=yes
1727 2201
@@ -1731,214 +2205,580 @@ SPECIFIED_CFLAGS="$CFLAGS"
1731case ${with_gcc} in 2205case ${with_gcc} in
1732 "yes" ) CC="gcc" GCC=yes ;; 2206 "yes" ) CC="gcc" GCC=yes ;;
1733 "no" ) : ${CC=cc} ;; 2207 "no" ) : ${CC=cc} ;;
1734 * ) # Extract the first word of "gcc", so it can be a program name with args. 2208 * )
2209esac
2210ac_ext=c
2211ac_cpp='$CPP $CPPFLAGS'
2212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2214ac_compiler_gnu=$ac_cv_c_compiler_gnu
2215if test -n "$ac_tool_prefix"; then
2216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2217set dummy ${ac_tool_prefix}gcc; ac_word=$2
2218echo "$as_me:2218: checking for $ac_word" >&5
2219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225else
2226 ac_save_IFS=$IFS; IFS=$ac_path_separator
2227ac_dummy="$PATH"
2228for ac_dir in $ac_dummy; do
2229 IFS=$ac_save_IFS
2230 test -z "$ac_dir" && ac_dir=.
2231 $as_executable_p "$ac_dir/$ac_word" || continue
2232ac_cv_prog_CC="${ac_tool_prefix}gcc"
2233echo "$as_me:2233: found $ac_dir/$ac_word" >&5
2234break
2235done
2236
2237fi
2238fi
2239CC=$ac_cv_prog_CC
2240if test -n "$CC"; then
2241 echo "$as_me:2241: result: $CC" >&5
2242echo "${ECHO_T}$CC" >&6
2243else
2244 echo "$as_me:2244: result: no" >&5
2245echo "${ECHO_T}no" >&6
2246fi
2247
2248fi
2249if test -z "$ac_cv_prog_CC"; then
2250 ac_ct_CC=$CC
2251 # Extract the first word of "gcc", so it can be a program name with args.
1735set dummy gcc; ac_word=$2 2252set dummy gcc; ac_word=$2
1736echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2253echo "$as_me:2253: checking for $ac_word" >&5
1737echo "configure:1738: checking for $ac_word" >&5 2254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2255if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739 echo $ac_n "(cached) $ac_c" 1>&6 2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258 if test -n "$ac_ct_CC"; then
2259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260else
2261 ac_save_IFS=$IFS; IFS=$ac_path_separator
2262ac_dummy="$PATH"
2263for ac_dir in $ac_dummy; do
2264 IFS=$ac_save_IFS
2265 test -z "$ac_dir" && ac_dir=.
2266 $as_executable_p "$ac_dir/$ac_word" || continue
2267ac_cv_prog_ac_ct_CC="gcc"
2268echo "$as_me:2268: found $ac_dir/$ac_word" >&5
2269break
2270done
2271
2272fi
2273fi
2274ac_ct_CC=$ac_cv_prog_ac_ct_CC
2275if test -n "$ac_ct_CC"; then
2276 echo "$as_me:2276: result: $ac_ct_CC" >&5
2277echo "${ECHO_T}$ac_ct_CC" >&6
2278else
2279 echo "$as_me:2279: result: no" >&5
2280echo "${ECHO_T}no" >&6
2281fi
2282
2283 CC=$ac_ct_CC
2284else
2285 CC="$ac_cv_prog_CC"
2286fi
2287
2288if test -z "$CC"; then
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2291set dummy ${ac_tool_prefix}cc; ac_word=$2
2292echo "$as_me:2292: checking for $ac_word" >&5
2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294if test "${ac_cv_prog_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
1740else 2296else
1741 if test -n "$CC"; then 2297 if test -n "$CC"; then
1742 ac_cv_prog_CC="$CC" # Let the user override the test. 2298 ac_cv_prog_CC="$CC" # Let the user override the test.
1743else 2299else
1744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2300 ac_save_IFS=$IFS; IFS=$ac_path_separator
1745 ac_dummy="$PATH" 2301ac_dummy="$PATH"
1746 for ac_dir in $ac_dummy; do 2302for ac_dir in $ac_dummy; do
1747 test -z "$ac_dir" && ac_dir=. 2303 IFS=$ac_save_IFS
1748 if test -f $ac_dir/$ac_word; then 2304 test -z "$ac_dir" && ac_dir=.
1749 ac_cv_prog_CC="gcc" 2305 $as_executable_p "$ac_dir/$ac_word" || continue
1750 break 2306ac_cv_prog_CC="${ac_tool_prefix}cc"
1751 fi 2307echo "$as_me:2307: found $ac_dir/$ac_word" >&5
1752 done 2308break
1753 IFS="$ac_save_ifs" 2309done
2310
1754fi 2311fi
1755fi 2312fi
1756CC="$ac_cv_prog_CC" 2313CC=$ac_cv_prog_CC
1757if test -n "$CC"; then 2314if test -n "$CC"; then
1758 echo "$ac_t""$CC" 1>&6 2315 echo "$as_me:2315: result: $CC" >&5
2316echo "${ECHO_T}$CC" >&6
2317else
2318 echo "$as_me:2318: result: no" >&5
2319echo "${ECHO_T}no" >&6
2320fi
2321
2322fi
2323if test -z "$ac_cv_prog_CC"; then
2324 ac_ct_CC=$CC
2325 # Extract the first word of "cc", so it can be a program name with args.
2326set dummy cc; ac_word=$2
2327echo "$as_me:2327: checking for $ac_word" >&5
2328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 if test -n "$ac_ct_CC"; then
2333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334else
2335 ac_save_IFS=$IFS; IFS=$ac_path_separator
2336ac_dummy="$PATH"
2337for ac_dir in $ac_dummy; do
2338 IFS=$ac_save_IFS
2339 test -z "$ac_dir" && ac_dir=.
2340 $as_executable_p "$ac_dir/$ac_word" || continue
2341ac_cv_prog_ac_ct_CC="cc"
2342echo "$as_me:2342: found $ac_dir/$ac_word" >&5
2343break
2344done
2345
2346fi
2347fi
2348ac_ct_CC=$ac_cv_prog_ac_ct_CC
2349if test -n "$ac_ct_CC"; then
2350 echo "$as_me:2350: result: $ac_ct_CC" >&5
2351echo "${ECHO_T}$ac_ct_CC" >&6
1759else 2352else
1760 echo "$ac_t""no" 1>&6 2353 echo "$as_me:2353: result: no" >&5
2354echo "${ECHO_T}no" >&6
1761fi 2355fi
1762 2356
2357 CC=$ac_ct_CC
2358else
2359 CC="$ac_cv_prog_CC"
2360fi
2361
2362fi
1763if test -z "$CC"; then 2363if test -z "$CC"; then
1764 # Extract the first word of "cc", so it can be a program name with args. 2364 # Extract the first word of "cc", so it can be a program name with args.
1765set dummy cc; ac_word=$2 2365set dummy cc; ac_word=$2
1766echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2366echo "$as_me:2366: checking for $ac_word" >&5
1767echo "configure:1768: checking for $ac_word" >&5 2367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2368if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ac_n "(cached) $ac_c" 1>&6 2369 echo $ECHO_N "(cached) $ECHO_C" >&6
1770else 2370else
1771 if test -n "$CC"; then 2371 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test. 2372 ac_cv_prog_CC="$CC" # Let the user override the test.
1773else 2373else
1774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1775 ac_prog_rejected=no 2374 ac_prog_rejected=no
1776 ac_dummy="$PATH" 2375 ac_save_IFS=$IFS; IFS=$ac_path_separator
1777 for ac_dir in $ac_dummy; do 2376ac_dummy="$PATH"
1778 test -z "$ac_dir" && ac_dir=. 2377for ac_dir in $ac_dummy; do
1779 if test -f $ac_dir/$ac_word; then 2378 IFS=$ac_save_IFS
1780 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 2379 test -z "$ac_dir" && ac_dir=.
1781 ac_prog_rejected=yes 2380 $as_executable_p "$ac_dir/$ac_word" || continue
1782 continue 2381if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1783 fi 2382 ac_prog_rejected=yes
1784 ac_cv_prog_CC="cc" 2383 continue
1785 break 2384fi
1786 fi 2385ac_cv_prog_CC="cc"
1787 done 2386echo "$as_me:2386: found $ac_dir/$ac_word" >&5
1788 IFS="$ac_save_ifs" 2387break
2388done
2389
1789if test $ac_prog_rejected = yes; then 2390if test $ac_prog_rejected = yes; then
1790 # We found a bogon in the path, so make sure we never use it. 2391 # We found a bogon in the path, so make sure we never use it.
1791 set dummy $ac_cv_prog_CC 2392 set dummy $ac_cv_prog_CC
1792 shift 2393 shift
1793 if test $# -gt 0; then 2394 if test $# != 0; then
1794 # We chose a different compiler from the bogus one. 2395 # We chose a different compiler from the bogus one.
1795 # However, it has the same basename, so the bogon will be chosen 2396 # However, it has the same basename, so the bogon will be chosen
1796 # first if we set CC to just the basename; use the full file name. 2397 # first if we set CC to just the basename; use the full file name.
1797 shift 2398 shift
1798 set dummy "$ac_dir/$ac_word" "$@" 2399 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1799 shift 2400 shift
1800 ac_cv_prog_CC="$@" 2401 ac_cv_prog_CC="$@"
1801 fi 2402 fi
1802fi 2403fi
1803fi 2404fi
1804fi 2405fi
1805CC="$ac_cv_prog_CC" 2406CC=$ac_cv_prog_CC
1806if test -n "$CC"; then 2407if test -n "$CC"; then
1807 echo "$ac_t""$CC" 1>&6 2408 echo "$as_me:2408: result: $CC" >&5
2409echo "${ECHO_T}$CC" >&6
1808else 2410else
1809 echo "$ac_t""no" 1>&6 2411 echo "$as_me:2411: result: no" >&5
2412echo "${ECHO_T}no" >&6
1810fi 2413fi
1811 2414
1812 if test -z "$CC"; then 2415fi
1813 case "`uname -s`" in 2416if test -z "$CC"; then
1814 *win32* | *WIN32*) 2417 if test -n "$ac_tool_prefix"; then
1815 # Extract the first word of "cl", so it can be a program name with args. 2418 for ac_prog in cl
1816set dummy cl; ac_word=$2 2419 do
1817echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1818echo "configure:1819: checking for $ac_word" >&5 2421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1819if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2422echo "$as_me:2422: checking for $ac_word" >&5
1820 echo $ac_n "(cached) $ac_c" 1>&6 2423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2424if test "${ac_cv_prog_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else 2426else
1822 if test -n "$CC"; then 2427 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test. 2428 ac_cv_prog_CC="$CC" # Let the user override the test.
1824else 2429else
1825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2430 ac_save_IFS=$IFS; IFS=$ac_path_separator
1826 ac_dummy="$PATH" 2431ac_dummy="$PATH"
1827 for ac_dir in $ac_dummy; do 2432for ac_dir in $ac_dummy; do
1828 test -z "$ac_dir" && ac_dir=. 2433 IFS=$ac_save_IFS
1829 if test -f $ac_dir/$ac_word; then 2434 test -z "$ac_dir" && ac_dir=.
1830 ac_cv_prog_CC="cl" 2435 $as_executable_p "$ac_dir/$ac_word" || continue
1831 break 2436ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1832 fi 2437echo "$as_me:2437: found $ac_dir/$ac_word" >&5
1833 done 2438break
1834 IFS="$ac_save_ifs" 2439done
2440
1835fi 2441fi
1836fi 2442fi
1837CC="$ac_cv_prog_CC" 2443CC=$ac_cv_prog_CC
1838if test -n "$CC"; then 2444if test -n "$CC"; then
1839 echo "$ac_t""$CC" 1>&6 2445 echo "$as_me:2445: result: $CC" >&5
2446echo "${ECHO_T}$CC" >&6
1840else 2447else
1841 echo "$ac_t""no" 1>&6 2448 echo "$as_me:2448: result: no" >&5
2449echo "${ECHO_T}no" >&6
1842fi 2450fi
1843 ;; 2451
1844 esac 2452 test -n "$CC" && break
1845 fi 2453 done
1846 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1847fi 2454fi
2455if test -z "$CC"; then
2456 ac_ct_CC=$CC
2457 for ac_prog in cl
2458do
2459 # Extract the first word of "$ac_prog", so it can be a program name with args.
2460set dummy $ac_prog; ac_word=$2
2461echo "$as_me:2461: checking for $ac_word" >&5
2462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466 if test -n "$ac_ct_CC"; then
2467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2468else
2469 ac_save_IFS=$IFS; IFS=$ac_path_separator
2470ac_dummy="$PATH"
2471for ac_dir in $ac_dummy; do
2472 IFS=$ac_save_IFS
2473 test -z "$ac_dir" && ac_dir=.
2474 $as_executable_p "$ac_dir/$ac_word" || continue
2475ac_cv_prog_ac_ct_CC="$ac_prog"
2476echo "$as_me:2476: found $ac_dir/$ac_word" >&5
2477break
2478done
1848 2479
1849echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2480fi
1850echo "configure:1851: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2481fi
2482ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483if test -n "$ac_ct_CC"; then
2484 echo "$as_me:2484: result: $ac_ct_CC" >&5
2485echo "${ECHO_T}$ac_ct_CC" >&6
2486else
2487 echo "$as_me:2487: result: no" >&5
2488echo "${ECHO_T}no" >&6
2489fi
1851 2490
1852ac_ext=c 2491 test -n "$ac_ct_CC" && break
1853# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2492done
1854ac_cpp='$CPP $CPPFLAGS'
1855ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1856ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1857cross_compiling=$ac_cv_prog_cc_cross
1858 2493
1859cat > conftest.$ac_ext << EOF 2494 CC=$ac_ct_CC
2495fi
2496
2497fi
2498
2499test -z "$CC" && { { echo "$as_me:2499: error: no acceptable cc found in \$PATH" >&5
2500echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2501 { (exit 1); exit 1; }; }
2502
2503# Provide some information about the compiler.
2504echo "$as_me:2504:" \
2505 "checking for C compiler version" >&5
2506ac_compiler=`set X $ac_compile; echo $2`
2507{ (eval echo "$as_me:2507: \"$ac_compiler --version </dev/null >&5\"") >&5
2508 (eval $ac_compiler --version </dev/null >&5) 2>&5
2509 ac_status=$?
2510 echo "$as_me:2510: \$? = $ac_status" >&5
2511 (exit $ac_status); }
2512{ (eval echo "$as_me:2512: \"$ac_compiler -v </dev/null >&5\"") >&5
2513 (eval $ac_compiler -v </dev/null >&5) 2>&5
2514 ac_status=$?
2515 echo "$as_me:2515: \$? = $ac_status" >&5
2516 (exit $ac_status); }
2517{ (eval echo "$as_me:2517: \"$ac_compiler -V </dev/null >&5\"") >&5
2518 (eval $ac_compiler -V </dev/null >&5) 2>&5
2519 ac_status=$?
2520 echo "$as_me:2520: \$? = $ac_status" >&5
2521 (exit $ac_status); }
1860 2522
1861#line 1862 "configure" 2523cat >conftest.$ac_ext <<_ACEOF
2524#line 2524 "configure"
1862#include "confdefs.h" 2525#include "confdefs.h"
1863 2526
1864main(){return(0);} 2527int
1865EOF 2528main ()
1866if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2529{
1867 ac_cv_prog_cc_works=yes 2530
1868 # If we can't run a trivial program, we are probably using a cross compiler. 2531 ;
1869 if (./conftest; exit) 2>/dev/null; then 2532 return 0;
1870 ac_cv_prog_cc_cross=no 2533}
2534_ACEOF
2535ac_clean_files_save=$ac_clean_files
2536ac_clean_files="$ac_clean_files a.out a.exe"
2537# Try to create an executable without -o first, disregard a.out.
2538# It will help us diagnose broken compilers, and finding out an intuition
2539# of exeext.
2540echo "$as_me:2540: checking for C compiler default output" >&5
2541echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2542ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2543if { (eval echo "$as_me:2543: \"$ac_link_default\"") >&5
2544 (eval $ac_link_default) 2>&5
2545 ac_status=$?
2546 echo "$as_me:2546: \$? = $ac_status" >&5
2547 (exit $ac_status); }; then
2548 # Find the output, starting from the most likely. This scheme is
2549# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2550# resort.
2551for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2552 ls a.out conftest 2>/dev/null;
2553 ls a.* conftest.* 2>/dev/null`; do
2554 case $ac_file in
2555 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2556 a.out ) # We found the default executable, but exeext='' is most
2557 # certainly right.
2558 break;;
2559 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2560 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2561 export ac_cv_exeext
2562 break;;
2563 * ) break;;
2564 esac
2565done
2566else
2567 echo "$as_me: failed program was:" >&5
2568cat conftest.$ac_ext >&5
2569{ { echo "$as_me:2569: error: C compiler cannot create executables" >&5
2570echo "$as_me: error: C compiler cannot create executables" >&2;}
2571 { (exit 77); exit 77; }; }
2572fi
2573
2574ac_exeext=$ac_cv_exeext
2575echo "$as_me:2575: result: $ac_file" >&5
2576echo "${ECHO_T}$ac_file" >&6
2577
2578# Check the compiler produces executables we can run. If not, either
2579# the compiler is broken, or we cross compile.
2580echo "$as_me:2580: checking whether the C compiler works" >&5
2581echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2582# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2583# If not cross compiling, check that we can run a simple program.
2584if test "$cross_compiling" != yes; then
2585 if { ac_try='./$ac_file'
2586 { (eval echo "$as_me:2586: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:2589: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 cross_compiling=no
1871 else 2592 else
1872 ac_cv_prog_cc_cross=yes 2593 if test "$cross_compiling" = maybe; then
2594 cross_compiling=yes
2595 else
2596 { { echo "$as_me:2596: error: cannot run C compiled programs.
2597If you meant to cross compile, use \`--host'." >&5
2598echo "$as_me: error: cannot run C compiled programs.
2599If you meant to cross compile, use \`--host'." >&2;}
2600 { (exit 1); exit 1; }; }
2601 fi
1873 fi 2602 fi
2603fi
2604echo "$as_me:2604: result: yes" >&5
2605echo "${ECHO_T}yes" >&6
2606
2607rm -f a.out a.exe conftest$ac_cv_exeext
2608ac_clean_files=$ac_clean_files_save
2609# Check the compiler produces executables we can run. If not, either
2610# the compiler is broken, or we cross compile.
2611echo "$as_me:2611: checking whether we are cross compiling" >&5
2612echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2613echo "$as_me:2613: result: $cross_compiling" >&5
2614echo "${ECHO_T}$cross_compiling" >&6
2615
2616echo "$as_me:2616: checking for executable suffix" >&5
2617echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2618if { (eval echo "$as_me:2618: \"$ac_link\"") >&5
2619 (eval $ac_link) 2>&5
2620 ac_status=$?
2621 echo "$as_me:2621: \$? = $ac_status" >&5
2622 (exit $ac_status); }; then
2623 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2624# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2625# work properly (i.e., refer to `conftest.exe'), while it won't with
2626# `rm'.
2627for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2628 case $ac_file in
2629 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2630 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2631 export ac_cv_exeext
2632 break;;
2633 * ) break;;
2634 esac
2635done
1874else 2636else
1875 echo "configure: failed program was:" >&5 2637 { { echo "$as_me:2637: error: cannot compute EXEEXT: cannot compile and link" >&5
1876 cat conftest.$ac_ext >&5 2638echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1877 ac_cv_prog_cc_works=no 2639 { (exit 1); exit 1; }; }
1878fi 2640fi
1879rm -fr conftest*
1880ac_ext=c
1881# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1882ac_cpp='$CPP $CPPFLAGS'
1883ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1884ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1885cross_compiling=$ac_cv_prog_cc_cross
1886 2641
1887echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2642rm -f conftest$ac_cv_exeext
1888if test $ac_cv_prog_cc_works = no; then 2643echo "$as_me:2643: result: $ac_cv_exeext" >&5
1889 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2644echo "${ECHO_T}$ac_cv_exeext" >&6
1890fi
1891echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1892echo "configure:1893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1893echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1894cross_compiling=$ac_cv_prog_cc_cross
1895 2645
1896echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2646rm -f conftest.$ac_ext
1897echo "configure:1898: checking whether we are using GNU C" >&5 2647EXEEXT=$ac_cv_exeext
1898if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 2648ac_exeext=$EXEEXT
1899 echo $ac_n "(cached) $ac_c" 1>&6 2649echo "$as_me:2649: checking for object suffix" >&5
1900else 2650echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1901 cat > conftest.c <<EOF 2651if test "${ac_cv_objext+set}" = set; then
1902#ifdef __GNUC__ 2652 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 yes;
1904#endif
1905EOF
1906if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1907 ac_cv_prog_gcc=yes
1908else 2653else
1909 ac_cv_prog_gcc=no 2654 cat >conftest.$ac_ext <<_ACEOF
1910fi 2655#line 2655 "configure"
1911fi 2656#include "confdefs.h"
1912 2657
1913echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2658int
2659main ()
2660{
1914 2661
1915if test $ac_cv_prog_gcc = yes; then 2662 ;
1916 GCC=yes 2663 return 0;
2664}
2665_ACEOF
2666rm -f conftest.o conftest.obj
2667if { (eval echo "$as_me:2667: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>&5
2669 ac_status=$?
2670 echo "$as_me:2670: \$? = $ac_status" >&5
2671 (exit $ac_status); }; then
2672 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2673 case $ac_file in
2674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2675 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2676 break;;
2677 esac
2678done
1917else 2679else
1918 GCC= 2680 echo "$as_me: failed program was:" >&5
2681cat conftest.$ac_ext >&5
2682{ { echo "$as_me:2682: error: cannot compute OBJEXT: cannot compile" >&5
2683echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2684 { (exit 1); exit 1; }; }
1919fi 2685fi
1920 2686
1921ac_test_CFLAGS="${CFLAGS+set}" 2687rm -f conftest.$ac_cv_objext conftest.$ac_ext
1922ac_save_CFLAGS="$CFLAGS" 2688fi
1923CFLAGS= 2689echo "$as_me:2689: result: $ac_cv_objext" >&5
1924echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2690echo "${ECHO_T}$ac_cv_objext" >&6
1925echo "configure:1926: checking whether ${CC-cc} accepts -g" >&5 2691OBJEXT=$ac_cv_objext
1926if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 2692ac_objext=$OBJEXT
1927 echo $ac_n "(cached) $ac_c" 1>&6 2693echo "$as_me:2693: checking whether we are using the GNU C compiler" >&5
2694echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2695if test "${ac_cv_c_compiler_gnu+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
1928else 2697else
1929 echo 'void f(){}' > conftest.c 2698 cat >conftest.$ac_ext <<_ACEOF
1930if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2699#line 2699 "configure"
2700#include "confdefs.h"
2701
2702int
2703main ()
2704{
2705#ifndef __GNUC__
2706 choke me
2707#endif
2708
2709 ;
2710 return 0;
2711}
2712_ACEOF
2713rm -f conftest.$ac_objext
2714if { (eval echo "$as_me:2714: \"$ac_compile\"") >&5
2715 (eval $ac_compile) 2>&5
2716 ac_status=$?
2717 echo "$as_me:2717: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:2720: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:2723: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 ac_compiler_gnu=yes
2726else
2727 echo "$as_me: failed program was:" >&5
2728cat conftest.$ac_ext >&5
2729ac_compiler_gnu=no
2730fi
2731rm -f conftest.$ac_objext conftest.$ac_ext
2732ac_cv_c_compiler_gnu=$ac_compiler_gnu
2733
2734fi
2735echo "$as_me:2735: result: $ac_cv_c_compiler_gnu" >&5
2736echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2737GCC=`test $ac_compiler_gnu = yes && echo yes`
2738ac_test_CFLAGS=${CFLAGS+set}
2739ac_save_CFLAGS=$CFLAGS
2740CFLAGS="-g"
2741echo "$as_me:2741: checking whether $CC accepts -g" >&5
2742echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2743if test "${ac_cv_prog_cc_g+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745else
2746 cat >conftest.$ac_ext <<_ACEOF
2747#line 2747 "configure"
2748#include "confdefs.h"
2749
2750int
2751main ()
2752{
2753
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758rm -f conftest.$ac_objext
2759if { (eval echo "$as_me:2759: \"$ac_compile\"") >&5
2760 (eval $ac_compile) 2>&5
2761 ac_status=$?
2762 echo "$as_me:2762: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:2765: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:2768: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
1931 ac_cv_prog_cc_g=yes 2770 ac_cv_prog_cc_g=yes
1932else 2771else
1933 ac_cv_prog_cc_g=no 2772 echo "$as_me: failed program was:" >&5
2773cat conftest.$ac_ext >&5
2774ac_cv_prog_cc_g=no
1934fi 2775fi
1935rm -f conftest* 2776rm -f conftest.$ac_objext conftest.$ac_ext
1936
1937fi 2777fi
1938 2778echo "$as_me:2778: result: $ac_cv_prog_cc_g" >&5
1939echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2779echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1940if test "$ac_test_CFLAGS" = set; then 2780if test "$ac_test_CFLAGS" = set; then
1941 CFLAGS="$ac_save_CFLAGS" 2781 CFLAGS=$ac_save_CFLAGS
1942elif test $ac_cv_prog_cc_g = yes; then 2782elif test $ac_cv_prog_cc_g = yes; then
1943 if test "$GCC" = yes; then 2783 if test "$GCC" = yes; then
1944 CFLAGS="-g -O2" 2784 CFLAGS="-g -O2"
@@ -1952,8 +2792,116 @@ else
1952 CFLAGS= 2792 CFLAGS=
1953 fi 2793 fi
1954fi 2794fi
2795# Some people use a C++ compiler to compile C. Since we use `exit',
2796# in C++ we need to declare it. In case someone uses the same compiler
2797# for both compiling C and C++ we need to have the C++ compiler decide
2798# the declaration of exit, since it's the most demanding environment.
2799cat >conftest.$ac_ext <<_ACEOF
2800#ifndef __cplusplus
2801 choke me
2802#endif
2803_ACEOF
2804rm -f conftest.$ac_objext
2805if { (eval echo "$as_me:2805: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>&5
2807 ac_status=$?
2808 echo "$as_me:2808: \$? = $ac_status" >&5
2809 (exit $ac_status); } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:2811: \"$ac_try\"") >&5
2812 (eval $ac_try) 2>&5
2813 ac_status=$?
2814 echo "$as_me:2814: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 for ac_declaration in \
2817 ''\
2818 '#include <stdlib.h>' \
2819 'extern "C" void std::exit (int) throw (); using std::exit;' \
2820 'extern "C" void std::exit (int); using std::exit;' \
2821 'extern "C" void exit (int) throw ();' \
2822 'extern "C" void exit (int);' \
2823 'void exit (int);'
2824do
2825 cat >conftest.$ac_ext <<_ACEOF
2826#line 2826 "configure"
2827#include "confdefs.h"
2828#include <stdlib.h>
2829$ac_declaration
2830int
2831main ()
2832{
2833exit (42);
2834 ;
2835 return 0;
2836}
2837_ACEOF
2838rm -f conftest.$ac_objext
2839if { (eval echo "$as_me:2839: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>&5
2841 ac_status=$?
2842 echo "$as_me:2842: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:2845: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:2848: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 :
2851else
2852 echo "$as_me: failed program was:" >&5
2853cat conftest.$ac_ext >&5
2854continue
2855fi
2856rm -f conftest.$ac_objext conftest.$ac_ext
2857 cat >conftest.$ac_ext <<_ACEOF
2858#line 2858 "configure"
2859#include "confdefs.h"
2860$ac_declaration
2861int
2862main ()
2863{
2864exit (42);
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext
2870if { (eval echo "$as_me:2870: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>&5
2872 ac_status=$?
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:2876: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:2879: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2881 break
2882else
2883 echo "$as_me: failed program was:" >&5
2884cat conftest.$ac_ext >&5
2885fi
2886rm -f conftest.$ac_objext conftest.$ac_ext
2887done
2888rm -f conftest*
2889if test -n "$ac_declaration"; then
2890 echo '#ifdef __cplusplus' >>confdefs.h
2891 echo $ac_declaration >>confdefs.h
2892 echo '#endif' >>confdefs.h
2893fi
1955 2894
1956esac 2895else
2896 echo "$as_me: failed program was:" >&5
2897cat conftest.$ac_ext >&5
2898fi
2899rm -f conftest.$ac_objext conftest.$ac_ext
2900ac_ext=c
2901ac_cpp='$CPP $CPPFLAGS'
2902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957 2905
1958# On Suns, sometimes $CPP names a directory. 2906# On Suns, sometimes $CPP names a directory.
1959if test -n "$CPP" && test -d "$CPP"; then 2907if test -n "$CPP" && test -d "$CPP"; then
@@ -2001,106 +2949,216 @@ fi
2001#### should make an entry in src/config.h, don't forget to add an 2949#### should make an entry in src/config.h, don't forget to add an
2002#### #undef clause to src/config.h.in for autoconf to modify. 2950#### #undef clause to src/config.h.in for autoconf to modify.
2003 2951
2004echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 2952echo "$as_me:2952: checking whether ln -s works" >&5
2005echo "configure:2006: checking whether ln -s works" >&5 2953echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2006if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 2954LN_S=$as_ln_s
2007 echo $ac_n "(cached) $ac_c" 1>&6 2955if test "$LN_S" = "ln -s"; then
2956 echo "$as_me:2956: result: yes" >&5
2957echo "${ECHO_T}yes" >&6
2008else 2958else
2009 rm -f conftestdata 2959 echo "$as_me:2959: result: no, using $LN_S" >&5
2010if ln -s X conftestdata 2>/dev/null 2960echo "${ECHO_T}no, using $LN_S" >&6
2011then
2012 rm -f conftestdata
2013 ac_cv_prog_LN_S="ln -s"
2014else
2015 ac_cv_prog_LN_S=ln
2016fi
2017fi
2018LN_S="$ac_cv_prog_LN_S"
2019if test "$ac_cv_prog_LN_S" = "ln -s"; then
2020 echo "$ac_t""yes" 1>&6
2021else
2022 echo "$ac_t""no" 1>&6
2023fi 2961fi
2024 2962
2025echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2963ac_ext=c
2026echo "configure:2027: checking how to run the C preprocessor" >&5 2964ac_cpp='$CPP $CPPFLAGS'
2965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968echo "$as_me:2968: checking how to run the C preprocessor" >&5
2969echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2027# On Suns, sometimes $CPP names a directory. 2970# On Suns, sometimes $CPP names a directory.
2028if test -n "$CPP" && test -d "$CPP"; then 2971if test -n "$CPP" && test -d "$CPP"; then
2029 CPP= 2972 CPP=
2030fi 2973fi
2031if test -z "$CPP"; then 2974if test -z "$CPP"; then
2032if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2975 if test "${ac_cv_prog_CPP+set}" = set; then
2033 echo $ac_n "(cached) $ac_c" 1>&6 2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else 2977else
2035 # This must be in double quotes, not single quotes, because CPP may get 2978 # Double quotes because CPP needs to be expanded
2036 # substituted into the Makefile and "${CC-cc}" will confuse make. 2979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2037 CPP="${CC-cc} -E" 2980 do
2981 ac_preproc_ok=false
2982for ac_c_preproc_warn_flag in '' yes
2983do
2984 # Use a header file that comes with gcc, so configuring glibc
2985 # with a fresh cross-compiler works.
2038 # On the NeXT, cc -E runs the code through the compiler's parser, 2986 # On the NeXT, cc -E runs the code through the compiler's parser,
2039 # not just through cpp. 2987 # not just through cpp. "Syntax error" is here to catch this case.
2040 cat > conftest.$ac_ext <<EOF 2988 cat >conftest.$ac_ext <<_ACEOF
2041#line 2042 "configure" 2989#line 2989 "configure"
2042#include "confdefs.h" 2990#include "confdefs.h"
2043#include <assert.h> 2991#include <assert.h>
2044Syntax Error 2992 Syntax error
2045EOF 2993_ACEOF
2046ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2994if { (eval echo "$as_me:2994: \"$ac_cpp conftest.$ac_ext\"") >&5
2047{ (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2048ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2996 ac_status=$?
2049if test -z "$ac_err"; then 2997 egrep -v '^ *\+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 else
3005 ac_cpp_err=
3006 fi
3007else
3008 ac_cpp_err=yes
3009fi
3010if test -z "$ac_cpp_err"; then
2050 : 3011 :
2051else 3012else
2052 echo "$ac_err" >&5 3013 echo "$as_me: failed program was:" >&5
2053 echo "configure: failed program was:" >&5
2054 cat conftest.$ac_ext >&5 3014 cat conftest.$ac_ext >&5
2055 rm -rf conftest* 3015 # Broken: fails on valid input.
2056 CPP="${CC-cc} -E -traditional-cpp" 3016continue
2057 cat > conftest.$ac_ext <<EOF 3017fi
2058#line 2059 "configure" 3018rm -f conftest.err conftest.$ac_ext
2059#include "confdefs.h" 3019
2060#include <assert.h> 3020 # OK, works on sane cases. Now check whether non-existent headers
2061Syntax Error 3021 # can be detected and how.
2062EOF 3022 cat >conftest.$ac_ext <<_ACEOF
2063ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3023#line 3023 "configure"
2064{ (eval echo configure:2065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3024#include "confdefs.h"
2065ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3025#include <ac_nonexistent.h>
2066if test -z "$ac_err"; then 3026_ACEOF
2067 : 3027if { (eval echo "$as_me:3027: \"$ac_cpp conftest.$ac_ext\"") >&5
3028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3029 ac_status=$?
3030 egrep -v '^ *\+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:3033: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null; then
3035 if test -s conftest.err; then
3036 ac_cpp_err=$ac_c_preproc_warn_flag
3037 else
3038 ac_cpp_err=
3039 fi
3040else
3041 ac_cpp_err=yes
3042fi
3043if test -z "$ac_cpp_err"; then
3044 # Broken: success on invalid input.
3045continue
2068else 3046else
2069 echo "$ac_err" >&5 3047 echo "$as_me: failed program was:" >&5
2070 echo "configure: failed program was:" >&5
2071 cat conftest.$ac_ext >&5 3048 cat conftest.$ac_ext >&5
2072 rm -rf conftest* 3049 # Passes both tests.
2073 CPP="${CC-cc} -nologo -E" 3050ac_preproc_ok=:
2074 cat > conftest.$ac_ext <<EOF 3051break
2075#line 2076 "configure" 3052fi
3053rm -f conftest.err conftest.$ac_ext
3054
3055done
3056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3057rm -f conftest.err conftest.$ac_ext
3058if $ac_preproc_ok; then
3059 break
3060fi
3061
3062 done
3063 ac_cv_prog_CPP=$CPP
3064
3065fi
3066 CPP=$ac_cv_prog_CPP
3067else
3068 ac_cv_prog_CPP=$CPP
3069fi
3070echo "$as_me:3070: result: $CPP" >&5
3071echo "${ECHO_T}$CPP" >&6
3072ac_preproc_ok=false
3073for ac_c_preproc_warn_flag in '' yes
3074do
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.$ac_ext <<_ACEOF
3080#line 3080 "configure"
2076#include "confdefs.h" 3081#include "confdefs.h"
2077#include <assert.h> 3082#include <assert.h>
2078Syntax Error 3083 Syntax error
2079EOF 3084_ACEOF
2080ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3085if { (eval echo "$as_me:3085: \"$ac_cpp conftest.$ac_ext\"") >&5
2081{ (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2082ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3087 ac_status=$?
2083if test -z "$ac_err"; then 3088 egrep -v '^ *\+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:3091: \$? = $ac_status" >&5
3092 (exit $ac_status); } >/dev/null; then
3093 if test -s conftest.err; then
3094 ac_cpp_err=$ac_c_preproc_warn_flag
3095 else
3096 ac_cpp_err=
3097 fi
3098else
3099 ac_cpp_err=yes
3100fi
3101if test -z "$ac_cpp_err"; then
2084 : 3102 :
2085else 3103else
2086 echo "$ac_err" >&5 3104 echo "$as_me: failed program was:" >&5
2087 echo "configure: failed program was:" >&5
2088 cat conftest.$ac_ext >&5 3105 cat conftest.$ac_ext >&5
2089 rm -rf conftest* 3106 # Broken: fails on valid input.
2090 CPP=/lib/cpp 3107continue
2091fi 3108fi
2092rm -f conftest* 3109rm -f conftest.err conftest.$ac_ext
2093fi 3110
2094rm -f conftest* 3111 # OK, works on sane cases. Now check whether non-existent headers
3112 # can be detected and how.
3113 cat >conftest.$ac_ext <<_ACEOF
3114#line 3114 "configure"
3115#include "confdefs.h"
3116#include <ac_nonexistent.h>
3117_ACEOF
3118if { (eval echo "$as_me:3118: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 ac_status=$?
3121 egrep -v '^ *\+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:3124: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev/null; then
3126 if test -s conftest.err; then
3127 ac_cpp_err=$ac_c_preproc_warn_flag
3128 else
3129 ac_cpp_err=
3130 fi
3131else
3132 ac_cpp_err=yes
2095fi 3133fi
2096rm -f conftest* 3134if test -z "$ac_cpp_err"; then
2097 ac_cv_prog_CPP="$CPP" 3135 # Broken: success on invalid input.
3136continue
3137else
3138 echo "$as_me: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3140 # Passes both tests.
3141ac_preproc_ok=:
3142break
2098fi 3143fi
2099 CPP="$ac_cv_prog_CPP" 3144rm -f conftest.err conftest.$ac_ext
3145
3146done
3147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3148rm -f conftest.err conftest.$ac_ext
3149if $ac_preproc_ok; then
3150 :
2100else 3151else
2101 ac_cv_prog_CPP="$CPP" 3152 { { echo "$as_me:3152: error: C preprocessor \"$CPP\" fails sanity check" >&5
3153echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3154 { (exit 1); exit 1; }; }
2102fi 3155fi
2103echo "$ac_t""$CPP" 1>&6 3156
3157ac_ext=c
3158ac_cpp='$CPP $CPPFLAGS'
3159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 3162
2105# Find a good install program. We prefer a C program (faster), 3163# Find a good install program. We prefer a C program (faster),
2106# so one script is as good as another. But avoid the broken or 3164# so one script is as good as another. But avoid the broken or
@@ -2109,31 +3167,39 @@ echo "$ac_t""$CPP" 1>&6
2109# SunOS /usr/etc/install 3167# SunOS /usr/etc/install
2110# IRIX /sbin/install 3168# IRIX /sbin/install
2111# AIX /bin/install 3169# AIX /bin/install
3170# AmigaOS /C/install, which installs bootblocks on floppy discs
2112# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3171# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2113# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3172# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2114# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3173# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2115# ./install, which can be erroneously created by make from ./install.sh. 3174# ./install, which can be erroneously created by make from ./install.sh.
2116echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3175echo "$as_me:3175: checking for a BSD compatible install" >&5
2117echo "configure:2118: checking for a BSD compatible install" >&5 3176echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2118if test -z "$INSTALL"; then 3177if test -z "$INSTALL"; then
2119if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 3178if test "${ac_cv_path_install+set}" = set; then
2120 echo $ac_n "(cached) $ac_c" 1>&6 3179 echo $ECHO_N "(cached) $ECHO_C" >&6
2121else 3180else
2122 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3181 ac_save_IFS=$IFS; IFS=$ac_path_separator
2123 for ac_dir in $PATH; do 3182 for ac_dir in $PATH; do
3183 IFS=$ac_save_IFS
2124 # Account for people who put trailing slashes in PATH elements. 3184 # Account for people who put trailing slashes in PATH elements.
2125 case "$ac_dir/" in 3185 case $ac_dir/ in
2126 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3186 / | ./ | .// | /cC/* \
3187 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3188 | /usr/ucb/* ) ;;
2127 *) 3189 *)
2128 # OSF1 and SCO ODT 3.0 have their own names for install. 3190 # OSF1 and SCO ODT 3.0 have their own names for install.
2129 # Don't use installbsd from OSF since it installs stuff as root 3191 # Don't use installbsd from OSF since it installs stuff as root
2130 # by default. 3192 # by default.
2131 for ac_prog in ginstall scoinst install; do 3193 for ac_prog in ginstall scoinst install; do
2132 if test -f $ac_dir/$ac_prog; then 3194 if $as_executable_p "$ac_dir/$ac_prog"; then
2133 if test $ac_prog = install && 3195 if test $ac_prog = install &&
2134 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3196 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2135 # AIX install. It has an incompatible calling convention. 3197 # AIX install. It has an incompatible calling convention.
2136 : 3198 :
3199 elif test $ac_prog = install &&
3200 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3201 # program-specific install script used by HP pwplus--don't use.
3202 :
2137 else 3203 else
2138 ac_cv_path_install="$ac_dir/$ac_prog -c" 3204 ac_cv_path_install="$ac_dir/$ac_prog -c"
2139 break 2 3205 break 2
@@ -2143,130 +3209,176 @@ else
2143 ;; 3209 ;;
2144 esac 3210 esac
2145 done 3211 done
2146 IFS="$ac_save_IFS"
2147 3212
2148fi 3213fi
2149 if test "${ac_cv_path_install+set}" = set; then 3214 if test "${ac_cv_path_install+set}" = set; then
2150 INSTALL="$ac_cv_path_install" 3215 INSTALL=$ac_cv_path_install
2151 else 3216 else
2152 # As a last resort, use the slow shell script. We don't cache a 3217 # As a last resort, use the slow shell script. We don't cache a
2153 # path for INSTALL within a source directory, because that will 3218 # path for INSTALL within a source directory, because that will
2154 # break other packages using the cache if that directory is 3219 # break other packages using the cache if that directory is
2155 # removed, or if the path is relative. 3220 # removed, or if the path is relative.
2156 INSTALL="$ac_install_sh" 3221 INSTALL=$ac_install_sh
2157 fi 3222 fi
2158fi 3223fi
2159echo "$ac_t""$INSTALL" 1>&6 3224echo "$as_me:3224: result: $INSTALL" >&5
3225echo "${ECHO_T}$INSTALL" >&6
2160 3226
2161# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3227# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2162# It thinks the first close brace ends the variable substitution. 3228# It thinks the first close brace ends the variable substitution.
2163test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3229test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2164 3230
2165test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 3231test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2166 3232
2167test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3233test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2168 3234
2169for ac_prog in 'bison -y' byacc 3235for ac_prog in 'bison -y' byacc
2170do 3236do
2171# Extract the first word of "$ac_prog", so it can be a program name with args. 3237 # Extract the first word of "$ac_prog", so it can be a program name with args.
2172set dummy $ac_prog; ac_word=$2 3238set dummy $ac_prog; ac_word=$2
2173echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3239echo "$as_me:3239: checking for $ac_word" >&5
2174echo "configure:2175: checking for $ac_word" >&5 3240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 3241if test "${ac_cv_prog_YACC+set}" = set; then
2176 echo $ac_n "(cached) $ac_c" 1>&6 3242 echo $ECHO_N "(cached) $ECHO_C" >&6
2177else 3243else
2178 if test -n "$YACC"; then 3244 if test -n "$YACC"; then
2179 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3245 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2180else 3246else
2181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3247 ac_save_IFS=$IFS; IFS=$ac_path_separator
2182 ac_dummy="$PATH" 3248ac_dummy="$PATH"
2183 for ac_dir in $ac_dummy; do 3249for ac_dir in $ac_dummy; do
2184 test -z "$ac_dir" && ac_dir=. 3250 IFS=$ac_save_IFS
2185 if test -f $ac_dir/$ac_word; then 3251 test -z "$ac_dir" && ac_dir=.
2186 ac_cv_prog_YACC="$ac_prog" 3252 $as_executable_p "$ac_dir/$ac_word" || continue
2187 break 3253ac_cv_prog_YACC="$ac_prog"
2188 fi 3254echo "$as_me:3254: found $ac_dir/$ac_word" >&5
2189 done 3255break
2190 IFS="$ac_save_ifs" 3256done
3257
2191fi 3258fi
2192fi 3259fi
2193YACC="$ac_cv_prog_YACC" 3260YACC=$ac_cv_prog_YACC
2194if test -n "$YACC"; then 3261if test -n "$YACC"; then
2195 echo "$ac_t""$YACC" 1>&6 3262 echo "$as_me:3262: result: $YACC" >&5
3263echo "${ECHO_T}$YACC" >&6
2196else 3264else
2197 echo "$ac_t""no" 1>&6 3265 echo "$as_me:3265: result: no" >&5
3266echo "${ECHO_T}no" >&6
2198fi 3267fi
2199 3268
2200test -n "$YACC" && break 3269 test -n "$YACC" && break
2201done 3270done
2202test -n "$YACC" || YACC="yacc" 3271test -n "$YACC" || YACC="yacc"
2203 3272
2204if test "x$RANLIB" = x; then 3273if test "x$RANLIB" = x; then
2205 # Extract the first word of "ranlib", so it can be a program name with args. 3274 if test -n "$ac_tool_prefix"; then
2206set dummy ranlib; ac_word=$2 3275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2207echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3276set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2208echo "configure:2209: checking for $ac_word" >&5 3277echo "$as_me:3277: checking for $ac_word" >&5
2209if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 3278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 echo $ac_n "(cached) $ac_c" 1>&6 3279if test "${ac_cv_prog_RANLIB+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else 3281else
2212 if test -n "$RANLIB"; then 3282 if test -n "$RANLIB"; then
2213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2214else 3284else
2215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3285 ac_save_IFS=$IFS; IFS=$ac_path_separator
2216 ac_dummy="$PATH" 3286ac_dummy="$PATH"
2217 for ac_dir in $ac_dummy; do 3287for ac_dir in $ac_dummy; do
2218 test -z "$ac_dir" && ac_dir=. 3288 IFS=$ac_save_IFS
2219 if test -f $ac_dir/$ac_word; then 3289 test -z "$ac_dir" && ac_dir=.
2220 ac_cv_prog_RANLIB="ranlib" 3290 $as_executable_p "$ac_dir/$ac_word" || continue
2221 break 3291ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2222 fi 3292echo "$as_me:3292: found $ac_dir/$ac_word" >&5
2223 done 3293break
2224 IFS="$ac_save_ifs" 3294done
2225 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 3295
2226fi 3296fi
2227fi 3297fi
2228RANLIB="$ac_cv_prog_RANLIB" 3298RANLIB=$ac_cv_prog_RANLIB
2229if test -n "$RANLIB"; then 3299if test -n "$RANLIB"; then
2230 echo "$ac_t""$RANLIB" 1>&6 3300 echo "$as_me:3300: result: $RANLIB" >&5
3301echo "${ECHO_T}$RANLIB" >&6
2231else 3302else
2232 echo "$ac_t""no" 1>&6 3303 echo "$as_me:3303: result: no" >&5
3304echo "${ECHO_T}no" >&6
2233fi 3305fi
2234 3306
2235fi 3307fi
3308if test -z "$ac_cv_prog_RANLIB"; then
3309 ac_ct_RANLIB=$RANLIB
3310 # Extract the first word of "ranlib", so it can be a program name with args.
3311set dummy ranlib; ac_word=$2
3312echo "$as_me:3312: checking for $ac_word" >&5
3313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316else
3317 if test -n "$ac_ct_RANLIB"; then
3318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3319else
3320 ac_save_IFS=$IFS; IFS=$ac_path_separator
3321ac_dummy="$PATH"
3322for ac_dir in $ac_dummy; do
3323 IFS=$ac_save_IFS
3324 test -z "$ac_dir" && ac_dir=.
3325 $as_executable_p "$ac_dir/$ac_word" || continue
3326ac_cv_prog_ac_ct_RANLIB="ranlib"
3327echo "$as_me:3327: found $ac_dir/$ac_word" >&5
3328break
3329done
2236 3330
2237echo $ac_n "checking for AIX""... $ac_c" 1>&6 3331 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2238echo "configure:2239: checking for AIX" >&5 3332fi
2239cat > conftest.$ac_ext <<EOF 3333fi
2240#line 2241 "configure" 3334ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3335if test -n "$ac_ct_RANLIB"; then
3336 echo "$as_me:3336: result: $ac_ct_RANLIB" >&5
3337echo "${ECHO_T}$ac_ct_RANLIB" >&6
3338else
3339 echo "$as_me:3339: result: no" >&5
3340echo "${ECHO_T}no" >&6
3341fi
3342
3343 RANLIB=$ac_ct_RANLIB
3344else
3345 RANLIB="$ac_cv_prog_RANLIB"
3346fi
3347
3348fi
3349
3350echo "$as_me:3350: checking for AIX" >&5
3351echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3352cat >conftest.$ac_ext <<_ACEOF
3353#line 3353 "configure"
2241#include "confdefs.h" 3354#include "confdefs.h"
2242#ifdef _AIX 3355#ifdef _AIX
2243 yes 3356 yes
2244#endif 3357#endif
2245 3358
2246EOF 3359_ACEOF
2247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2248 egrep "yes" >/dev/null 2>&1; then 3361 egrep "yes" >/dev/null 2>&1; then
2249 rm -rf conftest* 3362 echo "$as_me:3362: result: yes" >&5
2250 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3363echo "${ECHO_T}yes" >&6
3364cat >>confdefs.h <<\EOF
2251#define _ALL_SOURCE 1 3365#define _ALL_SOURCE 1
2252EOF 3366EOF
2253 3367
2254else 3368else
2255 rm -rf conftest* 3369 echo "$as_me:3369: result: no" >&5
2256 echo "$ac_t""no" 1>&6 3370echo "${ECHO_T}no" >&6
2257fi 3371fi
2258rm -f conftest* 3372rm -f conftest*
2259 3373
2260
2261
2262#### Extract some information from the operating system and machine files. 3374#### Extract some information from the operating system and machine files.
2263 3375
2264echo "checking the machine- and system-dependent files to find out 3376{ echo "$as_me:3376: checking the machine- and system-dependent files to find out
2265 - which libraries the lib-src programs will want, and 3377 - which libraries the lib-src programs will want, and
2266 - whether the GNU malloc routines are usable" 1>&6 3378 - whether the GNU malloc routines are usable..." >&5
2267echo "configure:2268: checking the machine- and system-dependent files to find out 3379echo "$as_me: checking the machine- and system-dependent files to find out
2268 - which libraries the lib-src programs will want, and 3380 - which libraries the lib-src programs will want, and
2269 - whether the GNU malloc routines are usable" >&5 3381 - whether the GNU malloc routines are usable..." >&6;}
2270 3382
2271### First figure out CFLAGS (which we use for running the compiler here) 3383### First figure out CFLAGS (which we use for running the compiler here)
2272### and REAL_CFLAGS (which we use for real compilation). 3384### and REAL_CFLAGS (which we use for real compilation).
@@ -2355,7 +3467,7 @@ configure___ use_mmap_for_buffers=no
2355 3467
2356#ifndef LD_SWITCH_X_SITE_AUX 3468#ifndef LD_SWITCH_X_SITE_AUX
2357#define LD_SWITCH_X_SITE_AUX 3469#define LD_SWITCH_X_SITE_AUX
2358#endif 3470#endif
2359 3471
2360configure___ ld_switch_system=LD_SWITCH_SYSTEM 3472configure___ ld_switch_system=LD_SWITCH_SYSTEM
2361configure___ ld_switch_machine=LD_SWITCH_MACHINE 3473configure___ ld_switch_machine=LD_SWITCH_MACHINE
@@ -2404,343 +3516,496 @@ else
2404 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" 3516 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
2405fi 3517fi
2406 3518
2407 3519# Check whether --enable-largefile or --disable-largefile was given.
2408 # Check whether --enable-largefile or --disable-largefile was given.
2409if test "${enable_largefile+set}" = set; then 3520if test "${enable_largefile+set}" = set; then
2410 enableval="$enable_largefile" 3521 enableval="$enable_largefile"
2411 :
2412fi
2413 3522
2414 if test "$enable_largefile" != no; then 3523fi;
3524if test "$enable_largefile" != no; then
2415 3525
2416 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 3526 echo "$as_me:3526: checking for special C compiler options needed for large files" >&5
2417echo "configure:2418: checking for special C compiler options needed for large files" >&5 3527echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2418if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then 3528if test "${ac_cv_sys_largefile_CC+set}" = set; then
2419 echo $ac_n "(cached) $ac_c" 1>&6 3529 echo $ECHO_N "(cached) $ECHO_C" >&6
2420else 3530else
2421 ac_cv_sys_largefile_CC=no 3531 ac_cv_sys_largefile_CC=no
2422 if test "$GCC" != yes; then 3532 if test "$GCC" != yes; then
2423 # IRIX 6.2 and later do not support large files by default, 3533 ac_save_CC=$CC
2424 # so use the C compiler's -n32 option if that helps. 3534 while :; do
2425 cat > conftest.$ac_ext <<EOF 3535 # IRIX 6.2 and later do not support large files by default,
2426#line 2427 "configure" 3536 # so use the C compiler's -n32 option if that helps.
3537 cat >conftest.$ac_ext <<_ACEOF
3538#line 3538 "configure"
2427#include "confdefs.h" 3539#include "confdefs.h"
2428#include <sys/types.h> 3540#include <sys/types.h>
2429 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 3541 /* Check that off_t can represent 2**63 - 1 correctly.
2430 3542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2431int main() { 3543 since some C++ compilers masquerading as C compilers
2432 3544 incorrectly reject 9223372036854775807. */
2433; return 0; } 3545#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2434EOF 3546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2435if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3547 && LARGE_OFF_T % 2147483647 == 1)
2436 : 3548 ? 1 : -1];
2437else 3549int
2438 echo "configure: failed program was:" >&5 3550main ()
2439 cat conftest.$ac_ext >&5 3551{
2440 rm -rf conftest*
2441 ac_save_CC="$CC"
2442 CC="$CC -n32"
2443 cat > conftest.$ac_ext <<EOF
2444#line 2445 "configure"
2445#include "confdefs.h"
2446#include <sys/types.h>
2447 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2448
2449int main() {
2450 3552
2451; return 0; } 3553 ;
2452EOF 3554 return 0;
2453if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3555}
2454 rm -rf conftest* 3556_ACEOF
2455 ac_cv_sys_largefile_CC=' -n32' 3557 rm -f conftest.$ac_objext
3558if { (eval echo "$as_me:3558: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>&5
3560 ac_status=$?
3561 echo "$as_me:3561: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -s conftest.$ac_objext'
3564 { (eval echo "$as_me:3564: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:3567: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3569 break
2456else 3570else
2457 echo "configure: failed program was:" >&5 3571 echo "$as_me: failed program was:" >&5
2458 cat conftest.$ac_ext >&5 3572cat conftest.$ac_ext >&5
2459fi 3573fi
2460rm -f conftest* 3574rm -f conftest.$ac_objext
2461 CC="$ac_save_CC" 3575 CC="$CC -n32"
2462fi 3576 rm -f conftest.$ac_objext
2463rm -f conftest* 3577if { (eval echo "$as_me:3577: \"$ac_compile\"") >&5
2464 fi 3578 (eval $ac_compile) 2>&5
3579 ac_status=$?
3580 echo "$as_me:3580: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:3583: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:3586: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_sys_largefile_CC=' -n32'; break
3589else
3590 echo "$as_me: failed program was:" >&5
3591cat conftest.$ac_ext >&5
3592fi
3593rm -f conftest.$ac_objext
3594 break
3595 done
3596 CC=$ac_save_CC
3597 rm -f conftest.$ac_ext
3598 fi
2465fi 3599fi
3600echo "$as_me:3600: result: $ac_cv_sys_largefile_CC" >&5
3601echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3602 if test "$ac_cv_sys_largefile_CC" != no; then
3603 CC=$CC$ac_cv_sys_largefile_CC
3604 fi
2466 3605
2467echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 3606 echo "$as_me:3606: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2468 if test "$ac_cv_sys_largefile_CC" != no; then 3607echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2469 CC="$CC$ac_cv_sys_largefile_CC" 3608if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2470 fi 3609 echo $ECHO_N "(cached) $ECHO_C" >&6
2471
2472 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
2473echo "configure:2474: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2474if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2476else 3610else
3611 while :; do
2477 ac_cv_sys_file_offset_bits=no 3612 ac_cv_sys_file_offset_bits=no
2478 cat > conftest.$ac_ext <<EOF 3613 cat >conftest.$ac_ext <<_ACEOF
2479#line 2480 "configure" 3614#line 3614 "configure"
2480#include "confdefs.h" 3615#include "confdefs.h"
2481#include <sys/types.h> 3616#include <sys/types.h>
2482 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 3617 /* Check that off_t can represent 2**63 - 1 correctly.
2483 3618 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2484int main() { 3619 since some C++ compilers masquerading as C compilers
3620 incorrectly reject 9223372036854775807. */
3621#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3622 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3623 && LARGE_OFF_T % 2147483647 == 1)
3624 ? 1 : -1];
3625int
3626main ()
3627{
2485 3628
2486; return 0; } 3629 ;
2487EOF 3630 return 0;
2488if { (eval echo configure:2489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3631}
2489 : 3632_ACEOF
3633rm -f conftest.$ac_objext
3634if { (eval echo "$as_me:3634: \"$ac_compile\"") >&5
3635 (eval $ac_compile) 2>&5
3636 ac_status=$?
3637 echo "$as_me:3637: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -s conftest.$ac_objext'
3640 { (eval echo "$as_me:3640: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:3643: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 break
2490else 3646else
2491 echo "configure: failed program was:" >&5 3647 echo "$as_me: failed program was:" >&5
2492 cat conftest.$ac_ext >&5 3648cat conftest.$ac_ext >&5
2493 rm -rf conftest* 3649fi
2494 cat > conftest.$ac_ext <<EOF 3650rm -f conftest.$ac_objext conftest.$ac_ext
2495#line 2496 "configure" 3651 cat >conftest.$ac_ext <<_ACEOF
3652#line 3652 "configure"
2496#include "confdefs.h" 3653#include "confdefs.h"
2497#define _FILE_OFFSET_BITS 64 3654#define _FILE_OFFSET_BITS 64
2498#include <sys/types.h> 3655#include <sys/types.h>
2499 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 3656 /* Check that off_t can represent 2**63 - 1 correctly.
2500 3657 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2501 3658 since some C++ compilers masquerading as C compilers
2502int main() { 3659 incorrectly reject 9223372036854775807. */
3660#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3662 && LARGE_OFF_T % 2147483647 == 1)
3663 ? 1 : -1];
3664int
3665main ()
3666{
2503 3667
2504; return 0; } 3668 ;
2505EOF 3669 return 0;
2506if { (eval echo configure:2507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3670}
2507 rm -rf conftest* 3671_ACEOF
2508 ac_cv_sys_file_offset_bits=64 3672rm -f conftest.$ac_objext
2509else 3673if { (eval echo "$as_me:3673: \"$ac_compile\"") >&5
2510 echo "configure: failed program was:" >&5 3674 (eval $ac_compile) 2>&5
2511 cat conftest.$ac_ext >&5 3675 ac_status=$?
2512fi 3676 echo "$as_me:3676: \$? = $ac_status" >&5
2513rm -f conftest* 3677 (exit $ac_status); } &&
2514fi 3678 { ac_try='test -s conftest.$ac_objext'
2515rm -f conftest* 3679 { (eval echo "$as_me:3679: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:3682: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 ac_cv_sys_file_offset_bits=64; break
3685else
3686 echo "$as_me: failed program was:" >&5
3687cat conftest.$ac_ext >&5
3688fi
3689rm -f conftest.$ac_objext conftest.$ac_ext
3690 break
3691done
2516fi 3692fi
3693echo "$as_me:3693: result: $ac_cv_sys_file_offset_bits" >&5
3694echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3695if test "$ac_cv_sys_file_offset_bits" != no; then
2517 3696
2518echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 3697cat >>confdefs.h <<EOF
2519 if test "$ac_cv_sys_file_offset_bits" != no; then
2520 cat >> confdefs.h <<EOF
2521#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3698#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2522EOF 3699EOF
2523 3700
2524 fi 3701fi
2525 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 3702rm -f conftest*
2526echo "configure:2527: checking for _LARGE_FILES value needed for large files" >&5 3703 echo "$as_me:3703: checking for _LARGE_FILES value needed for large files" >&5
2527if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then 3704echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2528 echo $ac_n "(cached) $ac_c" 1>&6 3705if test "${ac_cv_sys_large_files+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
2529else 3707else
3708 while :; do
2530 ac_cv_sys_large_files=no 3709 ac_cv_sys_large_files=no
2531 cat > conftest.$ac_ext <<EOF 3710 cat >conftest.$ac_ext <<_ACEOF
2532#line 2533 "configure" 3711#line 3711 "configure"
2533#include "confdefs.h" 3712#include "confdefs.h"
3713#include <sys/types.h>
3714 /* Check that off_t can represent 2**63 - 1 correctly.
3715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3716 since some C++ compilers masquerading as C compilers
3717 incorrectly reject 9223372036854775807. */
3718#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3720 && LARGE_OFF_T % 2147483647 == 1)
3721 ? 1 : -1];
3722int
3723main ()
3724{
2534 3725
2535int main() { 3726 ;
2536 3727 return 0;
2537; return 0; } 3728}
2538EOF 3729_ACEOF
2539if { (eval echo configure:2540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3730rm -f conftest.$ac_objext
2540 : 3731if { (eval echo "$as_me:3731: \"$ac_compile\"") >&5
3732 (eval $ac_compile) 2>&5
3733 ac_status=$?
3734 echo "$as_me:3734: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:3737: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:3740: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 break
2541else 3743else
2542 echo "configure: failed program was:" >&5 3744 echo "$as_me: failed program was:" >&5
2543 cat conftest.$ac_ext >&5 3745cat conftest.$ac_ext >&5
2544 rm -rf conftest* 3746fi
2545 cat > conftest.$ac_ext <<EOF 3747rm -f conftest.$ac_objext conftest.$ac_ext
2546#line 2547 "configure" 3748 cat >conftest.$ac_ext <<_ACEOF
3749#line 3749 "configure"
2547#include "confdefs.h" 3750#include "confdefs.h"
2548#define _LARGE_FILES 1 3751#define _LARGE_FILES 1
3752#include <sys/types.h>
3753 /* Check that off_t can represent 2**63 - 1 correctly.
3754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3755 since some C++ compilers masquerading as C compilers
3756 incorrectly reject 9223372036854775807. */
3757#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3759 && LARGE_OFF_T % 2147483647 == 1)
3760 ? 1 : -1];
3761int
3762main ()
3763{
2549 3764
2550 3765 ;
2551int main() { 3766 return 0;
2552 3767}
2553; return 0; } 3768_ACEOF
2554EOF 3769rm -f conftest.$ac_objext
2555if { (eval echo configure:2556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3770if { (eval echo "$as_me:3770: \"$ac_compile\"") >&5
2556 rm -rf conftest* 3771 (eval $ac_compile) 2>&5
2557 ac_cv_sys_large_files=1 3772 ac_status=$?
2558else 3773 echo "$as_me:3773: \$? = $ac_status" >&5
2559 echo "configure: failed program was:" >&5 3774 (exit $ac_status); } &&
2560 cat conftest.$ac_ext >&5 3775 { ac_try='test -s conftest.$ac_objext'
2561fi 3776 { (eval echo "$as_me:3776: \"$ac_try\"") >&5
2562rm -f conftest* 3777 (eval $ac_try) 2>&5
2563fi 3778 ac_status=$?
2564rm -f conftest* 3779 echo "$as_me:3779: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 ac_cv_sys_large_files=1; break
3782else
3783 echo "$as_me: failed program was:" >&5
3784cat conftest.$ac_ext >&5
3785fi
3786rm -f conftest.$ac_objext conftest.$ac_ext
3787 break
3788done
2565fi 3789fi
3790echo "$as_me:3790: result: $ac_cv_sys_large_files" >&5
3791echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3792if test "$ac_cv_sys_large_files" != no; then
2566 3793
2567echo "$ac_t""$ac_cv_sys_large_files" 1>&6 3794cat >>confdefs.h <<EOF
2568 if test "$ac_cv_sys_large_files" != no; then
2569 cat >> confdefs.h <<EOF
2570#define _LARGE_FILES $ac_cv_sys_large_files 3795#define _LARGE_FILES $ac_cv_sys_large_files
2571EOF 3796EOF
2572 3797
2573 fi 3798fi
2574 fi 3799rm -f conftest*
2575 3800fi
2576 3801
2577# Sound support for GNU/Linux and the free BSDs. 3802# Sound support for GNU/Linux and the free BSDs.
2578for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h 3803
3804for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
2579do 3805do
2580ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2581echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3807echo "$as_me:3807: checking for $ac_header" >&5
2582echo "configure:2583: checking for $ac_hdr" >&5 3808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2583if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3809if eval "test \"\${$as_ac_Header+set}\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6 3810 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else 3811else
2586 cat > conftest.$ac_ext <<EOF 3812 cat >conftest.$ac_ext <<_ACEOF
2587#line 2588 "configure" 3813#line 3813 "configure"
2588#include "confdefs.h" 3814#include "confdefs.h"
2589#include <$ac_hdr> 3815#include <$ac_header>
2590EOF 3816_ACEOF
2591ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3817if { (eval echo "$as_me:3817: \"$ac_cpp conftest.$ac_ext\"") >&5
2592{ (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2593ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3819 ac_status=$?
2594if test -z "$ac_err"; then 3820 egrep -v '^ *\+' conftest.er1 >conftest.err
2595 rm -rf conftest* 3821 rm -f conftest.er1
2596 eval "ac_cv_header_$ac_safe=yes" 3822 cat conftest.err >&5
2597else 3823 echo "$as_me:3823: \$? = $ac_status" >&5
2598 echo "$ac_err" >&5 3824 (exit $ac_status); } >/dev/null; then
2599 echo "configure: failed program was:" >&5 3825 if test -s conftest.err; then
3826 ac_cpp_err=$ac_c_preproc_warn_flag
3827 else
3828 ac_cpp_err=
3829 fi
3830else
3831 ac_cpp_err=yes
3832fi
3833if test -z "$ac_cpp_err"; then
3834 eval "$as_ac_Header=yes"
3835else
3836 echo "$as_me: failed program was:" >&5
2600 cat conftest.$ac_ext >&5 3837 cat conftest.$ac_ext >&5
2601 rm -rf conftest* 3838 eval "$as_ac_Header=no"
2602 eval "ac_cv_header_$ac_safe=no"
2603fi 3839fi
2604rm -f conftest* 3840rm -f conftest.err conftest.$ac_ext
2605fi 3841fi
2606if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3842echo "$as_me:3842: result: `eval echo '${'$as_ac_Header'}'`" >&5
2607 echo "$ac_t""yes" 1>&6 3843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3844if test `eval echo '${'$as_ac_Header'}'` = yes; then
2609 cat >> confdefs.h <<EOF 3845 cat >>confdefs.h <<EOF
2610#define $ac_tr_hdr 1 3846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2611EOF 3847EOF
2612 3848
2613else
2614 echo "$ac_t""no" 1>&6
2615fi 3849fi
2616done 3850done
2617 3851
2618# Emulation library used on NetBSD. 3852# Emulation library used on NetBSD.
2619echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 3853echo "$as_me:3853: checking for _oss_ioctl in -lossaudio" >&5
2620echo "configure:2621: checking for _oss_ioctl in -lossaudio" >&5 3854echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
2621ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` 3855if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
2622if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3856 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 echo $ac_n "(cached) $ac_c" 1>&6
2624else 3857else
2625 ac_save_LIBS="$LIBS" 3858 ac_check_lib_save_LIBS=$LIBS
2626LIBS="-lossaudio $LIBS" 3859LIBS="-lossaudio $LIBS"
2627cat > conftest.$ac_ext <<EOF 3860cat >conftest.$ac_ext <<_ACEOF
2628#line 2629 "configure" 3861#line 3861 "configure"
2629#include "confdefs.h" 3862#include "confdefs.h"
3863
2630/* Override any gcc2 internal prototype to avoid an error. */ 3864/* Override any gcc2 internal prototype to avoid an error. */
3865#ifdef __cplusplus
3866extern "C"
3867#endif
2631/* We use char because int might match the return type of a gcc2 3868/* We use char because int might match the return type of a gcc2
2632 builtin and then its argument prototype would still apply. */ 3869 builtin and then its argument prototype would still apply. */
2633char _oss_ioctl(); 3870char _oss_ioctl ();
2634 3871int
2635int main() { 3872main ()
2636_oss_ioctl() 3873{
2637; return 0; } 3874_oss_ioctl ();
2638EOF 3875 ;
2639if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3876 return 0;
2640 rm -rf conftest* 3877}
2641 eval "ac_cv_lib_$ac_lib_var=yes" 3878_ACEOF
2642else 3879rm -f conftest.$ac_objext conftest$ac_exeext
2643 echo "configure: failed program was:" >&5 3880if { (eval echo "$as_me:3880: \"$ac_link\"") >&5
2644 cat conftest.$ac_ext >&5 3881 (eval $ac_link) 2>&5
2645 rm -rf conftest* 3882 ac_status=$?
2646 eval "ac_cv_lib_$ac_lib_var=no" 3883 echo "$as_me:3883: \$? = $ac_status" >&5
2647fi 3884 (exit $ac_status); } &&
2648rm -f conftest* 3885 { ac_try='test -s conftest$ac_exeext'
2649LIBS="$ac_save_LIBS" 3886 { (eval echo "$as_me:3886: \"$ac_try\"") >&5
2650 3887 (eval $ac_try) 2>&5
2651fi 3888 ac_status=$?
2652if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3889 echo "$as_me:3889: \$? = $ac_status" >&5
2653 echo "$ac_t""yes" 1>&6 3890 (exit $ac_status); }; }; then
3891 ac_cv_lib_ossaudio__oss_ioctl=yes
3892else
3893 echo "$as_me: failed program was:" >&5
3894cat conftest.$ac_ext >&5
3895ac_cv_lib_ossaudio__oss_ioctl=no
3896fi
3897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3898LIBS=$ac_check_lib_save_LIBS
3899fi
3900echo "$as_me:3900: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3901echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3902if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
2654 LIBSOUND=-lossaudio 3903 LIBSOUND=-lossaudio
2655else 3904else
2656 echo "$ac_t""no" 1>&6 3905 LIBSOUND=
2657LIBSOUND=
2658fi 3906fi
2659 3907
2660 3908for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
2661
2662for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
2663 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 3909 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2664 termcap.h stdio_ext.h fcntl.h term.h strings.h 3910 termcap.h stdio_ext.h fcntl.h term.h strings.h
2665do 3911do
2666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3913echo "$as_me:3913: checking for $ac_header" >&5
2668echo "configure:2669: checking for $ac_hdr" >&5 3914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2669if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3915if eval "test \"\${$as_ac_Header+set}\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6 3916 echo $ECHO_N "(cached) $ECHO_C" >&6
2671else 3917else
2672 cat > conftest.$ac_ext <<EOF 3918 cat >conftest.$ac_ext <<_ACEOF
2673#line 2674 "configure" 3919#line 3919 "configure"
2674#include "confdefs.h" 3920#include "confdefs.h"
2675#include <$ac_hdr> 3921#include <$ac_header>
2676EOF 3922_ACEOF
2677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3923if { (eval echo "$as_me:3923: \"$ac_cpp conftest.$ac_ext\"") >&5
2678{ (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3925 ac_status=$?
2680if test -z "$ac_err"; then 3926 egrep -v '^ *\+' conftest.er1 >conftest.err
2681 rm -rf conftest* 3927 rm -f conftest.er1
2682 eval "ac_cv_header_$ac_safe=yes" 3928 cat conftest.err >&5
2683else 3929 echo "$as_me:3929: \$? = $ac_status" >&5
2684 echo "$ac_err" >&5 3930 (exit $ac_status); } >/dev/null; then
2685 echo "configure: failed program was:" >&5 3931 if test -s conftest.err; then
3932 ac_cpp_err=$ac_c_preproc_warn_flag
3933 else
3934 ac_cpp_err=
3935 fi
3936else
3937 ac_cpp_err=yes
3938fi
3939if test -z "$ac_cpp_err"; then
3940 eval "$as_ac_Header=yes"
3941else
3942 echo "$as_me: failed program was:" >&5
2686 cat conftest.$ac_ext >&5 3943 cat conftest.$ac_ext >&5
2687 rm -rf conftest* 3944 eval "$as_ac_Header=no"
2688 eval "ac_cv_header_$ac_safe=no"
2689fi 3945fi
2690rm -f conftest* 3946rm -f conftest.err conftest.$ac_ext
2691fi 3947fi
2692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3948echo "$as_me:3948: result: `eval echo '${'$as_ac_Header'}'`" >&5
2693 echo "$ac_t""yes" 1>&6 3949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3950if test `eval echo '${'$as_ac_Header'}'` = yes; then
2695 cat >> confdefs.h <<EOF 3951 cat >>confdefs.h <<EOF
2696#define $ac_tr_hdr 1 3952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2697EOF 3953EOF
2698 3954
2699else
2700 echo "$ac_t""no" 1>&6
2701fi 3955fi
2702done 3956done
2703 3957
2704echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3958echo "$as_me:3958: checking for ANSI C header files" >&5
2705echo "configure:2706: checking for ANSI C header files" >&5 3959echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2706if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 3960if test "${ac_cv_header_stdc+set}" = set; then
2707 echo $ac_n "(cached) $ac_c" 1>&6 3961 echo $ECHO_N "(cached) $ECHO_C" >&6
2708else 3962else
2709 cat > conftest.$ac_ext <<EOF 3963 cat >conftest.$ac_ext <<_ACEOF
2710#line 2711 "configure" 3964#line 3964 "configure"
2711#include "confdefs.h" 3965#include "confdefs.h"
2712#include <stdlib.h> 3966#include <stdlib.h>
2713#include <stdarg.h> 3967#include <stdarg.h>
2714#include <string.h> 3968#include <string.h>
2715#include <float.h> 3969#include <float.h>
2716EOF 3970
2717ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3971_ACEOF
2718{ (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3972if { (eval echo "$as_me:3972: \"$ac_cpp conftest.$ac_ext\"") >&5
2719ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2720if test -z "$ac_err"; then 3974 ac_status=$?
2721 rm -rf conftest* 3975 egrep -v '^ *\+' conftest.er1 >conftest.err
3976 rm -f conftest.er1
3977 cat conftest.err >&5
3978 echo "$as_me:3978: \$? = $ac_status" >&5
3979 (exit $ac_status); } >/dev/null; then
3980 if test -s conftest.err; then
3981 ac_cpp_err=$ac_c_preproc_warn_flag
3982 else
3983 ac_cpp_err=
3984 fi
3985else
3986 ac_cpp_err=yes
3987fi
3988if test -z "$ac_cpp_err"; then
2722 ac_cv_header_stdc=yes 3989 ac_cv_header_stdc=yes
2723else 3990else
2724 echo "$ac_err" >&5 3991 echo "$as_me: failed program was:" >&5
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5 3992 cat conftest.$ac_ext >&5
2727 rm -rf conftest*
2728 ac_cv_header_stdc=no 3993 ac_cv_header_stdc=no
2729fi 3994fi
2730rm -f conftest* 3995rm -f conftest.err conftest.$ac_ext
2731 3996
2732if test $ac_cv_header_stdc = yes; then 3997if test $ac_cv_header_stdc = yes; then
2733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2734cat > conftest.$ac_ext <<EOF 3999 cat >conftest.$ac_ext <<_ACEOF
2735#line 2736 "configure" 4000#line 4000 "configure"
2736#include "confdefs.h" 4001#include "confdefs.h"
2737#include <string.h> 4002#include <string.h>
2738EOF 4003
4004_ACEOF
2739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2740 egrep "memchr" >/dev/null 2>&1; then 4006 egrep "memchr" >/dev/null 2>&1; then
2741 : 4007 :
2742else 4008else
2743 rm -rf conftest*
2744 ac_cv_header_stdc=no 4009 ac_cv_header_stdc=no
2745fi 4010fi
2746rm -f conftest* 4011rm -f conftest*
@@ -2749,16 +4014,16 @@ fi
2749 4014
2750if test $ac_cv_header_stdc = yes; then 4015if test $ac_cv_header_stdc = yes; then
2751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4016 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2752cat > conftest.$ac_ext <<EOF 4017 cat >conftest.$ac_ext <<_ACEOF
2753#line 2754 "configure" 4018#line 4018 "configure"
2754#include "confdefs.h" 4019#include "confdefs.h"
2755#include <stdlib.h> 4020#include <stdlib.h>
2756EOF 4021
4022_ACEOF
2757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2758 egrep "free" >/dev/null 2>&1; then 4024 egrep "free" >/dev/null 2>&1; then
2759 : 4025 :
2760else 4026else
2761 rm -rf conftest*
2762 ac_cv_header_stdc=no 4027 ac_cv_header_stdc=no
2763fi 4028fi
2764rm -f conftest* 4029rm -f conftest*
@@ -2767,167 +4032,235 @@ fi
2767 4032
2768if test $ac_cv_header_stdc = yes; then 4033if test $ac_cv_header_stdc = yes; then
2769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4034 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2770if test "$cross_compiling" = yes; then 4035 if test "$cross_compiling" = yes; then
2771 : 4036 :
2772else 4037else
2773 cat > conftest.$ac_ext <<EOF 4038 cat >conftest.$ac_ext <<_ACEOF
2774#line 2775 "configure" 4039#line 4039 "configure"
2775#include "confdefs.h" 4040#include "confdefs.h"
2776#include <ctype.h> 4041#include <ctype.h>
2777#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4042#if ((' ' & 0x0FF) == 0x020)
2778#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4043# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2779#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4044# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2780int main () { int i; for (i = 0; i < 256; i++) 4045#else
2781if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 4046# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2782exit (0); } 4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
4049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4050#endif
2783 4051
2784EOF 4052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2785if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4053int
2786then 4054main ()
4055{
4056 int i;
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
4059 || toupper (i) != TOUPPER (i))
4060 exit(2);
4061 exit (0);
4062}
4063_ACEOF
4064rm -f conftest$ac_exeext
4065if { (eval echo "$as_me:4065: \"$ac_link\"") >&5
4066 (eval $ac_link) 2>&5
4067 ac_status=$?
4068 echo "$as_me:4068: \$? = $ac_status" >&5
4069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4070 { (eval echo "$as_me:4070: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:4073: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
2787 : 4075 :
2788else 4076else
2789 echo "configure: failed program was:" >&5 4077 echo "$as_me: program exited with status $ac_status" >&5
2790 cat conftest.$ac_ext >&5 4078echo "$as_me: failed program was:" >&5
2791 rm -fr conftest* 4079cat conftest.$ac_ext >&5
2792 ac_cv_header_stdc=no 4080ac_cv_header_stdc=no
2793fi 4081fi
2794rm -fr conftest* 4082rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2795fi 4083fi
2796
2797fi 4084fi
2798fi 4085fi
2799 4086echo "$as_me:4086: result: $ac_cv_header_stdc" >&5
2800echo "$ac_t""$ac_cv_header_stdc" 1>&6 4087echo "${ECHO_T}$ac_cv_header_stdc" >&6
2801if test $ac_cv_header_stdc = yes; then 4088if test $ac_cv_header_stdc = yes; then
2802 cat >> confdefs.h <<\EOF 4089
4090cat >>confdefs.h <<\EOF
2803#define STDC_HEADERS 1 4091#define STDC_HEADERS 1
2804EOF 4092EOF
2805 4093
2806fi 4094fi
2807 4095
2808echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 4096echo "$as_me:4096: checking whether time.h and sys/time.h may both be included" >&5
2809echo "configure:2810: checking whether time.h and sys/time.h may both be included" >&5 4097echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2810if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 4098if test "${ac_cv_header_time+set}" = set; then
2811 echo $ac_n "(cached) $ac_c" 1>&6 4099 echo $ECHO_N "(cached) $ECHO_C" >&6
2812else 4100else
2813 cat > conftest.$ac_ext <<EOF 4101 cat >conftest.$ac_ext <<_ACEOF
2814#line 2815 "configure" 4102#line 4102 "configure"
2815#include "confdefs.h" 4103#include "confdefs.h"
2816#include <sys/types.h> 4104#include <sys/types.h>
2817#include <sys/time.h> 4105#include <sys/time.h>
2818#include <time.h> 4106#include <time.h>
2819int main() { 4107
2820struct tm *tp; 4108int
2821; return 0; } 4109main ()
2822EOF 4110{
2823if { (eval echo configure:2824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4111if ((struct tm *) 0)
2824 rm -rf conftest* 4112return 0;
4113 ;
4114 return 0;
4115}
4116_ACEOF
4117rm -f conftest.$ac_objext
4118if { (eval echo "$as_me:4118: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>&5
4120 ac_status=$?
4121 echo "$as_me:4121: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:4124: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:4127: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
2825 ac_cv_header_time=yes 4129 ac_cv_header_time=yes
2826else 4130else
2827 echo "configure: failed program was:" >&5 4131 echo "$as_me: failed program was:" >&5
2828 cat conftest.$ac_ext >&5 4132cat conftest.$ac_ext >&5
2829 rm -rf conftest* 4133ac_cv_header_time=no
2830 ac_cv_header_time=no
2831fi 4134fi
2832rm -f conftest* 4135rm -f conftest.$ac_objext conftest.$ac_ext
2833fi 4136fi
2834 4137echo "$as_me:4137: result: $ac_cv_header_time" >&5
2835echo "$ac_t""$ac_cv_header_time" 1>&6 4138echo "${ECHO_T}$ac_cv_header_time" >&6
2836if test $ac_cv_header_time = yes; then 4139if test $ac_cv_header_time = yes; then
2837 cat >> confdefs.h <<\EOF 4140
4141cat >>confdefs.h <<\EOF
2838#define TIME_WITH_SYS_TIME 1 4142#define TIME_WITH_SYS_TIME 1
2839EOF 4143EOF
2840 4144
2841fi 4145fi
2842 4146
2843echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 4147echo "$as_me:4147: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2844echo "configure:2845: checking for sys_siglist declaration in signal.h or unistd.h" >&5 4148echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
2845if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 4149if test "${ac_cv_decl_sys_siglist+set}" = set; then
2846 echo $ac_n "(cached) $ac_c" 1>&6 4150 echo $ECHO_N "(cached) $ECHO_C" >&6
2847else 4151else
2848 cat > conftest.$ac_ext <<EOF 4152 cat >conftest.$ac_ext <<_ACEOF
2849#line 2850 "configure" 4153#line 4153 "configure"
2850#include "confdefs.h" 4154#include "confdefs.h"
2851#include <sys/types.h> 4155#include <sys/types.h>
2852#include <signal.h> 4156#include <signal.h>
2853/* NetBSD declares sys_siglist in unistd.h. */ 4157/* NetBSD declares sys_siglist in unistd.h. */
2854#ifdef HAVE_UNISTD_H 4158#if HAVE_UNISTD_H
2855#include <unistd.h> 4159# include <unistd.h>
2856#endif 4160#endif
2857int main() { 4161
4162int
4163main ()
4164{
2858char *msg = *(sys_siglist + 1); 4165char *msg = *(sys_siglist + 1);
2859; return 0; } 4166 ;
2860EOF 4167 return 0;
2861if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4168}
2862 rm -rf conftest* 4169_ACEOF
4170rm -f conftest.$ac_objext
4171if { (eval echo "$as_me:4171: \"$ac_compile\"") >&5
4172 (eval $ac_compile) 2>&5
4173 ac_status=$?
4174 echo "$as_me:4174: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 { (eval echo "$as_me:4177: \"$ac_try\"") >&5
4178 (eval $ac_try) 2>&5
4179 ac_status=$?
4180 echo "$as_me:4180: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
2863 ac_cv_decl_sys_siglist=yes 4182 ac_cv_decl_sys_siglist=yes
2864else 4183else
2865 echo "configure: failed program was:" >&5 4184 echo "$as_me: failed program was:" >&5
2866 cat conftest.$ac_ext >&5 4185cat conftest.$ac_ext >&5
2867 rm -rf conftest* 4186ac_cv_decl_sys_siglist=no
2868 ac_cv_decl_sys_siglist=no
2869fi 4187fi
2870rm -f conftest* 4188rm -f conftest.$ac_objext conftest.$ac_ext
2871fi 4189fi
2872 4190echo "$as_me:4190: result: $ac_cv_decl_sys_siglist" >&5
2873echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 4191echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
2874if test $ac_cv_decl_sys_siglist = yes; then 4192if test $ac_cv_decl_sys_siglist = yes; then
2875 cat >> confdefs.h <<\EOF 4193
4194cat >>confdefs.h <<\EOF
2876#define SYS_SIGLIST_DECLARED 1 4195#define SYS_SIGLIST_DECLARED 1
2877EOF 4196EOF
2878 4197
2879fi 4198fi
2880 4199
2881echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 4200echo "$as_me:4200: checking for sys/wait.h that is POSIX.1 compatible" >&5
2882echo "configure:2883: checking for sys/wait.h that is POSIX.1 compatible" >&5 4201echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
2883if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 4202if test "${ac_cv_header_sys_wait_h+set}" = set; then
2884 echo $ac_n "(cached) $ac_c" 1>&6 4203 echo $ECHO_N "(cached) $ECHO_C" >&6
2885else 4204else
2886 cat > conftest.$ac_ext <<EOF 4205 cat >conftest.$ac_ext <<_ACEOF
2887#line 2888 "configure" 4206#line 4206 "configure"
2888#include "confdefs.h" 4207#include "confdefs.h"
2889#include <sys/types.h> 4208#include <sys/types.h>
2890#include <sys/wait.h> 4209#include <sys/wait.h>
2891#ifndef WEXITSTATUS 4210#ifndef WEXITSTATUS
2892#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 4211# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2893#endif 4212#endif
2894#ifndef WIFEXITED 4213#ifndef WIFEXITED
2895#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4214# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2896#endif 4215#endif
2897int main() { 4216
2898int s; 4217int
2899wait (&s); 4218main ()
2900s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4219{
2901; return 0; } 4220 int s;
2902EOF 4221 wait (&s);
2903if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4222 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2904 rm -rf conftest* 4223 ;
4224 return 0;
4225}
4226_ACEOF
4227rm -f conftest.$ac_objext
4228if { (eval echo "$as_me:4228: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>&5
4230 ac_status=$?
4231 echo "$as_me:4231: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (eval echo "$as_me:4234: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:4237: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
2905 ac_cv_header_sys_wait_h=yes 4239 ac_cv_header_sys_wait_h=yes
2906else 4240else
2907 echo "configure: failed program was:" >&5 4241 echo "$as_me: failed program was:" >&5
2908 cat conftest.$ac_ext >&5 4242cat conftest.$ac_ext >&5
2909 rm -rf conftest* 4243ac_cv_header_sys_wait_h=no
2910 ac_cv_header_sys_wait_h=no
2911fi 4244fi
2912rm -f conftest* 4245rm -f conftest.$ac_objext conftest.$ac_ext
2913fi 4246fi
2914 4247echo "$as_me:4247: result: $ac_cv_header_sys_wait_h" >&5
2915echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 4248echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
2916if test $ac_cv_header_sys_wait_h = yes; then 4249if test $ac_cv_header_sys_wait_h = yes; then
2917 cat >> confdefs.h <<\EOF 4250
4251cat >>confdefs.h <<\EOF
2918#define HAVE_SYS_WAIT_H 1 4252#define HAVE_SYS_WAIT_H 1
2919EOF 4253EOF
2920 4254
2921fi 4255fi
2922 4256
2923 4257echo "$as_me:4257: checking for struct utimbuf" >&5
2924echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 4258echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
2925echo "configure:2926: checking for struct utimbuf" >&5 4259if test "${emacs_cv_struct_utimbuf+set}" = set; then
2926if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 4260 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 echo $ac_n "(cached) $ac_c" 1>&6
2928else 4261else
2929 cat > conftest.$ac_ext <<EOF 4262 cat >conftest.$ac_ext <<_ACEOF
2930#line 2931 "configure" 4263#line 4263 "configure"
2931#include "confdefs.h" 4264#include "confdefs.h"
2932#ifdef TIME_WITH_SYS_TIME 4265#ifdef TIME_WITH_SYS_TIME
2933#include <sys/time.h> 4266#include <sys/time.h>
@@ -2942,42 +4275,55 @@ else
2942#ifdef HAVE_UTIME_H 4275#ifdef HAVE_UTIME_H
2943#include <utime.h> 4276#include <utime.h>
2944#endif 4277#endif
2945int main() { 4278int
4279main ()
4280{
2946static struct utimbuf x; x.actime = x.modtime; 4281static struct utimbuf x; x.actime = x.modtime;
2947; return 0; } 4282 ;
2948EOF 4283 return 0;
2949if { (eval echo configure:2950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4284}
2950 rm -rf conftest* 4285_ACEOF
4286rm -f conftest.$ac_objext
4287if { (eval echo "$as_me:4287: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>&5
4289 ac_status=$?
4290 echo "$as_me:4290: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -s conftest.$ac_objext'
4293 { (eval echo "$as_me:4293: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:4296: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
2951 emacs_cv_struct_utimbuf=yes 4298 emacs_cv_struct_utimbuf=yes
2952else 4299else
2953 echo "configure: failed program was:" >&5 4300 echo "$as_me: failed program was:" >&5
2954 cat conftest.$ac_ext >&5 4301cat conftest.$ac_ext >&5
2955 rm -rf conftest* 4302emacs_cv_struct_utimbuf=no
2956 emacs_cv_struct_utimbuf=no
2957fi 4303fi
2958rm -f conftest* 4304rm -f conftest.$ac_objext conftest.$ac_ext
2959fi 4305fi
2960 4306echo "$as_me:4306: result: $emacs_cv_struct_utimbuf" >&5
2961echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6 4307echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
2962if test $emacs_cv_struct_utimbuf = yes; then 4308if test $emacs_cv_struct_utimbuf = yes; then
2963 cat >> confdefs.h <<\EOF 4309 cat >>confdefs.h <<\EOF
2964#define HAVE_STRUCT_UTIMBUF 1 4310#define HAVE_STRUCT_UTIMBUF 1
2965EOF 4311EOF
2966 4312
2967fi 4313fi
2968 4314
2969echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 4315echo "$as_me:4315: checking return type of signal handlers" >&5
2970echo "configure:2971: checking return type of signal handlers" >&5 4316echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2971if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 4317if test "${ac_cv_type_signal+set}" = set; then
2972 echo $ac_n "(cached) $ac_c" 1>&6 4318 echo $ECHO_N "(cached) $ECHO_C" >&6
2973else 4319else
2974 cat > conftest.$ac_ext <<EOF 4320 cat >conftest.$ac_ext <<_ACEOF
2975#line 2976 "configure" 4321#line 4321 "configure"
2976#include "confdefs.h" 4322#include "confdefs.h"
2977#include <sys/types.h> 4323#include <sys/types.h>
2978#include <signal.h> 4324#include <signal.h>
2979#ifdef signal 4325#ifdef signal
2980#undef signal 4326# undef signal
2981#endif 4327#endif
2982#ifdef __cplusplus 4328#ifdef __cplusplus
2983extern "C" void (*signal (int, void (*)(int)))(int); 4329extern "C" void (*signal (int, void (*)(int)))(int);
@@ -2985,67 +4331,94 @@ extern "C" void (*signal (int, void (*)(int)))(int);
2985void (*signal ()) (); 4331void (*signal ()) ();
2986#endif 4332#endif
2987 4333
2988int main() { 4334int
4335main ()
4336{
2989int i; 4337int i;
2990; return 0; } 4338 ;
2991EOF 4339 return 0;
2992if { (eval echo configure:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4340}
2993 rm -rf conftest* 4341_ACEOF
4342rm -f conftest.$ac_objext
4343if { (eval echo "$as_me:4343: \"$ac_compile\"") >&5
4344 (eval $ac_compile) 2>&5
4345 ac_status=$?
4346 echo "$as_me:4346: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -s conftest.$ac_objext'
4349 { (eval echo "$as_me:4349: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:4352: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
2994 ac_cv_type_signal=void 4354 ac_cv_type_signal=void
2995else 4355else
2996 echo "configure: failed program was:" >&5 4356 echo "$as_me: failed program was:" >&5
2997 cat conftest.$ac_ext >&5 4357cat conftest.$ac_ext >&5
2998 rm -rf conftest* 4358ac_cv_type_signal=int
2999 ac_cv_type_signal=int
3000fi 4359fi
3001rm -f conftest* 4360rm -f conftest.$ac_objext conftest.$ac_ext
3002fi 4361fi
4362echo "$as_me:4362: result: $ac_cv_type_signal" >&5
4363echo "${ECHO_T}$ac_cv_type_signal" >&6
3003 4364
3004echo "$ac_t""$ac_cv_type_signal" 1>&6 4365cat >>confdefs.h <<EOF
3005cat >> confdefs.h <<EOF
3006#define RETSIGTYPE $ac_cv_type_signal 4366#define RETSIGTYPE $ac_cv_type_signal
3007EOF 4367EOF
3008 4368
3009 4369echo "$as_me:4369: checking for speed_t" >&5
3010 4370echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
3011echo $ac_n "checking for speed_t""... $ac_c" 1>&6 4371if test "${emacs_cv_speed_t+set}" = set; then
3012echo "configure:3013: checking for speed_t" >&5 4372 echo $ECHO_N "(cached) $ECHO_C" >&6
3013if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3015else 4373else
3016 cat > conftest.$ac_ext <<EOF 4374 cat >conftest.$ac_ext <<_ACEOF
3017#line 3018 "configure" 4375#line 4375 "configure"
3018#include "confdefs.h" 4376#include "confdefs.h"
3019#include <termios.h> 4377#include <termios.h>
3020int main() { 4378int
4379main ()
4380{
3021speed_t x = 1; 4381speed_t x = 1;
3022; return 0; } 4382 ;
3023EOF 4383 return 0;
3024if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4384}
3025 rm -rf conftest* 4385_ACEOF
4386rm -f conftest.$ac_objext
4387if { (eval echo "$as_me:4387: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:4390: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:4393: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:4396: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
3026 emacs_cv_speed_t=yes 4398 emacs_cv_speed_t=yes
3027else 4399else
3028 echo "configure: failed program was:" >&5 4400 echo "$as_me: failed program was:" >&5
3029 cat conftest.$ac_ext >&5 4401cat conftest.$ac_ext >&5
4402emacs_cv_speed_t=no
3030fi 4403fi
3031rm -f conftest* 4404rm -f conftest.$ac_objext conftest.$ac_ext
3032fi 4405fi
3033 4406echo "$as_me:4406: result: $emacs_cv_speed_t" >&5
3034echo "$ac_t""$emacs_cv_speed_t" 1>&6 4407echo "${ECHO_T}$emacs_cv_speed_t" >&6
3035if test $emacs_cv_speed_t = yes; then 4408if test $emacs_cv_speed_t = yes; then
3036 cat >> confdefs.h <<\EOF 4409 cat >>confdefs.h <<\EOF
3037#define HAVE_SPEED_T 1 4410#define HAVE_SPEED_T 1
3038EOF 4411EOF
3039 4412
3040fi 4413fi
3041 4414
3042echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4415echo "$as_me:4415: checking for struct timeval" >&5
3043echo "configure:3044: checking for struct timeval" >&5 4416echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
3044if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 4417if test "${emacs_cv_struct_timeval+set}" = set; then
3045 echo $ac_n "(cached) $ac_c" 1>&6 4418 echo $ECHO_N "(cached) $ECHO_C" >&6
3046else 4419else
3047 cat > conftest.$ac_ext <<EOF 4420 cat >conftest.$ac_ext <<_ACEOF
3048#line 3049 "configure" 4421#line 4421 "configure"
3049#include "confdefs.h" 4422#include "confdefs.h"
3050#ifdef TIME_WITH_SYS_TIME 4423#ifdef TIME_WITH_SYS_TIME
3051#include <sys/time.h> 4424#include <sys/time.h>
@@ -3057,222 +4430,305 @@ else
3057#include <time.h> 4430#include <time.h>
3058#endif 4431#endif
3059#endif 4432#endif
3060int main() { 4433int
4434main ()
4435{
3061static struct timeval x; x.tv_sec = x.tv_usec; 4436static struct timeval x; x.tv_sec = x.tv_usec;
3062; return 0; } 4437 ;
3063EOF 4438 return 0;
3064if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4439}
3065 rm -rf conftest* 4440_ACEOF
4441rm -f conftest.$ac_objext
4442if { (eval echo "$as_me:4442: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>&5
4444 ac_status=$?
4445 echo "$as_me:4445: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:4448: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:4451: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
3066 emacs_cv_struct_timeval=yes 4453 emacs_cv_struct_timeval=yes
3067else 4454else
3068 echo "configure: failed program was:" >&5 4455 echo "$as_me: failed program was:" >&5
3069 cat conftest.$ac_ext >&5 4456cat conftest.$ac_ext >&5
3070 rm -rf conftest* 4457emacs_cv_struct_timeval=no
3071 emacs_cv_struct_timeval=no
3072fi 4458fi
3073rm -f conftest* 4459rm -f conftest.$ac_objext conftest.$ac_ext
3074fi 4460fi
3075 4461echo "$as_me:4461: result: $emacs_cv_struct_timeval" >&5
3076echo "$ac_t""$emacs_cv_struct_timeval" 1>&6 4462echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
3077HAVE_TIMEVAL=$emacs_cv_struct_timeval 4463HAVE_TIMEVAL=$emacs_cv_struct_timeval
3078if test $emacs_cv_struct_timeval = yes; then 4464if test $emacs_cv_struct_timeval = yes; then
3079 cat >> confdefs.h <<\EOF 4465 cat >>confdefs.h <<\EOF
3080#define HAVE_TIMEVAL 1 4466#define HAVE_TIMEVAL 1
3081EOF 4467EOF
3082 4468
3083fi 4469fi
3084 4470
3085echo $ac_n "checking for struct exception""... $ac_c" 1>&6 4471echo "$as_me:4471: checking for struct exception" >&5
3086echo "configure:3087: checking for struct exception" >&5 4472echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
3087if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then 4473if test "${emacs_cv_struct_exception+set}" = set; then
3088 echo $ac_n "(cached) $ac_c" 1>&6 4474 echo $ECHO_N "(cached) $ECHO_C" >&6
3089else 4475else
3090 cat > conftest.$ac_ext <<EOF 4476 cat >conftest.$ac_ext <<_ACEOF
3091#line 3092 "configure" 4477#line 4477 "configure"
3092#include "confdefs.h" 4478#include "confdefs.h"
3093#include <math.h> 4479#include <math.h>
3094int main() { 4480int
4481main ()
4482{
3095static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 4483static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
3096; return 0; } 4484 ;
3097EOF 4485 return 0;
3098if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4486}
3099 rm -rf conftest* 4487_ACEOF
4488rm -f conftest.$ac_objext
4489if { (eval echo "$as_me:4489: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>&5
4491 ac_status=$?
4492 echo "$as_me:4492: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (eval echo "$as_me:4495: \"$ac_try\"") >&5
4496 (eval $ac_try) 2>&5
4497 ac_status=$?
4498 echo "$as_me:4498: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
3100 emacs_cv_struct_exception=yes 4500 emacs_cv_struct_exception=yes
3101else 4501else
3102 echo "configure: failed program was:" >&5 4502 echo "$as_me: failed program was:" >&5
3103 cat conftest.$ac_ext >&5 4503cat conftest.$ac_ext >&5
3104 rm -rf conftest* 4504emacs_cv_struct_exception=no
3105 emacs_cv_struct_exception=no
3106fi 4505fi
3107rm -f conftest* 4506rm -f conftest.$ac_objext conftest.$ac_ext
3108fi 4507fi
3109 4508echo "$as_me:4508: result: $emacs_cv_struct_exception" >&5
3110echo "$ac_t""$emacs_cv_struct_exception" 1>&6 4509echo "${ECHO_T}$emacs_cv_struct_exception" >&6
3111HAVE_EXCEPTION=$emacs_cv_struct_exception 4510HAVE_EXCEPTION=$emacs_cv_struct_exception
3112if test $emacs_cv_struct_exception != yes; then 4511if test $emacs_cv_struct_exception != yes; then
3113 cat >> confdefs.h <<\EOF 4512 cat >>confdefs.h <<\EOF
3114#define NO_MATHERR 1 4513#define NO_MATHERR 1
3115EOF 4514EOF
3116 4515
3117fi 4516fi
3118 4517
3119echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4518echo "$as_me:4518: checking whether struct tm is in sys/time.h or time.h" >&5
3120echo "configure:3121: checking whether struct tm is in sys/time.h or time.h" >&5 4519echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3121if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 4520if test "${ac_cv_struct_tm+set}" = set; then
3122 echo $ac_n "(cached) $ac_c" 1>&6 4521 echo $ECHO_N "(cached) $ECHO_C" >&6
3123else 4522else
3124 cat > conftest.$ac_ext <<EOF 4523 cat >conftest.$ac_ext <<_ACEOF
3125#line 3126 "configure" 4524#line 4524 "configure"
3126#include "confdefs.h" 4525#include "confdefs.h"
3127#include <sys/types.h> 4526#include <sys/types.h>
3128#include <time.h> 4527#include <time.h>
3129int main() { 4528
4529int
4530main ()
4531{
3130struct tm *tp; tp->tm_sec; 4532struct tm *tp; tp->tm_sec;
3131; return 0; } 4533 ;
3132EOF 4534 return 0;
3133if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4535}
3134 rm -rf conftest* 4536_ACEOF
4537rm -f conftest.$ac_objext
4538if { (eval echo "$as_me:4538: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>&5
4540 ac_status=$?
4541 echo "$as_me:4541: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try='test -s conftest.$ac_objext'
4544 { (eval echo "$as_me:4544: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:4547: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
3135 ac_cv_struct_tm=time.h 4549 ac_cv_struct_tm=time.h
3136else 4550else
3137 echo "configure: failed program was:" >&5 4551 echo "$as_me: failed program was:" >&5
3138 cat conftest.$ac_ext >&5 4552cat conftest.$ac_ext >&5
3139 rm -rf conftest* 4553ac_cv_struct_tm=sys/time.h
3140 ac_cv_struct_tm=sys/time.h
3141fi 4554fi
3142rm -f conftest* 4555rm -f conftest.$ac_objext conftest.$ac_ext
3143fi 4556fi
3144 4557echo "$as_me:4557: result: $ac_cv_struct_tm" >&5
3145echo "$ac_t""$ac_cv_struct_tm" 1>&6 4558echo "${ECHO_T}$ac_cv_struct_tm" >&6
3146if test $ac_cv_struct_tm = sys/time.h; then 4559if test $ac_cv_struct_tm = sys/time.h; then
3147 cat >> confdefs.h <<\EOF 4560
4561cat >>confdefs.h <<\EOF
3148#define TM_IN_SYS_TIME 1 4562#define TM_IN_SYS_TIME 1
3149EOF 4563EOF
3150 4564
3151fi 4565fi
3152 4566
3153echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4567echo "$as_me:4567: checking for struct tm.tm_zone" >&5
3154echo "configure:3155: checking for tm_zone in struct tm" >&5 4568echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
3155if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 4569if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
3156 echo $ac_n "(cached) $ac_c" 1>&6 4570 echo $ECHO_N "(cached) $ECHO_C" >&6
3157else 4571else
3158 cat > conftest.$ac_ext <<EOF 4572 cat >conftest.$ac_ext <<_ACEOF
3159#line 3160 "configure" 4573#line 4573 "configure"
3160#include "confdefs.h" 4574#include "confdefs.h"
3161#include <sys/types.h> 4575#include <sys/types.h>
3162#include <$ac_cv_struct_tm> 4576#include <$ac_cv_struct_tm>
3163int main() { 4577
3164struct tm tm; tm.tm_zone; 4578int
3165; return 0; } 4579main ()
3166EOF 4580{
3167if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4581static struct tm ac_aggr;
3168 rm -rf conftest* 4582if (ac_aggr.tm_zone)
3169 ac_cv_struct_tm_zone=yes 4583return 0;
4584 ;
4585 return 0;
4586}
4587_ACEOF
4588rm -f conftest.$ac_objext
4589if { (eval echo "$as_me:4589: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>&5
4591 ac_status=$?
4592 echo "$as_me:4592: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:4595: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:4598: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 ac_cv_member_struct_tm_tm_zone=yes
3170else 4601else
3171 echo "configure: failed program was:" >&5 4602 echo "$as_me: failed program was:" >&5
3172 cat conftest.$ac_ext >&5 4603cat conftest.$ac_ext >&5
3173 rm -rf conftest* 4604ac_cv_member_struct_tm_tm_zone=no
3174 ac_cv_struct_tm_zone=no
3175fi 4605fi
3176rm -f conftest* 4606rm -f conftest.$ac_objext conftest.$ac_ext
3177fi 4607fi
4608echo "$as_me:4608: result: $ac_cv_member_struct_tm_tm_zone" >&5
4609echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4610if test $ac_cv_member_struct_tm_tm_zone = yes; then
4611
4612cat >>confdefs.h <<EOF
4613#define HAVE_STRUCT_TM_TM_ZONE 1
4614EOF
3178 4615
3179echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 4616fi
3180if test "$ac_cv_struct_tm_zone" = yes; then 4617
3181 cat >> confdefs.h <<\EOF 4618if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4619
4620cat >>confdefs.h <<\EOF
3182#define HAVE_TM_ZONE 1 4621#define HAVE_TM_ZONE 1
3183EOF 4622EOF
3184 4623
3185else 4624else
3186 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4625 echo "$as_me:4625: checking for tzname" >&5
3187echo "configure:3188: checking for tzname" >&5 4626echo $ECHO_N "checking for tzname... $ECHO_C" >&6
3188if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 4627if test "${ac_cv_var_tzname+set}" = set; then
3189 echo $ac_n "(cached) $ac_c" 1>&6 4628 echo $ECHO_N "(cached) $ECHO_C" >&6
3190else 4629else
3191 cat > conftest.$ac_ext <<EOF 4630 cat >conftest.$ac_ext <<_ACEOF
3192#line 3193 "configure" 4631#line 4631 "configure"
3193#include "confdefs.h" 4632#include "confdefs.h"
3194#include <time.h> 4633#include <time.h>
3195#ifndef tzname /* For SGI. */ 4634#ifndef tzname /* For SGI. */
3196extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4635extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3197#endif 4636#endif
3198int main() { 4637
4638int
4639main ()
4640{
3199atoi(*tzname); 4641atoi(*tzname);
3200; return 0; } 4642 ;
3201EOF 4643 return 0;
3202if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4644}
3203 rm -rf conftest* 4645_ACEOF
4646rm -f conftest.$ac_objext conftest$ac_exeext
4647if { (eval echo "$as_me:4647: \"$ac_link\"") >&5
4648 (eval $ac_link) 2>&5
4649 ac_status=$?
4650 echo "$as_me:4650: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -s conftest$ac_exeext'
4653 { (eval echo "$as_me:4653: \"$ac_try\"") >&5
4654 (eval $ac_try) 2>&5
4655 ac_status=$?
4656 echo "$as_me:4656: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
3204 ac_cv_var_tzname=yes 4658 ac_cv_var_tzname=yes
3205else 4659else
3206 echo "configure: failed program was:" >&5 4660 echo "$as_me: failed program was:" >&5
3207 cat conftest.$ac_ext >&5 4661cat conftest.$ac_ext >&5
3208 rm -rf conftest* 4662ac_cv_var_tzname=no
3209 ac_cv_var_tzname=no
3210fi 4663fi
3211rm -f conftest* 4664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3212fi 4665fi
3213 4666echo "$as_me:4666: result: $ac_cv_var_tzname" >&5
3214echo "$ac_t""$ac_cv_var_tzname" 1>&6 4667echo "${ECHO_T}$ac_cv_var_tzname" >&6
3215 if test $ac_cv_var_tzname = yes; then 4668 if test $ac_cv_var_tzname = yes; then
3216 cat >> confdefs.h <<\EOF 4669
4670cat >>confdefs.h <<\EOF
3217#define HAVE_TZNAME 1 4671#define HAVE_TZNAME 1
3218EOF 4672EOF
3219 4673
3220 fi 4674 fi
3221fi 4675fi
3222 4676
3223echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 4677echo "$as_me:4677: checking for tm_gmtoff in struct tm" >&5
3224echo "configure:3225: checking for tm_gmtoff in struct tm" >&5 4678echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
3225if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 4679if test "${emacs_cv_tm_gmtoff+set}" = set; then
3226 echo $ac_n "(cached) $ac_c" 1>&6 4680 echo $ECHO_N "(cached) $ECHO_C" >&6
3227else 4681else
3228 cat > conftest.$ac_ext <<EOF 4682 cat >conftest.$ac_ext <<_ACEOF
3229#line 3230 "configure" 4683#line 4683 "configure"
3230#include "confdefs.h" 4684#include "confdefs.h"
3231#include <time.h> 4685#include <time.h>
3232int main() { 4686int
4687main ()
4688{
3233struct tm t; t.tm_gmtoff = 0 4689struct tm t; t.tm_gmtoff = 0
3234; return 0; } 4690 ;
3235EOF 4691 return 0;
3236if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4692}
3237 rm -rf conftest* 4693_ACEOF
4694rm -f conftest.$ac_objext conftest$ac_exeext
4695if { (eval echo "$as_me:4695: \"$ac_link\"") >&5
4696 (eval $ac_link) 2>&5
4697 ac_status=$?
4698 echo "$as_me:4698: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -s conftest$ac_exeext'
4701 { (eval echo "$as_me:4701: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:4704: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
3238 emacs_cv_tm_gmtoff=yes 4706 emacs_cv_tm_gmtoff=yes
3239else 4707else
3240 echo "configure: failed program was:" >&5 4708 echo "$as_me: failed program was:" >&5
3241 cat conftest.$ac_ext >&5 4709cat conftest.$ac_ext >&5
3242 rm -rf conftest* 4710emacs_cv_tm_gmtoff=no
3243 emacs_cv_tm_gmtoff=no
3244fi 4711fi
3245rm -f conftest* 4712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3246fi 4713fi
3247 4714echo "$as_me:4714: result: $emacs_cv_tm_gmtoff" >&5
3248echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6 4715echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
3249if test $emacs_cv_tm_gmtoff = yes; then 4716if test $emacs_cv_tm_gmtoff = yes; then
3250 cat >> confdefs.h <<\EOF 4717 cat >>confdefs.h <<\EOF
3251#define HAVE_TM_GMTOFF 1 4718#define HAVE_TM_GMTOFF 1
3252EOF 4719EOF
3253 4720
3254fi 4721fi
3255 4722
3256 4723echo "$as_me:4723: checking for $CC option to accept ANSI C" >&5
3257echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 4724echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3258echo "configure:3259: checking for ${CC-cc} option to accept ANSI C" >&5 4725if test "${ac_cv_prog_cc_stdc+set}" = set; then
3259if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 4726 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 echo $ac_n "(cached) $ac_c" 1>&6
3261else 4727else
3262 ac_cv_prog_cc_stdc=no 4728 ac_cv_prog_cc_stdc=no
3263ac_save_CC="$CC" 4729ac_save_CC=$CC
3264# Don't try gcc -ansi; that turns off useful extensions and 4730cat >conftest.$ac_ext <<_ACEOF
3265# breaks some systems' header files. 4731#line 4731 "configure"
3266# AIX -qlanglvl=ansi
3267# Ultrix and OSF/1 -std1
3268# HP-UX 10.20 and later -Ae
3269# HP-UX older versions -Aa -D_HPUX_SOURCE
3270# SVR4 -Xc -D__EXTENSIONS__
3271for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3272do
3273 CC="$ac_save_CC $ac_arg"
3274 cat > conftest.$ac_ext <<EOF
3275#line 3276 "configure"
3276#include "confdefs.h" 4732#include "confdefs.h"
3277#include <stdarg.h> 4733#include <stdarg.h>
3278#include <stdio.h> 4734#include <stdio.h>
@@ -3302,223 +4758,300 @@ struct s2 {int (*f) (double a);};
3302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303int argc; 4759int argc;
3304char **argv; 4760char **argv;
3305int main() { 4761int
4762main ()
4763{
3306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4764return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3307; return 0; } 4765 ;
3308EOF 4766 return 0;
3309if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4767}
3310 rm -rf conftest* 4768_ACEOF
3311 ac_cv_prog_cc_stdc="$ac_arg"; break 4769# Don't try gcc -ansi; that turns off useful extensions and
3312else 4770# breaks some systems' header files.
3313 echo "configure: failed program was:" >&5 4771# AIX -qlanglvl=ansi
3314 cat conftest.$ac_ext >&5 4772# Ultrix and OSF/1 -std1
3315fi 4773# HP-UX 10.20 and later -Ae
3316rm -f conftest* 4774# HP-UX older versions -Aa -D_HPUX_SOURCE
4775# SVR4 -Xc -D__EXTENSIONS__
4776for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4777do
4778 CC="$ac_save_CC $ac_arg"
4779 rm -f conftest.$ac_objext
4780if { (eval echo "$as_me:4780: \"$ac_compile\"") >&5
4781 (eval $ac_compile) 2>&5
4782 ac_status=$?
4783 echo "$as_me:4783: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -s conftest.$ac_objext'
4786 { (eval echo "$as_me:4786: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:4789: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_cv_prog_cc_stdc=$ac_arg
4792break
4793else
4794 echo "$as_me: failed program was:" >&5
4795cat conftest.$ac_ext >&5
4796fi
4797rm -f conftest.$ac_objext
3317done 4798done
3318CC="$ac_save_CC" 4799rm -f conftest.$ac_ext conftest.$ac_objext
4800CC=$ac_save_CC
3319 4801
3320fi 4802fi
3321 4803
3322case "x$ac_cv_prog_cc_stdc" in 4804case "x$ac_cv_prog_cc_stdc" in
3323 x|xno) 4805 x|xno)
3324 echo "$ac_t""none needed" 1>&6 ;; 4806 echo "$as_me:4806: result: none needed" >&5
4807echo "${ECHO_T}none needed" >&6 ;;
3325 *) 4808 *)
3326 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 4809 echo "$as_me:4809: result: $ac_cv_prog_cc_stdc" >&5
4810echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3327 CC="$CC $ac_cv_prog_cc_stdc" ;; 4811 CC="$CC $ac_cv_prog_cc_stdc" ;;
3328esac 4812esac
3329 4813
3330echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 4814echo "$as_me:4814: checking for function prototypes" >&5
3331echo "configure:3332: checking for function prototypes" >&5 4815echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3332if test "$ac_cv_prog_cc_stdc" != no; then 4816if test "$ac_cv_prog_cc_stdc" != no; then
3333 echo "$ac_t""yes" 1>&6 4817 echo "$as_me:4817: result: yes" >&5
3334 cat >> confdefs.h <<\EOF 4818echo "${ECHO_T}yes" >&6
4819
4820cat >>confdefs.h <<\EOF
3335#define PROTOTYPES 1 4821#define PROTOTYPES 1
3336EOF 4822EOF
3337 4823
3338else 4824else
3339 echo "$ac_t""no" 1>&6 4825 echo "$as_me:4825: result: no" >&5
4826echo "${ECHO_T}no" >&6
3340fi 4827fi
3341 4828
3342echo $ac_n "checking for working volatile""... $ac_c" 1>&6 4829echo "$as_me:4829: checking for working volatile" >&5
3343echo "configure:3344: checking for working volatile" >&5 4830echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
3344if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then 4831if test "${ac_cv_c_volatile+set}" = set; then
3345 echo $ac_n "(cached) $ac_c" 1>&6 4832 echo $ECHO_N "(cached) $ECHO_C" >&6
3346else 4833else
3347 cat > conftest.$ac_ext <<EOF 4834 cat >conftest.$ac_ext <<_ACEOF
3348#line 3349 "configure" 4835#line 4835 "configure"
3349#include "confdefs.h" 4836#include "confdefs.h"
3350 4837
3351int main() { 4838int
4839main ()
4840{
3352 4841
3353volatile int x; 4842volatile int x;
3354int * volatile y; 4843int * volatile y;
3355; return 0; } 4844 ;
3356EOF 4845 return 0;
3357if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4846}
3358 rm -rf conftest* 4847_ACEOF
4848rm -f conftest.$ac_objext
4849if { (eval echo "$as_me:4849: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>&5
4851 ac_status=$?
4852 echo "$as_me:4852: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -s conftest.$ac_objext'
4855 { (eval echo "$as_me:4855: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
3359 ac_cv_c_volatile=yes 4860 ac_cv_c_volatile=yes
3360else 4861else
3361 echo "configure: failed program was:" >&5 4862 echo "$as_me: failed program was:" >&5
3362 cat conftest.$ac_ext >&5 4863cat conftest.$ac_ext >&5
3363 rm -rf conftest* 4864ac_cv_c_volatile=no
3364 ac_cv_c_volatile=no
3365fi 4865fi
3366rm -f conftest* 4866rm -f conftest.$ac_objext conftest.$ac_ext
3367fi 4867fi
3368 4868echo "$as_me:4868: result: $ac_cv_c_volatile" >&5
3369echo "$ac_t""$ac_cv_c_volatile" 1>&6 4869echo "${ECHO_T}$ac_cv_c_volatile" >&6
3370if test $ac_cv_c_volatile = no; then 4870if test $ac_cv_c_volatile = no; then
3371 cat >> confdefs.h <<\EOF 4871
3372#define volatile 4872cat >>confdefs.h <<\EOF
4873#define volatile
3373EOF 4874EOF
3374 4875
3375fi 4876fi
3376 4877
3377echo $ac_n "checking for working const""... $ac_c" 1>&6 4878echo "$as_me:4878: checking for an ANSI C-conforming const" >&5
3378echo "configure:3379: checking for working const" >&5 4879echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3379if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 4880if test "${ac_cv_c_const+set}" = set; then
3380 echo $ac_n "(cached) $ac_c" 1>&6 4881 echo $ECHO_N "(cached) $ECHO_C" >&6
3381else 4882else
3382 cat > conftest.$ac_ext <<EOF 4883 cat >conftest.$ac_ext <<_ACEOF
3383#line 3384 "configure" 4884#line 4884 "configure"
3384#include "confdefs.h" 4885#include "confdefs.h"
3385 4886
3386int main() { 4887int
3387 4888main ()
3388/* Ultrix mips cc rejects this. */ 4889{
3389typedef int charset[2]; const charset x; 4890/* FIXME: Include the comments suggested by Paul. */
3390/* SunOS 4.1.1 cc rejects this. */ 4891#ifndef __cplusplus
3391char const *const *ccp; 4892 /* Ultrix mips cc rejects this. */
3392char **p; 4893 typedef int charset[2];
3393/* NEC SVR4.0.2 mips cc rejects this. */ 4894 const charset x;
3394struct point {int x, y;}; 4895 /* SunOS 4.1.1 cc rejects this. */
3395static struct point const zero = {0,0}; 4896 char const *const *ccp;
3396/* AIX XL C 1.02.0.0 rejects this. 4897 char **p;
3397 It does not let you subtract one const X* pointer from another in an arm 4898 /* NEC SVR4.0.2 mips cc rejects this. */
3398 of an if-expression whose if-part is not a constant expression */ 4899 struct point {int x, y;};
3399const char *g = "string"; 4900 static struct point const zero = {0,0};
3400ccp = &g + (g ? g-g : 0); 4901 /* AIX XL C 1.02.0.0 rejects this.
3401/* HPUX 7.0 cc rejects these. */ 4902 It does not let you subtract one const X* pointer from another in
3402++ccp; 4903 an arm of an if-expression whose if-part is not a constant
3403p = (char**) ccp; 4904 expression */
3404ccp = (char const *const *) p; 4905 const char *g = "string";
3405{ /* SCO 3.2v4 cc rejects this. */ 4906 ccp = &g + (g ? g-g : 0);
3406 char *t; 4907 /* HPUX 7.0 cc rejects these. */
3407 char const *s = 0 ? (char *) 0 : (char const *) 0; 4908 ++ccp;
4909 p = (char**) ccp;
4910 ccp = (char const *const *) p;
4911 { /* SCO 3.2v4 cc rejects this. */
4912 char *t;
4913 char const *s = 0 ? (char *) 0 : (char const *) 0;
4914
4915 *t++ = 0;
4916 }
4917 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4918 int x[] = {25, 17};
4919 const int *foo = &x[0];
4920 ++foo;
4921 }
4922 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4923 typedef const int *iptr;
4924 iptr p = 0;
4925 ++p;
4926 }
4927 { /* AIX XL C 1.02.0.0 rejects this saying
4928 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4929 struct s { int j; const int *ap[3]; };
4930 struct s *b; b->j = 5;
4931 }
4932 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4933 const int foo = 10;
4934 }
4935#endif
3408 4936
3409 *t++ = 0; 4937 ;
3410} 4938 return 0;
3411{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3412 int x[] = {25, 17};
3413 const int *foo = &x[0];
3414 ++foo;
3415}
3416{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3417 typedef const int *iptr;
3418 iptr p = 0;
3419 ++p;
3420} 4939}
3421{ /* AIX XL C 1.02.0.0 rejects this saying 4940_ACEOF
3422 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4941rm -f conftest.$ac_objext
3423 struct s { int j; const int *ap[3]; }; 4942if { (eval echo "$as_me:4942: \"$ac_compile\"") >&5
3424 struct s *b; b->j = 5; 4943 (eval $ac_compile) 2>&5
3425} 4944 ac_status=$?
3426{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4945 echo "$as_me:4945: \$? = $ac_status" >&5
3427 const int foo = 10; 4946 (exit $ac_status); } &&
3428} 4947 { ac_try='test -s conftest.$ac_objext'
3429 4948 { (eval echo "$as_me:4948: \"$ac_try\"") >&5
3430; return 0; } 4949 (eval $ac_try) 2>&5
3431EOF 4950 ac_status=$?
3432if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4951 echo "$as_me:4951: \$? = $ac_status" >&5
3433 rm -rf conftest* 4952 (exit $ac_status); }; }; then
3434 ac_cv_c_const=yes 4953 ac_cv_c_const=yes
3435else 4954else
3436 echo "configure: failed program was:" >&5 4955 echo "$as_me: failed program was:" >&5
3437 cat conftest.$ac_ext >&5 4956cat conftest.$ac_ext >&5
3438 rm -rf conftest* 4957ac_cv_c_const=no
3439 ac_cv_c_const=no
3440fi 4958fi
3441rm -f conftest* 4959rm -f conftest.$ac_objext conftest.$ac_ext
3442fi 4960fi
3443 4961echo "$as_me:4961: result: $ac_cv_c_const" >&5
3444echo "$ac_t""$ac_cv_c_const" 1>&6 4962echo "${ECHO_T}$ac_cv_c_const" >&6
3445if test $ac_cv_c_const = no; then 4963if test $ac_cv_c_const = no; then
3446 cat >> confdefs.h <<\EOF 4964
3447#define const 4965cat >>confdefs.h <<\EOF
4966#define const
3448EOF 4967EOF
3449 4968
3450fi 4969fi
3451 4970
3452echo $ac_n "checking for void * support""... $ac_c" 1>&6 4971echo "$as_me:4971: checking for void * support" >&5
3453echo "configure:3454: checking for void * support" >&5 4972echo $ECHO_N "checking for void * support... $ECHO_C" >&6
3454if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then 4973if test "${emacs_cv_void_star+set}" = set; then
3455 echo $ac_n "(cached) $ac_c" 1>&6 4974 echo $ECHO_N "(cached) $ECHO_C" >&6
3456else 4975else
3457 cat > conftest.$ac_ext <<EOF 4976 cat >conftest.$ac_ext <<_ACEOF
3458#line 3459 "configure" 4977#line 4977 "configure"
3459#include "confdefs.h" 4978#include "confdefs.h"
3460 4979
3461int main() { 4980int
4981main ()
4982{
3462void * foo; 4983void * foo;
3463; return 0; } 4984 ;
3464EOF 4985 return 0;
3465if { (eval echo configure:3466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4986}
3466 rm -rf conftest* 4987_ACEOF
4988rm -f conftest.$ac_objext
4989if { (eval echo "$as_me:4989: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>&5
4991 ac_status=$?
4992 echo "$as_me:4992: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:4995: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:4998: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
3467 emacs_cv_void_star=yes 5000 emacs_cv_void_star=yes
3468else 5001else
3469 echo "configure: failed program was:" >&5 5002 echo "$as_me: failed program was:" >&5
3470 cat conftest.$ac_ext >&5 5003cat conftest.$ac_ext >&5
3471 rm -rf conftest* 5004emacs_cv_void_star=no
3472 emacs_cv_void_star=no
3473fi 5005fi
3474rm -f conftest* 5006rm -f conftest.$ac_objext conftest.$ac_ext
3475fi 5007fi
3476 5008echo "$as_me:5008: result: $emacs_cv_void_star" >&5
3477echo "$ac_t""$emacs_cv_void_star" 1>&6 5009echo "${ECHO_T}$emacs_cv_void_star" >&6
3478if test $emacs_cv_void_star = yes; then 5010if test $emacs_cv_void_star = yes; then
3479 cat >> confdefs.h <<\EOF 5011 cat >>confdefs.h <<\EOF
3480#define POINTER_TYPE void 5012#define POINTER_TYPE void
3481EOF 5013EOF
3482 5014
3483else 5015else
3484 cat >> confdefs.h <<\EOF 5016 cat >>confdefs.h <<\EOF
3485#define POINTER_TYPE char 5017#define POINTER_TYPE char
3486EOF 5018EOF
3487 5019
3488fi 5020fi
3489 5021
3490echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 5022echo "$as_me:5022: checking whether ${MAKE-make} sets \${MAKE}" >&5
3491echo "configure:3492: checking whether ${MAKE-make} sets \${MAKE}" >&5 5023echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3492set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 5024set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3493if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 5025if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6 5026 echo $ECHO_N "(cached) $ECHO_C" >&6
3495else 5027else
3496 cat > conftestmake <<\EOF 5028 cat >conftest.make <<\EOF
3497all: 5029all:
3498 @echo 'ac_maketemp="${MAKE}"' 5030 @echo 'ac_maketemp="${MAKE}"'
3499EOF 5031EOF
3500# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5032# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3501eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 5033eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3502if test -n "$ac_maketemp"; then 5034if test -n "$ac_maketemp"; then
3503 eval ac_cv_prog_make_${ac_make}_set=yes 5035 eval ac_cv_prog_make_${ac_make}_set=yes
3504else 5036else
3505 eval ac_cv_prog_make_${ac_make}_set=no 5037 eval ac_cv_prog_make_${ac_make}_set=no
3506fi 5038fi
3507rm -f conftestmake 5039rm -f conftest.make
3508fi 5040fi
3509if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 5041if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3510 echo "$ac_t""yes" 1>&6 5042 echo "$as_me:5042: result: yes" >&5
5043echo "${ECHO_T}yes" >&6
3511 SET_MAKE= 5044 SET_MAKE=
3512else 5045else
3513 echo "$ac_t""no" 1>&6 5046 echo "$as_me:5046: result: no" >&5
5047echo "${ECHO_T}no" >&6
3514 SET_MAKE="MAKE=${MAKE-make}" 5048 SET_MAKE="MAKE=${MAKE-make}"
3515fi 5049fi
3516 5050
3517 5051echo "$as_me:5051: checking for long file names" >&5
3518echo $ac_n "checking for long file names""... $ac_c" 1>&6 5052echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3519echo "configure:3520: checking for long file names" >&5 5053if test "${ac_cv_sys_long_file_names+set}" = set; then
3520if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 5054 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 echo $ac_n "(cached) $ac_c" 1>&6
3522else 5055else
3523 ac_cv_sys_long_file_names=yes 5056 ac_cv_sys_long_file_names=yes
3524# Test for long file names in all the places we know might matter: 5057# Test for long file names in all the places we know might matter:
@@ -3532,49 +5065,48 @@ else
3532# /var/tmp likewise 5065# /var/tmp likewise
3533# /usr/tmp likewise 5066# /usr/tmp likewise
3534if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 5067if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3535 ac_tmpdirs="$TMPDIR" 5068 ac_tmpdirs=$TMPDIR
3536else 5069else
3537 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 5070 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3538fi 5071fi
3539for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do 5072for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3540 test -d $ac_dir || continue 5073 test -d $ac_dir || continue
3541 test -w $ac_dir || continue # It is less confusing to not echo anything here. 5074 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3542 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null 5075 ac_xdir=$ac_dir/cf$$
3543 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null 5076 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3544 val=`cat $ac_dir/conftest9012345 2>/dev/null` 5077 ac_tf1=$ac_xdir/conftest9012345
3545 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then 5078 ac_tf2=$ac_xdir/conftest9012346
5079 (echo 1 >$ac_tf1) 2>/dev/null
5080 (echo 2 >$ac_tf2) 2>/dev/null
5081 ac_val=`cat $ac_tf1 2>/dev/null`
5082 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3546 ac_cv_sys_long_file_names=no 5083 ac_cv_sys_long_file_names=no
3547 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null 5084 rm -rf $ac_xdir 2>/dev/null
3548 break 5085 break
3549 fi 5086 fi
3550 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null 5087 rm -rf $ac_xdir 2>/dev/null
3551done 5088done
3552fi 5089fi
3553 5090echo "$as_me:5090: result: $ac_cv_sys_long_file_names" >&5
3554echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 5091echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3555if test $ac_cv_sys_long_file_names = yes; then 5092if test $ac_cv_sys_long_file_names = yes; then
3556 cat >> confdefs.h <<\EOF 5093
5094cat >>confdefs.h <<\EOF
3557#define HAVE_LONG_FILE_NAMES 1 5095#define HAVE_LONG_FILE_NAMES 1
3558EOF 5096EOF
3559 5097
3560fi 5098fi
3561 5099
3562
3563#### Choose a window system. 5100#### Choose a window system.
3564 5101
3565# If we find X, set shell vars x_includes and x_libraries to the 5102echo "$as_me:5102: checking for X" >&5
3566# paths, otherwise set no_x=yes. 5103echo $ECHO_N "checking for X... $ECHO_C" >&6
3567# Uses ac_ vars as temps to allow command line to override cache and checks.
3568# --without-x overrides everything else, but does not touch the cache.
3569echo $ac_n "checking for X""... $ac_c" 1>&6
3570echo "configure:3571: checking for X" >&5
3571 5104
3572# Check whether --with-x or --without-x was given. 5105# Check whether --with-x or --without-x was given.
3573if test "${with_x+set}" = set; then 5106if test "${with_x+set}" = set; then
3574 withval="$with_x" 5107 withval="$with_x"
3575 :
3576fi
3577 5108
5109fi;
3578# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5110# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3579if test "x$with_x" = xno; then 5111if test "x$with_x" = xno; then
3580 # The user explicitly disabled X. 5112 # The user explicitly disabled X.
@@ -3584,16 +5116,16 @@ else
3584 # Both variables are already set. 5116 # Both variables are already set.
3585 have_x=yes 5117 have_x=yes
3586 else 5118 else
3587if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 5119 if test "${ac_cv_have_x+set}" = set; then
3588 echo $ac_n "(cached) $ac_c" 1>&6 5120 echo $ECHO_N "(cached) $ECHO_C" >&6
3589else 5121else
3590 # One or both of the vars are not set, and there is no cached value. 5122 # One or both of the vars are not set, and there is no cached value.
3591ac_x_includes=NO ac_x_libraries=NO 5123ac_x_includes=no ac_x_libraries=no
3592rm -fr conftestdir 5124rm -fr conftest.dir
3593if mkdir conftestdir; then 5125if mkdir conftest.dir; then
3594 cd conftestdir 5126 cd conftest.dir
3595 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 5127 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3596 cat > Imakefile <<'EOF' 5128 cat >Imakefile <<'EOF'
3597acfindx: 5129acfindx:
3598 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 5130 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3599EOF 5131EOF
@@ -3603,174 +5135,155 @@ EOF
3603 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5135 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3604 for ac_extension in a so sl; do 5136 for ac_extension in a so sl; do
3605 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 5137 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3606 test -f $ac_im_libdir/libX11.$ac_extension; then 5138 test -f $ac_im_libdir/libX11.$ac_extension; then
3607 ac_im_usrlibdir=$ac_im_libdir; break 5139 ac_im_usrlibdir=$ac_im_libdir; break
3608 fi 5140 fi
3609 done 5141 done
3610 # Screen out bogus values from the imake configuration. They are 5142 # Screen out bogus values from the imake configuration. They are
3611 # bogus both because they are the default anyway, and because 5143 # bogus both because they are the default anyway, and because
3612 # using them would break gcc on systems where it needs fixed includes. 5144 # using them would break gcc on systems where it needs fixed includes.
3613 case "$ac_im_incroot" in 5145 case $ac_im_incroot in
3614 /usr/include) ;; 5146 /usr/include) ;;
3615 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 5147 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3616 esac 5148 esac
3617 case "$ac_im_usrlibdir" in 5149 case $ac_im_usrlibdir in
3618 /usr/lib | /lib) ;; 5150 /usr/lib | /lib) ;;
3619 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 5151 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3620 esac 5152 esac
3621 fi 5153 fi
3622 cd .. 5154 cd ..
3623 rm -fr conftestdir 5155 rm -fr conftest.dir
3624fi 5156fi
3625 5157
3626if test "$ac_x_includes" = NO; then 5158# Standard set of common directories for X headers.
3627 # Guess where to find include files, by looking for this one X11 .h file. 5159# Check X11 before X11Rn because it is often a symlink to the current release.
3628 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5160ac_x_header_dirs='
3629 5161/usr/X11/include
5162/usr/X11R6/include
5163/usr/X11R5/include
5164/usr/X11R4/include
5165
5166/usr/include/X11
5167/usr/include/X11R6
5168/usr/include/X11R5
5169/usr/include/X11R4
5170
5171/usr/local/X11/include
5172/usr/local/X11R6/include
5173/usr/local/X11R5/include
5174/usr/local/X11R4/include
5175
5176/usr/local/include/X11
5177/usr/local/include/X11R6
5178/usr/local/include/X11R5
5179/usr/local/include/X11R4
5180
5181/usr/X386/include
5182/usr/x386/include
5183/usr/XFree86/include/X11
5184
5185/usr/include
5186/usr/local/include
5187/usr/unsupported/include
5188/usr/athena/include
5189/usr/local/x11r5/include
5190/usr/lpp/Xamples/include
5191
5192/usr/openwin/include
5193/usr/openwin/share/include'
5194
5195if test "$ac_x_includes" = no; then
5196 # Guess where to find include files, by looking for Intrinsic.h.
3630 # First, try using that file with no special directory specified. 5197 # First, try using that file with no special directory specified.
3631cat > conftest.$ac_ext <<EOF 5198 cat >conftest.$ac_ext <<_ACEOF
3632#line 3633 "configure" 5199#line 5199 "configure"
3633#include "confdefs.h" 5200#include "confdefs.h"
3634#include <$x_direct_test_include> 5201#include <X11/Intrinsic.h>
3635EOF 5202_ACEOF
3636ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5203if { (eval echo "$as_me:5203: \"$ac_cpp conftest.$ac_ext\"") >&5
3637{ (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3638ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5205 ac_status=$?
3639if test -z "$ac_err"; then 5206 egrep -v '^ *\+' conftest.er1 >conftest.err
3640 rm -rf conftest* 5207 rm -f conftest.er1
5208 cat conftest.err >&5
5209 echo "$as_me:5209: \$? = $ac_status" >&5
5210 (exit $ac_status); } >/dev/null; then
5211 if test -s conftest.err; then
5212 ac_cpp_err=$ac_c_preproc_warn_flag
5213 else
5214 ac_cpp_err=
5215 fi
5216else
5217 ac_cpp_err=yes
5218fi
5219if test -z "$ac_cpp_err"; then
3641 # We can compile using X headers with no special include directory. 5220 # We can compile using X headers with no special include directory.
3642ac_x_includes= 5221ac_x_includes=
3643else 5222else
3644 echo "$ac_err" >&5 5223 echo "$as_me: failed program was:" >&5
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5 5224 cat conftest.$ac_ext >&5
3647 rm -rf conftest* 5225 for ac_dir in $ac_x_header_dirs; do
3648 # Look for the header file in a standard set of common directories. 5226 if test -r "$ac_dir/X11/Intrinsic.h"; then
3649# Check X11 before X11Rn because it is often a symlink to the current release. 5227 ac_x_includes=$ac_dir
3650 for ac_dir in \ 5228 break
3651 /usr/X11/include \ 5229 fi
3652 /usr/X11R6/include \ 5230done
3653 /usr/X11R5/include \
3654 /usr/X11R4/include \
3655 \
3656 /usr/include/X11 \
3657 /usr/include/X11R6 \
3658 /usr/include/X11R5 \
3659 /usr/include/X11R4 \
3660 \
3661 /usr/local/X11/include \
3662 /usr/local/X11R6/include \
3663 /usr/local/X11R5/include \
3664 /usr/local/X11R4/include \
3665 \
3666 /usr/local/include/X11 \
3667 /usr/local/include/X11R6 \
3668 /usr/local/include/X11R5 \
3669 /usr/local/include/X11R4 \
3670 \
3671 /usr/X386/include \
3672 /usr/x386/include \
3673 /usr/XFree86/include/X11 \
3674 \
3675 /usr/include \
3676 /usr/local/include \
3677 /usr/unsupported/include \
3678 /usr/athena/include \
3679 /usr/local/x11r5/include \
3680 /usr/lpp/Xamples/include \
3681 \
3682 /usr/openwin/include \
3683 /usr/openwin/share/include \
3684 ; \
3685 do
3686 if test -r "$ac_dir/$x_direct_test_include"; then
3687 ac_x_includes=$ac_dir
3688 break
3689 fi
3690 done
3691fi 5231fi
3692rm -f conftest* 5232rm -f conftest.err conftest.$ac_ext
3693fi # $ac_x_includes = NO 5233fi # $ac_x_includes = no
3694 5234
3695if test "$ac_x_libraries" = NO; then 5235if test "$ac_x_libraries" = no; then
3696 # Check for the libraries. 5236 # Check for the libraries.
3697
3698 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3699 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3700
3701 # See if we find them without any special options. 5237 # See if we find them without any special options.
3702 # Don't add to $LIBS permanently. 5238 # Don't add to $LIBS permanently.
3703 ac_save_LIBS="$LIBS" 5239 ac_save_LIBS=$LIBS
3704 LIBS="-l$x_direct_test_library $LIBS" 5240 LIBS="-lXt $LIBS"
3705cat > conftest.$ac_ext <<EOF 5241 cat >conftest.$ac_ext <<_ACEOF
3706#line 3707 "configure" 5242#line 5242 "configure"
3707#include "confdefs.h" 5243#include "confdefs.h"
3708 5244#include <X11/Intrinsic.h>
3709int main() { 5245int
3710${x_direct_test_function}() 5246main ()
3711; return 0; } 5247{
3712EOF 5248XtMalloc (0)
3713if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5249 ;
3714 rm -rf conftest* 5250 return 0;
3715 LIBS="$ac_save_LIBS" 5251}
5252_ACEOF
5253rm -f conftest.$ac_objext conftest$ac_exeext
5254if { (eval echo "$as_me:5254: \"$ac_link\"") >&5
5255 (eval $ac_link) 2>&5
5256 ac_status=$?
5257 echo "$as_me:5257: \$? = $ac_status" >&5
5258 (exit $ac_status); } &&
5259 { ac_try='test -s conftest$ac_exeext'
5260 { (eval echo "$as_me:5260: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:5263: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5265 LIBS=$ac_save_LIBS
3716# We can link X programs with no special library path. 5266# We can link X programs with no special library path.
3717ac_x_libraries= 5267ac_x_libraries=
3718else 5268else
3719 echo "configure: failed program was:" >&5 5269 echo "$as_me: failed program was:" >&5
3720 cat conftest.$ac_ext >&5 5270cat conftest.$ac_ext >&5
3721 rm -rf conftest* 5271LIBS=$ac_save_LIBS
3722 LIBS="$ac_save_LIBS" 5272for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3723# First see if replacing the include by lib works.
3724# Check X11 before X11Rn because it is often a symlink to the current release.
3725for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3726 /usr/X11/lib \
3727 /usr/X11R6/lib \
3728 /usr/X11R5/lib \
3729 /usr/X11R4/lib \
3730 \
3731 /usr/lib/X11 \
3732 /usr/lib/X11R6 \
3733 /usr/lib/X11R5 \
3734 /usr/lib/X11R4 \
3735 \
3736 /usr/local/X11/lib \
3737 /usr/local/X11R6/lib \
3738 /usr/local/X11R5/lib \
3739 /usr/local/X11R4/lib \
3740 \
3741 /usr/local/lib/X11 \
3742 /usr/local/lib/X11R6 \
3743 /usr/local/lib/X11R5 \
3744 /usr/local/lib/X11R4 \
3745 \
3746 /usr/X386/lib \
3747 /usr/x386/lib \
3748 /usr/XFree86/lib/X11 \
3749 \
3750 /usr/lib \
3751 /usr/local/lib \
3752 /usr/unsupported/lib \
3753 /usr/athena/lib \
3754 /usr/local/x11r5/lib \
3755 /usr/lpp/Xamples/lib \
3756 /lib/usr/lib/X11 \
3757 \
3758 /usr/openwin/lib \
3759 /usr/openwin/share/lib \
3760 ; \
3761do 5273do
5274 # Don't even attempt the hair of trying to link an X program!
3762 for ac_extension in a so sl; do 5275 for ac_extension in a so sl; do
3763 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 5276 if test -r $ac_dir/libXt.$ac_extension; then
3764 ac_x_libraries=$ac_dir 5277 ac_x_libraries=$ac_dir
3765 break 2 5278 break 2
3766 fi 5279 fi
3767 done 5280 done
3768done 5281done
3769fi 5282fi
3770rm -f conftest* 5283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3771fi # $ac_x_libraries = NO 5284fi # $ac_x_libraries = no
3772 5285
3773if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 5286if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3774 # Didn't find X anywhere. Cache the known absence of X. 5287 # Didn't find X anywhere. Cache the known absence of X.
3775 ac_cv_have_x="have_x=no" 5288 ac_cv_have_x="have_x=no"
3776else 5289else
@@ -3779,12 +5292,14 @@ else
3779 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 5292 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3780fi 5293fi
3781fi 5294fi
5295
3782 fi 5296 fi
3783 eval "$ac_cv_have_x" 5297 eval "$ac_cv_have_x"
3784fi # $with_x != no 5298fi # $with_x != no
3785 5299
3786if test "$have_x" != yes; then 5300if test "$have_x" != yes; then
3787 echo "$ac_t""$have_x" 1>&6 5301 echo "$as_me:5301: result: $have_x" >&5
5302echo "${ECHO_T}$have_x" >&6
3788 no_x=yes 5303 no_x=yes
3789else 5304else
3790 # If each of the values was on the command line, it overrides each guess. 5305 # If each of the values was on the command line, it overrides each guess.
@@ -3793,7 +5308,8 @@ else
3793 # Update the cache value to reflect the command line values. 5308 # Update the cache value to reflect the command line values.
3794 ac_cv_have_x="have_x=yes \ 5309 ac_cv_have_x="have_x=yes \
3795 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 5310 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3796 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 5311 echo "$as_me:5311: result: libraries $x_libraries, headers $x_includes" >&5
5312echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3797fi 5313fi
3798 5314
3799if test "$no_x" = yes; then 5315if test "$no_x" = yes; then
@@ -3866,7 +5382,7 @@ HAVE_MENUS=no
3866case ${HAVE_X11} in 5382case ${HAVE_X11} in
3867 yes ) HAVE_MENUS=yes ;; 5383 yes ) HAVE_MENUS=yes ;;
3868esac 5384esac
3869 5385
3870if test "${opsys}" = "hpux9"; then 5386if test "${opsys}" = "hpux9"; then
3871 case "${x_libraries}" in 5387 case "${x_libraries}" in
3872 *X11R4* ) 5388 *X11R4* )
@@ -3890,130 +5406,173 @@ UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
3890# Assume not, until told otherwise. 5406# Assume not, until told otherwise.
3891GNU_MALLOC=yes 5407GNU_MALLOC=yes
3892doug_lea_malloc=yes 5408doug_lea_malloc=yes
3893echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 5409echo "$as_me:5409: checking for malloc_get_state" >&5
3894echo "configure:3895: checking for malloc_get_state" >&5 5410echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
3895if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 5411if test "${ac_cv_func_malloc_get_state+set}" = set; then
3896 echo $ac_n "(cached) $ac_c" 1>&6 5412 echo $ECHO_N "(cached) $ECHO_C" >&6
3897else 5413else
3898 cat > conftest.$ac_ext <<EOF 5414 cat >conftest.$ac_ext <<_ACEOF
3899#line 3900 "configure" 5415#line 5415 "configure"
3900#include "confdefs.h" 5416#include "confdefs.h"
3901/* System header to define __stub macros and hopefully few prototypes, 5417/* System header to define __stub macros and hopefully few prototypes,
3902 which can conflict with char malloc_get_state(); below. */ 5418 which can conflict with char malloc_get_state (); below. */
3903#include <assert.h> 5419#include <assert.h>
3904/* Override any gcc2 internal prototype to avoid an error. */ 5420/* Override any gcc2 internal prototype to avoid an error. */
5421#ifdef __cplusplus
5422extern "C"
5423#endif
3905/* We use char because int might match the return type of a gcc2 5424/* We use char because int might match the return type of a gcc2
3906 builtin and then its argument prototype would still apply. */ 5425 builtin and then its argument prototype would still apply. */
3907char malloc_get_state(); 5426char malloc_get_state ();
3908 5427char (*f) ();
3909int main() {
3910 5428
5429int
5430main ()
5431{
3911/* The GNU C library defines this for functions which it implements 5432/* The GNU C library defines this for functions which it implements
3912 to always fail with ENOSYS. Some functions are actually named 5433 to always fail with ENOSYS. Some functions are actually named
3913 something starting with __ and the normal name is an alias. */ 5434 something starting with __ and the normal name is an alias. */
3914#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) 5435#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3915choke me 5436choke me
3916#else 5437#else
3917malloc_get_state(); 5438f = malloc_get_state;
3918#endif 5439#endif
3919 5440
3920; return 0; } 5441 ;
3921EOF 5442 return 0;
3922if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5443}
3923 rm -rf conftest* 5444_ACEOF
3924 eval "ac_cv_func_malloc_get_state=yes" 5445rm -f conftest.$ac_objext conftest$ac_exeext
3925else 5446if { (eval echo "$as_me:5446: \"$ac_link\"") >&5
3926 echo "configure: failed program was:" >&5 5447 (eval $ac_link) 2>&5
3927 cat conftest.$ac_ext >&5 5448 ac_status=$?
3928 rm -rf conftest* 5449 echo "$as_me:5449: \$? = $ac_status" >&5
3929 eval "ac_cv_func_malloc_get_state=no" 5450 (exit $ac_status); } &&
3930fi 5451 { ac_try='test -s conftest$ac_exeext'
3931rm -f conftest* 5452 { (eval echo "$as_me:5452: \"$ac_try\"") >&5
3932fi 5453 (eval $ac_try) 2>&5
3933 5454 ac_status=$?
3934if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then 5455 echo "$as_me:5455: \$? = $ac_status" >&5
3935 echo "$ac_t""yes" 1>&6 5456 (exit $ac_status); }; }; then
5457 ac_cv_func_malloc_get_state=yes
5458else
5459 echo "$as_me: failed program was:" >&5
5460cat conftest.$ac_ext >&5
5461ac_cv_func_malloc_get_state=no
5462fi
5463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5464fi
5465echo "$as_me:5465: result: $ac_cv_func_malloc_get_state" >&5
5466echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5467if test $ac_cv_func_malloc_get_state = yes; then
3936 : 5468 :
3937else 5469else
3938 echo "$ac_t""no" 1>&6 5470 doug_lea_malloc=no
3939doug_lea_malloc=no
3940fi 5471fi
3941 5472
3942echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 5473echo "$as_me:5473: checking for malloc_set_state" >&5
3943echo "configure:3944: checking for malloc_set_state" >&5 5474echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
3944if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 5475if test "${ac_cv_func_malloc_set_state+set}" = set; then
3945 echo $ac_n "(cached) $ac_c" 1>&6 5476 echo $ECHO_N "(cached) $ECHO_C" >&6
3946else 5477else
3947 cat > conftest.$ac_ext <<EOF 5478 cat >conftest.$ac_ext <<_ACEOF
3948#line 3949 "configure" 5479#line 5479 "configure"
3949#include "confdefs.h" 5480#include "confdefs.h"
3950/* System header to define __stub macros and hopefully few prototypes, 5481/* System header to define __stub macros and hopefully few prototypes,
3951 which can conflict with char malloc_set_state(); below. */ 5482 which can conflict with char malloc_set_state (); below. */
3952#include <assert.h> 5483#include <assert.h>
3953/* Override any gcc2 internal prototype to avoid an error. */ 5484/* Override any gcc2 internal prototype to avoid an error. */
5485#ifdef __cplusplus
5486extern "C"
5487#endif
3954/* We use char because int might match the return type of a gcc2 5488/* We use char because int might match the return type of a gcc2
3955 builtin and then its argument prototype would still apply. */ 5489 builtin and then its argument prototype would still apply. */
3956char malloc_set_state(); 5490char malloc_set_state ();
3957 5491char (*f) ();
3958int main() {
3959 5492
5493int
5494main ()
5495{
3960/* The GNU C library defines this for functions which it implements 5496/* The GNU C library defines this for functions which it implements
3961 to always fail with ENOSYS. Some functions are actually named 5497 to always fail with ENOSYS. Some functions are actually named
3962 something starting with __ and the normal name is an alias. */ 5498 something starting with __ and the normal name is an alias. */
3963#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) 5499#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3964choke me 5500choke me
3965#else 5501#else
3966malloc_set_state(); 5502f = malloc_set_state;
3967#endif 5503#endif
3968 5504
3969; return 0; } 5505 ;
3970EOF 5506 return 0;
3971if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5507}
3972 rm -rf conftest* 5508_ACEOF
3973 eval "ac_cv_func_malloc_set_state=yes" 5509rm -f conftest.$ac_objext conftest$ac_exeext
3974else 5510if { (eval echo "$as_me:5510: \"$ac_link\"") >&5
3975 echo "configure: failed program was:" >&5 5511 (eval $ac_link) 2>&5
3976 cat conftest.$ac_ext >&5 5512 ac_status=$?
3977 rm -rf conftest* 5513 echo "$as_me:5513: \$? = $ac_status" >&5
3978 eval "ac_cv_func_malloc_set_state=no" 5514 (exit $ac_status); } &&
3979fi 5515 { ac_try='test -s conftest$ac_exeext'
3980rm -f conftest* 5516 { (eval echo "$as_me:5516: \"$ac_try\"") >&5
3981fi 5517 (eval $ac_try) 2>&5
3982 5518 ac_status=$?
3983if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then 5519 echo "$as_me:5519: \$? = $ac_status" >&5
3984 echo "$ac_t""yes" 1>&6 5520 (exit $ac_status); }; }; then
5521 ac_cv_func_malloc_set_state=yes
5522else
5523 echo "$as_me: failed program was:" >&5
5524cat conftest.$ac_ext >&5
5525ac_cv_func_malloc_set_state=no
5526fi
5527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5528fi
5529echo "$as_me:5529: result: $ac_cv_func_malloc_set_state" >&5
5530echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5531if test $ac_cv_func_malloc_set_state = yes; then
3985 : 5532 :
3986else 5533else
3987 echo "$ac_t""no" 1>&6 5534 doug_lea_malloc=no
3988doug_lea_malloc=no
3989fi 5535fi
3990 5536
3991echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 5537echo "$as_me:5537: checking whether __after_morecore_hook exists" >&5
3992echo "configure:3993: checking whether __after_morecore_hook exists" >&5 5538echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
3993if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 5539if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
3994 echo $ac_n "(cached) $ac_c" 1>&6 5540 echo $ECHO_N "(cached) $ECHO_C" >&6
3995else 5541else
3996 cat > conftest.$ac_ext <<EOF 5542 cat >conftest.$ac_ext <<_ACEOF
3997#line 3998 "configure" 5543#line 5543 "configure"
3998#include "confdefs.h" 5544#include "confdefs.h"
3999extern void (* __after_morecore_hook)(); 5545extern void (* __after_morecore_hook)();
4000int main() { 5546int
5547main ()
5548{
4001__after_morecore_hook = 0 5549__after_morecore_hook = 0
4002; return 0; } 5550 ;
4003EOF 5551 return 0;
4004if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5552}
4005 rm -rf conftest* 5553_ACEOF
5554rm -f conftest.$ac_objext conftest$ac_exeext
5555if { (eval echo "$as_me:5555: \"$ac_link\"") >&5
5556 (eval $ac_link) 2>&5
5557 ac_status=$?
5558 echo "$as_me:5558: \$? = $ac_status" >&5
5559 (exit $ac_status); } &&
5560 { ac_try='test -s conftest$ac_exeext'
5561 { (eval echo "$as_me:5561: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:5564: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
4006 emacs_cv_var___after_morecore_hook=yes 5566 emacs_cv_var___after_morecore_hook=yes
4007else 5567else
4008 echo "configure: failed program was:" >&5 5568 echo "$as_me: failed program was:" >&5
4009 cat conftest.$ac_ext >&5 5569cat conftest.$ac_ext >&5
4010 rm -rf conftest* 5570emacs_cv_var___after_morecore_hook=no
4011 emacs_cv_var___after_morecore_hook=no
4012fi 5571fi
4013rm -f conftest* 5572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4014fi 5573fi
4015 5574echo "$as_me:5574: result: $emacs_cv_var___after_morecore_hook" >&5
4016echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6 5575echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
4017if test $emacs_cv_var___after_morecore_hook = no; then 5576if test $emacs_cv_var___after_morecore_hook = no; then
4018 doug_lea_malloc=no 5577 doug_lea_malloc=no
4019fi 5578fi
@@ -4027,7 +5586,7 @@ if test "$doug_lea_malloc" = "yes" ; then
4027 GNU_MALLOC_reason=" 5586 GNU_MALLOC_reason="
4028 (Using Doug Lea's new malloc from the GNU C Library.)" 5587 (Using Doug Lea's new malloc from the GNU C Library.)"
4029 fi 5588 fi
4030 cat >> confdefs.h <<\EOF 5589 cat >>confdefs.h <<\EOF
4031#define DOUG_LEA_MALLOC 1 5590#define DOUG_LEA_MALLOC 1
4032EOF 5591EOF
4033 5592
@@ -4037,113 +5596,182 @@ if test x"${REL_ALLOC}" = x; then
4037 REL_ALLOC=${GNU_MALLOC} 5596 REL_ALLOC=${GNU_MALLOC}
4038fi 5597fi
4039 5598
5599# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5600
5601for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5602 inttypes.h stdint.h unistd.h
5603do
5604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5605echo "$as_me:5605: checking for $ac_header" >&5
5606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5607if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610 cat >conftest.$ac_ext <<_ACEOF
5611#line 5611 "configure"
5612#include "confdefs.h"
5613$ac_includes_default
5614#include <$ac_header>
5615_ACEOF
5616rm -f conftest.$ac_objext
5617if { (eval echo "$as_me:5617: \"$ac_compile\"") >&5
5618 (eval $ac_compile) 2>&5
5619 ac_status=$?
5620 echo "$as_me:5620: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -s conftest.$ac_objext'
5623 { (eval echo "$as_me:5623: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:5626: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 eval "$as_ac_Header=yes"
5629else
5630 echo "$as_me: failed program was:" >&5
5631cat conftest.$ac_ext >&5
5632eval "$as_ac_Header=no"
5633fi
5634rm -f conftest.$ac_objext conftest.$ac_ext
5635fi
5636echo "$as_me:5636: result: `eval echo '${'$as_ac_Header'}'`" >&5
5637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5638if test `eval echo '${'$as_ac_Header'}'` = yes; then
5639 cat >>confdefs.h <<EOF
5640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5641EOF
5642
5643fi
5644done
4040 5645
4041for ac_hdr in stdlib.h unistd.h sys/stat.h 5646for ac_header in stdlib.h unistd.h
4042do 5647do
4043ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4044echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5649echo "$as_me:5649: checking for $ac_header" >&5
4045echo "configure:4046: checking for $ac_hdr" >&5 5650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4046if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5651if eval "test \"\${$as_ac_Header+set}\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6 5652 echo $ECHO_N "(cached) $ECHO_C" >&6
4048else 5653else
4049 cat > conftest.$ac_ext <<EOF 5654 cat >conftest.$ac_ext <<_ACEOF
4050#line 4051 "configure" 5655#line 5655 "configure"
4051#include "confdefs.h" 5656#include "confdefs.h"
4052#include <$ac_hdr> 5657#include <$ac_header>
4053EOF 5658_ACEOF
4054ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5659if { (eval echo "$as_me:5659: \"$ac_cpp conftest.$ac_ext\"") >&5
4055{ (eval echo configure:4056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4056ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5661 ac_status=$?
4057if test -z "$ac_err"; then 5662 egrep -v '^ *\+' conftest.er1 >conftest.err
4058 rm -rf conftest* 5663 rm -f conftest.er1
4059 eval "ac_cv_header_$ac_safe=yes" 5664 cat conftest.err >&5
4060else 5665 echo "$as_me:5665: \$? = $ac_status" >&5
4061 echo "$ac_err" >&5 5666 (exit $ac_status); } >/dev/null; then
4062 echo "configure: failed program was:" >&5 5667 if test -s conftest.err; then
5668 ac_cpp_err=$ac_c_preproc_warn_flag
5669 else
5670 ac_cpp_err=
5671 fi
5672else
5673 ac_cpp_err=yes
5674fi
5675if test -z "$ac_cpp_err"; then
5676 eval "$as_ac_Header=yes"
5677else
5678 echo "$as_me: failed program was:" >&5
4063 cat conftest.$ac_ext >&5 5679 cat conftest.$ac_ext >&5
4064 rm -rf conftest* 5680 eval "$as_ac_Header=no"
4065 eval "ac_cv_header_$ac_safe=no"
4066fi 5681fi
4067rm -f conftest* 5682rm -f conftest.err conftest.$ac_ext
4068fi 5683fi
4069if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5684echo "$as_me:5684: result: `eval echo '${'$as_ac_Header'}'`" >&5
4070 echo "$ac_t""yes" 1>&6 5685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5686if test `eval echo '${'$as_ac_Header'}'` = yes; then
4072 cat >> confdefs.h <<EOF 5687 cat >>confdefs.h <<EOF
4073#define $ac_tr_hdr 1 5688#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4074EOF 5689EOF
4075 5690
4076else
4077 echo "$ac_t""no" 1>&6
4078fi 5691fi
4079done 5692done
4080 5693
4081for ac_func in getpagesize 5694for ac_func in getpagesize
4082do 5695do
4083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4084echo "configure:4085: checking for $ac_func" >&5 5697echo "$as_me:5697: checking for $ac_func" >&5
4085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4086 echo $ac_n "(cached) $ac_c" 1>&6 5699if eval "test \"\${$as_ac_var+set}\" = set"; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
4087else 5701else
4088 cat > conftest.$ac_ext <<EOF 5702 cat >conftest.$ac_ext <<_ACEOF
4089#line 4090 "configure" 5703#line 5703 "configure"
4090#include "confdefs.h" 5704#include "confdefs.h"
4091/* System header to define __stub macros and hopefully few prototypes, 5705/* System header to define __stub macros and hopefully few prototypes,
4092 which can conflict with char $ac_func(); below. */ 5706 which can conflict with char $ac_func (); below. */
4093#include <assert.h> 5707#include <assert.h>
4094/* Override any gcc2 internal prototype to avoid an error. */ 5708/* Override any gcc2 internal prototype to avoid an error. */
5709#ifdef __cplusplus
5710extern "C"
5711#endif
4095/* We use char because int might match the return type of a gcc2 5712/* We use char because int might match the return type of a gcc2
4096 builtin and then its argument prototype would still apply. */ 5713 builtin and then its argument prototype would still apply. */
4097char $ac_func(); 5714char $ac_func ();
4098 5715char (*f) ();
4099int main() {
4100 5716
5717int
5718main ()
5719{
4101/* The GNU C library defines this for functions which it implements 5720/* The GNU C library defines this for functions which it implements
4102 to always fail with ENOSYS. Some functions are actually named 5721 to always fail with ENOSYS. Some functions are actually named
4103 something starting with __ and the normal name is an alias. */ 5722 something starting with __ and the normal name is an alias. */
4104#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4105choke me 5724choke me
4106#else 5725#else
4107$ac_func(); 5726f = $ac_func;
4108#endif 5727#endif
4109 5728
4110; return 0; } 5729 ;
5730 return 0;
5731}
5732_ACEOF
5733rm -f conftest.$ac_objext conftest$ac_exeext
5734if { (eval echo "$as_me:5734: \"$ac_link\"") >&5
5735 (eval $ac_link) 2>&5
5736 ac_status=$?
5737 echo "$as_me:5737: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -s conftest$ac_exeext'
5740 { (eval echo "$as_me:5740: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:5743: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 eval "$as_ac_var=yes"
5746else
5747 echo "$as_me: failed program was:" >&5
5748cat conftest.$ac_ext >&5
5749eval "$as_ac_var=no"
5750fi
5751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752fi
5753echo "$as_me:5753: result: `eval echo '${'$as_ac_var'}'`" >&5
5754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5755if test `eval echo '${'$as_ac_var'}'` = yes; then
5756 cat >>confdefs.h <<EOF
5757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4111EOF 5758EOF
4112if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4113 rm -rf conftest*
4114 eval "ac_cv_func_$ac_func=yes"
4115else
4116 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4118 rm -rf conftest*
4119 eval "ac_cv_func_$ac_func=no"
4120fi
4121rm -f conftest*
4122fi
4123 5759
4124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4125 echo "$ac_t""yes" 1>&6
4126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4127 cat >> confdefs.h <<EOF
4128#define $ac_tr_func 1
4129EOF
4130
4131else
4132 echo "$ac_t""no" 1>&6
4133fi 5760fi
4134done 5761done
4135 5762
4136echo $ac_n "checking for working mmap""... $ac_c" 1>&6 5763echo "$as_me:5763: checking for working mmap" >&5
4137echo "configure:4138: checking for working mmap" >&5 5764echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4138if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 5765if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4139 echo $ac_n "(cached) $ac_c" 1>&6 5766 echo $ECHO_N "(cached) $ECHO_C" >&6
4140else 5767else
4141 if test "$cross_compiling" = yes; then 5768 if test "$cross_compiling" = yes; then
4142 ac_cv_func_mmap_fixed_mapped=no 5769 ac_cv_func_mmap_fixed_mapped=no
4143else 5770else
4144 cat > conftest.$ac_ext <<EOF 5771 cat >conftest.$ac_ext <<_ACEOF
4145#line 4146 "configure" 5772#line 5772 "configure"
4146#include "confdefs.h" 5773#include "confdefs.h"
5774$ac_includes_default
4147/* Thanks to Mike Haertel and Jim Avera for this test. 5775/* Thanks to Mike Haertel and Jim Avera for this test.
4148 Here is a matrix of mmap possibilities: 5776 Here is a matrix of mmap possibilities:
4149 mmap private not fixed 5777 mmap private not fixed
@@ -4165,21 +5793,13 @@ else
4165 The main things grep needs to know about mmap are: 5793 The main things grep needs to know about mmap are:
4166 * does it exist and is it safe to write into the mmap'd area 5794 * does it exist and is it safe to write into the mmap'd area
4167 * how to use it (BSD variants) */ 5795 * how to use it (BSD variants) */
4168#include <sys/types.h> 5796
4169#include <fcntl.h> 5797#include <fcntl.h>
4170#include <sys/mman.h> 5798#include <sys/mman.h>
4171 5799
4172#if STDC_HEADERS || HAVE_STDLIB_H 5800#if !STDC_HEADERS && !HAVE_STDLIB_H
4173# include <stdlib.h>
4174#else
4175char *malloc (); 5801char *malloc ();
4176#endif 5802#endif
4177#if HAVE_UNISTD_H
4178# include <unistd.h>
4179#endif
4180#if HAVE_SYS_STAT_H
4181# include <sys/stat.h>
4182#endif
4183 5803
4184/* This mess was copied from the GNU getpagesize.h. */ 5804/* This mess was copied from the GNU getpagesize.h. */
4185#if !HAVE_GETPAGESIZE 5805#if !HAVE_GETPAGESIZE
@@ -4234,7 +5854,7 @@ main ()
4234 for (i = 0; i < pagesize; ++i) 5854 for (i = 0; i < pagesize; ++i)
4235 *(data + i) = rand (); 5855 *(data + i) = rand ();
4236 umask (0); 5856 umask (0);
4237 fd = creat ("conftestmmap", 0600); 5857 fd = creat ("conftest.mmap", 0600);
4238 if (fd < 0) 5858 if (fd < 0)
4239 exit (1); 5859 exit (1);
4240 if (write (fd, data, pagesize) != pagesize) 5860 if (write (fd, data, pagesize) != pagesize)
@@ -4244,7 +5864,7 @@ main ()
4244 /* Next, try to mmap the file at a fixed address which already has 5864 /* Next, try to mmap the file at a fixed address which already has
4245 something else allocated at it. If we can, also make sure that 5865 something else allocated at it. If we can, also make sure that
4246 we see the same garbage. */ 5866 we see the same garbage. */
4247 fd = open ("conftestmmap", O_RDWR); 5867 fd = open ("conftest.mmap", O_RDWR);
4248 if (fd < 0) 5868 if (fd < 0)
4249 exit (1); 5869 exit (1);
4250 data2 = (char *) malloc (2 * pagesize); 5870 data2 = (char *) malloc (2 * pagesize);
@@ -4272,31 +5892,40 @@ main ()
4272 if (*(data + i) != *(data3 + i)) 5892 if (*(data + i) != *(data3 + i))
4273 exit (1); 5893 exit (1);
4274 close (fd); 5894 close (fd);
4275 unlink ("conftestmmap");
4276 exit (0); 5895 exit (0);
4277} 5896}
4278EOF 5897_ACEOF
4279if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5898rm -f conftest$ac_exeext
4280then 5899if { (eval echo "$as_me:5899: \"$ac_link\"") >&5
5900 (eval $ac_link) 2>&5
5901 ac_status=$?
5902 echo "$as_me:5902: \$? = $ac_status" >&5
5903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5904 { (eval echo "$as_me:5904: \"$ac_try\"") >&5
5905 (eval $ac_try) 2>&5
5906 ac_status=$?
5907 echo "$as_me:5907: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
4281 ac_cv_func_mmap_fixed_mapped=yes 5909 ac_cv_func_mmap_fixed_mapped=yes
4282else 5910else
4283 echo "configure: failed program was:" >&5 5911 echo "$as_me: program exited with status $ac_status" >&5
4284 cat conftest.$ac_ext >&5 5912echo "$as_me: failed program was:" >&5
4285 rm -fr conftest* 5913cat conftest.$ac_ext >&5
4286 ac_cv_func_mmap_fixed_mapped=no 5914ac_cv_func_mmap_fixed_mapped=no
4287fi 5915fi
4288rm -fr conftest* 5916rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4289fi 5917fi
4290
4291fi 5918fi
4292 5919echo "$as_me:5919: result: $ac_cv_func_mmap_fixed_mapped" >&5
4293echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 5920echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4294if test $ac_cv_func_mmap_fixed_mapped = yes; then 5921if test $ac_cv_func_mmap_fixed_mapped = yes; then
4295 cat >> confdefs.h <<\EOF 5922
5923cat >>confdefs.h <<\EOF
4296#define HAVE_MMAP 1 5924#define HAVE_MMAP 1
4297EOF 5925EOF
4298 5926
4299fi 5927fi
5928rm -f conftest.mmap
4300 5929
4301if test $use_mmap_for_buffers = yes; then 5930if test $use_mmap_for_buffers = yes; then
4302 REL_ALLOC=no 5931 REL_ALLOC=no
@@ -4304,148 +5933,178 @@ fi
4304 5933
4305LIBS="$libsrc_libs $LIBS" 5934LIBS="$libsrc_libs $LIBS"
4306 5935
4307echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5936echo "$as_me:5936: checking for dnet_ntoa in -ldnet" >&5
4308echo "configure:4309: checking for dnet_ntoa in -ldnet" >&5 5937echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4309ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5938if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4310if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5939 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 echo $ac_n "(cached) $ac_c" 1>&6
4312else 5940else
4313 ac_save_LIBS="$LIBS" 5941 ac_check_lib_save_LIBS=$LIBS
4314LIBS="-ldnet $LIBS" 5942LIBS="-ldnet $LIBS"
4315cat > conftest.$ac_ext <<EOF 5943cat >conftest.$ac_ext <<_ACEOF
4316#line 4317 "configure" 5944#line 5944 "configure"
4317#include "confdefs.h" 5945#include "confdefs.h"
5946
4318/* Override any gcc2 internal prototype to avoid an error. */ 5947/* Override any gcc2 internal prototype to avoid an error. */
5948#ifdef __cplusplus
5949extern "C"
5950#endif
4319/* We use char because int might match the return type of a gcc2 5951/* We use char because int might match the return type of a gcc2
4320 builtin and then its argument prototype would still apply. */ 5952 builtin and then its argument prototype would still apply. */
4321char dnet_ntoa(); 5953char dnet_ntoa ();
4322 5954int
4323int main() { 5955main ()
4324dnet_ntoa() 5956{
4325; return 0; } 5957dnet_ntoa ();
4326EOF 5958 ;
4327if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5959 return 0;
4328 rm -rf conftest* 5960}
4329 eval "ac_cv_lib_$ac_lib_var=yes" 5961_ACEOF
4330else 5962rm -f conftest.$ac_objext conftest$ac_exeext
4331 echo "configure: failed program was:" >&5 5963if { (eval echo "$as_me:5963: \"$ac_link\"") >&5
4332 cat conftest.$ac_ext >&5 5964 (eval $ac_link) 2>&5
4333 rm -rf conftest* 5965 ac_status=$?
4334 eval "ac_cv_lib_$ac_lib_var=no" 5966 echo "$as_me:5966: \$? = $ac_status" >&5
4335fi 5967 (exit $ac_status); } &&
4336rm -f conftest* 5968 { ac_try='test -s conftest$ac_exeext'
4337LIBS="$ac_save_LIBS" 5969 { (eval echo "$as_me:5969: \"$ac_try\"") >&5
4338 5970 (eval $ac_try) 2>&5
4339fi 5971 ac_status=$?
4340if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5972 echo "$as_me:5972: \$? = $ac_status" >&5
4341 echo "$ac_t""yes" 1>&6 5973 (exit $ac_status); }; }; then
4342 ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 5974 ac_cv_lib_dnet_dnet_ntoa=yes
4343 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 5975else
4344 cat >> confdefs.h <<EOF 5976 echo "$as_me: failed program was:" >&5
4345#define $ac_tr_lib 1 5977cat conftest.$ac_ext >&5
5978ac_cv_lib_dnet_dnet_ntoa=no
5979fi
5980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5981LIBS=$ac_check_lib_save_LIBS
5982fi
5983echo "$as_me:5983: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5984echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5985if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5986 cat >>confdefs.h <<EOF
5987#define HAVE_LIBDNET 1
4346EOF 5988EOF
4347 5989
4348 LIBS="-ldnet $LIBS" 5990 LIBS="-ldnet $LIBS"
4349 5991
4350else
4351 echo "$ac_t""no" 1>&6
4352fi 5992fi
4353 5993
4354 5994echo "$as_me:5994: checking for main in -lXbsd" >&5
4355echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5995echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
4356echo "configure:4357: checking for main in -lXbsd" >&5 5996if test "${ac_cv_lib_Xbsd_main+set}" = set; then
4357ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5997 echo $ECHO_N "(cached) $ECHO_C" >&6
4358if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4360else 5998else
4361 ac_save_LIBS="$LIBS" 5999 ac_check_lib_save_LIBS=$LIBS
4362LIBS="-lXbsd $LIBS" 6000LIBS="-lXbsd $LIBS"
4363cat > conftest.$ac_ext <<EOF 6001cat >conftest.$ac_ext <<_ACEOF
4364#line 4365 "configure" 6002#line 6002 "configure"
4365#include "confdefs.h" 6003#include "confdefs.h"
4366 6004
4367int main() { 6005int
4368main() 6006main ()
4369; return 0; } 6007{
4370EOF 6008main ();
4371if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6009 ;
4372 rm -rf conftest* 6010 return 0;
4373 eval "ac_cv_lib_$ac_lib_var=yes" 6011}
4374else 6012_ACEOF
4375 echo "configure: failed program was:" >&5 6013rm -f conftest.$ac_objext conftest$ac_exeext
4376 cat conftest.$ac_ext >&5 6014if { (eval echo "$as_me:6014: \"$ac_link\"") >&5
4377 rm -rf conftest* 6015 (eval $ac_link) 2>&5
4378 eval "ac_cv_lib_$ac_lib_var=no" 6016 ac_status=$?
4379fi 6017 echo "$as_me:6017: \$? = $ac_status" >&5
4380rm -f conftest* 6018 (exit $ac_status); } &&
4381LIBS="$ac_save_LIBS" 6019 { ac_try='test -s conftest$ac_exeext'
4382 6020 { (eval echo "$as_me:6020: \"$ac_try\"") >&5
4383fi 6021 (eval $ac_try) 2>&5
4384if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6022 ac_status=$?
4385 echo "$ac_t""yes" 1>&6 6023 echo "$as_me:6023: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_lib_Xbsd_main=yes
6026else
6027 echo "$as_me: failed program was:" >&5
6028cat conftest.$ac_ext >&5
6029ac_cv_lib_Xbsd_main=no
6030fi
6031rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6032LIBS=$ac_check_lib_save_LIBS
6033fi
6034echo "$as_me:6034: result: $ac_cv_lib_Xbsd_main" >&5
6035echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6036if test $ac_cv_lib_Xbsd_main = yes; then
4386 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 6037 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
4387else
4388 echo "$ac_t""no" 1>&6
4389fi 6038fi
4390 6039
4391 6040echo "$as_me:6040: checking for cma_open in -lpthreads" >&5
4392echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 6041echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
4393echo "configure:4394: checking for cma_open in -lpthreads" >&5 6042if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
4394ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 6043 echo $ECHO_N "(cached) $ECHO_C" >&6
4395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4397else 6044else
4398 ac_save_LIBS="$LIBS" 6045 ac_check_lib_save_LIBS=$LIBS
4399LIBS="-lpthreads $LIBS" 6046LIBS="-lpthreads $LIBS"
4400cat > conftest.$ac_ext <<EOF 6047cat >conftest.$ac_ext <<_ACEOF
4401#line 4402 "configure" 6048#line 6048 "configure"
4402#include "confdefs.h" 6049#include "confdefs.h"
6050
4403/* Override any gcc2 internal prototype to avoid an error. */ 6051/* Override any gcc2 internal prototype to avoid an error. */
6052#ifdef __cplusplus
6053extern "C"
6054#endif
4404/* We use char because int might match the return type of a gcc2 6055/* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */ 6056 builtin and then its argument prototype would still apply. */
4406char cma_open(); 6057char cma_open ();
4407 6058int
4408int main() { 6059main ()
4409cma_open() 6060{
4410; return 0; } 6061cma_open ();
4411EOF 6062 ;
4412if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6063 return 0;
4413 rm -rf conftest* 6064}
4414 eval "ac_cv_lib_$ac_lib_var=yes" 6065_ACEOF
4415else 6066rm -f conftest.$ac_objext conftest$ac_exeext
4416 echo "configure: failed program was:" >&5 6067if { (eval echo "$as_me:6067: \"$ac_link\"") >&5
4417 cat conftest.$ac_ext >&5 6068 (eval $ac_link) 2>&5
4418 rm -rf conftest* 6069 ac_status=$?
4419 eval "ac_cv_lib_$ac_lib_var=no" 6070 echo "$as_me:6070: \$? = $ac_status" >&5
4420fi 6071 (exit $ac_status); } &&
4421rm -f conftest* 6072 { ac_try='test -s conftest$ac_exeext'
4422LIBS="$ac_save_LIBS" 6073 { (eval echo "$as_me:6073: \"$ac_try\"") >&5
4423 6074 (eval $ac_try) 2>&5
4424fi 6075 ac_status=$?
4425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6076 echo "$as_me:6076: \$? = $ac_status" >&5
4426 echo "$ac_t""yes" 1>&6 6077 (exit $ac_status); }; }; then
4427 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 6078 ac_cv_lib_pthreads_cma_open=yes
4428 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 6079else
4429 cat >> confdefs.h <<EOF 6080 echo "$as_me: failed program was:" >&5
4430#define $ac_tr_lib 1 6081cat conftest.$ac_ext >&5
6082ac_cv_lib_pthreads_cma_open=no
6083fi
6084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6085LIBS=$ac_check_lib_save_LIBS
6086fi
6087echo "$as_me:6087: result: $ac_cv_lib_pthreads_cma_open" >&5
6088echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6089if test $ac_cv_lib_pthreads_cma_open = yes; then
6090 cat >>confdefs.h <<EOF
6091#define HAVE_LIBPTHREADS 1
4431EOF 6092EOF
4432 6093
4433 LIBS="-lpthreads $LIBS" 6094 LIBS="-lpthreads $LIBS"
4434 6095
4435else
4436 echo "$ac_t""no" 1>&6
4437fi 6096fi
4438 6097
4439 6098echo "$as_me:6098: checking for XFree86 in /usr/X386" >&5
4440echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 6099echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
4441echo "configure:4442: checking for XFree86 in /usr/X386" >&5
4442if test -d /usr/X386/include; then 6100if test -d /usr/X386/include; then
4443 HAVE_XFREE386=yes 6101 HAVE_XFREE386=yes
4444 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 6102 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
4445else 6103else
4446 HAVE_XFREE386=no 6104 HAVE_XFREE386=no
4447fi 6105fi
4448echo "$ac_t""$HAVE_XFREE386" 1>&6 6106echo "$as_me:6106: result: $HAVE_XFREE386" >&5
6107echo "${ECHO_T}$HAVE_XFREE386" >&6
4449 6108
4450# Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used 6109# Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
4451# for the tests that follow. We set it back to REAL_CFLAGS later on. 6110# for the tests that follow. We set it back to REAL_CFLAGS later on.
@@ -4469,26 +6128,39 @@ if test "${HAVE_X11}" = "yes"; then
4469 fi 6128 fi
4470 6129
4471 if test "${opsys}" = "gnu-linux"; then 6130 if test "${opsys}" = "gnu-linux"; then
4472 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 6131 echo "$as_me:6131: checking whether X on GNU/Linux needs -b to link" >&5
4473echo "configure:4474: checking whether X on GNU/Linux needs -b to link" >&5 6132echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
4474 cat > conftest.$ac_ext <<EOF 6133 cat >conftest.$ac_ext <<_ACEOF
4475#line 4476 "configure" 6134#line 6134 "configure"
4476#include "confdefs.h" 6135#include "confdefs.h"
4477 6136
4478int main() { 6137int
6138main ()
6139{
4479XOpenDisplay ("foo"); 6140XOpenDisplay ("foo");
4480; return 0; } 6141 ;
4481EOF 6142 return 0;
4482if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6143}
4483 rm -rf conftest* 6144_ACEOF
6145rm -f conftest.$ac_objext conftest$ac_exeext
6146if { (eval echo "$as_me:6146: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6148 ac_status=$?
6149 echo "$as_me:6149: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:6152: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:6155: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
4484 xlinux_first_failure=no 6157 xlinux_first_failure=no
4485else 6158else
4486 echo "configure: failed program was:" >&5 6159 echo "$as_me: failed program was:" >&5
4487 cat conftest.$ac_ext >&5 6160cat conftest.$ac_ext >&5
4488 rm -rf conftest* 6161xlinux_first_failure=yes
4489 xlinux_first_failure=yes
4490fi 6162fi
4491rm -f conftest* 6163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4492 if test "${xlinux_first_failure}" = "yes"; then 6164 if test "${xlinux_first_failure}" = "yes"; then
4493 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 6165 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
4494 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 6166 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
@@ -4498,24 +6170,37 @@ rm -f conftest*
4498 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 6170 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
4499 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 6171 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
4500 LIBS="$LIBS -b i486-linuxaout" 6172 LIBS="$LIBS -b i486-linuxaout"
4501 cat > conftest.$ac_ext <<EOF 6173 cat >conftest.$ac_ext <<_ACEOF
4502#line 4503 "configure" 6174#line 6174 "configure"
4503#include "confdefs.h" 6175#include "confdefs.h"
4504 6176
4505int main() { 6177int
6178main ()
6179{
4506XOpenDisplay ("foo"); 6180XOpenDisplay ("foo");
4507; return 0; } 6181 ;
4508EOF 6182 return 0;
4509if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6183}
4510 rm -rf conftest* 6184_ACEOF
6185rm -f conftest.$ac_objext conftest$ac_exeext
6186if { (eval echo "$as_me:6186: \"$ac_link\"") >&5
6187 (eval $ac_link) 2>&5
6188 ac_status=$?
6189 echo "$as_me:6189: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -s conftest$ac_exeext'
6192 { (eval echo "$as_me:6192: \"$ac_try\"") >&5
6193 (eval $ac_try) 2>&5
6194 ac_status=$?
6195 echo "$as_me:6195: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
4511 xlinux_second_failure=no 6197 xlinux_second_failure=no
4512else 6198else
4513 echo "configure: failed program was:" >&5 6199 echo "$as_me: failed program was:" >&5
4514 cat conftest.$ac_ext >&5 6200cat conftest.$ac_ext >&5
4515 rm -rf conftest* 6201xlinux_second_failure=yes
4516 xlinux_second_failure=yes
4517fi 6202fi
4518rm -f conftest* 6203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4519 if test "${xlinux_second_failure}" = "yes"; then 6204 if test "${xlinux_second_failure}" = "yes"; then
4520 # If we get the same failure with -b, there is no use adding -b. 6205 # If we get the same failure with -b, there is no use adding -b.
4521 # So take it out. This plays safe. 6206 # So take it out. This plays safe.
@@ -4523,220 +6208,296 @@ rm -f conftest*
4523 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 6208 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
4524 CPPFLAGS="$OLD_CPPFLAGS" 6209 CPPFLAGS="$OLD_CPPFLAGS"
4525 LIBS="$OLD_LIBS" 6210 LIBS="$OLD_LIBS"
4526 echo "$ac_t""no" 1>&6 6211 echo "$as_me:6211: result: no" >&5
6212echo "${ECHO_T}no" >&6
4527 else 6213 else
4528 echo "$ac_t""yes" 1>&6 6214 echo "$as_me:6214: result: yes" >&5
6215echo "${ECHO_T}yes" >&6
4529 fi 6216 fi
4530 else 6217 else
4531 echo "$ac_t""no" 1>&6 6218 echo "$as_me:6218: result: no" >&5
6219echo "${ECHO_T}no" >&6
4532 fi 6220 fi
4533 fi 6221 fi
4534 6222
4535 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 6223 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
4536 # header files included from there. 6224 # header files included from there.
4537 echo $ac_n "checking for Xkb""... $ac_c" 1>&6 6225 echo "$as_me:6225: checking for Xkb" >&5
4538echo "configure:4539: checking for Xkb" >&5 6226echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
4539 cat > conftest.$ac_ext <<EOF 6227 cat >conftest.$ac_ext <<_ACEOF
4540#line 4541 "configure" 6228#line 6228 "configure"
4541#include "confdefs.h" 6229#include "confdefs.h"
4542#include <X11/Xlib.h> 6230#include <X11/Xlib.h>
4543#include <X11/XKBlib.h> 6231#include <X11/XKBlib.h>
4544int main() { 6232int
6233main ()
6234{
4545XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); 6235XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
4546; return 0; } 6236 ;
4547EOF 6237 return 0;
4548if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6238}
4549 rm -rf conftest* 6239_ACEOF
6240rm -f conftest.$ac_objext conftest$ac_exeext
6241if { (eval echo "$as_me:6241: \"$ac_link\"") >&5
6242 (eval $ac_link) 2>&5
6243 ac_status=$?
6244 echo "$as_me:6244: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -s conftest$ac_exeext'
6247 { (eval echo "$as_me:6247: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:6250: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
4550 emacs_xkb=yes 6252 emacs_xkb=yes
4551else 6253else
4552 echo "configure: failed program was:" >&5 6254 echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5 6255cat conftest.$ac_ext >&5
4554 rm -rf conftest* 6256emacs_xkb=no
4555 emacs_xkb=no
4556fi 6257fi
4557rm -f conftest* 6258rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4558 echo "$ac_t""$emacs_xkb" 1>&6 6259 echo "$as_me:6259: result: $emacs_xkb" >&5
6260echo "${ECHO_T}$emacs_xkb" >&6
4559 if test $emacs_xkb = yes; then 6261 if test $emacs_xkb = yes; then
4560 cat >> confdefs.h <<\EOF 6262 cat >>confdefs.h <<\EOF
4561#define HAVE_XKBGETKEYBOARD 1 6263#define HAVE_XKBGETKEYBOARD 1
4562EOF 6264EOF
4563 6265
4564 fi 6266 fi
4565 6267
4566 for ac_func in XrmSetDatabase XScreenResourceString \ 6268for ac_func in XrmSetDatabase XScreenResourceString \
4567XScreenNumberOfScreen XSetWMProtocols 6269XScreenNumberOfScreen XSetWMProtocols
4568do 6270do
4569echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4570echo "configure:4571: checking for $ac_func" >&5 6272echo "$as_me:6272: checking for $ac_func" >&5
4571if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4572 echo $ac_n "(cached) $ac_c" 1>&6 6274if eval "test \"\${$as_ac_var+set}\" = set"; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
4573else 6276else
4574 cat > conftest.$ac_ext <<EOF 6277 cat >conftest.$ac_ext <<_ACEOF
4575#line 4576 "configure" 6278#line 6278 "configure"
4576#include "confdefs.h" 6279#include "confdefs.h"
4577/* System header to define __stub macros and hopefully few prototypes, 6280/* System header to define __stub macros and hopefully few prototypes,
4578 which can conflict with char $ac_func(); below. */ 6281 which can conflict with char $ac_func (); below. */
4579#include <assert.h> 6282#include <assert.h>
4580/* Override any gcc2 internal prototype to avoid an error. */ 6283/* Override any gcc2 internal prototype to avoid an error. */
6284#ifdef __cplusplus
6285extern "C"
6286#endif
4581/* We use char because int might match the return type of a gcc2 6287/* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */ 6288 builtin and then its argument prototype would still apply. */
4583char $ac_func(); 6289char $ac_func ();
4584 6290char (*f) ();
4585int main() {
4586 6291
6292int
6293main ()
6294{
4587/* The GNU C library defines this for functions which it implements 6295/* The GNU C library defines this for functions which it implements
4588 to always fail with ENOSYS. Some functions are actually named 6296 to always fail with ENOSYS. Some functions are actually named
4589 something starting with __ and the normal name is an alias. */ 6297 something starting with __ and the normal name is an alias. */
4590#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4591choke me 6299choke me
4592#else 6300#else
4593$ac_func(); 6301f = $ac_func;
4594#endif 6302#endif
4595 6303
4596; return 0; } 6304 ;
6305 return 0;
6306}
6307_ACEOF
6308rm -f conftest.$ac_objext conftest$ac_exeext
6309if { (eval echo "$as_me:6309: \"$ac_link\"") >&5
6310 (eval $ac_link) 2>&5
6311 ac_status=$?
6312 echo "$as_me:6312: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -s conftest$ac_exeext'
6315 { (eval echo "$as_me:6315: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:6318: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 eval "$as_ac_var=yes"
6321else
6322 echo "$as_me: failed program was:" >&5
6323cat conftest.$ac_ext >&5
6324eval "$as_ac_var=no"
6325fi
6326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6327fi
6328echo "$as_me:6328: result: `eval echo '${'$as_ac_var'}'`" >&5
6329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6330if test `eval echo '${'$as_ac_var'}'` = yes; then
6331 cat >>confdefs.h <<EOF
6332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4597EOF 6333EOF
4598if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4599 rm -rf conftest*
4600 eval "ac_cv_func_$ac_func=yes"
4601else
4602 echo "configure: failed program was:" >&5
4603 cat conftest.$ac_ext >&5
4604 rm -rf conftest*
4605 eval "ac_cv_func_$ac_func=no"
4606fi
4607rm -f conftest*
4608fi
4609 6334
4610if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4611 echo "$ac_t""yes" 1>&6
4612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4613 cat >> confdefs.h <<EOF
4614#define $ac_tr_func 1
4615EOF
4616
4617else
4618 echo "$ac_t""no" 1>&6
4619fi 6335fi
4620done 6336done
4621 6337
4622fi 6338fi
4623 6339
4624if test "${window_system}" = "x11"; then 6340if test "${window_system}" = "x11"; then
4625 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 6341 echo "$as_me:6341: checking X11 version 6" >&5
4626echo "configure:4627: checking X11 version 6" >&5 6342echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
4627 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 6343 if test "${emacs_cv_x11_version_6+set}" = set; then
4628 echo $ac_n "(cached) $ac_c" 1>&6 6344 echo $ECHO_N "(cached) $ECHO_C" >&6
4629else 6345else
4630 cat > conftest.$ac_ext <<EOF 6346 cat >conftest.$ac_ext <<_ACEOF
4631#line 4632 "configure" 6347#line 6347 "configure"
4632#include "confdefs.h" 6348#include "confdefs.h"
4633#include <X11/Xlib.h> 6349#include <X11/Xlib.h>
4634int main() { 6350int
6351main ()
6352{
4635#if XlibSpecificationRelease < 6 6353#if XlibSpecificationRelease < 6
4636fail; 6354fail;
4637#endif 6355#endif
4638 6356
4639; return 0; } 6357 ;
4640EOF 6358 return 0;
4641if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6359}
4642 rm -rf conftest* 6360_ACEOF
6361rm -f conftest.$ac_objext conftest$ac_exeext
6362if { (eval echo "$as_me:6362: \"$ac_link\"") >&5
6363 (eval $ac_link) 2>&5
6364 ac_status=$?
6365 echo "$as_me:6365: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -s conftest$ac_exeext'
6368 { (eval echo "$as_me:6368: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:6371: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
4643 emacs_cv_x11_version_6=yes 6373 emacs_cv_x11_version_6=yes
4644else 6374else
4645 echo "configure: failed program was:" >&5 6375 echo "$as_me: failed program was:" >&5
4646 cat conftest.$ac_ext >&5 6376cat conftest.$ac_ext >&5
4647 rm -rf conftest* 6377emacs_cv_x11_version_6=no
4648 emacs_cv_x11_version_6=no
4649fi 6378fi
4650rm -f conftest* 6379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4651fi 6380fi
4652 6381
4653 if test $emacs_cv_x11_version_6 = yes; then 6382 if test $emacs_cv_x11_version_6 = yes; then
4654 echo "$ac_t""6 or newer" 1>&6 6383 echo "$as_me:6383: result: 6 or newer" >&5
4655 cat >> confdefs.h <<\EOF 6384echo "${ECHO_T}6 or newer" >&6
6385 cat >>confdefs.h <<\EOF
4656#define HAVE_X11R6 1 6386#define HAVE_X11R6 1
4657EOF 6387EOF
4658 6388
4659 else 6389 else
4660 echo "$ac_t""before 6" 1>&6 6390 echo "$as_me:6390: result: before 6" >&5
6391echo "${ECHO_T}before 6" >&6
4661 fi 6392 fi
4662fi 6393fi
4663 6394
4664if test "${window_system}" = "x11"; then 6395if test "${window_system}" = "x11"; then
4665 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 6396 echo "$as_me:6396: checking X11 version 5" >&5
4666echo "configure:4667: checking X11 version 5" >&5 6397echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
4667 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 6398 if test "${emacs_cv_x11_version_5+set}" = set; then
4668 echo $ac_n "(cached) $ac_c" 1>&6 6399 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else 6400else
4670 cat > conftest.$ac_ext <<EOF 6401 cat >conftest.$ac_ext <<_ACEOF
4671#line 4672 "configure" 6402#line 6402 "configure"
4672#include "confdefs.h" 6403#include "confdefs.h"
4673#include <X11/Xlib.h> 6404#include <X11/Xlib.h>
4674int main() { 6405int
6406main ()
6407{
4675#if XlibSpecificationRelease < 5 6408#if XlibSpecificationRelease < 5
4676fail; 6409fail;
4677#endif 6410#endif
4678 6411
4679; return 0; } 6412 ;
4680EOF 6413 return 0;
4681if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6414}
4682 rm -rf conftest* 6415_ACEOF
6416rm -f conftest.$ac_objext conftest$ac_exeext
6417if { (eval echo "$as_me:6417: \"$ac_link\"") >&5
6418 (eval $ac_link) 2>&5
6419 ac_status=$?
6420 echo "$as_me:6420: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -s conftest$ac_exeext'
6423 { (eval echo "$as_me:6423: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:6426: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
4683 emacs_cv_x11_version_5=yes 6428 emacs_cv_x11_version_5=yes
4684else 6429else
4685 echo "configure: failed program was:" >&5 6430 echo "$as_me: failed program was:" >&5
4686 cat conftest.$ac_ext >&5 6431cat conftest.$ac_ext >&5
4687 rm -rf conftest* 6432emacs_cv_x11_version_5=no
4688 emacs_cv_x11_version_5=no
4689fi 6433fi
4690rm -f conftest* 6434rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4691fi 6435fi
4692 6436
4693 if test $emacs_cv_x11_version_5 = yes; then 6437 if test $emacs_cv_x11_version_5 = yes; then
4694 echo "$ac_t""5 or newer" 1>&6 6438 echo "$as_me:6438: result: 5 or newer" >&5
6439echo "${ECHO_T}5 or newer" >&6
4695 HAVE_X11R5=yes 6440 HAVE_X11R5=yes
4696 cat >> confdefs.h <<\EOF 6441 cat >>confdefs.h <<\EOF
4697#define HAVE_X11R5 1 6442#define HAVE_X11R5 1
4698EOF 6443EOF
4699 6444
4700 else 6445 else
4701 HAVE_X11R5=no 6446 HAVE_X11R5=no
4702 echo "$ac_t""before 5" 1>&6 6447 echo "$as_me:6447: result: before 5" >&5
6448echo "${ECHO_T}before 5" >&6
4703 fi 6449 fi
4704fi 6450fi
4705 6451
4706if test x"${USE_X_TOOLKIT}" = xmaybe; then 6452if test x"${USE_X_TOOLKIT}" = xmaybe; then
4707 if test x"${HAVE_X11R5}" = xyes; then 6453 if test x"${HAVE_X11R5}" = xyes; then
4708 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 6454 echo "$as_me:6454: checking X11 version 5 with Xaw" >&5
4709echo "configure:4710: checking X11 version 5 with Xaw" >&5 6455echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
4710 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 6456 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
4711 echo $ac_n "(cached) $ac_c" 1>&6 6457 echo $ECHO_N "(cached) $ECHO_C" >&6
4712else 6458else
4713 cat > conftest.$ac_ext <<EOF 6459 cat >conftest.$ac_ext <<_ACEOF
4714#line 4715 "configure" 6460#line 6460 "configure"
4715#include "confdefs.h" 6461#include "confdefs.h"
4716 6462
4717#include <X11/Intrinsic.h> 6463#include <X11/Intrinsic.h>
4718#include <X11/Xaw/Simple.h> 6464#include <X11/Xaw/Simple.h>
4719int main() { 6465int
6466main ()
6467{
4720 6468
4721; return 0; } 6469 ;
4722EOF 6470 return 0;
4723if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6471}
4724 rm -rf conftest* 6472_ACEOF
6473rm -f conftest.$ac_objext conftest$ac_exeext
6474if { (eval echo "$as_me:6474: \"$ac_link\"") >&5
6475 (eval $ac_link) 2>&5
6476 ac_status=$?
6477 echo "$as_me:6477: \$? = $ac_status" >&5
6478 (exit $ac_status); } &&
6479 { ac_try='test -s conftest$ac_exeext'
6480 { (eval echo "$as_me:6480: \"$ac_try\"") >&5
6481 (eval $ac_try) 2>&5
6482 ac_status=$?
6483 echo "$as_me:6483: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
4725 emacs_cv_x11_version_5_with_xaw=yes 6485 emacs_cv_x11_version_5_with_xaw=yes
4726else 6486else
4727 echo "configure: failed program was:" >&5 6487 echo "$as_me: failed program was:" >&5
4728 cat conftest.$ac_ext >&5 6488cat conftest.$ac_ext >&5
4729 rm -rf conftest* 6489emacs_cv_x11_version_5_with_xaw=no
4730 emacs_cv_x11_version_5_with_xaw=no
4731fi 6490fi
4732rm -f conftest* 6491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4733fi 6492fi
4734 6493
4735 if test $emacs_cv_x11_version_5_with_xaw = yes; then 6494 if test $emacs_cv_x11_version_5_with_xaw = yes; then
4736 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6 6495 echo "$as_me:6495: result: 5 or newer, with Xaw; use toolkit by default" >&5
6496echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
4737 USE_X_TOOLKIT=LUCID 6497 USE_X_TOOLKIT=LUCID
4738 else 6498 else
4739 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6 6499 echo "$as_me:6499: result: before 5 or no Xaw; do not use toolkit by default" >&5
6500echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
4740 USE_X_TOOLKIT=none 6501 USE_X_TOOLKIT=none
4741 fi 6502 fi
4742 else 6503 else
@@ -4747,43 +6508,58 @@ fi
4747X_TOOLKIT_TYPE=$USE_X_TOOLKIT 6508X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4748 6509
4749if test "${USE_X_TOOLKIT}" != "none"; then 6510if test "${USE_X_TOOLKIT}" != "none"; then
4750 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 6511 echo "$as_me:6511: checking X11 toolkit version" >&5
4751echo "configure:4752: checking X11 toolkit version" >&5 6512echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
4752 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 6513 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
4753 echo $ac_n "(cached) $ac_c" 1>&6 6514 echo $ECHO_N "(cached) $ECHO_C" >&6
4754else 6515else
4755 cat > conftest.$ac_ext <<EOF 6516 cat >conftest.$ac_ext <<_ACEOF
4756#line 4757 "configure" 6517#line 6517 "configure"
4757#include "confdefs.h" 6518#include "confdefs.h"
4758#include <X11/Intrinsic.h> 6519#include <X11/Intrinsic.h>
4759int main() { 6520int
6521main ()
6522{
4760#if XtSpecificationRelease < 6 6523#if XtSpecificationRelease < 6
4761fail; 6524fail;
4762#endif 6525#endif
4763 6526
4764; return 0; } 6527 ;
4765EOF 6528 return 0;
4766if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6529}
4767 rm -rf conftest* 6530_ACEOF
6531rm -f conftest.$ac_objext conftest$ac_exeext
6532if { (eval echo "$as_me:6532: \"$ac_link\"") >&5
6533 (eval $ac_link) 2>&5
6534 ac_status=$?
6535 echo "$as_me:6535: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -s conftest$ac_exeext'
6538 { (eval echo "$as_me:6538: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:6541: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
4768 emacs_cv_x11_toolkit_version_6=yes 6543 emacs_cv_x11_toolkit_version_6=yes
4769else 6544else
4770 echo "configure: failed program was:" >&5 6545 echo "$as_me: failed program was:" >&5
4771 cat conftest.$ac_ext >&5 6546cat conftest.$ac_ext >&5
4772 rm -rf conftest* 6547emacs_cv_x11_toolkit_version_6=no
4773 emacs_cv_x11_toolkit_version_6=no
4774fi 6548fi
4775rm -f conftest* 6549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4776fi 6550fi
4777 6551
4778 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 6552 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
4779 if test $emacs_cv_x11_toolkit_version_6 = yes; then 6553 if test $emacs_cv_x11_toolkit_version_6 = yes; then
4780 echo "$ac_t""6 or newer" 1>&6 6554 echo "$as_me:6554: result: 6 or newer" >&5
4781 cat >> confdefs.h <<\EOF 6555echo "${ECHO_T}6 or newer" >&6
6556 cat >>confdefs.h <<\EOF
4782#define HAVE_X11XTR6 1 6557#define HAVE_X11XTR6 1
4783EOF 6558EOF
4784 6559
4785 else 6560 else
4786 echo "$ac_t""before 6" 1>&6 6561 echo "$as_me:6561: result: before 6" >&5
6562echo "${ECHO_T}before 6" >&6
4787 fi 6563 fi
4788 6564
4789 OLDLIBS="$LIBS" 6565 OLDLIBS="$LIBS"
@@ -4792,51 +6568,63 @@ EOF
4792 else 6568 else
4793 LIBS="-lXt $LIBS" 6569 LIBS="-lXt $LIBS"
4794 fi 6570 fi
4795 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 6571
4796echo "configure:4797: checking for XmuConvertStandardSelection in -lXmu" >&5 6572echo "$as_me:6572: checking for XmuConvertStandardSelection in -lXmu" >&5
4797ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 6573echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
4798if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6574if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
4799 echo $ac_n "(cached) $ac_c" 1>&6 6575 echo $ECHO_N "(cached) $ECHO_C" >&6
4800else 6576else
4801 ac_save_LIBS="$LIBS" 6577 ac_check_lib_save_LIBS=$LIBS
4802LIBS="-lXmu $LIBS" 6578LIBS="-lXmu $LIBS"
4803cat > conftest.$ac_ext <<EOF 6579cat >conftest.$ac_ext <<_ACEOF
4804#line 4805 "configure" 6580#line 6580 "configure"
4805#include "confdefs.h" 6581#include "confdefs.h"
6582
4806/* Override any gcc2 internal prototype to avoid an error. */ 6583/* Override any gcc2 internal prototype to avoid an error. */
6584#ifdef __cplusplus
6585extern "C"
6586#endif
4807/* We use char because int might match the return type of a gcc2 6587/* We use char because int might match the return type of a gcc2
4808 builtin and then its argument prototype would still apply. */ 6588 builtin and then its argument prototype would still apply. */
4809char XmuConvertStandardSelection(); 6589char XmuConvertStandardSelection ();
4810 6590int
4811int main() { 6591main ()
4812XmuConvertStandardSelection() 6592{
4813; return 0; } 6593XmuConvertStandardSelection ();
4814EOF 6594 ;
4815if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6595 return 0;
4816 rm -rf conftest* 6596}
4817 eval "ac_cv_lib_$ac_lib_var=yes" 6597_ACEOF
4818else 6598rm -f conftest.$ac_objext conftest$ac_exeext
4819 echo "configure: failed program was:" >&5 6599if { (eval echo "$as_me:6599: \"$ac_link\"") >&5
4820 cat conftest.$ac_ext >&5 6600 (eval $ac_link) 2>&5
4821 rm -rf conftest* 6601 ac_status=$?
4822 eval "ac_cv_lib_$ac_lib_var=no" 6602 echo "$as_me:6602: \$? = $ac_status" >&5
4823fi 6603 (exit $ac_status); } &&
4824rm -f conftest* 6604 { ac_try='test -s conftest$ac_exeext'
4825LIBS="$ac_save_LIBS" 6605 { (eval echo "$as_me:6605: \"$ac_try\"") >&5
4826 6606 (eval $ac_try) 2>&5
4827fi 6607 ac_status=$?
4828if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6608 echo "$as_me:6608: \$? = $ac_status" >&5
4829 echo "$ac_t""yes" 1>&6 6609 (exit $ac_status); }; }; then
4830 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 6610 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
4831 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 6611else
4832 cat >> confdefs.h <<EOF 6612 echo "$as_me: failed program was:" >&5
4833#define $ac_tr_lib 1 6613cat conftest.$ac_ext >&5
6614ac_cv_lib_Xmu_XmuConvertStandardSelection=no
6615fi
6616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617LIBS=$ac_check_lib_save_LIBS
6618fi
6619echo "$as_me:6619: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6620echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6621if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6622 cat >>confdefs.h <<EOF
6623#define HAVE_LIBXMU 1
4834EOF 6624EOF
4835 6625
4836 LIBS="-lXmu $LIBS" 6626 LIBS="-lXmu $LIBS"
4837 6627
4838else
4839 echo "$ac_t""no" 1>&6
4840fi 6628fi
4841 6629
4842 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" 6630 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
@@ -4845,140 +6633,178 @@ fi
4845# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 6633# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
4846if test "${HAVE_X11}" = "yes"; then 6634if test "${HAVE_X11}" = "yes"; then
4847 if test "${USE_X_TOOLKIT}" != "none"; then 6635 if test "${USE_X_TOOLKIT}" != "none"; then
4848 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 6636
4849echo "configure:4850: checking for XShapeQueryExtension in -lXext" >&5 6637echo "$as_me:6637: checking for XShapeQueryExtension in -lXext" >&5
4850ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` 6638echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
4851if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6639if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
4852 echo $ac_n "(cached) $ac_c" 1>&6 6640 echo $ECHO_N "(cached) $ECHO_C" >&6
4853else 6641else
4854 ac_save_LIBS="$LIBS" 6642 ac_check_lib_save_LIBS=$LIBS
4855LIBS="-lXext $LIBS" 6643LIBS="-lXext $LIBS"
4856cat > conftest.$ac_ext <<EOF 6644cat >conftest.$ac_ext <<_ACEOF
4857#line 4858 "configure" 6645#line 6645 "configure"
4858#include "confdefs.h" 6646#include "confdefs.h"
6647
4859/* Override any gcc2 internal prototype to avoid an error. */ 6648/* Override any gcc2 internal prototype to avoid an error. */
6649#ifdef __cplusplus
6650extern "C"
6651#endif
4860/* We use char because int might match the return type of a gcc2 6652/* We use char because int might match the return type of a gcc2
4861 builtin and then its argument prototype would still apply. */ 6653 builtin and then its argument prototype would still apply. */
4862char XShapeQueryExtension(); 6654char XShapeQueryExtension ();
4863 6655int
4864int main() { 6656main ()
4865XShapeQueryExtension() 6657{
4866; return 0; } 6658XShapeQueryExtension ();
4867EOF 6659 ;
4868if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6660 return 0;
4869 rm -rf conftest* 6661}
4870 eval "ac_cv_lib_$ac_lib_var=yes" 6662_ACEOF
4871else 6663rm -f conftest.$ac_objext conftest$ac_exeext
4872 echo "configure: failed program was:" >&5 6664if { (eval echo "$as_me:6664: \"$ac_link\"") >&5
4873 cat conftest.$ac_ext >&5 6665 (eval $ac_link) 2>&5
4874 rm -rf conftest* 6666 ac_status=$?
4875 eval "ac_cv_lib_$ac_lib_var=no" 6667 echo "$as_me:6667: \$? = $ac_status" >&5
4876fi 6668 (exit $ac_status); } &&
4877rm -f conftest* 6669 { ac_try='test -s conftest$ac_exeext'
4878LIBS="$ac_save_LIBS" 6670 { (eval echo "$as_me:6670: \"$ac_try\"") >&5
4879 6671 (eval $ac_try) 2>&5
4880fi 6672 ac_status=$?
4881if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6673 echo "$as_me:6673: \$? = $ac_status" >&5
4882 echo "$ac_t""yes" 1>&6 6674 (exit $ac_status); }; }; then
4883 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 6675 ac_cv_lib_Xext_XShapeQueryExtension=yes
4884 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 6676else
4885 cat >> confdefs.h <<EOF 6677 echo "$as_me: failed program was:" >&5
4886#define $ac_tr_lib 1 6678cat conftest.$ac_ext >&5
6679ac_cv_lib_Xext_XShapeQueryExtension=no
6680fi
6681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6682LIBS=$ac_check_lib_save_LIBS
6683fi
6684echo "$as_me:6684: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6685echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6686if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6687 cat >>confdefs.h <<EOF
6688#define HAVE_LIBXEXT 1
4887EOF 6689EOF
4888 6690
4889 LIBS="-lXext $LIBS" 6691 LIBS="-lXext $LIBS"
4890 6692
4891else
4892 echo "$ac_t""no" 1>&6
4893fi 6693fi
4894 6694
4895 fi 6695 fi
4896fi 6696fi
4897 6697
4898if test "${USE_X_TOOLKIT}" = "MOTIF"; then 6698if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4899 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 6699 echo "$as_me:6699: checking for Motif version 2.1" >&5
4900echo "configure:4901: checking for Motif version 2.1" >&5 6700echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
4901if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 6701if test "${emacs_cv_motif_version_2_1+set}" = set; then
4902 echo $ac_n "(cached) $ac_c" 1>&6 6702 echo $ECHO_N "(cached) $ECHO_C" >&6
4903else 6703else
4904 cat > conftest.$ac_ext <<EOF 6704 cat >conftest.$ac_ext <<_ACEOF
4905#line 4906 "configure" 6705#line 6705 "configure"
4906#include "confdefs.h" 6706#include "confdefs.h"
4907#include <Xm/Xm.h> 6707#include <Xm/Xm.h>
4908int main() { 6708int
6709main ()
6710{
4909#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 6711#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4910int x = 5; 6712int x = 5;
4911#else 6713#else
4912Motif version prior to 2.1. 6714Motif version prior to 2.1.
4913#endif 6715#endif
4914; return 0; } 6716 ;
4915EOF 6717 return 0;
4916if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6718}
4917 rm -rf conftest* 6719_ACEOF
6720rm -f conftest.$ac_objext
6721if { (eval echo "$as_me:6721: \"$ac_compile\"") >&5
6722 (eval $ac_compile) 2>&5
6723 ac_status=$?
6724 echo "$as_me:6724: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try='test -s conftest.$ac_objext'
6727 { (eval echo "$as_me:6727: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:6730: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
4918 emacs_cv_motif_version_2_1=yes 6732 emacs_cv_motif_version_2_1=yes
4919else 6733else
4920 echo "configure: failed program was:" >&5 6734 echo "$as_me: failed program was:" >&5
4921 cat conftest.$ac_ext >&5 6735cat conftest.$ac_ext >&5
4922 rm -rf conftest* 6736emacs_cv_motif_version_2_1=no
4923 emacs_cv_motif_version_2_1=no
4924fi 6737fi
4925rm -f conftest* 6738rm -f conftest.$ac_objext conftest.$ac_ext
4926fi 6739fi
4927 6740echo "$as_me:6740: result: $emacs_cv_motif_version_2_1" >&5
4928echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6 6741echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
4929 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 6742 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
4930 if test $emacs_cv_motif_version_2_1 = yes; then 6743 if test $emacs_cv_motif_version_2_1 = yes; then
4931 HAVE_LIBXP=no 6744 HAVE_LIBXP=no
4932 cat >> confdefs.h <<\EOF 6745 cat >>confdefs.h <<\EOF
4933#define HAVE_MOTIF_2_1 1 6746#define HAVE_MOTIF_2_1 1
4934EOF 6747EOF
4935 6748
4936 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 6749 echo "$as_me:6749: checking for XpCreateContext in -lXp" >&5
4937echo "configure:4938: checking for XpCreateContext in -lXp" >&5 6750echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
4938ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 6751if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
4939if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6752 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 echo $ac_n "(cached) $ac_c" 1>&6
4941else 6753else
4942 ac_save_LIBS="$LIBS" 6754 ac_check_lib_save_LIBS=$LIBS
4943LIBS="-lXp $LIBS" 6755LIBS="-lXp $LIBS"
4944cat > conftest.$ac_ext <<EOF 6756cat >conftest.$ac_ext <<_ACEOF
4945#line 4946 "configure" 6757#line 6757 "configure"
4946#include "confdefs.h" 6758#include "confdefs.h"
6759
4947/* Override any gcc2 internal prototype to avoid an error. */ 6760/* Override any gcc2 internal prototype to avoid an error. */
6761#ifdef __cplusplus
6762extern "C"
6763#endif
4948/* We use char because int might match the return type of a gcc2 6764/* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */ 6765 builtin and then its argument prototype would still apply. */
4950char XpCreateContext(); 6766char XpCreateContext ();
4951 6767int
4952int main() { 6768main ()
4953XpCreateContext() 6769{
4954; return 0; } 6770XpCreateContext ();
4955EOF 6771 ;
4956if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6772 return 0;
4957 rm -rf conftest* 6773}
4958 eval "ac_cv_lib_$ac_lib_var=yes" 6774_ACEOF
4959else 6775rm -f conftest.$ac_objext conftest$ac_exeext
4960 echo "configure: failed program was:" >&5 6776if { (eval echo "$as_me:6776: \"$ac_link\"") >&5
4961 cat conftest.$ac_ext >&5 6777 (eval $ac_link) 2>&5
4962 rm -rf conftest* 6778 ac_status=$?
4963 eval "ac_cv_lib_$ac_lib_var=no" 6779 echo "$as_me:6779: \$? = $ac_status" >&5
4964fi 6780 (exit $ac_status); } &&
4965rm -f conftest* 6781 { ac_try='test -s conftest$ac_exeext'
4966LIBS="$ac_save_LIBS" 6782 { (eval echo "$as_me:6782: \"$ac_try\"") >&5
4967 6783 (eval $ac_try) 2>&5
4968fi 6784 ac_status=$?
4969if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6785 echo "$as_me:6785: \$? = $ac_status" >&5
4970 echo "$ac_t""yes" 1>&6 6786 (exit $ac_status); }; }; then
6787 ac_cv_lib_Xp_XpCreateContext=yes
6788else
6789 echo "$as_me: failed program was:" >&5
6790cat conftest.$ac_ext >&5
6791ac_cv_lib_Xp_XpCreateContext=no
6792fi
6793rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6794LIBS=$ac_check_lib_save_LIBS
6795fi
6796echo "$as_me:6796: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6797echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6798if test $ac_cv_lib_Xp_XpCreateContext = yes; then
4971 HAVE_LIBXP=yes 6799 HAVE_LIBXP=yes
4972else
4973 echo "$ac_t""no" 1>&6
4974fi 6800fi
4975 6801
4976 if test ${HAVE_LIBXP} = yes; then 6802 if test ${HAVE_LIBXP} = yes; then
4977 cat >> confdefs.h <<\EOF 6803 cat >>confdefs.h <<\EOF
4978#define HAVE_LIBXP 1 6804#define HAVE_LIBXP 1
4979EOF 6805EOF
4980 6806
4981 fi 6807 fi
4982 fi 6808 fi
4983fi 6809fi
4984 6810
@@ -4986,100 +6812,120 @@ fi
4986HAVE_XAW3D=no 6812HAVE_XAW3D=no
4987if test "${HAVE_X11}" = "yes"; then 6813if test "${HAVE_X11}" = "yes"; then
4988 if test "${USE_X_TOOLKIT}" != "none"; then 6814 if test "${USE_X_TOOLKIT}" != "none"; then
4989 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 6815 echo "$as_me:6815: checking for X11/Xaw3d/Scrollbar.h" >&5
4990echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 6816echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
4991echo "configure:4992: checking for X11/Xaw3d/Scrollbar.h" >&5 6817if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
4992if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6818 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 echo $ac_n "(cached) $ac_c" 1>&6
4994else 6819else
4995 cat > conftest.$ac_ext <<EOF 6820 cat >conftest.$ac_ext <<_ACEOF
4996#line 4997 "configure" 6821#line 6821 "configure"
4997#include "confdefs.h" 6822#include "confdefs.h"
4998#include <X11/Xaw3d/Scrollbar.h> 6823#include <X11/Xaw3d/Scrollbar.h>
4999EOF 6824_ACEOF
5000ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6825if { (eval echo "$as_me:6825: \"$ac_cpp conftest.$ac_ext\"") >&5
5001{ (eval echo configure:5002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5002ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6827 ac_status=$?
5003if test -z "$ac_err"; then 6828 egrep -v '^ *\+' conftest.er1 >conftest.err
5004 rm -rf conftest* 6829 rm -f conftest.er1
5005 eval "ac_cv_header_$ac_safe=yes" 6830 cat conftest.err >&5
6831 echo "$as_me:6831: \$? = $ac_status" >&5
6832 (exit $ac_status); } >/dev/null; then
6833 if test -s conftest.err; then
6834 ac_cpp_err=$ac_c_preproc_warn_flag
6835 else
6836 ac_cpp_err=
6837 fi
5006else 6838else
5007 echo "$ac_err" >&5 6839 ac_cpp_err=yes
5008 echo "configure: failed program was:" >&5 6840fi
6841if test -z "$ac_cpp_err"; then
6842 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
6843else
6844 echo "$as_me: failed program was:" >&5
5009 cat conftest.$ac_ext >&5 6845 cat conftest.$ac_ext >&5
5010 rm -rf conftest* 6846 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
5011 eval "ac_cv_header_$ac_safe=no"
5012fi 6847fi
5013rm -f conftest* 6848rm -f conftest.err conftest.$ac_ext
5014fi 6849fi
5015if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6850echo "$as_me:6850: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
5016 echo "$ac_t""yes" 1>&6 6851echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
5017 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 6852if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
5018echo "configure:5019: checking for XawScrollbarSetThumb in -lXaw3d" >&5 6853 echo "$as_me:6853: checking for XawScrollbarSetThumb in -lXaw3d" >&5
5019ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 6854echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
5020if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6855if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
5021 echo $ac_n "(cached) $ac_c" 1>&6 6856 echo $ECHO_N "(cached) $ECHO_C" >&6
5022else 6857else
5023 ac_save_LIBS="$LIBS" 6858 ac_check_lib_save_LIBS=$LIBS
5024LIBS="-lXaw3d $LIBS" 6859LIBS="-lXaw3d $LIBS"
5025cat > conftest.$ac_ext <<EOF 6860cat >conftest.$ac_ext <<_ACEOF
5026#line 5027 "configure" 6861#line 6861 "configure"
5027#include "confdefs.h" 6862#include "confdefs.h"
6863
5028/* Override any gcc2 internal prototype to avoid an error. */ 6864/* Override any gcc2 internal prototype to avoid an error. */
6865#ifdef __cplusplus
6866extern "C"
6867#endif
5029/* We use char because int might match the return type of a gcc2 6868/* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */ 6869 builtin and then its argument prototype would still apply. */
5031char XawScrollbarSetThumb(); 6870char XawScrollbarSetThumb ();
5032 6871int
5033int main() { 6872main ()
5034XawScrollbarSetThumb() 6873{
5035; return 0; } 6874XawScrollbarSetThumb ();
5036EOF 6875 ;
5037if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6876 return 0;
5038 rm -rf conftest* 6877}
5039 eval "ac_cv_lib_$ac_lib_var=yes" 6878_ACEOF
5040else 6879rm -f conftest.$ac_objext conftest$ac_exeext
5041 echo "configure: failed program was:" >&5 6880if { (eval echo "$as_me:6880: \"$ac_link\"") >&5
5042 cat conftest.$ac_ext >&5 6881 (eval $ac_link) 2>&5
5043 rm -rf conftest* 6882 ac_status=$?
5044 eval "ac_cv_lib_$ac_lib_var=no" 6883 echo "$as_me:6883: \$? = $ac_status" >&5
5045fi 6884 (exit $ac_status); } &&
5046rm -f conftest* 6885 { ac_try='test -s conftest$ac_exeext'
5047LIBS="$ac_save_LIBS" 6886 { (eval echo "$as_me:6886: \"$ac_try\"") >&5
5048 6887 (eval $ac_try) 2>&5
5049fi 6888 ac_status=$?
5050if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6889 echo "$as_me:6889: \$? = $ac_status" >&5
5051 echo "$ac_t""yes" 1>&6 6890 (exit $ac_status); }; }; then
6891 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
6892else
6893 echo "$as_me: failed program was:" >&5
6894cat conftest.$ac_ext >&5
6895ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
6896fi
6897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6898LIBS=$ac_check_lib_save_LIBS
6899fi
6900echo "$as_me:6900: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6901echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6902if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
5052 HAVE_XAW3D=yes 6903 HAVE_XAW3D=yes
5053else
5054 echo "$ac_t""no" 1>&6
5055fi 6904fi
5056 6905
5057else
5058 echo "$ac_t""no" 1>&6
5059fi 6906fi
5060 6907
5061 if test "${HAVE_XAW3D}" = "yes"; then 6908 if test "${HAVE_XAW3D}" = "yes"; then
5062 cat >> confdefs.h <<\EOF 6909 cat >>confdefs.h <<\EOF
5063#define HAVE_XAW3D 1 6910#define HAVE_XAW3D 1
5064EOF 6911EOF
5065 6912
5066 fi 6913 fi
5067 fi 6914 fi
5068fi 6915fi
5069
5070 6916
5071USE_TOOLKIT_SCROLL_BARS=no 6917USE_TOOLKIT_SCROLL_BARS=no
5072if test "${with_toolkit_scroll_bars}" != "no"; then 6918if test "${with_toolkit_scroll_bars}" != "no"; then
5073 if test "${USE_X_TOOLKIT}" != "none"; then 6919 if test "${USE_X_TOOLKIT}" != "none"; then
5074 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 6920 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
5075 cat >> confdefs.h <<\EOF 6921 cat >>confdefs.h <<\EOF
5076#define USE_TOOLKIT_SCROLL_BARS 1 6922#define USE_TOOLKIT_SCROLL_BARS 1
5077EOF 6923EOF
5078 6924
5079 HAVE_XAW3D=no 6925 HAVE_XAW3D=no
5080 USE_TOOLKIT_SCROLL_BARS=yes 6926 USE_TOOLKIT_SCROLL_BARS=yes
5081 elif test "${HAVE_XAW3D}" = "yes"; then 6927 elif test "${HAVE_XAW3D}" = "yes"; then
5082 cat >> confdefs.h <<\EOF 6928 cat >>confdefs.h <<\EOF
5083#define USE_TOOLKIT_SCROLL_BARS 1 6929#define USE_TOOLKIT_SCROLL_BARS 1
5084EOF 6930EOF
5085 6931
@@ -5088,9 +6934,8 @@ EOF
5088 fi 6934 fi
5089fi 6935fi
5090 6936
5091
5092if test "${with_xim}" != "no"; then 6937if test "${with_xim}" != "no"; then
5093 cat >> confdefs.h <<\EOF 6938 cat >>confdefs.h <<\EOF
5094#define USE_XIM 1 6939#define USE_XIM 1
5095EOF 6940EOF
5096 6941
@@ -5100,458 +6945,562 @@ fi
5100HAVE_XPM=no 6945HAVE_XPM=no
5101if test "${HAVE_X11}" = "yes"; then 6946if test "${HAVE_X11}" = "yes"; then
5102 if test "${with_xpm}" != "no"; then 6947 if test "${with_xpm}" != "no"; then
5103 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 6948 echo "$as_me:6948: checking for X11/xpm.h" >&5
5104echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 6949echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
5105echo "configure:5106: checking for X11/xpm.h" >&5 6950if test "${ac_cv_header_X11_xpm_h+set}" = set; then
5106if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6951 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 echo $ac_n "(cached) $ac_c" 1>&6
5108else 6952else
5109 cat > conftest.$ac_ext <<EOF 6953 cat >conftest.$ac_ext <<_ACEOF
5110#line 5111 "configure" 6954#line 6954 "configure"
5111#include "confdefs.h" 6955#include "confdefs.h"
5112#include <X11/xpm.h> 6956#include <X11/xpm.h>
5113EOF 6957_ACEOF
5114ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6958if { (eval echo "$as_me:6958: \"$ac_cpp conftest.$ac_ext\"") >&5
5115{ (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6960 ac_status=$?
5117if test -z "$ac_err"; then 6961 egrep -v '^ *\+' conftest.er1 >conftest.err
5118 rm -rf conftest* 6962 rm -f conftest.er1
5119 eval "ac_cv_header_$ac_safe=yes" 6963 cat conftest.err >&5
6964 echo "$as_me:6964: \$? = $ac_status" >&5
6965 (exit $ac_status); } >/dev/null; then
6966 if test -s conftest.err; then
6967 ac_cpp_err=$ac_c_preproc_warn_flag
6968 else
6969 ac_cpp_err=
6970 fi
6971else
6972 ac_cpp_err=yes
6973fi
6974if test -z "$ac_cpp_err"; then
6975 ac_cv_header_X11_xpm_h=yes
5120else 6976else
5121 echo "$ac_err" >&5 6977 echo "$as_me: failed program was:" >&5
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5 6978 cat conftest.$ac_ext >&5
5124 rm -rf conftest* 6979 ac_cv_header_X11_xpm_h=no
5125 eval "ac_cv_header_$ac_safe=no"
5126fi 6980fi
5127rm -f conftest* 6981rm -f conftest.err conftest.$ac_ext
5128fi 6982fi
5129if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6983echo "$as_me:6983: result: $ac_cv_header_X11_xpm_h" >&5
5130 echo "$ac_t""yes" 1>&6 6984echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
5131 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 6985if test $ac_cv_header_X11_xpm_h = yes; then
5132echo "configure:5133: checking for XpmReadFileToPixmap in -lXpm" >&5 6986 echo "$as_me:6986: checking for XpmReadFileToPixmap in -lXpm" >&5
5133ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 6987echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
5134if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6988if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
5135 echo $ac_n "(cached) $ac_c" 1>&6 6989 echo $ECHO_N "(cached) $ECHO_C" >&6
5136else 6990else
5137 ac_save_LIBS="$LIBS" 6991 ac_check_lib_save_LIBS=$LIBS
5138LIBS="-lXpm -lX11 $LIBS" 6992LIBS="-lXpm -lX11 $LIBS"
5139cat > conftest.$ac_ext <<EOF 6993cat >conftest.$ac_ext <<_ACEOF
5140#line 5141 "configure" 6994#line 6994 "configure"
5141#include "confdefs.h" 6995#include "confdefs.h"
6996
5142/* Override any gcc2 internal prototype to avoid an error. */ 6997/* Override any gcc2 internal prototype to avoid an error. */
6998#ifdef __cplusplus
6999extern "C"
7000#endif
5143/* We use char because int might match the return type of a gcc2 7001/* We use char because int might match the return type of a gcc2
5144 builtin and then its argument prototype would still apply. */ 7002 builtin and then its argument prototype would still apply. */
5145char XpmReadFileToPixmap(); 7003char XpmReadFileToPixmap ();
5146 7004int
5147int main() { 7005main ()
5148XpmReadFileToPixmap() 7006{
5149; return 0; } 7007XpmReadFileToPixmap ();
5150EOF 7008 ;
5151if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7009 return 0;
5152 rm -rf conftest* 7010}
5153 eval "ac_cv_lib_$ac_lib_var=yes" 7011_ACEOF
5154else 7012rm -f conftest.$ac_objext conftest$ac_exeext
5155 echo "configure: failed program was:" >&5 7013if { (eval echo "$as_me:7013: \"$ac_link\"") >&5
5156 cat conftest.$ac_ext >&5 7014 (eval $ac_link) 2>&5
5157 rm -rf conftest* 7015 ac_status=$?
5158 eval "ac_cv_lib_$ac_lib_var=no" 7016 echo "$as_me:7016: \$? = $ac_status" >&5
5159fi 7017 (exit $ac_status); } &&
5160rm -f conftest* 7018 { ac_try='test -s conftest$ac_exeext'
5161LIBS="$ac_save_LIBS" 7019 { (eval echo "$as_me:7019: \"$ac_try\"") >&5
5162 7020 (eval $ac_try) 2>&5
5163fi 7021 ac_status=$?
5164if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7022 echo "$as_me:7022: \$? = $ac_status" >&5
5165 echo "$ac_t""yes" 1>&6 7023 (exit $ac_status); }; }; then
7024 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
7025else
7026 echo "$as_me: failed program was:" >&5
7027cat conftest.$ac_ext >&5
7028ac_cv_lib_Xpm_XpmReadFileToPixmap=no
7029fi
7030rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7031LIBS=$ac_check_lib_save_LIBS
7032fi
7033echo "$as_me:7033: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7034echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7035if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
5166 HAVE_XPM=yes 7036 HAVE_XPM=yes
5167else
5168 echo "$ac_t""no" 1>&6
5169fi 7037fi
5170 7038
5171else
5172 echo "$ac_t""no" 1>&6
5173fi 7039fi
5174 7040
5175 if test "${HAVE_XPM}" = "yes"; then 7041 if test "${HAVE_XPM}" = "yes"; then
5176 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 7042 echo "$as_me:7042: checking for XpmReturnAllocPixels preprocessor define" >&5
5177echo "configure:5178: checking for XpmReturnAllocPixels preprocessor define" >&5 7043echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
5178 cat > conftest.$ac_ext <<EOF 7044 cat >conftest.$ac_ext <<_ACEOF
5179#line 5180 "configure" 7045#line 7045 "configure"
5180#include "confdefs.h" 7046#include "confdefs.h"
5181#include "X11/xpm.h" 7047#include "X11/xpm.h"
5182#ifndef XpmReturnAllocPixels 7048#ifndef XpmReturnAllocPixels
5183no_return_alloc_pixels 7049no_return_alloc_pixels
5184#endif 7050#endif
5185 7051
5186EOF 7052_ACEOF
5187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5188 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then 7054 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
5189 rm -rf conftest*
5190 HAVE_XPM=no 7055 HAVE_XPM=no
5191else 7056else
5192 rm -rf conftest*
5193 HAVE_XPM=yes 7057 HAVE_XPM=yes
5194fi 7058fi
5195rm -f conftest* 7059rm -f conftest*
5196 7060
5197
5198 if test "${HAVE_XPM}" = "yes"; then 7061 if test "${HAVE_XPM}" = "yes"; then
5199 echo "$ac_t""yes" 1>&6 7062 echo "$as_me:7062: result: yes" >&5
7063echo "${ECHO_T}yes" >&6
5200 else 7064 else
5201 echo "$ac_t""no" 1>&6 7065 echo "$as_me:7065: result: no" >&5
7066echo "${ECHO_T}no" >&6
5202 fi 7067 fi
5203 fi 7068 fi
5204 fi 7069 fi
5205 7070
5206 if test "${HAVE_XPM}" = "yes"; then 7071 if test "${HAVE_XPM}" = "yes"; then
5207 cat >> confdefs.h <<\EOF 7072 cat >>confdefs.h <<\EOF
5208#define HAVE_XPM 1 7073#define HAVE_XPM 1
5209EOF 7074EOF
5210 7075
5211 fi 7076 fi
5212fi 7077fi
5213 7078
5214### Use -ljpeg if available, unless `--with-jpeg=no'. 7079### Use -ljpeg if available, unless `--with-jpeg=no'.
5215HAVE_JPEG=no 7080HAVE_JPEG=no
5216if test "${HAVE_X11}" = "yes"; then 7081if test "${HAVE_X11}" = "yes"; then
5217 if test "${with_jpeg}" != "no"; then 7082 if test "${with_jpeg}" != "no"; then
5218 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` 7083 echo "$as_me:7083: checking for jerror.h" >&5
5219echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 7084echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
5220echo "configure:5221: checking for jerror.h" >&5 7085if test "${ac_cv_header_jerror_h+set}" = set; then
5221if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7086 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 echo $ac_n "(cached) $ac_c" 1>&6
5223else 7087else
5224 cat > conftest.$ac_ext <<EOF 7088 cat >conftest.$ac_ext <<_ACEOF
5225#line 5226 "configure" 7089#line 7089 "configure"
5226#include "confdefs.h" 7090#include "confdefs.h"
5227#include <jerror.h> 7091#include <jerror.h>
5228EOF 7092_ACEOF
5229ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7093if { (eval echo "$as_me:7093: \"$ac_cpp conftest.$ac_ext\"") >&5
5230{ (eval echo configure:5231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5231ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7095 ac_status=$?
5232if test -z "$ac_err"; then 7096 egrep -v '^ *\+' conftest.er1 >conftest.err
5233 rm -rf conftest* 7097 rm -f conftest.er1
5234 eval "ac_cv_header_$ac_safe=yes" 7098 cat conftest.err >&5
7099 echo "$as_me:7099: \$? = $ac_status" >&5
7100 (exit $ac_status); } >/dev/null; then
7101 if test -s conftest.err; then
7102 ac_cpp_err=$ac_c_preproc_warn_flag
7103 else
7104 ac_cpp_err=
7105 fi
7106else
7107 ac_cpp_err=yes
7108fi
7109if test -z "$ac_cpp_err"; then
7110 ac_cv_header_jerror_h=yes
5235else 7111else
5236 echo "$ac_err" >&5 7112 echo "$as_me: failed program was:" >&5
5237 echo "configure: failed program was:" >&5
5238 cat conftest.$ac_ext >&5 7113 cat conftest.$ac_ext >&5
5239 rm -rf conftest* 7114 ac_cv_header_jerror_h=no
5240 eval "ac_cv_header_$ac_safe=no"
5241fi 7115fi
5242rm -f conftest* 7116rm -f conftest.err conftest.$ac_ext
5243fi 7117fi
5244if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7118echo "$as_me:7118: result: $ac_cv_header_jerror_h" >&5
5245 echo "$ac_t""yes" 1>&6 7119echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
5246 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 7120if test $ac_cv_header_jerror_h = yes; then
5247echo "configure:5248: checking for jpeg_destroy_compress in -ljpeg" >&5 7121 echo "$as_me:7121: checking for jpeg_destroy_compress in -ljpeg" >&5
5248ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 7122echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
5249if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7123if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
5250 echo $ac_n "(cached) $ac_c" 1>&6 7124 echo $ECHO_N "(cached) $ECHO_C" >&6
5251else 7125else
5252 ac_save_LIBS="$LIBS" 7126 ac_check_lib_save_LIBS=$LIBS
5253LIBS="-ljpeg $LIBS" 7127LIBS="-ljpeg $LIBS"
5254cat > conftest.$ac_ext <<EOF 7128cat >conftest.$ac_ext <<_ACEOF
5255#line 5256 "configure" 7129#line 7129 "configure"
5256#include "confdefs.h" 7130#include "confdefs.h"
7131
5257/* Override any gcc2 internal prototype to avoid an error. */ 7132/* Override any gcc2 internal prototype to avoid an error. */
7133#ifdef __cplusplus
7134extern "C"
7135#endif
5258/* We use char because int might match the return type of a gcc2 7136/* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */ 7137 builtin and then its argument prototype would still apply. */
5260char jpeg_destroy_compress(); 7138char jpeg_destroy_compress ();
5261 7139int
5262int main() { 7140main ()
5263jpeg_destroy_compress() 7141{
5264; return 0; } 7142jpeg_destroy_compress ();
5265EOF 7143 ;
5266if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7144 return 0;
5267 rm -rf conftest* 7145}
5268 eval "ac_cv_lib_$ac_lib_var=yes" 7146_ACEOF
5269else 7147rm -f conftest.$ac_objext conftest$ac_exeext
5270 echo "configure: failed program was:" >&5 7148if { (eval echo "$as_me:7148: \"$ac_link\"") >&5
5271 cat conftest.$ac_ext >&5 7149 (eval $ac_link) 2>&5
5272 rm -rf conftest* 7150 ac_status=$?
5273 eval "ac_cv_lib_$ac_lib_var=no" 7151 echo "$as_me:7151: \$? = $ac_status" >&5
5274fi 7152 (exit $ac_status); } &&
5275rm -f conftest* 7153 { ac_try='test -s conftest$ac_exeext'
5276LIBS="$ac_save_LIBS" 7154 { (eval echo "$as_me:7154: \"$ac_try\"") >&5
5277 7155 (eval $ac_try) 2>&5
5278fi 7156 ac_status=$?
5279if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7157 echo "$as_me:7157: \$? = $ac_status" >&5
5280 echo "$ac_t""yes" 1>&6 7158 (exit $ac_status); }; }; then
7159 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
7160else
7161 echo "$as_me: failed program was:" >&5
7162cat conftest.$ac_ext >&5
7163ac_cv_lib_jpeg_jpeg_destroy_compress=no
7164fi
7165rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7166LIBS=$ac_check_lib_save_LIBS
7167fi
7168echo "$as_me:7168: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7169echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7170if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
5281 HAVE_JPEG=yes 7171 HAVE_JPEG=yes
5282else
5283 echo "$ac_t""no" 1>&6
5284fi 7172fi
5285 7173
5286else
5287 echo "$ac_t""no" 1>&6
5288fi 7174fi
5289 7175
5290 fi 7176 fi
5291 7177
5292 if test "${HAVE_JPEG}" = "yes"; then 7178 if test "${HAVE_JPEG}" = "yes"; then
5293 cat >> confdefs.h <<\EOF 7179 cat >>confdefs.h <<\EOF
5294#define HAVE_JPEG 1 7180#define HAVE_JPEG 1
5295EOF 7181EOF
5296 7182
5297 fi 7183 fi
5298fi 7184fi
5299 7185
5300### Use -lpng if available, unless `--with-png=no'. 7186### Use -lpng if available, unless `--with-png=no'.
5301HAVE_PNG=no 7187HAVE_PNG=no
5302if test "${HAVE_X11}" = "yes"; then 7188if test "${HAVE_X11}" = "yes"; then
5303 if test "${with_png}" != "no"; then 7189 if test "${with_png}" != "no"; then
5304 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7190 echo "$as_me:7190: checking for png.h" >&5
5305echo $ac_n "checking for png.h""... $ac_c" 1>&6 7191echo $ECHO_N "checking for png.h... $ECHO_C" >&6
5306echo "configure:5307: checking for png.h" >&5 7192if test "${ac_cv_header_png_h+set}" = set; then
5307if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7193 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 echo $ac_n "(cached) $ac_c" 1>&6
5309else 7194else
5310 cat > conftest.$ac_ext <<EOF 7195 cat >conftest.$ac_ext <<_ACEOF
5311#line 5312 "configure" 7196#line 7196 "configure"
5312#include "confdefs.h" 7197#include "confdefs.h"
5313#include <png.h> 7198#include <png.h>
5314EOF 7199_ACEOF
5315ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7200if { (eval echo "$as_me:7200: \"$ac_cpp conftest.$ac_ext\"") >&5
5316{ (eval echo configure:5317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5317ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7202 ac_status=$?
5318if test -z "$ac_err"; then 7203 egrep -v '^ *\+' conftest.er1 >conftest.err
5319 rm -rf conftest* 7204 rm -f conftest.er1
5320 eval "ac_cv_header_$ac_safe=yes" 7205 cat conftest.err >&5
7206 echo "$as_me:7206: \$? = $ac_status" >&5
7207 (exit $ac_status); } >/dev/null; then
7208 if test -s conftest.err; then
7209 ac_cpp_err=$ac_c_preproc_warn_flag
7210 else
7211 ac_cpp_err=
7212 fi
5321else 7213else
5322 echo "$ac_err" >&5 7214 ac_cpp_err=yes
5323 echo "configure: failed program was:" >&5 7215fi
7216if test -z "$ac_cpp_err"; then
7217 ac_cv_header_png_h=yes
7218else
7219 echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5 7220 cat conftest.$ac_ext >&5
5325 rm -rf conftest* 7221 ac_cv_header_png_h=no
5326 eval "ac_cv_header_$ac_safe=no"
5327fi 7222fi
5328rm -f conftest* 7223rm -f conftest.err conftest.$ac_ext
5329fi 7224fi
5330if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7225echo "$as_me:7225: result: $ac_cv_header_png_h" >&5
5331 echo "$ac_t""yes" 1>&6 7226echo "${ECHO_T}$ac_cv_header_png_h" >&6
5332 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 7227if test $ac_cv_header_png_h = yes; then
5333echo "configure:5334: checking for png_get_channels in -lpng" >&5 7228 echo "$as_me:7228: checking for png_get_channels in -lpng" >&5
5334ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` 7229echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
5335if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7230if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
5336 echo $ac_n "(cached) $ac_c" 1>&6 7231 echo $ECHO_N "(cached) $ECHO_C" >&6
5337else 7232else
5338 ac_save_LIBS="$LIBS" 7233 ac_check_lib_save_LIBS=$LIBS
5339LIBS="-lpng -lz -lm $LIBS" 7234LIBS="-lpng -lz -lm $LIBS"
5340cat > conftest.$ac_ext <<EOF 7235cat >conftest.$ac_ext <<_ACEOF
5341#line 5342 "configure" 7236#line 7236 "configure"
5342#include "confdefs.h" 7237#include "confdefs.h"
7238
5343/* Override any gcc2 internal prototype to avoid an error. */ 7239/* Override any gcc2 internal prototype to avoid an error. */
7240#ifdef __cplusplus
7241extern "C"
7242#endif
5344/* We use char because int might match the return type of a gcc2 7243/* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */ 7244 builtin and then its argument prototype would still apply. */
5346char png_get_channels(); 7245char png_get_channels ();
5347 7246int
5348int main() { 7247main ()
5349png_get_channels() 7248{
5350; return 0; } 7249png_get_channels ();
5351EOF 7250 ;
5352if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7251 return 0;
5353 rm -rf conftest* 7252}
5354 eval "ac_cv_lib_$ac_lib_var=yes" 7253_ACEOF
5355else 7254rm -f conftest.$ac_objext conftest$ac_exeext
5356 echo "configure: failed program was:" >&5 7255if { (eval echo "$as_me:7255: \"$ac_link\"") >&5
5357 cat conftest.$ac_ext >&5 7256 (eval $ac_link) 2>&5
5358 rm -rf conftest* 7257 ac_status=$?
5359 eval "ac_cv_lib_$ac_lib_var=no" 7258 echo "$as_me:7258: \$? = $ac_status" >&5
5360fi 7259 (exit $ac_status); } &&
5361rm -f conftest* 7260 { ac_try='test -s conftest$ac_exeext'
5362LIBS="$ac_save_LIBS" 7261 { (eval echo "$as_me:7261: \"$ac_try\"") >&5
5363 7262 (eval $ac_try) 2>&5
5364fi 7263 ac_status=$?
5365if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7264 echo "$as_me:7264: \$? = $ac_status" >&5
5366 echo "$ac_t""yes" 1>&6 7265 (exit $ac_status); }; }; then
7266 ac_cv_lib_png_png_get_channels=yes
7267else
7268 echo "$as_me: failed program was:" >&5
7269cat conftest.$ac_ext >&5
7270ac_cv_lib_png_png_get_channels=no
7271fi
7272rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273LIBS=$ac_check_lib_save_LIBS
7274fi
7275echo "$as_me:7275: result: $ac_cv_lib_png_png_get_channels" >&5
7276echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7277if test $ac_cv_lib_png_png_get_channels = yes; then
5367 HAVE_PNG=yes 7278 HAVE_PNG=yes
5368else
5369 echo "$ac_t""no" 1>&6
5370fi 7279fi
5371 7280
5372else
5373 echo "$ac_t""no" 1>&6
5374fi 7281fi
5375 7282
5376 fi 7283 fi
5377 7284
5378 if test "${HAVE_PNG}" = "yes"; then 7285 if test "${HAVE_PNG}" = "yes"; then
5379 cat >> confdefs.h <<\EOF 7286 cat >>confdefs.h <<\EOF
5380#define HAVE_PNG 1 7287#define HAVE_PNG 1
5381EOF 7288EOF
5382 7289
5383 fi 7290 fi
5384fi 7291fi
5385 7292
5386### Use -ltiff if available, unless `--with-tiff=no'. 7293### Use -ltiff if available, unless `--with-tiff=no'.
5387HAVE_TIFF=no 7294HAVE_TIFF=no
5388if test "${HAVE_X11}" = "yes"; then 7295if test "${HAVE_X11}" = "yes"; then
5389 if test "${with_tiff}" != "no"; then 7296 if test "${with_tiff}" != "no"; then
5390 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7297 echo "$as_me:7297: checking for tiffio.h" >&5
5391echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7298echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
5392echo "configure:5393: checking for tiffio.h" >&5 7299if test "${ac_cv_header_tiffio_h+set}" = set; then
5393if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7300 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 echo $ac_n "(cached) $ac_c" 1>&6
5395else 7301else
5396 cat > conftest.$ac_ext <<EOF 7302 cat >conftest.$ac_ext <<_ACEOF
5397#line 5398 "configure" 7303#line 7303 "configure"
5398#include "confdefs.h" 7304#include "confdefs.h"
5399#include <tiffio.h> 7305#include <tiffio.h>
5400EOF 7306_ACEOF
5401ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7307if { (eval echo "$as_me:7307: \"$ac_cpp conftest.$ac_ext\"") >&5
5402{ (eval echo configure:5403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5403ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7309 ac_status=$?
5404if test -z "$ac_err"; then 7310 egrep -v '^ *\+' conftest.er1 >conftest.err
5405 rm -rf conftest* 7311 rm -f conftest.er1
5406 eval "ac_cv_header_$ac_safe=yes" 7312 cat conftest.err >&5
7313 echo "$as_me:7313: \$? = $ac_status" >&5
7314 (exit $ac_status); } >/dev/null; then
7315 if test -s conftest.err; then
7316 ac_cpp_err=$ac_c_preproc_warn_flag
7317 else
7318 ac_cpp_err=
7319 fi
5407else 7320else
5408 echo "$ac_err" >&5 7321 ac_cpp_err=yes
5409 echo "configure: failed program was:" >&5 7322fi
7323if test -z "$ac_cpp_err"; then
7324 ac_cv_header_tiffio_h=yes
7325else
7326 echo "$as_me: failed program was:" >&5
5410 cat conftest.$ac_ext >&5 7327 cat conftest.$ac_ext >&5
5411 rm -rf conftest* 7328 ac_cv_header_tiffio_h=no
5412 eval "ac_cv_header_$ac_safe=no"
5413fi 7329fi
5414rm -f conftest* 7330rm -f conftest.err conftest.$ac_ext
5415fi 7331fi
5416if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7332echo "$as_me:7332: result: $ac_cv_header_tiffio_h" >&5
5417 echo "$ac_t""yes" 1>&6 7333echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7334if test $ac_cv_header_tiffio_h = yes; then
5418 tifflibs="-lz -lm" 7335 tifflibs="-lz -lm"
5419 # At least one tiff package requires the jpeg library. 7336 # At least one tiff package requires the jpeg library.
5420 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 7337 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
5421 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 7338 echo "$as_me:7338: checking for TIFFGetVersion in -ltiff" >&5
5422echo "configure:5423: checking for TIFFGetVersion in -ltiff" >&5 7339echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
5423ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 7340if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
5424if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7341 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 echo $ac_n "(cached) $ac_c" 1>&6
5426else 7342else
5427 ac_save_LIBS="$LIBS" 7343 ac_check_lib_save_LIBS=$LIBS
5428LIBS="-ltiff $tifflibs $LIBS" 7344LIBS="-ltiff $tifflibs $LIBS"
5429cat > conftest.$ac_ext <<EOF 7345cat >conftest.$ac_ext <<_ACEOF
5430#line 5431 "configure" 7346#line 7346 "configure"
5431#include "confdefs.h" 7347#include "confdefs.h"
7348
5432/* Override any gcc2 internal prototype to avoid an error. */ 7349/* Override any gcc2 internal prototype to avoid an error. */
7350#ifdef __cplusplus
7351extern "C"
7352#endif
5433/* We use char because int might match the return type of a gcc2 7353/* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */ 7354 builtin and then its argument prototype would still apply. */
5435char TIFFGetVersion(); 7355char TIFFGetVersion ();
5436 7356int
5437int main() { 7357main ()
5438TIFFGetVersion() 7358{
5439; return 0; } 7359TIFFGetVersion ();
5440EOF 7360 ;
5441if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7361 return 0;
5442 rm -rf conftest* 7362}
5443 eval "ac_cv_lib_$ac_lib_var=yes" 7363_ACEOF
5444else 7364rm -f conftest.$ac_objext conftest$ac_exeext
5445 echo "configure: failed program was:" >&5 7365if { (eval echo "$as_me:7365: \"$ac_link\"") >&5
5446 cat conftest.$ac_ext >&5 7366 (eval $ac_link) 2>&5
5447 rm -rf conftest* 7367 ac_status=$?
5448 eval "ac_cv_lib_$ac_lib_var=no" 7368 echo "$as_me:7368: \$? = $ac_status" >&5
5449fi 7369 (exit $ac_status); } &&
5450rm -f conftest* 7370 { ac_try='test -s conftest$ac_exeext'
5451LIBS="$ac_save_LIBS" 7371 { (eval echo "$as_me:7371: \"$ac_try\"") >&5
5452 7372 (eval $ac_try) 2>&5
5453fi 7373 ac_status=$?
5454if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7374 echo "$as_me:7374: \$? = $ac_status" >&5
5455 echo "$ac_t""yes" 1>&6 7375 (exit $ac_status); }; }; then
7376 ac_cv_lib_tiff_TIFFGetVersion=yes
7377else
7378 echo "$as_me: failed program was:" >&5
7379cat conftest.$ac_ext >&5
7380ac_cv_lib_tiff_TIFFGetVersion=no
7381fi
7382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7383LIBS=$ac_check_lib_save_LIBS
7384fi
7385echo "$as_me:7385: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7386echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7387if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
5456 HAVE_TIFF=yes 7388 HAVE_TIFF=yes
5457else
5458 echo "$ac_t""no" 1>&6
5459fi 7389fi
5460 7390
5461else
5462 echo "$ac_t""no" 1>&6
5463fi 7391fi
5464 7392
5465 fi 7393 fi
5466 7394
5467 if test "${HAVE_TIFF}" = "yes"; then 7395 if test "${HAVE_TIFF}" = "yes"; then
5468 cat >> confdefs.h <<\EOF 7396 cat >>confdefs.h <<\EOF
5469#define HAVE_TIFF 1 7397#define HAVE_TIFF 1
5470EOF 7398EOF
5471 7399
5472 fi 7400 fi
5473fi 7401fi
5474 7402
5475### Use -lgif if available, unless `--with-gif=no'. 7403### Use -lgif if available, unless `--with-gif=no'.
5476HAVE_GIF=no 7404HAVE_GIF=no
5477if test "${HAVE_X11}" = "yes"; then 7405if test "${HAVE_X11}" = "yes"; then
5478 if test "${with_gif}" != "no"; then 7406 if test "${with_gif}" != "no"; then
5479 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 7407 echo "$as_me:7407: checking for gif_lib.h" >&5
5480echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 7408echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
5481echo "configure:5482: checking for gif_lib.h" >&5 7409if test "${ac_cv_header_gif_lib_h+set}" = set; then
5482if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7410 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 echo $ac_n "(cached) $ac_c" 1>&6
5484else 7411else
5485 cat > conftest.$ac_ext <<EOF 7412 cat >conftest.$ac_ext <<_ACEOF
5486#line 5487 "configure" 7413#line 7413 "configure"
5487#include "confdefs.h" 7414#include "confdefs.h"
5488#include <gif_lib.h> 7415#include <gif_lib.h>
5489EOF 7416_ACEOF
5490ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7417if { (eval echo "$as_me:7417: \"$ac_cpp conftest.$ac_ext\"") >&5
5491{ (eval echo configure:5492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5492ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7419 ac_status=$?
5493if test -z "$ac_err"; then 7420 egrep -v '^ *\+' conftest.er1 >conftest.err
5494 rm -rf conftest* 7421 rm -f conftest.er1
5495 eval "ac_cv_header_$ac_safe=yes" 7422 cat conftest.err >&5
7423 echo "$as_me:7423: \$? = $ac_status" >&5
7424 (exit $ac_status); } >/dev/null; then
7425 if test -s conftest.err; then
7426 ac_cpp_err=$ac_c_preproc_warn_flag
7427 else
7428 ac_cpp_err=
7429 fi
7430else
7431 ac_cpp_err=yes
7432fi
7433if test -z "$ac_cpp_err"; then
7434 ac_cv_header_gif_lib_h=yes
5496else 7435else
5497 echo "$ac_err" >&5 7436 echo "$as_me: failed program was:" >&5
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5 7437 cat conftest.$ac_ext >&5
5500 rm -rf conftest* 7438 ac_cv_header_gif_lib_h=no
5501 eval "ac_cv_header_$ac_safe=no"
5502fi 7439fi
5503rm -f conftest* 7440rm -f conftest.err conftest.$ac_ext
5504fi 7441fi
5505if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7442echo "$as_me:7442: result: $ac_cv_header_gif_lib_h" >&5
5506 echo "$ac_t""yes" 1>&6 7443echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
5507 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 7444if test $ac_cv_header_gif_lib_h = yes; then
5508echo "configure:5509: checking for DGifOpen in -lungif" >&5 7445 echo "$as_me:7445: checking for DGifOpen in -lungif" >&5
5509ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` 7446echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
5510if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7447if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
5511 echo $ac_n "(cached) $ac_c" 1>&6 7448 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else 7449else
5513 ac_save_LIBS="$LIBS" 7450 ac_check_lib_save_LIBS=$LIBS
5514LIBS="-lungif $LIBS" 7451LIBS="-lungif $LIBS"
5515cat > conftest.$ac_ext <<EOF 7452cat >conftest.$ac_ext <<_ACEOF
5516#line 5517 "configure" 7453#line 7453 "configure"
5517#include "confdefs.h" 7454#include "confdefs.h"
7455
5518/* Override any gcc2 internal prototype to avoid an error. */ 7456/* Override any gcc2 internal prototype to avoid an error. */
7457#ifdef __cplusplus
7458extern "C"
7459#endif
5519/* We use char because int might match the return type of a gcc2 7460/* We use char because int might match the return type of a gcc2
5520 builtin and then its argument prototype would still apply. */ 7461 builtin and then its argument prototype would still apply. */
5521char DGifOpen(); 7462char DGifOpen ();
5522 7463int
5523int main() { 7464main ()
5524DGifOpen() 7465{
5525; return 0; } 7466DGifOpen ();
5526EOF 7467 ;
5527if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7468 return 0;
5528 rm -rf conftest* 7469}
5529 eval "ac_cv_lib_$ac_lib_var=yes" 7470_ACEOF
5530else 7471rm -f conftest.$ac_objext conftest$ac_exeext
5531 echo "configure: failed program was:" >&5 7472if { (eval echo "$as_me:7472: \"$ac_link\"") >&5
5532 cat conftest.$ac_ext >&5 7473 (eval $ac_link) 2>&5
5533 rm -rf conftest* 7474 ac_status=$?
5534 eval "ac_cv_lib_$ac_lib_var=no" 7475 echo "$as_me:7475: \$? = $ac_status" >&5
5535fi 7476 (exit $ac_status); } &&
5536rm -f conftest* 7477 { ac_try='test -s conftest$ac_exeext'
5537LIBS="$ac_save_LIBS" 7478 { (eval echo "$as_me:7478: \"$ac_try\"") >&5
5538 7479 (eval $ac_try) 2>&5
5539fi 7480 ac_status=$?
5540if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7481 echo "$as_me:7481: \$? = $ac_status" >&5
5541 echo "$ac_t""yes" 1>&6 7482 (exit $ac_status); }; }; then
7483 ac_cv_lib_ungif_DGifOpen=yes
7484else
7485 echo "$as_me: failed program was:" >&5
7486cat conftest.$ac_ext >&5
7487ac_cv_lib_ungif_DGifOpen=no
7488fi
7489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7490LIBS=$ac_check_lib_save_LIBS
7491fi
7492echo "$as_me:7492: result: $ac_cv_lib_ungif_DGifOpen" >&5
7493echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7494if test $ac_cv_lib_ungif_DGifOpen = yes; then
5542 HAVE_GIF=yes 7495 HAVE_GIF=yes
5543else
5544 echo "$ac_t""no" 1>&6
5545fi 7496fi
5546 7497
5547else
5548 echo "$ac_t""no" 1>&6
5549fi 7498fi
5550 7499
5551 fi 7500 fi
5552 7501
5553 if test "${HAVE_GIF}" = "yes"; then 7502 if test "${HAVE_GIF}" = "yes"; then
5554 cat >> confdefs.h <<\EOF 7503 cat >>confdefs.h <<\EOF
5555#define HAVE_GIF 1 7504#define HAVE_GIF 1
5556EOF 7505EOF
5557 7506
@@ -5559,34 +7508,47 @@ EOF
5559fi 7508fi
5560 7509
5561# If netdb.h doesn't declare h_errno, we must declare it by hand. 7510# If netdb.h doesn't declare h_errno, we must declare it by hand.
5562echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7511echo "$as_me:7511: checking whether netdb declares h_errno" >&5
5563echo "configure:5564: checking whether netdb declares h_errno" >&5 7512echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
5564if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 7513if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
5565 echo $ac_n "(cached) $ac_c" 1>&6 7514 echo $ECHO_N "(cached) $ECHO_C" >&6
5566else 7515else
5567 cat > conftest.$ac_ext <<EOF 7516 cat >conftest.$ac_ext <<_ACEOF
5568#line 5569 "configure" 7517#line 7517 "configure"
5569#include "confdefs.h" 7518#include "confdefs.h"
5570#include <netdb.h> 7519#include <netdb.h>
5571int main() { 7520int
7521main ()
7522{
5572return h_errno; 7523return h_errno;
5573; return 0; } 7524 ;
5574EOF 7525 return 0;
5575if { (eval echo configure:5576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7526}
5576 rm -rf conftest* 7527_ACEOF
7528rm -f conftest.$ac_objext conftest$ac_exeext
7529if { (eval echo "$as_me:7529: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>&5
7531 ac_status=$?
7532 echo "$as_me:7532: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -s conftest$ac_exeext'
7535 { (eval echo "$as_me:7535: \"$ac_try\"") >&5
7536 (eval $ac_try) 2>&5
7537 ac_status=$?
7538 echo "$as_me:7538: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
5577 emacs_cv_netdb_declares_h_errno=yes 7540 emacs_cv_netdb_declares_h_errno=yes
5578else 7541else
5579 echo "configure: failed program was:" >&5 7542 echo "$as_me: failed program was:" >&5
5580 cat conftest.$ac_ext >&5 7543cat conftest.$ac_ext >&5
5581 rm -rf conftest* 7544emacs_cv_netdb_declares_h_errno=no
5582 emacs_cv_netdb_declares_h_errno=no
5583fi 7545fi
5584rm -f conftest* 7546rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5585fi 7547fi
5586 7548echo "$as_me:7548: result: $emacs_cv_netdb_declares_h_errno" >&5
5587echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6 7549echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
5588if test $emacs_cv_netdb_declares_h_errno = yes; then 7550if test $emacs_cv_netdb_declares_h_errno = yes; then
5589 cat >> confdefs.h <<\EOF 7551 cat >>confdefs.h <<\EOF
5590#define HAVE_H_ERRNO 1 7552#define HAVE_H_ERRNO 1
5591EOF 7553EOF
5592 7554
@@ -5594,48 +7556,61 @@ fi
5594 7556
5595# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7557# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5596# for constant arguments. Useless! 7558# for constant arguments. Useless!
5597echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7559echo "$as_me:7559: checking for working alloca.h" >&5
5598echo "configure:5599: checking for working alloca.h" >&5 7560echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5599if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 7561if test "${ac_cv_working_alloca_h+set}" = set; then
5600 echo $ac_n "(cached) $ac_c" 1>&6 7562 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else 7563else
5602 cat > conftest.$ac_ext <<EOF 7564 cat >conftest.$ac_ext <<_ACEOF
5603#line 5604 "configure" 7565#line 7565 "configure"
5604#include "confdefs.h" 7566#include "confdefs.h"
5605#include <alloca.h> 7567#include <alloca.h>
5606int main() { 7568int
5607char *p = alloca(2 * sizeof(int)); 7569main ()
5608; return 0; } 7570{
5609EOF 7571char *p = (char *) alloca (2 * sizeof (int));
5610if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7572 ;
5611 rm -rf conftest* 7573 return 0;
5612 ac_cv_header_alloca_h=yes 7574}
5613else 7575_ACEOF
5614 echo "configure: failed program was:" >&5 7576rm -f conftest.$ac_objext conftest$ac_exeext
5615 cat conftest.$ac_ext >&5 7577if { (eval echo "$as_me:7577: \"$ac_link\"") >&5
5616 rm -rf conftest* 7578 (eval $ac_link) 2>&5
5617 ac_cv_header_alloca_h=no 7579 ac_status=$?
5618fi 7580 echo "$as_me:7580: \$? = $ac_status" >&5
5619rm -f conftest* 7581 (exit $ac_status); } &&
5620fi 7582 { ac_try='test -s conftest$ac_exeext'
5621 7583 { (eval echo "$as_me:7583: \"$ac_try\"") >&5
5622echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 7584 (eval $ac_try) 2>&5
5623if test $ac_cv_header_alloca_h = yes; then 7585 ac_status=$?
5624 cat >> confdefs.h <<\EOF 7586 echo "$as_me:7586: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_cv_working_alloca_h=yes
7589else
7590 echo "$as_me: failed program was:" >&5
7591cat conftest.$ac_ext >&5
7592ac_cv_working_alloca_h=no
7593fi
7594rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7595fi
7596echo "$as_me:7596: result: $ac_cv_working_alloca_h" >&5
7597echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7598if test $ac_cv_working_alloca_h = yes; then
7599
7600cat >>confdefs.h <<\EOF
5625#define HAVE_ALLOCA_H 1 7601#define HAVE_ALLOCA_H 1
5626EOF 7602EOF
5627 7603
5628fi 7604fi
5629 7605
5630echo $ac_n "checking for alloca""... $ac_c" 1>&6 7606echo "$as_me:7606: checking for alloca" >&5
5631echo "configure:5632: checking for alloca" >&5 7607echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5632if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 7608if test "${ac_cv_func_alloca_works+set}" = set; then
5633 echo $ac_n "(cached) $ac_c" 1>&6 7609 echo $ECHO_N "(cached) $ECHO_C" >&6
5634else 7610else
5635 cat > conftest.$ac_ext <<EOF 7611 cat >conftest.$ac_ext <<_ACEOF
5636#line 5637 "configure" 7612#line 7612 "configure"
5637#include "confdefs.h" 7613#include "confdefs.h"
5638
5639#ifdef __GNUC__ 7614#ifdef __GNUC__
5640# define alloca __builtin_alloca 7615# define alloca __builtin_alloca
5641#else 7616#else
@@ -5657,48 +7632,62 @@ char *alloca ();
5657# endif 7632# endif
5658#endif 7633#endif
5659 7634
5660int main() { 7635int
5661char *p = (char *) alloca(1); 7636main ()
5662; return 0; } 7637{
5663EOF 7638char *p = (char *) alloca (1);
5664if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7639 ;
5665 rm -rf conftest* 7640 return 0;
7641}
7642_ACEOF
7643rm -f conftest.$ac_objext conftest$ac_exeext
7644if { (eval echo "$as_me:7644: \"$ac_link\"") >&5
7645 (eval $ac_link) 2>&5
7646 ac_status=$?
7647 echo "$as_me:7647: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -s conftest$ac_exeext'
7650 { (eval echo "$as_me:7650: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:7653: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
5666 ac_cv_func_alloca_works=yes 7655 ac_cv_func_alloca_works=yes
5667else 7656else
5668 echo "configure: failed program was:" >&5 7657 echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5 7658cat conftest.$ac_ext >&5
5670 rm -rf conftest* 7659ac_cv_func_alloca_works=no
5671 ac_cv_func_alloca_works=no
5672fi 7660fi
5673rm -f conftest* 7661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5674fi 7662fi
7663echo "$as_me:7663: result: $ac_cv_func_alloca_works" >&5
7664echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5675 7665
5676echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5677if test $ac_cv_func_alloca_works = yes; then 7666if test $ac_cv_func_alloca_works = yes; then
5678 cat >> confdefs.h <<\EOF 7667
7668cat >>confdefs.h <<\EOF
5679#define HAVE_ALLOCA 1 7669#define HAVE_ALLOCA 1
5680EOF 7670EOF
5681 7671
5682fi 7672else
5683
5684if test $ac_cv_func_alloca_works = no; then
5685 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7673 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5686 # that cause trouble. Some versions do not even contain alloca or 7674# that cause trouble. Some versions do not even contain alloca or
5687 # contain a buggy version. If you still want to use their alloca, 7675# contain a buggy version. If you still want to use their alloca,
5688 # use ar to extract alloca.o from them instead of compiling alloca.c. 7676# use ar to extract alloca.o from them instead of compiling alloca.c.
5689 ALLOCA=alloca.${ac_objext} 7677
5690 cat >> confdefs.h <<\EOF 7678ALLOCA=alloca.$ac_objext
7679
7680cat >>confdefs.h <<\EOF
5691#define C_ALLOCA 1 7681#define C_ALLOCA 1
5692EOF 7682EOF
5693 7683
5694 7684echo "$as_me:7684: checking whether \`alloca.c' needs Cray hooks" >&5
5695echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7685echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5696echo "configure:5697: checking whether alloca needs Cray hooks" >&5 7686if test "${ac_cv_os_cray+set}" = set; then
5697if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 7687 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 echo $ac_n "(cached) $ac_c" 1>&6
5699else 7688else
5700 cat > conftest.$ac_ext <<EOF 7689 cat >conftest.$ac_ext <<_ACEOF
5701#line 5702 "configure" 7690#line 7690 "configure"
5702#include "confdefs.h" 7691#include "confdefs.h"
5703#if defined(CRAY) && ! defined(CRAY2) 7692#if defined(CRAY) && ! defined(CRAY2)
5704webecray 7693webecray
@@ -5706,88 +7695,103 @@ webecray
5706wenotbecray 7695wenotbecray
5707#endif 7696#endif
5708 7697
5709EOF 7698_ACEOF
5710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5711 egrep "webecray" >/dev/null 2>&1; then 7700 egrep "webecray" >/dev/null 2>&1; then
5712 rm -rf conftest*
5713 ac_cv_os_cray=yes 7701 ac_cv_os_cray=yes
5714else 7702else
5715 rm -rf conftest*
5716 ac_cv_os_cray=no 7703 ac_cv_os_cray=no
5717fi 7704fi
5718rm -f conftest* 7705rm -f conftest*
5719 7706
5720fi 7707fi
5721 7708echo "$as_me:7708: result: $ac_cv_os_cray" >&5
5722echo "$ac_t""$ac_cv_os_cray" 1>&6 7709echo "${ECHO_T}$ac_cv_os_cray" >&6
5723if test $ac_cv_os_cray = yes; then 7710if test $ac_cv_os_cray = yes; then
5724for ac_func in _getb67 GETB67 getb67; do 7711 for ac_func in _getb67 GETB67 getb67; do
5725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5726echo "configure:5727: checking for $ac_func" >&5 7713echo "$as_me:7713: checking for $ac_func" >&5
5727if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7714echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5728 echo $ac_n "(cached) $ac_c" 1>&6 7715if eval "test \"\${$as_ac_var+set}\" = set"; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else 7717else
5730 cat > conftest.$ac_ext <<EOF 7718 cat >conftest.$ac_ext <<_ACEOF
5731#line 5732 "configure" 7719#line 7719 "configure"
5732#include "confdefs.h" 7720#include "confdefs.h"
5733/* System header to define __stub macros and hopefully few prototypes, 7721/* System header to define __stub macros and hopefully few prototypes,
5734 which can conflict with char $ac_func(); below. */ 7722 which can conflict with char $ac_func (); below. */
5735#include <assert.h> 7723#include <assert.h>
5736/* Override any gcc2 internal prototype to avoid an error. */ 7724/* Override any gcc2 internal prototype to avoid an error. */
7725#ifdef __cplusplus
7726extern "C"
7727#endif
5737/* We use char because int might match the return type of a gcc2 7728/* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */ 7729 builtin and then its argument prototype would still apply. */
5739char $ac_func(); 7730char $ac_func ();
5740 7731char (*f) ();
5741int main() {
5742 7732
7733int
7734main ()
7735{
5743/* The GNU C library defines this for functions which it implements 7736/* The GNU C library defines this for functions which it implements
5744 to always fail with ENOSYS. Some functions are actually named 7737 to always fail with ENOSYS. Some functions are actually named
5745 something starting with __ and the normal name is an alias. */ 7738 something starting with __ and the normal name is an alias. */
5746#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5747choke me 7740choke me
5748#else 7741#else
5749$ac_func(); 7742f = $ac_func;
5750#endif 7743#endif
5751 7744
5752; return 0; } 7745 ;
5753EOF 7746 return 0;
5754if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7747}
5755 rm -rf conftest* 7748_ACEOF
5756 eval "ac_cv_func_$ac_func=yes" 7749rm -f conftest.$ac_objext conftest$ac_exeext
5757else 7750if { (eval echo "$as_me:7750: \"$ac_link\"") >&5
5758 echo "configure: failed program was:" >&5 7751 (eval $ac_link) 2>&5
5759 cat conftest.$ac_ext >&5 7752 ac_status=$?
5760 rm -rf conftest* 7753 echo "$as_me:7753: \$? = $ac_status" >&5
5761 eval "ac_cv_func_$ac_func=no" 7754 (exit $ac_status); } &&
5762fi 7755 { ac_try='test -s conftest$ac_exeext'
5763rm -f conftest* 7756 { (eval echo "$as_me:7756: \"$ac_try\"") >&5
5764fi 7757 (eval $ac_try) 2>&5
5765 7758 ac_status=$?
5766if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7759 echo "$as_me:7759: \$? = $ac_status" >&5
5767 echo "$ac_t""yes" 1>&6 7760 (exit $ac_status); }; }; then
5768 cat >> confdefs.h <<EOF 7761 eval "$as_ac_var=yes"
7762else
7763 echo "$as_me: failed program was:" >&5
7764cat conftest.$ac_ext >&5
7765eval "$as_ac_var=no"
7766fi
7767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7768fi
7769echo "$as_me:7769: result: `eval echo '${'$as_ac_var'}'`" >&5
7770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7771if test `eval echo '${'$as_ac_var'}'` = yes; then
7772
7773cat >>confdefs.h <<EOF
5769#define CRAY_STACKSEG_END $ac_func 7774#define CRAY_STACKSEG_END $ac_func
5770EOF 7775EOF
5771 7776
5772 break 7777 break
5773else
5774 echo "$ac_t""no" 1>&6
5775fi 7778fi
5776 7779
5777done 7780 done
5778fi 7781fi
5779 7782
5780echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7783echo "$as_me:7783: checking stack direction for C alloca" >&5
5781echo "configure:5782: checking stack direction for C alloca" >&5 7784echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5782if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 7785if test "${ac_cv_c_stack_direction+set}" = set; then
5783 echo $ac_n "(cached) $ac_c" 1>&6 7786 echo $ECHO_N "(cached) $ECHO_C" >&6
5784else 7787else
5785 if test "$cross_compiling" = yes; then 7788 if test "$cross_compiling" = yes; then
5786 ac_cv_c_stack_direction=0 7789 ac_cv_c_stack_direction=0
5787else 7790else
5788 cat > conftest.$ac_ext <<EOF 7791 cat >conftest.$ac_ext <<_ACEOF
5789#line 5790 "configure" 7792#line 7792 "configure"
5790#include "confdefs.h" 7793#include "confdefs.h"
7794int
5791find_stack_direction () 7795find_stack_direction ()
5792{ 7796{
5793 static char *addr = 0; 7797 static char *addr = 0;
@@ -5800,176 +7804,220 @@ find_stack_direction ()
5800 else 7804 else
5801 return (&dummy > addr) ? 1 : -1; 7805 return (&dummy > addr) ? 1 : -1;
5802} 7806}
7807
7808int
5803main () 7809main ()
5804{ 7810{
5805 exit (find_stack_direction() < 0); 7811 exit (find_stack_direction () < 0);
5806} 7812}
5807EOF 7813_ACEOF
5808if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7814rm -f conftest$ac_exeext
5809then 7815if { (eval echo "$as_me:7815: \"$ac_link\"") >&5
7816 (eval $ac_link) 2>&5
7817 ac_status=$?
7818 echo "$as_me:7818: \$? = $ac_status" >&5
7819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7820 { (eval echo "$as_me:7820: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:7823: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
5810 ac_cv_c_stack_direction=1 7825 ac_cv_c_stack_direction=1
5811else 7826else
5812 echo "configure: failed program was:" >&5 7827 echo "$as_me: program exited with status $ac_status" >&5
5813 cat conftest.$ac_ext >&5 7828echo "$as_me: failed program was:" >&5
5814 rm -fr conftest* 7829cat conftest.$ac_ext >&5
5815 ac_cv_c_stack_direction=-1 7830ac_cv_c_stack_direction=-1
5816fi 7831fi
5817rm -fr conftest* 7832rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5818fi 7833fi
5819
5820fi 7834fi
7835echo "$as_me:7835: result: $ac_cv_c_stack_direction" >&5
7836echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5821 7837
5822echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 7838cat >>confdefs.h <<EOF
5823cat >> confdefs.h <<EOF
5824#define STACK_DIRECTION $ac_cv_c_stack_direction 7839#define STACK_DIRECTION $ac_cv_c_stack_direction
5825EOF 7840EOF
5826 7841
5827fi 7842fi
5828 7843
5829
5830# fmod, logb, and frexp are found in -lm on most systems. 7844# fmod, logb, and frexp are found in -lm on most systems.
5831# On HPUX 9.01, -lm does not contain logb, so check for sqrt. 7845# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5832echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 7846
5833echo "configure:5834: checking for sqrt in -lm" >&5 7847echo "$as_me:7847: checking for sqrt in -lm" >&5
5834ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 7848echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5835if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7849if test "${ac_cv_lib_m_sqrt+set}" = set; then
5836 echo $ac_n "(cached) $ac_c" 1>&6 7850 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else 7851else
5838 ac_save_LIBS="$LIBS" 7852 ac_check_lib_save_LIBS=$LIBS
5839LIBS="-lm $LIBS" 7853LIBS="-lm $LIBS"
5840cat > conftest.$ac_ext <<EOF 7854cat >conftest.$ac_ext <<_ACEOF
5841#line 5842 "configure" 7855#line 7855 "configure"
5842#include "confdefs.h" 7856#include "confdefs.h"
7857
5843/* Override any gcc2 internal prototype to avoid an error. */ 7858/* Override any gcc2 internal prototype to avoid an error. */
7859#ifdef __cplusplus
7860extern "C"
7861#endif
5844/* We use char because int might match the return type of a gcc2 7862/* We use char because int might match the return type of a gcc2
5845 builtin and then its argument prototype would still apply. */ 7863 builtin and then its argument prototype would still apply. */
5846char sqrt(); 7864char sqrt ();
5847 7865int
5848int main() { 7866main ()
5849sqrt() 7867{
5850; return 0; } 7868sqrt ();
5851EOF 7869 ;
5852if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7870 return 0;
5853 rm -rf conftest* 7871}
5854 eval "ac_cv_lib_$ac_lib_var=yes" 7872_ACEOF
5855else 7873rm -f conftest.$ac_objext conftest$ac_exeext
5856 echo "configure: failed program was:" >&5 7874if { (eval echo "$as_me:7874: \"$ac_link\"") >&5
5857 cat conftest.$ac_ext >&5 7875 (eval $ac_link) 2>&5
5858 rm -rf conftest* 7876 ac_status=$?
5859 eval "ac_cv_lib_$ac_lib_var=no" 7877 echo "$as_me:7877: \$? = $ac_status" >&5
5860fi 7878 (exit $ac_status); } &&
5861rm -f conftest* 7879 { ac_try='test -s conftest$ac_exeext'
5862LIBS="$ac_save_LIBS" 7880 { (eval echo "$as_me:7880: \"$ac_try\"") >&5
5863 7881 (eval $ac_try) 2>&5
5864fi 7882 ac_status=$?
5865if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7883 echo "$as_me:7883: \$? = $ac_status" >&5
5866 echo "$ac_t""yes" 1>&6 7884 (exit $ac_status); }; }; then
5867 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 7885 ac_cv_lib_m_sqrt=yes
5868 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 7886else
5869 cat >> confdefs.h <<EOF 7887 echo "$as_me: failed program was:" >&5
5870#define $ac_tr_lib 1 7888cat conftest.$ac_ext >&5
7889ac_cv_lib_m_sqrt=no
7890fi
7891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7892LIBS=$ac_check_lib_save_LIBS
7893fi
7894echo "$as_me:7894: result: $ac_cv_lib_m_sqrt" >&5
7895echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
7896if test $ac_cv_lib_m_sqrt = yes; then
7897 cat >>confdefs.h <<EOF
7898#define HAVE_LIBM 1
5871EOF 7899EOF
5872 7900
5873 LIBS="-lm $LIBS" 7901 LIBS="-lm $LIBS"
5874 7902
5875else
5876 echo "$ac_t""no" 1>&6
5877fi 7903fi
5878 7904
5879
5880# Check for mail-locking functions in a "mail" library 7905# Check for mail-locking functions in a "mail" library
5881echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 7906
5882echo "configure:5883: checking for maillock in -lmail" >&5 7907echo "$as_me:7907: checking for maillock in -lmail" >&5
5883ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 7908echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
5884if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7909if test "${ac_cv_lib_mail_maillock+set}" = set; then
5885 echo $ac_n "(cached) $ac_c" 1>&6 7910 echo $ECHO_N "(cached) $ECHO_C" >&6
5886else 7911else
5887 ac_save_LIBS="$LIBS" 7912 ac_check_lib_save_LIBS=$LIBS
5888LIBS="-lmail $LIBS" 7913LIBS="-lmail $LIBS"
5889cat > conftest.$ac_ext <<EOF 7914cat >conftest.$ac_ext <<_ACEOF
5890#line 5891 "configure" 7915#line 7915 "configure"
5891#include "confdefs.h" 7916#include "confdefs.h"
7917
5892/* Override any gcc2 internal prototype to avoid an error. */ 7918/* Override any gcc2 internal prototype to avoid an error. */
7919#ifdef __cplusplus
7920extern "C"
7921#endif
5893/* We use char because int might match the return type of a gcc2 7922/* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */ 7923 builtin and then its argument prototype would still apply. */
5895char maillock(); 7924char maillock ();
5896 7925int
5897int main() { 7926main ()
5898maillock() 7927{
5899; return 0; } 7928maillock ();
5900EOF 7929 ;
5901if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7930 return 0;
5902 rm -rf conftest* 7931}
5903 eval "ac_cv_lib_$ac_lib_var=yes" 7932_ACEOF
5904else 7933rm -f conftest.$ac_objext conftest$ac_exeext
5905 echo "configure: failed program was:" >&5 7934if { (eval echo "$as_me:7934: \"$ac_link\"") >&5
5906 cat conftest.$ac_ext >&5 7935 (eval $ac_link) 2>&5
5907 rm -rf conftest* 7936 ac_status=$?
5908 eval "ac_cv_lib_$ac_lib_var=no" 7937 echo "$as_me:7937: \$? = $ac_status" >&5
5909fi 7938 (exit $ac_status); } &&
5910rm -f conftest* 7939 { ac_try='test -s conftest$ac_exeext'
5911LIBS="$ac_save_LIBS" 7940 { (eval echo "$as_me:7940: \"$ac_try\"") >&5
5912 7941 (eval $ac_try) 2>&5
5913fi 7942 ac_status=$?
5914if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7943 echo "$as_me:7943: \$? = $ac_status" >&5
5915 echo "$ac_t""yes" 1>&6 7944 (exit $ac_status); }; }; then
5916 ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 7945 ac_cv_lib_mail_maillock=yes
5917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 7946else
5918 cat >> confdefs.h <<EOF 7947 echo "$as_me: failed program was:" >&5
5919#define $ac_tr_lib 1 7948cat conftest.$ac_ext >&5
7949ac_cv_lib_mail_maillock=no
7950fi
7951rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7952LIBS=$ac_check_lib_save_LIBS
7953fi
7954echo "$as_me:7954: result: $ac_cv_lib_mail_maillock" >&5
7955echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
7956if test $ac_cv_lib_mail_maillock = yes; then
7957 cat >>confdefs.h <<EOF
7958#define HAVE_LIBMAIL 1
5920EOF 7959EOF
5921 7960
5922 LIBS="-lmail $LIBS" 7961 LIBS="-lmail $LIBS"
5923 7962
5924else
5925 echo "$ac_t""no" 1>&6
5926fi 7963fi
5927 7964
5928echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 7965echo "$as_me:7965: checking for maillock in -llockfile" >&5
5929echo "configure:5930: checking for maillock in -llockfile" >&5 7966echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
5930ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 7967if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
5931if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7968 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 echo $ac_n "(cached) $ac_c" 1>&6
5933else 7969else
5934 ac_save_LIBS="$LIBS" 7970 ac_check_lib_save_LIBS=$LIBS
5935LIBS="-llockfile $LIBS" 7971LIBS="-llockfile $LIBS"
5936cat > conftest.$ac_ext <<EOF 7972cat >conftest.$ac_ext <<_ACEOF
5937#line 5938 "configure" 7973#line 7973 "configure"
5938#include "confdefs.h" 7974#include "confdefs.h"
7975
5939/* Override any gcc2 internal prototype to avoid an error. */ 7976/* Override any gcc2 internal prototype to avoid an error. */
7977#ifdef __cplusplus
7978extern "C"
7979#endif
5940/* We use char because int might match the return type of a gcc2 7980/* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */ 7981 builtin and then its argument prototype would still apply. */
5942char maillock(); 7982char maillock ();
5943 7983int
5944int main() { 7984main ()
5945maillock() 7985{
5946; return 0; } 7986maillock ();
5947EOF 7987 ;
5948if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7988 return 0;
5949 rm -rf conftest* 7989}
5950 eval "ac_cv_lib_$ac_lib_var=yes" 7990_ACEOF
5951else 7991rm -f conftest.$ac_objext conftest$ac_exeext
5952 echo "configure: failed program was:" >&5 7992if { (eval echo "$as_me:7992: \"$ac_link\"") >&5
5953 cat conftest.$ac_ext >&5 7993 (eval $ac_link) 2>&5
5954 rm -rf conftest* 7994 ac_status=$?
5955 eval "ac_cv_lib_$ac_lib_var=no" 7995 echo "$as_me:7995: \$? = $ac_status" >&5
5956fi 7996 (exit $ac_status); } &&
5957rm -f conftest* 7997 { ac_try='test -s conftest$ac_exeext'
5958LIBS="$ac_save_LIBS" 7998 { (eval echo "$as_me:7998: \"$ac_try\"") >&5
5959 7999 (eval $ac_try) 2>&5
5960fi 8000 ac_status=$?
5961if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8001 echo "$as_me:8001: \$? = $ac_status" >&5
5962 echo "$ac_t""yes" 1>&6 8002 (exit $ac_status); }; }; then
5963 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 8003 ac_cv_lib_lockfile_maillock=yes
5964 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 8004else
5965 cat >> confdefs.h <<EOF 8005 echo "$as_me: failed program was:" >&5
5966#define $ac_tr_lib 1 8006cat conftest.$ac_ext >&5
8007ac_cv_lib_lockfile_maillock=no
8008fi
8009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8010LIBS=$ac_check_lib_save_LIBS
8011fi
8012echo "$as_me:8012: result: $ac_cv_lib_lockfile_maillock" >&5
8013echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8014if test $ac_cv_lib_lockfile_maillock = yes; then
8015 cat >>confdefs.h <<EOF
8016#define HAVE_LIBLOCKFILE 1
5967EOF 8017EOF
5968 8018
5969 LIBS="-llockfile $LIBS" 8019 LIBS="-llockfile $LIBS"
5970 8020
5971else
5972 echo "$ac_t""no" 1>&6
5973fi 8021fi
5974 8022
5975# If we have the shared liblockfile, assume we must use it for mail 8023# If we have the shared liblockfile, assume we must use it for mail
@@ -5978,141 +8026,170 @@ fi
5978if test "$ac_cv_lib_lockfile_maillock" = no; then 8026if test "$ac_cv_lib_lockfile_maillock" = no; then
5979 # Extract the first word of "liblockfile.so", so it can be a program name with args. 8027 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5980set dummy liblockfile.so; ac_word=$2 8028set dummy liblockfile.so; ac_word=$2
5981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8029echo "$as_me:8029: checking for $ac_word" >&5
5982echo "configure:5983: checking for $ac_word" >&5 8030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5983if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 8031if test "${ac_cv_prog_liblockfile+set}" = set; then
5984 echo $ac_n "(cached) $ac_c" 1>&6 8032 echo $ECHO_N "(cached) $ECHO_C" >&6
5985else 8033else
5986 if test -n "$liblockfile"; then 8034 if test -n "$liblockfile"; then
5987 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 8035 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
5988else 8036else
5989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8037 ac_save_IFS=$IFS; IFS=$ac_path_separator
5990 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" 8038ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
5991 for ac_dir in $ac_dummy; do 8039for ac_dir in $ac_dummy; do
5992 test -z "$ac_dir" && ac_dir=. 8040 IFS=$ac_save_IFS
5993 if test -f $ac_dir/$ac_word; then 8041 test -z "$ac_dir" && ac_dir=.
5994 ac_cv_prog_liblockfile="yes" 8042 $as_executable_p "$ac_dir/$ac_word" || continue
5995 break 8043ac_cv_prog_liblockfile="yes"
5996 fi 8044echo "$as_me:8044: found $ac_dir/$ac_word" >&5
5997 done 8045break
5998 IFS="$ac_save_ifs" 8046done
8047
5999 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 8048 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
6000fi 8049fi
6001fi 8050fi
6002liblockfile="$ac_cv_prog_liblockfile" 8051liblockfile=$ac_cv_prog_liblockfile
6003if test -n "$liblockfile"; then 8052if test -n "$liblockfile"; then
6004 echo "$ac_t""$liblockfile" 1>&6 8053 echo "$as_me:8053: result: $liblockfile" >&5
8054echo "${ECHO_T}$liblockfile" >&6
6005else 8055else
6006 echo "$ac_t""no" 1>&6 8056 echo "$as_me:8056: result: no" >&5
8057echo "${ECHO_T}no" >&6
6007fi 8058fi
6008 8059
6009 if test $ac_cv_prog_liblockfile = yes; then 8060 if test $ac_cv_prog_liblockfile = yes; then
6010 { echo "configure: error: Shared liblockfile found but can't link against it. 8061 { { echo "$as_me:8061: error: Shared liblockfile found but can't link against it.
8062This probably means that movemail could lose mail.
8063There may be a \`development' package to install containing liblockfile." >&5
8064echo "$as_me: error: Shared liblockfile found but can't link against it.
6011This probably means that movemail could lose mail. 8065This probably means that movemail could lose mail.
6012There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; } 8066There may be a \`development' package to install containing liblockfile." >&2;}
6013 else cat >> confdefs.h <<\EOF 8067 { (exit 1); exit 1; }; }
8068 else cat >>confdefs.h <<\EOF
6014#define LIBMAIL -llockfile 8069#define LIBMAIL -llockfile
6015EOF 8070EOF
6016 8071
6017 fi 8072 fi
6018 else : 8073 else :
6019fi 8074fi
8075
6020for ac_func in touchlock 8076for ac_func in touchlock
6021do 8077do
6022echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6023echo "configure:6024: checking for $ac_func" >&5 8079echo "$as_me:8079: checking for $ac_func" >&5
6024if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6025 echo $ac_n "(cached) $ac_c" 1>&6 8081if eval "test \"\${$as_ac_var+set}\" = set"; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
6026else 8083else
6027 cat > conftest.$ac_ext <<EOF 8084 cat >conftest.$ac_ext <<_ACEOF
6028#line 6029 "configure" 8085#line 8085 "configure"
6029#include "confdefs.h" 8086#include "confdefs.h"
6030/* System header to define __stub macros and hopefully few prototypes, 8087/* System header to define __stub macros and hopefully few prototypes,
6031 which can conflict with char $ac_func(); below. */ 8088 which can conflict with char $ac_func (); below. */
6032#include <assert.h> 8089#include <assert.h>
6033/* Override any gcc2 internal prototype to avoid an error. */ 8090/* Override any gcc2 internal prototype to avoid an error. */
8091#ifdef __cplusplus
8092extern "C"
8093#endif
6034/* We use char because int might match the return type of a gcc2 8094/* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */ 8095 builtin and then its argument prototype would still apply. */
6036char $ac_func(); 8096char $ac_func ();
6037 8097char (*f) ();
6038int main() {
6039 8098
8099int
8100main ()
8101{
6040/* The GNU C library defines this for functions which it implements 8102/* The GNU C library defines this for functions which it implements
6041 to always fail with ENOSYS. Some functions are actually named 8103 to always fail with ENOSYS. Some functions are actually named
6042 something starting with __ and the normal name is an alias. */ 8104 something starting with __ and the normal name is an alias. */
6043#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8105#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6044choke me 8106choke me
6045#else 8107#else
6046$ac_func(); 8108f = $ac_func;
6047#endif 8109#endif
6048 8110
6049; return 0; } 8111 ;
8112 return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext conftest$ac_exeext
8116if { (eval echo "$as_me:8116: \"$ac_link\"") >&5
8117 (eval $ac_link) 2>&5
8118 ac_status=$?
8119 echo "$as_me:8119: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -s conftest$ac_exeext'
8122 { (eval echo "$as_me:8122: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:8125: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 eval "$as_ac_var=yes"
8128else
8129 echo "$as_me: failed program was:" >&5
8130cat conftest.$ac_ext >&5
8131eval "$as_ac_var=no"
8132fi
8133rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8134fi
8135echo "$as_me:8135: result: `eval echo '${'$as_ac_var'}'`" >&5
8136echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8137if test `eval echo '${'$as_ac_var'}'` = yes; then
8138 cat >>confdefs.h <<EOF
8139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6050EOF 8140EOF
6051if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6052 rm -rf conftest*
6053 eval "ac_cv_func_$ac_func=yes"
6054else
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6057 rm -rf conftest*
6058 eval "ac_cv_func_$ac_func=no"
6059fi
6060rm -f conftest*
6061fi
6062 8141
6063if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6064 echo "$ac_t""yes" 1>&6
6065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6066 cat >> confdefs.h <<EOF
6067#define $ac_tr_func 1
6068EOF
6069
6070else
6071 echo "$ac_t""no" 1>&6
6072fi 8142fi
6073done 8143done
6074 8144
6075for ac_hdr in maillock.h 8145for ac_header in maillock.h
6076do 8146do
6077ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 8147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6078echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 8148echo "$as_me:8148: checking for $ac_header" >&5
6079echo "configure:6080: checking for $ac_hdr" >&5 8149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6080if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8150if eval "test \"\${$as_ac_Header+set}\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6 8151 echo $ECHO_N "(cached) $ECHO_C" >&6
6082else 8152else
6083 cat > conftest.$ac_ext <<EOF 8153 cat >conftest.$ac_ext <<_ACEOF
6084#line 6085 "configure" 8154#line 8154 "configure"
6085#include "confdefs.h" 8155#include "confdefs.h"
6086#include <$ac_hdr> 8156#include <$ac_header>
6087EOF 8157_ACEOF
6088ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8158if { (eval echo "$as_me:8158: \"$ac_cpp conftest.$ac_ext\"") >&5
6089{ (eval echo configure:6090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6090ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8160 ac_status=$?
6091if test -z "$ac_err"; then 8161 egrep -v '^ *\+' conftest.er1 >conftest.err
6092 rm -rf conftest* 8162 rm -f conftest.er1
6093 eval "ac_cv_header_$ac_safe=yes" 8163 cat conftest.err >&5
6094else 8164 echo "$as_me:8164: \$? = $ac_status" >&5
6095 echo "$ac_err" >&5 8165 (exit $ac_status); } >/dev/null; then
6096 echo "configure: failed program was:" >&5 8166 if test -s conftest.err; then
8167 ac_cpp_err=$ac_c_preproc_warn_flag
8168 else
8169 ac_cpp_err=
8170 fi
8171else
8172 ac_cpp_err=yes
8173fi
8174if test -z "$ac_cpp_err"; then
8175 eval "$as_ac_Header=yes"
8176else
8177 echo "$as_me: failed program was:" >&5
6097 cat conftest.$ac_ext >&5 8178 cat conftest.$ac_ext >&5
6098 rm -rf conftest* 8179 eval "$as_ac_Header=no"
6099 eval "ac_cv_header_$ac_safe=no"
6100fi 8180fi
6101rm -f conftest* 8181rm -f conftest.err conftest.$ac_ext
6102fi 8182fi
6103if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8183echo "$as_me:8183: result: `eval echo '${'$as_ac_Header'}'`" >&5
6104 echo "$ac_t""yes" 1>&6 8184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 8185if test `eval echo '${'$as_ac_Header'}'` = yes; then
6106 cat >> confdefs.h <<EOF 8186 cat >>confdefs.h <<EOF
6107#define $ac_tr_hdr 1 8187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6108EOF 8188EOF
6109 8189
6110else
6111 echo "$ac_t""no" 1>&6
6112fi 8190fi
6113done 8191done
6114 8192
6115
6116for ac_func in gethostname getdomainname dup2 \ 8193for ac_func in gethostname getdomainname dup2 \
6117rename closedir mkdir rmdir sysinfo \ 8194rename closedir mkdir rmdir sysinfo \
6118random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ 8195random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
@@ -6121,168 +8198,202 @@ utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
6121__fpending mblen mbrlen strsignal setitimer ualarm index rindex \ 8198__fpending mblen mbrlen strsignal setitimer ualarm index rindex \
6122gai_strerror mkstemp 8199gai_strerror mkstemp
6123do 8200do
6124echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6125echo "configure:6126: checking for $ac_func" >&5 8202echo "$as_me:8202: checking for $ac_func" >&5
6126if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6127 echo $ac_n "(cached) $ac_c" 1>&6 8204if eval "test \"\${$as_ac_var+set}\" = set"; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
6128else 8206else
6129 cat > conftest.$ac_ext <<EOF 8207 cat >conftest.$ac_ext <<_ACEOF
6130#line 6131 "configure" 8208#line 8208 "configure"
6131#include "confdefs.h" 8209#include "confdefs.h"
6132/* System header to define __stub macros and hopefully few prototypes, 8210/* System header to define __stub macros and hopefully few prototypes,
6133 which can conflict with char $ac_func(); below. */ 8211 which can conflict with char $ac_func (); below. */
6134#include <assert.h> 8212#include <assert.h>
6135/* Override any gcc2 internal prototype to avoid an error. */ 8213/* Override any gcc2 internal prototype to avoid an error. */
8214#ifdef __cplusplus
8215extern "C"
8216#endif
6136/* We use char because int might match the return type of a gcc2 8217/* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */ 8218 builtin and then its argument prototype would still apply. */
6138char $ac_func(); 8219char $ac_func ();
6139 8220char (*f) ();
6140int main() {
6141 8221
8222int
8223main ()
8224{
6142/* The GNU C library defines this for functions which it implements 8225/* The GNU C library defines this for functions which it implements
6143 to always fail with ENOSYS. Some functions are actually named 8226 to always fail with ENOSYS. Some functions are actually named
6144 something starting with __ and the normal name is an alias. */ 8227 something starting with __ and the normal name is an alias. */
6145#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6146choke me 8229choke me
6147#else 8230#else
6148$ac_func(); 8231f = $ac_func;
6149#endif 8232#endif
6150 8233
6151; return 0; } 8234 ;
8235 return 0;
8236}
8237_ACEOF
8238rm -f conftest.$ac_objext conftest$ac_exeext
8239if { (eval echo "$as_me:8239: \"$ac_link\"") >&5
8240 (eval $ac_link) 2>&5
8241 ac_status=$?
8242 echo "$as_me:8242: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -s conftest$ac_exeext'
8245 { (eval echo "$as_me:8245: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:8248: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8250 eval "$as_ac_var=yes"
8251else
8252 echo "$as_me: failed program was:" >&5
8253cat conftest.$ac_ext >&5
8254eval "$as_ac_var=no"
8255fi
8256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8257fi
8258echo "$as_me:8258: result: `eval echo '${'$as_ac_var'}'`" >&5
8259echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8260if test `eval echo '${'$as_ac_var'}'` = yes; then
8261 cat >>confdefs.h <<EOF
8262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6152EOF 8263EOF
6153if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6154 rm -rf conftest*
6155 eval "ac_cv_func_$ac_func=yes"
6156else
6157 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6159 rm -rf conftest*
6160 eval "ac_cv_func_$ac_func=no"
6161fi
6162rm -f conftest*
6163fi
6164 8264
6165if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6168 cat >> confdefs.h <<EOF
6169#define $ac_tr_func 1
6170EOF
6171
6172else
6173 echo "$ac_t""no" 1>&6
6174fi 8265fi
6175done 8266done
6176 8267
6177 8268for ac_header in sys/time.h unistd.h
6178for ac_hdr in sys/time.h unistd.h
6179do 8269do
6180ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 8270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6181echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 8271echo "$as_me:8271: checking for $ac_header" >&5
6182echo "configure:6183: checking for $ac_hdr" >&5 8272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6183if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8273if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184 echo $ac_n "(cached) $ac_c" 1>&6 8274 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else 8275else
6186 cat > conftest.$ac_ext <<EOF 8276 cat >conftest.$ac_ext <<_ACEOF
6187#line 6188 "configure" 8277#line 8277 "configure"
6188#include "confdefs.h" 8278#include "confdefs.h"
6189#include <$ac_hdr> 8279#include <$ac_header>
6190EOF 8280_ACEOF
6191ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8281if { (eval echo "$as_me:8281: \"$ac_cpp conftest.$ac_ext\"") >&5
6192{ (eval echo configure:6193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6193ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8283 ac_status=$?
6194if test -z "$ac_err"; then 8284 egrep -v '^ *\+' conftest.er1 >conftest.err
6195 rm -rf conftest* 8285 rm -f conftest.er1
6196 eval "ac_cv_header_$ac_safe=yes" 8286 cat conftest.err >&5
6197else 8287 echo "$as_me:8287: \$? = $ac_status" >&5
6198 echo "$ac_err" >&5 8288 (exit $ac_status); } >/dev/null; then
6199 echo "configure: failed program was:" >&5 8289 if test -s conftest.err; then
8290 ac_cpp_err=$ac_c_preproc_warn_flag
8291 else
8292 ac_cpp_err=
8293 fi
8294else
8295 ac_cpp_err=yes
8296fi
8297if test -z "$ac_cpp_err"; then
8298 eval "$as_ac_Header=yes"
8299else
8300 echo "$as_me: failed program was:" >&5
6200 cat conftest.$ac_ext >&5 8301 cat conftest.$ac_ext >&5
6201 rm -rf conftest* 8302 eval "$as_ac_Header=no"
6202 eval "ac_cv_header_$ac_safe=no"
6203fi 8303fi
6204rm -f conftest* 8304rm -f conftest.err conftest.$ac_ext
6205fi 8305fi
6206if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8306echo "$as_me:8306: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207 echo "$ac_t""yes" 1>&6 8307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 8308if test `eval echo '${'$as_ac_Header'}'` = yes; then
6209 cat >> confdefs.h <<EOF 8309 cat >>confdefs.h <<EOF
6210#define $ac_tr_hdr 1 8310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6211EOF 8311EOF
6212 8312
6213else
6214 echo "$ac_t""no" 1>&6
6215fi 8313fi
6216done 8314done
6217 8315
6218for ac_func in alarm 8316for ac_func in alarm
6219do 8317do
6220echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8318as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6221echo "configure:6222: checking for $ac_func" >&5 8319echo "$as_me:8319: checking for $ac_func" >&5
6222if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8320echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6223 echo $ac_n "(cached) $ac_c" 1>&6 8321if eval "test \"\${$as_ac_var+set}\" = set"; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
6224else 8323else
6225 cat > conftest.$ac_ext <<EOF 8324 cat >conftest.$ac_ext <<_ACEOF
6226#line 6227 "configure" 8325#line 8325 "configure"
6227#include "confdefs.h" 8326#include "confdefs.h"
6228/* System header to define __stub macros and hopefully few prototypes, 8327/* System header to define __stub macros and hopefully few prototypes,
6229 which can conflict with char $ac_func(); below. */ 8328 which can conflict with char $ac_func (); below. */
6230#include <assert.h> 8329#include <assert.h>
6231/* Override any gcc2 internal prototype to avoid an error. */ 8330/* Override any gcc2 internal prototype to avoid an error. */
8331#ifdef __cplusplus
8332extern "C"
8333#endif
6232/* We use char because int might match the return type of a gcc2 8334/* We use char because int might match the return type of a gcc2
6233 builtin and then its argument prototype would still apply. */ 8335 builtin and then its argument prototype would still apply. */
6234char $ac_func(); 8336char $ac_func ();
6235 8337char (*f) ();
6236int main() {
6237 8338
8339int
8340main ()
8341{
6238/* The GNU C library defines this for functions which it implements 8342/* The GNU C library defines this for functions which it implements
6239 to always fail with ENOSYS. Some functions are actually named 8343 to always fail with ENOSYS. Some functions are actually named
6240 something starting with __ and the normal name is an alias. */ 8344 something starting with __ and the normal name is an alias. */
6241#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6242choke me 8346choke me
6243#else 8347#else
6244$ac_func(); 8348f = $ac_func;
6245#endif 8349#endif
6246 8350
6247; return 0; } 8351 ;
8352 return 0;
8353}
8354_ACEOF
8355rm -f conftest.$ac_objext conftest$ac_exeext
8356if { (eval echo "$as_me:8356: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>&5
8358 ac_status=$?
8359 echo "$as_me:8359: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -s conftest$ac_exeext'
8362 { (eval echo "$as_me:8362: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:8365: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 eval "$as_ac_var=yes"
8368else
8369 echo "$as_me: failed program was:" >&5
8370cat conftest.$ac_ext >&5
8371eval "$as_ac_var=no"
8372fi
8373rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8374fi
8375echo "$as_me:8375: result: `eval echo '${'$as_ac_var'}'`" >&5
8376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8377if test `eval echo '${'$as_ac_var'}'` = yes; then
8378 cat >>confdefs.h <<EOF
8379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6248EOF 8380EOF
6249if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6250 rm -rf conftest*
6251 eval "ac_cv_func_$ac_func=yes"
6252else
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6255 rm -rf conftest*
6256 eval "ac_cv_func_$ac_func=no"
6257fi
6258rm -f conftest*
6259fi
6260 8381
6261if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6262 echo "$ac_t""yes" 1>&6
6263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6264 cat >> confdefs.h <<EOF
6265#define $ac_tr_func 1
6266EOF
6267
6268else
6269 echo "$ac_t""no" 1>&6
6270fi 8382fi
6271done 8383done
6272 8384
6273echo $ac_n "checking for working mktime""... $ac_c" 1>&6 8385echo "$as_me:8385: checking for working mktime" >&5
6274echo "configure:6275: checking for working mktime" >&5 8386echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
6275if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then 8387if test "${ac_cv_func_working_mktime+set}" = set; then
6276 echo $ac_n "(cached) $ac_c" 1>&6 8388 echo $ECHO_N "(cached) $ECHO_C" >&6
6277else 8389else
6278 if test "$cross_compiling" = yes; then 8390 if test "$cross_compiling" = yes; then
6279 ac_cv_func_working_mktime=no 8391 ac_cv_func_working_mktime=no
6280else 8392else
6281 cat > conftest.$ac_ext <<EOF 8393 cat >conftest.$ac_ext <<_ACEOF
6282#line 6283 "configure" 8394#line 8394 "configure"
6283#include "confdefs.h" 8395#include "confdefs.h"
6284/* Test program from Paul Eggert (eggert@twinsun.com) 8396/* Test program from Paul Eggert and Tony Leneis. */
6285 and Tony Leneis (tony@plaza.ds.adp.com). */
6286#if TIME_WITH_SYS_TIME 8397#if TIME_WITH_SYS_TIME
6287# include <sys/time.h> 8398# include <sys/time.h>
6288# include <time.h> 8399# include <time.h>
@@ -6319,7 +8430,7 @@ static const char *const tz_strings[] = {
6319static void 8430static void
6320spring_forward_gap () 8431spring_forward_gap ()
6321{ 8432{
6322 /* glibc (up to about 1998-10-07) failed this test) */ 8433 /* glibc (up to about 1998-10-07) failed this test. */
6323 struct tm tm; 8434 struct tm tm;
6324 8435
6325 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 8436 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
@@ -6427,28 +8538,36 @@ main ()
6427 spring_forward_gap (); 8538 spring_forward_gap ();
6428 exit (0); 8539 exit (0);
6429} 8540}
6430EOF 8541_ACEOF
6431if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8542rm -f conftest$ac_exeext
6432then 8543if { (eval echo "$as_me:8543: \"$ac_link\"") >&5
8544 (eval $ac_link) 2>&5
8545 ac_status=$?
8546 echo "$as_me:8546: \$? = $ac_status" >&5
8547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8548 { (eval echo "$as_me:8548: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5
8550 ac_status=$?
8551 echo "$as_me:8551: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
6433 ac_cv_func_working_mktime=yes 8553 ac_cv_func_working_mktime=yes
6434else 8554else
6435 echo "configure: failed program was:" >&5 8555 echo "$as_me: program exited with status $ac_status" >&5
6436 cat conftest.$ac_ext >&5 8556echo "$as_me: failed program was:" >&5
6437 rm -fr conftest* 8557cat conftest.$ac_ext >&5
6438 ac_cv_func_working_mktime=no 8558ac_cv_func_working_mktime=no
6439fi 8559fi
6440rm -fr conftest* 8560rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6441fi 8561fi
6442
6443fi 8562fi
6444 8563echo "$as_me:8563: result: $ac_cv_func_working_mktime" >&5
6445echo "$ac_t""$ac_cv_func_working_mktime" 1>&6 8564echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
6446if test $ac_cv_func_working_mktime = no; then 8565if test $ac_cv_func_working_mktime = no; then
6447 LIBOBJS="$LIBOBJS mktime.${ac_objext}" 8566 LIBOBJS="$LIBOBJS mktime.$ac_objext"
6448fi 8567fi
6449 8568
6450if test "$ac_cv_func_working_mktime" = no; then 8569if test "$ac_cv_func_working_mktime" = no; then
6451 cat >> confdefs.h <<\EOF 8570 cat >>confdefs.h <<\EOF
6452#define BROKEN_MKTIME 1 8571#define BROKEN_MKTIME 1
6453EOF 8572EOF
6454 8573
@@ -6456,564 +8575,1024 @@ fi
6456 8575
6457ac_have_func=no # yes means we've found a way to get the load average. 8576ac_have_func=no # yes means we've found a way to get the load average.
6458 8577
6459# Some systems with -lutil have (and need) -lkvm as well, some do not. 8578ac_save_LIBS=$LIBS
6460# On Solaris, -lkvm requires nlist from -lelf, so check that first 8579
6461# to get the right answer into the cache. 8580# Check for getloadavg, but be sure not to touch the cache variable.
6462echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 8581(echo "$as_me:8581: checking for getloadavg" >&5
6463echo "configure:6464: checking for elf_begin in -lelf" >&5 8582echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
6464ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` 8583if test "${ac_cv_func_getloadavg+set}" = set; then
6465if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8584 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 echo $ac_n "(cached) $ac_c" 1>&6
6467else 8585else
6468 ac_save_LIBS="$LIBS" 8586 cat >conftest.$ac_ext <<_ACEOF
6469LIBS="-lelf $LIBS" 8587#line 8587 "configure"
6470cat > conftest.$ac_ext <<EOF
6471#line 6472 "configure"
6472#include "confdefs.h" 8588#include "confdefs.h"
8589/* System header to define __stub macros and hopefully few prototypes,
8590 which can conflict with char getloadavg (); below. */
8591#include <assert.h>
6473/* Override any gcc2 internal prototype to avoid an error. */ 8592/* Override any gcc2 internal prototype to avoid an error. */
8593#ifdef __cplusplus
8594extern "C"
8595#endif
6474/* We use char because int might match the return type of a gcc2 8596/* We use char because int might match the return type of a gcc2
6475 builtin and then its argument prototype would still apply. */ 8597 builtin and then its argument prototype would still apply. */
6476char elf_begin(); 8598char getloadavg ();
8599char (*f) ();
6477 8600
6478int main() { 8601int
6479elf_begin() 8602main ()
6480; return 0; } 8603{
6481EOF 8604/* The GNU C library defines this for functions which it implements
6482if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8605 to always fail with ENOSYS. Some functions are actually named
6483 rm -rf conftest* 8606 something starting with __ and the normal name is an alias. */
6484 eval "ac_cv_lib_$ac_lib_var=yes" 8607#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
6485else 8608choke me
6486 echo "configure: failed program was:" >&5 8609#else
6487 cat conftest.$ac_ext >&5 8610f = getloadavg;
6488 rm -rf conftest* 8611#endif
6489 eval "ac_cv_lib_$ac_lib_var=no"
6490fi
6491rm -f conftest*
6492LIBS="$ac_save_LIBS"
6493 8612
6494fi 8613 ;
6495if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8614 return 0;
6496 echo "$ac_t""yes" 1>&6 8615}
6497 LIBS="-lelf $LIBS" 8616_ACEOF
8617rm -f conftest.$ac_objext conftest$ac_exeext
8618if { (eval echo "$as_me:8618: \"$ac_link\"") >&5
8619 (eval $ac_link) 2>&5
8620 ac_status=$?
8621 echo "$as_me:8621: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -s conftest$ac_exeext'
8624 { (eval echo "$as_me:8624: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:8627: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_func_getloadavg=yes
8630else
8631 echo "$as_me: failed program was:" >&5
8632cat conftest.$ac_ext >&5
8633ac_cv_func_getloadavg=no
8634fi
8635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8636fi
8637echo "$as_me:8637: result: $ac_cv_func_getloadavg" >&5
8638echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8639if test $ac_cv_func_getloadavg = yes; then
8640 exit 0
6498else 8641else
6499 echo "$ac_t""no" 1>&6 8642 exit 1
6500fi 8643fi
8644) && ac_have_func=yes
8645
8646# On HPUX9, an unprivileged user can get load averages through this function.
6501 8647
6502echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 8648for ac_func in pstat_getdynamic
6503echo "configure:6504: checking for kvm_open in -lkvm" >&5 8649do
6504ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` 8650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6505if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8651echo "$as_me:8651: checking for $ac_func" >&5
6506 echo $ac_n "(cached) $ac_c" 1>&6 8652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8653if eval "test \"\${$as_ac_var+set}\" = set"; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else 8655else
6508 ac_save_LIBS="$LIBS" 8656 cat >conftest.$ac_ext <<_ACEOF
6509LIBS="-lkvm $LIBS" 8657#line 8657 "configure"
6510cat > conftest.$ac_ext <<EOF
6511#line 6512 "configure"
6512#include "confdefs.h" 8658#include "confdefs.h"
8659/* System header to define __stub macros and hopefully few prototypes,
8660 which can conflict with char $ac_func (); below. */
8661#include <assert.h>
6513/* Override any gcc2 internal prototype to avoid an error. */ 8662/* Override any gcc2 internal prototype to avoid an error. */
8663#ifdef __cplusplus
8664extern "C"
8665#endif
6514/* We use char because int might match the return type of a gcc2 8666/* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */ 8667 builtin and then its argument prototype would still apply. */
6516char kvm_open(); 8668char $ac_func ();
8669char (*f) ();
8670
8671int
8672main ()
8673{
8674/* The GNU C library defines this for functions which it implements
8675 to always fail with ENOSYS. Some functions are actually named
8676 something starting with __ and the normal name is an alias. */
8677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8678choke me
8679#else
8680f = $ac_func;
8681#endif
6517 8682
6518int main() { 8683 ;
6519kvm_open() 8684 return 0;
6520; return 0; } 8685}
8686_ACEOF
8687rm -f conftest.$ac_objext conftest$ac_exeext
8688if { (eval echo "$as_me:8688: \"$ac_link\"") >&5
8689 (eval $ac_link) 2>&5
8690 ac_status=$?
8691 echo "$as_me:8691: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -s conftest$ac_exeext'
8694 { (eval echo "$as_me:8694: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:8697: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 eval "$as_ac_var=yes"
8700else
8701 echo "$as_me: failed program was:" >&5
8702cat conftest.$ac_ext >&5
8703eval "$as_ac_var=no"
8704fi
8705rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8706fi
8707echo "$as_me:8707: result: `eval echo '${'$as_ac_var'}'`" >&5
8708echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8709if test `eval echo '${'$as_ac_var'}'` = yes; then
8710 cat >>confdefs.h <<EOF
8711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6521EOF 8712EOF
6522if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8713
6523 rm -rf conftest* 8714fi
6524 eval "ac_cv_lib_$ac_lib_var=yes" 8715done
8716
8717# Solaris has libkstat which does not require root.
8718
8719echo "$as_me:8719: checking for kstat_open in -lkstat" >&5
8720echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8721if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
6525else 8723else
6526 echo "configure: failed program was:" >&5 8724 ac_check_lib_save_LIBS=$LIBS
6527 cat conftest.$ac_ext >&5 8725LIBS="-lkstat $LIBS"
6528 rm -rf conftest* 8726cat >conftest.$ac_ext <<_ACEOF
6529 eval "ac_cv_lib_$ac_lib_var=no" 8727#line 8727 "configure"
8728#include "confdefs.h"
8729
8730/* Override any gcc2 internal prototype to avoid an error. */
8731#ifdef __cplusplus
8732extern "C"
8733#endif
8734/* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8736char kstat_open ();
8737int
8738main ()
8739{
8740kstat_open ();
8741 ;
8742 return 0;
8743}
8744_ACEOF
8745rm -f conftest.$ac_objext conftest$ac_exeext
8746if { (eval echo "$as_me:8746: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8748 ac_status=$?
8749 echo "$as_me:8749: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -s conftest$ac_exeext'
8752 { (eval echo "$as_me:8752: \"$ac_try\"") >&5
8753 (eval $ac_try) 2>&5
8754 ac_status=$?
8755 echo "$as_me:8755: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 ac_cv_lib_kstat_kstat_open=yes
8758else
8759 echo "$as_me: failed program was:" >&5
8760cat conftest.$ac_ext >&5
8761ac_cv_lib_kstat_kstat_open=no
6530fi 8762fi
6531rm -f conftest* 8763rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6532LIBS="$ac_save_LIBS" 8764LIBS=$ac_check_lib_save_LIBS
8765fi
8766echo "$as_me:8766: result: $ac_cv_lib_kstat_kstat_open" >&5
8767echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8768if test $ac_cv_lib_kstat_kstat_open = yes; then
8769 cat >>confdefs.h <<EOF
8770#define HAVE_LIBKSTAT 1
8771EOF
8772
8773 LIBS="-lkstat $LIBS"
6533 8774
6534fi 8775fi
6535if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8776
6536 echo "$ac_t""yes" 1>&6 8777test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
6537 LIBS="-lkvm $LIBS" 8778
8779# Some systems with -lutil have (and need) -lkvm as well, some do not.
8780# On Solaris, -lkvm requires nlist from -lelf, so check that first
8781# to get the right answer into the cache.
8782# For kstat on solaris, we need libelf to force the definition of SVR4 below.
8783if test $ac_have_func = no; then
8784 echo "$as_me:8784: checking for elf_begin in -lelf" >&5
8785echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8786if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else 8788else
6539 echo "$ac_t""no" 1>&6 8789 ac_check_lib_save_LIBS=$LIBS
8790LIBS="-lelf $LIBS"
8791cat >conftest.$ac_ext <<_ACEOF
8792#line 8792 "configure"
8793#include "confdefs.h"
8794
8795/* Override any gcc2 internal prototype to avoid an error. */
8796#ifdef __cplusplus
8797extern "C"
8798#endif
8799/* We use char because int might match the return type of a gcc2
8800 builtin and then its argument prototype would still apply. */
8801char elf_begin ();
8802int
8803main ()
8804{
8805elf_begin ();
8806 ;
8807 return 0;
8808}
8809_ACEOF
8810rm -f conftest.$ac_objext conftest$ac_exeext
8811if { (eval echo "$as_me:8811: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>&5
8813 ac_status=$?
8814 echo "$as_me:8814: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -s conftest$ac_exeext'
8817 { (eval echo "$as_me:8817: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:8820: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_cv_lib_elf_elf_begin=yes
8823else
8824 echo "$as_me: failed program was:" >&5
8825cat conftest.$ac_ext >&5
8826ac_cv_lib_elf_elf_begin=no
8827fi
8828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8829LIBS=$ac_check_lib_save_LIBS
8830fi
8831echo "$as_me:8831: result: $ac_cv_lib_elf_elf_begin" >&5
8832echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8833if test $ac_cv_lib_elf_elf_begin = yes; then
8834 LIBS="-lelf $LIBS"
6540fi 8835fi
6541 8836
6542# Check for the 4.4BSD definition of getloadavg. 8837fi
6543echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 8838if test $ac_have_func = no; then
6544echo "configure:6545: checking for getloadavg in -lutil" >&5 8839 echo "$as_me:8839: checking for kvm_open in -lkvm" >&5
6545ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` 8840echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
6546if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8841if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
6547 echo $ac_n "(cached) $ac_c" 1>&6 8842 echo $ECHO_N "(cached) $ECHO_C" >&6
6548else 8843else
6549 ac_save_LIBS="$LIBS" 8844 ac_check_lib_save_LIBS=$LIBS
6550LIBS="-lutil $LIBS" 8845LIBS="-lkvm $LIBS"
6551cat > conftest.$ac_ext <<EOF 8846cat >conftest.$ac_ext <<_ACEOF
6552#line 6553 "configure" 8847#line 8847 "configure"
6553#include "confdefs.h" 8848#include "confdefs.h"
8849
6554/* Override any gcc2 internal prototype to avoid an error. */ 8850/* Override any gcc2 internal prototype to avoid an error. */
8851#ifdef __cplusplus
8852extern "C"
8853#endif
6555/* We use char because int might match the return type of a gcc2 8854/* We use char because int might match the return type of a gcc2
6556 builtin and then its argument prototype would still apply. */ 8855 builtin and then its argument prototype would still apply. */
6557char getloadavg(); 8856char kvm_open ();
8857int
8858main ()
8859{
8860kvm_open ();
8861 ;
8862 return 0;
8863}
8864_ACEOF
8865rm -f conftest.$ac_objext conftest$ac_exeext
8866if { (eval echo "$as_me:8866: \"$ac_link\"") >&5
8867 (eval $ac_link) 2>&5
8868 ac_status=$?
8869 echo "$as_me:8869: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -s conftest$ac_exeext'
8872 { (eval echo "$as_me:8872: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:8875: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 ac_cv_lib_kvm_kvm_open=yes
8878else
8879 echo "$as_me: failed program was:" >&5
8880cat conftest.$ac_ext >&5
8881ac_cv_lib_kvm_kvm_open=no
8882fi
8883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8884LIBS=$ac_check_lib_save_LIBS
8885fi
8886echo "$as_me:8886: result: $ac_cv_lib_kvm_kvm_open" >&5
8887echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8888if test $ac_cv_lib_kvm_kvm_open = yes; then
8889 LIBS="-lkvm $LIBS"
8890fi
6558 8891
6559int main() { 8892 # Check for the 4.4BSD definition of getloadavg.
6560getloadavg() 8893 echo "$as_me:8893: checking for getloadavg in -lutil" >&5
6561; return 0; } 8894echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
6562EOF 8895if test "${ac_cv_lib_util_getloadavg+set}" = set; then
6563if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8896 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 rm -rf conftest*
6565 eval "ac_cv_lib_$ac_lib_var=yes"
6566else 8897else
6567 echo "configure: failed program was:" >&5 8898 ac_check_lib_save_LIBS=$LIBS
6568 cat conftest.$ac_ext >&5 8899LIBS="-lutil $LIBS"
6569 rm -rf conftest* 8900cat >conftest.$ac_ext <<_ACEOF
6570 eval "ac_cv_lib_$ac_lib_var=no" 8901#line 8901 "configure"
6571fi 8902#include "confdefs.h"
6572rm -f conftest*
6573LIBS="$ac_save_LIBS"
6574 8903
6575fi 8904/* Override any gcc2 internal prototype to avoid an error. */
6576if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8905#ifdef __cplusplus
6577 echo "$ac_t""yes" 1>&6 8906extern "C"
8907#endif
8908/* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8910char getloadavg ();
8911int
8912main ()
8913{
8914getloadavg ();
8915 ;
8916 return 0;
8917}
8918_ACEOF
8919rm -f conftest.$ac_objext conftest$ac_exeext
8920if { (eval echo "$as_me:8920: \"$ac_link\"") >&5
8921 (eval $ac_link) 2>&5
8922 ac_status=$?
8923 echo "$as_me:8923: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -s conftest$ac_exeext'
8926 { (eval echo "$as_me:8926: \"$ac_try\"") >&5
8927 (eval $ac_try) 2>&5
8928 ac_status=$?
8929 echo "$as_me:8929: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_cv_lib_util_getloadavg=yes
8932else
8933 echo "$as_me: failed program was:" >&5
8934cat conftest.$ac_ext >&5
8935ac_cv_lib_util_getloadavg=no
8936fi
8937rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8938LIBS=$ac_check_lib_save_LIBS
8939fi
8940echo "$as_me:8940: result: $ac_cv_lib_util_getloadavg" >&5
8941echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
8942if test $ac_cv_lib_util_getloadavg = yes; then
6578 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 8943 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
6579else
6580 echo "$ac_t""no" 1>&6
6581fi 8944fi
6582 8945
8946fi
6583 8947
6584if test $ac_have_func = no; then 8948if test $ac_have_func = no; then
6585 # There is a commonly available library for RS/6000 AIX. 8949 # There is a commonly available library for RS/6000 AIX.
6586 # Since it is not a standard part of AIX, it might be installed locally. 8950 # Since it is not a standard part of AIX, it might be installed locally.
6587 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" 8951 ac_getloadavg_LIBS=$LIBS
6588 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 8952 LIBS="-L/usr/local/lib $LIBS"
6589echo "configure:6590: checking for getloadavg in -lgetloadavg" >&5 8953 echo "$as_me:8953: checking for getloadavg in -lgetloadavg" >&5
6590ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` 8954echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
6591if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8955if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
6592 echo $ac_n "(cached) $ac_c" 1>&6 8956 echo $ECHO_N "(cached) $ECHO_C" >&6
6593else 8957else
6594 ac_save_LIBS="$LIBS" 8958 ac_check_lib_save_LIBS=$LIBS
6595LIBS="-lgetloadavg $LIBS" 8959LIBS="-lgetloadavg $LIBS"
6596cat > conftest.$ac_ext <<EOF 8960cat >conftest.$ac_ext <<_ACEOF
6597#line 6598 "configure" 8961#line 8961 "configure"
6598#include "confdefs.h" 8962#include "confdefs.h"
8963
6599/* Override any gcc2 internal prototype to avoid an error. */ 8964/* Override any gcc2 internal prototype to avoid an error. */
8965#ifdef __cplusplus
8966extern "C"
8967#endif
6600/* We use char because int might match the return type of a gcc2 8968/* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */ 8969 builtin and then its argument prototype would still apply. */
6602char getloadavg(); 8970char getloadavg ();
6603 8971int
6604int main() { 8972main ()
6605getloadavg() 8973{
6606; return 0; } 8974getloadavg ();
6607EOF 8975 ;
6608if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8976 return 0;
6609 rm -rf conftest* 8977}
6610 eval "ac_cv_lib_$ac_lib_var=yes" 8978_ACEOF
6611else 8979rm -f conftest.$ac_objext conftest$ac_exeext
6612 echo "configure: failed program was:" >&5 8980if { (eval echo "$as_me:8980: \"$ac_link\"") >&5
6613 cat conftest.$ac_ext >&5 8981 (eval $ac_link) 2>&5
6614 rm -rf conftest* 8982 ac_status=$?
6615 eval "ac_cv_lib_$ac_lib_var=no" 8983 echo "$as_me:8983: \$? = $ac_status" >&5
6616fi 8984 (exit $ac_status); } &&
6617rm -f conftest* 8985 { ac_try='test -s conftest$ac_exeext'
6618LIBS="$ac_save_LIBS" 8986 { (eval echo "$as_me:8986: \"$ac_try\"") >&5
6619 8987 (eval $ac_try) 2>&5
6620fi 8988 ac_status=$?
6621if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8989 echo "$as_me:8989: \$? = $ac_status" >&5
6622 echo "$ac_t""yes" 1>&6 8990 (exit $ac_status); }; }; then
8991 ac_cv_lib_getloadavg_getloadavg=yes
8992else
8993 echo "$as_me: failed program was:" >&5
8994cat conftest.$ac_ext >&5
8995ac_cv_lib_getloadavg_getloadavg=no
8996fi
8997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8998LIBS=$ac_check_lib_save_LIBS
8999fi
9000echo "$as_me:9000: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9001echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9002if test $ac_cv_lib_getloadavg_getloadavg = yes; then
6623 LIBS="-lgetloadavg $LIBS" 9003 LIBS="-lgetloadavg $LIBS"
6624else 9004else
6625 echo "$ac_t""no" 1>&6 9005 LIBS=$ac_getloadavg_LIBS
6626LIBS="$ac_getloadavg_LIBS"
6627fi 9006fi
6628 9007
6629fi 9008fi
6630 9009
6631# Make sure it is really in the library, if we think we found it. 9010# Make sure it is really in the library, if we think we found it,
9011# otherwise set up the replacement function.
9012
6632for ac_func in getloadavg 9013for ac_func in getloadavg
6633do 9014do
6634echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6635echo "configure:6636: checking for $ac_func" >&5 9016echo "$as_me:9016: checking for $ac_func" >&5
6636if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 9017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6637 echo $ac_n "(cached) $ac_c" 1>&6 9018if eval "test \"\${$as_ac_var+set}\" = set"; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
6638else 9020else
6639 cat > conftest.$ac_ext <<EOF 9021 cat >conftest.$ac_ext <<_ACEOF
6640#line 6641 "configure" 9022#line 9022 "configure"
6641#include "confdefs.h" 9023#include "confdefs.h"
6642/* System header to define __stub macros and hopefully few prototypes, 9024/* System header to define __stub macros and hopefully few prototypes,
6643 which can conflict with char $ac_func(); below. */ 9025 which can conflict with char $ac_func (); below. */
6644#include <assert.h> 9026#include <assert.h>
6645/* Override any gcc2 internal prototype to avoid an error. */ 9027/* Override any gcc2 internal prototype to avoid an error. */
9028#ifdef __cplusplus
9029extern "C"
9030#endif
6646/* We use char because int might match the return type of a gcc2 9031/* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */ 9032 builtin and then its argument prototype would still apply. */
6648char $ac_func(); 9033char $ac_func ();
6649 9034char (*f) ();
6650int main() {
6651 9035
9036int
9037main ()
9038{
6652/* The GNU C library defines this for functions which it implements 9039/* The GNU C library defines this for functions which it implements
6653 to always fail with ENOSYS. Some functions are actually named 9040 to always fail with ENOSYS. Some functions are actually named
6654 something starting with __ and the normal name is an alias. */ 9041 something starting with __ and the normal name is an alias. */
6655#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6656choke me 9043choke me
6657#else 9044#else
6658$ac_func(); 9045f = $ac_func;
6659#endif 9046#endif
6660 9047
6661; return 0; } 9048 ;
6662EOF 9049 return 0;
6663if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9050}
6664 rm -rf conftest* 9051_ACEOF
6665 eval "ac_cv_func_$ac_func=yes" 9052rm -f conftest.$ac_objext conftest$ac_exeext
9053if { (eval echo "$as_me:9053: \"$ac_link\"") >&5
9054 (eval $ac_link) 2>&5
9055 ac_status=$?
9056 echo "$as_me:9056: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (eval echo "$as_me:9059: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:9062: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 eval "$as_ac_var=yes"
6666else 9065else
6667 echo "configure: failed program was:" >&5 9066 echo "$as_me: failed program was:" >&5
6668 cat conftest.$ac_ext >&5 9067cat conftest.$ac_ext >&5
6669 rm -rf conftest* 9068eval "$as_ac_var=no"
6670 eval "ac_cv_func_$ac_func=no"
6671fi 9069fi
6672rm -f conftest* 9070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6673fi 9071fi
6674 9072echo "$as_me:9072: result: `eval echo '${'$as_ac_var'}'`" >&5
6675if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 9073echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6676 echo "$ac_t""yes" 1>&6 9074if test `eval echo '${'$as_ac_var'}'` = yes; then
6677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 9075 cat >>confdefs.h <<EOF
6678 cat >> confdefs.h <<EOF 9076#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6679#define $ac_tr_func 1
6680EOF 9077EOF
6681
6682else
6683 echo "$ac_t""no" 1>&6
6684LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
6685fi
6686done
6687
6688 9078
9079else
9080 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
6689 9081
6690if test $ac_cv_func_getloadavg = yes; then 9082cat >>confdefs.h <<\EOF
6691 cat >> confdefs.h <<\EOF 9083#define C_GETLOADAVG 1
6692#define HAVE_GETLOADAVG 1
6693EOF 9084EOF
6694 9085
6695 ac_have_func=yes 9086# Figure out what our getloadavg.c needs.
6696else 9087ac_have_func=no
6697 # Figure out what our getloadavg.c needs. 9088echo "$as_me:9088: checking for sys/dg_sys_info.h" >&5
6698 ac_have_func=no 9089echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
6699 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` 9090if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6700echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 9091 echo $ECHO_N "(cached) $ECHO_C" >&6
6701echo "configure:6702: checking for sys/dg_sys_info.h" >&5
6702if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6703 echo $ac_n "(cached) $ac_c" 1>&6
6704else 9092else
6705 cat > conftest.$ac_ext <<EOF 9093 cat >conftest.$ac_ext <<_ACEOF
6706#line 6707 "configure" 9094#line 9094 "configure"
6707#include "confdefs.h" 9095#include "confdefs.h"
6708#include <sys/dg_sys_info.h> 9096#include <sys/dg_sys_info.h>
6709EOF 9097_ACEOF
6710ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9098if { (eval echo "$as_me:9098: \"$ac_cpp conftest.$ac_ext\"") >&5
6711{ (eval echo configure:6712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6712ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9100 ac_status=$?
6713if test -z "$ac_err"; then 9101 egrep -v '^ *\+' conftest.er1 >conftest.err
6714 rm -rf conftest* 9102 rm -f conftest.er1
6715 eval "ac_cv_header_$ac_safe=yes" 9103 cat conftest.err >&5
9104 echo "$as_me:9104: \$? = $ac_status" >&5
9105 (exit $ac_status); } >/dev/null; then
9106 if test -s conftest.err; then
9107 ac_cpp_err=$ac_c_preproc_warn_flag
9108 else
9109 ac_cpp_err=
9110 fi
9111else
9112 ac_cpp_err=yes
9113fi
9114if test -z "$ac_cpp_err"; then
9115 ac_cv_header_sys_dg_sys_info_h=yes
6716else 9116else
6717 echo "$ac_err" >&5 9117 echo "$as_me: failed program was:" >&5
6718 echo "configure: failed program was:" >&5
6719 cat conftest.$ac_ext >&5 9118 cat conftest.$ac_ext >&5
6720 rm -rf conftest* 9119 ac_cv_header_sys_dg_sys_info_h=no
6721 eval "ac_cv_header_$ac_safe=no"
6722fi 9120fi
6723rm -f conftest* 9121rm -f conftest.err conftest.$ac_ext
6724fi 9122fi
6725if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9123echo "$as_me:9123: result: $ac_cv_header_sys_dg_sys_info_h" >&5
6726 echo "$ac_t""yes" 1>&6 9124echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
6727 ac_have_func=yes; cat >> confdefs.h <<\EOF 9125if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9126 ac_have_func=yes
9127
9128cat >>confdefs.h <<\EOF
6728#define DGUX 1 9129#define DGUX 1
6729EOF 9130EOF
6730 9131
6731 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 9132echo "$as_me:9132: checking for dg_sys_info in -ldgc" >&5
6732echo "configure:6733: checking for dg_sys_info in -ldgc" >&5 9133echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
6733ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` 9134if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
6734if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 9135 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 echo $ac_n "(cached) $ac_c" 1>&6
6736else 9136else
6737 ac_save_LIBS="$LIBS" 9137 ac_check_lib_save_LIBS=$LIBS
6738LIBS="-ldgc $LIBS" 9138LIBS="-ldgc $LIBS"
6739cat > conftest.$ac_ext <<EOF 9139cat >conftest.$ac_ext <<_ACEOF
6740#line 6741 "configure" 9140#line 9140 "configure"
6741#include "confdefs.h" 9141#include "confdefs.h"
9142
6742/* Override any gcc2 internal prototype to avoid an error. */ 9143/* Override any gcc2 internal prototype to avoid an error. */
9144#ifdef __cplusplus
9145extern "C"
9146#endif
6743/* We use char because int might match the return type of a gcc2 9147/* We use char because int might match the return type of a gcc2
6744 builtin and then its argument prototype would still apply. */ 9148 builtin and then its argument prototype would still apply. */
6745char dg_sys_info(); 9149char dg_sys_info ();
6746 9150int
6747int main() { 9151main ()
6748dg_sys_info() 9152{
6749; return 0; } 9153dg_sys_info ();
9154 ;
9155 return 0;
9156}
9157_ACEOF
9158rm -f conftest.$ac_objext conftest$ac_exeext
9159if { (eval echo "$as_me:9159: \"$ac_link\"") >&5
9160 (eval $ac_link) 2>&5
9161 ac_status=$?
9162 echo "$as_me:9162: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -s conftest$ac_exeext'
9165 { (eval echo "$as_me:9165: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:9168: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_lib_dgc_dg_sys_info=yes
9171else
9172 echo "$as_me: failed program was:" >&5
9173cat conftest.$ac_ext >&5
9174ac_cv_lib_dgc_dg_sys_info=no
9175fi
9176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9177LIBS=$ac_check_lib_save_LIBS
9178fi
9179echo "$as_me:9179: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9180echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9181if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9182 cat >>confdefs.h <<EOF
9183#define HAVE_LIBDGC 1
6750EOF 9184EOF
6751if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9185
6752 rm -rf conftest* 9186 LIBS="-ldgc $LIBS"
6753 eval "ac_cv_lib_$ac_lib_var=yes"
6754else
6755 echo "configure: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6757 rm -rf conftest*
6758 eval "ac_cv_lib_$ac_lib_var=no"
6759fi
6760rm -f conftest*
6761LIBS="$ac_save_LIBS"
6762 9187
6763fi 9188fi
6764if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6765 echo "$ac_t""yes" 1>&6
6766 ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6767 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6768 cat >> confdefs.h <<EOF
6769#define $ac_tr_lib 1
6770EOF
6771 9189
6772 LIBS="-ldgc $LIBS" 9190fi
6773 9191
9192echo "$as_me:9192: checking for locale.h" >&5
9193echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9194if test "${ac_cv_header_locale_h+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196else
9197 cat >conftest.$ac_ext <<_ACEOF
9198#line 9198 "configure"
9199#include "confdefs.h"
9200#include <locale.h>
9201_ACEOF
9202if { (eval echo "$as_me:9202: \"$ac_cpp conftest.$ac_ext\"") >&5
9203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9204 ac_status=$?
9205 egrep -v '^ *\+' conftest.er1 >conftest.err
9206 rm -f conftest.er1
9207 cat conftest.err >&5
9208 echo "$as_me:9208: \$? = $ac_status" >&5
9209 (exit $ac_status); } >/dev/null; then
9210 if test -s conftest.err; then
9211 ac_cpp_err=$ac_c_preproc_warn_flag
9212 else
9213 ac_cpp_err=
9214 fi
9215else
9216 ac_cpp_err=yes
9217fi
9218if test -z "$ac_cpp_err"; then
9219 ac_cv_header_locale_h=yes
6774else 9220else
6775 echo "$ac_t""no" 1>&6 9221 echo "$as_me: failed program was:" >&5
9222 cat conftest.$ac_ext >&5
9223 ac_cv_header_locale_h=no
9224fi
9225rm -f conftest.err conftest.$ac_ext
6776fi 9226fi
9227echo "$as_me:9227: result: $ac_cv_header_locale_h" >&5
9228echo "${ECHO_T}$ac_cv_header_locale_h" >&6
6777 9229
9230for ac_func in setlocale
9231do
9232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9233echo "$as_me:9233: checking for $ac_func" >&5
9234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9235if eval "test \"\${$as_ac_var+set}\" = set"; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
6778else 9237else
6779 echo "$ac_t""no" 1>&6 9238 cat >conftest.$ac_ext <<_ACEOF
9239#line 9239 "configure"
9240#include "confdefs.h"
9241/* System header to define __stub macros and hopefully few prototypes,
9242 which can conflict with char $ac_func (); below. */
9243#include <assert.h>
9244/* Override any gcc2 internal prototype to avoid an error. */
9245#ifdef __cplusplus
9246extern "C"
9247#endif
9248/* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9250char $ac_func ();
9251char (*f) ();
9252
9253int
9254main ()
9255{
9256/* The GNU C library defines this for functions which it implements
9257 to always fail with ENOSYS. Some functions are actually named
9258 something starting with __ and the normal name is an alias. */
9259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9260choke me
9261#else
9262f = $ac_func;
9263#endif
9264
9265 ;
9266 return 0;
9267}
9268_ACEOF
9269rm -f conftest.$ac_objext conftest$ac_exeext
9270if { (eval echo "$as_me:9270: \"$ac_link\"") >&5
9271 (eval $ac_link) 2>&5
9272 ac_status=$?
9273 echo "$as_me:9273: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -s conftest$ac_exeext'
9276 { (eval echo "$as_me:9276: \"$ac_try\"") >&5
9277 (eval $ac_try) 2>&5
9278 ac_status=$?
9279 echo "$as_me:9279: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 eval "$as_ac_var=yes"
9282else
9283 echo "$as_me: failed program was:" >&5
9284cat conftest.$ac_ext >&5
9285eval "$as_ac_var=no"
9286fi
9287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9288fi
9289echo "$as_me:9289: result: `eval echo '${'$as_ac_var'}'`" >&5
9290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9291if test `eval echo '${'$as_ac_var'}'` = yes; then
9292 cat >>confdefs.h <<EOF
9293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9294EOF
9295
6780fi 9296fi
9297done
6781 9298
9299# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9300# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9301# Irix 4.0.5F has the header but not the library.
9302if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
9303 ac_have_func=yes
6782 9304
6783 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it 9305cat >>confdefs.h <<\EOF
6784 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
6785 # Irix 4.0.5F has the header but not the library.
6786 if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then
6787 ac_have_func=yes; cat >> confdefs.h <<\EOF
6788#define SVR4 1 9306#define SVR4 1
6789EOF 9307EOF
6790 9308
6791 fi 9309fi
6792 9310
6793 if test $ac_have_func = no; then 9311if test $ac_have_func = no; then
6794 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` 9312 echo "$as_me:9312: checking for inq_stats/cpustats.h" >&5
6795echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 9313echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
6796echo "configure:6797: checking for inq_stats/cpustats.h" >&5 9314if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
6797if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 9315 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 echo $ac_n "(cached) $ac_c" 1>&6
6799else 9316else
6800 cat > conftest.$ac_ext <<EOF 9317 cat >conftest.$ac_ext <<_ACEOF
6801#line 6802 "configure" 9318#line 9318 "configure"
6802#include "confdefs.h" 9319#include "confdefs.h"
6803#include <inq_stats/cpustats.h> 9320#include <inq_stats/cpustats.h>
6804EOF 9321_ACEOF
6805ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9322if { (eval echo "$as_me:9322: \"$ac_cpp conftest.$ac_ext\"") >&5
6806{ (eval echo configure:6807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6807ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9324 ac_status=$?
6808if test -z "$ac_err"; then 9325 egrep -v '^ *\+' conftest.er1 >conftest.err
6809 rm -rf conftest* 9326 rm -f conftest.er1
6810 eval "ac_cv_header_$ac_safe=yes" 9327 cat conftest.err >&5
9328 echo "$as_me:9328: \$? = $ac_status" >&5
9329 (exit $ac_status); } >/dev/null; then
9330 if test -s conftest.err; then
9331 ac_cpp_err=$ac_c_preproc_warn_flag
9332 else
9333 ac_cpp_err=
9334 fi
6811else 9335else
6812 echo "$ac_err" >&5 9336 ac_cpp_err=yes
6813 echo "configure: failed program was:" >&5 9337fi
9338if test -z "$ac_cpp_err"; then
9339 ac_cv_header_inq_stats_cpustats_h=yes
9340else
9341 echo "$as_me: failed program was:" >&5
6814 cat conftest.$ac_ext >&5 9342 cat conftest.$ac_ext >&5
6815 rm -rf conftest* 9343 ac_cv_header_inq_stats_cpustats_h=no
6816 eval "ac_cv_header_$ac_safe=no"
6817fi 9344fi
6818rm -f conftest* 9345rm -f conftest.err conftest.$ac_ext
6819fi 9346fi
6820if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9347echo "$as_me:9347: result: $ac_cv_header_inq_stats_cpustats_h" >&5
6821 echo "$ac_t""yes" 1>&6 9348echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
6822 ac_have_func=yes; cat >> confdefs.h <<\EOF 9349if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9350 ac_have_func=yes
9351
9352cat >>confdefs.h <<\EOF
6823#define UMAX 1 9353#define UMAX 1
6824EOF 9354EOF
6825 9355
6826 cat >> confdefs.h <<\EOF 9356cat >>confdefs.h <<\EOF
6827#define UMAX4_3 1 9357#define UMAX4_3 1
6828EOF 9358EOF
6829 9359
6830else
6831 echo "$ac_t""no" 1>&6
6832fi 9360fi
6833 9361
6834 fi 9362fi
6835 9363
6836 if test $ac_have_func = no; then 9364if test $ac_have_func = no; then
6837 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` 9365 echo "$as_me:9365: checking for sys/cpustats.h" >&5
6838echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 9366echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
6839echo "configure:6840: checking for sys/cpustats.h" >&5 9367if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
6840if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 9368 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 echo $ac_n "(cached) $ac_c" 1>&6
6842else 9369else
6843 cat > conftest.$ac_ext <<EOF 9370 cat >conftest.$ac_ext <<_ACEOF
6844#line 6845 "configure" 9371#line 9371 "configure"
6845#include "confdefs.h" 9372#include "confdefs.h"
6846#include <sys/cpustats.h> 9373#include <sys/cpustats.h>
6847EOF 9374_ACEOF
6848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9375if { (eval echo "$as_me:9375: \"$ac_cpp conftest.$ac_ext\"") >&5
6849{ (eval echo configure:6850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6850ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9377 ac_status=$?
6851if test -z "$ac_err"; then 9378 egrep -v '^ *\+' conftest.er1 >conftest.err
6852 rm -rf conftest* 9379 rm -f conftest.er1
6853 eval "ac_cv_header_$ac_safe=yes" 9380 cat conftest.err >&5
9381 echo "$as_me:9381: \$? = $ac_status" >&5
9382 (exit $ac_status); } >/dev/null; then
9383 if test -s conftest.err; then
9384 ac_cpp_err=$ac_c_preproc_warn_flag
9385 else
9386 ac_cpp_err=
9387 fi
9388else
9389 ac_cpp_err=yes
9390fi
9391if test -z "$ac_cpp_err"; then
9392 ac_cv_header_sys_cpustats_h=yes
6854else 9393else
6855 echo "$ac_err" >&5 9394 echo "$as_me: failed program was:" >&5
6856 echo "configure: failed program was:" >&5
6857 cat conftest.$ac_ext >&5 9395 cat conftest.$ac_ext >&5
6858 rm -rf conftest* 9396 ac_cv_header_sys_cpustats_h=no
6859 eval "ac_cv_header_$ac_safe=no"
6860fi 9397fi
6861rm -f conftest* 9398rm -f conftest.err conftest.$ac_ext
6862fi 9399fi
6863if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9400echo "$as_me:9400: result: $ac_cv_header_sys_cpustats_h" >&5
6864 echo "$ac_t""yes" 1>&6 9401echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
6865 ac_have_func=yes; cat >> confdefs.h <<\EOF 9402if test $ac_cv_header_sys_cpustats_h = yes; then
9403 ac_have_func=yes; cat >>confdefs.h <<\EOF
6866#define UMAX 1 9404#define UMAX 1
6867EOF 9405EOF
6868 9406
6869else
6870 echo "$ac_t""no" 1>&6
6871fi 9407fi
6872 9408
6873 fi 9409fi
6874 9410
6875 if test $ac_have_func = no; then 9411if test $ac_have_func = no; then
6876 for ac_hdr in mach/mach.h 9412
9413for ac_header in mach/mach.h
6877do 9414do
6878ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6879echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9416echo "$as_me:9416: checking for $ac_header" >&5
6880echo "configure:6881: checking for $ac_hdr" >&5 9417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6881if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 9418if eval "test \"\${$as_ac_Header+set}\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6 9419 echo $ECHO_N "(cached) $ECHO_C" >&6
6883else 9420else
6884 cat > conftest.$ac_ext <<EOF 9421 cat >conftest.$ac_ext <<_ACEOF
6885#line 6886 "configure" 9422#line 9422 "configure"
6886#include "confdefs.h" 9423#include "confdefs.h"
6887#include <$ac_hdr> 9424#include <$ac_header>
6888EOF 9425_ACEOF
6889ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9426if { (eval echo "$as_me:9426: \"$ac_cpp conftest.$ac_ext\"") >&5
6890{ (eval echo configure:6891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6891ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9428 ac_status=$?
6892if test -z "$ac_err"; then 9429 egrep -v '^ *\+' conftest.er1 >conftest.err
6893 rm -rf conftest* 9430 rm -f conftest.er1
6894 eval "ac_cv_header_$ac_safe=yes" 9431 cat conftest.err >&5
6895else 9432 echo "$as_me:9432: \$? = $ac_status" >&5
6896 echo "$ac_err" >&5 9433 (exit $ac_status); } >/dev/null; then
6897 echo "configure: failed program was:" >&5 9434 if test -s conftest.err; then
9435 ac_cpp_err=$ac_c_preproc_warn_flag
9436 else
9437 ac_cpp_err=
9438 fi
9439else
9440 ac_cpp_err=yes
9441fi
9442if test -z "$ac_cpp_err"; then
9443 eval "$as_ac_Header=yes"
9444else
9445 echo "$as_me: failed program was:" >&5
6898 cat conftest.$ac_ext >&5 9446 cat conftest.$ac_ext >&5
6899 rm -rf conftest* 9447 eval "$as_ac_Header=no"
6900 eval "ac_cv_header_$ac_safe=no"
6901fi 9448fi
6902rm -f conftest* 9449rm -f conftest.err conftest.$ac_ext
6903fi 9450fi
6904if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9451echo "$as_me:9451: result: `eval echo '${'$as_ac_Header'}'`" >&5
6905 echo "$ac_t""yes" 1>&6 9452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6906 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 9453if test `eval echo '${'$as_ac_Header'}'` = yes; then
6907 cat >> confdefs.h <<EOF 9454 cat >>confdefs.h <<EOF
6908#define $ac_tr_hdr 1 9455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6909EOF 9456EOF
6910 9457
6911else
6912 echo "$ac_t""no" 1>&6
6913fi 9458fi
6914done 9459done
6915 9460
6916 fi 9461fi
6917 9462
6918 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 9463for ac_header in nlist.h
6919echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 9464do
6920echo "configure:6921: checking for nlist.h" >&5 9465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6921if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 9466echo "$as_me:9466: checking for $ac_header" >&5
6922 echo $ac_n "(cached) $ac_c" 1>&6 9467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9468if eval "test \"\${$as_ac_Header+set}\" = set"; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470else
9471 cat >conftest.$ac_ext <<_ACEOF
9472#line 9472 "configure"
9473#include "confdefs.h"
9474#include <$ac_header>
9475_ACEOF
9476if { (eval echo "$as_me:9476: \"$ac_cpp conftest.$ac_ext\"") >&5
9477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9478 ac_status=$?
9479 egrep -v '^ *\+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:9482: \$? = $ac_status" >&5
9483 (exit $ac_status); } >/dev/null; then
9484 if test -s conftest.err; then
9485 ac_cpp_err=$ac_c_preproc_warn_flag
9486 else
9487 ac_cpp_err=
9488 fi
6923else 9489else
6924 cat > conftest.$ac_ext <<EOF 9490 ac_cpp_err=yes
6925#line 6926 "configure" 9491fi
6926#include "confdefs.h" 9492if test -z "$ac_cpp_err"; then
6927#include <nlist.h> 9493 eval "$as_ac_Header=yes"
6928EOF
6929ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6930{ (eval echo configure:6931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6931ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6932if test -z "$ac_err"; then
6933 rm -rf conftest*
6934 eval "ac_cv_header_$ac_safe=yes"
6935else 9494else
6936 echo "$ac_err" >&5 9495 echo "$as_me: failed program was:" >&5
6937 echo "configure: failed program was:" >&5
6938 cat conftest.$ac_ext >&5 9496 cat conftest.$ac_ext >&5
6939 rm -rf conftest* 9497 eval "$as_ac_Header=no"
6940 eval "ac_cv_header_$ac_safe=no"
6941fi 9498fi
6942rm -f conftest* 9499rm -f conftest.err conftest.$ac_ext
6943fi 9500fi
6944if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9501echo "$as_me:9501: result: `eval echo '${'$as_ac_Header'}'`" >&5
6945 echo "$ac_t""yes" 1>&6 9502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6946 cat >> confdefs.h <<\EOF 9503if test `eval echo '${'$as_ac_Header'}'` = yes; then
6947#define NLIST_STRUCT 1 9504 cat >>confdefs.h <<EOF
9505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6948EOF 9506EOF
6949 9507 echo "$as_me:9507: checking for struct nlist.n_un.n_name" >&5
6950 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 9508echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
6951echo "configure:6952: checking for n_un in struct nlist" >&5 9509if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
6952if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then 9510 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 echo $ac_n "(cached) $ac_c" 1>&6
6954else 9511else
6955 cat > conftest.$ac_ext <<EOF 9512 cat >conftest.$ac_ext <<_ACEOF
6956#line 6957 "configure" 9513#line 9513 "configure"
6957#include "confdefs.h" 9514#include "confdefs.h"
6958#include <nlist.h> 9515#include <nlist.h>
6959int main() {
6960struct nlist n; n.n_un.n_name = 0;
6961; return 0; }
6962EOF
6963if { (eval echo configure:6964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6964 rm -rf conftest*
6965 ac_cv_struct_nlist_n_un=yes
6966else
6967 echo "configure: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6969 rm -rf conftest*
6970 ac_cv_struct_nlist_n_un=no
6971fi
6972rm -f conftest*
6973fi
6974 9516
6975echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6 9517int
6976 if test $ac_cv_struct_nlist_n_un = yes; then 9518main ()
6977 cat >> confdefs.h <<\EOF 9519{
9520static struct nlist ac_aggr;
9521if (ac_aggr.n_un.n_name)
9522return 0;
9523 ;
9524 return 0;
9525}
9526_ACEOF
9527rm -f conftest.$ac_objext
9528if { (eval echo "$as_me:9528: \"$ac_compile\"") >&5
9529 (eval $ac_compile) 2>&5
9530 ac_status=$?
9531 echo "$as_me:9531: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -s conftest.$ac_objext'
9534 { (eval echo "$as_me:9534: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:9537: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_member_struct_nlist_n_un_n_name=yes
9540else
9541 echo "$as_me: failed program was:" >&5
9542cat conftest.$ac_ext >&5
9543ac_cv_member_struct_nlist_n_un_n_name=no
9544fi
9545rm -f conftest.$ac_objext conftest.$ac_ext
9546fi
9547echo "$as_me:9547: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9548echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9549if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9550
9551cat >>confdefs.h <<EOF
9552#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9553EOF
9554
9555cat >>confdefs.h <<\EOF
6978#define NLIST_NAME_UNION 1 9556#define NLIST_NAME_UNION 1
6979EOF 9557EOF
6980 9558
6981 fi
6982
6983else
6984 echo "$ac_t""no" 1>&6
6985fi 9559fi
6986fi # Do not have getloadavg in system libraries. 9560
9561fi
9562done
9563
9564fi
9565done
6987 9566
6988# Some definitions of getloadavg require that the program be installed setgid. 9567# Some definitions of getloadavg require that the program be installed setgid.
6989echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 9568echo "$as_me:9568: checking whether getloadavg requires setgid" >&5
6990echo "configure:6991: checking whether getloadavg requires setgid" >&5 9569echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
6991if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then 9570if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
6992 echo $ac_n "(cached) $ac_c" 1>&6 9571 echo $ECHO_N "(cached) $ECHO_C" >&6
6993else 9572else
6994 cat > conftest.$ac_ext <<EOF 9573 cat >conftest.$ac_ext <<_ACEOF
6995#line 6996 "configure" 9574#line 9574 "configure"
6996#include "confdefs.h" 9575#include "confdefs.h"
6997#include "$srcdir/getloadavg.c" 9576#include "$srcdir/getloadavg.c"
6998#ifdef LDAV_PRIVILEGED 9577#ifdef LDAV_PRIVILEGED
6999Yowza Am I SETGID yet 9578Yowza Am I SETGID yet
7000#endif 9579#endif
7001EOF 9580_ACEOF
7002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7003 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then 9582 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
7004 rm -rf conftest*
7005 ac_cv_func_getloadavg_setgid=yes 9583 ac_cv_func_getloadavg_setgid=yes
7006else 9584else
7007 rm -rf conftest*
7008 ac_cv_func_getloadavg_setgid=no 9585 ac_cv_func_getloadavg_setgid=no
7009fi 9586fi
7010rm -f conftest* 9587rm -f conftest*
7011 9588
7012fi 9589fi
7013 9590echo "$as_me:9590: result: $ac_cv_func_getloadavg_setgid" >&5
7014echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6 9591echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
7015if test $ac_cv_func_getloadavg_setgid = yes; then 9592if test $ac_cv_func_getloadavg_setgid = yes; then
7016 NEED_SETGID=true; cat >> confdefs.h <<\EOF 9593 NEED_SETGID=true
9594
9595cat >>confdefs.h <<\EOF
7017#define GETLOADAVG_PRIVILEGED 1 9596#define GETLOADAVG_PRIVILEGED 1
7018EOF 9597EOF
7019 9598
@@ -7022,12 +9601,12 @@ else
7022fi 9601fi
7023 9602
7024if test $ac_cv_func_getloadavg_setgid = yes; then 9603if test $ac_cv_func_getloadavg_setgid = yes; then
7025 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 9604 echo "$as_me:9604: checking group of /dev/kmem" >&5
7026echo "configure:7027: checking group of /dev/kmem" >&5 9605echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
7027if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then 9606if test "${ac_cv_group_kmem+set}" = set; then
7028 echo $ac_n "(cached) $ac_c" 1>&6 9607 echo $ECHO_N "(cached) $ECHO_C" >&6
7029else 9608else
7030 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 9609 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
7031 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 9610 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
7032 # If we got an error (system does not support symlinks), try without -L. 9611 # If we got an error (system does not support symlinks), try without -L.
7033 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` 9612 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
@@ -7037,638 +9616,823 @@ else
7037 / /s/.* //;p;'` 9616 / /s/.* //;p;'`
7038 9617
7039fi 9618fi
7040 9619echo "$as_me:9619: result: $ac_cv_group_kmem" >&5
7041echo "$ac_t""$ac_cv_group_kmem" 1>&6 9620echo "${ECHO_T}$ac_cv_group_kmem" >&6
7042 KMEM_GROUP=$ac_cv_group_kmem 9621 KMEM_GROUP=$ac_cv_group_kmem
7043fi 9622fi
9623if test "x$ac_save_LIBS" = x; then
9624 GETLOADAVG_LIBS=$LIBS
9625else
9626 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9627fi
9628LIBS=$ac_save_LIBS
7044 9629
7045 9630echo "$as_me:9630: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7046echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 9631echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
7047echo "configure:7048: checking for _LARGEFILE_SOURCE value needed for large files" >&5 9632if test "${ac_cv_sys_largefile_source+set}" = set; then
7048if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then 9633 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 echo $ac_n "(cached) $ac_c" 1>&6
7050else 9634else
9635 while :; do
7051 ac_cv_sys_largefile_source=no 9636 ac_cv_sys_largefile_source=no
7052 cat > conftest.$ac_ext <<EOF 9637 cat >conftest.$ac_ext <<_ACEOF
7053#line 7054 "configure" 9638#line 9638 "configure"
7054#include "confdefs.h" 9639#include "confdefs.h"
7055#include <stdio.h> 9640#include <stdio.h>
7056int main() { 9641int
9642main ()
9643{
7057return !fseeko; 9644return !fseeko;
7058; return 0; } 9645 ;
7059EOF 9646 return 0;
7060if { (eval echo configure:7061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9647}
7061 : 9648_ACEOF
9649rm -f conftest.$ac_objext
9650if { (eval echo "$as_me:9650: \"$ac_compile\"") >&5
9651 (eval $ac_compile) 2>&5
9652 ac_status=$?
9653 echo "$as_me:9653: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -s conftest.$ac_objext'
9656 { (eval echo "$as_me:9656: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:9659: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
9661 break
7062else 9662else
7063 echo "configure: failed program was:" >&5 9663 echo "$as_me: failed program was:" >&5
7064 cat conftest.$ac_ext >&5 9664cat conftest.$ac_ext >&5
7065 rm -rf conftest* 9665fi
7066 cat > conftest.$ac_ext <<EOF 9666rm -f conftest.$ac_objext conftest.$ac_ext
7067#line 7068 "configure" 9667 cat >conftest.$ac_ext <<_ACEOF
9668#line 9668 "configure"
7068#include "confdefs.h" 9669#include "confdefs.h"
7069#define _LARGEFILE_SOURCE 1 9670#define _LARGEFILE_SOURCE 1
7070#include <stdio.h> 9671#include <stdio.h>
7071 9672int
7072int main() { 9673main ()
9674{
7073return !fseeko; 9675return !fseeko;
7074; return 0; } 9676 ;
7075EOF 9677 return 0;
7076if { (eval echo configure:7077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9678}
7077 rm -rf conftest* 9679_ACEOF
7078 ac_cv_sys_largefile_source=1 9680rm -f conftest.$ac_objext
7079else 9681if { (eval echo "$as_me:9681: \"$ac_compile\"") >&5
7080 echo "configure: failed program was:" >&5 9682 (eval $ac_compile) 2>&5
7081 cat conftest.$ac_ext >&5 9683 ac_status=$?
7082fi 9684 echo "$as_me:9684: \$? = $ac_status" >&5
7083rm -f conftest* 9685 (exit $ac_status); } &&
7084fi 9686 { ac_try='test -s conftest.$ac_objext'
7085rm -f conftest* 9687 { (eval echo "$as_me:9687: \"$ac_try\"") >&5
9688 (eval $ac_try) 2>&5
9689 ac_status=$?
9690 echo "$as_me:9690: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_sys_largefile_source=1; break
9693else
9694 echo "$as_me: failed program was:" >&5
9695cat conftest.$ac_ext >&5
9696fi
9697rm -f conftest.$ac_objext conftest.$ac_ext
9698 break
9699done
7086fi 9700fi
9701echo "$as_me:9701: result: $ac_cv_sys_largefile_source" >&5
9702echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9703if test "$ac_cv_sys_largefile_source" != no; then
7087 9704
7088echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 9705cat >>confdefs.h <<EOF
7089 if test "$ac_cv_sys_largefile_source" != no; then
7090 cat >> confdefs.h <<EOF
7091#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 9706#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7092EOF 9707EOF
7093 9708
7094 fi 9709fi
7095 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 9710rm -f conftest*
7096 # in glibc 2.1.3, but that breaks too many other things.
7097 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7098 9711
7099 echo $ac_n "checking for fseeko""... $ac_c" 1>&6 9712# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7100echo "configure:7101: checking for fseeko" >&5 9713# in glibc 2.1.3, but that breaks too many other things.
7101if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then 9714# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7102 echo $ac_n "(cached) $ac_c" 1>&6 9715echo "$as_me:9715: checking for fseeko" >&5
9716echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9717if test "${ac_cv_func_fseeko+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
7103else 9719else
7104 ac_cv_func_fseeko=no 9720 cat >conftest.$ac_ext <<_ACEOF
7105 cat > conftest.$ac_ext <<EOF 9721#line 9721 "configure"
7106#line 7107 "configure"
7107#include "confdefs.h" 9722#include "confdefs.h"
7108#include <stdio.h> 9723#include <stdio.h>
7109int main() { 9724int
9725main ()
9726{
7110return fseeko && fseeko (stdin, 0, 0); 9727return fseeko && fseeko (stdin, 0, 0);
7111; return 0; } 9728 ;
7112EOF 9729 return 0;
7113if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9730}
7114 rm -rf conftest* 9731_ACEOF
9732rm -f conftest.$ac_objext conftest$ac_exeext
9733if { (eval echo "$as_me:9733: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>&5
9735 ac_status=$?
9736 echo "$as_me:9736: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -s conftest$ac_exeext'
9739 { (eval echo "$as_me:9739: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:9742: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
7115 ac_cv_func_fseeko=yes 9744 ac_cv_func_fseeko=yes
7116else 9745else
7117 echo "configure: failed program was:" >&5 9746 echo "$as_me: failed program was:" >&5
7118 cat conftest.$ac_ext >&5 9747cat conftest.$ac_ext >&5
9748ac_cv_func_fseeko=no
7119fi 9749fi
7120rm -f conftest* 9750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7121fi 9751fi
9752echo "$as_me:9752: result: $ac_cv_func_fseeko" >&5
9753echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9754if test $ac_cv_func_fseeko = yes; then
7122 9755
7123echo "$ac_t""$ac_cv_func_fseeko" 1>&6 9756cat >>confdefs.h <<\EOF
7124 if test $ac_cv_func_fseeko != no; then
7125 cat >> confdefs.h <<\EOF
7126#define HAVE_FSEEKO 1 9757#define HAVE_FSEEKO 1
7127EOF 9758EOF
7128 9759
7129 fi 9760fi
7130 9761
7131# UNIX98 PTYs. 9762# UNIX98 PTYs.
9763
7132for ac_func in grantpt 9764for ac_func in grantpt
7133do 9765do
7134echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7135echo "configure:7136: checking for $ac_func" >&5 9767echo "$as_me:9767: checking for $ac_func" >&5
7136if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 9768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7137 echo $ac_n "(cached) $ac_c" 1>&6 9769if eval "test \"\${$as_ac_var+set}\" = set"; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
7138else 9771else
7139 cat > conftest.$ac_ext <<EOF 9772 cat >conftest.$ac_ext <<_ACEOF
7140#line 7141 "configure" 9773#line 9773 "configure"
7141#include "confdefs.h" 9774#include "confdefs.h"
7142/* System header to define __stub macros and hopefully few prototypes, 9775/* System header to define __stub macros and hopefully few prototypes,
7143 which can conflict with char $ac_func(); below. */ 9776 which can conflict with char $ac_func (); below. */
7144#include <assert.h> 9777#include <assert.h>
7145/* Override any gcc2 internal prototype to avoid an error. */ 9778/* Override any gcc2 internal prototype to avoid an error. */
9779#ifdef __cplusplus
9780extern "C"
9781#endif
7146/* We use char because int might match the return type of a gcc2 9782/* We use char because int might match the return type of a gcc2
7147 builtin and then its argument prototype would still apply. */ 9783 builtin and then its argument prototype would still apply. */
7148char $ac_func(); 9784char $ac_func ();
7149 9785char (*f) ();
7150int main() {
7151 9786
9787int
9788main ()
9789{
7152/* The GNU C library defines this for functions which it implements 9790/* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named 9791 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */ 9792 something starting with __ and the normal name is an alias. */
7155#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9793#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156choke me 9794choke me
7157#else 9795#else
7158$ac_func(); 9796f = $ac_func;
7159#endif 9797#endif
7160 9798
7161; return 0; } 9799 ;
9800 return 0;
9801}
9802_ACEOF
9803rm -f conftest.$ac_objext conftest$ac_exeext
9804if { (eval echo "$as_me:9804: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>&5
9806 ac_status=$?
9807 echo "$as_me:9807: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -s conftest$ac_exeext'
9810 { (eval echo "$as_me:9810: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:9813: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 eval "$as_ac_var=yes"
9816else
9817 echo "$as_me: failed program was:" >&5
9818cat conftest.$ac_ext >&5
9819eval "$as_ac_var=no"
9820fi
9821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9822fi
9823echo "$as_me:9823: result: `eval echo '${'$as_ac_var'}'`" >&5
9824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9825if test `eval echo '${'$as_ac_var'}'` = yes; then
9826 cat >>confdefs.h <<EOF
9827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7162EOF 9828EOF
7163if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7164 rm -rf conftest*
7165 eval "ac_cv_func_$ac_func=yes"
7166else
7167 echo "configure: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7169 rm -rf conftest*
7170 eval "ac_cv_func_$ac_func=no"
7171fi
7172rm -f conftest*
7173fi
7174 9829
7175if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7178 cat >> confdefs.h <<EOF
7179#define $ac_tr_func 1
7180EOF
7181
7182else
7183 echo "$ac_t""no" 1>&6
7184fi 9830fi
7185done 9831done
7186 9832
7187
7188# PTY-related GNU extensions. 9833# PTY-related GNU extensions.
9834
7189for ac_func in getpt 9835for ac_func in getpt
7190do 9836do
7191echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9837as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7192echo "configure:7193: checking for $ac_func" >&5 9838echo "$as_me:9838: checking for $ac_func" >&5
7193if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 9839echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7194 echo $ac_n "(cached) $ac_c" 1>&6 9840if eval "test \"\${$as_ac_var+set}\" = set"; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else 9842else
7196 cat > conftest.$ac_ext <<EOF 9843 cat >conftest.$ac_ext <<_ACEOF
7197#line 7198 "configure" 9844#line 9844 "configure"
7198#include "confdefs.h" 9845#include "confdefs.h"
7199/* System header to define __stub macros and hopefully few prototypes, 9846/* System header to define __stub macros and hopefully few prototypes,
7200 which can conflict with char $ac_func(); below. */ 9847 which can conflict with char $ac_func (); below. */
7201#include <assert.h> 9848#include <assert.h>
7202/* Override any gcc2 internal prototype to avoid an error. */ 9849/* Override any gcc2 internal prototype to avoid an error. */
9850#ifdef __cplusplus
9851extern "C"
9852#endif
7203/* We use char because int might match the return type of a gcc2 9853/* We use char because int might match the return type of a gcc2
7204 builtin and then its argument prototype would still apply. */ 9854 builtin and then its argument prototype would still apply. */
7205char $ac_func(); 9855char $ac_func ();
7206 9856char (*f) ();
7207int main() {
7208 9857
9858int
9859main ()
9860{
7209/* The GNU C library defines this for functions which it implements 9861/* The GNU C library defines this for functions which it implements
7210 to always fail with ENOSYS. Some functions are actually named 9862 to always fail with ENOSYS. Some functions are actually named
7211 something starting with __ and the normal name is an alias. */ 9863 something starting with __ and the normal name is an alias. */
7212#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9864#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7213choke me 9865choke me
7214#else 9866#else
7215$ac_func(); 9867f = $ac_func;
7216#endif 9868#endif
7217 9869
7218; return 0; } 9870 ;
9871 return 0;
9872}
9873_ACEOF
9874rm -f conftest.$ac_objext conftest$ac_exeext
9875if { (eval echo "$as_me:9875: \"$ac_link\"") >&5
9876 (eval $ac_link) 2>&5
9877 ac_status=$?
9878 echo "$as_me:9878: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -s conftest$ac_exeext'
9881 { (eval echo "$as_me:9881: \"$ac_try\"") >&5
9882 (eval $ac_try) 2>&5
9883 ac_status=$?
9884 echo "$as_me:9884: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 eval "$as_ac_var=yes"
9887else
9888 echo "$as_me: failed program was:" >&5
9889cat conftest.$ac_ext >&5
9890eval "$as_ac_var=no"
9891fi
9892rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9893fi
9894echo "$as_me:9894: result: `eval echo '${'$as_ac_var'}'`" >&5
9895echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9896if test `eval echo '${'$as_ac_var'}'` = yes; then
9897 cat >>confdefs.h <<EOF
9898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7219EOF 9899EOF
7220if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7221 rm -rf conftest*
7222 eval "ac_cv_func_$ac_func=yes"
7223else
7224 echo "configure: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7226 rm -rf conftest*
7227 eval "ac_cv_func_$ac_func=no"
7228fi
7229rm -f conftest*
7230fi
7231 9900
7232if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7233 echo "$ac_t""yes" 1>&6
7234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7235 cat >> confdefs.h <<EOF
7236#define $ac_tr_func 1
7237EOF
7238
7239else
7240 echo "$ac_t""no" 1>&6
7241fi 9901fi
7242done 9902done
7243 9903
7244
7245# Check this now, so that we will NOT find the above functions in ncurses. 9904# Check this now, so that we will NOT find the above functions in ncurses.
7246# That is because we have not set up to link ncurses in lib-src. 9905# That is because we have not set up to link ncurses in lib-src.
7247# It's better to believe a function is not available 9906# It's better to believe a function is not available
7248# than to expect to find it in ncurses. 9907# than to expect to find it in ncurses.
7249echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 9908
7250echo "configure:7251: checking for tparm in -lncurses" >&5 9909echo "$as_me:9909: checking for tparm in -lncurses" >&5
7251ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 9910echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
7252if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 9911if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
7253 echo $ac_n "(cached) $ac_c" 1>&6 9912 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else 9913else
7255 ac_save_LIBS="$LIBS" 9914 ac_check_lib_save_LIBS=$LIBS
7256LIBS="-lncurses $LIBS" 9915LIBS="-lncurses $LIBS"
7257cat > conftest.$ac_ext <<EOF 9916cat >conftest.$ac_ext <<_ACEOF
7258#line 7259 "configure" 9917#line 9917 "configure"
7259#include "confdefs.h" 9918#include "confdefs.h"
9919
7260/* Override any gcc2 internal prototype to avoid an error. */ 9920/* Override any gcc2 internal prototype to avoid an error. */
9921#ifdef __cplusplus
9922extern "C"
9923#endif
7261/* We use char because int might match the return type of a gcc2 9924/* We use char because int might match the return type of a gcc2
7262 builtin and then its argument prototype would still apply. */ 9925 builtin and then its argument prototype would still apply. */
7263char tparm(); 9926char tparm ();
7264 9927int
7265int main() { 9928main ()
7266tparm() 9929{
7267; return 0; } 9930tparm ();
7268EOF 9931 ;
7269if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9932 return 0;
7270 rm -rf conftest* 9933}
7271 eval "ac_cv_lib_$ac_lib_var=yes" 9934_ACEOF
7272else 9935rm -f conftest.$ac_objext conftest$ac_exeext
7273 echo "configure: failed program was:" >&5 9936if { (eval echo "$as_me:9936: \"$ac_link\"") >&5
7274 cat conftest.$ac_ext >&5 9937 (eval $ac_link) 2>&5
7275 rm -rf conftest* 9938 ac_status=$?
7276 eval "ac_cv_lib_$ac_lib_var=no" 9939 echo "$as_me:9939: \$? = $ac_status" >&5
7277fi 9940 (exit $ac_status); } &&
7278rm -f conftest* 9941 { ac_try='test -s conftest$ac_exeext'
7279LIBS="$ac_save_LIBS" 9942 { (eval echo "$as_me:9942: \"$ac_try\"") >&5
7280 9943 (eval $ac_try) 2>&5
7281fi 9944 ac_status=$?
7282if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9945 echo "$as_me:9945: \$? = $ac_status" >&5
7283 echo "$ac_t""yes" 1>&6 9946 (exit $ac_status); }; }; then
7284 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 9947 ac_cv_lib_ncurses_tparm=yes
7285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 9948else
7286 cat >> confdefs.h <<EOF 9949 echo "$as_me: failed program was:" >&5
7287#define $ac_tr_lib 1 9950cat conftest.$ac_ext >&5
9951ac_cv_lib_ncurses_tparm=no
9952fi
9953rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9954LIBS=$ac_check_lib_save_LIBS
9955fi
9956echo "$as_me:9956: result: $ac_cv_lib_ncurses_tparm" >&5
9957echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
9958if test $ac_cv_lib_ncurses_tparm = yes; then
9959 cat >>confdefs.h <<EOF
9960#define HAVE_LIBNCURSES 1
7288EOF 9961EOF
7289 9962
7290 LIBS="-lncurses $LIBS" 9963 LIBS="-lncurses $LIBS"
7291 9964
7292else
7293 echo "$ac_t""no" 1>&6
7294fi 9965fi
7295 9966
7296
7297# These tell us which Kerberos-related libraries to use. 9967# These tell us which Kerberos-related libraries to use.
7298if test "${with_kerberos+set}" = set; then 9968if test "${with_kerberos+set}" = set; then
7299 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 9969
7300echo "configure:7301: checking for com_err in -lcom_err" >&5 9970echo "$as_me:9970: checking for com_err in -lcom_err" >&5
7301ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 9971echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
7302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 9972if test "${ac_cv_lib_com_err_com_err+set}" = set; then
7303 echo $ac_n "(cached) $ac_c" 1>&6 9973 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else 9974else
7305 ac_save_LIBS="$LIBS" 9975 ac_check_lib_save_LIBS=$LIBS
7306LIBS="-lcom_err $LIBS" 9976LIBS="-lcom_err $LIBS"
7307cat > conftest.$ac_ext <<EOF 9977cat >conftest.$ac_ext <<_ACEOF
7308#line 7309 "configure" 9978#line 9978 "configure"
7309#include "confdefs.h" 9979#include "confdefs.h"
9980
7310/* Override any gcc2 internal prototype to avoid an error. */ 9981/* Override any gcc2 internal prototype to avoid an error. */
9982#ifdef __cplusplus
9983extern "C"
9984#endif
7311/* We use char because int might match the return type of a gcc2 9985/* We use char because int might match the return type of a gcc2
7312 builtin and then its argument prototype would still apply. */ 9986 builtin and then its argument prototype would still apply. */
7313char com_err(); 9987char com_err ();
7314 9988int
7315int main() { 9989main ()
7316com_err() 9990{
7317; return 0; } 9991com_err ();
7318EOF 9992 ;
7319if { (eval echo configure:7320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9993 return 0;
7320 rm -rf conftest* 9994}
7321 eval "ac_cv_lib_$ac_lib_var=yes" 9995_ACEOF
7322else 9996rm -f conftest.$ac_objext conftest$ac_exeext
7323 echo "configure: failed program was:" >&5 9997if { (eval echo "$as_me:9997: \"$ac_link\"") >&5
7324 cat conftest.$ac_ext >&5 9998 (eval $ac_link) 2>&5
7325 rm -rf conftest* 9999 ac_status=$?
7326 eval "ac_cv_lib_$ac_lib_var=no" 10000 echo "$as_me:10000: \$? = $ac_status" >&5
7327fi 10001 (exit $ac_status); } &&
7328rm -f conftest* 10002 { ac_try='test -s conftest$ac_exeext'
7329LIBS="$ac_save_LIBS" 10003 { (eval echo "$as_me:10003: \"$ac_try\"") >&5
7330 10004 (eval $ac_try) 2>&5
7331fi 10005 ac_status=$?
7332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10006 echo "$as_me:10006: \$? = $ac_status" >&5
7333 echo "$ac_t""yes" 1>&6 10007 (exit $ac_status); }; }; then
7334 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 10008 ac_cv_lib_com_err_com_err=yes
7335 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 10009else
7336 cat >> confdefs.h <<EOF 10010 echo "$as_me: failed program was:" >&5
7337#define $ac_tr_lib 1 10011cat conftest.$ac_ext >&5
10012ac_cv_lib_com_err_com_err=no
10013fi
10014rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10015LIBS=$ac_check_lib_save_LIBS
10016fi
10017echo "$as_me:10017: result: $ac_cv_lib_com_err_com_err" >&5
10018echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10019if test $ac_cv_lib_com_err_com_err = yes; then
10020 cat >>confdefs.h <<EOF
10021#define HAVE_LIBCOM_ERR 1
7338EOF 10022EOF
7339 10023
7340 LIBS="-lcom_err $LIBS" 10024 LIBS="-lcom_err $LIBS"
7341 10025
7342else
7343 echo "$ac_t""no" 1>&6
7344fi 10026fi
7345 10027
7346 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 10028echo "$as_me:10028: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7347echo "configure:7348: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 10029echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
7348ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 10030if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
7349if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 10031 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 echo $ac_n "(cached) $ac_c" 1>&6
7351else 10032else
7352 ac_save_LIBS="$LIBS" 10033 ac_check_lib_save_LIBS=$LIBS
7353LIBS="-lk5crypto $LIBS" 10034LIBS="-lk5crypto $LIBS"
7354cat > conftest.$ac_ext <<EOF 10035cat >conftest.$ac_ext <<_ACEOF
7355#line 7356 "configure" 10036#line 10036 "configure"
7356#include "confdefs.h" 10037#include "confdefs.h"
10038
7357/* Override any gcc2 internal prototype to avoid an error. */ 10039/* Override any gcc2 internal prototype to avoid an error. */
10040#ifdef __cplusplus
10041extern "C"
10042#endif
7358/* We use char because int might match the return type of a gcc2 10043/* We use char because int might match the return type of a gcc2
7359 builtin and then its argument prototype would still apply. */ 10044 builtin and then its argument prototype would still apply. */
7360char mit_des_cbc_encrypt(); 10045char mit_des_cbc_encrypt ();
7361 10046int
7362int main() { 10047main ()
7363mit_des_cbc_encrypt() 10048{
7364; return 0; } 10049mit_des_cbc_encrypt ();
7365EOF 10050 ;
7366if { (eval echo configure:7367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10051 return 0;
7367 rm -rf conftest* 10052}
7368 eval "ac_cv_lib_$ac_lib_var=yes" 10053_ACEOF
7369else 10054rm -f conftest.$ac_objext conftest$ac_exeext
7370 echo "configure: failed program was:" >&5 10055if { (eval echo "$as_me:10055: \"$ac_link\"") >&5
7371 cat conftest.$ac_ext >&5 10056 (eval $ac_link) 2>&5
7372 rm -rf conftest* 10057 ac_status=$?
7373 eval "ac_cv_lib_$ac_lib_var=no" 10058 echo "$as_me:10058: \$? = $ac_status" >&5
7374fi 10059 (exit $ac_status); } &&
7375rm -f conftest* 10060 { ac_try='test -s conftest$ac_exeext'
7376LIBS="$ac_save_LIBS" 10061 { (eval echo "$as_me:10061: \"$ac_try\"") >&5
7377 10062 (eval $ac_try) 2>&5
7378fi 10063 ac_status=$?
7379if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10064 echo "$as_me:10064: \$? = $ac_status" >&5
7380 echo "$ac_t""yes" 1>&6 10065 (exit $ac_status); }; }; then
7381 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 10066 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
7382 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 10067else
7383 cat >> confdefs.h <<EOF 10068 echo "$as_me: failed program was:" >&5
7384#define $ac_tr_lib 1 10069cat conftest.$ac_ext >&5
10070ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
10071fi
10072rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10073LIBS=$ac_check_lib_save_LIBS
10074fi
10075echo "$as_me:10075: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10076echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10077if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10078 cat >>confdefs.h <<EOF
10079#define HAVE_LIBK5CRYPTO 1
7385EOF 10080EOF
7386 10081
7387 LIBS="-lk5crypto $LIBS" 10082 LIBS="-lk5crypto $LIBS"
7388 10083
7389else
7390 echo "$ac_t""no" 1>&6
7391fi 10084fi
7392 10085
7393 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 10086echo "$as_me:10086: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7394echo "configure:7395: checking for mit_des_cbc_encrypt in -lcrypto" >&5 10087echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
7395ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 10088if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
7396if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 10089 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 echo $ac_n "(cached) $ac_c" 1>&6
7398else 10090else
7399 ac_save_LIBS="$LIBS" 10091 ac_check_lib_save_LIBS=$LIBS
7400LIBS="-lcrypto $LIBS" 10092LIBS="-lcrypto $LIBS"
7401cat > conftest.$ac_ext <<EOF 10093cat >conftest.$ac_ext <<_ACEOF
7402#line 7403 "configure" 10094#line 10094 "configure"
7403#include "confdefs.h" 10095#include "confdefs.h"
10096
7404/* Override any gcc2 internal prototype to avoid an error. */ 10097/* Override any gcc2 internal prototype to avoid an error. */
10098#ifdef __cplusplus
10099extern "C"
10100#endif
7405/* We use char because int might match the return type of a gcc2 10101/* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */ 10102 builtin and then its argument prototype would still apply. */
7407char mit_des_cbc_encrypt(); 10103char mit_des_cbc_encrypt ();
7408 10104int
7409int main() { 10105main ()
7410mit_des_cbc_encrypt() 10106{
7411; return 0; } 10107mit_des_cbc_encrypt ();
7412EOF 10108 ;
7413if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10109 return 0;
7414 rm -rf conftest* 10110}
7415 eval "ac_cv_lib_$ac_lib_var=yes" 10111_ACEOF
7416else 10112rm -f conftest.$ac_objext conftest$ac_exeext
7417 echo "configure: failed program was:" >&5 10113if { (eval echo "$as_me:10113: \"$ac_link\"") >&5
7418 cat conftest.$ac_ext >&5 10114 (eval $ac_link) 2>&5
7419 rm -rf conftest* 10115 ac_status=$?
7420 eval "ac_cv_lib_$ac_lib_var=no" 10116 echo "$as_me:10116: \$? = $ac_status" >&5
7421fi 10117 (exit $ac_status); } &&
7422rm -f conftest* 10118 { ac_try='test -s conftest$ac_exeext'
7423LIBS="$ac_save_LIBS" 10119 { (eval echo "$as_me:10119: \"$ac_try\"") >&5
7424 10120 (eval $ac_try) 2>&5
7425fi 10121 ac_status=$?
7426if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10122 echo "$as_me:10122: \$? = $ac_status" >&5
7427 echo "$ac_t""yes" 1>&6 10123 (exit $ac_status); }; }; then
7428 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 10124 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
7429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 10125else
7430 cat >> confdefs.h <<EOF 10126 echo "$as_me: failed program was:" >&5
7431#define $ac_tr_lib 1 10127cat conftest.$ac_ext >&5
10128ac_cv_lib_crypto_mit_des_cbc_encrypt=no
10129fi
10130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10131LIBS=$ac_check_lib_save_LIBS
10132fi
10133echo "$as_me:10133: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10134echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10135if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10136 cat >>confdefs.h <<EOF
10137#define HAVE_LIBCRYPTO 1
7432EOF 10138EOF
7433 10139
7434 LIBS="-lcrypto $LIBS" 10140 LIBS="-lcrypto $LIBS"
7435 10141
7436else
7437 echo "$ac_t""no" 1>&6
7438fi 10142fi
7439 10143
7440 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 10144echo "$as_me:10144: checking for krb5_init_context in -lkrb5" >&5
7441echo "configure:7442: checking for krb5_init_context in -lkrb5" >&5 10145echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
7442ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 10146if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
7443if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 10147 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 echo $ac_n "(cached) $ac_c" 1>&6
7445else 10148else
7446 ac_save_LIBS="$LIBS" 10149 ac_check_lib_save_LIBS=$LIBS
7447LIBS="-lkrb5 $LIBS" 10150LIBS="-lkrb5 $LIBS"
7448cat > conftest.$ac_ext <<EOF 10151cat >conftest.$ac_ext <<_ACEOF
7449#line 7450 "configure" 10152#line 10152 "configure"
7450#include "confdefs.h" 10153#include "confdefs.h"
10154
7451/* Override any gcc2 internal prototype to avoid an error. */ 10155/* Override any gcc2 internal prototype to avoid an error. */
10156#ifdef __cplusplus
10157extern "C"
10158#endif
7452/* We use char because int might match the return type of a gcc2 10159/* We use char because int might match the return type of a gcc2
7453 builtin and then its argument prototype would still apply. */ 10160 builtin and then its argument prototype would still apply. */
7454char krb5_init_context(); 10161char krb5_init_context ();
7455 10162int
7456int main() { 10163main ()
7457krb5_init_context() 10164{
7458; return 0; } 10165krb5_init_context ();
7459EOF 10166 ;
7460if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10167 return 0;
7461 rm -rf conftest* 10168}
7462 eval "ac_cv_lib_$ac_lib_var=yes" 10169_ACEOF
7463else 10170rm -f conftest.$ac_objext conftest$ac_exeext
7464 echo "configure: failed program was:" >&5 10171if { (eval echo "$as_me:10171: \"$ac_link\"") >&5
7465 cat conftest.$ac_ext >&5 10172 (eval $ac_link) 2>&5
7466 rm -rf conftest* 10173 ac_status=$?
7467 eval "ac_cv_lib_$ac_lib_var=no" 10174 echo "$as_me:10174: \$? = $ac_status" >&5
7468fi 10175 (exit $ac_status); } &&
7469rm -f conftest* 10176 { ac_try='test -s conftest$ac_exeext'
7470LIBS="$ac_save_LIBS" 10177 { (eval echo "$as_me:10177: \"$ac_try\"") >&5
7471 10178 (eval $ac_try) 2>&5
7472fi 10179 ac_status=$?
7473if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10180 echo "$as_me:10180: \$? = $ac_status" >&5
7474 echo "$ac_t""yes" 1>&6 10181 (exit $ac_status); }; }; then
7475 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 10182 ac_cv_lib_krb5_krb5_init_context=yes
7476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 10183else
7477 cat >> confdefs.h <<EOF 10184 echo "$as_me: failed program was:" >&5
7478#define $ac_tr_lib 1 10185cat conftest.$ac_ext >&5
10186ac_cv_lib_krb5_krb5_init_context=no
10187fi
10188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10189LIBS=$ac_check_lib_save_LIBS
10190fi
10191echo "$as_me:10191: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10192echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10193if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10194 cat >>confdefs.h <<EOF
10195#define HAVE_LIBKRB5 1
7479EOF 10196EOF
7480 10197
7481 LIBS="-lkrb5 $LIBS" 10198 LIBS="-lkrb5 $LIBS"
7482 10199
7483else
7484 echo "$ac_t""no" 1>&6
7485fi 10200fi
7486 10201
7487 if test "${with_kerberos5+set}" != set; then 10202 if test "${with_kerberos5+set}" != set; then
7488 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 10203
7489echo "configure:7490: checking for des_cbc_encrypt in -ldes425" >&5 10204echo "$as_me:10204: checking for des_cbc_encrypt in -ldes425" >&5
7490ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 10205echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
7491if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 10206if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
7492 echo $ac_n "(cached) $ac_c" 1>&6 10207 echo $ECHO_N "(cached) $ECHO_C" >&6
7493else 10208else
7494 ac_save_LIBS="$LIBS" 10209 ac_check_lib_save_LIBS=$LIBS
7495LIBS="-ldes425 $LIBS" 10210LIBS="-ldes425 $LIBS"
7496cat > conftest.$ac_ext <<EOF 10211cat >conftest.$ac_ext <<_ACEOF
7497#line 7498 "configure" 10212#line 10212 "configure"
7498#include "confdefs.h" 10213#include "confdefs.h"
10214
7499/* Override any gcc2 internal prototype to avoid an error. */ 10215/* Override any gcc2 internal prototype to avoid an error. */
10216#ifdef __cplusplus
10217extern "C"
10218#endif
7500/* We use char because int might match the return type of a gcc2 10219/* We use char because int might match the return type of a gcc2
7501 builtin and then its argument prototype would still apply. */ 10220 builtin and then its argument prototype would still apply. */
7502char des_cbc_encrypt(); 10221char des_cbc_encrypt ();
7503 10222int
7504int main() { 10223main ()
7505des_cbc_encrypt() 10224{
7506; return 0; } 10225des_cbc_encrypt ();
7507EOF 10226 ;
7508if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10227 return 0;
7509 rm -rf conftest* 10228}
7510 eval "ac_cv_lib_$ac_lib_var=yes" 10229_ACEOF
7511else 10230rm -f conftest.$ac_objext conftest$ac_exeext
7512 echo "configure: failed program was:" >&5 10231if { (eval echo "$as_me:10231: \"$ac_link\"") >&5
7513 cat conftest.$ac_ext >&5 10232 (eval $ac_link) 2>&5
7514 rm -rf conftest* 10233 ac_status=$?
7515 eval "ac_cv_lib_$ac_lib_var=no" 10234 echo "$as_me:10234: \$? = $ac_status" >&5
7516fi 10235 (exit $ac_status); } &&
7517rm -f conftest* 10236 { ac_try='test -s conftest$ac_exeext'
7518LIBS="$ac_save_LIBS" 10237 { (eval echo "$as_me:10237: \"$ac_try\"") >&5
7519 10238 (eval $ac_try) 2>&5
7520fi 10239 ac_status=$?
7521if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10240 echo "$as_me:10240: \$? = $ac_status" >&5
7522 echo "$ac_t""yes" 1>&6 10241 (exit $ac_status); }; }; then
7523 ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 10242 ac_cv_lib_des425_des_cbc_encrypt=yes
7524 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 10243else
7525 cat >> confdefs.h <<EOF 10244 echo "$as_me: failed program was:" >&5
7526#define $ac_tr_lib 1 10245cat conftest.$ac_ext >&5
10246ac_cv_lib_des425_des_cbc_encrypt=no
10247fi
10248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10249LIBS=$ac_check_lib_save_LIBS
10250fi
10251echo "$as_me:10251: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10252echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10253if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10254 cat >>confdefs.h <<EOF
10255#define HAVE_LIBDES425 1
7527EOF 10256EOF
7528 10257
7529 LIBS="-ldes425 $LIBS" 10258 LIBS="-ldes425 $LIBS"
7530 10259
7531else 10260else
7532 echo "$ac_t""no" 1>&6 10261
7533echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 10262echo "$as_me:10262: checking for des_cbc_encrypt in -ldes" >&5
7534echo "configure:7535: checking for des_cbc_encrypt in -ldes" >&5 10263echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
7535ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 10264if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
7536if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 10265 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 echo $ac_n "(cached) $ac_c" 1>&6
7538else 10266else
7539 ac_save_LIBS="$LIBS" 10267 ac_check_lib_save_LIBS=$LIBS
7540LIBS="-ldes $LIBS" 10268LIBS="-ldes $LIBS"
7541cat > conftest.$ac_ext <<EOF 10269cat >conftest.$ac_ext <<_ACEOF
7542#line 7543 "configure" 10270#line 10270 "configure"
7543#include "confdefs.h" 10271#include "confdefs.h"
10272
7544/* Override any gcc2 internal prototype to avoid an error. */ 10273/* Override any gcc2 internal prototype to avoid an error. */
10274#ifdef __cplusplus
10275extern "C"
10276#endif
7545/* We use char because int might match the return type of a gcc2 10277/* We use char because int might match the return type of a gcc2
7546 builtin and then its argument prototype would still apply. */ 10278 builtin and then its argument prototype would still apply. */
7547char des_cbc_encrypt(); 10279char des_cbc_encrypt ();
7548 10280int
7549int main() { 10281main ()
7550des_cbc_encrypt() 10282{
7551; return 0; } 10283des_cbc_encrypt ();
7552EOF 10284 ;
7553if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10285 return 0;
7554 rm -rf conftest* 10286}
7555 eval "ac_cv_lib_$ac_lib_var=yes" 10287_ACEOF
7556else 10288rm -f conftest.$ac_objext conftest$ac_exeext
7557 echo "configure: failed program was:" >&5 10289if { (eval echo "$as_me:10289: \"$ac_link\"") >&5
7558 cat conftest.$ac_ext >&5 10290 (eval $ac_link) 2>&5
7559 rm -rf conftest* 10291 ac_status=$?
7560 eval "ac_cv_lib_$ac_lib_var=no" 10292 echo "$as_me:10292: \$? = $ac_status" >&5
7561fi 10293 (exit $ac_status); } &&
7562rm -f conftest* 10294 { ac_try='test -s conftest$ac_exeext'
7563LIBS="$ac_save_LIBS" 10295 { (eval echo "$as_me:10295: \"$ac_try\"") >&5
7564 10296 (eval $ac_try) 2>&5
7565fi 10297 ac_status=$?
7566if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10298 echo "$as_me:10298: \$? = $ac_status" >&5
7567 echo "$ac_t""yes" 1>&6 10299 (exit $ac_status); }; }; then
7568 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \ 10300 ac_cv_lib_des_des_cbc_encrypt=yes
7569 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 10301else
7570 cat >> confdefs.h <<EOF 10302 echo "$as_me: failed program was:" >&5
7571#define $ac_tr_lib 1 10303cat conftest.$ac_ext >&5
10304ac_cv_lib_des_des_cbc_encrypt=no
10305fi
10306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10307LIBS=$ac_check_lib_save_LIBS
10308fi
10309echo "$as_me:10309: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10310echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10311if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10312 cat >>confdefs.h <<EOF
10313#define HAVE_LIBDES 1
7572EOF 10314EOF
7573 10315
7574 LIBS="-ldes $LIBS" 10316 LIBS="-ldes $LIBS"
7575 10317
7576else
7577 echo "$ac_t""no" 1>&6
7578fi 10318fi
7579 10319
7580fi 10320fi
7581 10321
7582 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 10322echo "$as_me:10322: checking for krb_get_cred in -lkrb4" >&5
7583echo "configure:7584: checking for krb_get_cred in -lkrb4" >&5 10323echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
7584ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 10324if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
7585if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 10325 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 echo $ac_n "(cached) $ac_c" 1>&6
7587else 10326else
7588 ac_save_LIBS="$LIBS" 10327 ac_check_lib_save_LIBS=$LIBS
7589LIBS="-lkrb4 $LIBS" 10328LIBS="-lkrb4 $LIBS"
7590cat > conftest.$ac_ext <<EOF 10329cat >conftest.$ac_ext <<_ACEOF
7591#line 7592 "configure" 10330#line 10330 "configure"
7592#include "confdefs.h" 10331#include "confdefs.h"
10332
7593/* Override any gcc2 internal prototype to avoid an error. */ 10333/* Override any gcc2 internal prototype to avoid an error. */
10334#ifdef __cplusplus
10335extern "C"
10336#endif
7594/* We use char because int might match the return type of a gcc2 10337/* We use char because int might match the return type of a gcc2
7595 builtin and then its argument prototype would still apply. */ 10338 builtin and then its argument prototype would still apply. */
7596char krb_get_cred(); 10339char krb_get_cred ();
7597 10340int
7598int main() { 10341main ()
7599krb_get_cred() 10342{
7600; return 0; } 10343krb_get_cred ();
7601EOF 10344 ;
7602if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10345 return 0;
7603 rm -rf conftest* 10346}
7604 eval "ac_cv_lib_$ac_lib_var=yes" 10347_ACEOF
7605else 10348rm -f conftest.$ac_objext conftest$ac_exeext
7606 echo "configure: failed program was:" >&5 10349if { (eval echo "$as_me:10349: \"$ac_link\"") >&5
7607 cat conftest.$ac_ext >&5 10350 (eval $ac_link) 2>&5
7608 rm -rf conftest* 10351 ac_status=$?
7609 eval "ac_cv_lib_$ac_lib_var=no" 10352 echo "$as_me:10352: \$? = $ac_status" >&5
7610fi 10353 (exit $ac_status); } &&
7611rm -f conftest* 10354 { ac_try='test -s conftest$ac_exeext'
7612LIBS="$ac_save_LIBS" 10355 { (eval echo "$as_me:10355: \"$ac_try\"") >&5
7613 10356 (eval $ac_try) 2>&5
7614fi 10357 ac_status=$?
7615if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10358 echo "$as_me:10358: \$? = $ac_status" >&5
7616 echo "$ac_t""yes" 1>&6 10359 (exit $ac_status); }; }; then
7617 ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 10360 ac_cv_lib_krb4_krb_get_cred=yes
7618 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 10361else
7619 cat >> confdefs.h <<EOF 10362 echo "$as_me: failed program was:" >&5
7620#define $ac_tr_lib 1 10363cat conftest.$ac_ext >&5
10364ac_cv_lib_krb4_krb_get_cred=no
10365fi
10366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10367LIBS=$ac_check_lib_save_LIBS
10368fi
10369echo "$as_me:10369: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10370echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10371if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10372 cat >>confdefs.h <<EOF
10373#define HAVE_LIBKRB4 1
7621EOF 10374EOF
7622 10375
7623 LIBS="-lkrb4 $LIBS" 10376 LIBS="-lkrb4 $LIBS"
7624 10377
7625else 10378else
7626 echo "$ac_t""no" 1>&6 10379
7627echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 10380echo "$as_me:10380: checking for krb_get_cred in -lkrb" >&5
7628echo "configure:7629: checking for krb_get_cred in -lkrb" >&5 10381echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
7629ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 10382if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
7630if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 10383 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 echo $ac_n "(cached) $ac_c" 1>&6
7632else 10384else
7633 ac_save_LIBS="$LIBS" 10385 ac_check_lib_save_LIBS=$LIBS
7634LIBS="-lkrb $LIBS" 10386LIBS="-lkrb $LIBS"
7635cat > conftest.$ac_ext <<EOF 10387cat >conftest.$ac_ext <<_ACEOF
7636#line 7637 "configure" 10388#line 10388 "configure"
7637#include "confdefs.h" 10389#include "confdefs.h"
10390
7638/* Override any gcc2 internal prototype to avoid an error. */ 10391/* Override any gcc2 internal prototype to avoid an error. */
10392#ifdef __cplusplus
10393extern "C"
10394#endif
7639/* We use char because int might match the return type of a gcc2 10395/* We use char because int might match the return type of a gcc2
7640 builtin and then its argument prototype would still apply. */ 10396 builtin and then its argument prototype would still apply. */
7641char krb_get_cred(); 10397char krb_get_cred ();
7642 10398int
7643int main() { 10399main ()
7644krb_get_cred() 10400{
7645; return 0; } 10401krb_get_cred ();
7646EOF 10402 ;
7647if { (eval echo configure:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10403 return 0;
7648 rm -rf conftest* 10404}
7649 eval "ac_cv_lib_$ac_lib_var=yes" 10405_ACEOF
7650else 10406rm -f conftest.$ac_objext conftest$ac_exeext
7651 echo "configure: failed program was:" >&5 10407if { (eval echo "$as_me:10407: \"$ac_link\"") >&5
7652 cat conftest.$ac_ext >&5 10408 (eval $ac_link) 2>&5
7653 rm -rf conftest* 10409 ac_status=$?
7654 eval "ac_cv_lib_$ac_lib_var=no" 10410 echo "$as_me:10410: \$? = $ac_status" >&5
7655fi 10411 (exit $ac_status); } &&
7656rm -f conftest* 10412 { ac_try='test -s conftest$ac_exeext'
7657LIBS="$ac_save_LIBS" 10413 { (eval echo "$as_me:10413: \"$ac_try\"") >&5
7658 10414 (eval $ac_try) 2>&5
7659fi 10415 ac_status=$?
7660if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10416 echo "$as_me:10416: \$? = $ac_status" >&5
7661 echo "$ac_t""yes" 1>&6 10417 (exit $ac_status); }; }; then
7662 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \ 10418 ac_cv_lib_krb_krb_get_cred=yes
7663 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 10419else
7664 cat >> confdefs.h <<EOF 10420 echo "$as_me: failed program was:" >&5
7665#define $ac_tr_lib 1 10421cat conftest.$ac_ext >&5
10422ac_cv_lib_krb_krb_get_cred=no
10423fi
10424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10425LIBS=$ac_check_lib_save_LIBS
10426fi
10427echo "$as_me:10427: result: $ac_cv_lib_krb_krb_get_cred" >&5
10428echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
10429if test $ac_cv_lib_krb_krb_get_cred = yes; then
10430 cat >>confdefs.h <<EOF
10431#define HAVE_LIBKRB 1
7666EOF 10432EOF
7667 10433
7668 LIBS="-lkrb $LIBS" 10434 LIBS="-lkrb $LIBS"
7669 10435
7670else
7671 echo "$ac_t""no" 1>&6
7672fi 10436fi
7673 10437
7674fi 10438fi
@@ -7676,158 +10440,196 @@ fi
7676 fi 10440 fi
7677 10441
7678 if test "${with_kerberos5+set}" = set; then 10442 if test "${with_kerberos5+set}" = set; then
7679 for ac_hdr in krb5.h 10443
10444for ac_header in krb5.h
7680do 10445do
7681ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7682echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10447echo "$as_me:10447: checking for $ac_header" >&5
7683echo "configure:7684: checking for $ac_hdr" >&5 10448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7684if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 10449if eval "test \"\${$as_ac_Header+set}\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6 10450 echo $ECHO_N "(cached) $ECHO_C" >&6
7686else 10451else
7687 cat > conftest.$ac_ext <<EOF 10452 cat >conftest.$ac_ext <<_ACEOF
7688#line 7689 "configure" 10453#line 10453 "configure"
7689#include "confdefs.h" 10454#include "confdefs.h"
7690#include <$ac_hdr> 10455#include <$ac_header>
7691EOF 10456_ACEOF
7692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10457if { (eval echo "$as_me:10457: \"$ac_cpp conftest.$ac_ext\"") >&5
7693{ (eval echo configure:7694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10459 ac_status=$?
7695if test -z "$ac_err"; then 10460 egrep -v '^ *\+' conftest.er1 >conftest.err
7696 rm -rf conftest* 10461 rm -f conftest.er1
7697 eval "ac_cv_header_$ac_safe=yes" 10462 cat conftest.err >&5
7698else 10463 echo "$as_me:10463: \$? = $ac_status" >&5
7699 echo "$ac_err" >&5 10464 (exit $ac_status); } >/dev/null; then
7700 echo "configure: failed program was:" >&5 10465 if test -s conftest.err; then
10466 ac_cpp_err=$ac_c_preproc_warn_flag
10467 else
10468 ac_cpp_err=
10469 fi
10470else
10471 ac_cpp_err=yes
10472fi
10473if test -z "$ac_cpp_err"; then
10474 eval "$as_ac_Header=yes"
10475else
10476 echo "$as_me: failed program was:" >&5
7701 cat conftest.$ac_ext >&5 10477 cat conftest.$ac_ext >&5
7702 rm -rf conftest* 10478 eval "$as_ac_Header=no"
7703 eval "ac_cv_header_$ac_safe=no"
7704fi 10479fi
7705rm -f conftest* 10480rm -f conftest.err conftest.$ac_ext
7706fi 10481fi
7707if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10482echo "$as_me:10482: result: `eval echo '${'$as_ac_Header'}'`" >&5
7708 echo "$ac_t""yes" 1>&6 10483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10484if test `eval echo '${'$as_ac_Header'}'` = yes; then
7710 cat >> confdefs.h <<EOF 10485 cat >>confdefs.h <<EOF
7711#define $ac_tr_hdr 1 10486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712EOF 10487EOF
7713 10488
7714else
7715 echo "$ac_t""no" 1>&6
7716fi 10489fi
7717done 10490done
7718 10491
7719 else 10492 else
7720 for ac_hdr in des.h 10493
10494for ac_header in des.h
7721do 10495do
7722ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7723echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10497echo "$as_me:10497: checking for $ac_header" >&5
7724echo "configure:7725: checking for $ac_hdr" >&5 10498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7725if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 10499if eval "test \"\${$as_ac_Header+set}\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6 10500 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else 10501else
7728 cat > conftest.$ac_ext <<EOF 10502 cat >conftest.$ac_ext <<_ACEOF
7729#line 7730 "configure" 10503#line 10503 "configure"
7730#include "confdefs.h" 10504#include "confdefs.h"
7731#include <$ac_hdr> 10505#include <$ac_header>
7732EOF 10506_ACEOF
7733ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10507if { (eval echo "$as_me:10507: \"$ac_cpp conftest.$ac_ext\"") >&5
7734{ (eval echo configure:7735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7735ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10509 ac_status=$?
7736if test -z "$ac_err"; then 10510 egrep -v '^ *\+' conftest.er1 >conftest.err
7737 rm -rf conftest* 10511 rm -f conftest.er1
7738 eval "ac_cv_header_$ac_safe=yes" 10512 cat conftest.err >&5
7739else 10513 echo "$as_me:10513: \$? = $ac_status" >&5
7740 echo "$ac_err" >&5 10514 (exit $ac_status); } >/dev/null; then
7741 echo "configure: failed program was:" >&5 10515 if test -s conftest.err; then
10516 ac_cpp_err=$ac_c_preproc_warn_flag
10517 else
10518 ac_cpp_err=
10519 fi
10520else
10521 ac_cpp_err=yes
10522fi
10523if test -z "$ac_cpp_err"; then
10524 eval "$as_ac_Header=yes"
10525else
10526 echo "$as_me: failed program was:" >&5
7742 cat conftest.$ac_ext >&5 10527 cat conftest.$ac_ext >&5
7743 rm -rf conftest* 10528 eval "$as_ac_Header=no"
7744 eval "ac_cv_header_$ac_safe=no"
7745fi 10529fi
7746rm -f conftest* 10530rm -f conftest.err conftest.$ac_ext
7747fi 10531fi
7748if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10532echo "$as_me:10532: result: `eval echo '${'$as_ac_Header'}'`" >&5
7749 echo "$ac_t""yes" 1>&6 10533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10534if test `eval echo '${'$as_ac_Header'}'` = yes; then
7751 cat >> confdefs.h <<EOF 10535 cat >>confdefs.h <<EOF
7752#define $ac_tr_hdr 1 10536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7753EOF 10537EOF
7754 10538
7755else 10539else
7756 echo "$ac_t""no" 1>&6 10540
7757for ac_hdr in kerberosIV/des.h 10541for ac_header in kerberosIV/des.h
7758do 10542do
7759ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7760echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10544echo "$as_me:10544: checking for $ac_header" >&5
7761echo "configure:7762: checking for $ac_hdr" >&5 10545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7762if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 10546if eval "test \"\${$as_ac_Header+set}\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6 10547 echo $ECHO_N "(cached) $ECHO_C" >&6
7764else 10548else
7765 cat > conftest.$ac_ext <<EOF 10549 cat >conftest.$ac_ext <<_ACEOF
7766#line 7767 "configure" 10550#line 10550 "configure"
7767#include "confdefs.h" 10551#include "confdefs.h"
7768#include <$ac_hdr> 10552#include <$ac_header>
7769EOF 10553_ACEOF
7770ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10554if { (eval echo "$as_me:10554: \"$ac_cpp conftest.$ac_ext\"") >&5
7771{ (eval echo configure:7772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7772ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10556 ac_status=$?
7773if test -z "$ac_err"; then 10557 egrep -v '^ *\+' conftest.er1 >conftest.err
7774 rm -rf conftest* 10558 rm -f conftest.er1
7775 eval "ac_cv_header_$ac_safe=yes" 10559 cat conftest.err >&5
7776else 10560 echo "$as_me:10560: \$? = $ac_status" >&5
7777 echo "$ac_err" >&5 10561 (exit $ac_status); } >/dev/null; then
7778 echo "configure: failed program was:" >&5 10562 if test -s conftest.err; then
10563 ac_cpp_err=$ac_c_preproc_warn_flag
10564 else
10565 ac_cpp_err=
10566 fi
10567else
10568 ac_cpp_err=yes
10569fi
10570if test -z "$ac_cpp_err"; then
10571 eval "$as_ac_Header=yes"
10572else
10573 echo "$as_me: failed program was:" >&5
7779 cat conftest.$ac_ext >&5 10574 cat conftest.$ac_ext >&5
7780 rm -rf conftest* 10575 eval "$as_ac_Header=no"
7781 eval "ac_cv_header_$ac_safe=no"
7782fi 10576fi
7783rm -f conftest* 10577rm -f conftest.err conftest.$ac_ext
7784fi 10578fi
7785if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10579echo "$as_me:10579: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786 echo "$ac_t""yes" 1>&6 10580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10581if test `eval echo '${'$as_ac_Header'}'` = yes; then
7788 cat >> confdefs.h <<EOF 10582 cat >>confdefs.h <<EOF
7789#define $ac_tr_hdr 1 10583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7790EOF 10584EOF
7791 10585
7792else 10586else
7793 echo "$ac_t""no" 1>&6 10587
7794for ac_hdr in kerberos/des.h 10588for ac_header in kerberos/des.h
7795do 10589do
7796ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7797echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10591echo "$as_me:10591: checking for $ac_header" >&5
7798echo "configure:7799: checking for $ac_hdr" >&5 10592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7799if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 10593if eval "test \"\${$as_ac_Header+set}\" = set"; then
7800 echo $ac_n "(cached) $ac_c" 1>&6 10594 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else 10595else
7802 cat > conftest.$ac_ext <<EOF 10596 cat >conftest.$ac_ext <<_ACEOF
7803#line 7804 "configure" 10597#line 10597 "configure"
7804#include "confdefs.h" 10598#include "confdefs.h"
7805#include <$ac_hdr> 10599#include <$ac_header>
7806EOF 10600_ACEOF
7807ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10601if { (eval echo "$as_me:10601: \"$ac_cpp conftest.$ac_ext\"") >&5
7808{ (eval echo configure:7809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7809ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10603 ac_status=$?
7810if test -z "$ac_err"; then 10604 egrep -v '^ *\+' conftest.er1 >conftest.err
7811 rm -rf conftest* 10605 rm -f conftest.er1
7812 eval "ac_cv_header_$ac_safe=yes" 10606 cat conftest.err >&5
7813else 10607 echo "$as_me:10607: \$? = $ac_status" >&5
7814 echo "$ac_err" >&5 10608 (exit $ac_status); } >/dev/null; then
7815 echo "configure: failed program was:" >&5 10609 if test -s conftest.err; then
10610 ac_cpp_err=$ac_c_preproc_warn_flag
10611 else
10612 ac_cpp_err=
10613 fi
10614else
10615 ac_cpp_err=yes
10616fi
10617if test -z "$ac_cpp_err"; then
10618 eval "$as_ac_Header=yes"
10619else
10620 echo "$as_me: failed program was:" >&5
7816 cat conftest.$ac_ext >&5 10621 cat conftest.$ac_ext >&5
7817 rm -rf conftest* 10622 eval "$as_ac_Header=no"
7818 eval "ac_cv_header_$ac_safe=no"
7819fi 10623fi
7820rm -f conftest* 10624rm -f conftest.err conftest.$ac_ext
7821fi 10625fi
7822if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10626echo "$as_me:10626: result: `eval echo '${'$as_ac_Header'}'`" >&5
7823 echo "$ac_t""yes" 1>&6 10627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10628if test `eval echo '${'$as_ac_Header'}'` = yes; then
7825 cat >> confdefs.h <<EOF 10629 cat >>confdefs.h <<EOF
7826#define $ac_tr_hdr 1 10630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7827EOF 10631EOF
7828 10632
7829else
7830 echo "$ac_t""no" 1>&6
7831fi 10633fi
7832done 10634done
7833 10635
@@ -7837,117 +10639,145 @@ done
7837fi 10639fi
7838done 10640done
7839 10641
7840 for ac_hdr in krb.h 10642for ac_header in krb.h
7841do 10643do
7842ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7843echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10645echo "$as_me:10645: checking for $ac_header" >&5
7844echo "configure:7845: checking for $ac_hdr" >&5 10646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7845if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 10647if eval "test \"\${$as_ac_Header+set}\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6 10648 echo $ECHO_N "(cached) $ECHO_C" >&6
7847else 10649else
7848 cat > conftest.$ac_ext <<EOF 10650 cat >conftest.$ac_ext <<_ACEOF
7849#line 7850 "configure" 10651#line 10651 "configure"
7850#include "confdefs.h" 10652#include "confdefs.h"
7851#include <$ac_hdr> 10653#include <$ac_header>
7852EOF 10654_ACEOF
7853ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10655if { (eval echo "$as_me:10655: \"$ac_cpp conftest.$ac_ext\"") >&5
7854{ (eval echo configure:7855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7855ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10657 ac_status=$?
7856if test -z "$ac_err"; then 10658 egrep -v '^ *\+' conftest.er1 >conftest.err
7857 rm -rf conftest* 10659 rm -f conftest.er1
7858 eval "ac_cv_header_$ac_safe=yes" 10660 cat conftest.err >&5
7859else 10661 echo "$as_me:10661: \$? = $ac_status" >&5
7860 echo "$ac_err" >&5 10662 (exit $ac_status); } >/dev/null; then
7861 echo "configure: failed program was:" >&5 10663 if test -s conftest.err; then
10664 ac_cpp_err=$ac_c_preproc_warn_flag
10665 else
10666 ac_cpp_err=
10667 fi
10668else
10669 ac_cpp_err=yes
10670fi
10671if test -z "$ac_cpp_err"; then
10672 eval "$as_ac_Header=yes"
10673else
10674 echo "$as_me: failed program was:" >&5
7862 cat conftest.$ac_ext >&5 10675 cat conftest.$ac_ext >&5
7863 rm -rf conftest* 10676 eval "$as_ac_Header=no"
7864 eval "ac_cv_header_$ac_safe=no"
7865fi 10677fi
7866rm -f conftest* 10678rm -f conftest.err conftest.$ac_ext
7867fi 10679fi
7868if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10680echo "$as_me:10680: result: `eval echo '${'$as_ac_Header'}'`" >&5
7869 echo "$ac_t""yes" 1>&6 10681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10682if test `eval echo '${'$as_ac_Header'}'` = yes; then
7871 cat >> confdefs.h <<EOF 10683 cat >>confdefs.h <<EOF
7872#define $ac_tr_hdr 1 10684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7873EOF 10685EOF
7874 10686
7875else 10687else
7876 echo "$ac_t""no" 1>&6 10688
7877for ac_hdr in kerberosIV/krb.h 10689for ac_header in kerberosIV/krb.h
7878do 10690do
7879ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7880echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10692echo "$as_me:10692: checking for $ac_header" >&5
7881echo "configure:7882: checking for $ac_hdr" >&5 10693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7882if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 10694if eval "test \"\${$as_ac_Header+set}\" = set"; then
7883 echo $ac_n "(cached) $ac_c" 1>&6 10695 echo $ECHO_N "(cached) $ECHO_C" >&6
7884else 10696else
7885 cat > conftest.$ac_ext <<EOF 10697 cat >conftest.$ac_ext <<_ACEOF
7886#line 7887 "configure" 10698#line 10698 "configure"
7887#include "confdefs.h" 10699#include "confdefs.h"
7888#include <$ac_hdr> 10700#include <$ac_header>
7889EOF 10701_ACEOF
7890ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10702if { (eval echo "$as_me:10702: \"$ac_cpp conftest.$ac_ext\"") >&5
7891{ (eval echo configure:7892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7892ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10704 ac_status=$?
7893if test -z "$ac_err"; then 10705 egrep -v '^ *\+' conftest.er1 >conftest.err
7894 rm -rf conftest* 10706 rm -f conftest.er1
7895 eval "ac_cv_header_$ac_safe=yes" 10707 cat conftest.err >&5
7896else 10708 echo "$as_me:10708: \$? = $ac_status" >&5
7897 echo "$ac_err" >&5 10709 (exit $ac_status); } >/dev/null; then
7898 echo "configure: failed program was:" >&5 10710 if test -s conftest.err; then
10711 ac_cpp_err=$ac_c_preproc_warn_flag
10712 else
10713 ac_cpp_err=
10714 fi
10715else
10716 ac_cpp_err=yes
10717fi
10718if test -z "$ac_cpp_err"; then
10719 eval "$as_ac_Header=yes"
10720else
10721 echo "$as_me: failed program was:" >&5
7899 cat conftest.$ac_ext >&5 10722 cat conftest.$ac_ext >&5
7900 rm -rf conftest* 10723 eval "$as_ac_Header=no"
7901 eval "ac_cv_header_$ac_safe=no"
7902fi 10724fi
7903rm -f conftest* 10725rm -f conftest.err conftest.$ac_ext
7904fi 10726fi
7905if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10727echo "$as_me:10727: result: `eval echo '${'$as_ac_Header'}'`" >&5
7906 echo "$ac_t""yes" 1>&6 10728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10729if test `eval echo '${'$as_ac_Header'}'` = yes; then
7908 cat >> confdefs.h <<EOF 10730 cat >>confdefs.h <<EOF
7909#define $ac_tr_hdr 1 10731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7910EOF 10732EOF
7911 10733
7912else 10734else
7913 echo "$ac_t""no" 1>&6 10735
7914for ac_hdr in kerberos/krb.h 10736for ac_header in kerberos/krb.h
7915do 10737do
7916ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10739echo "$as_me:10739: checking for $ac_header" >&5
7918echo "configure:7919: checking for $ac_hdr" >&5 10740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7919if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 10741if eval "test \"\${$as_ac_Header+set}\" = set"; then
7920 echo $ac_n "(cached) $ac_c" 1>&6 10742 echo $ECHO_N "(cached) $ECHO_C" >&6
7921else 10743else
7922 cat > conftest.$ac_ext <<EOF 10744 cat >conftest.$ac_ext <<_ACEOF
7923#line 7924 "configure" 10745#line 10745 "configure"
7924#include "confdefs.h" 10746#include "confdefs.h"
7925#include <$ac_hdr> 10747#include <$ac_header>
7926EOF 10748_ACEOF
7927ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10749if { (eval echo "$as_me:10749: \"$ac_cpp conftest.$ac_ext\"") >&5
7928{ (eval echo configure:7929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10751 ac_status=$?
7930if test -z "$ac_err"; then 10752 egrep -v '^ *\+' conftest.er1 >conftest.err
7931 rm -rf conftest* 10753 rm -f conftest.er1
7932 eval "ac_cv_header_$ac_safe=yes" 10754 cat conftest.err >&5
7933else 10755 echo "$as_me:10755: \$? = $ac_status" >&5
7934 echo "$ac_err" >&5 10756 (exit $ac_status); } >/dev/null; then
7935 echo "configure: failed program was:" >&5 10757 if test -s conftest.err; then
10758 ac_cpp_err=$ac_c_preproc_warn_flag
10759 else
10760 ac_cpp_err=
10761 fi
10762else
10763 ac_cpp_err=yes
10764fi
10765if test -z "$ac_cpp_err"; then
10766 eval "$as_ac_Header=yes"
10767else
10768 echo "$as_me: failed program was:" >&5
7936 cat conftest.$ac_ext >&5 10769 cat conftest.$ac_ext >&5
7937 rm -rf conftest* 10770 eval "$as_ac_Header=no"
7938 eval "ac_cv_header_$ac_safe=no"
7939fi 10771fi
7940rm -f conftest* 10772rm -f conftest.err conftest.$ac_ext
7941fi 10773fi
7942if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10774echo "$as_me:10774: result: `eval echo '${'$as_ac_Header'}'`" >&5
7943 echo "$ac_t""yes" 1>&6 10775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10776if test `eval echo '${'$as_ac_Header'}'` = yes; then
7945 cat >> confdefs.h <<EOF 10777 cat >>confdefs.h <<EOF
7946#define $ac_tr_hdr 1 10778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7947EOF 10779EOF
7948 10780
7949else
7950 echo "$ac_t""no" 1>&6
7951fi 10781fi
7952done 10782done
7953 10783
@@ -7958,43 +10788,52 @@ fi
7958done 10788done
7959 10789
7960 fi 10790 fi
7961 for ac_hdr in com_err.h 10791
10792for ac_header in com_err.h
7962do 10793do
7963ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10795echo "$as_me:10795: checking for $ac_header" >&5
7965echo "configure:7966: checking for $ac_hdr" >&5 10796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7966if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 10797if eval "test \"\${$as_ac_Header+set}\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6 10798 echo $ECHO_N "(cached) $ECHO_C" >&6
7968else 10799else
7969 cat > conftest.$ac_ext <<EOF 10800 cat >conftest.$ac_ext <<_ACEOF
7970#line 7971 "configure" 10801#line 10801 "configure"
7971#include "confdefs.h" 10802#include "confdefs.h"
7972#include <$ac_hdr> 10803#include <$ac_header>
7973EOF 10804_ACEOF
7974ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10805if { (eval echo "$as_me:10805: \"$ac_cpp conftest.$ac_ext\"") >&5
7975{ (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7976ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10807 ac_status=$?
7977if test -z "$ac_err"; then 10808 egrep -v '^ *\+' conftest.er1 >conftest.err
7978 rm -rf conftest* 10809 rm -f conftest.er1
7979 eval "ac_cv_header_$ac_safe=yes" 10810 cat conftest.err >&5
7980else 10811 echo "$as_me:10811: \$? = $ac_status" >&5
7981 echo "$ac_err" >&5 10812 (exit $ac_status); } >/dev/null; then
7982 echo "configure: failed program was:" >&5 10813 if test -s conftest.err; then
10814 ac_cpp_err=$ac_c_preproc_warn_flag
10815 else
10816 ac_cpp_err=
10817 fi
10818else
10819 ac_cpp_err=yes
10820fi
10821if test -z "$ac_cpp_err"; then
10822 eval "$as_ac_Header=yes"
10823else
10824 echo "$as_me: failed program was:" >&5
7983 cat conftest.$ac_ext >&5 10825 cat conftest.$ac_ext >&5
7984 rm -rf conftest* 10826 eval "$as_ac_Header=no"
7985 eval "ac_cv_header_$ac_safe=no"
7986fi 10827fi
7987rm -f conftest* 10828rm -f conftest.err conftest.$ac_ext
7988fi 10829fi
7989if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10830echo "$as_me:10830: result: `eval echo '${'$as_ac_Header'}'`" >&5
7990 echo "$ac_t""yes" 1>&6 10831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7991 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10832if test `eval echo '${'$as_ac_Header'}'` = yes; then
7992 cat >> confdefs.h <<EOF 10833 cat >>confdefs.h <<EOF
7993#define $ac_tr_hdr 1 10834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7994EOF 10835EOF
7995 10836
7996else
7997 echo "$ac_t""no" 1>&6
7998fi 10837fi
7999done 10838done
8000 10839
@@ -8002,66 +10841,77 @@ fi
8002 10841
8003# Solaris requires -lintl if you want strerror (which calls dgettext) 10842# Solaris requires -lintl if you want strerror (which calls dgettext)
8004# to return localized messages. 10843# to return localized messages.
8005echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 10844
8006echo "configure:8007: checking for dgettext in -lintl" >&5 10845echo "$as_me:10845: checking for dgettext in -lintl" >&5
8007ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 10846echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
8008if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 10847if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8009 echo $ac_n "(cached) $ac_c" 1>&6 10848 echo $ECHO_N "(cached) $ECHO_C" >&6
8010else 10849else
8011 ac_save_LIBS="$LIBS" 10850 ac_check_lib_save_LIBS=$LIBS
8012LIBS="-lintl $LIBS" 10851LIBS="-lintl $LIBS"
8013cat > conftest.$ac_ext <<EOF 10852cat >conftest.$ac_ext <<_ACEOF
8014#line 8015 "configure" 10853#line 10853 "configure"
8015#include "confdefs.h" 10854#include "confdefs.h"
10855
8016/* Override any gcc2 internal prototype to avoid an error. */ 10856/* Override any gcc2 internal prototype to avoid an error. */
10857#ifdef __cplusplus
10858extern "C"
10859#endif
8017/* We use char because int might match the return type of a gcc2 10860/* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */ 10861 builtin and then its argument prototype would still apply. */
8019char dgettext(); 10862char dgettext ();
8020 10863int
8021int main() { 10864main ()
8022dgettext() 10865{
8023; return 0; } 10866dgettext ();
8024EOF 10867 ;
8025if { (eval echo configure:8026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10868 return 0;
8026 rm -rf conftest* 10869}
8027 eval "ac_cv_lib_$ac_lib_var=yes" 10870_ACEOF
8028else 10871rm -f conftest.$ac_objext conftest$ac_exeext
8029 echo "configure: failed program was:" >&5 10872if { (eval echo "$as_me:10872: \"$ac_link\"") >&5
8030 cat conftest.$ac_ext >&5 10873 (eval $ac_link) 2>&5
8031 rm -rf conftest* 10874 ac_status=$?
8032 eval "ac_cv_lib_$ac_lib_var=no" 10875 echo "$as_me:10875: \$? = $ac_status" >&5
8033fi 10876 (exit $ac_status); } &&
8034rm -f conftest* 10877 { ac_try='test -s conftest$ac_exeext'
8035LIBS="$ac_save_LIBS" 10878 { (eval echo "$as_me:10878: \"$ac_try\"") >&5
8036 10879 (eval $ac_try) 2>&5
8037fi 10880 ac_status=$?
8038if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10881 echo "$as_me:10881: \$? = $ac_status" >&5
8039 echo "$ac_t""yes" 1>&6 10882 (exit $ac_status); }; }; then
8040 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 10883 ac_cv_lib_intl_dgettext=yes
8041 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 10884else
8042 cat >> confdefs.h <<EOF 10885 echo "$as_me: failed program was:" >&5
8043#define $ac_tr_lib 1 10886cat conftest.$ac_ext >&5
10887ac_cv_lib_intl_dgettext=no
10888fi
10889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10890LIBS=$ac_check_lib_save_LIBS
10891fi
10892echo "$as_me:10892: result: $ac_cv_lib_intl_dgettext" >&5
10893echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
10894if test $ac_cv_lib_intl_dgettext = yes; then
10895 cat >>confdefs.h <<EOF
10896#define HAVE_LIBINTL 1
8044EOF 10897EOF
8045 10898
8046 LIBS="-lintl $LIBS" 10899 LIBS="-lintl $LIBS"
8047 10900
8048else
8049 echo "$ac_t""no" 1>&6
8050fi 10901fi
8051 10902
8052 10903echo "$as_me:10903: checking whether localtime caches TZ" >&5
8053echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 10904echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
8054echo "configure:8055: checking whether localtime caches TZ" >&5 10905if test "${emacs_cv_localtime_cache+set}" = set; then
8055if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 10906 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 echo $ac_n "(cached) $ac_c" 1>&6
8057else 10907else
8058 if test x$ac_cv_func_tzset = xyes; then 10908 if test x$ac_cv_func_tzset = xyes; then
8059if test "$cross_compiling" = yes; then 10909if test "$cross_compiling" = yes; then
8060 # If we have tzset, assume the worst when cross-compiling. 10910 # If we have tzset, assume the worst when cross-compiling.
8061emacs_cv_localtime_cache=yes 10911emacs_cv_localtime_cache=yes
8062else 10912else
8063 cat > conftest.$ac_ext <<EOF 10913 cat >conftest.$ac_ext <<_ACEOF
8064#line 8065 "configure" 10914#line 10914 "configure"
8065#include "confdefs.h" 10915#include "confdefs.h"
8066#include <time.h> 10916#include <time.h>
8067extern char **environ; 10917extern char **environ;
@@ -8092,96 +10942,120 @@ main()
8092 exit (1); 10942 exit (1);
8093 exit (0); 10943 exit (0);
8094} 10944}
8095EOF 10945_ACEOF
8096if { (eval echo configure:8097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 10946rm -f conftest$ac_exeext
8097then 10947if { (eval echo "$as_me:10947: \"$ac_link\"") >&5
10948 (eval $ac_link) 2>&5
10949 ac_status=$?
10950 echo "$as_me:10950: \$? = $ac_status" >&5
10951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10952 { (eval echo "$as_me:10952: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:10955: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
8098 emacs_cv_localtime_cache=no 10957 emacs_cv_localtime_cache=no
8099else 10958else
8100 echo "configure: failed program was:" >&5 10959 echo "$as_me: program exited with status $ac_status" >&5
8101 cat conftest.$ac_ext >&5 10960echo "$as_me: failed program was:" >&5
8102 rm -fr conftest* 10961cat conftest.$ac_ext >&5
8103 emacs_cv_localtime_cache=yes 10962emacs_cv_localtime_cache=yes
8104fi 10963fi
8105rm -fr conftest* 10964rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8106fi 10965fi
8107
8108else 10966else
8109 # If we lack tzset, report that localtime does not cache TZ, 10967 # If we lack tzset, report that localtime does not cache TZ,
8110 # since we can't invalidate the cache if we don't have tzset. 10968 # since we can't invalidate the cache if we don't have tzset.
8111 emacs_cv_localtime_cache=no 10969 emacs_cv_localtime_cache=no
8112fi 10970fi
8113fi 10971fi
8114echo "$ac_t""$emacs_cv_localtime_cache" 1>&6 10972echo "$as_me:10972: result: $emacs_cv_localtime_cache" >&5
10973echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
8115if test $emacs_cv_localtime_cache = yes; then 10974if test $emacs_cv_localtime_cache = yes; then
8116 cat >> confdefs.h <<\EOF 10975 cat >>confdefs.h <<\EOF
8117#define LOCALTIME_CACHE 1 10976#define LOCALTIME_CACHE 1
8118EOF 10977EOF
8119 10978
8120fi 10979fi
8121 10980
8122if test "x$HAVE_TIMEVAL" = xyes; then 10981if test "x$HAVE_TIMEVAL" = xyes; then
8123 for ac_func in gettimeofday 10982
10983for ac_func in gettimeofday
8124do 10984do
8125echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8126echo "configure:8127: checking for $ac_func" >&5 10986echo "$as_me:10986: checking for $ac_func" >&5
8127if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 10987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8128 echo $ac_n "(cached) $ac_c" 1>&6 10988if eval "test \"\${$as_ac_var+set}\" = set"; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
8129else 10990else
8130 cat > conftest.$ac_ext <<EOF 10991 cat >conftest.$ac_ext <<_ACEOF
8131#line 8132 "configure" 10992#line 10992 "configure"
8132#include "confdefs.h" 10993#include "confdefs.h"
8133/* System header to define __stub macros and hopefully few prototypes, 10994/* System header to define __stub macros and hopefully few prototypes,
8134 which can conflict with char $ac_func(); below. */ 10995 which can conflict with char $ac_func (); below. */
8135#include <assert.h> 10996#include <assert.h>
8136/* Override any gcc2 internal prototype to avoid an error. */ 10997/* Override any gcc2 internal prototype to avoid an error. */
10998#ifdef __cplusplus
10999extern "C"
11000#endif
8137/* We use char because int might match the return type of a gcc2 11001/* We use char because int might match the return type of a gcc2
8138 builtin and then its argument prototype would still apply. */ 11002 builtin and then its argument prototype would still apply. */
8139char $ac_func(); 11003char $ac_func ();
8140 11004char (*f) ();
8141int main() {
8142 11005
11006int
11007main ()
11008{
8143/* The GNU C library defines this for functions which it implements 11009/* The GNU C library defines this for functions which it implements
8144 to always fail with ENOSYS. Some functions are actually named 11010 to always fail with ENOSYS. Some functions are actually named
8145 something starting with __ and the normal name is an alias. */ 11011 something starting with __ and the normal name is an alias. */
8146#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8147choke me 11013choke me
8148#else 11014#else
8149$ac_func(); 11015f = $ac_func;
8150#endif 11016#endif
8151 11017
8152; return 0; } 11018 ;
11019 return 0;
11020}
11021_ACEOF
11022rm -f conftest.$ac_objext conftest$ac_exeext
11023if { (eval echo "$as_me:11023: \"$ac_link\"") >&5
11024 (eval $ac_link) 2>&5
11025 ac_status=$?
11026 echo "$as_me:11026: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -s conftest$ac_exeext'
11029 { (eval echo "$as_me:11029: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:11032: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 eval "$as_ac_var=yes"
11035else
11036 echo "$as_me: failed program was:" >&5
11037cat conftest.$ac_ext >&5
11038eval "$as_ac_var=no"
11039fi
11040rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11041fi
11042echo "$as_me:11042: result: `eval echo '${'$as_ac_var'}'`" >&5
11043echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11044if test `eval echo '${'$as_ac_var'}'` = yes; then
11045 cat >>confdefs.h <<EOF
11046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8153EOF 11047EOF
8154if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8155 rm -rf conftest*
8156 eval "ac_cv_func_$ac_func=yes"
8157else
8158 echo "configure: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8160 rm -rf conftest*
8161 eval "ac_cv_func_$ac_func=no"
8162fi
8163rm -f conftest*
8164fi
8165 11048
8166if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8167 echo "$ac_t""yes" 1>&6
8168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8169 cat >> confdefs.h <<EOF
8170#define $ac_tr_func 1
8171EOF
8172
8173else
8174 echo "$ac_t""no" 1>&6
8175fi 11049fi
8176done 11050done
8177 11051
8178 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 11052 echo "$as_me:11052: checking whether gettimeofday can accept two arguments" >&5
8179echo "configure:8180: checking whether gettimeofday can accept two arguments" >&5 11053echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
8180if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 11054if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
8181 echo $ac_n "(cached) $ac_c" 1>&6 11055 echo $ECHO_N "(cached) $ECHO_C" >&6
8182else 11056else
8183 cat > conftest.$ac_ext <<EOF 11057 cat >conftest.$ac_ext <<_ACEOF
8184#line 8185 "configure" 11058#line 11058 "configure"
8185#include "confdefs.h" 11059#include "confdefs.h"
8186 11060
8187#ifdef TIME_WITH_SYS_TIME 11061#ifdef TIME_WITH_SYS_TIME
@@ -8194,26 +11068,39 @@ else
8194#include <time.h> 11068#include <time.h>
8195#endif 11069#endif
8196#endif 11070#endif
8197int main() { 11071int
11072main ()
11073{
8198struct timeval time; 11074struct timeval time;
8199 gettimeofday (&time, 0); 11075 gettimeofday (&time, 0);
8200; return 0; } 11076 ;
8201EOF 11077 return 0;
8202if { (eval echo configure:8203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11078}
8203 rm -rf conftest* 11079_ACEOF
11080rm -f conftest.$ac_objext
11081if { (eval echo "$as_me:11081: \"$ac_compile\"") >&5
11082 (eval $ac_compile) 2>&5
11083 ac_status=$?
11084 echo "$as_me:11084: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
11086 { ac_try='test -s conftest.$ac_objext'
11087 { (eval echo "$as_me:11087: \"$ac_try\"") >&5
11088 (eval $ac_try) 2>&5
11089 ac_status=$?
11090 echo "$as_me:11090: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
8204 emacs_cv_gettimeofday_two_arguments=yes 11092 emacs_cv_gettimeofday_two_arguments=yes
8205else 11093else
8206 echo "configure: failed program was:" >&5 11094 echo "$as_me: failed program was:" >&5
8207 cat conftest.$ac_ext >&5 11095cat conftest.$ac_ext >&5
8208 rm -rf conftest* 11096emacs_cv_gettimeofday_two_arguments=no
8209 emacs_cv_gettimeofday_two_arguments=no
8210fi 11097fi
8211rm -f conftest* 11098rm -f conftest.$ac_objext conftest.$ac_ext
8212fi 11099fi
8213 11100echo "$as_me:11100: result: $emacs_cv_gettimeofday_two_arguments" >&5
8214echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 11101echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
8215 if test $emacs_cv_gettimeofday_two_arguments = no; then 11102 if test $emacs_cv_gettimeofday_two_arguments = no; then
8216 cat >> confdefs.h <<\EOF 11103 cat >>confdefs.h <<\EOF
8217#define GETTIMEOFDAY_ONE_ARGUMENT 1 11104#define GETTIMEOFDAY_ONE_ARGUMENT 1
8218EOF 11105EOF
8219 11106
@@ -8221,26 +11108,40 @@ EOF
8221fi 11108fi
8222 11109
8223if test "$ac_cv_func_gettimeofday" = yes; then 11110if test "$ac_cv_func_gettimeofday" = yes; then
8224 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 11111 echo "$as_me:11111: checking for struct timezone" >&5
8225echo "configure:8226: checking for struct timezone" >&5 11112echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
8226if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then 11113if test "${emacs_cv_struct_timezone+set}" = set; then
8227 echo $ac_n "(cached) $ac_c" 1>&6 11114 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else 11115else
8229 cat > conftest.$ac_ext <<EOF 11116 cat >conftest.$ac_ext <<_ACEOF
8230#line 8231 "configure" 11117#line 11117 "configure"
8231#include "confdefs.h" 11118#include "confdefs.h"
8232#include <sys/time.h> 11119#include <sys/time.h>
8233int main() { 11120int
11121main ()
11122{
8234struct timezone tz; 11123struct timezone tz;
8235; return 0; } 11124 ;
8236EOF 11125 return 0;
8237if { (eval echo configure:8238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11126}
8238 rm -rf conftest* 11127_ACEOF
11128rm -f conftest.$ac_objext
11129if { (eval echo "$as_me:11129: \"$ac_compile\"") >&5
11130 (eval $ac_compile) 2>&5
11131 ac_status=$?
11132 echo "$as_me:11132: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -s conftest.$ac_objext'
11135 { (eval echo "$as_me:11135: \"$ac_try\"") >&5
11136 (eval $ac_try) 2>&5
11137 ac_status=$?
11138 echo "$as_me:11138: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
8239 if test "$cross_compiling" = yes; then 11140 if test "$cross_compiling" = yes; then
8240 emacs_cv_struct_timezone=yes 11141 emacs_cv_struct_timezone=yes
8241else 11142else
8242 cat > conftest.$ac_ext <<EOF 11143 cat >conftest.$ac_ext <<_ACEOF
8243#line 8244 "configure" 11144#line 11144 "configure"
8244#include "confdefs.h" 11145#include "confdefs.h"
8245 11146
8246#ifdef TIME_WITH_SYS_TIME 11147#ifdef TIME_WITH_SYS_TIME
@@ -8258,327 +11159,485 @@ main () {
8258 struct timezone dummy; 11159 struct timezone dummy;
8259 exit (gettimeofday (&time, &dummy)); 11160 exit (gettimeofday (&time, &dummy));
8260} 11161}
8261EOF 11162_ACEOF
8262if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 11163rm -f conftest$ac_exeext
8263then 11164if { (eval echo "$as_me:11164: \"$ac_link\"") >&5
11165 (eval $ac_link) 2>&5
11166 ac_status=$?
11167 echo "$as_me:11167: \$? = $ac_status" >&5
11168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11169 { (eval echo "$as_me:11169: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:11172: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
8264 emacs_cv_struct_timezone=yes 11174 emacs_cv_struct_timezone=yes
8265else 11175else
8266 echo "configure: failed program was:" >&5 11176 echo "$as_me: program exited with status $ac_status" >&5
8267 cat conftest.$ac_ext >&5 11177echo "$as_me: failed program was:" >&5
8268 rm -fr conftest* 11178cat conftest.$ac_ext >&5
8269 emacs_cv_struct_timezone=no 11179emacs_cv_struct_timezone=no
8270fi 11180fi
8271rm -fr conftest* 11181rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8272fi 11182fi
8273
8274else 11183else
8275 echo "configure: failed program was:" >&5 11184 echo "$as_me: failed program was:" >&5
8276 cat conftest.$ac_ext >&5 11185cat conftest.$ac_ext >&5
8277 rm -rf conftest* 11186emacs_cv_struct_timezone=no
8278 emacs_cv_struct_timezone=no
8279fi 11187fi
8280rm -f conftest* 11188rm -f conftest.$ac_objext conftest.$ac_ext
8281fi 11189fi
8282 11190echo "$as_me:11190: result: $emacs_cv_struct_timezone" >&5
8283echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 11191echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
8284fi 11192fi
8285 11193
8286ok_so_far=yes 11194ok_so_far=yes
8287echo $ac_n "checking for socket""... $ac_c" 1>&6 11195echo "$as_me:11195: checking for socket" >&5
8288echo "configure:8289: checking for socket" >&5 11196echo $ECHO_N "checking for socket... $ECHO_C" >&6
8289if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 11197if test "${ac_cv_func_socket+set}" = set; then
8290 echo $ac_n "(cached) $ac_c" 1>&6 11198 echo $ECHO_N "(cached) $ECHO_C" >&6
8291else 11199else
8292 cat > conftest.$ac_ext <<EOF 11200 cat >conftest.$ac_ext <<_ACEOF
8293#line 8294 "configure" 11201#line 11201 "configure"
8294#include "confdefs.h" 11202#include "confdefs.h"
8295/* System header to define __stub macros and hopefully few prototypes, 11203/* System header to define __stub macros and hopefully few prototypes,
8296 which can conflict with char socket(); below. */ 11204 which can conflict with char socket (); below. */
8297#include <assert.h> 11205#include <assert.h>
8298/* Override any gcc2 internal prototype to avoid an error. */ 11206/* Override any gcc2 internal prototype to avoid an error. */
11207#ifdef __cplusplus
11208extern "C"
11209#endif
8299/* We use char because int might match the return type of a gcc2 11210/* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */ 11211 builtin and then its argument prototype would still apply. */
8301char socket(); 11212char socket ();
8302 11213char (*f) ();
8303int main() {
8304 11214
11215int
11216main ()
11217{
8305/* The GNU C library defines this for functions which it implements 11218/* The GNU C library defines this for functions which it implements
8306 to always fail with ENOSYS. Some functions are actually named 11219 to always fail with ENOSYS. Some functions are actually named
8307 something starting with __ and the normal name is an alias. */ 11220 something starting with __ and the normal name is an alias. */
8308#if defined (__stub_socket) || defined (__stub___socket) 11221#if defined (__stub_socket) || defined (__stub___socket)
8309choke me 11222choke me
8310#else 11223#else
8311socket(); 11224f = socket;
8312#endif 11225#endif
8313 11226
8314; return 0; } 11227 ;
8315EOF 11228 return 0;
8316if { (eval echo configure:8317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11229}
8317 rm -rf conftest* 11230_ACEOF
8318 eval "ac_cv_func_socket=yes" 11231rm -f conftest.$ac_objext conftest$ac_exeext
8319else 11232if { (eval echo "$as_me:11232: \"$ac_link\"") >&5
8320 echo "configure: failed program was:" >&5 11233 (eval $ac_link) 2>&5
8321 cat conftest.$ac_ext >&5 11234 ac_status=$?
8322 rm -rf conftest* 11235 echo "$as_me:11235: \$? = $ac_status" >&5
8323 eval "ac_cv_func_socket=no" 11236 (exit $ac_status); } &&
8324fi 11237 { ac_try='test -s conftest$ac_exeext'
8325rm -f conftest* 11238 { (eval echo "$as_me:11238: \"$ac_try\"") >&5
8326fi 11239 (eval $ac_try) 2>&5
8327 11240 ac_status=$?
8328if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 11241 echo "$as_me:11241: \$? = $ac_status" >&5
8329 echo "$ac_t""yes" 1>&6 11242 (exit $ac_status); }; }; then
11243 ac_cv_func_socket=yes
11244else
11245 echo "$as_me: failed program was:" >&5
11246cat conftest.$ac_ext >&5
11247ac_cv_func_socket=no
11248fi
11249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11250fi
11251echo "$as_me:11251: result: $ac_cv_func_socket" >&5
11252echo "${ECHO_T}$ac_cv_func_socket" >&6
11253if test $ac_cv_func_socket = yes; then
8330 : 11254 :
8331else 11255else
8332 echo "$ac_t""no" 1>&6 11256 ok_so_far=no
8333ok_so_far=no
8334fi 11257fi
8335 11258
8336if test $ok_so_far = yes; then 11259if test $ok_so_far = yes; then
8337 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 11260 echo "$as_me:11260: checking for netinet/in.h" >&5
8338echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 11261echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
8339echo "configure:8340: checking for netinet/in.h" >&5 11262if test "${ac_cv_header_netinet_in_h+set}" = set; then
8340if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 11263 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 echo $ac_n "(cached) $ac_c" 1>&6
8342else 11264else
8343 cat > conftest.$ac_ext <<EOF 11265 cat >conftest.$ac_ext <<_ACEOF
8344#line 8345 "configure" 11266#line 11266 "configure"
8345#include "confdefs.h" 11267#include "confdefs.h"
8346#include <netinet/in.h> 11268#include <netinet/in.h>
8347EOF 11269_ACEOF
8348ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11270if { (eval echo "$as_me:11270: \"$ac_cpp conftest.$ac_ext\"") >&5
8349{ (eval echo configure:8350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8350ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11272 ac_status=$?
8351if test -z "$ac_err"; then 11273 egrep -v '^ *\+' conftest.er1 >conftest.err
8352 rm -rf conftest* 11274 rm -f conftest.er1
8353 eval "ac_cv_header_$ac_safe=yes" 11275 cat conftest.err >&5
11276 echo "$as_me:11276: \$? = $ac_status" >&5
11277 (exit $ac_status); } >/dev/null; then
11278 if test -s conftest.err; then
11279 ac_cpp_err=$ac_c_preproc_warn_flag
11280 else
11281 ac_cpp_err=
11282 fi
11283else
11284 ac_cpp_err=yes
11285fi
11286if test -z "$ac_cpp_err"; then
11287 ac_cv_header_netinet_in_h=yes
8354else 11288else
8355 echo "$ac_err" >&5 11289 echo "$as_me: failed program was:" >&5
8356 echo "configure: failed program was:" >&5
8357 cat conftest.$ac_ext >&5 11290 cat conftest.$ac_ext >&5
8358 rm -rf conftest* 11291 ac_cv_header_netinet_in_h=no
8359 eval "ac_cv_header_$ac_safe=no"
8360fi 11292fi
8361rm -f conftest* 11293rm -f conftest.err conftest.$ac_ext
8362fi 11294fi
8363if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11295echo "$as_me:11295: result: $ac_cv_header_netinet_in_h" >&5
8364 echo "$ac_t""yes" 1>&6 11296echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11297if test $ac_cv_header_netinet_in_h = yes; then
8365 : 11298 :
8366else 11299else
8367 echo "$ac_t""no" 1>&6 11300 ok_so_far=no
8368ok_so_far=no
8369fi 11301fi
8370 11302
8371fi 11303fi
8372if test $ok_so_far = yes; then 11304if test $ok_so_far = yes; then
8373 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 11305 echo "$as_me:11305: checking for arpa/inet.h" >&5
8374echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 11306echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
8375echo "configure:8376: checking for arpa/inet.h" >&5 11307if test "${ac_cv_header_arpa_inet_h+set}" = set; then
8376if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 11308 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 echo $ac_n "(cached) $ac_c" 1>&6
8378else 11309else
8379 cat > conftest.$ac_ext <<EOF 11310 cat >conftest.$ac_ext <<_ACEOF
8380#line 8381 "configure" 11311#line 11311 "configure"
8381#include "confdefs.h" 11312#include "confdefs.h"
8382#include <arpa/inet.h> 11313#include <arpa/inet.h>
8383EOF 11314_ACEOF
8384ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11315if { (eval echo "$as_me:11315: \"$ac_cpp conftest.$ac_ext\"") >&5
8385{ (eval echo configure:8386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8386ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11317 ac_status=$?
8387if test -z "$ac_err"; then 11318 egrep -v '^ *\+' conftest.er1 >conftest.err
8388 rm -rf conftest* 11319 rm -f conftest.er1
8389 eval "ac_cv_header_$ac_safe=yes" 11320 cat conftest.err >&5
11321 echo "$as_me:11321: \$? = $ac_status" >&5
11322 (exit $ac_status); } >/dev/null; then
11323 if test -s conftest.err; then
11324 ac_cpp_err=$ac_c_preproc_warn_flag
11325 else
11326 ac_cpp_err=
11327 fi
8390else 11328else
8391 echo "$ac_err" >&5 11329 ac_cpp_err=yes
8392 echo "configure: failed program was:" >&5 11330fi
11331if test -z "$ac_cpp_err"; then
11332 ac_cv_header_arpa_inet_h=yes
11333else
11334 echo "$as_me: failed program was:" >&5
8393 cat conftest.$ac_ext >&5 11335 cat conftest.$ac_ext >&5
8394 rm -rf conftest* 11336 ac_cv_header_arpa_inet_h=no
8395 eval "ac_cv_header_$ac_safe=no"
8396fi 11337fi
8397rm -f conftest* 11338rm -f conftest.err conftest.$ac_ext
8398fi 11339fi
8399if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11340echo "$as_me:11340: result: $ac_cv_header_arpa_inet_h" >&5
8400 echo "$ac_t""yes" 1>&6 11341echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11342if test $ac_cv_header_arpa_inet_h = yes; then
8401 : 11343 :
8402else 11344else
8403 echo "$ac_t""no" 1>&6 11345 ok_so_far=no
8404ok_so_far=no
8405fi 11346fi
8406 11347
8407fi 11348fi
8408if test $ok_so_far = yes; then 11349if test $ok_so_far = yes; then
8409 cat >> confdefs.h <<\EOF 11350 cat >>confdefs.h <<\EOF
8410#define HAVE_INET_SOCKETS 1 11351#define HAVE_INET_SOCKETS 1
8411EOF 11352EOF
8412 11353
8413fi 11354fi
8414 11355
8415if test -f /usr/lpp/X11/bin/smt.exp; then 11356if test -f /usr/lpp/X11/bin/smt.exp; then
8416 cat >> confdefs.h <<\EOF 11357 cat >>confdefs.h <<\EOF
8417#define HAVE_AIX_SMT_EXP 1 11358#define HAVE_AIX_SMT_EXP 1
8418EOF 11359EOF
8419 11360
8420fi 11361fi
8421 11362
8422echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 11363echo "$as_me:11363: checking whether system supports dynamic ptys" >&5
8423echo "configure:8424: checking whether system supports dynamic ptys" >&5 11364echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
8424if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 11365if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
8425 echo "$ac_t""yes" 1>&6 11366 echo "$as_me:11366: result: yes" >&5
8426 cat >> confdefs.h <<\EOF 11367echo "${ECHO_T}yes" >&6
11368 cat >>confdefs.h <<\EOF
8427#define HAVE_DEV_PTMX 1 11369#define HAVE_DEV_PTMX 1
8428EOF 11370EOF
8429 11371
8430else 11372else
8431 echo "$ac_t""no" 1>&6 11373 echo "$as_me:11373: result: no" >&5
11374echo "${ECHO_T}no" >&6
8432fi 11375fi
8433 11376
8434echo $ac_n "checking for pid_t""... $ac_c" 1>&6 11377echo "$as_me:11377: checking for pid_t" >&5
8435echo "configure:8436: checking for pid_t" >&5 11378echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8436if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 11379if test "${ac_cv_type_pid_t+set}" = set; then
8437 echo $ac_n "(cached) $ac_c" 1>&6 11380 echo $ECHO_N "(cached) $ECHO_C" >&6
8438else 11381else
8439 cat > conftest.$ac_ext <<EOF 11382 cat >conftest.$ac_ext <<_ACEOF
8440#line 8441 "configure" 11383#line 11383 "configure"
8441#include "confdefs.h" 11384#include "confdefs.h"
8442#include <sys/types.h> 11385$ac_includes_default
8443#if STDC_HEADERS 11386int
8444#include <stdlib.h> 11387main ()
8445#include <stddef.h> 11388{
8446#endif 11389if ((pid_t *) 0)
8447EOF 11390 return 0;
8448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11391if (sizeof (pid_t))
8449 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 11392 return 0;
8450 rm -rf conftest* 11393 ;
11394 return 0;
11395}
11396_ACEOF
11397rm -f conftest.$ac_objext
11398if { (eval echo "$as_me:11398: \"$ac_compile\"") >&5
11399 (eval $ac_compile) 2>&5
11400 ac_status=$?
11401 echo "$as_me:11401: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -s conftest.$ac_objext'
11404 { (eval echo "$as_me:11404: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11406 ac_status=$?
11407 echo "$as_me:11407: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
8451 ac_cv_type_pid_t=yes 11409 ac_cv_type_pid_t=yes
8452else 11410else
8453 rm -rf conftest* 11411 echo "$as_me: failed program was:" >&5
8454 ac_cv_type_pid_t=no 11412cat conftest.$ac_ext >&5
11413ac_cv_type_pid_t=no
8455fi 11414fi
8456rm -f conftest* 11415rm -f conftest.$ac_objext conftest.$ac_ext
8457
8458fi 11416fi
8459echo "$ac_t""$ac_cv_type_pid_t" 1>&6 11417echo "$as_me:11417: result: $ac_cv_type_pid_t" >&5
8460if test $ac_cv_type_pid_t = no; then 11418echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8461 cat >> confdefs.h <<\EOF 11419if test $ac_cv_type_pid_t = yes; then
11420 :
11421else
11422
11423cat >>confdefs.h <<EOF
8462#define pid_t int 11424#define pid_t int
8463EOF 11425EOF
8464 11426
8465fi 11427fi
8466 11428
8467ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 11429for ac_header in unistd.h vfork.h
8468echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 11430do
8469echo "configure:8470: checking for vfork.h" >&5 11431as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8470if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 11432echo "$as_me:11432: checking for $ac_header" >&5
8471 echo $ac_n "(cached) $ac_c" 1>&6 11433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436else
11437 cat >conftest.$ac_ext <<_ACEOF
11438#line 11438 "configure"
11439#include "confdefs.h"
11440#include <$ac_header>
11441_ACEOF
11442if { (eval echo "$as_me:11442: \"$ac_cpp conftest.$ac_ext\"") >&5
11443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11444 ac_status=$?
11445 egrep -v '^ *\+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:11448: \$? = $ac_status" >&5
11449 (exit $ac_status); } >/dev/null; then
11450 if test -s conftest.err; then
11451 ac_cpp_err=$ac_c_preproc_warn_flag
11452 else
11453 ac_cpp_err=
11454 fi
8472else 11455else
8473 cat > conftest.$ac_ext <<EOF 11456 ac_cpp_err=yes
8474#line 8475 "configure" 11457fi
8475#include "confdefs.h" 11458if test -z "$ac_cpp_err"; then
8476#include <vfork.h> 11459 eval "$as_ac_Header=yes"
8477EOF
8478ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8479{ (eval echo configure:8480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8480ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8481if test -z "$ac_err"; then
8482 rm -rf conftest*
8483 eval "ac_cv_header_$ac_safe=yes"
8484else 11460else
8485 echo "$ac_err" >&5 11461 echo "$as_me: failed program was:" >&5
8486 echo "configure: failed program was:" >&5
8487 cat conftest.$ac_ext >&5 11462 cat conftest.$ac_ext >&5
8488 rm -rf conftest* 11463 eval "$as_ac_Header=no"
8489 eval "ac_cv_header_$ac_safe=no"
8490fi 11464fi
8491rm -f conftest* 11465rm -f conftest.err conftest.$ac_ext
8492fi 11466fi
8493if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11467echo "$as_me:11467: result: `eval echo '${'$as_ac_Header'}'`" >&5
8494 echo "$ac_t""yes" 1>&6 11468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8495 cat >> confdefs.h <<\EOF 11469if test `eval echo '${'$as_ac_Header'}'` = yes; then
8496#define HAVE_VFORK_H 1 11470 cat >>confdefs.h <<EOF
11471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8497EOF 11472EOF
8498 11473
8499else
8500 echo "$ac_t""no" 1>&6
8501fi 11474fi
11475done
8502 11476
8503echo $ac_n "checking for working vfork""... $ac_c" 1>&6 11477for ac_func in fork vfork
8504echo "configure:8505: checking for working vfork" >&5 11478do
8505if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 11479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8506 echo $ac_n "(cached) $ac_c" 1>&6 11480echo "$as_me:11480: checking for $ac_func" >&5
8507else 11481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8508 if test "$cross_compiling" = yes; then 11482if eval "test \"\${$as_ac_var+set}\" = set"; then
8509 echo $ac_n "checking for vfork""... $ac_c" 1>&6 11483 echo $ECHO_N "(cached) $ECHO_C" >&6
8510echo "configure:8511: checking for vfork" >&5
8511if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8512 echo $ac_n "(cached) $ac_c" 1>&6
8513else 11484else
8514 cat > conftest.$ac_ext <<EOF 11485 cat >conftest.$ac_ext <<_ACEOF
8515#line 8516 "configure" 11486#line 11486 "configure"
8516#include "confdefs.h" 11487#include "confdefs.h"
8517/* System header to define __stub macros and hopefully few prototypes, 11488/* System header to define __stub macros and hopefully few prototypes,
8518 which can conflict with char vfork(); below. */ 11489 which can conflict with char $ac_func (); below. */
8519#include <assert.h> 11490#include <assert.h>
8520/* Override any gcc2 internal prototype to avoid an error. */ 11491/* Override any gcc2 internal prototype to avoid an error. */
11492#ifdef __cplusplus
11493extern "C"
11494#endif
8521/* We use char because int might match the return type of a gcc2 11495/* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */ 11496 builtin and then its argument prototype would still apply. */
8523char vfork(); 11497char $ac_func ();
8524 11498char (*f) ();
8525int main() {
8526 11499
11500int
11501main ()
11502{
8527/* The GNU C library defines this for functions which it implements 11503/* The GNU C library defines this for functions which it implements
8528 to always fail with ENOSYS. Some functions are actually named 11504 to always fail with ENOSYS. Some functions are actually named
8529 something starting with __ and the normal name is an alias. */ 11505 something starting with __ and the normal name is an alias. */
8530#if defined (__stub_vfork) || defined (__stub___vfork) 11506#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8531choke me 11507choke me
8532#else 11508#else
8533vfork(); 11509f = $ac_func;
8534#endif 11510#endif
8535 11511
8536; return 0; } 11512 ;
11513 return 0;
11514}
11515_ACEOF
11516rm -f conftest.$ac_objext conftest$ac_exeext
11517if { (eval echo "$as_me:11517: \"$ac_link\"") >&5
11518 (eval $ac_link) 2>&5
11519 ac_status=$?
11520 echo "$as_me:11520: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try='test -s conftest$ac_exeext'
11523 { (eval echo "$as_me:11523: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:11526: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 eval "$as_ac_var=yes"
11529else
11530 echo "$as_me: failed program was:" >&5
11531cat conftest.$ac_ext >&5
11532eval "$as_ac_var=no"
11533fi
11534rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11535fi
11536echo "$as_me:11536: result: `eval echo '${'$as_ac_var'}'`" >&5
11537echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11538if test `eval echo '${'$as_ac_var'}'` = yes; then
11539 cat >>confdefs.h <<EOF
11540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8537EOF 11541EOF
8538if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11542
8539 rm -rf conftest*
8540 eval "ac_cv_func_vfork=yes"
8541else
8542 echo "configure: failed program was:" >&5
8543 cat conftest.$ac_ext >&5
8544 rm -rf conftest*
8545 eval "ac_cv_func_vfork=no"
8546fi
8547rm -f conftest*
8548fi 11543fi
11544done
8549 11545
8550if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then 11546ac_cv_func_fork_works=$ac_cv_func_fork
8551 echo "$ac_t""yes" 1>&6 11547if test "x$ac_cv_func_fork" = xyes; then
8552 : 11548 echo "$as_me:11548: checking for working fork" >&5
11549echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11550if test "${ac_cv_func_fork_works+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553else 11552else
8554 echo "$ac_t""no" 1>&6 11553 if test "$cross_compiling" = yes; then
11554 ac_cv_func_fork_works=cross
11555else
11556 cat >conftest.$ac_ext <<_ACEOF
11557/* By Rüdiger Kuhlmann. */
11558 #include <sys/types.h>
11559 #if HAVE_UNISTD_H
11560 # include <unistd.h>
11561 #endif
11562 /* Some systems only have a dummy stub for fork() */
11563 int main ()
11564 {
11565 if (fork() < 0)
11566 exit (1);
11567 exit (0);
11568 }
11569_ACEOF
11570rm -f conftest$ac_exeext
11571if { (eval echo "$as_me:11571: \"$ac_link\"") >&5
11572 (eval $ac_link) 2>&5
11573 ac_status=$?
11574 echo "$as_me:11574: \$? = $ac_status" >&5
11575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11576 { (eval echo "$as_me:11576: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:11579: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }; then
11581 ac_cv_func_fork_works=yes
11582else
11583 echo "$as_me: program exited with status $ac_status" >&5
11584echo "$as_me: failed program was:" >&5
11585cat conftest.$ac_ext >&5
11586ac_cv_func_fork_works=no
11587fi
11588rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11589fi
11590fi
11591echo "$as_me:11591: result: $ac_cv_func_fork_works" >&5
11592echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11593
11594fi
11595if test "x$ac_cv_func_fork_works" = xcross; then
11596 case $host in
11597 *-*-amigaos* | *-*-msdosdjgpp*)
11598 # Override, as these systems have only a dummy fork() stub
11599 ac_cv_func_fork_works=no
11600 ;;
11601 *)
11602 ac_cv_func_fork_works=yes
11603 ;;
11604 esac
11605 { echo "$as_me:11605: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
11606echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
8555fi 11607fi
8556
8557ac_cv_func_vfork_works=$ac_cv_func_vfork 11608ac_cv_func_vfork_works=$ac_cv_func_vfork
11609if test "x$ac_cv_func_vfork" = xyes; then
11610 echo "$as_me:11610: checking for working vfork" >&5
11611echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11612if test "${ac_cv_func_vfork_works+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
8558else 11614else
8559 cat > conftest.$ac_ext <<EOF 11615 if test "$cross_compiling" = yes; then
8560#line 8561 "configure" 11616 ac_cv_func_vfork_works=cross
11617else
11618 cat >conftest.$ac_ext <<_ACEOF
11619#line 11619 "configure"
8561#include "confdefs.h" 11620#include "confdefs.h"
8562/* Thanks to Paul Eggert for this test. */ 11621/* Thanks to Paul Eggert for this test. */
8563#include <stdio.h> 11622#include <stdio.h>
8564#include <sys/types.h> 11623#include <sys/types.h>
8565#include <sys/stat.h> 11624#include <sys/stat.h>
8566#ifdef HAVE_UNISTD_H 11625#if HAVE_UNISTD_H
8567#include <unistd.h> 11626# include <unistd.h>
8568#endif 11627#endif
8569#ifdef HAVE_VFORK_H 11628#if HAVE_VFORK_H
8570#include <vfork.h> 11629# include <vfork.h>
8571#endif 11630#endif
8572/* On some sparc systems, changes by the child to local and incoming 11631/* On some sparc systems, changes by the child to local and incoming
8573 argument registers are propagated back to the parent. 11632 argument registers are propagated back to the parent. The compiler
8574 The compiler is told about this with #include <vfork.h>, 11633 is told about this with #include <vfork.h>, but some compilers
8575 but some compilers (e.g. gcc -O) don't grok <vfork.h>. 11634 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8576 Test for this by using a static variable whose address 11635 static variable whose address is put into a register that is
8577 is put into a register that is clobbered by the vfork. */ 11636 clobbered by the vfork. */
8578static 11637static
8579#ifdef __cplusplus 11638#ifdef __cplusplus
8580sparc_address_test (int arg) 11639sparc_address_test (int arg)
8581#else 11640# else
8582sparc_address_test (arg) int arg; 11641sparc_address_test (arg) int arg;
8583#endif 11642#endif
8584{ 11643{
@@ -8596,7 +11655,10 @@ sparc_address_test (arg) int arg;
8596 } 11655 }
8597 } 11656 }
8598} 11657}
8599main() { 11658
11659int
11660main ()
11661{
8600 pid_t parent = getpid (); 11662 pid_t parent = getpid ();
8601 pid_t child; 11663 pid_t child;
8602 11664
@@ -8605,16 +11667,15 @@ main() {
8605 child = vfork (); 11667 child = vfork ();
8606 11668
8607 if (child == 0) { 11669 if (child == 0) {
8608 /* Here is another test for sparc vfork register problems. 11670 /* Here is another test for sparc vfork register problems. This
8609 This test uses lots of local variables, at least 11671 test uses lots of local variables, at least as many local
8610 as many local variables as main has allocated so far 11672 variables as main has allocated so far including compiler
8611 including compiler temporaries. 4 locals are enough for 11673 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8612 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. 11674 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8613 A buggy compiler should reuse the register of parent 11675 reuse the register of parent for one of the local variables,
8614 for one of the local variables, since it will think that 11676 since it will think that parent can't possibly be used any more
8615 parent can't possibly be used any more in this routine. 11677 in this routine. Assigning to the local variable will thus
8616 Assigning to the local variable will thus munge parent 11678 munge parent in the parent process. */
8617 in the parent process. */
8618 pid_t 11679 pid_t
8619 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 11680 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8620 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 11681 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
@@ -8624,11 +11685,10 @@ main() {
8624 || p != p5 || p != p6 || p != p7) 11685 || p != p5 || p != p6 || p != p7)
8625 _exit(1); 11686 _exit(1);
8626 11687
8627 /* On some systems (e.g. IRIX 3.3), 11688 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8628 vfork doesn't separate parent from child file descriptors. 11689 from child file descriptors. If the child closes a descriptor
8629 If the child closes a descriptor before it execs or exits, 11690 before it execs or exits, this munges the parent's descriptor
8630 this munges the parent's descriptor as well. 11691 as well. Test for this by closing stdout in the child. */
8631 Test for this by closing stdout in the child. */
8632 _exit(close(fileno(stdout)) != 0); 11692 _exit(close(fileno(stdout)) != 0);
8633 } else { 11693 } else {
8634 int status; 11694 int status;
@@ -8651,65 +11711,112 @@ main() {
8651 ); 11711 );
8652 } 11712 }
8653} 11713}
8654EOF 11714_ACEOF
8655if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 11715rm -f conftest$ac_exeext
8656then 11716if { (eval echo "$as_me:11716: \"$ac_link\"") >&5
11717 (eval $ac_link) 2>&5
11718 ac_status=$?
11719 echo "$as_me:11719: \$? = $ac_status" >&5
11720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11721 { (eval echo "$as_me:11721: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:11724: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
8657 ac_cv_func_vfork_works=yes 11726 ac_cv_func_vfork_works=yes
8658else 11727else
8659 echo "configure: failed program was:" >&5 11728 echo "$as_me: program exited with status $ac_status" >&5
8660 cat conftest.$ac_ext >&5 11729echo "$as_me: failed program was:" >&5
8661 rm -fr conftest* 11730cat conftest.$ac_ext >&5
8662 ac_cv_func_vfork_works=no 11731ac_cv_func_vfork_works=no
11732fi
11733rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8663fi 11734fi
8664rm -fr conftest*
8665fi 11735fi
11736echo "$as_me:11736: result: $ac_cv_func_vfork_works" >&5
11737echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8666 11738
11739fi;
11740if test "x$ac_cv_func_fork_works" = xcross; then
11741 ac_cv_func_vfork_works=ac_cv_func_vfork
11742 { echo "$as_me:11742: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
11743echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
8667fi 11744fi
8668 11745
8669echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 11746if test "x$ac_cv_func_vfork_works" = xyes; then
8670if test $ac_cv_func_vfork_works = no; then 11747
8671 cat >> confdefs.h <<\EOF 11748cat >>confdefs.h <<\EOF
11749#define HAVE_WORKING_VFORK 1
11750EOF
11751
11752else
11753
11754cat >>confdefs.h <<\EOF
8672#define vfork fork 11755#define vfork fork
8673EOF 11756EOF
8674 11757
8675fi 11758fi
11759if test "x$ac_cv_func_fork_works" = xyes; then
8676 11760
11761cat >>confdefs.h <<\EOF
11762#define HAVE_WORKING_FORK 1
11763EOF
11764
11765fi
8677 11766
8678# Fixme: This should be replaced when we have autoconf 2.14. 11767# Fixme: This should be replaced when we have autoconf 2.14.
8679echo $ac_n "checking for size_t""... $ac_c" 1>&6 11768echo "$as_me:11768: checking for size_t" >&5
8680echo "configure:8681: checking for size_t" >&5 11769echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8681if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 11770if test "${ac_cv_type_size_t+set}" = set; then
8682 echo $ac_n "(cached) $ac_c" 1>&6 11771 echo $ECHO_N "(cached) $ECHO_C" >&6
8683else 11772else
8684 cat > conftest.$ac_ext <<EOF 11773 cat >conftest.$ac_ext <<_ACEOF
8685#line 8686 "configure" 11774#line 11774 "configure"
8686#include "confdefs.h" 11775#include "confdefs.h"
8687#include <sys/types.h> 11776$ac_includes_default
8688#if STDC_HEADERS 11777int
8689#include <stdlib.h> 11778main ()
8690#include <stddef.h> 11779{
8691#endif 11780if ((size_t *) 0)
8692EOF 11781 return 0;
8693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11782if (sizeof (size_t))
8694 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 11783 return 0;
8695 rm -rf conftest* 11784 ;
11785 return 0;
11786}
11787_ACEOF
11788rm -f conftest.$ac_objext
11789if { (eval echo "$as_me:11789: \"$ac_compile\"") >&5
11790 (eval $ac_compile) 2>&5
11791 ac_status=$?
11792 echo "$as_me:11792: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (eval echo "$as_me:11795: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:11798: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
8696 ac_cv_type_size_t=yes 11800 ac_cv_type_size_t=yes
8697else 11801else
8698 rm -rf conftest* 11802 echo "$as_me: failed program was:" >&5
8699 ac_cv_type_size_t=no 11803cat conftest.$ac_ext >&5
11804ac_cv_type_size_t=no
8700fi 11805fi
8701rm -f conftest* 11806rm -f conftest.$ac_objext conftest.$ac_ext
8702
8703fi 11807fi
8704echo "$ac_t""$ac_cv_type_size_t" 1>&6 11808echo "$as_me:11808: result: $ac_cv_type_size_t" >&5
8705if test $ac_cv_type_size_t = no; then 11809echo "${ECHO_T}$ac_cv_type_size_t" >&6
8706 cat >> confdefs.h <<\EOF 11810if test $ac_cv_type_size_t = yes; then
11811 :
11812else
11813
11814cat >>confdefs.h <<EOF
8707#define size_t unsigned 11815#define size_t unsigned
8708EOF 11816EOF
8709 11817
8710fi 11818fi
8711 11819
8712
8713# Set up the CFLAGS for real compilation, so we can substitute it. 11820# Set up the CFLAGS for real compilation, so we can substitute it.
8714CFLAGS="$REAL_CFLAGS" 11821CFLAGS="$REAL_CFLAGS"
8715CPPFLAGS="$REAL_CPPFLAGS" 11822CPPFLAGS="$REAL_CPPFLAGS"
@@ -8718,113 +11825,84 @@ CPPFLAGS="$REAL_CPPFLAGS"
8718version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 11825version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
8719 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 11826 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
8720if test x"${version}" = x; then 11827if test x"${version}" = x; then
8721 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; } 11828 { { echo "$as_me:11828: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
11829echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
11830 { (exit 1); exit 1; }; }
8722fi 11831fi
8723 11832
8724### Specify what sort of things we'll be editing into Makefile and config.h. 11833### Specify what sort of things we'll be editing into Makefile and config.h.
8725### Use configuration here uncanonicalized to avoid exceeding size limits. 11834### Use configuration here uncanonicalized to avoid exceeding size limits.
8726 11835
8727 11836cat >>confdefs.h <<EOF
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757cat >> confdefs.h <<EOF
8758#define EMACS_CONFIGURATION "${canonical}" 11837#define EMACS_CONFIGURATION "${canonical}"
8759EOF 11838EOF
8760 11839
8761cat >> confdefs.h <<EOF 11840cat >>confdefs.h <<EOF
8762#define EMACS_CONFIG_OPTIONS "${ac_configure_args}" 11841#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
8763EOF 11842EOF
8764 11843
8765cat >> confdefs.h <<EOF 11844cat >>confdefs.h <<EOF
8766#define config_machfile "${machfile}" 11845#define config_machfile "${machfile}"
8767EOF 11846EOF
8768 11847
8769cat >> confdefs.h <<EOF 11848cat >>confdefs.h <<EOF
8770#define config_opsysfile "${opsysfile}" 11849#define config_opsysfile "${opsysfile}"
8771EOF 11850EOF
8772 11851
8773cat >> confdefs.h <<EOF 11852cat >>confdefs.h <<EOF
8774#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} 11853#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
8775EOF 11854EOF
8776 11855
8777cat >> confdefs.h <<EOF 11856cat >>confdefs.h <<EOF
8778#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} 11857#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
8779EOF 11858EOF
8780 11859
8781cat >> confdefs.h <<EOF 11860cat >>confdefs.h <<EOF
8782#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} 11861#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
8783EOF 11862EOF
8784 11863
8785cat >> confdefs.h <<EOF 11864cat >>confdefs.h <<EOF
8786#define UNEXEC_SRC ${UNEXEC_SRC} 11865#define UNEXEC_SRC ${UNEXEC_SRC}
8787EOF 11866EOF
8788 11867
8789
8790if test "${HAVE_X_WINDOWS}" = "yes" ; then 11868if test "${HAVE_X_WINDOWS}" = "yes" ; then
8791 cat >> confdefs.h <<\EOF 11869 cat >>confdefs.h <<\EOF
8792#define HAVE_X_WINDOWS 1 11870#define HAVE_X_WINDOWS 1
8793EOF 11871EOF
8794 11872
8795fi 11873fi
8796if test "${USE_X_TOOLKIT}" != "none" ; then 11874if test "${USE_X_TOOLKIT}" != "none" ; then
8797 cat >> confdefs.h <<\EOF 11875 cat >>confdefs.h <<\EOF
8798#define USE_X_TOOLKIT 1 11876#define USE_X_TOOLKIT 1
8799EOF 11877EOF
8800 11878
8801fi 11879fi
8802if test "${HAVE_X11}" = "yes" ; then 11880if test "${HAVE_X11}" = "yes" ; then
8803 cat >> confdefs.h <<\EOF 11881 cat >>confdefs.h <<\EOF
8804#define HAVE_X11 1 11882#define HAVE_X11 1
8805EOF 11883EOF
8806 11884
8807fi 11885fi
8808if test "${HAVE_XFREE386}" = "yes" ; then 11886if test "${HAVE_XFREE386}" = "yes" ; then
8809 cat >> confdefs.h <<\EOF 11887 cat >>confdefs.h <<\EOF
8810#define HAVE_XFREE386 1 11888#define HAVE_XFREE386 1
8811EOF 11889EOF
8812 11890
8813fi 11891fi
8814if test "${HAVE_MENUS}" = "yes" ; then 11892if test "${HAVE_MENUS}" = "yes" ; then
8815 cat >> confdefs.h <<\EOF 11893 cat >>confdefs.h <<\EOF
8816#define HAVE_MENUS 1 11894#define HAVE_MENUS 1
8817EOF 11895EOF
8818 11896
8819fi 11897fi
8820if test "${GNU_MALLOC}" = "yes" ; then 11898if test "${GNU_MALLOC}" = "yes" ; then
8821 cat >> confdefs.h <<\EOF 11899 cat >>confdefs.h <<\EOF
8822#define GNU_MALLOC 1 11900#define GNU_MALLOC 1
8823EOF 11901EOF
8824 11902
8825fi 11903fi
8826if test "${REL_ALLOC}" = "yes" ; then 11904if test "${REL_ALLOC}" = "yes" ; then
8827 cat >> confdefs.h <<\EOF 11905 cat >>confdefs.h <<\EOF
8828#define REL_ALLOC 1 11906#define REL_ALLOC 1
8829EOF 11907EOF
8830 11908
@@ -8875,413 +11953,881 @@ test "${exec_prefix}" != NONE &&
8875## from Makefile.c can correctly provide the arg `-traditional' to the 11953## from Makefile.c can correctly provide the arg `-traditional' to the
8876## C preprocessor. 11954## C preprocessor.
8877 11955
8878cat > conftest.$ac_ext <<EOF 11956cat >conftest.$ac_ext <<_ACEOF
8879#line 8880 "configure" 11957#line 11957 "configure"
8880#include "confdefs.h" 11958#include "confdefs.h"
8881yes..yes 11959yes..yes
8882EOF 11960_ACEOF
8883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8884 egrep "yes..yes" >/dev/null 2>&1; then 11962 egrep "yes..yes" >/dev/null 2>&1; then
8885 rm -rf conftest*
8886 CPP_NEED_TRADITIONAL=no 11963 CPP_NEED_TRADITIONAL=no
8887else 11964else
8888 rm -rf conftest*
8889 CPP_NEED_TRADITIONAL=yes 11965 CPP_NEED_TRADITIONAL=yes
8890fi 11966fi
8891rm -f conftest* 11967rm -f conftest*
8892 11968
8893 11969ac_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 leim/Makefile"
8894trap '' 1 2 15 11970ac_config_commands="$ac_config_commands default"
8895cat > confcache <<\EOF 11971cat >confcache <<\_ACEOF
8896# This file is a shell script that caches the results of configure 11972# This file is a shell script that caches the results of configure
8897# tests run on this system so they can be shared between configure 11973# tests run on this system so they can be shared between configure
8898# scripts and configure runs. It is not useful on other systems. 11974# scripts and configure runs, see configure's option --config-cache.
8899# If it contains results you don't want to keep, you may remove or edit it. 11975# It is not useful on other systems. If it contains results you don't
11976# want to keep, you may remove or edit it.
8900# 11977#
8901# By default, configure uses ./config.cache as the cache file, 11978# config.status only pays attention to the cache file if you give it
8902# creating it if it does not exist already. You can give configure 11979# the --recheck option to rerun configure.
8903# the --cache-file=FILE option to use a different cache file; that is
8904# what configure does when it calls configure scripts in
8905# subdirectories, so they share the cache.
8906# Giving --cache-file=/dev/null disables caching, for debugging configure.
8907# config.status only pays attention to the cache file if you give it the
8908# --recheck option to rerun configure.
8909# 11980#
8910EOF 11981# `ac_cv_env_foo' variables (set or unset) will be overriden when
11982# loading this file, other *unset* `ac_cv_foo' will be assigned the
11983# following values.
11984
11985_ACEOF
11986
8911# The following way of writing the cache mishandles newlines in values, 11987# The following way of writing the cache mishandles newlines in values,
8912# but we know of no workaround that is simple, portable, and efficient. 11988# but we know of no workaround that is simple, portable, and efficient.
8913# So, don't put newlines in cache variables' values. 11989# So, don't put newlines in cache variables' values.
8914# Ultrix sh set writes to stderr and can't be redirected directly, 11990# Ultrix sh set writes to stderr and can't be redirected directly,
8915# and sets the high bit in the cache file unless we assign to the vars. 11991# and sets the high bit in the cache file unless we assign to the vars.
8916(set) 2>&1 | 11992{
8917 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11993 (set) 2>&1 |
8918 *ac_space=\ *) 11994 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8919 # `set' does not quote correctly, so add quotes (double-quote substitution 11995 *ac_space=\ *)
8920 # turns \\\\ into \\, and sed turns \\ into \). 11996 # `set' does not quote correctly, so add quotes (double-quote
8921 sed -n \ 11997 # substitution turns \\\\ into \\, and sed turns \\ into \).
8922 -e "s/'/'\\\\''/g" \ 11998 sed -n \
8923 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 11999 "s/'/'\\\\''/g;
8924 ;; 12000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8925 *) 12001 ;;
8926 # `set' quotes correctly as required by POSIX, so do not add quotes. 12002 *)
8927 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 12003 # `set' quotes correctly as required by POSIX, so do not add quotes.
8928 ;; 12004 sed -n \
8929 esac >> confcache 12005 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8930if cmp -s $cache_file confcache; then 12006 ;;
8931 : 12007 esac;
8932else 12008} |
12009 sed '
12010 t clear
12011 : clear
12012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12013 t end
12014 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12015 : end' >>confcache
12016if cmp -s $cache_file confcache; then :; else
8933 if test -w $cache_file; then 12017 if test -w $cache_file; then
8934 echo "updating cache $cache_file" 12018 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8935 cat confcache > $cache_file 12019 cat confcache >$cache_file
8936 else 12020 else
8937 echo "not updating unwritable cache $cache_file" 12021 echo "not updating unwritable cache $cache_file"
8938 fi 12022 fi
8939fi 12023fi
8940rm -f confcache 12024rm -f confcache
8941 12025
8942trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8943
8944test "x$prefix" = xNONE && prefix=$ac_default_prefix 12026test "x$prefix" = xNONE && prefix=$ac_default_prefix
8945# Let make expand exec_prefix. 12027# Let make expand exec_prefix.
8946test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12028test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8947 12029
8948# Any assignment to VPATH causes Sun make to only execute 12030# VPATH may cause trouble with some makes, so we remove $(srcdir),
8949# the first set of double-colon rules, so remove it if not needed. 12031# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8950# If there is a colon in the path, we need to keep it. 12032# trailing colons and then remove the whole line if VPATH becomes empty
12033# (actually we leave an empty line to preserve line numbers).
8951if test "x$srcdir" = x.; then 12034if test "x$srcdir" = x.; then
8952 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 12035 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12036s/:*\$(srcdir):*/:/;
12037s/:*\${srcdir}:*/:/;
12038s/:*@srcdir@:*/:/;
12039s/^\([^=]*=[ ]*\):*/\1/;
12040s/:*$//;
12041s/^[^=]*=[ ]*$//;
12042}'
8953fi 12043fi
8954 12044
8955trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8956
8957DEFS=-DHAVE_CONFIG_H 12045DEFS=-DHAVE_CONFIG_H
8958 12046
8959# Without the "./", some shells look in PATH for config.status.
8960: ${CONFIG_STATUS=./config.status} 12047: ${CONFIG_STATUS=./config.status}
8961 12048ac_clean_files_save=$ac_clean_files
8962echo creating $CONFIG_STATUS 12049ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8963rm -f $CONFIG_STATUS 12050{ echo "$as_me:12050: creating $CONFIG_STATUS" >&5
8964cat > $CONFIG_STATUS <<EOF 12051echo "$as_me: creating $CONFIG_STATUS" >&6;}
8965#! /bin/sh 12052cat >$CONFIG_STATUS <<_ACEOF
12053#! $SHELL
8966# Generated automatically by configure. 12054# Generated automatically by configure.
8967# Run this file to recreate the current configuration. 12055# Run this file to recreate the current configuration.
8968# This directory was configured as follows,
8969# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8970#
8971# $0 $ac_configure_args
8972#
8973# Compiler output produced by configure, useful for debugging 12056# Compiler output produced by configure, useful for debugging
8974# configure, is in ./config.log if it exists. 12057# configure, is in config.log if it exists.
8975 12058
8976ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 12059debug=false
8977for ac_option 12060SHELL=\${CONFIG_SHELL-$SHELL}
12061ac_cs_invocation="\$0 \$@"
12062
12063_ACEOF
12064
12065cat >>$CONFIG_STATUS <<\_ACEOF
12066# Be Bourne compatible
12067if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12068 emulate sh
12069 NULLCMD=:
12070elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12071 set -o posix
12072fi
12073
12074# Name of the executable.
12075as_me=`echo "$0" |sed 's,.*[\\/],,'`
12076
12077if expr a : '\(a\)' >/dev/null 2>&1; then
12078 as_expr=expr
12079else
12080 as_expr=false
12081fi
12082
12083rm -f conf$$ conf$$.exe conf$$.file
12084echo >conf$$.file
12085if ln -s conf$$.file conf$$ 2>/dev/null; then
12086 # We could just check for DJGPP; but this test a) works b) is more generic
12087 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12088 if test -f conf$$.exe; then
12089 # Don't use ln at all; we don't have any links
12090 as_ln_s='cp -p'
12091 else
12092 as_ln_s='ln -s'
12093 fi
12094elif ln conf$$.file conf$$ 2>/dev/null; then
12095 as_ln_s=ln
12096else
12097 as_ln_s='cp -p'
12098fi
12099rm -f conf$$ conf$$.exe conf$$.file
12100
12101as_executable_p="test -f"
12102
12103# Support unset when possible.
12104if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12105 as_unset=unset
12106else
12107 as_unset=false
12108fi
12109
12110# NLS nuisances.
12111$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12112$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12113$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12114$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12115$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12116$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12117$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12118$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12119
12120# IFS
12121# We need space, tab and new line, in precisely that order.
12122as_nl='
12123'
12124IFS=" $as_nl"
12125
12126# CDPATH.
12127$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12128
12129exec 6>&1
12130
12131_ACEOF
12132
12133# Files that config.status was made for.
12134if test -n "$ac_config_files"; then
12135 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12136fi
12137
12138if test -n "$ac_config_headers"; then
12139 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12140fi
12141
12142if test -n "$ac_config_links"; then
12143 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12144fi
12145
12146if test -n "$ac_config_commands"; then
12147 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12148fi
12149
12150cat >>$CONFIG_STATUS <<\EOF
12151
12152ac_cs_usage="\
12153\`$as_me' instantiates files from templates according to the
12154current configuration.
12155
12156Usage: $0 [OPTIONS] [FILE]...
12157
12158 -h, --help print this help, then exit
12159 -V, --version print version number, then exit
12160 -d, --debug don't remove temporary files
12161 --recheck update $as_me by reconfiguring in the same conditions
12162 --file=FILE[:TEMPLATE]
12163 instantiate the configuration file FILE
12164 --header=FILE[:TEMPLATE]
12165 instantiate the configuration header FILE
12166
12167Configuration files:
12168$config_files
12169
12170Configuration headers:
12171$config_headers
12172
12173Configuration commands:
12174$config_commands
12175
12176Report bugs to <bug-autoconf@gnu.org>."
12177EOF
12178
12179cat >>$CONFIG_STATUS <<EOF
12180ac_cs_version="\\
12181config.status
12182configured by $0, generated by GNU Autoconf 2.52,
12183 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12184
12185Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12186Free Software Foundation, Inc.
12187This config.status script is free software; the Free Software Foundation
12188gives unlimited permission to copy, distribute and modify it."
12189srcdir=$srcdir
12190INSTALL="$INSTALL"
12191EOF
12192
12193cat >>$CONFIG_STATUS <<\EOF
12194# If no file are specified by the user, then we need to provide default
12195# value. By we need to know if files were specified by the user.
12196ac_need_defaults=:
12197while test $# != 0
8978do 12198do
8979 case "\$ac_option" in 12199 case $1 in
12200 --*=*)
12201 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12202 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12203 shift
12204 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12205 shift
12206 ;;
12207 -*);;
12208 *) # This is not an option, so the user has probably given explicit
12209 # arguments.
12210 ac_need_defaults=false;;
12211 esac
12212
12213 case $1 in
12214 # Handling of the options.
12215EOF
12216cat >>$CONFIG_STATUS <<EOF
8980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8981 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 12218 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8982 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 12219 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8983 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 12220EOF
8984 echo "$CONFIG_STATUS generated by autoconf version 2.13" 12221cat >>$CONFIG_STATUS <<\EOF
8985 exit 0 ;; 12222 --version | --vers* | -V )
8986 -help | --help | --hel | --he | --h) 12223 echo "$ac_cs_version"; exit 0 ;;
8987 echo "\$ac_cs_usage"; exit 0 ;; 12224 --he | --h)
8988 *) echo "\$ac_cs_usage"; exit 1 ;; 12225 # Conflict between --help and --header
12226 { { echo "$as_me:12226: error: ambiguous option: $1
12227Try \`$0 --help' for more information." >&5
12228echo "$as_me: error: ambiguous option: $1
12229Try \`$0 --help' for more information." >&2;}
12230 { (exit 1); exit 1; }; };;
12231 --help | --hel | -h )
12232 echo "$ac_cs_usage"; exit 0 ;;
12233 --debug | --d* | -d )
12234 debug=: ;;
12235 --file | --fil | --fi | --f )
12236 shift
12237 CONFIG_FILES="$CONFIG_FILES $1"
12238 ac_need_defaults=false;;
12239 --header | --heade | --head | --hea )
12240 shift
12241 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12242 ac_need_defaults=false;;
12243
12244 # This is an error.
12245 -*) { { echo "$as_me:12245: error: unrecognized option: $1
12246Try \`$0 --help' for more information." >&5
12247echo "$as_me: error: unrecognized option: $1
12248Try \`$0 --help' for more information." >&2;}
12249 { (exit 1); exit 1; }; } ;;
12250
12251 *) ac_config_targets="$ac_config_targets $1" ;;
12252
8989 esac 12253 esac
12254 shift
8990done 12255done
8991 12256
8992ac_given_srcdir=$srcdir 12257exec 5>>config.log
8993ac_given_INSTALL="$INSTALL" 12258cat >&5 << _ACEOF
8994 12259
8995trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ 12260## ----------------------- ##
8996 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ 12261## Running config.status. ##
8997 lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 12262## ----------------------- ##
8998EOF
8999cat >> $CONFIG_STATUS <<EOF
9000 12263
9001# Protect against being on the right side of a sed subst in config.status. 12264This file was extended by $as_me 2.52, executed with
9002sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 12265 CONFIG_FILES = $CONFIG_FILES
9003 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 12266 CONFIG_HEADERS = $CONFIG_HEADERS
9004$ac_vpsub 12267 CONFIG_LINKS = $CONFIG_LINKS
9005$extrasub 12268 CONFIG_COMMANDS = $CONFIG_COMMANDS
9006s%@SHELL@%$SHELL%g 12269 > $ac_cs_invocation
9007s%@CFLAGS@%$CFLAGS%g 12270on `(hostname || uname -n) 2>/dev/null | sed 1q`
9008s%@CPPFLAGS@%$CPPFLAGS%g
9009s%@CXXFLAGS@%$CXXFLAGS%g
9010s%@FFLAGS@%$FFLAGS%g
9011s%@DEFS@%$DEFS%g
9012s%@LDFLAGS@%$LDFLAGS%g
9013s%@LIBS@%$LIBS%g
9014s%@exec_prefix@%$exec_prefix%g
9015s%@prefix@%$prefix%g
9016s%@program_transform_name@%$program_transform_name%g
9017s%@bindir@%$bindir%g
9018s%@sbindir@%$sbindir%g
9019s%@libexecdir@%$libexecdir%g
9020s%@datadir@%$datadir%g
9021s%@sysconfdir@%$sysconfdir%g
9022s%@sharedstatedir@%$sharedstatedir%g
9023s%@localstatedir@%$localstatedir%g
9024s%@libdir@%$libdir%g
9025s%@includedir@%$includedir%g
9026s%@oldincludedir@%$oldincludedir%g
9027s%@infodir@%$infodir%g
9028s%@mandir@%$mandir%g
9029s%@host@%$host%g
9030s%@host_alias@%$host_alias%g
9031s%@host_cpu@%$host_cpu%g
9032s%@host_vendor@%$host_vendor%g
9033s%@host_os@%$host_os%g
9034s%@CC@%$CC%g
9035s%@LN_S@%$LN_S%g
9036s%@CPP@%$CPP%g
9037s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9038s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9039s%@INSTALL_DATA@%$INSTALL_DATA%g
9040s%@YACC@%$YACC%g
9041s%@RANLIB@%$RANLIB%g
9042s%@LIBSOUND@%$LIBSOUND%g
9043s%@SET_MAKE@%$SET_MAKE%g
9044s%@ALLOCA@%$ALLOCA%g
9045s%@liblockfile@%$liblockfile%g
9046s%@LIBOBJS@%$LIBOBJS%g
9047s%@NEED_SETGID@%$NEED_SETGID%g
9048s%@KMEM_GROUP@%$KMEM_GROUP%g
9049s%@version@%$version%g
9050s%@configuration@%$configuration%g
9051s%@canonical@%$canonical%g
9052s%@srcdir@%$srcdir%g
9053s%@lispdir@%$lispdir%g
9054s%@locallisppath@%$locallisppath%g
9055s%@lisppath@%$lisppath%g
9056s%@x_default_search_path@%$x_default_search_path%g
9057s%@etcdir@%$etcdir%g
9058s%@archlibdir@%$archlibdir%g
9059s%@docdir@%$docdir%g
9060s%@bitmapdir@%$bitmapdir%g
9061s%@c_switch_system@%$c_switch_system%g
9062s%@c_switch_machine@%$c_switch_machine%g
9063s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
9064s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
9065s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
9066s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
9067s%@machfile@%$machfile%g
9068s%@opsysfile@%$opsysfile%g
9069s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g
9070 12271
9071CEOF 12272_ACEOF
9072EOF 12273EOF
9073 12274
9074cat >> $CONFIG_STATUS <<\EOF 12275cat >>$CONFIG_STATUS <<EOF
12276#
12277# INIT-COMMANDS section.
12278#
9075 12279
9076# Split the substitutions into bite-sized pieces for seds with 12280GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
9077# small command number limits, like on Digital OSF/1 and HP-UX. 12281
9078ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 12282EOF
9079ac_file=1 # Number of current file. 12283
9080ac_beg=1 # First line for current file. 12284cat >>$CONFIG_STATUS <<\EOF
9081ac_end=$ac_max_sed_cmds # Line after last line for current file. 12285for ac_config_target in $ac_config_targets
9082ac_more_lines=: 12286do
9083ac_sed_cmds="" 12287 case "$ac_config_target" in
9084while $ac_more_lines; do 12288 # Handling of arguments.
9085 if test $ac_beg -gt 1; then 12289 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9086 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 12290 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
9087 else 12291 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
9088 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 12292 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9089 fi 12293 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
9090 if test ! -s conftest.s$ac_file; then 12294 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
9091 ac_more_lines=false 12295 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
9092 rm -f conftest.s$ac_file 12296 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
9093 else 12297 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9094 if test -z "$ac_sed_cmds"; then 12298 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
9095 ac_sed_cmds="sed -f conftest.s$ac_file" 12299 *) { { echo "$as_me:12299: error: invalid argument: $ac_config_target" >&5
9096 else 12300echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9097 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 12301 { (exit 1); exit 1; }; };;
9098 fi 12302 esac
9099 ac_file=`expr $ac_file + 1`
9100 ac_beg=$ac_end
9101 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9102 fi
9103done 12303done
9104if test -z "$ac_sed_cmds"; then 12304
9105 ac_sed_cmds=cat 12305# If the user did not use the arguments to specify the items to instantiate,
12306# then the envvar interface is used. Set only those that are not.
12307# We use the long form for the default assignment because of an extremely
12308# bizarre bug on SunOS 4.1.3.
12309if $ac_need_defaults; then
12310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12312 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9106fi 12313fi
12314
12315# Create a temporary directory, and hook for its removal unless debugging.
12316$debug ||
12317{
12318 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12319 trap '{ (exit 1); exit 1; }' 1 2 13 15
12320}
12321
12322# Create a (secure) tmp directory for tmp files.
12323: ${TMPDIR=/tmp}
12324{
12325 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12326 test -n "$tmp" && test -d "$tmp"
12327} ||
12328{
12329 tmp=$TMPDIR/cs$$-$RANDOM
12330 (umask 077 && mkdir $tmp)
12331} ||
12332{
12333 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12334 { (exit 1); exit 1; }
12335}
12336
9107EOF 12337EOF
9108 12338
9109cat >> $CONFIG_STATUS <<EOF 12339cat >>$CONFIG_STATUS <<EOF
12340
12341#
12342# CONFIG_FILES section.
12343#
12344
12345# No need to generate the scripts if there are no CONFIG_FILES.
12346# This happens for instance when ./config.status config.h
12347if test -n "\$CONFIG_FILES"; then
12348 # Protect against being on the right side of a sed subst in config.status.
12349 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12350 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12351s,@SHELL@,$SHELL,;t t
12352s,@exec_prefix@,$exec_prefix,;t t
12353s,@prefix@,$prefix,;t t
12354s,@program_transform_name@,$program_transform_name,;t t
12355s,@bindir@,$bindir,;t t
12356s,@sbindir@,$sbindir,;t t
12357s,@libexecdir@,$libexecdir,;t t
12358s,@datadir@,$datadir,;t t
12359s,@sysconfdir@,$sysconfdir,;t t
12360s,@sharedstatedir@,$sharedstatedir,;t t
12361s,@localstatedir@,$localstatedir,;t t
12362s,@libdir@,$libdir,;t t
12363s,@includedir@,$includedir,;t t
12364s,@oldincludedir@,$oldincludedir,;t t
12365s,@infodir@,$infodir,;t t
12366s,@mandir@,$mandir,;t t
12367s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12368s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12369s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12370s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12371s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12372s,@build_alias@,$build_alias,;t t
12373s,@host_alias@,$host_alias,;t t
12374s,@target_alias@,$target_alias,;t t
12375s,@ECHO_C@,$ECHO_C,;t t
12376s,@ECHO_N@,$ECHO_N,;t t
12377s,@ECHO_T@,$ECHO_T,;t t
12378s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12379s,@DEFS@,$DEFS,;t t
12380s,@LIBS@,$LIBS,;t t
12381s,@build@,$build,;t t
12382s,@build_cpu@,$build_cpu,;t t
12383s,@build_vendor@,$build_vendor,;t t
12384s,@build_os@,$build_os,;t t
12385s,@host@,$host,;t t
12386s,@host_cpu@,$host_cpu,;t t
12387s,@host_vendor@,$host_vendor,;t t
12388s,@host_os@,$host_os,;t t
12389s,@CC@,$CC,;t t
12390s,@CFLAGS@,$CFLAGS,;t t
12391s,@LDFLAGS@,$LDFLAGS,;t t
12392s,@CPPFLAGS@,$CPPFLAGS,;t t
12393s,@ac_ct_CC@,$ac_ct_CC,;t t
12394s,@EXEEXT@,$EXEEXT,;t t
12395s,@OBJEXT@,$OBJEXT,;t t
12396s,@LN_S@,$LN_S,;t t
12397s,@CPP@,$CPP,;t t
12398s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12399s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12400s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12401s,@YACC@,$YACC,;t t
12402s,@RANLIB@,$RANLIB,;t t
12403s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12404s,@LIBSOUND@,$LIBSOUND,;t t
12405s,@SET_MAKE@,$SET_MAKE,;t t
12406s,@ALLOCA@,$ALLOCA,;t t
12407s,@liblockfile@,$liblockfile,;t t
12408s,@LIBOBJS@,$LIBOBJS,;t t
12409s,@NEED_SETGID@,$NEED_SETGID,;t t
12410s,@KMEM_GROUP@,$KMEM_GROUP,;t t
12411s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
12412s,@version@,$version,;t t
12413s,@configuration@,$configuration,;t t
12414s,@canonical@,$canonical,;t t
12415s,@srcdir@,$srcdir,;t t
12416s,@lispdir@,$lispdir,;t t
12417s,@locallisppath@,$locallisppath,;t t
12418s,@lisppath@,$lisppath,;t t
12419s,@x_default_search_path@,$x_default_search_path,;t t
12420s,@etcdir@,$etcdir,;t t
12421s,@archlibdir@,$archlibdir,;t t
12422s,@docdir@,$docdir,;t t
12423s,@bitmapdir@,$bitmapdir,;t t
12424s,@c_switch_system@,$c_switch_system,;t t
12425s,@c_switch_machine@,$c_switch_machine,;t t
12426s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
12427s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
12428s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
12429s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
12430s,@machfile@,$machfile,;t t
12431s,@opsysfile@,$opsysfile,;t t
12432CEOF
12433
12434EOF
12435
12436 cat >>$CONFIG_STATUS <<\EOF
12437 # Split the substitutions into bite-sized pieces for seds with
12438 # small command number limits, like on Digital OSF/1 and HP-UX.
12439 ac_max_sed_lines=48
12440 ac_sed_frag=1 # Number of current file.
12441 ac_beg=1 # First line for current file.
12442 ac_end=$ac_max_sed_lines # Line after last line for current file.
12443 ac_more_lines=:
12444 ac_sed_cmds=
12445 while $ac_more_lines; do
12446 if test $ac_beg -gt 1; then
12447 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12448 else
12449 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12450 fi
12451 if test ! -s $tmp/subs.frag; then
12452 ac_more_lines=false
12453 else
12454 # The purpose of the label and of the branching condition is to
12455 # speed up the sed processing (if there are no `@' at all, there
12456 # is no need to browse any of the substitutions).
12457 # These are the two extra sed commands mentioned above.
12458 (echo ':t
12459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12460 if test -z "$ac_sed_cmds"; then
12461 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12462 else
12463 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12464 fi
12465 ac_sed_frag=`expr $ac_sed_frag + 1`
12466 ac_beg=$ac_end
12467 ac_end=`expr $ac_end + $ac_max_sed_lines`
12468 fi
12469 done
12470 if test -z "$ac_sed_cmds"; then
12471 ac_sed_cmds=cat
12472 fi
12473fi # test -n "$CONFIG_FILES"
9110 12474
9111CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
9112 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
9113 lisp/Makefile leim/Makefile"}
9114EOF 12475EOF
9115cat >> $CONFIG_STATUS <<\EOF 12476cat >>$CONFIG_STATUS <<\EOF
9116for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 12477for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9117 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12478 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9118 case "$ac_file" in 12479 case $ac_file in
9119 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 12480 - | *:- | *:-:* ) # input from stdin
9120 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 12481 cat >$tmp/stdin
9121 *) ac_file_in="${ac_file}.in" ;; 12482 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12483 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12484 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12485 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12486 * ) ac_file_in=$ac_file.in ;;
9122 esac 12487 esac
9123 12488
9124 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 12489 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9125 12490 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9126 # Remove last slash and all that follows it. Not all systems have dirname. 12491 X"$ac_file" : 'X\(//\)[^/]' \| \
9127 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 12492 X"$ac_file" : 'X\(//\)$' \| \
12493 X"$ac_file" : 'X\(/\)' \| \
12494 . : '\(.\)' 2>/dev/null ||
12495echo X"$ac_file" |
12496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12498 /^X\(\/\/\)$/{ s//\1/; q; }
12499 /^X\(\/\).*/{ s//\1/; q; }
12500 s/.*/./; q'`
9128 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 12501 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9129 # The file is in a subdirectory. 12502 { case "$ac_dir" in
9130 test ! -d "$ac_dir" && mkdir "$ac_dir" 12503 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9131 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 12504 *) as_incr_dir=.;;
12505esac
12506as_dummy="$ac_dir"
12507for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12508 case $as_mkdir_dir in
12509 # Skip DOS drivespec
12510 ?:) as_incr_dir=$as_mkdir_dir ;;
12511 *)
12512 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12513 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12514 ;;
12515 esac
12516done; }
12517
12518 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
9132 # A "../" for each directory in $ac_dir_suffix. 12519 # A "../" for each directory in $ac_dir_suffix.
9133 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 12520 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9134 else 12521 else
9135 ac_dir_suffix= ac_dots= 12522 ac_dir_suffix= ac_dots=
9136 fi 12523 fi
9137 12524
9138 case "$ac_given_srcdir" in 12525 case $srcdir in
9139 .) srcdir=. 12526 .) ac_srcdir=.
9140 if test -z "$ac_dots"; then top_srcdir=. 12527 if test -z "$ac_dots"; then
9141 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 12528 ac_top_srcdir=.
9142 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 12529 else
12530 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12531 fi ;;
12532 [\\/]* | ?:[\\/]* )
12533 ac_srcdir=$srcdir$ac_dir_suffix;
12534 ac_top_srcdir=$srcdir ;;
9143 *) # Relative path. 12535 *) # Relative path.
9144 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 12536 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9145 top_srcdir="$ac_dots$ac_given_srcdir" ;; 12537 ac_top_srcdir=$ac_dots$srcdir ;;
9146 esac 12538 esac
9147 12539
9148 case "$ac_given_INSTALL" in 12540 case $INSTALL in
9149 [/$]*) INSTALL="$ac_given_INSTALL" ;; 12541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9150 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 12542 *) ac_INSTALL=$ac_dots$INSTALL ;;
9151 esac 12543 esac
9152 12544
9153 echo creating "$ac_file" 12545 if test x"$ac_file" != x-; then
9154 rm -f "$ac_file" 12546 { echo "$as_me:12546: creating $ac_file" >&5
9155 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 12547echo "$as_me: creating $ac_file" >&6;}
9156 case "$ac_file" in 12548 rm -f "$ac_file"
9157 *Makefile*) ac_comsub="1i\\ 12549 fi
9158# $configure_input" ;; 12550 # Let's still pretend it is `configure' which instantiates (i.e., don't
9159 *) ac_comsub= ;; 12551 # use $as_me), people would be surprised to read:
9160 esac 12552 # /* config.h. Generated automatically by config.status. */
12553 configure_input="Generated automatically from `echo $ac_file_in |
12554 sed 's,.*/,,'` by configure."
12555
12556 # First look for the input files in the build tree, otherwise in the
12557 # src tree.
12558 ac_file_inputs=`IFS=:
12559 for f in $ac_file_in; do
12560 case $f in
12561 -) echo $tmp/stdin ;;
12562 [\\/$]*)
12563 # Absolute (can't be DOS-style, as IFS=:)
12564 test -f "$f" || { { echo "$as_me:12564: error: cannot find input file: $f" >&5
12565echo "$as_me: error: cannot find input file: $f" >&2;}
12566 { (exit 1); exit 1; }; }
12567 echo $f;;
12568 *) # Relative
12569 if test -f "$f"; then
12570 # Build tree
12571 echo $f
12572 elif test -f "$srcdir/$f"; then
12573 # Source tree
12574 echo $srcdir/$f
12575 else
12576 # /dev/null tree
12577 { { echo "$as_me:12577: error: cannot find input file: $f" >&5
12578echo "$as_me: error: cannot find input file: $f" >&2;}
12579 { (exit 1); exit 1; }; }
12580 fi;;
12581 esac
12582 done` || { (exit 1); exit 1; }
12583EOF
12584cat >>$CONFIG_STATUS <<EOF
12585 sed "$ac_vpsub
12586$extrasub
12587EOF
12588cat >>$CONFIG_STATUS <<\EOF
12589:t
12590/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12591s,@configure_input@,$configure_input,;t t
12592s,@srcdir@,$ac_srcdir,;t t
12593s,@top_srcdir@,$ac_top_srcdir,;t t
12594s,@INSTALL@,$ac_INSTALL,;t t
12595" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12596 rm -f $tmp/stdin
12597 if test x"$ac_file" != x-; then
12598 mv $tmp/out $ac_file
12599 else
12600 cat $tmp/out
12601 rm -f $tmp/out
12602 fi
9161 12603
9162 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 12604done
9163 sed -e "$ac_comsub 12605EOF
9164s%@configure_input@%$configure_input%g 12606cat >>$CONFIG_STATUS <<\EOF
9165s%@srcdir@%$srcdir%g 12607
9166s%@top_srcdir@%$top_srcdir%g 12608#
9167s%@INSTALL@%$INSTALL%g 12609# CONFIG_HEADER section.
9168" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 12610#
9169fi; done
9170rm -f conftest.s*
9171 12611
9172# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 12612# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9173# NAME is the cpp macro being defined and VALUE is the value it is being given. 12613# NAME is the cpp macro being defined and VALUE is the value it is being given.
9174# 12614#
9175# ac_d sets the value in "#define NAME VALUE" lines. 12615# ac_d sets the value in "#define NAME VALUE" lines.
9176ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 12616ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9177ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 12617ac_dB='[ ].*$,\1#\2'
9178ac_dC='\3' 12618ac_dC=' '
9179ac_dD='%g' 12619ac_dD=',;t'
9180# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 12620# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9181ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12621ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9182ac_uB='\([ ]\)%\1#\2define\3' 12622ac_uB='$,\1#\2define\3'
9183ac_uC=' ' 12623ac_uC=' '
9184ac_uD='\4%g' 12624ac_uD=',;t'
9185# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9186ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9187ac_eB='$%\1#\2define\3'
9188ac_eC=' '
9189ac_eD='%g'
9190 12625
9191if test "${CONFIG_HEADERS+set}" != set; then 12626for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9192EOF
9193cat >> $CONFIG_STATUS <<EOF
9194 CONFIG_HEADERS="src/config.h:src/config.in"
9195EOF
9196cat >> $CONFIG_STATUS <<\EOF
9197fi
9198for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9199 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9200 case "$ac_file" in 12628 case $ac_file in
9201 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 12629 - | *:- | *:-:* ) # input from stdin
9202 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 12630 cat >$tmp/stdin
9203 *) ac_file_in="${ac_file}.in" ;; 12631 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12633 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12635 * ) ac_file_in=$ac_file.in ;;
9204 esac 12636 esac
9205 12637
9206 echo creating $ac_file 12638 test x"$ac_file" != x- && { echo "$as_me:12638: creating $ac_file" >&5
9207 12639echo "$as_me: creating $ac_file" >&6;}
9208 rm -f conftest.frag conftest.in conftest.out 12640
9209 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 12641 # First look for the input files in the build tree, otherwise in the
9210 cat $ac_file_inputs > conftest.in 12642 # src tree.
9211 12643 ac_file_inputs=`IFS=:
9212EOF 12644 for f in $ac_file_in; do
9213 12645 case $f in
9214# Transform confdefs.h into a sed script conftest.vals that substitutes 12646 -) echo $tmp/stdin ;;
9215# the proper values into config.h.in to produce config.h. And first: 12647 [\\/$]*)
9216# Protect against being on the right side of a sed subst in config.status. 12648 # Absolute (can't be DOS-style, as IFS=:)
9217# Protect against being in an unquoted here document in config.status. 12649 test -f "$f" || { { echo "$as_me:12649: error: cannot find input file: $f" >&5
9218rm -f conftest.vals 12650echo "$as_me: error: cannot find input file: $f" >&2;}
9219cat > conftest.hdr <<\EOF 12651 { (exit 1); exit 1; }; }
9220s/[\\&%]/\\&/g 12652 echo $f;;
9221s%[\\$`]%\\&%g 12653 *) # Relative
9222s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 12654 if test -f "$f"; then
9223s%ac_d%ac_u%gp 12655 # Build tree
9224s%ac_u%ac_e%gp 12656 echo $f
9225EOF 12657 elif test -f "$srcdir/$f"; then
9226sed -n -f conftest.hdr confdefs.h > conftest.vals 12658 # Source tree
9227rm -f conftest.hdr 12659 echo $srcdir/$f
12660 else
12661 # /dev/null tree
12662 { { echo "$as_me:12662: error: cannot find input file: $f" >&5
12663echo "$as_me: error: cannot find input file: $f" >&2;}
12664 { (exit 1); exit 1; }; }
12665 fi;;
12666 esac
12667 done` || { (exit 1); exit 1; }
12668 # Remove the trailing spaces.
12669 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12670
12671EOF
12672
12673# Transform confdefs.h into two sed scripts, `conftest.defines' and
12674# `conftest.undefs', that substitutes the proper values into
12675# config.h.in to produce config.h. The first handles `#define'
12676# templates, and the second `#undef' templates.
12677# And first: Protect against being on the right side of a sed subst in
12678# config.status. Protect against being in an unquoted here document
12679# in config.status.
12680rm -f conftest.defines conftest.undefs
12681# Using a here document instead of a string reduces the quoting nightmare.
12682# Putting comments in sed scripts is not portable.
12683#
12684# `end' is used to avoid that the second main sed command (meant for
12685# 0-ary CPP macros) applies to n-ary macro definitions.
12686# See the Autoconf documentation for `clear'.
12687cat >confdef2sed.sed <<\EOF
12688s/[\\&,]/\\&/g
12689s,[\\$`],\\&,g
12690t clear
12691: clear
12692s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
12693t end
12694s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12695: end
12696EOF
12697# If some macros were called several times there might be several times
12698# the same #defines, which is useless. Nevertheless, we may not want to
12699# sort them, since we want the *last* AC-DEFINE to be honored.
12700uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12701sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12702rm -f confdef2sed.sed
9228 12703
9229# This sed command replaces #undef with comments. This is necessary, for 12704# This sed command replaces #undef with comments. This is necessary, for
9230# example, in the case of _POSIX_SOURCE, which is predefined and required 12705# example, in the case of _POSIX_SOURCE, which is predefined and required
9231# on some systems where configure will not decide to define it. 12706# on some systems where configure will not decide to define it.
9232cat >> conftest.vals <<\EOF 12707cat >>conftest.undefs <<\EOF
9233s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 12708s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9234EOF 12709EOF
9235 12710
9236# Break up conftest.vals because some shells have a limit on 12711# Break up conftest.defines because some shells have a limit on the size
9237# the size of here documents, and old seds have small limits too. 12712# of here documents, and old seds have small limits too (100 cmds).
12713echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12714echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12715echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12716echo ' :' >>$CONFIG_STATUS
12717rm -f conftest.tail
12718while grep . conftest.defines >/dev/null
12719do
12720 # Write a limited-size here document to $tmp/defines.sed.
12721 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12722 # Speed up: don't consider the non `#define' lines.
12723 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12724 # Work around the forget-to-reset-the-flag bug.
12725 echo 't clr' >>$CONFIG_STATUS
12726 echo ': clr' >>$CONFIG_STATUS
12727 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12728 echo 'CEOF
12729 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12730 rm -f $tmp/in
12731 mv $tmp/out $tmp/in
12732' >>$CONFIG_STATUS
12733 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12734 rm -f conftest.defines
12735 mv conftest.tail conftest.defines
12736done
12737rm -f conftest.defines
12738echo ' fi # egrep' >>$CONFIG_STATUS
12739echo >>$CONFIG_STATUS
9238 12740
12741# Break up conftest.undefs because some shells have a limit on the size
12742# of here documents, and old seds have small limits too (100 cmds).
12743echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9239rm -f conftest.tail 12744rm -f conftest.tail
9240while : 12745while grep . conftest.undefs >/dev/null
9241do 12746do
9242 ac_lines=`grep -c . conftest.vals` 12747 # Write a limited-size here document to $tmp/undefs.sed.
9243 # grep -c gives empty output for an empty file on some AIX systems. 12748 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9244 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 12749 # Speed up: don't consider the non `#undef'
9245 # Write a limited-size here document to conftest.frag. 12750 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9246 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 12751 # Work around the forget-to-reset-the-flag bug.
9247 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 12752 echo 't clr' >>$CONFIG_STATUS
12753 echo ': clr' >>$CONFIG_STATUS
12754 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9248 echo 'CEOF 12755 echo 'CEOF
9249 sed -f conftest.frag conftest.in > conftest.out 12756 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9250 rm -f conftest.in 12757 rm -f $tmp/in
9251 mv conftest.out conftest.in 12758 mv $tmp/out $tmp/in
9252' >> $CONFIG_STATUS 12759' >>$CONFIG_STATUS
9253 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 12760 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9254 rm -f conftest.vals 12761 rm -f conftest.undefs
9255 mv conftest.tail conftest.vals 12762 mv conftest.tail conftest.undefs
9256done 12763done
9257rm -f conftest.vals 12764rm -f conftest.undefs
9258 12765
9259cat >> $CONFIG_STATUS <<\EOF 12766cat >>$CONFIG_STATUS <<\EOF
9260 rm -f conftest.frag conftest.h 12767 # Let's still pretend it is `configure' which instantiates (i.e., don't
9261 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 12768 # use $as_me), people would be surprised to read:
9262 cat conftest.in >> conftest.h 12769 # /* config.h. Generated automatically by config.status. */
9263 rm -f conftest.in 12770 if test x"$ac_file" = x-; then
9264 if cmp -s $ac_file conftest.h 2>/dev/null; then 12771 echo "/* Generated automatically by configure. */" >$tmp/config.h
9265 echo "$ac_file is unchanged"
9266 rm -f conftest.h
9267 else 12772 else
9268 # Remove last slash and all that follows it. Not all systems have dirname. 12773 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9269 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 12774 fi
12775 cat $tmp/in >>$tmp/config.h
12776 rm -f $tmp/in
12777 if test x"$ac_file" != x-; then
12778 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12779 { echo "$as_me:12779: $ac_file is unchanged" >&5
12780echo "$as_me: $ac_file is unchanged" >&6;}
12781 else
12782 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12783 X"$ac_file" : 'X\(//\)[^/]' \| \
12784 X"$ac_file" : 'X\(//\)$' \| \
12785 X"$ac_file" : 'X\(/\)' \| \
12786 . : '\(.\)' 2>/dev/null ||
12787echo X"$ac_file" |
12788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12790 /^X\(\/\/\)$/{ s//\1/; q; }
12791 /^X\(\/\).*/{ s//\1/; q; }
12792 s/.*/./; q'`
9270 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 12793 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9271 # The file is in a subdirectory. 12794 { case "$ac_dir" in
9272 test ! -d "$ac_dir" && mkdir "$ac_dir" 12795 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12796 *) as_incr_dir=.;;
12797esac
12798as_dummy="$ac_dir"
12799for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12800 case $as_mkdir_dir in
12801 # Skip DOS drivespec
12802 ?:) as_incr_dir=$as_mkdir_dir ;;
12803 *)
12804 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12805 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12806 ;;
12807 esac
12808done; }
12809
12810 fi
12811 rm -f $ac_file
12812 mv $tmp/config.h $ac_file
9273 fi 12813 fi
9274 rm -f $ac_file 12814 else
9275 mv conftest.h $ac_file 12815 cat $tmp/config.h
12816 rm -f $tmp/config.h
9276 fi 12817 fi
9277fi; done 12818done
9278
9279EOF
9280cat >> $CONFIG_STATUS <<EOF
9281GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
9282EOF 12819EOF
9283cat >> $CONFIG_STATUS <<\EOF 12820cat >>$CONFIG_STATUS <<\EOF
12821
12822#
12823# CONFIG_COMMANDS section.
12824#
12825for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12826 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12827 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9284 12828
12829 case $ac_dest in
12830 default )
9285 12831
9286### Make the necessary directories, if they don't exist. 12832### Make the necessary directories, if they don't exist.
9287for dir in etc lisp ; do 12833for dir in etc lisp ; do
@@ -9321,7 +12867,7 @@ echo creating lib-src/Makefile
9321 sed -e '1,/start of cpp stuff/d'\ 12867 sed -e '1,/start of cpp stuff/d'\
9322 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ 12868 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
9323 < Makefile.c > junk.c 12869 < Makefile.c > junk.c
9324 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ 12870 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
9325 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c 12871 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
9326 cat junk1.c junk2.c > Makefile.new 12872 cat junk1.c junk2.c > Makefile.new
9327 rm -f junk.c junk1.c junk2.c 12873 rm -f junk.c junk1.c junk2.c
@@ -9337,7 +12883,7 @@ echo creating src/Makefile
9337 sed -e '1,/start of cpp stuff/d'\ 12883 sed -e '1,/start of cpp stuff/d'\
9338 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ 12884 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
9339 < Makefile.c > junk.c 12885 < Makefile.c > junk.c
9340 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ 12886 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
9341 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c 12887 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
9342 cat junk1.c junk2.c > Makefile.new 12888 cat junk1.c junk2.c > Makefile.new
9343 rm -f junk.c junk1.c junk2.c 12889 rm -f junk.c junk1.c junk2.c
@@ -9345,19 +12891,41 @@ echo creating src/Makefile
9345 mv -f Makefile.new Makefile 12891 mv -f Makefile.new Makefile
9346) 12892)
9347 12893
9348if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then 12894if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
9349 echo creating src/.gdbinit 12895 echo creating src/.gdbinit
9350 echo source $top_srcdir/src/.gdbinit > src/.gdbinit 12896 echo source $srcdir/src/.gdbinit > src/.gdbinit
9351fi 12897fi
9352 12898
9353# This is how we know whether to re-run configure in certain cases. 12899# This is how we know whether to re-run configure in certain cases.
9354touch src/config.stamp 12900touch src/config.stamp
9355 12901
12902 ;;
12903 esac
12904done
12905EOF
12906
12907cat >>$CONFIG_STATUS <<\EOF
9356 12908
9357exit 0 12909{ (exit 0); exit 0; }
9358EOF 12910EOF
9359chmod +x $CONFIG_STATUS 12911chmod +x $CONFIG_STATUS
9360rm -fr confdefs* $ac_clean_files 12912ac_clean_files=$ac_clean_files_save
9361test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 12913
9362 12914# configure is writing to config.log, and then calls config.status.
12915# config.status does its own redirection, appending to config.log.
12916# Unfortunately, on DOS this fails, as config.log is still kept open
12917# by configure, so config.status won't be able to write to it; its
12918# output is simply discarded. So we exec the FD to /dev/null,
12919# effectively closing config.log, so it can be properly (re)opened and
12920# appended to by config.status. When coming back to configure, we
12921# need to make the FD available again.
12922if test "$no_create" != yes; then
12923 ac_cs_success=:
12924 exec 5>/dev/null
12925 $SHELL $CONFIG_STATUS || ac_cs_success=false
12926 exec 5>>config.log
12927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12928 # would make configure fail if this is the last instruction.
12929 $ac_cs_success || { (exit 1); exit 1; }
12930fi
9363 12931