Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
925c2f3f | 3 | # Generated by Autoconf 2.52. |
ba4481b5 | 4 | # |
925c2f3f | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
503d2be0 | 6 | # Free Software Foundation, Inc. |
ba4481b5 DL |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
8799b3e4 | 9 | |
925c2f3f EZ |
10 | # Avoid depending upon Character Ranges. |
11 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14 | as_cr_digits='0123456789' | |
15 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8799b3e4 | 16 | |
925c2f3f EZ |
17 | # Sed expression to map a string onto a valid variable name. |
18 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
8799b3e4 | 19 | |
925c2f3f EZ |
20 | # Sed expression to map a string onto a valid CPP name. |
21 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
503d2be0 AS |
22 | |
23 | # Be Bourne compatible | |
24 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
25 | emulate sh | |
26 | NULLCMD=: | |
27 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
28 | set -o posix | |
29 | fi | |
30 | ||
31 | # Name of the executable. | |
925c2f3f | 32 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
503d2be0 AS |
33 | |
34 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35 | as_expr=expr | |
36 | else | |
37 | as_expr=false | |
38 | fi | |
39 | ||
40 | rm -f conf$$ conf$$.exe conf$$.file | |
41 | echo >conf$$.file | |
42 | if 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 | |
51 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
52 | as_ln_s=ln | |
53 | else | |
54 | as_ln_s='cp -p' | |
55 | fi | |
56 | rm -f conf$$ conf$$.exe conf$$.file | |
57 | ||
58 | as_executable_p="test -f" | |
59 | ||
925c2f3f EZ |
60 | # Support unset when possible. |
61 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
62 | as_unset=unset | |
63 | else | |
64 | as_unset=false | |
65 | fi | |
503d2be0 | 66 | |
925c2f3f EZ |
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; } | |
503d2be0 AS |
76 | |
77 | # IFS | |
78 | # We need space, tab and new line, in precisely that order. | |
79 | as_nl=' | |
80 | ' | |
81 | IFS=" $as_nl" | |
82 | ||
83 | # CDPATH. | |
925c2f3f | 84 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
503d2be0 AS |
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. | |
89 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
90 | ||
91 | exec 6>&1 | |
92 | ||
93 | # | |
94 | # Initializations. | |
95 | # | |
ba4481b5 | 96 | ac_default_prefix=/usr/local |
503d2be0 AS |
97 | cross_compiling=no |
98 | subdirs= | |
925c2f3f | 99 | MFLAGS= MAKEFLAGS= |
503d2be0 AS |
100 | SHELL=${CONFIG_SHELL-/bin/sh} |
101 | ||
102 | # Maximum number of lines to put in a shell here document. | |
103 | # This variable seems obsolete. It should probably be removed, and | |
104 | # only ac_max_sed_lines should be used. | |
105 | : ${ac_max_here_lines=38} | |
106 | ||
107 | ac_unique_file="src/lisp.h" | |
108 | # Factoring default headers for most tests. | |
109 | ac_includes_default="\ | |
110 | #include <stdio.h> | |
111 | #if HAVE_SYS_TYPES_H | |
112 | # include <sys/types.h> | |
113 | #endif | |
114 | #if HAVE_SYS_STAT_H | |
115 | # include <sys/stat.h> | |
116 | #endif | |
117 | #if STDC_HEADERS | |
118 | # include <stdlib.h> | |
119 | # include <stddef.h> | |
120 | #else | |
121 | # if HAVE_STDLIB_H | |
122 | # include <stdlib.h> | |
123 | # endif | |
124 | #endif | |
125 | #if HAVE_STRING_H | |
126 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
127 | # include <memory.h> | |
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" | |
ba4481b5 DL |
144 | |
145 | # Initialize some variables set by options. | |
503d2be0 AS |
146 | ac_init_help= |
147 | ac_init_version=false | |
ba4481b5 DL |
148 | # The variables have the same names as the options, with |
149 | # dashes changed to underlines. | |
503d2be0 | 150 | cache_file=/dev/null |
ba4481b5 | 151 | exec_prefix=NONE |
ba4481b5 | 152 | no_create= |
ba4481b5 DL |
153 | no_recursion= |
154 | prefix=NONE | |
155 | program_prefix=NONE | |
156 | program_suffix=NONE | |
157 | program_transform_name=s,x,x, | |
158 | silent= | |
159 | site= | |
160 | srcdir= | |
ba4481b5 DL |
161 | verbose= |
162 | x_includes=NONE | |
163 | x_libraries=NONE | |
503d2be0 AS |
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. | |
ba4481b5 DL |
170 | bindir='${exec_prefix}/bin' |
171 | sbindir='${exec_prefix}/sbin' | |
172 | libexecdir='${exec_prefix}/libexec' | |
173 | datadir='${prefix}/share' | |
174 | sysconfdir='${prefix}/etc' | |
175 | sharedstatedir='${prefix}/com' | |
176 | localstatedir='${prefix}/var' | |
177 | libdir='${exec_prefix}/lib' | |
178 | includedir='${prefix}/include' | |
179 | oldincludedir='/usr/include' | |
180 | infodir='${prefix}/info' | |
181 | mandir='${prefix}/man' | |
182 | ||
925c2f3f EZ |
183 | # Identity of this package. |
184 | PACKAGE_NAME= | |
185 | PACKAGE_TARNAME= | |
186 | PACKAGE_VERSION= | |
187 | PACKAGE_STRING= | |
188 | PACKAGE_BUGREPORT= | |
189 | ||
ba4481b5 DL |
190 | ac_prev= |
191 | for ac_option | |
192 | do | |
ba4481b5 DL |
193 | # If the previous option needs an argument, assign it. |
194 | if test -n "$ac_prev"; then | |
195 | eval "$ac_prev=\$ac_option" | |
196 | ac_prev= | |
197 | continue | |
198 | fi | |
199 | ||
503d2be0 | 200 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ba4481b5 DL |
201 | |
202 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
203 | ||
503d2be0 | 204 | case $ac_option in |
ba4481b5 DL |
205 | |
206 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
207 | ac_prev=bindir ;; | |
208 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 209 | bindir=$ac_optarg ;; |
ba4481b5 DL |
210 | |
211 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 212 | ac_prev=build_alias ;; |
ba4481b5 | 213 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 214 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
215 | |
216 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
217 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
218 | ac_prev=cache_file ;; | |
219 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
220 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
221 | cache_file=$ac_optarg ;; |
222 | ||
223 | --config-cache | -C) | |
224 | cache_file=config.cache ;; | |
ba4481b5 DL |
225 | |
226 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
227 | ac_prev=datadir ;; | |
228 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
229 | | --da=*) | |
503d2be0 | 230 | datadir=$ac_optarg ;; |
ba4481b5 DL |
231 | |
232 | -disable-* | --disable-*) | |
503d2be0 | 233 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 234 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
235 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
236 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
237 | { (exit 1); exit 1; }; } | |
238 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
239 | eval "enable_$ac_feature=no" ;; | |
ba4481b5 DL |
240 | |
241 | -enable-* | --enable-*) | |
503d2be0 | 242 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 243 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
244 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
245 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
246 | { (exit 1); exit 1; }; } | |
247 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
248 | case $ac_option in | |
249 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
250 | *) ac_optarg=yes ;; |
251 | esac | |
503d2be0 | 252 | eval "enable_$ac_feature='$ac_optarg'" ;; |
ba4481b5 DL |
253 | |
254 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
255 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
256 | | --exec | --exe | --ex) | |
257 | ac_prev=exec_prefix ;; | |
258 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
259 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
260 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 261 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
262 | |
263 | -gas | --gas | --ga | --g) | |
264 | # Obsolete; use --with-gas. | |
265 | with_gas=yes ;; | |
266 | ||
503d2be0 AS |
267 | -help | --help | --hel | --he | -h) |
268 | ac_init_help=long ;; | |
269 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
270 | ac_init_help=recursive ;; | |
271 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
272 | ac_init_help=short ;; | |
ba4481b5 DL |
273 | |
274 | -host | --host | --hos | --ho) | |
503d2be0 | 275 | ac_prev=host_alias ;; |
ba4481b5 | 276 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 277 | host_alias=$ac_optarg ;; |
ba4481b5 DL |
278 | |
279 | -includedir | --includedir | --includedi | --included | --include \ | |
280 | | --includ | --inclu | --incl | --inc) | |
281 | ac_prev=includedir ;; | |
282 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
283 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 284 | includedir=$ac_optarg ;; |
ba4481b5 DL |
285 | |
286 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
287 | ac_prev=infodir ;; | |
288 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 289 | infodir=$ac_optarg ;; |
ba4481b5 DL |
290 | |
291 | -libdir | --libdir | --libdi | --libd) | |
292 | ac_prev=libdir ;; | |
293 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 294 | libdir=$ac_optarg ;; |
ba4481b5 DL |
295 | |
296 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
297 | | --libexe | --libex | --libe) | |
298 | ac_prev=libexecdir ;; | |
299 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
300 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 301 | libexecdir=$ac_optarg ;; |
ba4481b5 DL |
302 | |
303 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
304 | | --localstate | --localstat | --localsta | --localst \ | |
305 | | --locals | --local | --loca | --loc | --lo) | |
306 | ac_prev=localstatedir ;; | |
307 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
308 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
309 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
503d2be0 | 310 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
311 | |
312 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
313 | ac_prev=mandir ;; | |
314 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 315 | mandir=$ac_optarg ;; |
ba4481b5 DL |
316 | |
317 | -nfp | --nfp | --nf) | |
318 | # Obsolete; use --without-fp. | |
319 | with_fp=no ;; | |
320 | ||
321 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
925c2f3f | 322 | | --no-cr | --no-c) |
ba4481b5 DL |
323 | no_create=yes ;; |
324 | ||
325 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
326 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
327 | no_recursion=yes ;; | |
328 | ||
329 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
330 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
331 | | --oldin | --oldi | --old | --ol | --o) | |
332 | ac_prev=oldincludedir ;; | |
333 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
334 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
335 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 336 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
337 | |
338 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
339 | ac_prev=prefix ;; | |
340 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 341 | prefix=$ac_optarg ;; |
ba4481b5 DL |
342 | |
343 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
344 | | --program-pre | --program-pr | --program-p) | |
345 | ac_prev=program_prefix ;; | |
346 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
347 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 348 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
349 | |
350 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
351 | | --program-suf | --program-su | --program-s) | |
352 | ac_prev=program_suffix ;; | |
353 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
354 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 355 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
356 | |
357 | -program-transform-name | --program-transform-name \ | |
358 | | --program-transform-nam | --program-transform-na \ | |
359 | | --program-transform-n | --program-transform- \ | |
360 | | --program-transform | --program-transfor \ | |
361 | | --program-transfo | --program-transf \ | |
362 | | --program-trans | --program-tran \ | |
363 | | --progr-tra | --program-tr | --program-t) | |
364 | ac_prev=program_transform_name ;; | |
365 | -program-transform-name=* | --program-transform-name=* \ | |
366 | | --program-transform-nam=* | --program-transform-na=* \ | |
367 | | --program-transform-n=* | --program-transform-=* \ | |
368 | | --program-transform=* | --program-transfor=* \ | |
369 | | --program-transfo=* | --program-transf=* \ | |
370 | | --program-trans=* | --program-tran=* \ | |
371 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 372 | program_transform_name=$ac_optarg ;; |
ba4481b5 DL |
373 | |
374 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
375 | | -silent | --silent | --silen | --sile | --sil) | |
376 | silent=yes ;; | |
377 | ||
378 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
379 | ac_prev=sbindir ;; | |
380 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
381 | | --sbi=* | --sb=*) | |
503d2be0 | 382 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
383 | |
384 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
385 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
386 | | --sharedst | --shareds | --shared | --share | --shar \ | |
387 | | --sha | --sh) | |
388 | ac_prev=sharedstatedir ;; | |
389 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
390 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
391 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
392 | | --sha=* | --sh=*) | |
503d2be0 | 393 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
394 | |
395 | -site | --site | --sit) | |
396 | ac_prev=site ;; | |
397 | -site=* | --site=* | --sit=*) | |
503d2be0 | 398 | site=$ac_optarg ;; |
ba4481b5 DL |
399 | |
400 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
401 | ac_prev=srcdir ;; | |
402 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 403 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
404 | |
405 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
406 | | --syscon | --sysco | --sysc | --sys | --sy) | |
407 | ac_prev=sysconfdir ;; | |
408 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
409 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 410 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
411 | |
412 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 413 | ac_prev=target_alias ;; |
ba4481b5 | 414 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 415 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
416 | |
417 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
418 | verbose=yes ;; | |
419 | ||
503d2be0 AS |
420 | -version | --version | --versio | --versi | --vers | -V) |
421 | ac_init_version=: ;; | |
ba4481b5 DL |
422 | |
423 | -with-* | --with-*) | |
503d2be0 | 424 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 425 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
426 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
427 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
428 | { (exit 1); exit 1; }; } | |
ba4481b5 | 429 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
503d2be0 AS |
430 | case $ac_option in |
431 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
432 | *) ac_optarg=yes ;; |
433 | esac | |
503d2be0 | 434 | eval "with_$ac_package='$ac_optarg'" ;; |
ba4481b5 DL |
435 | |
436 | -without-* | --without-*) | |
503d2be0 | 437 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 438 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
439 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
440 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
441 | { (exit 1); exit 1; }; } | |
442 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
443 | eval "with_$ac_package=no" ;; | |
ba4481b5 DL |
444 | |
445 | --x) | |
446 | # Obsolete; use --with-x. | |
447 | with_x=yes ;; | |
448 | ||
449 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
450 | | --x-incl | --x-inc | --x-in | --x-i) | |
451 | ac_prev=x_includes ;; | |
452 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
453 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 454 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
455 | |
456 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
457 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
458 | ac_prev=x_libraries ;; | |
459 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
460 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 461 | x_libraries=$ac_optarg ;; |
ba4481b5 | 462 | |
503d2be0 AS |
463 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
464 | Try \`$0 --help' for more information." >&2 | |
465 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
466 | ;; |
467 | ||
503d2be0 AS |
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 | ||
ba4481b5 | 478 | *) |
503d2be0 AS |
479 | # FIXME: should be removed in autoconf 3.0. |
480 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
481 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
482 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
483 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ba4481b5 DL |
484 | ;; |
485 | ||
486 | esac | |
487 | done | |
488 | ||
489 | if test -n "$ac_prev"; then | |
503d2be0 AS |
490 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
491 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
492 | { (exit 1); exit 1; }; } | |
ba4481b5 | 493 | fi |
ba4481b5 | 494 | |
503d2be0 AS |
495 | # Be sure to have absolute paths. |
496 | for ac_var in exec_prefix prefix | |
497 | do | |
498 | eval ac_val=$`echo $ac_var` | |
499 | case $ac_val in | |
500 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
925c2f3f | 501 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
503d2be0 AS |
502 | { (exit 1); exit 1; }; };; |
503 | esac | |
504 | done | |
ba4481b5 | 505 | |
503d2be0 AS |
506 | # Be sure to have absolute paths. |
507 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
508 | localstatedir libdir includedir oldincludedir infodir mandir | |
ba4481b5 | 509 | do |
503d2be0 AS |
510 | eval ac_val=$`echo $ac_var` |
511 | case $ac_val in | |
512 | [\\/$]* | ?:[\\/]* ) ;; | |
925c2f3f | 513 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
503d2be0 | 514 | { (exit 1); exit 1; }; };; |
ba4481b5 DL |
515 | esac |
516 | done | |
517 | ||
503d2be0 AS |
518 | # There might be people who depend on the old broken behavior: `$host' |
519 | # used to hold the argument of --host etc. | |
520 | build=$build_alias | |
521 | host=$host_alias | |
522 | target=$target_alias | |
523 | ||
925c2f3f | 524 | # FIXME: should be removed in autoconf 3.0. |
503d2be0 AS |
525 | if test "x$host_alias" != x; then |
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 | |
533 | fi | |
ba4481b5 | 534 | |
503d2be0 AS |
535 | ac_tool_prefix= |
536 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 537 | |
503d2be0 | 538 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 DL |
539 | |
540 | # Find the source files, if location was not specified. | |
541 | if test -z "$srcdir"; then | |
542 | ac_srcdir_defaulted=yes | |
543 | # Try the directory containing this script, then its parent. | |
925c2f3f EZ |
544 | ac_prog=$0 |
545 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` | |
546 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
ba4481b5 DL |
547 | srcdir=$ac_confdir |
548 | if test ! -r $srcdir/$ac_unique_file; then | |
549 | srcdir=.. | |
550 | fi | |
551 | else | |
552 | ac_srcdir_defaulted=no | |
553 | fi | |
554 | if test ! -r $srcdir/$ac_unique_file; then | |
555 | if test "$ac_srcdir_defaulted" = yes; then | |
925c2f3f | 556 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
503d2be0 | 557 | { (exit 1); exit 1; }; } |
ba4481b5 | 558 | else |
925c2f3f | 559 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
503d2be0 | 560 | { (exit 1); exit 1; }; } |
ba4481b5 DL |
561 | fi |
562 | fi | |
503d2be0 AS |
563 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
564 | ac_env_build_alias_set=${build_alias+set} | |
565 | ac_env_build_alias_value=$build_alias | |
566 | ac_cv_env_build_alias_set=${build_alias+set} | |
567 | ac_cv_env_build_alias_value=$build_alias | |
568 | ac_env_host_alias_set=${host_alias+set} | |
569 | ac_env_host_alias_value=$host_alias | |
570 | ac_cv_env_host_alias_set=${host_alias+set} | |
571 | ac_cv_env_host_alias_value=$host_alias | |
572 | ac_env_target_alias_set=${target_alias+set} | |
573 | ac_env_target_alias_value=$target_alias | |
574 | ac_cv_env_target_alias_set=${target_alias+set} | |
575 | ac_cv_env_target_alias_value=$target_alias | |
576 | ac_env_CC_set=${CC+set} | |
577 | ac_env_CC_value=$CC | |
578 | ac_cv_env_CC_set=${CC+set} | |
579 | ac_cv_env_CC_value=$CC | |
580 | ac_env_CFLAGS_set=${CFLAGS+set} | |
581 | ac_env_CFLAGS_value=$CFLAGS | |
582 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
583 | ac_cv_env_CFLAGS_value=$CFLAGS | |
584 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
585 | ac_env_LDFLAGS_value=$LDFLAGS | |
586 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
587 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
588 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
589 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
590 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
591 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
592 | ac_env_CPP_set=${CPP+set} | |
593 | ac_env_CPP_value=$CPP | |
594 | ac_cv_env_CPP_set=${CPP+set} | |
595 | ac_cv_env_CPP_value=$CPP | |
596 | ||
597 | # | |
598 | # Report the --help message. | |
599 | # | |
600 | if 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. | |
925c2f3f | 603 | cat <<EOF |
503d2be0 AS |
604 | \`configure' configures this package to adapt to many kinds of systems. |
605 | ||
606 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
607 | ||
608 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
609 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
610 | ||
611 | Defaults for the options are specified in brackets. | |
612 | ||
613 | Configuration: | |
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 | ||
925c2f3f | 624 | EOF |
503d2be0 | 625 | |
925c2f3f | 626 | cat <<EOF |
503d2be0 AS |
627 | Installation 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 | ||
633 | By default, \`make install' will install all the files in | |
634 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
635 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
636 | for instance \`--prefix=\$HOME'. | |
637 | ||
638 | For better control, use the options below. | |
639 | ||
640 | Fine 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] | |
925c2f3f | 653 | EOF |
503d2be0 | 654 | |
925c2f3f | 655 | cat <<\EOF |
503d2be0 | 656 | |
ba5da88a PJ |
657 | Program names: |
658 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
659 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
660 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
661 | ||
503d2be0 AS |
662 | X features: |
663 | --x-includes=DIR X include files are in DIR | |
664 | --x-libraries=DIR X library files are in DIR | |
665 | ||
666 | System types: | |
667 | --build=BUILD configure for building on BUILD [guessed] | |
925c2f3f EZ |
668 | --host=HOST build programs to run on HOST [BUILD] |
669 | EOF | |
503d2be0 AS |
670 | fi |
671 | ||
672 | if test -n "$ac_init_help"; then | |
673 | ||
925c2f3f | 674 | cat <<\EOF |
503d2be0 AS |
675 | |
676 | Optional Features: | |
677 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
678 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
679 | --disable-largefile omit support for large files | |
680 | ||
681 | Optional Packages: | |
682 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
683 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
98418dba | 684 | --with-game-dir use a shared game directory if possible |
6ef02752 | 685 | --with-game-user use specified user for game directory |
503d2be0 AS |
686 | --without-gcc don't use GCC to compile Emacs if GCC is found |
687 | --without-pop don't support POP mail retrieval with movemail | |
688 | --with-kerberos support Kerberos-authenticated POP | |
689 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
690 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 691 | --without-sound don't compile with sound support |
503d2be0 AS |
692 | --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) |
693 | --with-xpm use -lXpm for displaying XPM images | |
694 | --with-jpeg use -ljpeg for displaying JPEG images | |
695 | --with-tiff use -ltiff for displaying TIFF images | |
696 | --with-gif use -lungif for displaying GIF images | |
697 | --with-png use -lpng for displaying PNG images | |
698 | --without-toolkit-scroll-bars | |
cc227489 MB |
699 | don't use Motif or Xaw3d scroll bars |
700 | --without-xim don't use X11 XIM | |
e0f712ba | 701 | --without-carbon don't use Carbon GUI on Mac OS X |
503d2be0 AS |
702 | --with-x use the X Window System |
703 | ||
704 | Some influential environment variables: | |
705 | CC C compiler command | |
706 | CFLAGS C compiler flags | |
707 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
708 | nonstandard directory <lib dir> | |
709 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
710 | headers in a nonstandard directory <include dir> | |
711 | CPP C preprocessor | |
712 | ||
713 | Use these variables to override the choices made by `configure' or to help | |
714 | it to find libraries and programs with nonstandard names/locations. | |
715 | ||
925c2f3f | 716 | EOF |
503d2be0 AS |
717 | fi |
718 | ||
719 | if test "$ac_init_help" = "recursive"; then | |
720 | # If there are subdirs, report their specific --help. | |
721 | ac_popdir=`pwd` | |
925c2f3f EZ |
722 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue |
723 | cd $ac_subdir | |
724 | # A "../" for each directory in /$ac_subdir. | |
725 | ac_dots=`echo $ac_subdir | | |
726 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
727 | ||
728 | case $srcdir in | |
729 | .) # No --srcdir option. We are building in place. | |
730 | ac_sub_srcdir=$srcdir ;; | |
731 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
732 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
733 | *) # Relative path. | |
734 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
735 | esac | |
503d2be0 AS |
736 | |
737 | # Check for guested configure; otherwise get Cygnus style configure. | |
925c2f3f | 738 | if test -f $ac_sub_srcdir/configure.gnu; then |
503d2be0 | 739 | echo |
925c2f3f EZ |
740 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive |
741 | elif test -f $ac_sub_srcdir/configure; then | |
503d2be0 | 742 | echo |
925c2f3f EZ |
743 | $SHELL $ac_sub_srcdir/configure --help=recursive |
744 | elif test -f $ac_sub_srcdir/configure.ac || | |
745 | test -f $ac_sub_srcdir/configure.in; then | |
503d2be0 AS |
746 | echo |
747 | $ac_configure --help | |
748 | else | |
925c2f3f | 749 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
503d2be0 AS |
750 | fi |
751 | cd $ac_popdir | |
752 | done | |
753 | fi | |
754 | ||
755 | test -n "$ac_init_help" && exit 0 | |
756 | if $ac_init_version; then | |
925c2f3f | 757 | cat <<\EOF |
503d2be0 | 758 | |
925c2f3f | 759 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
503d2be0 AS |
760 | Free Software Foundation, Inc. |
761 | This configure script is free software; the Free Software Foundation | |
762 | gives unlimited permission to copy, distribute and modify it. | |
925c2f3f | 763 | EOF |
503d2be0 AS |
764 | exit 0 |
765 | fi | |
766 | exec 5>config.log | |
925c2f3f | 767 | cat >&5 <<EOF |
503d2be0 AS |
768 | This file contains any messages produced by compilers while |
769 | running configure, to aid debugging if configure makes a mistake. | |
770 | ||
771 | It was created by $as_me, which was | |
925c2f3f | 772 | generated by GNU Autoconf 2.52. Invocation command line was |
503d2be0 AS |
773 | |
774 | $ $0 $@ | |
775 | ||
925c2f3f | 776 | EOF |
503d2be0 AS |
777 | { |
778 | cat <<_ASUNAME | |
925c2f3f EZ |
779 | ## ---------- ## |
780 | ## Platform. ## | |
781 | ## ---------- ## | |
503d2be0 AS |
782 | |
783 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
784 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
785 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
786 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
787 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
788 | ||
789 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
790 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
791 | ||
792 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
793 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
794 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
795 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
796 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
797 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
798 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
799 | ||
925c2f3f | 800 | PATH = $PATH |
98418dba | 801 | |
925c2f3f | 802 | _ASUNAME |
503d2be0 AS |
803 | } >&5 |
804 | ||
925c2f3f EZ |
805 | cat >&5 <<EOF |
806 | ## ------------ ## | |
807 | ## Core tests. ## | |
808 | ## ------------ ## | |
503d2be0 | 809 | |
925c2f3f | 810 | EOF |
503d2be0 AS |
811 | |
812 | # Keep a trace of the command line. | |
813 | # Strip out --no-create and --no-recursion so they do not pile up. | |
814 | # Also quote any args containing shell meta-characters. | |
815 | ac_configure_args= | |
816 | ac_sep= | |
817 | for ac_arg | |
818 | do | |
819 | case $ac_arg in | |
820 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
925c2f3f | 821 | | --no-cr | --no-c) ;; |
503d2be0 | 822 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
925c2f3f | 823 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
503d2be0 | 824 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
925c2f3f EZ |
825 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
826 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
827 | ac_sep=" " ;; | |
828 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
829 | ac_sep=" " ;; | |
503d2be0 AS |
830 | esac |
831 | # Get rid of the leading space. | |
832 | done | |
833 | ||
834 | # When interrupted or exit'd, cleanup temporary files, and complete | |
835 | # config.log. We remove comments because anyway the quotes in there | |
836 | # would cause problems or look ugly. | |
837 | trap 'exit_status=$? | |
838 | # Save into config.log some information that might help in debugging. | |
925c2f3f EZ |
839 | echo >&5 |
840 | echo "## ----------------- ##" >&5 | |
841 | echo "## Cache variables. ##" >&5 | |
842 | echo "## ----------------- ##" >&5 | |
843 | echo >&5 | |
844 | # The following way of writing the cache mishandles newlines in values, | |
503d2be0 AS |
845 | { |
846 | (set) 2>&1 | | |
847 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
848 | *ac_space=\ *) | |
849 | sed -n \ | |
850 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
851 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
852 | ;; | |
853 | *) | |
854 | sed -n \ | |
855 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
856 | ;; | |
857 | esac; | |
925c2f3f EZ |
858 | } >&5 |
859 | sed "/^$/d" confdefs.h >conftest.log | |
860 | if test -s conftest.log; then | |
861 | echo >&5 | |
862 | echo "## ------------ ##" >&5 | |
863 | echo "## confdefs.h. ##" >&5 | |
864 | echo "## ------------ ##" >&5 | |
865 | echo >&5 | |
866 | cat conftest.log >&5 | |
867 | fi | |
868 | (echo; echo) >&5 | |
869 | test "$ac_signal" != 0 && | |
870 | echo "$as_me: caught signal $ac_signal" >&5 | |
871 | echo "$as_me: exit $exit_status" >&5 | |
872 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
503d2be0 AS |
873 | exit $exit_status |
874 | ' 0 | |
875 | for ac_signal in 1 2 13 15; do | |
876 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
877 | done | |
878 | ac_signal=0 | |
879 | ||
880 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
881 | rm -rf conftest* confdefs.h | |
882 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
883 | echo >confdefs.h | |
ba4481b5 | 884 | |
503d2be0 | 885 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 DL |
886 | # Prefer explicitly selected file to automatically selected ones. |
887 | if test -z "$CONFIG_SITE"; then | |
888 | if test "x$prefix" != xNONE; then | |
889 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
890 | else | |
891 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
892 | fi | |
893 | fi | |
894 | for ac_site_file in $CONFIG_SITE; do | |
895 | if test -r "$ac_site_file"; then | |
925c2f3f | 896 | { echo "$as_me:896: loading site script $ac_site_file" >&5 |
503d2be0 | 897 | echo "$as_me: loading site script $ac_site_file" >&6;} |
925c2f3f | 898 | cat "$ac_site_file" >&5 |
ba4481b5 DL |
899 | . "$ac_site_file" |
900 | fi | |
901 | done | |
902 | ||
903 | if test -r "$cache_file"; then | |
503d2be0 AS |
904 | # Some versions of bash will fail to source /dev/null (special |
905 | # files actually), so we avoid doing that. | |
906 | if test -f "$cache_file"; then | |
925c2f3f | 907 | { echo "$as_me:907: loading cache $cache_file" >&5 |
503d2be0 AS |
908 | echo "$as_me: loading cache $cache_file" >&6;} |
909 | case $cache_file in | |
910 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
911 | *) . ./$cache_file;; | |
912 | esac | |
913 | fi | |
ba4481b5 | 914 | else |
925c2f3f | 915 | { echo "$as_me:915: creating cache $cache_file" >&5 |
503d2be0 AS |
916 | echo "$as_me: creating cache $cache_file" >&6;} |
917 | >$cache_file | |
918 | fi | |
919 | ||
920 | # Check that the precious variables saved in the cache have kept the same | |
921 | # value. | |
922 | ac_cache_corrupted=false | |
923 | for ac_var in `(set) 2>&1 | | |
924 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
925 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
926 | eval ac_new_set=\$ac_env_${ac_var}_set | |
927 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
928 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
929 | case $ac_old_set,$ac_new_set in | |
930 | set,) | |
925c2f3f | 931 | { echo "$as_me:931: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
503d2be0 AS |
932 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
933 | ac_cache_corrupted=: ;; | |
934 | ,set) | |
925c2f3f | 935 | { echo "$as_me:935: error: \`$ac_var' was not set in the previous run" >&5 |
503d2be0 AS |
936 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
937 | ac_cache_corrupted=: ;; | |
938 | ,);; | |
939 | *) | |
940 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
925c2f3f | 941 | { echo "$as_me:941: error: \`$ac_var' has changed since the previous run:" >&5 |
503d2be0 | 942 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
925c2f3f | 943 | { echo "$as_me:943: former value: $ac_old_val" >&5 |
503d2be0 | 944 | echo "$as_me: former value: $ac_old_val" >&2;} |
925c2f3f | 945 | { echo "$as_me:945: current value: $ac_new_val" >&5 |
503d2be0 AS |
946 | echo "$as_me: current value: $ac_new_val" >&2;} |
947 | ac_cache_corrupted=: | |
948 | fi;; | |
949 | esac | |
925c2f3f EZ |
950 | # Pass precious variables to config.status. It doesn't matter if |
951 | # we pass some twice (in addition to the command line arguments). | |
503d2be0 AS |
952 | if test "$ac_new_set" = set; then |
953 | case $ac_new_val in | |
954 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
925c2f3f EZ |
955 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
956 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
957 | ;; | |
958 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | |
959 | ;; | |
503d2be0 AS |
960 | esac |
961 | fi | |
962 | done | |
963 | if $ac_cache_corrupted; then | |
925c2f3f | 964 | { echo "$as_me:964: error: changes in the environment can compromise the build" >&5 |
503d2be0 | 965 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
925c2f3f | 966 | { { echo "$as_me:966: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
503d2be0 AS |
967 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
968 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
969 | fi |
970 | ||
971 | ac_ext=c | |
ba4481b5 | 972 | ac_cpp='$CPP $CPPFLAGS' |
503d2be0 AS |
973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
976 | ||
925c2f3f EZ |
977 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
978 | *c*,-n*) ECHO_N= ECHO_C=' | |
979 | ' ECHO_T=' ' ;; | |
980 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
981 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
982 | esac | |
983 | echo "#! $SHELL" >conftest.sh | |
984 | echo "exit 0" >>conftest.sh | |
985 | chmod +x conftest.sh | |
986 | if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5 | |
987 | (PATH=".;."; conftest.sh) 2>&5 | |
988 | ac_status=$? | |
989 | echo "$as_me:989: \$? = $ac_status" >&5 | |
990 | (exit $ac_status); }; then | |
991 | ac_path_separator=';' | |
992 | else | |
993 | ac_path_separator=: | |
994 | fi | |
995 | PATH_SEPARATOR="$ac_path_separator" | |
996 | rm -f conftest.sh | |
ba4481b5 | 997 | |
8799b3e4 | 998 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
ba4481b5 | 999 | |
ba5da88a PJ |
1000 | test "$program_prefix" != NONE && |
1001 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1002 | # Use a double $ so make ignores it. | |
1003 | test "$program_suffix" != NONE && | |
1004 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1005 | # Double any \ or $. echo might interpret backslashes. | |
1006 | # By default was `s,x,x', remove it if useless. | |
1007 | cat <<\_ACEOF >conftest.sed | |
1008 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1009 | _ACEOF | |
1010 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1011 | rm conftest.sed | |
1012 | ||
ba4481b5 DL |
1013 | lispdir='${datadir}/emacs/${version}/lisp' |
1014 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1015 | '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1016 | lisppath='${locallisppath}:${lispdir}' | |
1017 | etcdir='${datadir}/emacs/${version}/etc' | |
1018 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1019 | docdir='${datadir}/emacs/${version}/etc' | |
98418dba CW |
1020 | gamedir=yes |
1021 | ||
98418dba CW |
1022 | # Check whether --with-game-dir or --without-game-dir was given. |
1023 | if test "${with_game_dir+set}" = set; then | |
1024 | withval="$with_game_dir" | |
8799b3e4 CW |
1025 | |
1026 | gamedir="$withval" | |
98418dba CW |
1027 | |
1028 | fi; | |
8799b3e4 CW |
1029 | if test "$gamedir" = yes; then |
1030 | gamedir="${localstatedir}/games/emacs" | |
1031 | fi | |
1032 | eval tgamedir=\"$gamedir\" | |
1033 | if test "$gamedir" != no; then | |
1034 | ||
925c2f3f | 1035 | cat >>confdefs.h <<EOF |
8799b3e4 | 1036 | #define HAVE_SHARED_GAME_DIR "$tgamedir" |
925c2f3f | 1037 | EOF |
8799b3e4 CW |
1038 | |
1039 | fi | |
98418dba CW |
1040 | |
1041 | gameuser=games | |
1042 | ||
1043 | # Check whether --with-game-user or --without-game-user was given. | |
1044 | if test "${with_game_user+set}" = set; then | |
1045 | withval="$with_game_user" | |
1046 | gameuser="$withval" | |
1047 | fi; | |
1048 | ||
ba4481b5 DL |
1049 | # Check whether --with-gcc or --without-gcc was given. |
1050 | if test "${with_gcc+set}" = set; then | |
1051 | withval="$with_gcc" | |
503d2be0 AS |
1052 | |
1053 | fi; | |
ba4481b5 DL |
1054 | |
1055 | # Check whether --with-pop or --without-pop was given. | |
1056 | if test "${with_pop+set}" = set; then | |
1057 | withval="$with_pop" | |
243cf185 | 1058 | if test "$withval" = yes; then |
925c2f3f | 1059 | cat >>confdefs.h <<\EOF |
ba4481b5 | 1060 | #define MAIL_USE_POP 1 |
925c2f3f | 1061 | EOF |
ba4481b5 | 1062 | |
243cf185 DL |
1063 | else : |
1064 | fi | |
3d9fec71 | 1065 | else |
925c2f3f | 1066 | cat >>confdefs.h <<\EOF |
3d9fec71 | 1067 | #define MAIL_USE_POP 1 |
925c2f3f | 1068 | EOF |
3d9fec71 | 1069 | |
503d2be0 | 1070 | fi; |
ba4481b5 | 1071 | |
a21616bd KR |
1072 | # Check whether --with-kerberos or --without-kerberos was given. |
1073 | if test "${with_kerberos+set}" = set; then | |
1074 | withval="$with_kerberos" | |
925c2f3f | 1075 | cat >>confdefs.h <<\EOF |
a21616bd | 1076 | #define KERBEROS 1 |
925c2f3f | 1077 | EOF |
a21616bd | 1078 | |
503d2be0 | 1079 | fi; |
a21616bd KR |
1080 | |
1081 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | |
1082 | if test "${with_kerberos5+set}" = set; then | |
1083 | withval="$with_kerberos5" | |
1084 | if test "${with_kerberos5+set}" = set; then | |
1085 | if test "${with_kerberos+set}" != set; then | |
1086 | with_kerberos=yes | |
925c2f3f | 1087 | cat >>confdefs.h <<\EOF |
a21616bd | 1088 | #define KERBEROS 1 |
925c2f3f | 1089 | EOF |
a21616bd KR |
1090 | |
1091 | fi | |
1092 | fi | |
b936fae4 | 1093 | |
925c2f3f | 1094 | cat >>confdefs.h <<\EOF |
a21616bd | 1095 | #define KERBEROS5 1 |
925c2f3f | 1096 | EOF |
a21616bd | 1097 | |
503d2be0 | 1098 | fi; |
a21616bd | 1099 | |
ba4481b5 DL |
1100 | # Check whether --with-hesiod or --without-hesiod was given. |
1101 | if test "${with_hesiod+set}" = set; then | |
1102 | withval="$with_hesiod" | |
b936fae4 | 1103 | |
925c2f3f | 1104 | cat >>confdefs.h <<\EOF |
ba4481b5 | 1105 | #define HESIOD 1 |
925c2f3f | 1106 | EOF |
ba4481b5 | 1107 | |
503d2be0 | 1108 | fi; |
ba4481b5 | 1109 | |
2c9dccc9 PJ |
1110 | # Check whether --with-sound or --without-sound was given. |
1111 | if test "${with_sound+set}" = set; then | |
1112 | withval="$with_sound" | |
1113 | ||
1114 | fi; | |
1115 | ||
ba4481b5 DL |
1116 | # Check whether --with-x-toolkit or --without-x-toolkit was given. |
1117 | if test "${with_x_toolkit+set}" = set; then | |
1118 | withval="$with_x_toolkit" | |
1119 | case "${withval}" in | |
1120 | y | ye | yes ) val=athena ;; | |
1121 | n | no ) val=no ;; | |
1122 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1123 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1124 | m | mo | mot | moti | motif ) val=motif ;; | |
1125 | * ) | |
925c2f3f | 1126 | { { echo "$as_me:1126: error: \`--with-x-toolkit=$withval' is invalid\; |
ba4481b5 | 1127 | this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. |
503d2be0 AS |
1128 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1129 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
1130 | this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
1131 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} | |
1132 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1133 | ;; |
1134 | esac | |
1135 | with_x_toolkit=$val | |
1136 | ||
503d2be0 | 1137 | fi; |
ba4481b5 DL |
1138 | |
1139 | # Check whether --with-xpm or --without-xpm was given. | |
1140 | if test "${with_xpm+set}" = set; then | |
1141 | withval="$with_xpm" | |
503d2be0 AS |
1142 | |
1143 | fi; | |
ba4481b5 DL |
1144 | |
1145 | # Check whether --with-jpeg or --without-jpeg was given. | |
1146 | if test "${with_jpeg+set}" = set; then | |
1147 | withval="$with_jpeg" | |
503d2be0 AS |
1148 | |
1149 | fi; | |
ba4481b5 DL |
1150 | |
1151 | # Check whether --with-tiff or --without-tiff was given. | |
1152 | if test "${with_tiff+set}" = set; then | |
1153 | withval="$with_tiff" | |
503d2be0 AS |
1154 | |
1155 | fi; | |
ba4481b5 DL |
1156 | |
1157 | # Check whether --with-gif or --without-gif was given. | |
1158 | if test "${with_gif+set}" = set; then | |
1159 | withval="$with_gif" | |
503d2be0 AS |
1160 | |
1161 | fi; | |
ba4481b5 DL |
1162 | |
1163 | # Check whether --with-png or --without-png was given. | |
1164 | if test "${with_png+set}" = set; then | |
1165 | withval="$with_png" | |
503d2be0 AS |
1166 | |
1167 | fi; | |
ba4481b5 DL |
1168 | |
1169 | # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
1170 | if test "${with_toolkit_scroll_bars+set}" = set; then | |
1171 | withval="$with_toolkit_scroll_bars" | |
503d2be0 AS |
1172 | |
1173 | fi; | |
ba4481b5 | 1174 | |
1d36487c GM |
1175 | # Check whether --with-xim or --without-xim was given. |
1176 | if test "${with_xim+set}" = set; then | |
1177 | withval="$with_xim" | |
1d36487c | 1178 | |
503d2be0 | 1179 | fi; |
ba4481b5 | 1180 | |
e0f712ba AC |
1181 | # Check whether --with-carbon or --without-carbon was given. |
1182 | if test "${with_carbon+set}" = set; then | |
1183 | withval="$with_carbon" | |
1184 | ||
1185 | fi; | |
1186 | ||
ba4481b5 | 1187 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 1188 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
1189 | #### give you automounter prefixes, which can go away. We do all this |
1190 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
1191 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1192 | unset CDPATH | |
ba4481b5 DL |
1193 | case "${srcdir}" in |
1194 | /* ) ;; | |
1195 | . ) | |
1196 | ## We may be able to use the $PWD environment variable to make this | |
1197 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
1198 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1199 | ## but that tested only for a well-formed and valid PWD, | |
1200 | ## it did not object when PWD was well-formed and valid but just wrong. | |
1201 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
1202 | then |
1203 | srcdir="$PWD" | |
1204 | else | |
1205 | srcdir="`(cd ${srcdir}; pwd)`" | |
1206 | fi | |
1207 | ;; | |
1208 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1209 | esac | |
1210 | ||
1211 | #### Check if the source directory already has a configured system in it. | |
1212 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1213 | && test -f "${srcdir}/src/config.h" ; then | |
925c2f3f | 1214 | { echo "$as_me:1214: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
1215 | as a build directory right now; it has been configured in its own |
1216 | right. To configure in another directory as well, you MUST | |
1217 | use GNU make. If you do not have GNU make, then you must | |
1218 | now do \`make distclean' in ${srcdir}, | |
1219 | and then run $0 again." >&5 | |
1220 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
1221 | as a build directory right now; it has been configured in its own |
1222 | right. To configure in another directory as well, you MUST | |
1223 | use GNU make. If you do not have GNU make, then you must | |
1224 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 1225 | and then run $0 again." >&2;} |
ba4481b5 DL |
1226 | |
1227 | extrasub='/^VPATH[ ]*=/c\ | |
1228 | vpath %.c $(srcdir)\ | |
1229 | vpath %.h $(srcdir)\ | |
1230 | vpath %.y $(srcdir)\ | |
1231 | vpath %.l $(srcdir)\ | |
1232 | vpath %.s $(srcdir)\ | |
1233 | vpath %.in $(srcdir)\ | |
1234 | vpath %.texi $(srcdir)' | |
1235 | fi | |
1236 | ||
1237 | #### Given the configuration name, set machfile and opsysfile to the | |
1238 | #### names of the m/*.h and s/*.h files we should use. | |
1239 | ||
1240 | ### Canonicalize the configuration name. | |
1241 | ||
1242 | ac_aux_dir= | |
1243 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1244 | if test -f $ac_dir/install-sh; then | |
1245 | ac_aux_dir=$ac_dir | |
1246 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1247 | break | |
1248 | elif test -f $ac_dir/install.sh; then | |
1249 | ac_aux_dir=$ac_dir | |
1250 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1251 | break | |
503d2be0 AS |
1252 | elif test -f $ac_dir/shtool; then |
1253 | ac_aux_dir=$ac_dir | |
1254 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1255 | break | |
ba4481b5 DL |
1256 | fi |
1257 | done | |
1258 | if test -z "$ac_aux_dir"; then | |
925c2f3f | 1259 | { { echo "$as_me:1259: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
503d2be0 AS |
1260 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1261 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1262 | fi |
503d2be0 AS |
1263 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1264 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1265 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
ba4481b5 DL |
1266 | |
1267 | # Make sure we can run config.sub. | |
503d2be0 | 1268 | $ac_config_sub sun4 >/dev/null 2>&1 || |
925c2f3f | 1269 | { { echo "$as_me:1269: error: cannot run $ac_config_sub" >&5 |
503d2be0 AS |
1270 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1271 | { (exit 1); exit 1; }; } | |
1272 | ||
925c2f3f | 1273 | echo "$as_me:1273: checking build system type" >&5 |
503d2be0 AS |
1274 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1275 | if test "${ac_cv_build+set}" = set; then | |
1276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1277 | else | |
1278 | ac_cv_build_alias=$build_alias | |
1279 | test -z "$ac_cv_build_alias" && | |
1280 | ac_cv_build_alias=`$ac_config_guess` | |
1281 | test -z "$ac_cv_build_alias" && | |
925c2f3f | 1282 | { { echo "$as_me:1282: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
1283 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1284 | { (exit 1); exit 1; }; } | |
1285 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
925c2f3f EZ |
1286 | { { echo "$as_me:1286: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
1287 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | |
503d2be0 AS |
1288 | { (exit 1); exit 1; }; } |
1289 | ||
1290 | fi | |
925c2f3f | 1291 | echo "$as_me:1291: result: $ac_cv_build" >&5 |
503d2be0 AS |
1292 | echo "${ECHO_T}$ac_cv_build" >&6 |
1293 | build=$ac_cv_build | |
1294 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1295 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1296 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1297 | ||
925c2f3f | 1298 | echo "$as_me:1298: checking host system type" >&5 |
503d2be0 AS |
1299 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1300 | if test "${ac_cv_host+set}" = set; then | |
1301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1302 | else | |
1303 | ac_cv_host_alias=$host_alias | |
1304 | test -z "$ac_cv_host_alias" && | |
1305 | ac_cv_host_alias=$ac_cv_build_alias | |
1306 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
925c2f3f | 1307 | { { echo "$as_me:1307: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
503d2be0 AS |
1308 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1309 | { (exit 1); exit 1; }; } | |
1310 | ||
1311 | fi | |
925c2f3f | 1312 | echo "$as_me:1312: result: $ac_cv_host" >&5 |
503d2be0 AS |
1313 | echo "${ECHO_T}$ac_cv_host" >&6 |
1314 | host=$ac_cv_host | |
1315 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1316 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1317 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
ba4481b5 DL |
1318 | |
1319 | canonical=$host | |
531a3336 | 1320 | configuration=${host_alias-$host} |
ba4481b5 | 1321 | |
ba4481b5 DL |
1322 | ### If you add support for a new configuration, add code to this |
1323 | ### switch statement to recognize your configuration name and select | |
1324 | ### the appropriate operating system and machine description files. | |
1325 | ||
1326 | ### You would hope that you could choose an m/*.h file pretty much | |
1327 | ### based on the machine portion of the configuration name, and an s- | |
1328 | ### file based on the operating system portion. However, it turns out | |
1329 | ### that each m/*.h file is pretty manufacturer-specific - for | |
1330 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1331 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1332 | ### machines. So we basically have to have a special case for each | |
1333 | ### configuration name. | |
1334 | ### | |
1335 | ### As far as handling version numbers on operating systems is | |
1336 | ### concerned, make sure things will fail in a fixable way. If | |
1337 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
1338 | ### prepared to handle anything reasonably. If version numbers | |
1339 | ### matter, be sure /etc/MACHINES says something about it. | |
1340 | ### | |
1341 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1342 | ### "System V Release 4"; he writes, "The old convention encouraged | |
1343 | ### confusion between `system' and `release' levels'." | |
1344 | ||
1345 | machine='' opsys='' unported=no | |
1346 | case "${canonical}" in | |
1347 | ||
1096bcc0 GM |
1348 | ## FreeBSD ports |
1349 | *-*-freebsd* ) | |
1350 | opsys=freebsd | |
1351 | case "${canonical}" in | |
1352 | alpha*-*-freebsd*) machine=alpha ;; | |
1353 | i[3456]86-*-freebsd*) machine=intel386 ;; | |
1354 | esac | |
1355 | ;; | |
1356 | ||
ba4481b5 DL |
1357 | ## NetBSD ports |
1358 | *-*-netbsd* ) | |
1359 | opsys=netbsd | |
1360 | case "${canonical}" in | |
1361 | alpha*-*-netbsd*) machine=alpha ;; | |
1362 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
1363 | m68k-*-netbsd*) | |
1364 | # This is somewhat bogus. | |
1365 | machine=hp9000s300 ;; | |
1366 | powerpc-apple-netbsd*) machine=macppc ;; | |
1367 | mips-*-netbsd*) machine=pmax ;; | |
2df636f4 | 1368 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 1369 | mipseb-*-netbsd*) machine=pmax ;; |
ba4481b5 | 1370 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 1371 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 1372 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 1373 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 1374 | arm-*-netbsd*) machine=arm ;; |
ba4481b5 DL |
1375 | esac |
1376 | ;; | |
1377 | ||
1378 | ## OpenBSD ports | |
1379 | *-*-openbsd* ) | |
1380 | opsys=openbsd | |
1381 | case "${canonical}" in | |
1382 | alpha*-*-openbsd*) machine=alpha ;; | |
1383 | i386-*-openbsd*) machine=intel386 ;; | |
1384 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
1385 | mipsel-*-openbsd*) machine=pmax ;; | |
1386 | ns32k-*-openbsd*) machine=ns32000 ;; | |
1387 | sparc-*-openbsd*) machine=sparc ;; | |
1388 | vax-*-openbsd*) machine=vax ;; | |
1389 | esac | |
1390 | ;; | |
1391 | ||
1392 | ## Acorn RISCiX: | |
1393 | arm-acorn-riscix1.1* ) | |
1394 | machine=acorn opsys=riscix1-1 | |
1395 | ;; | |
1396 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1397 | ## This name is riscix12 instead of riscix1.2 | |
1398 | ## to avoid a file name conflict on MSDOS. | |
1399 | machine=acorn opsys=riscix12 | |
1400 | ;; | |
1401 | ||
1402 | ## BSDI ports | |
1403 | *-*-bsdi* ) | |
1404 | opsys=bsdi | |
1405 | case "${canonical}" in | |
1406 | i[345]86-*-bsdi*) machine=intel386 ;; | |
1407 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 1408 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
1409 | esac |
1410 | case "${canonical}" in | |
1411 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1412 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1413 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1414 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 1415 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
1416 | esac |
1417 | ;; | |
1418 | ||
1419 | ## Alliant machines | |
1420 | ## Strictly speaking, we need the version of the alliant operating | |
1421 | ## system to choose the right machine file, but currently the | |
1422 | ## configuration name doesn't tell us enough to choose the right | |
1423 | ## one; we need to give alliants their own operating system name to | |
1424 | ## do this right. When someone cares, they can help us. | |
1425 | fx80-alliant-* ) | |
1426 | machine=alliant4 opsys=bsd4-2 | |
1427 | ;; | |
1428 | i860-alliant-* ) | |
1429 | machine=alliant-2800 opsys=bsd4-3 | |
1430 | ;; | |
1431 | ||
1432 | ## Alpha (DEC) machines. | |
1433 | alpha*-dec-osf* ) | |
1434 | machine=alpha opsys=osf1 | |
1435 | # This is needed to find X11R6.1 libraries for certain tests. | |
1436 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1437 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
1438 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1439 | # due to non-traditional preprocessing with the current compiler | |
1440 | # defaults. OSF 4 can also have that compiler version, and there | |
1441 | # seems always to have been a usable /usr/bin/cpp. | |
1442 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 1443 | case "${canonical}" in |
a55b799a | 1444 | alpha*-dec-osf[5-9]*) |
bb17930d | 1445 | opsys=osf5-0 ;; |
ca512671 | 1446 | esac |
ba4481b5 DL |
1447 | ;; |
1448 | ||
1449 | alpha*-*-linux-gnu* ) | |
1450 | machine=alpha opsys=gnu-linux | |
1451 | ;; | |
1452 | ||
c4bb2108 DL |
1453 | arm*-*-linux-gnu* ) |
1454 | machine=arm opsys=gnu-linux | |
1455 | ;; | |
1456 | ||
1457 | ppc-*-linux | \ | |
1458 | powerpc-*-linux* ) | |
3aeecf97 | 1459 | machine=macppc opsys=gnu-linux |
c4bb2108 DL |
1460 | ;; |
1461 | ||
ba4481b5 DL |
1462 | ## Altos 3068 |
1463 | m68*-altos-sysv* ) | |
1464 | machine=altos opsys=usg5-2 | |
1465 | ;; | |
1466 | ||
1467 | ## Amdahl UTS | |
1468 | 580-amdahl-sysv* ) | |
1469 | machine=amdahl opsys=usg5-2-2 | |
1470 | ;; | |
1471 | ||
1472 | ## Apollo, Domain/OS | |
1473 | m68*-apollo-* ) | |
1474 | machine=apollo opsys=bsd4-3 | |
1475 | ;; | |
1476 | ||
1477 | ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1478 | we32k-att-sysv* ) | |
1479 | machine=att3b opsys=usg5-2-2 | |
1480 | ;; | |
1481 | ||
1482 | ## AT&T 3b1 - The Mighty Unix PC! | |
1483 | m68*-att-sysv* ) | |
1484 | machine=7300 opsys=usg5-2-2 | |
1485 | ;; | |
1486 | ||
1487 | ## Bull dpx20 | |
1488 | rs6000-bull-bosx* ) | |
1489 | machine=ibmrs6000 opsys=aix3-2 | |
1490 | ;; | |
1491 | ||
1492 | ## Bull dpx2 | |
1493 | m68*-bull-sysv3* ) | |
1494 | machine=dpx2 opsys=usg5-3 | |
1495 | ;; | |
1496 | ||
1497 | ## Bull sps7 | |
1498 | m68*-bull-sysv2* ) | |
1499 | machine=sps7 opsys=usg5-2 | |
1500 | ;; | |
1501 | ||
1502 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
1503 | ||
1504 | ## Celerity | |
1505 | ## I don't know what configuration name to use for this; config.sub | |
1506 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1507 | ## in touch with us! | |
1508 | celerity-celerity-bsd* ) | |
1509 | machine=celerity opsys=bsd4-2 | |
1510 | ;; | |
1511 | ||
1512 | ## Clipper | |
1513 | ## What operating systems does this chip run that Emacs has been | |
1514 | ## tested on? | |
1515 | clipper-* ) | |
1516 | machine=clipper | |
1517 | ## We'll use the catch-all code at the bottom to guess the | |
1518 | ## operating system. | |
1519 | ;; | |
1520 | ||
df645f7c AS |
1521 | ## Compaq Nonstop |
1522 | mips-compaq-nonstopux* ) | |
1523 | machine=nonstopux opsys=nonstopux | |
1524 | ;; | |
1525 | ||
ba4481b5 DL |
1526 | ## Convex |
1527 | *-convex-bsd* | *-convex-convexos* ) | |
1528 | machine=convex opsys=bsd4-3 | |
1529 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1530 | NON_GNU_CPP="cc -E -P" | |
1531 | ;; | |
1532 | ||
1533 | ## Cubix QBx/386 | |
1534 | i[3456]86-cubix-sysv* ) | |
1535 | machine=intel386 opsys=usg5-3 | |
1536 | ;; | |
1537 | ||
1538 | ## Cydra 5 | |
1539 | cydra*-cydrome-sysv* ) | |
1540 | machine=cydra5 opsys=usg5-3 | |
1541 | ;; | |
1542 | ||
1543 | ## Data General AViiON Machines | |
1544 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
1545 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
1546 | ## R this shouldn't conflict with older versions of the OS (which I | |
1547 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1548 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
1549 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1550 | machine=aviion opsys=dgux4 | |
1551 | ;; | |
1552 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1553 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1554 | ## to avoid a file name conflict on MSDOS. | |
1555 | machine=aviion opsys=dgux5-4-3 | |
1556 | ;; | |
1557 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1558 | machine=aviion opsys=dgux5-4r2 | |
1559 | ;; | |
1560 | m88k-dg-dgux* ) | |
1561 | machine=aviion opsys=dgux | |
1562 | ;; | |
1563 | ||
1564 | ## Data General AViiON Intel (x86) Machines | |
1565 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1566 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1567 | i[345]86-dg-dguxR4* ) | |
1568 | machine=aviion-intel opsys=dgux4 | |
1569 | ;; | |
1570 | ||
1571 | ## DECstations | |
1572 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1573 | machine=pmax opsys=bsd4-2 | |
1574 | ;; | |
1575 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1576 | machine=pmax opsys=bsd4-3 | |
1577 | ;; | |
1578 | mips-dec-ultrix* ) | |
1579 | machine=pmax opsys=ultrix4-3 | |
1580 | ;; | |
1581 | mips-dec-osf* ) | |
1582 | machine=pmax opsys=osf1 | |
1583 | ;; | |
1584 | mips-dec-mach_bsd4.3* ) | |
1585 | machine=pmax opsys=mach-bsd4-3 | |
1586 | ;; | |
1587 | ||
1588 | ## Motorola Delta machines | |
1589 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1590 | machine=delta opsys=usg5-3 | |
1591 | if test -z "`type gnucc | grep 'not found'`" | |
1592 | then | |
1593 | if test -s /etc/167config | |
1594 | then CC="gnucc -m68040" | |
1595 | else CC="gnucc -m68881" | |
1596 | fi | |
1597 | else | |
1598 | if test -z "`type gcc | grep 'not found'`" | |
1599 | then CC=gcc | |
1600 | else CC=cc | |
1601 | fi | |
1602 | fi | |
1603 | ;; | |
1604 | m88k-motorola-sysv4* ) | |
1605 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1606 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1607 | # I hope there are not other 4.0 versions for this machine | |
1608 | # which really need usg5-4 instead. | |
1609 | machine=delta88k opsys=usg5-4-2 | |
1610 | ;; | |
1611 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1612 | machine=delta88k opsys=usg5-3 | |
1613 | ;; | |
1614 | ||
1615 | ## Dual machines | |
1616 | m68*-dual-sysv* ) | |
1617 | machine=dual opsys=usg5-2 | |
1618 | ;; | |
1619 | m68*-dual-uniplus* ) | |
1620 | machine=dual opsys=unipl5-2 | |
1621 | ;; | |
1622 | ||
1623 | ## Elxsi 6400 | |
1624 | elxsi-elxsi-sysv* ) | |
1625 | machine=elxsi opsys=usg5-2 | |
1626 | ;; | |
1627 | ||
1628 | ## Encore machines | |
1629 | ns16k-encore-bsd* ) | |
1630 | machine=ns16000 opsys=umax | |
1631 | ;; | |
1632 | ||
65171e3a DL |
1633 | ## The GEC 63 - apparently, this port isn't really finished yet. |
1634 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
1635 | |
1636 | ## Gould Power Node and NP1 | |
1637 | pn-gould-bsd4.2* ) | |
1638 | machine=gould opsys=bsd4-2 | |
1639 | ;; | |
1640 | pn-gould-bsd4.3* ) | |
1641 | machine=gould opsys=bsd4-3 | |
1642 | ;; | |
1643 | np1-gould-bsd* ) | |
1644 | machine=gould-np1 opsys=bsd4-3 | |
1645 | ;; | |
1646 | ||
1647 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1648 | ## as far as Emacs is concerned). | |
1649 | m88k-harris-cxux* ) | |
1650 | # Build needs to be different on 7.0 and later releases | |
1651 | case "`uname -r`" in | |
1652 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1653 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1654 | esac | |
1655 | NON_GNU_CPP="/lib/cpp" | |
1656 | ;; | |
1657 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1658 | m68k-harris-cxux* ) | |
1659 | machine=nh3000 opsys=cxux | |
1660 | ;; | |
1661 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1662 | powerpc-harris-powerunix ) | |
1663 | machine=nh6000 opsys=powerunix | |
1664 | NON_GNU_CPP="cc -Xo -E -P" | |
1665 | ;; | |
1666 | ## SR2001/SR2201 running HI-UX/MPP | |
1667 | hppa1.1-hitachi-hiuxmpp* ) | |
1668 | machine=sr2k opsys=hiuxmpp | |
1669 | ;; | |
89a336fa GM |
1670 | hppa1.1-hitachi-hiuxwe2* ) |
1671 | machine=sr2k opsys=hiuxwe2 | |
1672 | ;; | |
ba4481b5 DL |
1673 | ## Honeywell XPS100 |
1674 | xps*-honeywell-sysv* ) | |
1675 | machine=xps100 opsys=usg5-2 | |
1676 | ;; | |
1677 | ||
1678 | ## HP 9000 series 200 or 300 | |
1679 | m68*-hp-bsd* ) | |
1680 | machine=hp9000s300 opsys=bsd4-3 | |
1681 | ;; | |
1682 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1683 | m68*-hp-hpux* ) | |
1684 | case "`uname -r`" in | |
1685 | ## Someone's system reports A.B8.05 for this. | |
1686 | ## I wonder what other possibilities there are. | |
1687 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1688 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1689 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1690 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1691 | *) machine=hp9000s300 opsys=hpux ;; | |
1692 | esac | |
1693 | ;; | |
1694 | ||
1695 | ## HP 9000 series 700 and 800, running HP/UX | |
1696 | hppa*-hp-hpux7* ) | |
1697 | machine=hp800 opsys=hpux | |
1698 | ;; | |
1699 | hppa*-hp-hpux8* ) | |
1700 | machine=hp800 opsys=hpux8 | |
1701 | ;; | |
1702 | hppa*-hp-hpux9shr* ) | |
1703 | machine=hp800 opsys=hpux9shr | |
1704 | ;; | |
1705 | hppa*-hp-hpux9* ) | |
1706 | machine=hp800 opsys=hpux9 | |
1707 | ;; | |
cc227489 | 1708 | hppa*-hp-hpux10* ) |
ba4481b5 DL |
1709 | machine=hp800 opsys=hpux10 |
1710 | ;; | |
cc227489 MB |
1711 | hppa*-hp-hpux1[1-9]* ) |
1712 | machine=hp800 opsys=hpux11 | |
1713 | ;; | |
ba4481b5 | 1714 | |
409d9577 GM |
1715 | hppa*-*-linux-gnu* ) |
1716 | machine=hp800 opsys=gnu-linux | |
1717 | ;; | |
1718 | ||
ba4481b5 DL |
1719 | ## HP 9000 series 700 and 800, running HP/UX |
1720 | hppa*-hp-hpux* ) | |
1721 | ## Cross-compilation? Nah! | |
1722 | case "`uname -r`" in | |
1723 | ## Someone's system reports A.B8.05 for this. | |
1724 | ## I wonder what other possibilities there are. | |
1725 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1726 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1727 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1728 | *) machine=hp800 opsys=hpux10 ;; | |
1729 | esac | |
1730 | ;; | |
1731 | hppa*-*-nextstep* ) | |
1732 | machine=hp800 opsys=nextstep | |
1733 | ;; | |
1734 | ||
1735 | ## Orion machines | |
1736 | orion-orion-bsd* ) | |
1737 | machine=orion opsys=bsd4-2 | |
1738 | ;; | |
1739 | clipper-orion-bsd* ) | |
1740 | machine=orion105 opsys=bsd4-2 | |
1741 | ;; | |
1742 | ||
1743 | ## IBM machines | |
1744 | i[3456]86-ibm-aix1.1* ) | |
1745 | machine=ibmps2-aix opsys=usg5-2-2 | |
1746 | ;; | |
1747 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1748 | machine=ibmps2-aix opsys=usg5-3 | |
1749 | ;; | |
1750 | i370-ibm-aix*) | |
1751 | machine=ibm370aix opsys=usg5-3 | |
1752 | ;; | |
138f0859 GM |
1753 | s390-*-linux-gnu) |
1754 | machine=ibms390 opsys=gnu-linux | |
1755 | ;; | |
ba4481b5 DL |
1756 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
1757 | machine=ibmrs6000 opsys=aix3-1 | |
1758 | ;; | |
1759 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1760 | machine=ibmrs6000 opsys=aix3-2-5 | |
1761 | ;; | |
1762 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1763 | machine=ibmrs6000 opsys=aix4-1 | |
1764 | ;; | |
1765 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1766 | machine=ibmrs6000 opsys=aix4-2 | |
1767 | ;; | |
d6b82250 EZ |
1768 | rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* ) |
1769 | machine=ibmrs6000 opsys=aix4-2 | |
1770 | ;; | |
ba4481b5 DL |
1771 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
1772 | machine=ibmrs6000 opsys=aix4 | |
1773 | ;; | |
1774 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1775 | machine=ibmrs6000 opsys=aix4-1 | |
1776 | ;; | |
1777 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1778 | machine=ibmrs6000 opsys=aix3-2 | |
1779 | ;; | |
1780 | romp-ibm-bsd4.3* ) | |
1781 | machine=ibmrt opsys=bsd4-3 | |
1782 | ;; | |
1783 | romp-ibm-bsd4.2* ) | |
1784 | machine=ibmrt opsys=bsd4-2 | |
1785 | ;; | |
1786 | romp-ibm-aos4.3* ) | |
1787 | machine=ibmrt opsys=bsd4-3 | |
1788 | ;; | |
1789 | romp-ibm-aos4.2* ) | |
1790 | machine=ibmrt opsys=bsd4-2 | |
1791 | ;; | |
1792 | romp-ibm-aos* ) | |
1793 | machine=ibmrt opsys=bsd4-3 | |
1794 | ;; | |
1795 | romp-ibm-bsd* ) | |
1796 | machine=ibmrt opsys=bsd4-3 | |
1797 | ;; | |
1798 | romp-ibm-aix* ) | |
1799 | machine=ibmrt-aix opsys=usg5-2-2 | |
1800 | ;; | |
1801 | ||
1802 | ## Integrated Solutions `Optimum V' | |
1803 | m68*-isi-bsd4.2* ) | |
1804 | machine=isi-ov opsys=bsd4-2 | |
1805 | ;; | |
1806 | m68*-isi-bsd4.3* ) | |
1807 | machine=isi-ov opsys=bsd4-3 | |
1808 | ;; | |
1809 | ||
1810 | ## Intel 386 machines where we do care about the manufacturer | |
1811 | i[3456]86-intsys-sysv* ) | |
1812 | machine=is386 opsys=usg5-2-2 | |
1813 | ;; | |
1814 | ||
1815 | ## Prime EXL | |
1816 | i[3456]86-prime-sysv* ) | |
1817 | machine=i386 opsys=usg5-3 | |
1818 | ;; | |
1819 | ||
1820 | ## Sequent Symmetry running Dynix | |
1821 | i[3456]86-sequent-bsd* ) | |
1822 | machine=symmetry opsys=bsd4-3 | |
1823 | ;; | |
1824 | ||
1825 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1826 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1827 | machine=sequent-ptx opsys=ptx4 | |
1828 | NON_GNU_CPP=/lib/cpp | |
1829 | ;; | |
1830 | ||
1831 | ## Sequent Symmetry running DYNIX/ptx | |
1832 | ## Use the old cpp rather than the newer ANSI one. | |
1833 | i[3456]86-sequent-ptx* ) | |
1834 | machine=sequent-ptx opsys=ptx | |
1835 | NON_GNU_CPP="/lib/cpp" | |
1836 | ;; | |
1837 | ||
1838 | ## ncr machine running svr4.3. | |
1839 | i[3456]86-ncr-sysv4.3 ) | |
1840 | machine=ncr386 opsys=usg5-4-3 | |
1841 | ;; | |
1842 | ||
1843 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1844 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1845 | i[3456]86-ncr-sysv* ) | |
1846 | machine=ncr386 opsys=usg5-4-2 | |
1847 | ;; | |
1848 | ||
1849 | ## Intel Paragon OSF/1 | |
1850 | i860-intel-osf1* ) | |
1851 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1852 | ;; | |
1853 | ||
1854 | ## Intel 860 | |
1855 | i860-*-sysv4* ) | |
1856 | machine=i860 opsys=usg5-4 | |
1857 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1858 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1859 | ;; | |
1860 | ||
c76e04a8 GM |
1861 | ## Macintosh PowerPC |
1862 | powerpc*-*-linux-gnu* ) | |
1863 | machine=macppc opsys=gnu-linux | |
1864 | ;; | |
1865 | ||
ba4481b5 DL |
1866 | ## Masscomp machines |
1867 | m68*-masscomp-rtu* ) | |
1868 | machine=masscomp opsys=rtu | |
1869 | ;; | |
1870 | ||
1871 | ## Megatest machines | |
1872 | m68*-megatest-bsd* ) | |
1873 | machine=mega68 opsys=bsd4-2 | |
1874 | ;; | |
1875 | ||
1876 | ## Workstations sold by MIPS | |
1877 | ## This is not necessarily all workstations using the MIPS processor - | |
1878 | ## Irises are produced by SGI, and DECstations by DEC. | |
1879 | ||
1880 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1881 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1882 | ## it gives for choosing between the alternatives seems to be "Use | |
1883 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1884 | ## the BSD world." I'll assume that these are instructions for | |
1885 | ## handling two odd situations, and that every other situation | |
1886 | ## should use mips.h and usg5-2-2, they being listed first. | |
1887 | mips-mips-usg* ) | |
1888 | machine=mips4 | |
1889 | ## Fall through to the general code at the bottom to decide on the OS. | |
1890 | ;; | |
1891 | mips-mips-riscos4* ) | |
1892 | machine=mips4 opsys=bsd4-3 | |
1893 | NON_GNU_CC="cc -systype bsd43" | |
1894 | NON_GNU_CPP="cc -systype bsd43 -E" | |
1895 | ;; | |
1896 | mips-mips-riscos5* ) | |
1897 | machine=mips4 opsys=riscos5 | |
1898 | NON_GNU_CC="cc -systype bsd43" | |
1899 | NON_GNU_CPP="cc -systype bsd43 -E" | |
1900 | ;; | |
1901 | mips-mips-bsd* ) | |
1902 | machine=mips opsys=bsd4-3 | |
1903 | ;; | |
1904 | mips-mips-* ) | |
1905 | machine=mips opsys=usg5-2-2 | |
1906 | ;; | |
1907 | ||
1908 | ## NeXT | |
1909 | m68*-next-* | m68k-*-nextstep* ) | |
1910 | machine=m68k opsys=nextstep | |
1911 | ;; | |
1912 | ||
1913 | ## The complete machine from National Semiconductor | |
1914 | ns32k-ns-genix* ) | |
1915 | machine=ns32000 opsys=usg5-2 | |
1916 | ;; | |
1917 | ||
1918 | ## NCR machines | |
1919 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1920 | machine=tower32 opsys=usg5-2-2 | |
1921 | ;; | |
1922 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1923 | machine=tower32v3 opsys=usg5-3 | |
1924 | ;; | |
1925 | ||
1926 | ## NEC EWS4800 | |
1927 | mips-nec-sysv4*) | |
1928 | machine=ews4800 opsys=ux4800 | |
1929 | ;; | |
1930 | ||
1931 | ## Nixdorf Targon 31 | |
1932 | m68*-nixdorf-sysv* ) | |
1933 | machine=targon31 opsys=usg5-2-2 | |
1934 | ;; | |
1935 | ||
1936 | ## Nu (TI or LMI) | |
1937 | m68*-nu-sysv* ) | |
1938 | machine=nu opsys=usg5-2 | |
1939 | ;; | |
1940 | ||
1941 | ## Plexus | |
1942 | m68*-plexus-sysv* ) | |
1943 | machine=plexus opsys=usg5-2 | |
1944 | ;; | |
1945 | ||
1946 | ## PowerPC reference platform | |
1947 | powerpcle-*-solaris2* ) | |
1948 | machine=prep | |
1949 | opsys=sol2-5 | |
1950 | ;; | |
1951 | ||
1952 | ## Pyramid machines | |
1953 | ## I don't really have any idea what sort of processor the Pyramid has, | |
1954 | ## so I'm assuming it is its own architecture. | |
1955 | pyramid-pyramid-bsd* ) | |
1956 | machine=pyramid opsys=bsd4-2 | |
1957 | ;; | |
1958 | ||
1959 | ## Sequent Balance | |
1960 | ns32k-sequent-bsd4.2* ) | |
1961 | machine=sequent opsys=bsd4-2 | |
1962 | ;; | |
1963 | ns32k-sequent-bsd4.3* ) | |
1964 | machine=sequent opsys=bsd4-3 | |
1965 | ;; | |
1966 | ||
1967 | ## Siemens Nixdorf | |
1968 | mips-siemens-sysv* | mips-sni-sysv*) | |
1969 | machine=mips-siemens opsys=usg5-4 | |
1970 | NON_GNU_CC=/usr/ccs/bin/cc | |
1971 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
1972 | ;; | |
1973 | ||
1974 | ## Silicon Graphics machines | |
1975 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1976 | m68*-sgi-iris3.5* ) | |
1977 | machine=irist opsys=iris3-5 | |
1978 | ;; | |
1979 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1980 | machine=irist opsys=iris3-6 | |
1981 | ;; | |
1982 | ## Iris 4D | |
1983 | mips-sgi-irix3* ) | |
1984 | machine=iris4d opsys=irix3-3 | |
1985 | ;; | |
1986 | mips-sgi-irix4* ) | |
1987 | machine=iris4d opsys=irix4-0 | |
1988 | ;; | |
1989 | mips-sgi-irix6.5 ) | |
1990 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
1991 | # Without defining _LANGUAGE_C, things get masked out in the headers |
1992 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
1993 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
1994 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 1995 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
1996 | ;; |
1997 | mips-sgi-irix6* ) | |
1998 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 1999 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
2000 | # but presumably it does no harm. |
2001 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2002 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
2003 | NON_GCC_TEST_OPTIONS=-32 |
2004 | ;; | |
2005 | mips-sgi-irix5.[01]* ) | |
2006 | machine=iris4d opsys=irix5-0 | |
2007 | ;; | |
2008 | mips-sgi-irix5* | mips-sgi-irix* ) | |
2009 | machine=iris4d opsys=irix5-2 | |
2010 | ;; | |
2011 | ||
2012 | ## SONY machines | |
2013 | m68*-sony-bsd4.2* ) | |
2014 | machine=news opsys=bsd4-2 | |
2015 | ;; | |
2016 | m68*-sony-bsd4.3* ) | |
2017 | machine=news opsys=bsd4-3 | |
2018 | ;; | |
2019 | m68*-sony-newsos3* | m68*-sony-news3*) | |
2020 | machine=news opsys=bsd4-3 | |
2021 | ;; | |
2022 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2023 | machine=news-risc opsys=bsd4-3 | |
2024 | ;; | |
2025 | mips-sony-newsos6* ) | |
2026 | machine=news-r6 opsys=newsos6 | |
2027 | ;; | |
2028 | mips-sony-news* ) | |
2029 | machine=news-risc opsys=newsos5 | |
2030 | ;; | |
2031 | ||
2032 | ## Stride | |
2033 | m68*-stride-sysv* ) | |
2034 | machine=stride opsys=usg5-2 | |
2035 | ;; | |
2036 | ||
2037 | ## Suns | |
2038 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2039 | machine=sparc opsys=gnu-linux | |
2040 | ;; | |
2041 | ||
d054101f | 2042 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2043 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2044 | | rs6000-*-solaris2*) | |
2045 | case "${canonical}" in | |
2046 | m68*-sunos1* ) machine=sun1 ;; | |
2047 | m68*-sunos2* ) machine=sun2 ;; | |
2048 | m68* ) machine=sun3 ;; | |
2049 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2050 | i[3456]86-*-* ) machine=intel386 ;; | |
2051 | powerpcle* ) machine=powerpcle ;; | |
2052 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2053 | sparc* ) machine=sparc ;; | |
2054 | * ) unported=yes ;; | |
2055 | esac | |
2056 | case "${canonical}" in | |
2057 | ## The Sun386 didn't get past 4.0. | |
2058 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2059 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
2060 | *-sunos4.1.[3-9]*noshare ) | |
2061 | ## This name is sunos413 instead of sunos4-1-3 | |
2062 | ## to avoid a file name conflict on MSDOS. | |
2063 | opsys=sunos413 | |
2064 | NON_GNU_CPP=/usr/lib/cpp | |
2065 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2066 | GCC_TEST_OPTIONS=-static | |
2067 | ;; | |
2068 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2069 | opsys=sunos4shr | |
2070 | NON_GNU_CPP=/usr/lib/cpp | |
2071 | ;; | |
2072 | *-sunos4* | *-sunos ) | |
2073 | opsys=sunos4-1 | |
2074 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2075 | GCC_TEST_OPTIONS=-static | |
2076 | ;; | |
2077 | *-sunos5.3* | *-solaris2.3* ) | |
2078 | opsys=sol2-3 | |
2079 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2080 | ;; | |
2081 | *-sunos5.4* | *-solaris2.4* ) | |
2082 | opsys=sol2-4 | |
2083 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2084 | RANLIB="ar -ts" | |
2085 | ;; | |
2086 | *-sunos5.5* | *-solaris2.5* ) | |
2087 | opsys=sol2-5 | |
2088 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2089 | RANLIB="ar -ts" | |
2090 | ;; | |
2091 | *-sunos5* | *-solaris* ) | |
2092 | opsys=sol2-5 | |
2093 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2094 | ;; | |
2095 | * ) opsys=bsd4-2 ;; | |
2096 | esac | |
2097 | ## Watch out for a compiler that we know will not work. | |
2098 | case "${canonical}" in | |
2099 | *-solaris* | *-sunos5* ) | |
2100 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
2101 | ## /usr/ucb/cc doesn't work; | |
2102 | ## we should find some other compiler that does work. | |
2103 | unset CC | |
2104 | fi | |
2105 | ;; | |
2106 | *) ;; | |
2107 | esac | |
2108 | ;; | |
2109 | sparc-*-nextstep* ) | |
2110 | machine=sparc opsys=nextstep | |
2111 | ;; | |
2112 | ||
2113 | ## Tadpole 68k | |
2114 | m68*-tadpole-sysv* ) | |
2115 | machine=tad68k opsys=usg5-3 | |
2116 | ;; | |
2117 | ||
2118 | ## Tahoe machines | |
2119 | tahoe-tahoe-bsd4.2* ) | |
2120 | machine=tahoe opsys=bsd4-2 | |
2121 | ;; | |
2122 | tahoe-tahoe-bsd4.3* ) | |
2123 | machine=tahoe opsys=bsd4-3 | |
2124 | ;; | |
2125 | ||
2126 | ## Tandem Integrity S2 | |
2127 | mips-tandem-sysv* ) | |
2128 | machine=tandem-s2 opsys=usg5-3 | |
2129 | ;; | |
2130 | ||
2131 | ## Tektronix XD88 | |
2132 | m88k-tektronix-sysv3* ) | |
2133 | machine=tekxd88 opsys=usg5-3 | |
2134 | ;; | |
2135 | ||
2136 | ## Tektronix 16000 box (6130?) | |
2137 | ns16k-tektronix-bsd* ) | |
2138 | machine=ns16000 opsys=bsd4-2 | |
2139 | ;; | |
2140 | ## Tektronix 4300 | |
2141 | ## src/m/tek4300.h hints that this is a m68k machine. | |
2142 | m68*-tektronix-bsd* ) | |
2143 | machine=tek4300 opsys=bsd4-3 | |
2144 | ;; | |
2145 | ||
2146 | ## Titan P2 or P3 | |
2147 | ## We seem to have lost the machine-description file titan.h! | |
2148 | titan-titan-sysv* ) | |
2149 | machine=titan opsys=usg5-3 | |
2150 | ;; | |
2151 | ||
2152 | ## Ustation E30 (SS5E) | |
2153 | m68*-unisys-uniplus* ) | |
2154 | machine=ustation opsystem=unipl5-2 | |
2155 | ;; | |
2156 | ||
2157 | ## Vaxen. | |
2158 | vax-dec-* ) | |
2159 | machine=vax | |
2160 | case "${canonical}" in | |
2161 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
2162 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2163 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2164 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2165 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2166 | *-vms* ) opsys=vms ;; | |
2167 | * ) unported=yes | |
2168 | esac | |
2169 | ;; | |
2170 | ||
2171 | ## Whitechapel MG1 | |
2172 | ns16k-whitechapel-* ) | |
2173 | machine=mg1 | |
2174 | ## We don't know what sort of OS runs on these; we'll let the | |
2175 | ## operating system guessing code below try. | |
2176 | ;; | |
2177 | ||
2178 | ## Wicat | |
2179 | m68*-wicat-sysv* ) | |
2180 | machine=wicat opsys=usg5-2 | |
2181 | ;; | |
2182 | ||
f4988be7 GM |
2183 | ## IA-64 |
2184 | ia64*-*-linux* ) | |
2185 | machine=ia64 opsys=gnu-linux | |
2186 | ;; | |
2187 | ||
ba4481b5 DL |
2188 | ## Intel 386 machines where we don't care about the manufacturer |
2189 | i[3456]86-*-* ) | |
2190 | machine=intel386 | |
2191 | case "${canonical}" in | |
9f817ea4 | 2192 | *-lynxos* ) opsys=lynxos ;; |
ba4481b5 DL |
2193 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2194 | *-isc2.2* ) opsys=isc2-2 ;; | |
2195 | *-isc4.0* ) opsys=isc4-0 ;; | |
2196 | *-isc4.* ) opsys=isc4-1 | |
2197 | GCC_TEST_OPTIONS=-posix | |
2198 | NON_GCC_TEST_OPTIONS=-Xp | |
2199 | ;; | |
2200 | *-isc* ) opsys=isc3-0 ;; | |
2201 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2202 | *-esix* ) opsys=esix ;; | |
2203 | *-xenix* ) opsys=xenix ;; | |
2204 | *-linux-gnu* ) opsys=gnu-linux ;; | |
2205 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 2206 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
2207 | NON_GNU_CPP=/lib/cpp |
2208 | # Prevent -belf from being passed to $CPP. | |
2209 | # /lib/cpp does not accept it. | |
2210 | OVERRIDE_CPPFLAGS=" " | |
2211 | ;; | |
2212 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
2213 | *-386bsd* ) opsys=386bsd ;; | |
ba4481b5 DL |
2214 | *-nextstep* ) opsys=nextstep ;; |
2215 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2216 | esac | |
2217 | ;; | |
2218 | ||
2219 | ## m68k Linux-based GNU system | |
2220 | m68k-*-linux-gnu* ) | |
2221 | machine=m68k opsys=gnu-linux | |
2222 | ;; | |
2223 | ||
2224 | ## Mips Linux-based GNU system | |
2225 | mips-*-linux-gnu* ) | |
2226 | machine=mips opsys=gnu-linux | |
2227 | ;; | |
2228 | ||
2229 | ## UXP/DS | |
2230 | sparc-fujitsu-sysv4* ) | |
2231 | machine=sparc opsys=uxpds | |
2232 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2233 | RANLIB="ar -ts" | |
2234 | ;; | |
2235 | ||
2236 | ## UXP/V | |
2237 | f301-fujitsu-uxpv4.1) | |
2238 | machine=f301 opsys=uxpv | |
2239 | ;; | |
2240 | ||
e0f712ba AC |
2241 | ## Darwin / Mac OS X |
2242 | powerpc-apple-darwin* ) | |
2243 | machine=powermac opsys=darwin | |
2244 | # Define CPP as follows to make autoconf work correctly. | |
2245 | CPP="cc -E -traditional-cpp" | |
2246 | ;; | |
2247 | ||
598a2813 AS |
2248 | ## AMD x86-64 Linux-based GNU system |
2249 | x86_64-*-linux-gnu* ) | |
2250 | machine=amdx86-64 opsys=gnu-linux | |
2251 | ;; | |
2252 | ||
ba4481b5 DL |
2253 | * ) |
2254 | unported=yes | |
2255 | ;; | |
2256 | esac | |
2257 | ||
2258 | ### If the code above didn't choose an operating system, just choose | |
2259 | ### an operating system based on the configuration name. You really | |
2260 | ### only want to use this when you have no idea what the right | |
2261 | ### operating system is; if you know what operating systems a machine | |
2262 | ### runs, it's cleaner to make it explicit in the case statement | |
2263 | ### above. | |
2264 | if test x"${opsys}" = x; then | |
2265 | case "${canonical}" in | |
2266 | *-gnu* ) opsys=gnu ;; | |
2267 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2268 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
2269 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
2270 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2271 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2272 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2273 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2274 | *-sysv4.2uw* ) opsys=unixware ;; | |
2275 | *-sysv4.1* | *-sysvr4.1* ) | |
2276 | NON_GNU_CPP=/usr/lib/cpp | |
2277 | opsys=usg5-4 ;; | |
2278 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2279 | if [ x$NON_GNU_CPP = x ]; then | |
2280 | if [ -f /usr/ccs/lib/cpp ]; then | |
2281 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2282 | else | |
2283 | NON_GNU_CPP=/lib/cpp | |
2284 | fi | |
2285 | fi | |
2286 | opsys=usg5-4-2 ;; | |
2287 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2288 | * ) | |
2289 | unported=yes | |
2290 | ;; | |
2291 | esac | |
2292 | fi | |
2293 | ||
ba4481b5 | 2294 | if test $unported = yes; then |
598a2813 | 2295 | { { echo "$as_me:2294: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
2296 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
2297 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2298 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2299 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2300 | fi |
2301 | ||
2302 | machfile="m/${machine}.h" | |
2303 | opsysfile="s/${opsys}.h" | |
2304 | ||
ba4481b5 DL |
2305 | #### Choose a compiler. |
2306 | test -n "$CC" && cc_specified=yes | |
2307 | ||
2308 | # Save the value of CFLAGS that the user specified. | |
2309 | SPECIFIED_CFLAGS="$CFLAGS" | |
2310 | ||
2311 | case ${with_gcc} in | |
2312 | "yes" ) CC="gcc" GCC=yes ;; | |
2313 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
2314 | * ) |
2315 | esac | |
2316 | ac_ext=c | |
2317 | ac_cpp='$CPP $CPPFLAGS' | |
2318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2321 | if test -n "$ac_tool_prefix"; then | |
2322 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2323 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
598a2813 | 2324 | echo "$as_me:2323: checking for $ac_word" >&5 |
503d2be0 AS |
2325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2326 | if test "${ac_cv_prog_CC+set}" = set; then | |
2327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2328 | else |
2329 | if test -n "$CC"; then | |
2330 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2331 | else | |
925c2f3f EZ |
2332 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2333 | ac_dummy="$PATH" | |
2334 | for ac_dir in $ac_dummy; do | |
2335 | IFS=$ac_save_IFS | |
2336 | test -z "$ac_dir" && ac_dir=. | |
2337 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2338 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
598a2813 | 2339 | echo "$as_me:2338: found $ac_dir/$ac_word" >&5 |
925c2f3f | 2340 | break |
503d2be0 AS |
2341 | done |
2342 | ||
ba4481b5 DL |
2343 | fi |
2344 | fi | |
503d2be0 | 2345 | CC=$ac_cv_prog_CC |
ba4481b5 | 2346 | if test -n "$CC"; then |
598a2813 | 2347 | echo "$as_me:2346: result: $CC" >&5 |
503d2be0 AS |
2348 | echo "${ECHO_T}$CC" >&6 |
2349 | else | |
598a2813 | 2350 | echo "$as_me:2349: result: no" >&5 |
503d2be0 AS |
2351 | echo "${ECHO_T}no" >&6 |
2352 | fi | |
2353 | ||
2354 | fi | |
2355 | if test -z "$ac_cv_prog_CC"; then | |
2356 | ac_ct_CC=$CC | |
2357 | # Extract the first word of "gcc", so it can be a program name with args. | |
2358 | set dummy gcc; ac_word=$2 | |
598a2813 | 2359 | echo "$as_me:2358: checking for $ac_word" >&5 |
503d2be0 AS |
2360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2361 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2363 | else | |
2364 | if test -n "$ac_ct_CC"; then | |
2365 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2366 | else | |
925c2f3f EZ |
2367 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2368 | ac_dummy="$PATH" | |
2369 | for ac_dir in $ac_dummy; do | |
2370 | IFS=$ac_save_IFS | |
2371 | test -z "$ac_dir" && ac_dir=. | |
2372 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2373 | ac_cv_prog_ac_ct_CC="gcc" | |
598a2813 | 2374 | echo "$as_me:2373: found $ac_dir/$ac_word" >&5 |
925c2f3f | 2375 | break |
503d2be0 AS |
2376 | done |
2377 | ||
2378 | fi | |
2379 | fi | |
2380 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2381 | if test -n "$ac_ct_CC"; then | |
598a2813 | 2382 | echo "$as_me:2381: result: $ac_ct_CC" >&5 |
503d2be0 | 2383 | echo "${ECHO_T}$ac_ct_CC" >&6 |
ba4481b5 | 2384 | else |
598a2813 | 2385 | echo "$as_me:2384: result: no" >&5 |
503d2be0 AS |
2386 | echo "${ECHO_T}no" >&6 |
2387 | fi | |
2388 | ||
2389 | CC=$ac_ct_CC | |
2390 | else | |
2391 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
2392 | fi |
2393 | ||
2394 | if test -z "$CC"; then | |
503d2be0 AS |
2395 | if test -n "$ac_tool_prefix"; then |
2396 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2397 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
598a2813 | 2398 | echo "$as_me:2397: checking for $ac_word" >&5 |
503d2be0 AS |
2399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2400 | if test "${ac_cv_prog_CC+set}" = set; then | |
2401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2402 | else |
2403 | if test -n "$CC"; then | |
2404 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2405 | else | |
925c2f3f EZ |
2406 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2407 | ac_dummy="$PATH" | |
2408 | for ac_dir in $ac_dummy; do | |
2409 | IFS=$ac_save_IFS | |
2410 | test -z "$ac_dir" && ac_dir=. | |
2411 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2412 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
598a2813 | 2413 | echo "$as_me:2412: found $ac_dir/$ac_word" >&5 |
925c2f3f | 2414 | break |
503d2be0 AS |
2415 | done |
2416 | ||
2417 | fi | |
2418 | fi | |
2419 | CC=$ac_cv_prog_CC | |
2420 | if test -n "$CC"; then | |
598a2813 | 2421 | echo "$as_me:2420: result: $CC" >&5 |
503d2be0 AS |
2422 | echo "${ECHO_T}$CC" >&6 |
2423 | else | |
598a2813 | 2424 | echo "$as_me:2423: result: no" >&5 |
503d2be0 AS |
2425 | echo "${ECHO_T}no" >&6 |
2426 | fi | |
2427 | ||
2428 | fi | |
2429 | if test -z "$ac_cv_prog_CC"; then | |
2430 | ac_ct_CC=$CC | |
2431 | # Extract the first word of "cc", so it can be a program name with args. | |
2432 | set dummy cc; ac_word=$2 | |
598a2813 | 2433 | echo "$as_me:2432: checking for $ac_word" >&5 |
503d2be0 AS |
2434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2435 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2437 | else | |
2438 | if test -n "$ac_ct_CC"; then | |
2439 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2440 | else | |
925c2f3f EZ |
2441 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2442 | ac_dummy="$PATH" | |
2443 | for ac_dir in $ac_dummy; do | |
2444 | IFS=$ac_save_IFS | |
2445 | test -z "$ac_dir" && ac_dir=. | |
2446 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2447 | ac_cv_prog_ac_ct_CC="cc" | |
598a2813 | 2448 | echo "$as_me:2447: found $ac_dir/$ac_word" >&5 |
925c2f3f | 2449 | break |
503d2be0 AS |
2450 | done |
2451 | ||
2452 | fi | |
2453 | fi | |
2454 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2455 | if test -n "$ac_ct_CC"; then | |
598a2813 | 2456 | echo "$as_me:2455: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2457 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2458 | else | |
598a2813 | 2459 | echo "$as_me:2458: result: no" >&5 |
503d2be0 AS |
2460 | echo "${ECHO_T}no" >&6 |
2461 | fi | |
2462 | ||
2463 | CC=$ac_ct_CC | |
2464 | else | |
2465 | CC="$ac_cv_prog_CC" | |
2466 | fi | |
2467 | ||
2468 | fi | |
2469 | if test -z "$CC"; then | |
2470 | # Extract the first word of "cc", so it can be a program name with args. | |
2471 | set dummy cc; ac_word=$2 | |
598a2813 | 2472 | echo "$as_me:2471: checking for $ac_word" >&5 |
503d2be0 AS |
2473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2474 | if test "${ac_cv_prog_CC+set}" = set; then | |
2475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2476 | else | |
2477 | if test -n "$CC"; then | |
2478 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2479 | else | |
2480 | ac_prog_rejected=no | |
925c2f3f EZ |
2481 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2482 | ac_dummy="$PATH" | |
2483 | for ac_dir in $ac_dummy; do | |
2484 | IFS=$ac_save_IFS | |
2485 | test -z "$ac_dir" && ac_dir=. | |
2486 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2487 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2488 | ac_prog_rejected=yes | |
2489 | continue | |
2490 | fi | |
2491 | ac_cv_prog_CC="cc" | |
598a2813 | 2492 | echo "$as_me:2491: found $ac_dir/$ac_word" >&5 |
925c2f3f | 2493 | break |
503d2be0 AS |
2494 | done |
2495 | ||
ba4481b5 DL |
2496 | if test $ac_prog_rejected = yes; then |
2497 | # We found a bogon in the path, so make sure we never use it. | |
2498 | set dummy $ac_cv_prog_CC | |
2499 | shift | |
503d2be0 | 2500 | if test $# != 0; then |
ba4481b5 DL |
2501 | # We chose a different compiler from the bogus one. |
2502 | # However, it has the same basename, so the bogon will be chosen | |
2503 | # first if we set CC to just the basename; use the full file name. | |
2504 | shift | |
925c2f3f | 2505 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
ba4481b5 DL |
2506 | shift |
2507 | ac_cv_prog_CC="$@" | |
2508 | fi | |
2509 | fi | |
2510 | fi | |
2511 | fi | |
503d2be0 | 2512 | CC=$ac_cv_prog_CC |
ba4481b5 | 2513 | if test -n "$CC"; then |
598a2813 | 2514 | echo "$as_me:2513: result: $CC" >&5 |
503d2be0 | 2515 | echo "${ECHO_T}$CC" >&6 |
ba4481b5 | 2516 | else |
598a2813 | 2517 | echo "$as_me:2516: result: no" >&5 |
503d2be0 | 2518 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2519 | fi |
2520 | ||
503d2be0 AS |
2521 | fi |
2522 | if test -z "$CC"; then | |
2523 | if test -n "$ac_tool_prefix"; then | |
2524 | for ac_prog in cl | |
2525 | do | |
2526 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2527 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
598a2813 | 2528 | echo "$as_me:2527: checking for $ac_word" >&5 |
503d2be0 AS |
2529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2530 | if test "${ac_cv_prog_CC+set}" = set; then | |
2531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
2532 | else |
2533 | if test -n "$CC"; then | |
2534 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2535 | else | |
925c2f3f EZ |
2536 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2537 | ac_dummy="$PATH" | |
2538 | for ac_dir in $ac_dummy; do | |
2539 | IFS=$ac_save_IFS | |
2540 | test -z "$ac_dir" && ac_dir=. | |
2541 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2542 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
598a2813 | 2543 | echo "$as_me:2542: found $ac_dir/$ac_word" >&5 |
925c2f3f | 2544 | break |
503d2be0 AS |
2545 | done |
2546 | ||
c4bb2108 DL |
2547 | fi |
2548 | fi | |
503d2be0 | 2549 | CC=$ac_cv_prog_CC |
c4bb2108 | 2550 | if test -n "$CC"; then |
598a2813 | 2551 | echo "$as_me:2550: result: $CC" >&5 |
503d2be0 | 2552 | echo "${ECHO_T}$CC" >&6 |
c4bb2108 | 2553 | else |
598a2813 | 2554 | echo "$as_me:2553: result: no" >&5 |
503d2be0 AS |
2555 | echo "${ECHO_T}no" >&6 |
2556 | fi | |
2557 | ||
2558 | test -n "$CC" && break | |
2559 | done | |
2560 | fi | |
2561 | if test -z "$CC"; then | |
2562 | ac_ct_CC=$CC | |
2563 | for ac_prog in cl | |
2564 | do | |
2565 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2566 | set dummy $ac_prog; ac_word=$2 | |
598a2813 | 2567 | echo "$as_me:2566: checking for $ac_word" >&5 |
503d2be0 AS |
2568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2569 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2571 | else | |
2572 | if test -n "$ac_ct_CC"; then | |
2573 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2574 | else | |
925c2f3f EZ |
2575 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2576 | ac_dummy="$PATH" | |
2577 | for ac_dir in $ac_dummy; do | |
2578 | IFS=$ac_save_IFS | |
2579 | test -z "$ac_dir" && ac_dir=. | |
2580 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2581 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
598a2813 | 2582 | echo "$as_me:2581: found $ac_dir/$ac_word" >&5 |
925c2f3f | 2583 | break |
503d2be0 AS |
2584 | done |
2585 | ||
c4bb2108 | 2586 | fi |
503d2be0 AS |
2587 | fi |
2588 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2589 | if test -n "$ac_ct_CC"; then | |
598a2813 | 2590 | echo "$as_me:2589: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2591 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2592 | else | |
598a2813 | 2593 | echo "$as_me:2592: result: no" >&5 |
503d2be0 | 2594 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2595 | fi |
2596 | ||
503d2be0 AS |
2597 | test -n "$ac_ct_CC" && break |
2598 | done | |
ba4481b5 | 2599 | |
503d2be0 AS |
2600 | CC=$ac_ct_CC |
2601 | fi | |
2602 | ||
2603 | fi | |
ba4481b5 | 2604 | |
598a2813 | 2605 | test -z "$CC" && { { echo "$as_me:2604: error: no acceptable cc found in \$PATH" >&5 |
925c2f3f | 2606 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
503d2be0 | 2607 | { (exit 1); exit 1; }; } |
c4bb2108 | 2608 | |
503d2be0 | 2609 | # Provide some information about the compiler. |
598a2813 | 2610 | echo "$as_me:2609:" \ |
503d2be0 AS |
2611 | "checking for C compiler version" >&5 |
2612 | ac_compiler=`set X $ac_compile; echo $2` | |
598a2813 | 2613 | { (eval echo "$as_me:2612: \"$ac_compiler --version </dev/null >&5\"") >&5 |
503d2be0 AS |
2614 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2615 | ac_status=$? | |
598a2813 | 2616 | echo "$as_me:2615: \$? = $ac_status" >&5 |
503d2be0 | 2617 | (exit $ac_status); } |
598a2813 | 2618 | { (eval echo "$as_me:2617: \"$ac_compiler -v </dev/null >&5\"") >&5 |
503d2be0 AS |
2619 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2620 | ac_status=$? | |
598a2813 | 2621 | echo "$as_me:2620: \$? = $ac_status" >&5 |
503d2be0 | 2622 | (exit $ac_status); } |
598a2813 | 2623 | { (eval echo "$as_me:2622: \"$ac_compiler -V </dev/null >&5\"") >&5 |
503d2be0 AS |
2624 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2625 | ac_status=$? | |
598a2813 | 2626 | echo "$as_me:2625: \$? = $ac_status" >&5 |
503d2be0 AS |
2627 | (exit $ac_status); } |
2628 | ||
2629 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 2630 | #line 2624 "configure" |
ba4481b5 | 2631 | #include "confdefs.h" |
c4bb2108 | 2632 | |
503d2be0 AS |
2633 | int |
2634 | main () | |
2635 | { | |
2636 | ||
2637 | ; | |
2638 | return 0; | |
2639 | } | |
2640 | _ACEOF | |
2641 | ac_clean_files_save=$ac_clean_files | |
2642 | ac_clean_files="$ac_clean_files a.out a.exe" | |
2643 | # Try to create an executable without -o first, disregard a.out. | |
2644 | # It will help us diagnose broken compilers, and finding out an intuition | |
2645 | # of exeext. | |
598a2813 | 2646 | echo "$as_me:2645: checking for C compiler default output" >&5 |
503d2be0 AS |
2647 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2648 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
598a2813 | 2649 | if { (eval echo "$as_me:2648: \"$ac_link_default\"") >&5 |
503d2be0 AS |
2650 | (eval $ac_link_default) 2>&5 |
2651 | ac_status=$? | |
598a2813 | 2652 | echo "$as_me:2651: \$? = $ac_status" >&5 |
503d2be0 AS |
2653 | (exit $ac_status); }; then |
2654 | # Find the output, starting from the most likely. This scheme is | |
2655 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2656 | # resort. | |
925c2f3f | 2657 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
503d2be0 AS |
2658 | ls a.out conftest 2>/dev/null; |
2659 | ls a.* conftest.* 2>/dev/null`; do | |
2660 | case $ac_file in | |
925c2f3f | 2661 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
503d2be0 AS |
2662 | a.out ) # We found the default executable, but exeext='' is most |
2663 | # certainly right. | |
2664 | break;; | |
2665 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2666 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2667 | export ac_cv_exeext | |
2668 | break;; | |
2669 | * ) break;; | |
2670 | esac | |
2671 | done | |
2672 | else | |
2673 | echo "$as_me: failed program was:" >&5 | |
2674 | cat conftest.$ac_ext >&5 | |
598a2813 | 2675 | { { echo "$as_me:2674: error: C compiler cannot create executables" >&5 |
503d2be0 AS |
2676 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
2677 | { (exit 77); exit 77; }; } | |
2678 | fi | |
2679 | ||
2680 | ac_exeext=$ac_cv_exeext | |
598a2813 | 2681 | echo "$as_me:2680: result: $ac_file" >&5 |
503d2be0 AS |
2682 | echo "${ECHO_T}$ac_file" >&6 |
2683 | ||
2684 | # Check the compiler produces executables we can run. If not, either | |
2685 | # the compiler is broken, or we cross compile. | |
598a2813 | 2686 | echo "$as_me:2685: checking whether the C compiler works" >&5 |
503d2be0 AS |
2687 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2688 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2689 | # If not cross compiling, check that we can run a simple program. | |
2690 | if test "$cross_compiling" != yes; then | |
2691 | if { ac_try='./$ac_file' | |
598a2813 | 2692 | { (eval echo "$as_me:2691: \"$ac_try\"") >&5 |
503d2be0 AS |
2693 | (eval $ac_try) 2>&5 |
2694 | ac_status=$? | |
598a2813 | 2695 | echo "$as_me:2694: \$? = $ac_status" >&5 |
503d2be0 AS |
2696 | (exit $ac_status); }; }; then |
2697 | cross_compiling=no | |
ba4481b5 | 2698 | else |
503d2be0 AS |
2699 | if test "$cross_compiling" = maybe; then |
2700 | cross_compiling=yes | |
2701 | else | |
598a2813 | 2702 | { { echo "$as_me:2701: error: cannot run C compiled programs. |
503d2be0 AS |
2703 | If you meant to cross compile, use \`--host'." >&5 |
2704 | echo "$as_me: error: cannot run C compiled programs. | |
2705 | If you meant to cross compile, use \`--host'." >&2;} | |
2706 | { (exit 1); exit 1; }; } | |
2707 | fi | |
ba4481b5 | 2708 | fi |
503d2be0 | 2709 | fi |
598a2813 | 2710 | echo "$as_me:2709: result: yes" >&5 |
503d2be0 AS |
2711 | echo "${ECHO_T}yes" >&6 |
2712 | ||
2713 | rm -f a.out a.exe conftest$ac_cv_exeext | |
2714 | ac_clean_files=$ac_clean_files_save | |
2715 | # Check the compiler produces executables we can run. If not, either | |
2716 | # the compiler is broken, or we cross compile. | |
598a2813 | 2717 | echo "$as_me:2716: checking whether we are cross compiling" >&5 |
503d2be0 | 2718 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
598a2813 | 2719 | echo "$as_me:2718: result: $cross_compiling" >&5 |
503d2be0 AS |
2720 | echo "${ECHO_T}$cross_compiling" >&6 |
2721 | ||
598a2813 | 2722 | echo "$as_me:2721: checking for executable suffix" >&5 |
925c2f3f | 2723 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
598a2813 | 2724 | if { (eval echo "$as_me:2723: \"$ac_link\"") >&5 |
503d2be0 AS |
2725 | (eval $ac_link) 2>&5 |
2726 | ac_status=$? | |
598a2813 | 2727 | echo "$as_me:2726: \$? = $ac_status" >&5 |
503d2be0 AS |
2728 | (exit $ac_status); }; then |
2729 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2730 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2731 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2732 | # `rm'. | |
2733 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2734 | case $ac_file in | |
8799b3e4 | 2735 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
503d2be0 AS |
2736 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2737 | export ac_cv_exeext | |
2738 | break;; | |
2739 | * ) break;; | |
2740 | esac | |
2741 | done | |
ba4481b5 | 2742 | else |
598a2813 | 2743 | { { echo "$as_me:2742: error: cannot compute EXEEXT: cannot compile and link" >&5 |
925c2f3f | 2744 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
503d2be0 | 2745 | { (exit 1); exit 1; }; } |
ba4481b5 | 2746 | fi |
ba4481b5 | 2747 | |
503d2be0 | 2748 | rm -f conftest$ac_cv_exeext |
598a2813 | 2749 | echo "$as_me:2748: result: $ac_cv_exeext" >&5 |
503d2be0 | 2750 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
ba4481b5 | 2751 | |
503d2be0 AS |
2752 | rm -f conftest.$ac_ext |
2753 | EXEEXT=$ac_cv_exeext | |
2754 | ac_exeext=$EXEEXT | |
598a2813 | 2755 | echo "$as_me:2754: checking for object suffix" >&5 |
925c2f3f | 2756 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
503d2be0 AS |
2757 | if test "${ac_cv_objext+set}" = set; then |
2758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 2759 | else |
503d2be0 | 2760 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 2761 | #line 2755 "configure" |
503d2be0 | 2762 | #include "confdefs.h" |
ba4481b5 | 2763 | |
503d2be0 AS |
2764 | int |
2765 | main () | |
2766 | { | |
ba4481b5 | 2767 | |
503d2be0 AS |
2768 | ; |
2769 | return 0; | |
2770 | } | |
2771 | _ACEOF | |
2772 | rm -f conftest.o conftest.obj | |
598a2813 | 2773 | if { (eval echo "$as_me:2772: \"$ac_compile\"") >&5 |
503d2be0 AS |
2774 | (eval $ac_compile) 2>&5 |
2775 | ac_status=$? | |
598a2813 | 2776 | echo "$as_me:2775: \$? = $ac_status" >&5 |
503d2be0 AS |
2777 | (exit $ac_status); }; then |
2778 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2779 | case $ac_file in | |
8799b3e4 | 2780 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
503d2be0 AS |
2781 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2782 | break;; | |
2783 | esac | |
2784 | done | |
c4bb2108 | 2785 | else |
503d2be0 AS |
2786 | echo "$as_me: failed program was:" >&5 |
2787 | cat conftest.$ac_ext >&5 | |
598a2813 | 2788 | { { echo "$as_me:2787: error: cannot compute OBJEXT: cannot compile" >&5 |
925c2f3f | 2789 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
503d2be0 | 2790 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
2791 | fi |
2792 | ||
503d2be0 AS |
2793 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2794 | fi | |
598a2813 | 2795 | echo "$as_me:2794: result: $ac_cv_objext" >&5 |
503d2be0 AS |
2796 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2797 | OBJEXT=$ac_cv_objext | |
2798 | ac_objext=$OBJEXT | |
598a2813 | 2799 | echo "$as_me:2798: checking whether we are using the GNU C compiler" >&5 |
503d2be0 AS |
2800 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2801 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 2803 | else |
503d2be0 | 2804 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 2805 | #line 2799 "configure" |
503d2be0 AS |
2806 | #include "confdefs.h" |
2807 | ||
2808 | int | |
2809 | main () | |
2810 | { | |
2811 | #ifndef __GNUC__ | |
2812 | choke me | |
2813 | #endif | |
2814 | ||
2815 | ; | |
2816 | return 0; | |
2817 | } | |
2818 | _ACEOF | |
2819 | rm -f conftest.$ac_objext | |
598a2813 | 2820 | if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5 |
503d2be0 AS |
2821 | (eval $ac_compile) 2>&5 |
2822 | ac_status=$? | |
598a2813 | 2823 | echo "$as_me:2822: \$? = $ac_status" >&5 |
503d2be0 AS |
2824 | (exit $ac_status); } && |
2825 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 2826 | { (eval echo "$as_me:2825: \"$ac_try\"") >&5 |
503d2be0 AS |
2827 | (eval $ac_try) 2>&5 |
2828 | ac_status=$? | |
598a2813 | 2829 | echo "$as_me:2828: \$? = $ac_status" >&5 |
503d2be0 AS |
2830 | (exit $ac_status); }; }; then |
2831 | ac_compiler_gnu=yes | |
2832 | else | |
2833 | echo "$as_me: failed program was:" >&5 | |
2834 | cat conftest.$ac_ext >&5 | |
2835 | ac_compiler_gnu=no | |
2836 | fi | |
2837 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2838 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2839 | ||
2840 | fi | |
598a2813 | 2841 | echo "$as_me:2840: result: $ac_cv_c_compiler_gnu" >&5 |
503d2be0 AS |
2842 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2843 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2844 | ac_test_CFLAGS=${CFLAGS+set} | |
2845 | ac_save_CFLAGS=$CFLAGS | |
2846 | CFLAGS="-g" | |
598a2813 | 2847 | echo "$as_me:2846: checking whether $CC accepts -g" >&5 |
503d2be0 AS |
2848 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2849 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2851 | else | |
2852 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 2853 | #line 2847 "configure" |
503d2be0 AS |
2854 | #include "confdefs.h" |
2855 | ||
2856 | int | |
2857 | main () | |
2858 | { | |
2859 | ||
2860 | ; | |
2861 | return 0; | |
2862 | } | |
2863 | _ACEOF | |
2864 | rm -f conftest.$ac_objext | |
598a2813 | 2865 | if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5 |
503d2be0 AS |
2866 | (eval $ac_compile) 2>&5 |
2867 | ac_status=$? | |
598a2813 | 2868 | echo "$as_me:2867: \$? = $ac_status" >&5 |
503d2be0 AS |
2869 | (exit $ac_status); } && |
2870 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 2871 | { (eval echo "$as_me:2870: \"$ac_try\"") >&5 |
503d2be0 AS |
2872 | (eval $ac_try) 2>&5 |
2873 | ac_status=$? | |
598a2813 | 2874 | echo "$as_me:2873: \$? = $ac_status" >&5 |
503d2be0 | 2875 | (exit $ac_status); }; }; then |
ba4481b5 DL |
2876 | ac_cv_prog_cc_g=yes |
2877 | else | |
503d2be0 AS |
2878 | echo "$as_me: failed program was:" >&5 |
2879 | cat conftest.$ac_ext >&5 | |
2880 | ac_cv_prog_cc_g=no | |
ba4481b5 | 2881 | fi |
503d2be0 | 2882 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 2883 | fi |
598a2813 | 2884 | echo "$as_me:2883: result: $ac_cv_prog_cc_g" >&5 |
503d2be0 | 2885 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
c4bb2108 | 2886 | if test "$ac_test_CFLAGS" = set; then |
503d2be0 | 2887 | CFLAGS=$ac_save_CFLAGS |
c4bb2108 DL |
2888 | elif test $ac_cv_prog_cc_g = yes; then |
2889 | if test "$GCC" = yes; then | |
ba4481b5 DL |
2890 | CFLAGS="-g -O2" |
2891 | else | |
c4bb2108 | 2892 | CFLAGS="-g" |
ba4481b5 | 2893 | fi |
22afa6e8 | 2894 | else |
c4bb2108 DL |
2895 | if test "$GCC" = yes; then |
2896 | CFLAGS="-O2" | |
2897 | else | |
2898 | CFLAGS= | |
2899 | fi | |
ba4481b5 | 2900 | fi |
503d2be0 AS |
2901 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2902 | # in C++ we need to declare it. In case someone uses the same compiler | |
2903 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2904 | # the declaration of exit, since it's the most demanding environment. | |
2905 | cat >conftest.$ac_ext <<_ACEOF | |
2906 | #ifndef __cplusplus | |
2907 | choke me | |
2908 | #endif | |
2909 | _ACEOF | |
2910 | rm -f conftest.$ac_objext | |
598a2813 | 2911 | if { (eval echo "$as_me:2910: \"$ac_compile\"") >&5 |
503d2be0 AS |
2912 | (eval $ac_compile) 2>&5 |
2913 | ac_status=$? | |
598a2813 | 2914 | echo "$as_me:2913: \$? = $ac_status" >&5 |
503d2be0 AS |
2915 | (exit $ac_status); } && |
2916 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 2917 | { (eval echo "$as_me:2916: \"$ac_try\"") >&5 |
503d2be0 AS |
2918 | (eval $ac_try) 2>&5 |
2919 | ac_status=$? | |
598a2813 | 2920 | echo "$as_me:2919: \$? = $ac_status" >&5 |
503d2be0 AS |
2921 | (exit $ac_status); }; }; then |
2922 | for ac_declaration in \ | |
2923 | ''\ | |
2924 | '#include <stdlib.h>' \ | |
2925 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2926 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2927 | 'extern "C" void exit (int) throw ();' \ | |
2928 | 'extern "C" void exit (int);' \ | |
2929 | 'void exit (int);' | |
2930 | do | |
2931 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 2932 | #line 2926 "configure" |
503d2be0 AS |
2933 | #include "confdefs.h" |
2934 | #include <stdlib.h> | |
2935 | $ac_declaration | |
2936 | int | |
2937 | main () | |
2938 | { | |
2939 | exit (42); | |
2940 | ; | |
2941 | return 0; | |
2942 | } | |
2943 | _ACEOF | |
2944 | rm -f conftest.$ac_objext | |
598a2813 | 2945 | if { (eval echo "$as_me:2944: \"$ac_compile\"") >&5 |
503d2be0 AS |
2946 | (eval $ac_compile) 2>&5 |
2947 | ac_status=$? | |
598a2813 | 2948 | echo "$as_me:2947: \$? = $ac_status" >&5 |
503d2be0 AS |
2949 | (exit $ac_status); } && |
2950 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 2951 | { (eval echo "$as_me:2950: \"$ac_try\"") >&5 |
503d2be0 AS |
2952 | (eval $ac_try) 2>&5 |
2953 | ac_status=$? | |
598a2813 | 2954 | echo "$as_me:2953: \$? = $ac_status" >&5 |
503d2be0 AS |
2955 | (exit $ac_status); }; }; then |
2956 | : | |
2957 | else | |
2958 | echo "$as_me: failed program was:" >&5 | |
2959 | cat conftest.$ac_ext >&5 | |
2960 | continue | |
2961 | fi | |
2962 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2963 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 2964 | #line 2958 "configure" |
503d2be0 AS |
2965 | #include "confdefs.h" |
2966 | $ac_declaration | |
2967 | int | |
2968 | main () | |
2969 | { | |
2970 | exit (42); | |
2971 | ; | |
2972 | return 0; | |
2973 | } | |
2974 | _ACEOF | |
2975 | rm -f conftest.$ac_objext | |
598a2813 | 2976 | if { (eval echo "$as_me:2975: \"$ac_compile\"") >&5 |
503d2be0 AS |
2977 | (eval $ac_compile) 2>&5 |
2978 | ac_status=$? | |
598a2813 | 2979 | echo "$as_me:2978: \$? = $ac_status" >&5 |
503d2be0 AS |
2980 | (exit $ac_status); } && |
2981 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 2982 | { (eval echo "$as_me:2981: \"$ac_try\"") >&5 |
503d2be0 AS |
2983 | (eval $ac_try) 2>&5 |
2984 | ac_status=$? | |
598a2813 | 2985 | echo "$as_me:2984: \$? = $ac_status" >&5 |
503d2be0 AS |
2986 | (exit $ac_status); }; }; then |
2987 | break | |
2988 | else | |
2989 | echo "$as_me: failed program was:" >&5 | |
2990 | cat conftest.$ac_ext >&5 | |
2991 | fi | |
2992 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2993 | done | |
2994 | rm -f conftest* | |
2995 | if test -n "$ac_declaration"; then | |
2996 | echo '#ifdef __cplusplus' >>confdefs.h | |
2997 | echo $ac_declaration >>confdefs.h | |
2998 | echo '#endif' >>confdefs.h | |
2999 | fi | |
ba4481b5 | 3000 | |
503d2be0 AS |
3001 | else |
3002 | echo "$as_me: failed program was:" >&5 | |
3003 | cat conftest.$ac_ext >&5 | |
3004 | fi | |
3005 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3006 | ac_ext=c | |
3007 | ac_cpp='$CPP $CPPFLAGS' | |
3008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
3011 | |
3012 | # On Suns, sometimes $CPP names a directory. | |
3013 | if test -n "$CPP" && test -d "$CPP"; then | |
3014 | CPP= | |
3015 | fi | |
3016 | ||
3017 | #### Some systems specify a CPP to use unless we are using GCC. | |
3018 | #### Now that we know whether we are using GCC, we can decide whether | |
3019 | #### to use that one. | |
3020 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3021 | then | |
3022 | CPP="$NON_GNU_CPP" | |
3023 | fi | |
3024 | ||
3025 | #### Some systems specify a CC to use unless we are using GCC. | |
3026 | #### Now that we know whether we are using GCC, we can decide whether | |
3027 | #### to use that one. | |
3028 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3029 | test x$cc_specified != xyes | |
3030 | then | |
3031 | CC="$NON_GNU_CC" | |
3032 | fi | |
3033 | ||
3034 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3035 | then | |
3036 | CC="$CC $GCC_TEST_OPTIONS" | |
3037 | fi | |
3038 | ||
3039 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3040 | then | |
3041 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
3042 | fi | |
3043 | ||
3044 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
3045 | then | |
3046 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
3047 | fi | |
3048 | ||
3049 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
3050 | then | |
3051 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
3052 | fi | |
3053 | ||
3054 | #### Some other nice autoconf tests. If you add a test here which | |
3055 | #### should make an entry in src/config.h, don't forget to add an | |
3056 | #### #undef clause to src/config.h.in for autoconf to modify. | |
3057 | ||
598a2813 | 3058 | echo "$as_me:3057: checking whether ln -s works" >&5 |
503d2be0 AS |
3059 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3060 | LN_S=$as_ln_s | |
3061 | if test "$LN_S" = "ln -s"; then | |
598a2813 | 3062 | echo "$as_me:3061: result: yes" >&5 |
503d2be0 | 3063 | echo "${ECHO_T}yes" >&6 |
ba4481b5 | 3064 | else |
598a2813 | 3065 | echo "$as_me:3064: result: no, using $LN_S" >&5 |
503d2be0 | 3066 | echo "${ECHO_T}no, using $LN_S" >&6 |
ba4481b5 DL |
3067 | fi |
3068 | ||
503d2be0 AS |
3069 | ac_ext=c |
3070 | ac_cpp='$CPP $CPPFLAGS' | |
3071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
598a2813 | 3074 | echo "$as_me:3073: checking how to run the C preprocessor" >&5 |
503d2be0 | 3075 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
ba4481b5 DL |
3076 | # On Suns, sometimes $CPP names a directory. |
3077 | if test -n "$CPP" && test -d "$CPP"; then | |
3078 | CPP= | |
3079 | fi | |
3080 | if test -z "$CPP"; then | |
503d2be0 AS |
3081 | if test "${ac_cv_prog_CPP+set}" = set; then |
3082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3083 | else | |
3084 | # Double quotes because CPP needs to be expanded | |
3085 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3086 | do | |
3087 | ac_preproc_ok=false | |
3088 | for ac_c_preproc_warn_flag in '' yes | |
3089 | do | |
3090 | # Use a header file that comes with gcc, so configuring glibc | |
3091 | # with a fresh cross-compiler works. | |
ba4481b5 | 3092 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
3093 | # not just through cpp. "Syntax error" is here to catch this case. |
3094 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 3095 | #line 3089 "configure" |
ba4481b5 DL |
3096 | #include "confdefs.h" |
3097 | #include <assert.h> | |
503d2be0 AS |
3098 | Syntax error |
3099 | _ACEOF | |
598a2813 | 3100 | if { (eval echo "$as_me:3099: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3101 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3102 | ac_status=$? | |
3103 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3104 | rm -f conftest.er1 | |
3105 | cat conftest.err >&5 | |
598a2813 | 3106 | echo "$as_me:3105: \$? = $ac_status" >&5 |
503d2be0 AS |
3107 | (exit $ac_status); } >/dev/null; then |
3108 | if test -s conftest.err; then | |
3109 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3110 | else | |
3111 | ac_cpp_err= | |
3112 | fi | |
3113 | else | |
3114 | ac_cpp_err=yes | |
3115 | fi | |
3116 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3117 | : |
3118 | else | |
503d2be0 | 3119 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 3120 | cat conftest.$ac_ext >&5 |
503d2be0 AS |
3121 | # Broken: fails on valid input. |
3122 | continue | |
3123 | fi | |
3124 | rm -f conftest.err conftest.$ac_ext | |
3125 | ||
3126 | # OK, works on sane cases. Now check whether non-existent headers | |
3127 | # can be detected and how. | |
3128 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 3129 | #line 3123 "configure" |
503d2be0 AS |
3130 | #include "confdefs.h" |
3131 | #include <ac_nonexistent.h> | |
3132 | _ACEOF | |
598a2813 | 3133 | if { (eval echo "$as_me:3132: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3135 | ac_status=$? | |
3136 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3137 | rm -f conftest.er1 | |
3138 | cat conftest.err >&5 | |
598a2813 | 3139 | echo "$as_me:3138: \$? = $ac_status" >&5 |
503d2be0 AS |
3140 | (exit $ac_status); } >/dev/null; then |
3141 | if test -s conftest.err; then | |
3142 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3143 | else | |
3144 | ac_cpp_err= | |
3145 | fi | |
3146 | else | |
3147 | ac_cpp_err=yes | |
3148 | fi | |
3149 | if test -z "$ac_cpp_err"; then | |
3150 | # Broken: success on invalid input. | |
3151 | continue | |
c4bb2108 | 3152 | else |
503d2be0 | 3153 | echo "$as_me: failed program was:" >&5 |
c4bb2108 | 3154 | cat conftest.$ac_ext >&5 |
503d2be0 AS |
3155 | # Passes both tests. |
3156 | ac_preproc_ok=: | |
3157 | break | |
3158 | fi | |
3159 | rm -f conftest.err conftest.$ac_ext | |
3160 | ||
3161 | done | |
3162 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3163 | rm -f conftest.err conftest.$ac_ext | |
3164 | if $ac_preproc_ok; then | |
3165 | break | |
3166 | fi | |
3167 | ||
3168 | done | |
3169 | ac_cv_prog_CPP=$CPP | |
3170 | ||
3171 | fi | |
3172 | CPP=$ac_cv_prog_CPP | |
3173 | else | |
3174 | ac_cv_prog_CPP=$CPP | |
3175 | fi | |
598a2813 | 3176 | echo "$as_me:3175: result: $CPP" >&5 |
503d2be0 AS |
3177 | echo "${ECHO_T}$CPP" >&6 |
3178 | ac_preproc_ok=false | |
3179 | for ac_c_preproc_warn_flag in '' yes | |
3180 | do | |
3181 | # Use a header file that comes with gcc, so configuring glibc | |
3182 | # with a fresh cross-compiler works. | |
3183 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3184 | # not just through cpp. "Syntax error" is here to catch this case. | |
3185 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 3186 | #line 3180 "configure" |
c4bb2108 DL |
3187 | #include "confdefs.h" |
3188 | #include <assert.h> | |
503d2be0 AS |
3189 | Syntax error |
3190 | _ACEOF | |
598a2813 | 3191 | if { (eval echo "$as_me:3190: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3192 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3193 | ac_status=$? | |
3194 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3195 | rm -f conftest.er1 | |
3196 | cat conftest.err >&5 | |
598a2813 | 3197 | echo "$as_me:3196: \$? = $ac_status" >&5 |
503d2be0 AS |
3198 | (exit $ac_status); } >/dev/null; then |
3199 | if test -s conftest.err; then | |
3200 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3201 | else | |
3202 | ac_cpp_err= | |
3203 | fi | |
3204 | else | |
3205 | ac_cpp_err=yes | |
3206 | fi | |
3207 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3208 | : |
3209 | else | |
503d2be0 | 3210 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 3211 | cat conftest.$ac_ext >&5 |
503d2be0 AS |
3212 | # Broken: fails on valid input. |
3213 | continue | |
3214 | fi | |
3215 | rm -f conftest.err conftest.$ac_ext | |
3216 | ||
3217 | # OK, works on sane cases. Now check whether non-existent headers | |
3218 | # can be detected and how. | |
3219 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 3220 | #line 3214 "configure" |
503d2be0 AS |
3221 | #include "confdefs.h" |
3222 | #include <ac_nonexistent.h> | |
3223 | _ACEOF | |
598a2813 | 3224 | if { (eval echo "$as_me:3223: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3225 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3226 | ac_status=$? | |
3227 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3228 | rm -f conftest.er1 | |
3229 | cat conftest.err >&5 | |
598a2813 | 3230 | echo "$as_me:3229: \$? = $ac_status" >&5 |
503d2be0 AS |
3231 | (exit $ac_status); } >/dev/null; then |
3232 | if test -s conftest.err; then | |
3233 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3234 | else | |
3235 | ac_cpp_err= | |
3236 | fi | |
3237 | else | |
3238 | ac_cpp_err=yes | |
c4bb2108 | 3239 | fi |
503d2be0 AS |
3240 | if test -z "$ac_cpp_err"; then |
3241 | # Broken: success on invalid input. | |
3242 | continue | |
3243 | else | |
3244 | echo "$as_me: failed program was:" >&5 | |
3245 | cat conftest.$ac_ext >&5 | |
3246 | # Passes both tests. | |
3247 | ac_preproc_ok=: | |
3248 | break | |
ba4481b5 | 3249 | fi |
503d2be0 AS |
3250 | rm -f conftest.err conftest.$ac_ext |
3251 | ||
3252 | done | |
3253 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3254 | rm -f conftest.err conftest.$ac_ext | |
3255 | if $ac_preproc_ok; then | |
3256 | : | |
ba4481b5 | 3257 | else |
598a2813 | 3258 | { { echo "$as_me:3257: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
503d2be0 AS |
3259 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
3260 | { (exit 1); exit 1; }; } | |
ba4481b5 | 3261 | fi |
503d2be0 AS |
3262 | |
3263 | ac_ext=c | |
3264 | ac_cpp='$CPP $CPPFLAGS' | |
3265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
3268 | |
3269 | # Find a good install program. We prefer a C program (faster), | |
3270 | # so one script is as good as another. But avoid the broken or | |
3271 | # incompatible versions: | |
3272 | # SysV /etc/install, /usr/sbin/install | |
3273 | # SunOS /usr/etc/install | |
3274 | # IRIX /sbin/install | |
3275 | # AIX /bin/install | |
503d2be0 | 3276 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 3277 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
3278 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3279 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3280 | # ./install, which can be erroneously created by make from ./install.sh. | |
598a2813 | 3281 | echo "$as_me:3280: checking for a BSD compatible install" >&5 |
925c2f3f | 3282 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
ba4481b5 | 3283 | if test -z "$INSTALL"; then |
503d2be0 AS |
3284 | if test "${ac_cv_path_install+set}" = set; then |
3285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3286 | else |
925c2f3f EZ |
3287 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
3288 | for ac_dir in $PATH; do | |
3289 | IFS=$ac_save_IFS | |
3290 | # Account for people who put trailing slashes in PATH elements. | |
3291 | case $ac_dir/ in | |
3292 | / | ./ | .// | /cC/* \ | |
3293 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
3294 | | /usr/ucb/* ) ;; | |
3295 | *) | |
3296 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3297 | # Don't use installbsd from OSF since it installs stuff as root | |
3298 | # by default. | |
3299 | for ac_prog in ginstall scoinst install; do | |
3300 | if $as_executable_p "$ac_dir/$ac_prog"; then | |
3301 | if test $ac_prog = install && | |
3302 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
3303 | # AIX install. It has an incompatible calling convention. | |
3304 | : | |
3305 | elif test $ac_prog = install && | |
3306 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
3307 | # program-specific install script used by HP pwplus--don't use. | |
3308 | : | |
3309 | else | |
3310 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
3311 | break 2 | |
3312 | fi | |
3313 | fi | |
ba4481b5 | 3314 | done |
925c2f3f EZ |
3315 | ;; |
3316 | esac | |
3317 | done | |
ba4481b5 DL |
3318 | |
3319 | fi | |
3320 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 3321 | INSTALL=$ac_cv_path_install |
ba4481b5 DL |
3322 | else |
3323 | # As a last resort, use the slow shell script. We don't cache a | |
3324 | # path for INSTALL within a source directory, because that will | |
3325 | # break other packages using the cache if that directory is | |
3326 | # removed, or if the path is relative. | |
503d2be0 | 3327 | INSTALL=$ac_install_sh |
ba4481b5 DL |
3328 | fi |
3329 | fi | |
598a2813 | 3330 | echo "$as_me:3329: result: $INSTALL" >&5 |
503d2be0 | 3331 | echo "${ECHO_T}$INSTALL" >&6 |
ba4481b5 DL |
3332 | |
3333 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3334 | # It thinks the first close brace ends the variable substitution. | |
3335 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3336 | ||
503d2be0 | 3337 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 3338 | |
ba4481b5 DL |
3339 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3340 | ||
3341 | for ac_prog in 'bison -y' byacc | |
3342 | do | |
503d2be0 | 3343 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
ba4481b5 | 3344 | set dummy $ac_prog; ac_word=$2 |
598a2813 | 3345 | echo "$as_me:3344: checking for $ac_word" >&5 |
503d2be0 AS |
3346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3347 | if test "${ac_cv_prog_YACC+set}" = set; then | |
3348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
3349 | else |
3350 | if test -n "$YACC"; then | |
3351 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3352 | else | |
925c2f3f EZ |
3353 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
3354 | ac_dummy="$PATH" | |
3355 | for ac_dir in $ac_dummy; do | |
3356 | IFS=$ac_save_IFS | |
3357 | test -z "$ac_dir" && ac_dir=. | |
3358 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3359 | ac_cv_prog_YACC="$ac_prog" | |
598a2813 | 3360 | echo "$as_me:3359: found $ac_dir/$ac_word" >&5 |
925c2f3f | 3361 | break |
503d2be0 AS |
3362 | done |
3363 | ||
ba4481b5 DL |
3364 | fi |
3365 | fi | |
503d2be0 | 3366 | YACC=$ac_cv_prog_YACC |
ba4481b5 | 3367 | if test -n "$YACC"; then |
598a2813 | 3368 | echo "$as_me:3367: result: $YACC" >&5 |
503d2be0 | 3369 | echo "${ECHO_T}$YACC" >&6 |
ba4481b5 | 3370 | else |
598a2813 | 3371 | echo "$as_me:3370: result: no" >&5 |
503d2be0 | 3372 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
3373 | fi |
3374 | ||
503d2be0 | 3375 | test -n "$YACC" && break |
ba4481b5 DL |
3376 | done |
3377 | test -n "$YACC" || YACC="yacc" | |
3378 | ||
7397acc4 | 3379 | if test "x$RANLIB" = x; then |
503d2be0 AS |
3380 | if test -n "$ac_tool_prefix"; then |
3381 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3382 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
598a2813 | 3383 | echo "$as_me:3382: checking for $ac_word" >&5 |
503d2be0 AS |
3384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3385 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 DL |
3387 | else |
3388 | if test -n "$RANLIB"; then | |
3389 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3390 | else | |
925c2f3f EZ |
3391 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
3392 | ac_dummy="$PATH" | |
3393 | for ac_dir in $ac_dummy; do | |
3394 | IFS=$ac_save_IFS | |
3395 | test -z "$ac_dir" && ac_dir=. | |
3396 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3397 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
598a2813 | 3398 | echo "$as_me:3397: found $ac_dir/$ac_word" >&5 |
925c2f3f | 3399 | break |
503d2be0 AS |
3400 | done |
3401 | ||
7397acc4 DL |
3402 | fi |
3403 | fi | |
503d2be0 | 3404 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 3405 | if test -n "$RANLIB"; then |
598a2813 | 3406 | echo "$as_me:3405: result: $RANLIB" >&5 |
503d2be0 AS |
3407 | echo "${ECHO_T}$RANLIB" >&6 |
3408 | else | |
598a2813 | 3409 | echo "$as_me:3408: result: no" >&5 |
503d2be0 AS |
3410 | echo "${ECHO_T}no" >&6 |
3411 | fi | |
3412 | ||
3413 | fi | |
3414 | if test -z "$ac_cv_prog_RANLIB"; then | |
3415 | ac_ct_RANLIB=$RANLIB | |
3416 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3417 | set dummy ranlib; ac_word=$2 | |
598a2813 | 3418 | echo "$as_me:3417: checking for $ac_word" >&5 |
503d2be0 AS |
3419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3420 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3422 | else | |
3423 | if test -n "$ac_ct_RANLIB"; then | |
3424 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3425 | else | |
925c2f3f EZ |
3426 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
3427 | ac_dummy="$PATH" | |
3428 | for ac_dir in $ac_dummy; do | |
3429 | IFS=$ac_save_IFS | |
3430 | test -z "$ac_dir" && ac_dir=. | |
3431 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3432 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
598a2813 | 3433 | echo "$as_me:3432: found $ac_dir/$ac_word" >&5 |
925c2f3f | 3434 | break |
503d2be0 AS |
3435 | done |
3436 | ||
3437 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3438 | fi | |
3439 | fi | |
3440 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3441 | if test -n "$ac_ct_RANLIB"; then | |
598a2813 | 3442 | echo "$as_me:3441: result: $ac_ct_RANLIB" >&5 |
503d2be0 AS |
3443 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3444 | else | |
598a2813 | 3445 | echo "$as_me:3444: result: no" >&5 |
503d2be0 AS |
3446 | echo "${ECHO_T}no" >&6 |
3447 | fi | |
3448 | ||
3449 | RANLIB=$ac_ct_RANLIB | |
7397acc4 | 3450 | else |
503d2be0 | 3451 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
3452 | fi |
3453 | ||
3454 | fi | |
ba4481b5 | 3455 | |
598a2813 | 3456 | echo "$as_me:3455: checking for AIX" >&5 |
503d2be0 AS |
3457 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
3458 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 3459 | #line 3453 "configure" |
ba4481b5 DL |
3460 | #include "confdefs.h" |
3461 | #ifdef _AIX | |
3462 | yes | |
3463 | #endif | |
3464 | ||
503d2be0 | 3465 | _ACEOF |
ba4481b5 DL |
3466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3467 | egrep "yes" >/dev/null 2>&1; then | |
598a2813 | 3468 | echo "$as_me:3467: result: yes" >&5 |
503d2be0 | 3469 | echo "${ECHO_T}yes" >&6 |
925c2f3f | 3470 | cat >>confdefs.h <<\EOF |
ba4481b5 | 3471 | #define _ALL_SOURCE 1 |
925c2f3f | 3472 | EOF |
ba4481b5 DL |
3473 | |
3474 | else | |
598a2813 | 3475 | echo "$as_me:3474: result: no" >&5 |
503d2be0 | 3476 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
3477 | fi |
3478 | rm -f conftest* | |
3479 | ||
3b33a005 DL |
3480 | #### Extract some information from the operating system and machine files. |
3481 | ||
598a2813 | 3482 | { echo "$as_me:3481: checking the machine- and system-dependent files to find out |
3b33a005 | 3483 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
3484 | - whether the GNU malloc routines are usable..." >&5 |
3485 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 3486 | - which libraries the lib-src programs will want, and |
503d2be0 | 3487 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
3488 | |
3489 | ### First figure out CFLAGS (which we use for running the compiler here) | |
3490 | ### and REAL_CFLAGS (which we use for real compilation). | |
3491 | ### The two are the same except on a few systems, where they are made | |
3492 | ### different to work around various lossages. For example, | |
3493 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3494 | ### as implying static linking. | |
3495 | ||
3496 | ### If the CFLAGS env var is specified, we use that value | |
3497 | ### instead of the default. | |
3498 | ||
3499 | ### It's not important that this name contain the PID; you can't run | |
3500 | ### two configures in the same directory and have anything work | |
3501 | ### anyway. | |
3502 | tempcname="conftest.c" | |
3503 | ||
3504 | echo ' | |
3505 | #include "'${srcdir}'/src/'${opsysfile}'" | |
3506 | #include "'${srcdir}'/src/'${machfile}'" | |
3507 | #ifndef LIBS_MACHINE | |
3508 | #define LIBS_MACHINE | |
3509 | #endif | |
3510 | #ifndef LIBS_SYSTEM | |
3511 | #define LIBS_SYSTEM | |
3512 | #endif | |
3513 | #ifndef C_SWITCH_SYSTEM | |
3514 | #define C_SWITCH_SYSTEM | |
3515 | #endif | |
3516 | #ifndef C_SWITCH_MACHINE | |
3517 | #define C_SWITCH_MACHINE | |
3518 | #endif | |
3519 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3520 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
3521 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
3522 | ||
3523 | #ifndef LIB_X11_LIB | |
3524 | #define LIB_X11_LIB -lX11 | |
3525 | #endif | |
3526 | ||
3527 | #ifndef LIBX11_MACHINE | |
3528 | #define LIBX11_MACHINE | |
3529 | #endif | |
3530 | ||
3531 | #ifndef LIBX11_SYSTEM | |
3532 | #define LIBX11_SYSTEM | |
3533 | #endif | |
3534 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3535 | ||
3536 | #ifdef UNEXEC | |
3537 | configure___ unexec=UNEXEC | |
3538 | #else | |
3539 | configure___ unexec=unexec.o | |
3540 | #endif | |
3541 | ||
3542 | #ifdef SYSTEM_MALLOC | |
3543 | configure___ system_malloc=yes | |
3544 | #else | |
3545 | configure___ system_malloc=no | |
3546 | #endif | |
3547 | ||
ef9e4345 GM |
3548 | #ifdef USE_MMAP_FOR_BUFFERS |
3549 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 3550 | #else |
ef9e4345 | 3551 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
3552 | #endif |
3553 | ||
3b33a005 DL |
3554 | #ifndef C_DEBUG_SWITCH |
3555 | #define C_DEBUG_SWITCH -g | |
3556 | #endif | |
3557 | ||
3558 | #ifndef C_OPTIMIZE_SWITCH | |
3559 | #ifdef __GNUC__ | |
3560 | #define C_OPTIMIZE_SWITCH -O2 | |
3561 | #else | |
3562 | #define C_OPTIMIZE_SWITCH -O | |
3563 | #endif | |
3564 | #endif | |
3565 | ||
3566 | #ifndef LD_SWITCH_MACHINE | |
3567 | #define LD_SWITCH_MACHINE | |
3568 | #endif | |
3569 | ||
3570 | #ifndef LD_SWITCH_SYSTEM | |
3571 | #define LD_SWITCH_SYSTEM | |
3572 | #endif | |
3573 | ||
3574 | #ifndef LD_SWITCH_X_SITE_AUX | |
3575 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 3576 | #endif |
3b33a005 DL |
3577 | |
3578 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3579 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3580 | ||
3581 | #ifdef THIS_IS_CONFIGURE | |
3582 | ||
3583 | /* Get the CFLAGS for tests in configure. */ | |
3584 | #ifdef __GNUC__ | |
3585 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3586 | #else | |
3587 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3588 | #endif | |
3589 | ||
3590 | #else /* not THIS_IS_CONFIGURE */ | |
3591 | ||
3592 | /* Get the CFLAGS for real compilation. */ | |
3593 | #ifdef __GNUC__ | |
3594 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3595 | #else | |
3596 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3597 | #endif | |
3598 | ||
3599 | #endif /* not THIS_IS_CONFIGURE */ | |
3600 | ' > ${tempcname} | |
3601 | ||
3602 | # The value of CPP is a quoted variable reference, so we need to do this | |
3603 | # to get its actual value... | |
3604 | CPP=`eval "echo $CPP"` | |
3605 | eval `${CPP} -Isrc ${tempcname} \ | |
3606 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3607 | if test "x$SPECIFIED_CFLAGS" = x; then | |
3608 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3609 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3610 | else | |
3611 | REAL_CFLAGS="$CFLAGS" | |
3612 | fi | |
3613 | rm ${tempcname} | |
3614 | ||
3615 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3616 | ||
3617 | ### Make sure subsequent tests use flags consistent with the build flags. | |
3618 | ||
3619 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3620 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3621 | else | |
3622 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3623 | fi | |
3624 | ||
503d2be0 | 3625 | # Check whether --enable-largefile or --disable-largefile was given. |
f4988be7 GM |
3626 | if test "${enable_largefile+set}" = set; then |
3627 | enableval="$enable_largefile" | |
f4988be7 | 3628 | |
503d2be0 AS |
3629 | fi; |
3630 | if test "$enable_largefile" != no; then | |
f4988be7 | 3631 | |
598a2813 | 3632 | echo "$as_me:3631: checking for special C compiler options needed for large files" >&5 |
503d2be0 AS |
3633 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
3634 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
3635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3636 | else |
f4988be7 | 3637 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
3638 | if test "$GCC" != yes; then |
3639 | ac_save_CC=$CC | |
3640 | while :; do | |
3641 | # IRIX 6.2 and later do not support large files by default, | |
3642 | # so use the C compiler's -n32 option if that helps. | |
3643 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 3644 | #line 3638 "configure" |
b192d653 | 3645 | #include "confdefs.h" |
f4988be7 | 3646 | #include <sys/types.h> |
503d2be0 AS |
3647 | /* Check that off_t can represent 2**63 - 1 correctly. |
3648 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3649 | since some C++ compilers masquerading as C compilers | |
3650 | incorrectly reject 9223372036854775807. */ | |
3651 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3652 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3653 | && LARGE_OFF_T % 2147483647 == 1) | |
3654 | ? 1 : -1]; | |
3655 | int | |
3656 | main () | |
3657 | { | |
f4988be7 | 3658 | |
503d2be0 AS |
3659 | ; |
3660 | return 0; | |
3661 | } | |
3662 | _ACEOF | |
3663 | rm -f conftest.$ac_objext | |
598a2813 | 3664 | if { (eval echo "$as_me:3663: \"$ac_compile\"") >&5 |
503d2be0 AS |
3665 | (eval $ac_compile) 2>&5 |
3666 | ac_status=$? | |
598a2813 | 3667 | echo "$as_me:3666: \$? = $ac_status" >&5 |
503d2be0 AS |
3668 | (exit $ac_status); } && |
3669 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 3670 | { (eval echo "$as_me:3669: \"$ac_try\"") >&5 |
503d2be0 AS |
3671 | (eval $ac_try) 2>&5 |
3672 | ac_status=$? | |
598a2813 | 3673 | echo "$as_me:3672: \$? = $ac_status" >&5 |
503d2be0 AS |
3674 | (exit $ac_status); }; }; then |
3675 | break | |
b192d653 | 3676 | else |
503d2be0 AS |
3677 | echo "$as_me: failed program was:" >&5 |
3678 | cat conftest.$ac_ext >&5 | |
3679 | fi | |
3680 | rm -f conftest.$ac_objext | |
3681 | CC="$CC -n32" | |
3682 | rm -f conftest.$ac_objext | |
598a2813 | 3683 | if { (eval echo "$as_me:3682: \"$ac_compile\"") >&5 |
503d2be0 AS |
3684 | (eval $ac_compile) 2>&5 |
3685 | ac_status=$? | |
598a2813 | 3686 | echo "$as_me:3685: \$? = $ac_status" >&5 |
503d2be0 AS |
3687 | (exit $ac_status); } && |
3688 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 3689 | { (eval echo "$as_me:3688: \"$ac_try\"") >&5 |
503d2be0 AS |
3690 | (eval $ac_try) 2>&5 |
3691 | ac_status=$? | |
598a2813 | 3692 | echo "$as_me:3691: \$? = $ac_status" >&5 |
503d2be0 AS |
3693 | (exit $ac_status); }; }; then |
3694 | ac_cv_sys_largefile_CC=' -n32'; break | |
3695 | else | |
3696 | echo "$as_me: failed program was:" >&5 | |
3697 | cat conftest.$ac_ext >&5 | |
3698 | fi | |
3699 | rm -f conftest.$ac_objext | |
3700 | break | |
3701 | done | |
3702 | CC=$ac_save_CC | |
3703 | rm -f conftest.$ac_ext | |
3704 | fi | |
b192d653 | 3705 | fi |
598a2813 | 3706 | echo "$as_me:3705: result: $ac_cv_sys_largefile_CC" >&5 |
503d2be0 AS |
3707 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
3708 | if test "$ac_cv_sys_largefile_CC" != no; then | |
3709 | CC=$CC$ac_cv_sys_largefile_CC | |
3710 | fi | |
b192d653 | 3711 | |
598a2813 | 3712 | echo "$as_me:3711: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
503d2be0 AS |
3713 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
3714 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
3715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3716 | else |
503d2be0 | 3717 | while :; do |
f4988be7 | 3718 | ac_cv_sys_file_offset_bits=no |
503d2be0 | 3719 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 3720 | #line 3714 "configure" |
f4988be7 GM |
3721 | #include "confdefs.h" |
3722 | #include <sys/types.h> | |
503d2be0 AS |
3723 | /* Check that off_t can represent 2**63 - 1 correctly. |
3724 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3725 | since some C++ compilers masquerading as C compilers | |
3726 | incorrectly reject 9223372036854775807. */ | |
3727 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3728 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3729 | && LARGE_OFF_T % 2147483647 == 1) | |
3730 | ? 1 : -1]; | |
3731 | int | |
3732 | main () | |
3733 | { | |
f4988be7 | 3734 | |
503d2be0 AS |
3735 | ; |
3736 | return 0; | |
3737 | } | |
3738 | _ACEOF | |
3739 | rm -f conftest.$ac_objext | |
598a2813 | 3740 | if { (eval echo "$as_me:3739: \"$ac_compile\"") >&5 |
503d2be0 AS |
3741 | (eval $ac_compile) 2>&5 |
3742 | ac_status=$? | |
598a2813 | 3743 | echo "$as_me:3742: \$? = $ac_status" >&5 |
503d2be0 AS |
3744 | (exit $ac_status); } && |
3745 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 3746 | { (eval echo "$as_me:3745: \"$ac_try\"") >&5 |
503d2be0 AS |
3747 | (eval $ac_try) 2>&5 |
3748 | ac_status=$? | |
598a2813 | 3749 | echo "$as_me:3748: \$? = $ac_status" >&5 |
503d2be0 AS |
3750 | (exit $ac_status); }; }; then |
3751 | break | |
f4988be7 | 3752 | else |
503d2be0 AS |
3753 | echo "$as_me: failed program was:" >&5 |
3754 | cat conftest.$ac_ext >&5 | |
3755 | fi | |
3756 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3757 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 3758 | #line 3752 "configure" |
ba4481b5 | 3759 | #include "confdefs.h" |
f4988be7 GM |
3760 | #define _FILE_OFFSET_BITS 64 |
3761 | #include <sys/types.h> | |
503d2be0 AS |
3762 | /* Check that off_t can represent 2**63 - 1 correctly. |
3763 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3764 | since some C++ compilers masquerading as C compilers | |
3765 | incorrectly reject 9223372036854775807. */ | |
3766 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3767 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3768 | && LARGE_OFF_T % 2147483647 == 1) | |
3769 | ? 1 : -1]; | |
3770 | int | |
3771 | main () | |
3772 | { | |
3773 | ||
3774 | ; | |
3775 | return 0; | |
3776 | } | |
3777 | _ACEOF | |
3778 | rm -f conftest.$ac_objext | |
598a2813 | 3779 | if { (eval echo "$as_me:3778: \"$ac_compile\"") >&5 |
503d2be0 AS |
3780 | (eval $ac_compile) 2>&5 |
3781 | ac_status=$? | |
598a2813 | 3782 | echo "$as_me:3781: \$? = $ac_status" >&5 |
503d2be0 AS |
3783 | (exit $ac_status); } && |
3784 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 3785 | { (eval echo "$as_me:3784: \"$ac_try\"") >&5 |
503d2be0 AS |
3786 | (eval $ac_try) 2>&5 |
3787 | ac_status=$? | |
598a2813 | 3788 | echo "$as_me:3787: \$? = $ac_status" >&5 |
503d2be0 AS |
3789 | (exit $ac_status); }; }; then |
3790 | ac_cv_sys_file_offset_bits=64; break | |
3791 | else | |
3792 | echo "$as_me: failed program was:" >&5 | |
3793 | cat conftest.$ac_ext >&5 | |
3794 | fi | |
3795 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3796 | break | |
3797 | done | |
ba4481b5 | 3798 | fi |
598a2813 | 3799 | echo "$as_me:3798: result: $ac_cv_sys_file_offset_bits" >&5 |
503d2be0 AS |
3800 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
3801 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
ba4481b5 | 3802 | |
925c2f3f | 3803 | cat >>confdefs.h <<EOF |
f4988be7 | 3804 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
925c2f3f | 3805 | EOF |
f4988be7 | 3806 | |
503d2be0 AS |
3807 | fi |
3808 | rm -f conftest* | |
598a2813 | 3809 | echo "$as_me:3808: checking for _LARGE_FILES value needed for large files" >&5 |
503d2be0 AS |
3810 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
3811 | if test "${ac_cv_sys_large_files+set}" = set; then | |
3812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3813 | else |
503d2be0 | 3814 | while :; do |
f4988be7 | 3815 | ac_cv_sys_large_files=no |
503d2be0 | 3816 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 3817 | #line 3811 "configure" |
f4988be7 | 3818 | #include "confdefs.h" |
503d2be0 AS |
3819 | #include <sys/types.h> |
3820 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3821 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3822 | since some C++ compilers masquerading as C compilers | |
3823 | incorrectly reject 9223372036854775807. */ | |
3824 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3825 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3826 | && LARGE_OFF_T % 2147483647 == 1) | |
3827 | ? 1 : -1]; | |
3828 | int | |
3829 | main () | |
3830 | { | |
ba4481b5 | 3831 | |
503d2be0 AS |
3832 | ; |
3833 | return 0; | |
3834 | } | |
3835 | _ACEOF | |
3836 | rm -f conftest.$ac_objext | |
598a2813 | 3837 | if { (eval echo "$as_me:3836: \"$ac_compile\"") >&5 |
503d2be0 AS |
3838 | (eval $ac_compile) 2>&5 |
3839 | ac_status=$? | |
598a2813 | 3840 | echo "$as_me:3839: \$? = $ac_status" >&5 |
503d2be0 AS |
3841 | (exit $ac_status); } && |
3842 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 3843 | { (eval echo "$as_me:3842: \"$ac_try\"") >&5 |
503d2be0 AS |
3844 | (eval $ac_try) 2>&5 |
3845 | ac_status=$? | |
598a2813 | 3846 | echo "$as_me:3845: \$? = $ac_status" >&5 |
503d2be0 AS |
3847 | (exit $ac_status); }; }; then |
3848 | break | |
ba4481b5 | 3849 | else |
503d2be0 AS |
3850 | echo "$as_me: failed program was:" >&5 |
3851 | cat conftest.$ac_ext >&5 | |
3852 | fi | |
3853 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3854 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 3855 | #line 3849 "configure" |
ba4481b5 | 3856 | #include "confdefs.h" |
f4988be7 | 3857 | #define _LARGE_FILES 1 |
503d2be0 AS |
3858 | #include <sys/types.h> |
3859 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3860 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3861 | since some C++ compilers masquerading as C compilers | |
3862 | incorrectly reject 9223372036854775807. */ | |
3863 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3864 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3865 | && LARGE_OFF_T % 2147483647 == 1) | |
3866 | ? 1 : -1]; | |
3867 | int | |
3868 | main () | |
3869 | { | |
f4988be7 | 3870 | |
503d2be0 AS |
3871 | ; |
3872 | return 0; | |
3873 | } | |
3874 | _ACEOF | |
3875 | rm -f conftest.$ac_objext | |
598a2813 | 3876 | if { (eval echo "$as_me:3875: \"$ac_compile\"") >&5 |
503d2be0 AS |
3877 | (eval $ac_compile) 2>&5 |
3878 | ac_status=$? | |
598a2813 | 3879 | echo "$as_me:3878: \$? = $ac_status" >&5 |
503d2be0 AS |
3880 | (exit $ac_status); } && |
3881 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 3882 | { (eval echo "$as_me:3881: \"$ac_try\"") >&5 |
503d2be0 AS |
3883 | (eval $ac_try) 2>&5 |
3884 | ac_status=$? | |
598a2813 | 3885 | echo "$as_me:3884: \$? = $ac_status" >&5 |
503d2be0 AS |
3886 | (exit $ac_status); }; }; then |
3887 | ac_cv_sys_large_files=1; break | |
3888 | else | |
3889 | echo "$as_me: failed program was:" >&5 | |
3890 | cat conftest.$ac_ext >&5 | |
3891 | fi | |
3892 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3893 | break | |
3894 | done | |
ba4481b5 | 3895 | fi |
598a2813 | 3896 | echo "$as_me:3895: result: $ac_cv_sys_large_files" >&5 |
503d2be0 AS |
3897 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
3898 | if test "$ac_cv_sys_large_files" != no; then | |
ba4481b5 | 3899 | |
925c2f3f | 3900 | cat >>confdefs.h <<EOF |
f4988be7 | 3901 | #define _LARGE_FILES $ac_cv_sys_large_files |
925c2f3f | 3902 | EOF |
ba4481b5 | 3903 | |
503d2be0 AS |
3904 | fi |
3905 | rm -f conftest* | |
3906 | fi | |
ba4481b5 | 3907 | |
2c9dccc9 PJ |
3908 | if test "${with_sound}" != "no"; then |
3909 | # Sound support for GNU/Linux and the free BSDs. | |
98418dba CW |
3910 | |
3911 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
3912 | do | |
3913 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
598a2813 | 3914 | echo "$as_me:3913: checking for $ac_header" >&5 |
98418dba CW |
3915 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3916 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 3917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 3918 | else |
925c2f3f EZ |
3919 | cat >conftest.$ac_ext <<_ACEOF |
3920 | #line 3914 "configure" | |
f4988be7 | 3921 | #include "confdefs.h" |
98418dba | 3922 | #include <$ac_header> |
503d2be0 | 3923 | _ACEOF |
598a2813 | 3924 | if { (eval echo "$as_me:3923: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 3925 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 3926 | ac_status=$? |
98418dba CW |
3927 | egrep -v '^ *\+' conftest.er1 >conftest.err |
3928 | rm -f conftest.er1 | |
3929 | cat conftest.err >&5 | |
598a2813 | 3930 | echo "$as_me:3929: \$? = $ac_status" >&5 |
98418dba CW |
3931 | (exit $ac_status); } >/dev/null; then |
3932 | if test -s conftest.err; then | |
3933 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3934 | else | |
3935 | ac_cpp_err= | |
3936 | fi | |
3937 | else | |
3938 | ac_cpp_err=yes | |
3939 | fi | |
3940 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 3941 | eval "$as_ac_Header=yes" |
f4988be7 | 3942 | else |
503d2be0 | 3943 | echo "$as_me: failed program was:" >&5 |
98418dba | 3944 | cat conftest.$ac_ext >&5 |
925c2f3f | 3945 | eval "$as_ac_Header=no" |
f4988be7 | 3946 | fi |
98418dba | 3947 | rm -f conftest.err conftest.$ac_ext |
f4988be7 | 3948 | fi |
598a2813 | 3949 | echo "$as_me:3948: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 3950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
98418dba | 3951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
925c2f3f | 3952 | cat >>confdefs.h <<EOF |
98418dba | 3953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 3954 | EOF |
f4988be7 GM |
3955 | |
3956 | fi | |
98418dba CW |
3957 | done |
3958 | ||
3959 | # Emulation library used on NetBSD. | |
598a2813 | 3960 | echo "$as_me:3959: checking for _oss_ioctl in -lossaudio" >&5 |
98418dba CW |
3961 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
3962 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
503d2be0 | 3963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 3964 | else |
98418dba CW |
3965 | ac_check_lib_save_LIBS=$LIBS |
3966 | LIBS="-lossaudio $LIBS" | |
3967 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 3968 | #line 3962 "configure" |
f4988be7 | 3969 | #include "confdefs.h" |
98418dba CW |
3970 | |
3971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3972 | #ifdef __cplusplus | |
3973 | extern "C" | |
f4988be7 | 3974 | #endif |
98418dba CW |
3975 | /* We use char because int might match the return type of a gcc2 |
3976 | builtin and then its argument prototype would still apply. */ | |
3977 | char _oss_ioctl (); | |
503d2be0 AS |
3978 | int |
3979 | main () | |
3980 | { | |
98418dba | 3981 | _oss_ioctl (); |
503d2be0 AS |
3982 | ; |
3983 | return 0; | |
3984 | } | |
3985 | _ACEOF | |
98418dba | 3986 | rm -f conftest.$ac_objext conftest$ac_exeext |
598a2813 | 3987 | if { (eval echo "$as_me:3986: \"$ac_link\"") >&5 |
98418dba | 3988 | (eval $ac_link) 2>&5 |
503d2be0 | 3989 | ac_status=$? |
598a2813 | 3990 | echo "$as_me:3989: \$? = $ac_status" >&5 |
503d2be0 | 3991 | (exit $ac_status); } && |
98418dba | 3992 | { ac_try='test -s conftest$ac_exeext' |
598a2813 | 3993 | { (eval echo "$as_me:3992: \"$ac_try\"") >&5 |
503d2be0 AS |
3994 | (eval $ac_try) 2>&5 |
3995 | ac_status=$? | |
598a2813 | 3996 | echo "$as_me:3995: \$? = $ac_status" >&5 |
503d2be0 | 3997 | (exit $ac_status); }; }; then |
98418dba | 3998 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 3999 | else |
503d2be0 AS |
4000 | echo "$as_me: failed program was:" >&5 |
4001 | cat conftest.$ac_ext >&5 | |
98418dba | 4002 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 4003 | fi |
98418dba CW |
4004 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4005 | LIBS=$ac_check_lib_save_LIBS | |
f4988be7 | 4006 | fi |
598a2813 | 4007 | echo "$as_me:4006: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
98418dba CW |
4008 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
4009 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
4010 | LIBSOUND=-lossaudio | |
4011 | else | |
4012 | LIBSOUND= | |
4013 | fi | |
4014 | ||
f4988be7 GM |
4015 | fi |
4016 | ||
98418dba CW |
4017 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
4018 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
4019 | termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h | |
4020 | do | |
4021 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
598a2813 | 4022 | echo "$as_me:4021: checking for $ac_header" >&5 |
98418dba CW |
4023 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4024 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 4025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 4026 | else |
925c2f3f EZ |
4027 | cat >conftest.$ac_ext <<_ACEOF |
4028 | #line 4022 "configure" | |
34ec9ebe | 4029 | #include "confdefs.h" |
98418dba | 4030 | #include <$ac_header> |
503d2be0 | 4031 | _ACEOF |
598a2813 | 4032 | if { (eval echo "$as_me:4031: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 4033 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 4034 | ac_status=$? |
98418dba CW |
4035 | egrep -v '^ *\+' conftest.er1 >conftest.err |
4036 | rm -f conftest.er1 | |
4037 | cat conftest.err >&5 | |
598a2813 | 4038 | echo "$as_me:4037: \$? = $ac_status" >&5 |
98418dba CW |
4039 | (exit $ac_status); } >/dev/null; then |
4040 | if test -s conftest.err; then | |
4041 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4042 | else | |
4043 | ac_cpp_err= | |
4044 | fi | |
4045 | else | |
4046 | ac_cpp_err=yes | |
4047 | fi | |
4048 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 4049 | eval "$as_ac_Header=yes" |
34ec9ebe | 4050 | else |
503d2be0 | 4051 | echo "$as_me: failed program was:" >&5 |
98418dba | 4052 | cat conftest.$ac_ext >&5 |
925c2f3f | 4053 | eval "$as_ac_Header=no" |
34ec9ebe | 4054 | fi |
98418dba | 4055 | rm -f conftest.err conftest.$ac_ext |
34ec9ebe | 4056 | fi |
598a2813 | 4057 | echo "$as_me:4056: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 4058 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
98418dba | 4059 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
925c2f3f | 4060 | cat >>confdefs.h <<EOF |
98418dba | 4061 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 4062 | EOF |
34ec9ebe | 4063 | |
98418dba | 4064 | fi |
98418dba CW |
4065 | done |
4066 | ||
598a2813 | 4067 | echo "$as_me:4066: checking for ANSI C header files" >&5 |
98418dba CW |
4068 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4069 | if test "${ac_cv_header_stdc+set}" = set; then | |
503d2be0 | 4070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 4071 | else |
503d2be0 | 4072 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4073 | #line 4067 "configure" |
ba4481b5 | 4074 | #include "confdefs.h" |
98418dba CW |
4075 | #include <stdlib.h> |
4076 | #include <stdarg.h> | |
4077 | #include <string.h> | |
4078 | #include <float.h> | |
4079 | ||
4080 | _ACEOF | |
598a2813 | 4081 | if { (eval echo "$as_me:4080: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 4082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 4083 | ac_status=$? |
98418dba CW |
4084 | egrep -v '^ *\+' conftest.er1 >conftest.err |
4085 | rm -f conftest.er1 | |
4086 | cat conftest.err >&5 | |
598a2813 | 4087 | echo "$as_me:4086: \$? = $ac_status" >&5 |
98418dba CW |
4088 | (exit $ac_status); } >/dev/null; then |
4089 | if test -s conftest.err; then | |
4090 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4091 | else | |
4092 | ac_cpp_err= | |
4093 | fi | |
4094 | else | |
4095 | ac_cpp_err=yes | |
4096 | fi | |
4097 | if test -z "$ac_cpp_err"; then | |
4098 | ac_cv_header_stdc=yes | |
ba4481b5 | 4099 | else |
503d2be0 | 4100 | echo "$as_me: failed program was:" >&5 |
98418dba CW |
4101 | cat conftest.$ac_ext >&5 |
4102 | ac_cv_header_stdc=no | |
ba4481b5 | 4103 | fi |
98418dba CW |
4104 | rm -f conftest.err conftest.$ac_ext |
4105 | ||
4106 | if test $ac_cv_header_stdc = yes; then | |
4107 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4108 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 4109 | #line 4103 "configure" |
98418dba CW |
4110 | #include "confdefs.h" |
4111 | #include <string.h> | |
4112 | ||
4113 | _ACEOF | |
4114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4115 | egrep "memchr" >/dev/null 2>&1; then | |
4116 | : | |
4117 | else | |
4118 | ac_cv_header_stdc=no | |
ba4481b5 | 4119 | fi |
98418dba | 4120 | rm -f conftest* |
ba4481b5 DL |
4121 | |
4122 | fi | |
4123 | ||
98418dba CW |
4124 | if test $ac_cv_header_stdc = yes; then |
4125 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4126 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 4127 | #line 4121 "configure" |
98418dba CW |
4128 | #include "confdefs.h" |
4129 | #include <stdlib.h> | |
4130 | ||
4131 | _ACEOF | |
4132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4133 | egrep "free" >/dev/null 2>&1; then | |
4134 | : | |
4135 | else | |
4136 | ac_cv_header_stdc=no | |
4137 | fi | |
4138 | rm -f conftest* | |
4139 | ||
4140 | fi | |
4141 | ||
4142 | if test $ac_cv_header_stdc = yes; then | |
4143 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4144 | if test "$cross_compiling" = yes; then | |
4145 | : | |
d42122a3 | 4146 | else |
503d2be0 | 4147 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4148 | #line 4142 "configure" |
d42122a3 | 4149 | #include "confdefs.h" |
98418dba CW |
4150 | #include <ctype.h> |
4151 | #if ((' ' & 0x0FF) == 0x020) | |
4152 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4153 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4154 | #else | |
4155 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4156 | || ('j' <= (c) && (c) <= 'r') \ | |
4157 | || ('s' <= (c) && (c) <= 'z')) | |
4158 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4159 | #endif | |
4160 | ||
4161 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
4162 | int |
4163 | main () | |
4164 | { | |
98418dba CW |
4165 | int i; |
4166 | for (i = 0; i < 256; i++) | |
4167 | if (XOR (islower (i), ISLOWER (i)) | |
4168 | || toupper (i) != TOUPPER (i)) | |
4169 | exit(2); | |
4170 | exit (0); | |
503d2be0 AS |
4171 | } |
4172 | _ACEOF | |
98418dba | 4173 | rm -f conftest$ac_exeext |
598a2813 | 4174 | if { (eval echo "$as_me:4173: \"$ac_link\"") >&5 |
98418dba | 4175 | (eval $ac_link) 2>&5 |
503d2be0 | 4176 | ac_status=$? |
598a2813 | 4177 | echo "$as_me:4176: \$? = $ac_status" >&5 |
98418dba | 4178 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
598a2813 | 4179 | { (eval echo "$as_me:4178: \"$ac_try\"") >&5 |
503d2be0 AS |
4180 | (eval $ac_try) 2>&5 |
4181 | ac_status=$? | |
598a2813 | 4182 | echo "$as_me:4181: \$? = $ac_status" >&5 |
503d2be0 | 4183 | (exit $ac_status); }; }; then |
98418dba | 4184 | : |
d42122a3 | 4185 | else |
98418dba CW |
4186 | echo "$as_me: program exited with status $ac_status" >&5 |
4187 | echo "$as_me: failed program was:" >&5 | |
503d2be0 | 4188 | cat conftest.$ac_ext >&5 |
98418dba | 4189 | ac_cv_header_stdc=no |
d42122a3 | 4190 | fi |
98418dba | 4191 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 4192 | fi |
98418dba CW |
4193 | fi |
4194 | fi | |
598a2813 | 4195 | echo "$as_me:4194: result: $ac_cv_header_stdc" >&5 |
98418dba CW |
4196 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
4197 | if test $ac_cv_header_stdc = yes; then | |
4198 | ||
925c2f3f | 4199 | cat >>confdefs.h <<\EOF |
98418dba | 4200 | #define STDC_HEADERS 1 |
925c2f3f | 4201 | EOF |
d42122a3 DL |
4202 | |
4203 | fi | |
4204 | ||
598a2813 | 4205 | echo "$as_me:4204: checking whether time.h and sys/time.h may both be included" >&5 |
98418dba CW |
4206 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
4207 | if test "${ac_cv_header_time+set}" = set; then | |
503d2be0 | 4208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 4209 | else |
503d2be0 | 4210 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4211 | #line 4205 "configure" |
ba4481b5 DL |
4212 | #include "confdefs.h" |
4213 | #include <sys/types.h> | |
98418dba | 4214 | #include <sys/time.h> |
ba4481b5 | 4215 | #include <time.h> |
503d2be0 AS |
4216 | |
4217 | int | |
4218 | main () | |
4219 | { | |
98418dba CW |
4220 | if ((struct tm *) 0) |
4221 | return 0; | |
503d2be0 AS |
4222 | ; |
4223 | return 0; | |
4224 | } | |
4225 | _ACEOF | |
4226 | rm -f conftest.$ac_objext | |
598a2813 | 4227 | if { (eval echo "$as_me:4226: \"$ac_compile\"") >&5 |
503d2be0 AS |
4228 | (eval $ac_compile) 2>&5 |
4229 | ac_status=$? | |
598a2813 | 4230 | echo "$as_me:4229: \$? = $ac_status" >&5 |
503d2be0 AS |
4231 | (exit $ac_status); } && |
4232 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 4233 | { (eval echo "$as_me:4232: \"$ac_try\"") >&5 |
503d2be0 AS |
4234 | (eval $ac_try) 2>&5 |
4235 | ac_status=$? | |
598a2813 | 4236 | echo "$as_me:4235: \$? = $ac_status" >&5 |
503d2be0 | 4237 | (exit $ac_status); }; }; then |
98418dba | 4238 | ac_cv_header_time=yes |
ba4481b5 | 4239 | else |
503d2be0 AS |
4240 | echo "$as_me: failed program was:" >&5 |
4241 | cat conftest.$ac_ext >&5 | |
98418dba | 4242 | ac_cv_header_time=no |
ba4481b5 | 4243 | fi |
503d2be0 | 4244 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 4245 | fi |
598a2813 | 4246 | echo "$as_me:4245: result: $ac_cv_header_time" >&5 |
98418dba CW |
4247 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
4248 | if test $ac_cv_header_time = yes; then | |
503d2be0 | 4249 | |
925c2f3f | 4250 | cat >>confdefs.h <<\EOF |
98418dba | 4251 | #define TIME_WITH_SYS_TIME 1 |
925c2f3f | 4252 | EOF |
ba4481b5 DL |
4253 | |
4254 | fi | |
4255 | ||
598a2813 | 4256 | echo "$as_me:4255: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
98418dba CW |
4257 | echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 |
4258 | if test "${ac_cv_decl_sys_siglist+set}" = set; then | |
503d2be0 | 4259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 4260 | else |
503d2be0 | 4261 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4262 | #line 4256 "configure" |
ba4481b5 DL |
4263 | #include "confdefs.h" |
4264 | #include <sys/types.h> | |
98418dba CW |
4265 | #include <signal.h> |
4266 | /* NetBSD declares sys_siglist in unistd.h. */ | |
4267 | #if HAVE_UNISTD_H | |
4268 | # include <unistd.h> | |
4269 | #endif | |
503d2be0 AS |
4270 | |
4271 | int | |
4272 | main () | |
4273 | { | |
98418dba | 4274 | char *msg = *(sys_siglist + 1); |
503d2be0 AS |
4275 | ; |
4276 | return 0; | |
4277 | } | |
4278 | _ACEOF | |
4279 | rm -f conftest.$ac_objext | |
598a2813 | 4280 | if { (eval echo "$as_me:4279: \"$ac_compile\"") >&5 |
503d2be0 AS |
4281 | (eval $ac_compile) 2>&5 |
4282 | ac_status=$? | |
598a2813 | 4283 | echo "$as_me:4282: \$? = $ac_status" >&5 |
503d2be0 AS |
4284 | (exit $ac_status); } && |
4285 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 4286 | { (eval echo "$as_me:4285: \"$ac_try\"") >&5 |
503d2be0 AS |
4287 | (eval $ac_try) 2>&5 |
4288 | ac_status=$? | |
598a2813 | 4289 | echo "$as_me:4288: \$? = $ac_status" >&5 |
503d2be0 | 4290 | (exit $ac_status); }; }; then |
98418dba | 4291 | ac_cv_decl_sys_siglist=yes |
ba4481b5 | 4292 | else |
503d2be0 AS |
4293 | echo "$as_me: failed program was:" >&5 |
4294 | cat conftest.$ac_ext >&5 | |
98418dba | 4295 | ac_cv_decl_sys_siglist=no |
ba4481b5 | 4296 | fi |
503d2be0 AS |
4297 | rm -f conftest.$ac_objext conftest.$ac_ext |
4298 | fi | |
598a2813 | 4299 | echo "$as_me:4298: result: $ac_cv_decl_sys_siglist" >&5 |
98418dba CW |
4300 | echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 |
4301 | if test $ac_cv_decl_sys_siglist = yes; then | |
503d2be0 | 4302 | |
925c2f3f | 4303 | cat >>confdefs.h <<\EOF |
98418dba | 4304 | #define SYS_SIGLIST_DECLARED 1 |
925c2f3f | 4305 | EOF |
503d2be0 | 4306 | |
ba4481b5 DL |
4307 | fi |
4308 | ||
598a2813 | 4309 | echo "$as_me:4308: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
98418dba CW |
4310 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
4311 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
503d2be0 | 4312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 4313 | else |
503d2be0 | 4314 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4315 | #line 4309 "configure" |
ba4481b5 | 4316 | #include "confdefs.h" |
98418dba CW |
4317 | #include <sys/types.h> |
4318 | #include <sys/wait.h> | |
4319 | #ifndef WEXITSTATUS | |
4320 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
4321 | #endif | |
4322 | #ifndef WIFEXITED | |
4323 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 4324 | #endif |
503d2be0 AS |
4325 | |
4326 | int | |
4327 | main () | |
4328 | { | |
98418dba CW |
4329 | int s; |
4330 | wait (&s); | |
4331 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
4332 | ; |
4333 | return 0; | |
4334 | } | |
4335 | _ACEOF | |
98418dba | 4336 | rm -f conftest.$ac_objext |
598a2813 | 4337 | if { (eval echo "$as_me:4336: \"$ac_compile\"") >&5 |
98418dba | 4338 | (eval $ac_compile) 2>&5 |
503d2be0 | 4339 | ac_status=$? |
598a2813 | 4340 | echo "$as_me:4339: \$? = $ac_status" >&5 |
503d2be0 | 4341 | (exit $ac_status); } && |
98418dba | 4342 | { ac_try='test -s conftest.$ac_objext' |
598a2813 | 4343 | { (eval echo "$as_me:4342: \"$ac_try\"") >&5 |
503d2be0 AS |
4344 | (eval $ac_try) 2>&5 |
4345 | ac_status=$? | |
598a2813 | 4346 | echo "$as_me:4345: \$? = $ac_status" >&5 |
503d2be0 | 4347 | (exit $ac_status); }; }; then |
98418dba | 4348 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 4349 | else |
503d2be0 AS |
4350 | echo "$as_me: failed program was:" >&5 |
4351 | cat conftest.$ac_ext >&5 | |
98418dba | 4352 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 4353 | fi |
98418dba | 4354 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 4355 | fi |
598a2813 | 4356 | echo "$as_me:4355: result: $ac_cv_header_sys_wait_h" >&5 |
98418dba CW |
4357 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
4358 | if test $ac_cv_header_sys_wait_h = yes; then | |
503d2be0 | 4359 | |
925c2f3f | 4360 | cat >>confdefs.h <<\EOF |
98418dba | 4361 | #define HAVE_SYS_WAIT_H 1 |
925c2f3f | 4362 | EOF |
ba4481b5 | 4363 | |
ba4481b5 DL |
4364 | fi |
4365 | ||
598a2813 | 4366 | echo "$as_me:4365: checking for struct utimbuf" >&5 |
98418dba CW |
4367 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
4368 | if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
503d2be0 | 4369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 4370 | else |
503d2be0 | 4371 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4372 | #line 4366 "configure" |
1113b624 | 4373 | #include "confdefs.h" |
98418dba CW |
4374 | #ifdef TIME_WITH_SYS_TIME |
4375 | #include <sys/time.h> | |
4376 | #include <time.h> | |
4377 | #else | |
4378 | #ifdef HAVE_SYS_TIME_H | |
4379 | #include <sys/time.h> | |
4380 | #else | |
1113b624 | 4381 | #include <time.h> |
98418dba CW |
4382 | #endif |
4383 | #endif | |
4384 | #ifdef HAVE_UTIME_H | |
4385 | #include <utime.h> | |
4386 | #endif | |
503d2be0 AS |
4387 | int |
4388 | main () | |
4389 | { | |
98418dba | 4390 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
4391 | ; |
4392 | return 0; | |
4393 | } | |
4394 | _ACEOF | |
98418dba | 4395 | rm -f conftest.$ac_objext |
598a2813 | 4396 | if { (eval echo "$as_me:4395: \"$ac_compile\"") >&5 |
98418dba | 4397 | (eval $ac_compile) 2>&5 |
503d2be0 | 4398 | ac_status=$? |
598a2813 | 4399 | echo "$as_me:4398: \$? = $ac_status" >&5 |
503d2be0 | 4400 | (exit $ac_status); } && |
98418dba | 4401 | { ac_try='test -s conftest.$ac_objext' |
598a2813 | 4402 | { (eval echo "$as_me:4401: \"$ac_try\"") >&5 |
503d2be0 AS |
4403 | (eval $ac_try) 2>&5 |
4404 | ac_status=$? | |
598a2813 | 4405 | echo "$as_me:4404: \$? = $ac_status" >&5 |
503d2be0 | 4406 | (exit $ac_status); }; }; then |
98418dba | 4407 | emacs_cv_struct_utimbuf=yes |
1113b624 | 4408 | else |
503d2be0 AS |
4409 | echo "$as_me: failed program was:" >&5 |
4410 | cat conftest.$ac_ext >&5 | |
98418dba | 4411 | emacs_cv_struct_utimbuf=no |
1113b624 | 4412 | fi |
98418dba | 4413 | rm -f conftest.$ac_objext conftest.$ac_ext |
1113b624 | 4414 | fi |
598a2813 | 4415 | echo "$as_me:4414: result: $emacs_cv_struct_utimbuf" >&5 |
98418dba CW |
4416 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
4417 | if test $emacs_cv_struct_utimbuf = yes; then | |
b936fae4 | 4418 | |
925c2f3f | 4419 | cat >>confdefs.h <<\EOF |
98418dba | 4420 | #define HAVE_STRUCT_UTIMBUF 1 |
925c2f3f | 4421 | EOF |
1113b624 PE |
4422 | |
4423 | fi | |
ba4481b5 | 4424 | |
598a2813 | 4425 | echo "$as_me:4424: checking return type of signal handlers" >&5 |
98418dba CW |
4426 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
4427 | if test "${ac_cv_type_signal+set}" = set; then | |
503d2be0 | 4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 4429 | else |
98418dba | 4430 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4431 | #line 4425 "configure" |
7397acc4 | 4432 | #include "confdefs.h" |
7397acc4 | 4433 | #include <sys/types.h> |
98418dba CW |
4434 | #include <signal.h> |
4435 | #ifdef signal | |
4436 | # undef signal | |
4437 | #endif | |
4438 | #ifdef __cplusplus | |
4439 | extern "C" void (*signal (int, void (*)(int)))(int); | |
4440 | #else | |
4441 | void (*signal ()) (); | |
4442 | #endif | |
4443 | ||
503d2be0 AS |
4444 | int |
4445 | main () | |
4446 | { | |
98418dba | 4447 | int i; |
503d2be0 AS |
4448 | ; |
4449 | return 0; | |
4450 | } | |
4451 | _ACEOF | |
98418dba | 4452 | rm -f conftest.$ac_objext |
598a2813 | 4453 | if { (eval echo "$as_me:4452: \"$ac_compile\"") >&5 |
503d2be0 AS |
4454 | (eval $ac_compile) 2>&5 |
4455 | ac_status=$? | |
598a2813 | 4456 | echo "$as_me:4455: \$? = $ac_status" >&5 |
503d2be0 AS |
4457 | (exit $ac_status); } && |
4458 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 4459 | { (eval echo "$as_me:4458: \"$ac_try\"") >&5 |
503d2be0 AS |
4460 | (eval $ac_try) 2>&5 |
4461 | ac_status=$? | |
598a2813 | 4462 | echo "$as_me:4461: \$? = $ac_status" >&5 |
503d2be0 | 4463 | (exit $ac_status); }; }; then |
98418dba | 4464 | ac_cv_type_signal=void |
503d2be0 AS |
4465 | else |
4466 | echo "$as_me: failed program was:" >&5 | |
4467 | cat conftest.$ac_ext >&5 | |
98418dba | 4468 | ac_cv_type_signal=int |
503d2be0 | 4469 | fi |
98418dba | 4470 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 4471 | fi |
598a2813 | 4472 | echo "$as_me:4471: result: $ac_cv_type_signal" >&5 |
98418dba | 4473 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
7397acc4 | 4474 | |
925c2f3f | 4475 | cat >>confdefs.h <<EOF |
98418dba | 4476 | #define RETSIGTYPE $ac_cv_type_signal |
925c2f3f | 4477 | EOF |
503d2be0 | 4478 | |
598a2813 | 4479 | echo "$as_me:4478: checking for speed_t" >&5 |
98418dba CW |
4480 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
4481 | if test "${emacs_cv_speed_t+set}" = set; then | |
4482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 4483 | else |
98418dba | 4484 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4485 | #line 4479 "configure" |
98418dba CW |
4486 | #include "confdefs.h" |
4487 | #include <termios.h> | |
98418dba CW |
4488 | int |
4489 | main () | |
4490 | { | |
4491 | speed_t x = 1; | |
4492 | ; | |
4493 | return 0; | |
4494 | } | |
4495 | _ACEOF | |
4496 | rm -f conftest.$ac_objext | |
598a2813 | 4497 | if { (eval echo "$as_me:4496: \"$ac_compile\"") >&5 |
98418dba CW |
4498 | (eval $ac_compile) 2>&5 |
4499 | ac_status=$? | |
598a2813 | 4500 | echo "$as_me:4499: \$? = $ac_status" >&5 |
98418dba CW |
4501 | (exit $ac_status); } && |
4502 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 4503 | { (eval echo "$as_me:4502: \"$ac_try\"") >&5 |
98418dba CW |
4504 | (eval $ac_try) 2>&5 |
4505 | ac_status=$? | |
598a2813 | 4506 | echo "$as_me:4505: \$? = $ac_status" >&5 |
98418dba CW |
4507 | (exit $ac_status); }; }; then |
4508 | emacs_cv_speed_t=yes | |
4509 | else | |
4510 | echo "$as_me: failed program was:" >&5 | |
4511 | cat conftest.$ac_ext >&5 | |
4512 | emacs_cv_speed_t=no | |
4513 | fi | |
4514 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4515 | fi | |
598a2813 | 4516 | echo "$as_me:4515: result: $emacs_cv_speed_t" >&5 |
98418dba CW |
4517 | echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
4518 | if test $emacs_cv_speed_t = yes; then | |
b936fae4 | 4519 | |
925c2f3f | 4520 | cat >>confdefs.h <<\EOF |
98418dba | 4521 | #define HAVE_SPEED_T 1 |
925c2f3f | 4522 | EOF |
98418dba | 4523 | |
7397acc4 DL |
4524 | fi |
4525 | ||
598a2813 | 4526 | echo "$as_me:4525: checking for struct timeval" >&5 |
98418dba CW |
4527 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
4528 | if test "${emacs_cv_struct_timeval+set}" = set; then | |
503d2be0 | 4529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 4530 | else |
503d2be0 | 4531 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4532 | #line 4526 "configure" |
7397acc4 | 4533 | #include "confdefs.h" |
98418dba CW |
4534 | #ifdef TIME_WITH_SYS_TIME |
4535 | #include <sys/time.h> | |
4536 | #include <time.h> | |
4537 | #else | |
4538 | #ifdef HAVE_SYS_TIME_H | |
4539 | #include <sys/time.h> | |
4540 | #else | |
4541 | #include <time.h> | |
4542 | #endif | |
4543 | #endif | |
503d2be0 AS |
4544 | int |
4545 | main () | |
4546 | { | |
98418dba | 4547 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
4548 | ; |
4549 | return 0; | |
4550 | } | |
4551 | _ACEOF | |
4552 | rm -f conftest.$ac_objext | |
598a2813 | 4553 | if { (eval echo "$as_me:4552: \"$ac_compile\"") >&5 |
503d2be0 AS |
4554 | (eval $ac_compile) 2>&5 |
4555 | ac_status=$? | |
598a2813 | 4556 | echo "$as_me:4555: \$? = $ac_status" >&5 |
503d2be0 AS |
4557 | (exit $ac_status); } && |
4558 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 4559 | { (eval echo "$as_me:4558: \"$ac_try\"") >&5 |
503d2be0 AS |
4560 | (eval $ac_try) 2>&5 |
4561 | ac_status=$? | |
598a2813 | 4562 | echo "$as_me:4561: \$? = $ac_status" >&5 |
503d2be0 | 4563 | (exit $ac_status); }; }; then |
98418dba | 4564 | emacs_cv_struct_timeval=yes |
7397acc4 | 4565 | else |
503d2be0 AS |
4566 | echo "$as_me: failed program was:" >&5 |
4567 | cat conftest.$ac_ext >&5 | |
98418dba | 4568 | emacs_cv_struct_timeval=no |
7397acc4 | 4569 | fi |
503d2be0 | 4570 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 4571 | fi |
598a2813 | 4572 | echo "$as_me:4571: result: $emacs_cv_struct_timeval" >&5 |
98418dba CW |
4573 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
4574 | HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
4575 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 4576 | |
925c2f3f | 4577 | cat >>confdefs.h <<\EOF |
98418dba | 4578 | #define HAVE_TIMEVAL 1 |
925c2f3f | 4579 | EOF |
7397acc4 DL |
4580 | |
4581 | fi | |
4582 | ||
598a2813 | 4583 | echo "$as_me:4582: checking for struct exception" >&5 |
98418dba CW |
4584 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
4585 | if test "${emacs_cv_struct_exception+set}" = set; then | |
503d2be0 | 4586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 4587 | else |
503d2be0 | 4588 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4589 | #line 4583 "configure" |
ba4481b5 | 4590 | #include "confdefs.h" |
98418dba | 4591 | #include <math.h> |
503d2be0 AS |
4592 | int |
4593 | main () | |
4594 | { | |
98418dba | 4595 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
4596 | ; |
4597 | return 0; | |
ba4481b5 | 4598 | } |
503d2be0 AS |
4599 | _ACEOF |
4600 | rm -f conftest.$ac_objext | |
598a2813 | 4601 | if { (eval echo "$as_me:4600: \"$ac_compile\"") >&5 |
503d2be0 AS |
4602 | (eval $ac_compile) 2>&5 |
4603 | ac_status=$? | |
598a2813 | 4604 | echo "$as_me:4603: \$? = $ac_status" >&5 |
503d2be0 AS |
4605 | (exit $ac_status); } && |
4606 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 4607 | { (eval echo "$as_me:4606: \"$ac_try\"") >&5 |
503d2be0 AS |
4608 | (eval $ac_try) 2>&5 |
4609 | ac_status=$? | |
598a2813 | 4610 | echo "$as_me:4609: \$? = $ac_status" >&5 |
503d2be0 | 4611 | (exit $ac_status); }; }; then |
98418dba | 4612 | emacs_cv_struct_exception=yes |
ba4481b5 | 4613 | else |
503d2be0 AS |
4614 | echo "$as_me: failed program was:" >&5 |
4615 | cat conftest.$ac_ext >&5 | |
98418dba | 4616 | emacs_cv_struct_exception=no |
ba4481b5 | 4617 | fi |
503d2be0 | 4618 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 4619 | fi |
598a2813 | 4620 | echo "$as_me:4619: result: $emacs_cv_struct_exception" >&5 |
98418dba CW |
4621 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
4622 | HAVE_EXCEPTION=$emacs_cv_struct_exception | |
4623 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 4624 | |
925c2f3f | 4625 | cat >>confdefs.h <<\EOF |
98418dba | 4626 | #define NO_MATHERR 1 |
925c2f3f | 4627 | EOF |
ba4481b5 DL |
4628 | |
4629 | fi | |
4630 | ||
598a2813 | 4631 | echo "$as_me:4630: checking whether struct tm is in sys/time.h or time.h" >&5 |
98418dba CW |
4632 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
4633 | if test "${ac_cv_struct_tm+set}" = set; then | |
503d2be0 | 4634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 4635 | else |
503d2be0 | 4636 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4637 | #line 4631 "configure" |
7397acc4 | 4638 | #include "confdefs.h" |
98418dba CW |
4639 | #include <sys/types.h> |
4640 | #include <time.h> | |
7397acc4 | 4641 | |
503d2be0 AS |
4642 | int |
4643 | main () | |
4644 | { | |
98418dba | 4645 | struct tm *tp; tp->tm_sec; |
503d2be0 AS |
4646 | ; |
4647 | return 0; | |
4648 | } | |
4649 | _ACEOF | |
4650 | rm -f conftest.$ac_objext | |
598a2813 | 4651 | if { (eval echo "$as_me:4650: \"$ac_compile\"") >&5 |
503d2be0 AS |
4652 | (eval $ac_compile) 2>&5 |
4653 | ac_status=$? | |
598a2813 | 4654 | echo "$as_me:4653: \$? = $ac_status" >&5 |
503d2be0 AS |
4655 | (exit $ac_status); } && |
4656 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 4657 | { (eval echo "$as_me:4656: \"$ac_try\"") >&5 |
503d2be0 AS |
4658 | (eval $ac_try) 2>&5 |
4659 | ac_status=$? | |
598a2813 | 4660 | echo "$as_me:4659: \$? = $ac_status" >&5 |
503d2be0 | 4661 | (exit $ac_status); }; }; then |
98418dba | 4662 | ac_cv_struct_tm=time.h |
7397acc4 | 4663 | else |
503d2be0 AS |
4664 | echo "$as_me: failed program was:" >&5 |
4665 | cat conftest.$ac_ext >&5 | |
98418dba | 4666 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 4667 | fi |
503d2be0 | 4668 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 4669 | fi |
598a2813 | 4670 | echo "$as_me:4669: result: $ac_cv_struct_tm" >&5 |
98418dba CW |
4671 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
4672 | if test $ac_cv_struct_tm = sys/time.h; then | |
7397acc4 | 4673 | |
925c2f3f | 4674 | cat >>confdefs.h <<\EOF |
98418dba | 4675 | #define TM_IN_SYS_TIME 1 |
925c2f3f | 4676 | EOF |
7397acc4 DL |
4677 | |
4678 | fi | |
ba4481b5 | 4679 | |
598a2813 | 4680 | echo "$as_me:4679: checking for struct tm.tm_zone" >&5 |
98418dba CW |
4681 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
4682 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
503d2be0 | 4683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 4684 | else |
98418dba | 4685 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4686 | #line 4680 "configure" |
98418dba CW |
4687 | #include "confdefs.h" |
4688 | #include <sys/types.h> | |
4689 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 4690 | |
98418dba CW |
4691 | int |
4692 | main () | |
4693 | { | |
4694 | static struct tm ac_aggr; | |
4695 | if (ac_aggr.tm_zone) | |
4696 | return 0; | |
4697 | ; | |
4698 | return 0; | |
4699 | } | |
4700 | _ACEOF | |
4701 | rm -f conftest.$ac_objext | |
598a2813 | 4702 | if { (eval echo "$as_me:4701: \"$ac_compile\"") >&5 |
98418dba CW |
4703 | (eval $ac_compile) 2>&5 |
4704 | ac_status=$? | |
598a2813 | 4705 | echo "$as_me:4704: \$? = $ac_status" >&5 |
98418dba CW |
4706 | (exit $ac_status); } && |
4707 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 4708 | { (eval echo "$as_me:4707: \"$ac_try\"") >&5 |
98418dba CW |
4709 | (eval $ac_try) 2>&5 |
4710 | ac_status=$? | |
598a2813 | 4711 | echo "$as_me:4710: \$? = $ac_status" >&5 |
98418dba CW |
4712 | (exit $ac_status); }; }; then |
4713 | ac_cv_member_struct_tm_tm_zone=yes | |
ba4481b5 | 4714 | else |
98418dba CW |
4715 | echo "$as_me: failed program was:" >&5 |
4716 | cat conftest.$ac_ext >&5 | |
4717 | ac_cv_member_struct_tm_tm_zone=no | |
ba4481b5 | 4718 | fi |
98418dba | 4719 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 4720 | fi |
598a2813 | 4721 | echo "$as_me:4720: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
98418dba CW |
4722 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
4723 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
503d2be0 | 4724 | |
925c2f3f | 4725 | cat >>confdefs.h <<EOF |
98418dba | 4726 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
925c2f3f | 4727 | EOF |
ba4481b5 | 4728 | |
98418dba | 4729 | fi |
ba4481b5 | 4730 | |
98418dba | 4731 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 4732 | |
925c2f3f | 4733 | cat >>confdefs.h <<\EOF |
98418dba | 4734 | #define HAVE_TM_ZONE 1 |
925c2f3f | 4735 | EOF |
ba4481b5 | 4736 | |
ba4481b5 | 4737 | else |
598a2813 | 4738 | echo "$as_me:4737: checking for tzname" >&5 |
98418dba CW |
4739 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
4740 | if test "${ac_cv_var_tzname+set}" = set; then | |
503d2be0 | 4741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 4742 | else |
98418dba | 4743 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 4744 | #line 4738 "configure" |
98418dba CW |
4745 | #include "confdefs.h" |
4746 | #include <time.h> | |
4747 | #ifndef tzname /* For SGI. */ | |
4748 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
4749 | #endif | |
4750 | ||
98418dba CW |
4751 | int |
4752 | main () | |
4753 | { | |
4754 | atoi(*tzname); | |
4755 | ; | |
4756 | return 0; | |
4757 | } | |
4758 | _ACEOF | |
4759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 4760 | if { (eval echo "$as_me:4759: \"$ac_link\"") >&5 |
98418dba CW |
4761 | (eval $ac_link) 2>&5 |
4762 | ac_status=$? | |
598a2813 | 4763 | echo "$as_me:4762: \$? = $ac_status" >&5 |
98418dba CW |
4764 | (exit $ac_status); } && |
4765 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 4766 | { (eval echo "$as_me:4765: \"$ac_try\"") >&5 |
98418dba CW |
4767 | (eval $ac_try) 2>&5 |
4768 | ac_status=$? | |
598a2813 | 4769 | echo "$as_me:4768: \$? = $ac_status" >&5 |
98418dba CW |
4770 | (exit $ac_status); }; }; then |
4771 | ac_cv_var_tzname=yes | |
4772 | else | |
4773 | echo "$as_me: failed program was:" >&5 | |
4774 | cat conftest.$ac_ext >&5 | |
4775 | ac_cv_var_tzname=no | |
ba4481b5 | 4776 | fi |
98418dba CW |
4777 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4778 | fi | |
598a2813 | 4779 | echo "$as_me:4778: result: $ac_cv_var_tzname" >&5 |
98418dba CW |
4780 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
4781 | if test $ac_cv_var_tzname = yes; then | |
ba4481b5 | 4782 | |
925c2f3f | 4783 | cat >>confdefs.h <<\EOF |
98418dba | 4784 | #define HAVE_TZNAME 1 |
925c2f3f | 4785 | EOF |
503d2be0 | 4786 | |
98418dba CW |
4787 | fi |
4788 | fi | |
503d2be0 | 4789 | |
598a2813 | 4790 | echo "$as_me:4789: checking for struct tm.tm_gmtoff" >&5 |
b936fae4 AS |
4791 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
4792 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
98418dba CW |
4793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4794 | else | |
4795 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 4796 | #line 4790 "configure" |
98418dba CW |
4797 | #include "confdefs.h" |
4798 | #include <time.h> | |
b936fae4 | 4799 | |
98418dba CW |
4800 | int |
4801 | main () | |
4802 | { | |
b936fae4 AS |
4803 | static struct tm ac_aggr; |
4804 | if (ac_aggr.tm_gmtoff) | |
4805 | return 0; | |
98418dba CW |
4806 | ; |
4807 | return 0; | |
4808 | } | |
4809 | _ACEOF | |
b936fae4 | 4810 | rm -f conftest.$ac_objext |
598a2813 | 4811 | if { (eval echo "$as_me:4810: \"$ac_compile\"") >&5 |
b936fae4 | 4812 | (eval $ac_compile) 2>&5 |
98418dba | 4813 | ac_status=$? |
598a2813 | 4814 | echo "$as_me:4813: \$? = $ac_status" >&5 |
98418dba | 4815 | (exit $ac_status); } && |
b936fae4 | 4816 | { ac_try='test -s conftest.$ac_objext' |
598a2813 | 4817 | { (eval echo "$as_me:4816: \"$ac_try\"") >&5 |
98418dba CW |
4818 | (eval $ac_try) 2>&5 |
4819 | ac_status=$? | |
598a2813 | 4820 | echo "$as_me:4819: \$? = $ac_status" >&5 |
98418dba | 4821 | (exit $ac_status); }; }; then |
b936fae4 | 4822 | ac_cv_member_struct_tm_tm_gmtoff=yes |
98418dba CW |
4823 | else |
4824 | echo "$as_me: failed program was:" >&5 | |
4825 | cat conftest.$ac_ext >&5 | |
b936fae4 | 4826 | ac_cv_member_struct_tm_tm_gmtoff=no |
98418dba | 4827 | fi |
b936fae4 | 4828 | rm -f conftest.$ac_objext conftest.$ac_ext |
98418dba | 4829 | fi |
598a2813 | 4830 | echo "$as_me:4829: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
b936fae4 AS |
4831 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 |
4832 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
4833 | ||
925c2f3f | 4834 | cat >>confdefs.h <<\EOF |
98418dba | 4835 | #define HAVE_TM_GMTOFF 1 |
925c2f3f | 4836 | EOF |
503d2be0 | 4837 | |
98418dba | 4838 | fi |
503d2be0 | 4839 | |
598a2813 | 4840 | echo "$as_me:4839: checking for $CC option to accept ANSI C" >&5 |
8799b3e4 CW |
4841 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
4842 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4844 | else | |
4845 | ac_cv_prog_cc_stdc=no | |
4846 | ac_save_CC=$CC | |
4847 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 4848 | #line 4842 "configure" |
8799b3e4 CW |
4849 | #include "confdefs.h" |
4850 | #include <stdarg.h> | |
4851 | #include <stdio.h> | |
4852 | #include <sys/types.h> | |
4853 | #include <sys/stat.h> | |
4854 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4855 | struct buf { int x; }; | |
4856 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4857 | static char *e (p, i) | |
4858 | char **p; | |
4859 | int i; | |
4860 | { | |
4861 | return p[i]; | |
4862 | } | |
4863 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4864 | { | |
4865 | char *s; | |
4866 | va_list v; | |
4867 | va_start (v,p); | |
4868 | s = g (p, va_arg (v,int)); | |
4869 | va_end (v); | |
4870 | return s; | |
4871 | } | |
4872 | int test (int i, double x); | |
4873 | struct s1 {int (*f) (int a);}; | |
4874 | struct s2 {int (*f) (double a);}; | |
4875 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4876 | int argc; | |
4877 | char **argv; | |
8799b3e4 CW |
4878 | int |
4879 | main () | |
4880 | { | |
4881 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4882 | ; | |
4883 | return 0; | |
4884 | } | |
4885 | _ACEOF | |
4886 | # Don't try gcc -ansi; that turns off useful extensions and | |
4887 | # breaks some systems' header files. | |
4888 | # AIX -qlanglvl=ansi | |
4889 | # Ultrix and OSF/1 -std1 | |
4890 | # HP-UX 10.20 and later -Ae | |
4891 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4892 | # SVR4 -Xc -D__EXTENSIONS__ | |
4893 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4894 | do | |
4895 | CC="$ac_save_CC $ac_arg" | |
4896 | rm -f conftest.$ac_objext | |
598a2813 | 4897 | if { (eval echo "$as_me:4896: \"$ac_compile\"") >&5 |
8799b3e4 CW |
4898 | (eval $ac_compile) 2>&5 |
4899 | ac_status=$? | |
598a2813 | 4900 | echo "$as_me:4899: \$? = $ac_status" >&5 |
8799b3e4 CW |
4901 | (exit $ac_status); } && |
4902 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 4903 | { (eval echo "$as_me:4902: \"$ac_try\"") >&5 |
8799b3e4 CW |
4904 | (eval $ac_try) 2>&5 |
4905 | ac_status=$? | |
598a2813 | 4906 | echo "$as_me:4905: \$? = $ac_status" >&5 |
8799b3e4 CW |
4907 | (exit $ac_status); }; }; then |
4908 | ac_cv_prog_cc_stdc=$ac_arg | |
4909 | break | |
4910 | else | |
4911 | echo "$as_me: failed program was:" >&5 | |
4912 | cat conftest.$ac_ext >&5 | |
4913 | fi | |
4914 | rm -f conftest.$ac_objext | |
4915 | done | |
4916 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4917 | CC=$ac_save_CC | |
4918 | ||
4919 | fi | |
4920 | ||
4921 | case "x$ac_cv_prog_cc_stdc" in | |
4922 | x|xno) | |
598a2813 | 4923 | echo "$as_me:4922: result: none needed" >&5 |
8799b3e4 CW |
4924 | echo "${ECHO_T}none needed" >&6 ;; |
4925 | *) | |
598a2813 | 4926 | echo "$as_me:4925: result: $ac_cv_prog_cc_stdc" >&5 |
8799b3e4 CW |
4927 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
4928 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4929 | esac | |
4930 | ||
598a2813 | 4931 | echo "$as_me:4930: checking for function prototypes" >&5 |
98418dba CW |
4932 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
4933 | if test "$ac_cv_prog_cc_stdc" != no; then | |
598a2813 | 4934 | echo "$as_me:4933: result: yes" >&5 |
98418dba CW |
4935 | echo "${ECHO_T}yes" >&6 |
4936 | ||
925c2f3f | 4937 | cat >>confdefs.h <<\EOF |
98418dba | 4938 | #define PROTOTYPES 1 |
925c2f3f | 4939 | EOF |
98418dba CW |
4940 | |
4941 | else | |
598a2813 | 4942 | echo "$as_me:4941: result: no" >&5 |
98418dba CW |
4943 | echo "${ECHO_T}no" >&6 |
4944 | fi | |
4945 | ||
598a2813 | 4946 | echo "$as_me:4945: checking for working volatile" >&5 |
98418dba CW |
4947 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
4948 | if test "${ac_cv_c_volatile+set}" = set; then | |
4949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4950 | else | |
4951 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 4952 | #line 4946 "configure" |
98418dba CW |
4953 | #include "confdefs.h" |
4954 | ||
98418dba CW |
4955 | int |
4956 | main () | |
4957 | { | |
4958 | ||
4959 | volatile int x; | |
4960 | int * volatile y; | |
4961 | ; | |
4962 | return 0; | |
4963 | } | |
4964 | _ACEOF | |
4965 | rm -f conftest.$ac_objext | |
598a2813 | 4966 | if { (eval echo "$as_me:4965: \"$ac_compile\"") >&5 |
98418dba CW |
4967 | (eval $ac_compile) 2>&5 |
4968 | ac_status=$? | |
598a2813 | 4969 | echo "$as_me:4968: \$? = $ac_status" >&5 |
98418dba CW |
4970 | (exit $ac_status); } && |
4971 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 4972 | { (eval echo "$as_me:4971: \"$ac_try\"") >&5 |
98418dba CW |
4973 | (eval $ac_try) 2>&5 |
4974 | ac_status=$? | |
598a2813 | 4975 | echo "$as_me:4974: \$? = $ac_status" >&5 |
98418dba CW |
4976 | (exit $ac_status); }; }; then |
4977 | ac_cv_c_volatile=yes | |
4978 | else | |
4979 | echo "$as_me: failed program was:" >&5 | |
4980 | cat conftest.$ac_ext >&5 | |
4981 | ac_cv_c_volatile=no | |
4982 | fi | |
4983 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4984 | fi | |
598a2813 | 4985 | echo "$as_me:4984: result: $ac_cv_c_volatile" >&5 |
98418dba CW |
4986 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
4987 | if test $ac_cv_c_volatile = no; then | |
4988 | ||
925c2f3f | 4989 | cat >>confdefs.h <<\EOF |
98418dba | 4990 | #define volatile |
925c2f3f | 4991 | EOF |
98418dba CW |
4992 | |
4993 | fi | |
4994 | ||
598a2813 | 4995 | echo "$as_me:4994: checking for an ANSI C-conforming const" >&5 |
98418dba CW |
4996 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
4997 | if test "${ac_cv_c_const+set}" = set; then | |
4998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4999 | else | |
5000 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 5001 | #line 4995 "configure" |
98418dba CW |
5002 | #include "confdefs.h" |
5003 | ||
98418dba CW |
5004 | int |
5005 | main () | |
5006 | { | |
5007 | /* FIXME: Include the comments suggested by Paul. */ | |
5008 | #ifndef __cplusplus | |
5009 | /* Ultrix mips cc rejects this. */ | |
5010 | typedef int charset[2]; | |
5011 | const charset x; | |
5012 | /* SunOS 4.1.1 cc rejects this. */ | |
5013 | char const *const *ccp; | |
5014 | char **p; | |
5015 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5016 | struct point {int x, y;}; | |
5017 | static struct point const zero = {0,0}; | |
5018 | /* AIX XL C 1.02.0.0 rejects this. | |
5019 | It does not let you subtract one const X* pointer from another in | |
5020 | an arm of an if-expression whose if-part is not a constant | |
5021 | expression */ | |
5022 | const char *g = "string"; | |
5023 | ccp = &g + (g ? g-g : 0); | |
5024 | /* HPUX 7.0 cc rejects these. */ | |
5025 | ++ccp; | |
5026 | p = (char**) ccp; | |
5027 | ccp = (char const *const *) p; | |
5028 | { /* SCO 3.2v4 cc rejects this. */ | |
5029 | char *t; | |
5030 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5031 | ||
5032 | *t++ = 0; | |
5033 | } | |
5034 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5035 | int x[] = {25, 17}; | |
5036 | const int *foo = &x[0]; | |
5037 | ++foo; | |
5038 | } | |
5039 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5040 | typedef const int *iptr; | |
5041 | iptr p = 0; | |
5042 | ++p; | |
5043 | } | |
5044 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5045 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5046 | struct s { int j; const int *ap[3]; }; | |
5047 | struct s *b; b->j = 5; | |
5048 | } | |
5049 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5050 | const int foo = 10; | |
5051 | } | |
5052 | #endif | |
5053 | ||
5054 | ; | |
5055 | return 0; | |
5056 | } | |
5057 | _ACEOF | |
5058 | rm -f conftest.$ac_objext | |
598a2813 | 5059 | if { (eval echo "$as_me:5058: \"$ac_compile\"") >&5 |
98418dba CW |
5060 | (eval $ac_compile) 2>&5 |
5061 | ac_status=$? | |
598a2813 | 5062 | echo "$as_me:5061: \$? = $ac_status" >&5 |
98418dba CW |
5063 | (exit $ac_status); } && |
5064 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 5065 | { (eval echo "$as_me:5064: \"$ac_try\"") >&5 |
98418dba CW |
5066 | (eval $ac_try) 2>&5 |
5067 | ac_status=$? | |
598a2813 | 5068 | echo "$as_me:5067: \$? = $ac_status" >&5 |
98418dba CW |
5069 | (exit $ac_status); }; }; then |
5070 | ac_cv_c_const=yes | |
5071 | else | |
5072 | echo "$as_me: failed program was:" >&5 | |
5073 | cat conftest.$ac_ext >&5 | |
5074 | ac_cv_c_const=no | |
5075 | fi | |
5076 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5077 | fi | |
598a2813 | 5078 | echo "$as_me:5077: result: $ac_cv_c_const" >&5 |
98418dba CW |
5079 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
5080 | if test $ac_cv_c_const = no; then | |
5081 | ||
925c2f3f | 5082 | cat >>confdefs.h <<\EOF |
98418dba | 5083 | #define const |
925c2f3f | 5084 | EOF |
98418dba CW |
5085 | |
5086 | fi | |
5087 | ||
598a2813 | 5088 | echo "$as_me:5087: checking for void * support" >&5 |
98418dba CW |
5089 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
5090 | if test "${emacs_cv_void_star+set}" = set; then | |
5091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5092 | else | |
5093 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 5094 | #line 5088 "configure" |
98418dba CW |
5095 | #include "confdefs.h" |
5096 | ||
98418dba CW |
5097 | int |
5098 | main () | |
5099 | { | |
5100 | void * foo; | |
5101 | ; | |
5102 | return 0; | |
5103 | } | |
5104 | _ACEOF | |
5105 | rm -f conftest.$ac_objext | |
598a2813 | 5106 | if { (eval echo "$as_me:5105: \"$ac_compile\"") >&5 |
98418dba CW |
5107 | (eval $ac_compile) 2>&5 |
5108 | ac_status=$? | |
598a2813 | 5109 | echo "$as_me:5108: \$? = $ac_status" >&5 |
98418dba CW |
5110 | (exit $ac_status); } && |
5111 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 5112 | { (eval echo "$as_me:5111: \"$ac_try\"") >&5 |
98418dba CW |
5113 | (eval $ac_try) 2>&5 |
5114 | ac_status=$? | |
598a2813 | 5115 | echo "$as_me:5114: \$? = $ac_status" >&5 |
98418dba CW |
5116 | (exit $ac_status); }; }; then |
5117 | emacs_cv_void_star=yes | |
5118 | else | |
5119 | echo "$as_me: failed program was:" >&5 | |
5120 | cat conftest.$ac_ext >&5 | |
5121 | emacs_cv_void_star=no | |
5122 | fi | |
5123 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5124 | fi | |
598a2813 | 5125 | echo "$as_me:5124: result: $emacs_cv_void_star" >&5 |
98418dba CW |
5126 | echo "${ECHO_T}$emacs_cv_void_star" >&6 |
5127 | if test $emacs_cv_void_star = yes; then | |
925c2f3f | 5128 | cat >>confdefs.h <<\EOF |
98418dba | 5129 | #define POINTER_TYPE void |
925c2f3f | 5130 | EOF |
98418dba CW |
5131 | |
5132 | else | |
925c2f3f | 5133 | cat >>confdefs.h <<\EOF |
98418dba | 5134 | #define POINTER_TYPE char |
925c2f3f | 5135 | EOF |
98418dba CW |
5136 | |
5137 | fi | |
5138 | ||
598a2813 | 5139 | echo "$as_me:5138: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
98418dba CW |
5140 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
5141 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
5142 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
5143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5144 | else | |
925c2f3f | 5145 | cat >conftest.make <<\EOF |
98418dba CW |
5146 | all: |
5147 | @echo 'ac_maketemp="${MAKE}"' | |
925c2f3f | 5148 | EOF |
98418dba CW |
5149 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5150 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
5151 | if test -n "$ac_maketemp"; then | |
5152 | eval ac_cv_prog_make_${ac_make}_set=yes | |
5153 | else | |
5154 | eval ac_cv_prog_make_${ac_make}_set=no | |
5155 | fi | |
5156 | rm -f conftest.make | |
5157 | fi | |
5158 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
598a2813 | 5159 | echo "$as_me:5158: result: yes" >&5 |
98418dba CW |
5160 | echo "${ECHO_T}yes" >&6 |
5161 | SET_MAKE= | |
5162 | else | |
598a2813 | 5163 | echo "$as_me:5162: result: no" >&5 |
98418dba CW |
5164 | echo "${ECHO_T}no" >&6 |
5165 | SET_MAKE="MAKE=${MAKE-make}" | |
5166 | fi | |
5167 | ||
598a2813 | 5168 | echo "$as_me:5167: checking for long file names" >&5 |
98418dba CW |
5169 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
5170 | if test "${ac_cv_sys_long_file_names+set}" = set; then | |
5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5172 | else | |
5173 | ac_cv_sys_long_file_names=yes | |
5174 | # Test for long file names in all the places we know might matter: | |
5175 | # . the current directory, where building will happen | |
5176 | # $prefix/lib where we will be installing things | |
5177 | # $exec_prefix/lib likewise | |
5178 | # eval it to expand exec_prefix. | |
5179 | # $TMPDIR if set, where it might want to write temporary files | |
5180 | # if $TMPDIR is not set: | |
5181 | # /tmp where it might want to write temporary files | |
5182 | # /var/tmp likewise | |
5183 | # /usr/tmp likewise | |
5184 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
5185 | ac_tmpdirs=$TMPDIR | |
5186 | else | |
5187 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
5188 | fi | |
5189 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
5190 | test -d $ac_dir || continue | |
5191 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
5192 | ac_xdir=$ac_dir/cf$$ | |
5193 | (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
5194 | ac_tf1=$ac_xdir/conftest9012345 | |
5195 | ac_tf2=$ac_xdir/conftest9012346 | |
5196 | (echo 1 >$ac_tf1) 2>/dev/null | |
5197 | (echo 2 >$ac_tf2) 2>/dev/null | |
5198 | ac_val=`cat $ac_tf1 2>/dev/null` | |
5199 | if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
5200 | ac_cv_sys_long_file_names=no | |
5201 | rm -rf $ac_xdir 2>/dev/null | |
5202 | break | |
5203 | fi | |
5204 | rm -rf $ac_xdir 2>/dev/null | |
5205 | done | |
5206 | fi | |
598a2813 | 5207 | echo "$as_me:5206: result: $ac_cv_sys_long_file_names" >&5 |
98418dba CW |
5208 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
5209 | if test $ac_cv_sys_long_file_names = yes; then | |
5210 | ||
925c2f3f | 5211 | cat >>confdefs.h <<\EOF |
98418dba | 5212 | #define HAVE_LONG_FILE_NAMES 1 |
925c2f3f | 5213 | EOF |
98418dba CW |
5214 | |
5215 | fi | |
5216 | ||
98418dba CW |
5217 | #### Choose a window system. |
5218 | ||
598a2813 | 5219 | echo "$as_me:5218: checking for X" >&5 |
98418dba CW |
5220 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
5221 | ||
98418dba CW |
5222 | # Check whether --with-x or --without-x was given. |
5223 | if test "${with_x+set}" = set; then | |
5224 | withval="$with_x" | |
5225 | ||
5226 | fi; | |
5227 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
5228 | if test "x$with_x" = xno; then | |
5229 | # The user explicitly disabled X. | |
5230 | have_x=disabled | |
5231 | else | |
5232 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
5233 | # Both variables are already set. | |
5234 | have_x=yes | |
5235 | else | |
5236 | if test "${ac_cv_have_x+set}" = set; then | |
5237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5238 | else | |
5239 | # One or both of the vars are not set, and there is no cached value. | |
5240 | ac_x_includes=no ac_x_libraries=no | |
5241 | rm -fr conftest.dir | |
5242 | if mkdir conftest.dir; then | |
5243 | cd conftest.dir | |
5244 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
925c2f3f | 5245 | cat >Imakefile <<'EOF' |
98418dba CW |
5246 | acfindx: |
5247 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
925c2f3f | 5248 | EOF |
98418dba CW |
5249 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
5250 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5251 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
5252 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
5253 | for ac_extension in a so sl; do | |
5254 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
5255 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
5256 | ac_im_usrlibdir=$ac_im_libdir; break | |
5257 | fi | |
5258 | done | |
5259 | # Screen out bogus values from the imake configuration. They are | |
5260 | # bogus both because they are the default anyway, and because | |
5261 | # using them would break gcc on systems where it needs fixed includes. | |
5262 | case $ac_im_incroot in | |
5263 | /usr/include) ;; | |
5264 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
5265 | esac | |
5266 | case $ac_im_usrlibdir in | |
5267 | /usr/lib | /lib) ;; | |
5268 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
5269 | esac | |
5270 | fi | |
5271 | cd .. | |
5272 | rm -fr conftest.dir | |
5273 | fi | |
5274 | ||
5275 | # Standard set of common directories for X headers. | |
5276 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
5277 | ac_x_header_dirs=' | |
5278 | /usr/X11/include | |
5279 | /usr/X11R6/include | |
5280 | /usr/X11R5/include | |
5281 | /usr/X11R4/include | |
5282 | ||
5283 | /usr/include/X11 | |
5284 | /usr/include/X11R6 | |
5285 | /usr/include/X11R5 | |
5286 | /usr/include/X11R4 | |
5287 | ||
5288 | /usr/local/X11/include | |
5289 | /usr/local/X11R6/include | |
5290 | /usr/local/X11R5/include | |
5291 | /usr/local/X11R4/include | |
5292 | ||
5293 | /usr/local/include/X11 | |
5294 | /usr/local/include/X11R6 | |
5295 | /usr/local/include/X11R5 | |
5296 | /usr/local/include/X11R4 | |
5297 | ||
5298 | /usr/X386/include | |
5299 | /usr/x386/include | |
5300 | /usr/XFree86/include/X11 | |
5301 | ||
5302 | /usr/include | |
5303 | /usr/local/include | |
5304 | /usr/unsupported/include | |
5305 | /usr/athena/include | |
5306 | /usr/local/x11r5/include | |
5307 | /usr/lpp/Xamples/include | |
5308 | ||
5309 | /usr/openwin/include | |
5310 | /usr/openwin/share/include' | |
5311 | ||
5312 | if test "$ac_x_includes" = no; then | |
5313 | # Guess where to find include files, by looking for Intrinsic.h. | |
5314 | # First, try using that file with no special directory specified. | |
5315 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 5316 | #line 5310 "configure" |
98418dba CW |
5317 | #include "confdefs.h" |
5318 | #include <X11/Intrinsic.h> | |
5319 | _ACEOF | |
598a2813 | 5320 | if { (eval echo "$as_me:5319: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
5321 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5322 | ac_status=$? | |
5323 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5324 | rm -f conftest.er1 | |
5325 | cat conftest.err >&5 | |
598a2813 | 5326 | echo "$as_me:5325: \$? = $ac_status" >&5 |
98418dba CW |
5327 | (exit $ac_status); } >/dev/null; then |
5328 | if test -s conftest.err; then | |
5329 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5330 | else | |
5331 | ac_cpp_err= | |
5332 | fi | |
5333 | else | |
5334 | ac_cpp_err=yes | |
5335 | fi | |
5336 | if test -z "$ac_cpp_err"; then | |
5337 | # We can compile using X headers with no special include directory. | |
5338 | ac_x_includes= | |
5339 | else | |
5340 | echo "$as_me: failed program was:" >&5 | |
5341 | cat conftest.$ac_ext >&5 | |
5342 | for ac_dir in $ac_x_header_dirs; do | |
5343 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
5344 | ac_x_includes=$ac_dir | |
5345 | break | |
5346 | fi | |
5347 | done | |
5348 | fi | |
5349 | rm -f conftest.err conftest.$ac_ext | |
5350 | fi # $ac_x_includes = no | |
5351 | ||
5352 | if test "$ac_x_libraries" = no; then | |
5353 | # Check for the libraries. | |
5354 | # See if we find them without any special options. | |
5355 | # Don't add to $LIBS permanently. | |
5356 | ac_save_LIBS=$LIBS | |
5357 | LIBS="-lXt $LIBS" | |
5358 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 5359 | #line 5353 "configure" |
98418dba CW |
5360 | #include "confdefs.h" |
5361 | #include <X11/Intrinsic.h> | |
98418dba CW |
5362 | int |
5363 | main () | |
5364 | { | |
5365 | XtMalloc (0) | |
5366 | ; | |
5367 | return 0; | |
5368 | } | |
5369 | _ACEOF | |
5370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 5371 | if { (eval echo "$as_me:5370: \"$ac_link\"") >&5 |
98418dba CW |
5372 | (eval $ac_link) 2>&5 |
5373 | ac_status=$? | |
598a2813 | 5374 | echo "$as_me:5373: \$? = $ac_status" >&5 |
98418dba CW |
5375 | (exit $ac_status); } && |
5376 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 5377 | { (eval echo "$as_me:5376: \"$ac_try\"") >&5 |
98418dba CW |
5378 | (eval $ac_try) 2>&5 |
5379 | ac_status=$? | |
598a2813 | 5380 | echo "$as_me:5379: \$? = $ac_status" >&5 |
98418dba CW |
5381 | (exit $ac_status); }; }; then |
5382 | LIBS=$ac_save_LIBS | |
5383 | # We can link X programs with no special library path. | |
5384 | ac_x_libraries= | |
5385 | else | |
5386 | echo "$as_me: failed program was:" >&5 | |
5387 | cat conftest.$ac_ext >&5 | |
5388 | LIBS=$ac_save_LIBS | |
5389 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
5390 | do | |
5391 | # Don't even attempt the hair of trying to link an X program! | |
5392 | for ac_extension in a so sl; do | |
5393 | if test -r $ac_dir/libXt.$ac_extension; then | |
5394 | ac_x_libraries=$ac_dir | |
5395 | break 2 | |
5396 | fi | |
5397 | done | |
5398 | done | |
5399 | fi | |
5400 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5401 | fi # $ac_x_libraries = no | |
5402 | ||
5403 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
5404 | # Didn't find X anywhere. Cache the known absence of X. | |
5405 | ac_cv_have_x="have_x=no" | |
5406 | else | |
5407 | # Record where we found X for the cache. | |
5408 | ac_cv_have_x="have_x=yes \ | |
5409 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
5410 | fi | |
5411 | fi | |
5412 | ||
5413 | fi | |
5414 | eval "$ac_cv_have_x" | |
5415 | fi # $with_x != no | |
5416 | ||
5417 | if test "$have_x" != yes; then | |
598a2813 | 5418 | echo "$as_me:5417: result: $have_x" >&5 |
98418dba CW |
5419 | echo "${ECHO_T}$have_x" >&6 |
5420 | no_x=yes | |
5421 | else | |
5422 | # If each of the values was on the command line, it overrides each guess. | |
5423 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
5424 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
5425 | # Update the cache value to reflect the command line values. | |
5426 | ac_cv_have_x="have_x=yes \ | |
5427 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
598a2813 | 5428 | echo "$as_me:5427: result: libraries $x_libraries, headers $x_includes" >&5 |
98418dba CW |
5429 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
5430 | fi | |
5431 | ||
5432 | if test "$no_x" = yes; then | |
5433 | window_system=none | |
5434 | else | |
5435 | window_system=x11 | |
5436 | fi | |
5437 | ||
5438 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
5439 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
5440 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
5441 | x_default_search_path="" | |
5442 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
5443 | x_search_path="\ | |
5444 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
5445 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
5446 | ${x_library}/X11/%T/%N%C%S:\ | |
5447 | ${x_library}/X11/%L/%T/%N%S:\ | |
5448 | ${x_library}/X11/%l/%T/%N%S:\ | |
5449 | ${x_library}/X11/%T/%N%S" | |
5450 | if test x"${x_default_search_path}" = x; then | |
5451 | x_default_search_path=${x_search_path} | |
5452 | else | |
5453 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
5454 | fi | |
5455 | done | |
5456 | fi | |
5457 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
5458 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
5459 | fi | |
5460 | ||
5461 | if test x"${x_includes}" = x; then | |
5462 | bitmapdir=/usr/include/X11/bitmaps | |
5463 | else | |
5464 | # accumulate include directories that have X11 bitmap subdirectories | |
5465 | bmd_acc="dummyval" | |
5466 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
5467 | if test -d "${bmd}/X11/bitmaps"; then | |
5468 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
5469 | fi | |
5470 | if test -d "${bmd}/bitmaps"; then | |
5471 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
5472 | fi | |
5473 | done | |
5474 | if test ${bmd_acc} != "dummyval"; then | |
5475 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
5476 | fi | |
5477 | fi | |
5478 | ||
5479 | case "${window_system}" in | |
5480 | x11 ) | |
5481 | HAVE_X_WINDOWS=yes | |
5482 | HAVE_X11=yes | |
5483 | case "${with_x_toolkit}" in | |
5484 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
5485 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
5486 | no ) USE_X_TOOLKIT=none ;; | |
5487 | * ) USE_X_TOOLKIT=maybe ;; | |
5488 | esac | |
5489 | ;; | |
5490 | none ) | |
5491 | HAVE_X_WINDOWS=no | |
5492 | HAVE_X11=no | |
5493 | USE_X_TOOLKIT=none | |
5494 | ;; | |
5495 | esac | |
5496 | ||
5497 | ### If we're using X11, we should use the X menu package. | |
5498 | HAVE_MENUS=no | |
5499 | case ${HAVE_X11} in | |
5500 | yes ) HAVE_MENUS=yes ;; | |
5501 | esac | |
5502 | ||
5503 | if test "${opsys}" = "hpux9"; then | |
5504 | case "${x_libraries}" in | |
5505 | *X11R4* ) | |
5506 | opsysfile="s/hpux9-x11r4.h" | |
5507 | ;; | |
5508 | esac | |
5509 | fi | |
5510 | ||
5511 | if test "${opsys}" = "hpux9shr"; then | |
5512 | case "${x_libraries}" in | |
5513 | *X11R4* ) | |
5514 | opsysfile="s/hpux9shxr4.h" | |
5515 | ;; | |
5516 | esac | |
5517 | fi | |
5518 | ||
5519 | ### Compute the unexec source name from the object name. | |
5520 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
5521 | ||
5522 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
5523 | # Assume not, until told otherwise. | |
5524 | GNU_MALLOC=yes | |
5525 | doug_lea_malloc=yes | |
598a2813 | 5526 | echo "$as_me:5525: checking for malloc_get_state" >&5 |
98418dba CW |
5527 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
5528 | if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
5529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5530 | else | |
5531 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 5532 | #line 5526 "configure" |
98418dba CW |
5533 | #include "confdefs.h" |
5534 | /* System header to define __stub macros and hopefully few prototypes, | |
5535 | which can conflict with char malloc_get_state (); below. */ | |
5536 | #include <assert.h> | |
5537 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5538 | #ifdef __cplusplus | |
5539 | extern "C" | |
5540 | #endif | |
5541 | /* We use char because int might match the return type of a gcc2 | |
5542 | builtin and then its argument prototype would still apply. */ | |
5543 | char malloc_get_state (); | |
5544 | char (*f) (); | |
5545 | ||
98418dba CW |
5546 | int |
5547 | main () | |
5548 | { | |
5549 | /* The GNU C library defines this for functions which it implements | |
5550 | to always fail with ENOSYS. Some functions are actually named | |
5551 | something starting with __ and the normal name is an alias. */ | |
5552 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
5553 | choke me | |
5554 | #else | |
5555 | f = malloc_get_state; | |
5556 | #endif | |
5557 | ||
5558 | ; | |
5559 | return 0; | |
5560 | } | |
5561 | _ACEOF | |
5562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 5563 | if { (eval echo "$as_me:5562: \"$ac_link\"") >&5 |
98418dba CW |
5564 | (eval $ac_link) 2>&5 |
5565 | ac_status=$? | |
598a2813 | 5566 | echo "$as_me:5565: \$? = $ac_status" >&5 |
98418dba CW |
5567 | (exit $ac_status); } && |
5568 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 5569 | { (eval echo "$as_me:5568: \"$ac_try\"") >&5 |
98418dba CW |
5570 | (eval $ac_try) 2>&5 |
5571 | ac_status=$? | |
598a2813 | 5572 | echo "$as_me:5571: \$? = $ac_status" >&5 |
98418dba CW |
5573 | (exit $ac_status); }; }; then |
5574 | ac_cv_func_malloc_get_state=yes | |
5575 | else | |
5576 | echo "$as_me: failed program was:" >&5 | |
5577 | cat conftest.$ac_ext >&5 | |
5578 | ac_cv_func_malloc_get_state=no | |
5579 | fi | |
5580 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5581 | fi | |
598a2813 | 5582 | echo "$as_me:5581: result: $ac_cv_func_malloc_get_state" >&5 |
98418dba CW |
5583 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
5584 | if test $ac_cv_func_malloc_get_state = yes; then | |
5585 | : | |
5586 | else | |
5587 | doug_lea_malloc=no | |
5588 | fi | |
5589 | ||
598a2813 | 5590 | echo "$as_me:5589: checking for malloc_set_state" >&5 |
98418dba CW |
5591 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
5592 | if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
5593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5594 | else | |
5595 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 5596 | #line 5590 "configure" |
98418dba CW |
5597 | #include "confdefs.h" |
5598 | /* System header to define __stub macros and hopefully few prototypes, | |
5599 | which can conflict with char malloc_set_state (); below. */ | |
5600 | #include <assert.h> | |
5601 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5602 | #ifdef __cplusplus | |
5603 | extern "C" | |
5604 | #endif | |
5605 | /* We use char because int might match the return type of a gcc2 | |
5606 | builtin and then its argument prototype would still apply. */ | |
5607 | char malloc_set_state (); | |
5608 | char (*f) (); | |
5609 | ||
98418dba CW |
5610 | int |
5611 | main () | |
5612 | { | |
5613 | /* The GNU C library defines this for functions which it implements | |
5614 | to always fail with ENOSYS. Some functions are actually named | |
5615 | something starting with __ and the normal name is an alias. */ | |
5616 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
5617 | choke me | |
5618 | #else | |
5619 | f = malloc_set_state; | |
5620 | #endif | |
5621 | ||
5622 | ; | |
5623 | return 0; | |
5624 | } | |
5625 | _ACEOF | |
5626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 5627 | if { (eval echo "$as_me:5626: \"$ac_link\"") >&5 |
98418dba CW |
5628 | (eval $ac_link) 2>&5 |
5629 | ac_status=$? | |
598a2813 | 5630 | echo "$as_me:5629: \$? = $ac_status" >&5 |
98418dba CW |
5631 | (exit $ac_status); } && |
5632 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 5633 | { (eval echo "$as_me:5632: \"$ac_try\"") >&5 |
98418dba CW |
5634 | (eval $ac_try) 2>&5 |
5635 | ac_status=$? | |
598a2813 | 5636 | echo "$as_me:5635: \$? = $ac_status" >&5 |
98418dba CW |
5637 | (exit $ac_status); }; }; then |
5638 | ac_cv_func_malloc_set_state=yes | |
5639 | else | |
5640 | echo "$as_me: failed program was:" >&5 | |
5641 | cat conftest.$ac_ext >&5 | |
5642 | ac_cv_func_malloc_set_state=no | |
5643 | fi | |
5644 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5645 | fi | |
598a2813 | 5646 | echo "$as_me:5645: result: $ac_cv_func_malloc_set_state" >&5 |
98418dba CW |
5647 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
5648 | if test $ac_cv_func_malloc_set_state = yes; then | |
5649 | : | |
5650 | else | |
5651 | doug_lea_malloc=no | |
5652 | fi | |
5653 | ||
598a2813 | 5654 | echo "$as_me:5653: checking whether __after_morecore_hook exists" >&5 |
98418dba CW |
5655 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
5656 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
5657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5658 | else | |
5659 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 5660 | #line 5654 "configure" |
98418dba CW |
5661 | #include "confdefs.h" |
5662 | extern void (* __after_morecore_hook)(); | |
98418dba CW |
5663 | int |
5664 | main () | |
5665 | { | |
5666 | __after_morecore_hook = 0 | |
5667 | ; | |
5668 | return 0; | |
5669 | } | |
5670 | _ACEOF | |
5671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 5672 | if { (eval echo "$as_me:5671: \"$ac_link\"") >&5 |
98418dba CW |
5673 | (eval $ac_link) 2>&5 |
5674 | ac_status=$? | |
598a2813 | 5675 | echo "$as_me:5674: \$? = $ac_status" >&5 |
98418dba CW |
5676 | (exit $ac_status); } && |
5677 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 5678 | { (eval echo "$as_me:5677: \"$ac_try\"") >&5 |
98418dba CW |
5679 | (eval $ac_try) 2>&5 |
5680 | ac_status=$? | |
598a2813 | 5681 | echo "$as_me:5680: \$? = $ac_status" >&5 |
98418dba CW |
5682 | (exit $ac_status); }; }; then |
5683 | emacs_cv_var___after_morecore_hook=yes | |
5684 | else | |
5685 | echo "$as_me: failed program was:" >&5 | |
5686 | cat conftest.$ac_ext >&5 | |
5687 | emacs_cv_var___after_morecore_hook=no | |
5688 | fi | |
5689 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5690 | fi | |
598a2813 | 5691 | echo "$as_me:5690: result: $emacs_cv_var___after_morecore_hook" >&5 |
98418dba CW |
5692 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
5693 | if test $emacs_cv_var___after_morecore_hook = no; then | |
5694 | doug_lea_malloc=no | |
5695 | fi | |
5696 | if test "${system_malloc}" = "yes"; then | |
5697 | GNU_MALLOC=no | |
5698 | GNU_MALLOC_reason=" | |
5699 | (The GNU allocators don't work with this system configuration.)" | |
5700 | fi | |
5701 | if test "$doug_lea_malloc" = "yes" ; then | |
5702 | if test "$GNU_MALLOC" = yes ; then | |
5703 | GNU_MALLOC_reason=" | |
5704 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
5705 | fi | |
b936fae4 | 5706 | |
925c2f3f | 5707 | cat >>confdefs.h <<\EOF |
98418dba | 5708 | #define DOUG_LEA_MALLOC 1 |
925c2f3f | 5709 | EOF |
98418dba CW |
5710 | |
5711 | fi | |
5712 | ||
5713 | if test x"${REL_ALLOC}" = x; then | |
5714 | REL_ALLOC=${GNU_MALLOC} | |
5715 | fi | |
5716 | ||
925c2f3f | 5717 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
98418dba | 5718 | |
925c2f3f EZ |
5719 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5720 | inttypes.h stdint.h unistd.h | |
98418dba CW |
5721 | do |
5722 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
598a2813 | 5723 | echo "$as_me:5722: checking for $ac_header" >&5 |
98418dba CW |
5724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 5727 | else |
925c2f3f EZ |
5728 | cat >conftest.$ac_ext <<_ACEOF |
5729 | #line 5723 "configure" | |
98418dba CW |
5730 | #include "confdefs.h" |
5731 | $ac_includes_default | |
5732 | #include <$ac_header> | |
5733 | _ACEOF | |
5734 | rm -f conftest.$ac_objext | |
598a2813 | 5735 | if { (eval echo "$as_me:5734: \"$ac_compile\"") >&5 |
98418dba CW |
5736 | (eval $ac_compile) 2>&5 |
5737 | ac_status=$? | |
598a2813 | 5738 | echo "$as_me:5737: \$? = $ac_status" >&5 |
98418dba CW |
5739 | (exit $ac_status); } && |
5740 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 5741 | { (eval echo "$as_me:5740: \"$ac_try\"") >&5 |
98418dba CW |
5742 | (eval $ac_try) 2>&5 |
5743 | ac_status=$? | |
598a2813 | 5744 | echo "$as_me:5743: \$? = $ac_status" >&5 |
98418dba | 5745 | (exit $ac_status); }; }; then |
925c2f3f | 5746 | eval "$as_ac_Header=yes" |
98418dba CW |
5747 | else |
5748 | echo "$as_me: failed program was:" >&5 | |
5749 | cat conftest.$ac_ext >&5 | |
925c2f3f | 5750 | eval "$as_ac_Header=no" |
98418dba CW |
5751 | fi |
5752 | rm -f conftest.$ac_objext conftest.$ac_ext | |
925c2f3f | 5753 | fi |
598a2813 | 5754 | echo "$as_me:5753: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
925c2f3f EZ |
5755 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5756 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5757 | cat >>confdefs.h <<EOF | |
5758 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5759 | EOF | |
98418dba | 5760 | |
925c2f3f EZ |
5761 | fi |
5762 | done | |
5763 | ||
5764 | for ac_header in stdlib.h unistd.h | |
5765 | do | |
5766 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
598a2813 | 5767 | echo "$as_me:5766: checking for $ac_header" >&5 |
925c2f3f EZ |
5768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5771 | else | |
5772 | cat >conftest.$ac_ext <<_ACEOF | |
5773 | #line 5767 "configure" | |
98418dba CW |
5774 | #include "confdefs.h" |
5775 | #include <$ac_header> | |
5776 | _ACEOF | |
598a2813 | 5777 | if { (eval echo "$as_me:5776: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
5778 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5779 | ac_status=$? | |
5780 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5781 | rm -f conftest.er1 | |
5782 | cat conftest.err >&5 | |
598a2813 | 5783 | echo "$as_me:5782: \$? = $ac_status" >&5 |
98418dba CW |
5784 | (exit $ac_status); } >/dev/null; then |
5785 | if test -s conftest.err; then | |
5786 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5787 | else | |
5788 | ac_cpp_err= | |
5789 | fi | |
5790 | else | |
5791 | ac_cpp_err=yes | |
5792 | fi | |
5793 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 5794 | eval "$as_ac_Header=yes" |
98418dba CW |
5795 | else |
5796 | echo "$as_me: failed program was:" >&5 | |
5797 | cat conftest.$ac_ext >&5 | |
925c2f3f | 5798 | eval "$as_ac_Header=no" |
98418dba CW |
5799 | fi |
5800 | rm -f conftest.err conftest.$ac_ext | |
98418dba | 5801 | fi |
598a2813 | 5802 | echo "$as_me:5801: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
98418dba | 5804 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
925c2f3f | 5805 | cat >>confdefs.h <<EOF |
98418dba | 5806 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 5807 | EOF |
98418dba CW |
5808 | |
5809 | fi | |
98418dba CW |
5810 | done |
5811 | ||
98418dba CW |
5812 | for ac_func in getpagesize |
5813 | do | |
5814 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 5815 | echo "$as_me:5814: checking for $ac_func" >&5 |
98418dba CW |
5816 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5817 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5819 | else | |
5820 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 5821 | #line 5815 "configure" |
98418dba CW |
5822 | #include "confdefs.h" |
5823 | /* System header to define __stub macros and hopefully few prototypes, | |
5824 | which can conflict with char $ac_func (); below. */ | |
5825 | #include <assert.h> | |
5826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5827 | #ifdef __cplusplus | |
5828 | extern "C" | |
5829 | #endif | |
5830 | /* We use char because int might match the return type of a gcc2 | |
5831 | builtin and then its argument prototype would still apply. */ | |
5832 | char $ac_func (); | |
5833 | char (*f) (); | |
5834 | ||
98418dba CW |
5835 | int |
5836 | main () | |
5837 | { | |
5838 | /* The GNU C library defines this for functions which it implements | |
5839 | to always fail with ENOSYS. Some functions are actually named | |
5840 | something starting with __ and the normal name is an alias. */ | |
5841 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5842 | choke me | |
5843 | #else | |
5844 | f = $ac_func; | |
5845 | #endif | |
5846 | ||
5847 | ; | |
5848 | return 0; | |
5849 | } | |
5850 | _ACEOF | |
5851 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 5852 | if { (eval echo "$as_me:5851: \"$ac_link\"") >&5 |
98418dba CW |
5853 | (eval $ac_link) 2>&5 |
5854 | ac_status=$? | |
598a2813 | 5855 | echo "$as_me:5854: \$? = $ac_status" >&5 |
98418dba CW |
5856 | (exit $ac_status); } && |
5857 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 5858 | { (eval echo "$as_me:5857: \"$ac_try\"") >&5 |
98418dba CW |
5859 | (eval $ac_try) 2>&5 |
5860 | ac_status=$? | |
598a2813 | 5861 | echo "$as_me:5860: \$? = $ac_status" >&5 |
98418dba CW |
5862 | (exit $ac_status); }; }; then |
5863 | eval "$as_ac_var=yes" | |
5864 | else | |
5865 | echo "$as_me: failed program was:" >&5 | |
5866 | cat conftest.$ac_ext >&5 | |
5867 | eval "$as_ac_var=no" | |
5868 | fi | |
5869 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5870 | fi | |
598a2813 | 5871 | echo "$as_me:5870: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
5872 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5873 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 5874 | cat >>confdefs.h <<EOF |
98418dba | 5875 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 5876 | EOF |
98418dba CW |
5877 | |
5878 | fi | |
5879 | done | |
5880 | ||
598a2813 | 5881 | echo "$as_me:5880: checking for working mmap" >&5 |
98418dba CW |
5882 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
5883 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5885 | else | |
5886 | if test "$cross_compiling" = yes; then | |
5887 | ac_cv_func_mmap_fixed_mapped=no | |
5888 | else | |
5889 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 5890 | #line 5884 "configure" |
98418dba CW |
5891 | #include "confdefs.h" |
5892 | $ac_includes_default | |
98418dba CW |
5893 | /* Thanks to Mike Haertel and Jim Avera for this test. |
5894 | Here is a matrix of mmap possibilities: | |
5895 | mmap private not fixed | |
5896 | mmap private fixed at somewhere currently unmapped | |
5897 | mmap private fixed at somewhere already mapped | |
5898 | mmap shared not fixed | |
5899 | mmap shared fixed at somewhere currently unmapped | |
5900 | mmap shared fixed at somewhere already mapped | |
5901 | For private mappings, we should verify that changes cannot be read() | |
5902 | back from the file, nor mmap's back from the file at a different | |
5903 | address. (There have been systems where private was not correctly | |
5904 | implemented like the infamous i386 svr4.0, and systems where the | |
5905 | VM page cache was not coherent with the file system buffer cache | |
5906 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
5907 | For shared mappings, we should conversely verify that changes get | |
925c2f3f | 5908 | propogated back to all the places they're supposed to be. |
98418dba CW |
5909 | |
5910 | Grep wants private fixed already mapped. | |
5911 | The main things grep needs to know about mmap are: | |
5912 | * does it exist and is it safe to write into the mmap'd area | |
5913 | * how to use it (BSD variants) */ | |
5914 | ||
5915 | #include <fcntl.h> | |
5916 | #include <sys/mman.h> | |
5917 | ||
5918 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
5919 | char *malloc (); | |
5920 | #endif | |
5921 | ||
5922 | /* This mess was copied from the GNU getpagesize.h. */ | |
5923 | #if !HAVE_GETPAGESIZE | |
5924 | /* Assume that all systems that can run configure have sys/param.h. */ | |
5925 | # if !HAVE_SYS_PARAM_H | |
5926 | # define HAVE_SYS_PARAM_H 1 | |
5927 | # endif | |
5928 | ||
5929 | # ifdef _SC_PAGESIZE | |
5930 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5931 | # else /* no _SC_PAGESIZE */ | |
5932 | # if HAVE_SYS_PARAM_H | |
5933 | # include <sys/param.h> | |
5934 | # ifdef EXEC_PAGESIZE | |
5935 | # define getpagesize() EXEC_PAGESIZE | |
5936 | # else /* no EXEC_PAGESIZE */ | |
5937 | # ifdef NBPG | |
5938 | # define getpagesize() NBPG * CLSIZE | |
5939 | # ifndef CLSIZE | |
5940 | # define CLSIZE 1 | |
5941 | # endif /* no CLSIZE */ | |
5942 | # else /* no NBPG */ | |
5943 | # ifdef NBPC | |
5944 | # define getpagesize() NBPC | |
5945 | # else /* no NBPC */ | |
5946 | # ifdef PAGESIZE | |
5947 | # define getpagesize() PAGESIZE | |
5948 | # endif /* PAGESIZE */ | |
5949 | # endif /* no NBPC */ | |
5950 | # endif /* no NBPG */ | |
5951 | # endif /* no EXEC_PAGESIZE */ | |
5952 | # else /* no HAVE_SYS_PARAM_H */ | |
5953 | # define getpagesize() 8192 /* punt totally */ | |
5954 | # endif /* no HAVE_SYS_PARAM_H */ | |
5955 | # endif /* no _SC_PAGESIZE */ | |
5956 | ||
5957 | #endif /* no HAVE_GETPAGESIZE */ | |
5958 | ||
5959 | int | |
5960 | main () | |
5961 | { | |
5962 | char *data, *data2, *data3; | |
5963 | int i, pagesize; | |
5964 | int fd; | |
5965 | ||
5966 | pagesize = getpagesize (); | |
5967 | ||
5968 | /* First, make a file with some known garbage in it. */ | |
5969 | data = (char *) malloc (pagesize); | |
5970 | if (!data) | |
5971 | exit (1); | |
5972 | for (i = 0; i < pagesize; ++i) | |
5973 | *(data + i) = rand (); | |
5974 | umask (0); | |
5975 | fd = creat ("conftest.mmap", 0600); | |
5976 | if (fd < 0) | |
5977 | exit (1); | |
5978 | if (write (fd, data, pagesize) != pagesize) | |
5979 | exit (1); | |
5980 | close (fd); | |
5981 | ||
5982 | /* Next, try to mmap the file at a fixed address which already has | |
5983 | something else allocated at it. If we can, also make sure that | |
5984 | we see the same garbage. */ | |
5985 | fd = open ("conftest.mmap", O_RDWR); | |
5986 | if (fd < 0) | |
5987 | exit (1); | |
5988 | data2 = (char *) malloc (2 * pagesize); | |
5989 | if (!data2) | |
5990 | exit (1); | |
5991 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
5992 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5993 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5994 | exit (1); | |
5995 | for (i = 0; i < pagesize; ++i) | |
5996 | if (*(data + i) != *(data2 + i)) | |
5997 | exit (1); | |
5998 | ||
5999 | /* Finally, make sure that changes to the mapped area do not | |
6000 | percolate back to the file as seen by read(). (This is a bug on | |
6001 | some variants of i386 svr4.0.) */ | |
6002 | for (i = 0; i < pagesize; ++i) | |
6003 | *(data2 + i) = *(data2 + i) + 1; | |
6004 | data3 = (char *) malloc (pagesize); | |
6005 | if (!data3) | |
6006 | exit (1); | |
6007 | if (read (fd, data3, pagesize) != pagesize) | |
6008 | exit (1); | |
6009 | for (i = 0; i < pagesize; ++i) | |
6010 | if (*(data + i) != *(data3 + i)) | |
6011 | exit (1); | |
6012 | close (fd); | |
6013 | exit (0); | |
6014 | } | |
6015 | _ACEOF | |
6016 | rm -f conftest$ac_exeext | |
598a2813 | 6017 | if { (eval echo "$as_me:6016: \"$ac_link\"") >&5 |
98418dba CW |
6018 | (eval $ac_link) 2>&5 |
6019 | ac_status=$? | |
598a2813 | 6020 | echo "$as_me:6019: \$? = $ac_status" >&5 |
98418dba | 6021 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
598a2813 | 6022 | { (eval echo "$as_me:6021: \"$ac_try\"") >&5 |
98418dba CW |
6023 | (eval $ac_try) 2>&5 |
6024 | ac_status=$? | |
598a2813 | 6025 | echo "$as_me:6024: \$? = $ac_status" >&5 |
98418dba CW |
6026 | (exit $ac_status); }; }; then |
6027 | ac_cv_func_mmap_fixed_mapped=yes | |
6028 | else | |
6029 | echo "$as_me: program exited with status $ac_status" >&5 | |
6030 | echo "$as_me: failed program was:" >&5 | |
6031 | cat conftest.$ac_ext >&5 | |
98418dba CW |
6032 | ac_cv_func_mmap_fixed_mapped=no |
6033 | fi | |
6034 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6035 | fi | |
6036 | fi | |
598a2813 | 6037 | echo "$as_me:6036: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
98418dba CW |
6038 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
6039 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6040 | ||
925c2f3f | 6041 | cat >>confdefs.h <<\EOF |
98418dba | 6042 | #define HAVE_MMAP 1 |
925c2f3f | 6043 | EOF |
98418dba CW |
6044 | |
6045 | fi | |
6046 | rm -f conftest.mmap | |
6047 | ||
6048 | if test $use_mmap_for_buffers = yes; then | |
6049 | REL_ALLOC=no | |
6050 | fi | |
6051 | ||
6052 | LIBS="$libsrc_libs $LIBS" | |
6053 | ||
598a2813 | 6054 | echo "$as_me:6053: checking for dnet_ntoa in -ldnet" >&5 |
98418dba CW |
6055 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
6056 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
6057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6058 | else | |
6059 | ac_check_lib_save_LIBS=$LIBS | |
6060 | LIBS="-ldnet $LIBS" | |
6061 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6062 | #line 6056 "configure" |
98418dba CW |
6063 | #include "confdefs.h" |
6064 | ||
6065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6066 | #ifdef __cplusplus | |
6067 | extern "C" | |
6068 | #endif | |
6069 | /* We use char because int might match the return type of a gcc2 | |
6070 | builtin and then its argument prototype would still apply. */ | |
6071 | char dnet_ntoa (); | |
98418dba CW |
6072 | int |
6073 | main () | |
6074 | { | |
6075 | dnet_ntoa (); | |
6076 | ; | |
6077 | return 0; | |
6078 | } | |
6079 | _ACEOF | |
6080 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6081 | if { (eval echo "$as_me:6080: \"$ac_link\"") >&5 |
98418dba CW |
6082 | (eval $ac_link) 2>&5 |
6083 | ac_status=$? | |
598a2813 | 6084 | echo "$as_me:6083: \$? = $ac_status" >&5 |
98418dba CW |
6085 | (exit $ac_status); } && |
6086 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6087 | { (eval echo "$as_me:6086: \"$ac_try\"") >&5 |
98418dba CW |
6088 | (eval $ac_try) 2>&5 |
6089 | ac_status=$? | |
598a2813 | 6090 | echo "$as_me:6089: \$? = $ac_status" >&5 |
98418dba CW |
6091 | (exit $ac_status); }; }; then |
6092 | ac_cv_lib_dnet_dnet_ntoa=yes | |
6093 | else | |
6094 | echo "$as_me: failed program was:" >&5 | |
6095 | cat conftest.$ac_ext >&5 | |
6096 | ac_cv_lib_dnet_dnet_ntoa=no | |
6097 | fi | |
6098 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6099 | LIBS=$ac_check_lib_save_LIBS | |
6100 | fi | |
598a2813 | 6101 | echo "$as_me:6100: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
98418dba CW |
6102 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
6103 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
925c2f3f | 6104 | cat >>confdefs.h <<EOF |
98418dba | 6105 | #define HAVE_LIBDNET 1 |
925c2f3f | 6106 | EOF |
98418dba CW |
6107 | |
6108 | LIBS="-ldnet $LIBS" | |
6109 | ||
6110 | fi | |
6111 | ||
598a2813 | 6112 | echo "$as_me:6111: checking for main in -lXbsd" >&5 |
98418dba CW |
6113 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
6114 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
6115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6116 | else | |
6117 | ac_check_lib_save_LIBS=$LIBS | |
6118 | LIBS="-lXbsd $LIBS" | |
6119 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6120 | #line 6114 "configure" |
98418dba CW |
6121 | #include "confdefs.h" |
6122 | ||
98418dba CW |
6123 | int |
6124 | main () | |
6125 | { | |
6126 | main (); | |
6127 | ; | |
6128 | return 0; | |
6129 | } | |
6130 | _ACEOF | |
6131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6132 | if { (eval echo "$as_me:6131: \"$ac_link\"") >&5 |
98418dba CW |
6133 | (eval $ac_link) 2>&5 |
6134 | ac_status=$? | |
598a2813 | 6135 | echo "$as_me:6134: \$? = $ac_status" >&5 |
98418dba CW |
6136 | (exit $ac_status); } && |
6137 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6138 | { (eval echo "$as_me:6137: \"$ac_try\"") >&5 |
98418dba CW |
6139 | (eval $ac_try) 2>&5 |
6140 | ac_status=$? | |
598a2813 | 6141 | echo "$as_me:6140: \$? = $ac_status" >&5 |
98418dba CW |
6142 | (exit $ac_status); }; }; then |
6143 | ac_cv_lib_Xbsd_main=yes | |
6144 | else | |
6145 | echo "$as_me: failed program was:" >&5 | |
6146 | cat conftest.$ac_ext >&5 | |
6147 | ac_cv_lib_Xbsd_main=no | |
6148 | fi | |
6149 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6150 | LIBS=$ac_check_lib_save_LIBS | |
6151 | fi | |
598a2813 | 6152 | echo "$as_me:6151: result: $ac_cv_lib_Xbsd_main" >&5 |
98418dba CW |
6153 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
6154 | if test $ac_cv_lib_Xbsd_main = yes; then | |
6155 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
6156 | fi | |
6157 | ||
598a2813 | 6158 | echo "$as_me:6157: checking for cma_open in -lpthreads" >&5 |
98418dba CW |
6159 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
6160 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
6161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6162 | else | |
6163 | ac_check_lib_save_LIBS=$LIBS | |
6164 | LIBS="-lpthreads $LIBS" | |
6165 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6166 | #line 6160 "configure" |
98418dba CW |
6167 | #include "confdefs.h" |
6168 | ||
6169 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6170 | #ifdef __cplusplus | |
6171 | extern "C" | |
6172 | #endif | |
6173 | /* We use char because int might match the return type of a gcc2 | |
6174 | builtin and then its argument prototype would still apply. */ | |
6175 | char cma_open (); | |
98418dba CW |
6176 | int |
6177 | main () | |
6178 | { | |
6179 | cma_open (); | |
6180 | ; | |
6181 | return 0; | |
6182 | } | |
6183 | _ACEOF | |
6184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6185 | if { (eval echo "$as_me:6184: \"$ac_link\"") >&5 |
98418dba CW |
6186 | (eval $ac_link) 2>&5 |
6187 | ac_status=$? | |
598a2813 | 6188 | echo "$as_me:6187: \$? = $ac_status" >&5 |
98418dba CW |
6189 | (exit $ac_status); } && |
6190 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6191 | { (eval echo "$as_me:6190: \"$ac_try\"") >&5 |
98418dba CW |
6192 | (eval $ac_try) 2>&5 |
6193 | ac_status=$? | |
598a2813 | 6194 | echo "$as_me:6193: \$? = $ac_status" >&5 |
98418dba CW |
6195 | (exit $ac_status); }; }; then |
6196 | ac_cv_lib_pthreads_cma_open=yes | |
6197 | else | |
6198 | echo "$as_me: failed program was:" >&5 | |
6199 | cat conftest.$ac_ext >&5 | |
6200 | ac_cv_lib_pthreads_cma_open=no | |
6201 | fi | |
6202 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6203 | LIBS=$ac_check_lib_save_LIBS | |
6204 | fi | |
598a2813 | 6205 | echo "$as_me:6204: result: $ac_cv_lib_pthreads_cma_open" >&5 |
98418dba CW |
6206 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
6207 | if test $ac_cv_lib_pthreads_cma_open = yes; then | |
925c2f3f | 6208 | cat >>confdefs.h <<EOF |
98418dba | 6209 | #define HAVE_LIBPTHREADS 1 |
925c2f3f | 6210 | EOF |
98418dba CW |
6211 | |
6212 | LIBS="-lpthreads $LIBS" | |
6213 | ||
6214 | fi | |
6215 | ||
598a2813 | 6216 | echo "$as_me:6215: checking for XFree86 in /usr/X386" >&5 |
98418dba CW |
6217 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
6218 | if test -d /usr/X386/include; then | |
6219 | HAVE_XFREE386=yes | |
6220 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
6221 | else | |
6222 | HAVE_XFREE386=no | |
6223 | fi | |
598a2813 | 6224 | echo "$as_me:6223: result: $HAVE_XFREE386" >&5 |
98418dba CW |
6225 | echo "${ECHO_T}$HAVE_XFREE386" >&6 |
6226 | ||
6227 | # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
6228 | # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
6229 | ||
6230 | REAL_CPPFLAGS="$CPPFLAGS" | |
6231 | ||
6232 | if test "${HAVE_X11}" = "yes"; then | |
6233 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
6234 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
6235 | LIBS="$LIBX $LIBS" | |
6236 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
6237 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
6238 | ||
6239 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
6240 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
6241 | # but it's more convenient here to set LD_RUN_PATH | |
6242 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
6243 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
6244 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
6245 | export LD_RUN_PATH | |
6246 | fi | |
6247 | ||
6248 | if test "${opsys}" = "gnu-linux"; then | |
598a2813 | 6249 | echo "$as_me:6248: checking whether X on GNU/Linux needs -b to link" >&5 |
98418dba CW |
6250 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
6251 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6252 | #line 6246 "configure" |
98418dba CW |
6253 | #include "confdefs.h" |
6254 | ||
98418dba CW |
6255 | int |
6256 | main () | |
6257 | { | |
6258 | XOpenDisplay ("foo"); | |
6259 | ; | |
6260 | return 0; | |
6261 | } | |
6262 | _ACEOF | |
6263 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6264 | if { (eval echo "$as_me:6263: \"$ac_link\"") >&5 |
98418dba CW |
6265 | (eval $ac_link) 2>&5 |
6266 | ac_status=$? | |
598a2813 | 6267 | echo "$as_me:6266: \$? = $ac_status" >&5 |
98418dba CW |
6268 | (exit $ac_status); } && |
6269 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6270 | { (eval echo "$as_me:6269: \"$ac_try\"") >&5 |
98418dba CW |
6271 | (eval $ac_try) 2>&5 |
6272 | ac_status=$? | |
598a2813 | 6273 | echo "$as_me:6272: \$? = $ac_status" >&5 |
98418dba CW |
6274 | (exit $ac_status); }; }; then |
6275 | xlinux_first_failure=no | |
6276 | else | |
6277 | echo "$as_me: failed program was:" >&5 | |
6278 | cat conftest.$ac_ext >&5 | |
6279 | xlinux_first_failure=yes | |
6280 | fi | |
6281 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6282 | if test "${xlinux_first_failure}" = "yes"; then | |
6283 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
6284 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
6285 | OLD_CPPFLAGS="$CPPFLAGS" | |
6286 | OLD_LIBS="$LIBS" | |
6287 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
6288 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
6289 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
6290 | LIBS="$LIBS -b i486-linuxaout" | |
6291 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6292 | #line 6286 "configure" |
98418dba CW |
6293 | #include "confdefs.h" |
6294 | ||
98418dba CW |
6295 | int |
6296 | main () | |
6297 | { | |
6298 | XOpenDisplay ("foo"); | |
6299 | ; | |
6300 | return 0; | |
6301 | } | |
6302 | _ACEOF | |
6303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6304 | if { (eval echo "$as_me:6303: \"$ac_link\"") >&5 |
98418dba CW |
6305 | (eval $ac_link) 2>&5 |
6306 | ac_status=$? | |
598a2813 | 6307 | echo "$as_me:6306: \$? = $ac_status" >&5 |
98418dba CW |
6308 | (exit $ac_status); } && |
6309 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6310 | { (eval echo "$as_me:6309: \"$ac_try\"") >&5 |
98418dba CW |
6311 | (eval $ac_try) 2>&5 |
6312 | ac_status=$? | |
598a2813 | 6313 | echo "$as_me:6312: \$? = $ac_status" >&5 |
98418dba CW |
6314 | (exit $ac_status); }; }; then |
6315 | xlinux_second_failure=no | |
6316 | else | |
6317 | echo "$as_me: failed program was:" >&5 | |
6318 | cat conftest.$ac_ext >&5 | |
6319 | xlinux_second_failure=yes | |
6320 | fi | |
6321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6322 | if test "${xlinux_second_failure}" = "yes"; then | |
6323 | # If we get the same failure with -b, there is no use adding -b. | |
6324 | # So take it out. This plays safe. | |
6325 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
6326 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
6327 | CPPFLAGS="$OLD_CPPFLAGS" | |
6328 | LIBS="$OLD_LIBS" | |
598a2813 | 6329 | echo "$as_me:6328: result: no" >&5 |
98418dba CW |
6330 | echo "${ECHO_T}no" >&6 |
6331 | else | |
598a2813 | 6332 | echo "$as_me:6331: result: yes" >&5 |
98418dba CW |
6333 | echo "${ECHO_T}yes" >&6 |
6334 | fi | |
6335 | else | |
598a2813 | 6336 | echo "$as_me:6335: result: no" >&5 |
98418dba CW |
6337 | echo "${ECHO_T}no" >&6 |
6338 | fi | |
6339 | fi | |
6340 | ||
6341 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
6342 | # header files included from there. | |
598a2813 | 6343 | echo "$as_me:6342: checking for Xkb" >&5 |
98418dba CW |
6344 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
6345 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6346 | #line 6340 "configure" |
98418dba CW |
6347 | #include "confdefs.h" |
6348 | #include <X11/Xlib.h> | |
6349 | #include <X11/XKBlib.h> | |
98418dba CW |
6350 | int |
6351 | main () | |
6352 | { | |
6353 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
6354 | ; | |
6355 | return 0; | |
6356 | } | |
6357 | _ACEOF | |
6358 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6359 | if { (eval echo "$as_me:6358: \"$ac_link\"") >&5 |
98418dba CW |
6360 | (eval $ac_link) 2>&5 |
6361 | ac_status=$? | |
598a2813 | 6362 | echo "$as_me:6361: \$? = $ac_status" >&5 |
98418dba CW |
6363 | (exit $ac_status); } && |
6364 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6365 | { (eval echo "$as_me:6364: \"$ac_try\"") >&5 |
98418dba CW |
6366 | (eval $ac_try) 2>&5 |
6367 | ac_status=$? | |
598a2813 | 6368 | echo "$as_me:6367: \$? = $ac_status" >&5 |
98418dba CW |
6369 | (exit $ac_status); }; }; then |
6370 | emacs_xkb=yes | |
6371 | else | |
6372 | echo "$as_me: failed program was:" >&5 | |
6373 | cat conftest.$ac_ext >&5 | |
6374 | emacs_xkb=no | |
6375 | fi | |
6376 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
598a2813 | 6377 | echo "$as_me:6376: result: $emacs_xkb" >&5 |
98418dba CW |
6378 | echo "${ECHO_T}$emacs_xkb" >&6 |
6379 | if test $emacs_xkb = yes; then | |
b936fae4 | 6380 | |
925c2f3f | 6381 | cat >>confdefs.h <<\EOF |
98418dba | 6382 | #define HAVE_XKBGETKEYBOARD 1 |
925c2f3f | 6383 | EOF |
98418dba CW |
6384 | |
6385 | fi | |
6386 | ||
98418dba CW |
6387 | for ac_func in XrmSetDatabase XScreenResourceString \ |
6388 | XScreenNumberOfScreen XSetWMProtocols | |
6389 | do | |
6390 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 6391 | echo "$as_me:6390: checking for $ac_func" >&5 |
98418dba CW |
6392 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6393 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6395 | else | |
6396 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6397 | #line 6391 "configure" |
98418dba CW |
6398 | #include "confdefs.h" |
6399 | /* System header to define __stub macros and hopefully few prototypes, | |
6400 | which can conflict with char $ac_func (); below. */ | |
6401 | #include <assert.h> | |
6402 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6403 | #ifdef __cplusplus | |
6404 | extern "C" | |
6405 | #endif | |
6406 | /* We use char because int might match the return type of a gcc2 | |
6407 | builtin and then its argument prototype would still apply. */ | |
6408 | char $ac_func (); | |
6409 | char (*f) (); | |
6410 | ||
98418dba CW |
6411 | int |
6412 | main () | |
6413 | { | |
6414 | /* The GNU C library defines this for functions which it implements | |
6415 | to always fail with ENOSYS. Some functions are actually named | |
6416 | something starting with __ and the normal name is an alias. */ | |
6417 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6418 | choke me | |
6419 | #else | |
6420 | f = $ac_func; | |
6421 | #endif | |
6422 | ||
6423 | ; | |
6424 | return 0; | |
6425 | } | |
6426 | _ACEOF | |
6427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6428 | if { (eval echo "$as_me:6427: \"$ac_link\"") >&5 |
98418dba CW |
6429 | (eval $ac_link) 2>&5 |
6430 | ac_status=$? | |
598a2813 | 6431 | echo "$as_me:6430: \$? = $ac_status" >&5 |
98418dba CW |
6432 | (exit $ac_status); } && |
6433 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6434 | { (eval echo "$as_me:6433: \"$ac_try\"") >&5 |
98418dba CW |
6435 | (eval $ac_try) 2>&5 |
6436 | ac_status=$? | |
598a2813 | 6437 | echo "$as_me:6436: \$? = $ac_status" >&5 |
98418dba CW |
6438 | (exit $ac_status); }; }; then |
6439 | eval "$as_ac_var=yes" | |
6440 | else | |
6441 | echo "$as_me: failed program was:" >&5 | |
6442 | cat conftest.$ac_ext >&5 | |
6443 | eval "$as_ac_var=no" | |
6444 | fi | |
6445 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6446 | fi | |
598a2813 | 6447 | echo "$as_me:6446: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
6448 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6449 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 6450 | cat >>confdefs.h <<EOF |
98418dba | 6451 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 6452 | EOF |
98418dba CW |
6453 | |
6454 | fi | |
6455 | done | |
6456 | ||
6457 | fi | |
6458 | ||
6459 | if test "${window_system}" = "x11"; then | |
598a2813 | 6460 | echo "$as_me:6459: checking X11 version 6" >&5 |
98418dba CW |
6461 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
6462 | if test "${emacs_cv_x11_version_6+set}" = set; then | |
6463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6464 | else | |
6465 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6466 | #line 6460 "configure" |
98418dba CW |
6467 | #include "confdefs.h" |
6468 | #include <X11/Xlib.h> | |
98418dba CW |
6469 | int |
6470 | main () | |
6471 | { | |
6472 | #if XlibSpecificationRelease < 6 | |
6473 | fail; | |
6474 | #endif | |
6475 | ||
6476 | ; | |
6477 | return 0; | |
6478 | } | |
6479 | _ACEOF | |
6480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6481 | if { (eval echo "$as_me:6480: \"$ac_link\"") >&5 |
98418dba CW |
6482 | (eval $ac_link) 2>&5 |
6483 | ac_status=$? | |
598a2813 | 6484 | echo "$as_me:6483: \$? = $ac_status" >&5 |
98418dba CW |
6485 | (exit $ac_status); } && |
6486 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6487 | { (eval echo "$as_me:6486: \"$ac_try\"") >&5 |
98418dba CW |
6488 | (eval $ac_try) 2>&5 |
6489 | ac_status=$? | |
598a2813 | 6490 | echo "$as_me:6489: \$? = $ac_status" >&5 |
98418dba CW |
6491 | (exit $ac_status); }; }; then |
6492 | emacs_cv_x11_version_6=yes | |
6493 | else | |
6494 | echo "$as_me: failed program was:" >&5 | |
6495 | cat conftest.$ac_ext >&5 | |
6496 | emacs_cv_x11_version_6=no | |
6497 | fi | |
6498 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6499 | fi | |
6500 | ||
6501 | if test $emacs_cv_x11_version_6 = yes; then | |
598a2813 | 6502 | echo "$as_me:6501: result: 6 or newer" >&5 |
98418dba | 6503 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 6504 | |
925c2f3f | 6505 | cat >>confdefs.h <<\EOF |
98418dba | 6506 | #define HAVE_X11R6 1 |
925c2f3f | 6507 | EOF |
98418dba CW |
6508 | |
6509 | else | |
598a2813 | 6510 | echo "$as_me:6509: result: before 6" >&5 |
98418dba CW |
6511 | echo "${ECHO_T}before 6" >&6 |
6512 | fi | |
6513 | fi | |
6514 | ||
6515 | if test "${window_system}" = "x11"; then | |
598a2813 | 6516 | echo "$as_me:6515: checking X11 version 5" >&5 |
98418dba CW |
6517 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
6518 | if test "${emacs_cv_x11_version_5+set}" = set; then | |
6519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6520 | else | |
6521 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6522 | #line 6516 "configure" |
98418dba CW |
6523 | #include "confdefs.h" |
6524 | #include <X11/Xlib.h> | |
98418dba CW |
6525 | int |
6526 | main () | |
6527 | { | |
6528 | #if XlibSpecificationRelease < 5 | |
6529 | fail; | |
6530 | #endif | |
6531 | ||
6532 | ; | |
6533 | return 0; | |
6534 | } | |
6535 | _ACEOF | |
6536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6537 | if { (eval echo "$as_me:6536: \"$ac_link\"") >&5 |
98418dba CW |
6538 | (eval $ac_link) 2>&5 |
6539 | ac_status=$? | |
598a2813 | 6540 | echo "$as_me:6539: \$? = $ac_status" >&5 |
98418dba CW |
6541 | (exit $ac_status); } && |
6542 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6543 | { (eval echo "$as_me:6542: \"$ac_try\"") >&5 |
98418dba CW |
6544 | (eval $ac_try) 2>&5 |
6545 | ac_status=$? | |
598a2813 | 6546 | echo "$as_me:6545: \$? = $ac_status" >&5 |
98418dba CW |
6547 | (exit $ac_status); }; }; then |
6548 | emacs_cv_x11_version_5=yes | |
6549 | else | |
6550 | echo "$as_me: failed program was:" >&5 | |
6551 | cat conftest.$ac_ext >&5 | |
6552 | emacs_cv_x11_version_5=no | |
6553 | fi | |
6554 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6555 | fi | |
6556 | ||
6557 | if test $emacs_cv_x11_version_5 = yes; then | |
598a2813 | 6558 | echo "$as_me:6557: result: 5 or newer" >&5 |
98418dba CW |
6559 | echo "${ECHO_T}5 or newer" >&6 |
6560 | HAVE_X11R5=yes | |
b936fae4 | 6561 | |
925c2f3f | 6562 | cat >>confdefs.h <<\EOF |
98418dba | 6563 | #define HAVE_X11R5 1 |
925c2f3f | 6564 | EOF |
98418dba CW |
6565 | |
6566 | else | |
6567 | HAVE_X11R5=no | |
598a2813 | 6568 | echo "$as_me:6567: result: before 5" >&5 |
98418dba CW |
6569 | echo "${ECHO_T}before 5" >&6 |
6570 | fi | |
6571 | fi | |
6572 | ||
6573 | if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
6574 | if test x"${HAVE_X11R5}" = xyes; then | |
598a2813 | 6575 | echo "$as_me:6574: checking X11 version 5 with Xaw" >&5 |
98418dba CW |
6576 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
6577 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
6578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6579 | else | |
6580 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6581 | #line 6575 "configure" |
98418dba CW |
6582 | #include "confdefs.h" |
6583 | ||
6584 | #include <X11/Intrinsic.h> | |
6585 | #include <X11/Xaw/Simple.h> | |
98418dba CW |
6586 | int |
6587 | main () | |
6588 | { | |
6589 | ||
6590 | ; | |
6591 | return 0; | |
6592 | } | |
6593 | _ACEOF | |
6594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6595 | if { (eval echo "$as_me:6594: \"$ac_link\"") >&5 |
98418dba CW |
6596 | (eval $ac_link) 2>&5 |
6597 | ac_status=$? | |
598a2813 | 6598 | echo "$as_me:6597: \$? = $ac_status" >&5 |
98418dba CW |
6599 | (exit $ac_status); } && |
6600 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6601 | { (eval echo "$as_me:6600: \"$ac_try\"") >&5 |
98418dba CW |
6602 | (eval $ac_try) 2>&5 |
6603 | ac_status=$? | |
598a2813 | 6604 | echo "$as_me:6603: \$? = $ac_status" >&5 |
98418dba CW |
6605 | (exit $ac_status); }; }; then |
6606 | emacs_cv_x11_version_5_with_xaw=yes | |
6607 | else | |
6608 | echo "$as_me: failed program was:" >&5 | |
6609 | cat conftest.$ac_ext >&5 | |
6610 | emacs_cv_x11_version_5_with_xaw=no | |
6611 | fi | |
6612 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6613 | fi | |
6614 | ||
6615 | if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
598a2813 | 6616 | echo "$as_me:6615: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
98418dba CW |
6617 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
6618 | USE_X_TOOLKIT=LUCID | |
6619 | else | |
598a2813 | 6620 | echo "$as_me:6619: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
98418dba CW |
6621 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
6622 | USE_X_TOOLKIT=none | |
6623 | fi | |
6624 | else | |
6625 | USE_X_TOOLKIT=none | |
6626 | fi | |
6627 | fi | |
6628 | ||
6629 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
6630 | ||
6631 | if test "${USE_X_TOOLKIT}" != "none"; then | |
598a2813 | 6632 | echo "$as_me:6631: checking X11 toolkit version" >&5 |
98418dba CW |
6633 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
6634 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
6635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6636 | else | |
6637 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6638 | #line 6632 "configure" |
98418dba CW |
6639 | #include "confdefs.h" |
6640 | #include <X11/Intrinsic.h> | |
98418dba CW |
6641 | int |
6642 | main () | |
6643 | { | |
6644 | #if XtSpecificationRelease < 6 | |
6645 | fail; | |
6646 | #endif | |
6647 | ||
6648 | ; | |
6649 | return 0; | |
6650 | } | |
6651 | _ACEOF | |
6652 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6653 | if { (eval echo "$as_me:6652: \"$ac_link\"") >&5 |
98418dba CW |
6654 | (eval $ac_link) 2>&5 |
6655 | ac_status=$? | |
598a2813 | 6656 | echo "$as_me:6655: \$? = $ac_status" >&5 |
98418dba CW |
6657 | (exit $ac_status); } && |
6658 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6659 | { (eval echo "$as_me:6658: \"$ac_try\"") >&5 |
98418dba CW |
6660 | (eval $ac_try) 2>&5 |
6661 | ac_status=$? | |
598a2813 | 6662 | echo "$as_me:6661: \$? = $ac_status" >&5 |
98418dba CW |
6663 | (exit $ac_status); }; }; then |
6664 | emacs_cv_x11_toolkit_version_6=yes | |
6665 | else | |
6666 | echo "$as_me: failed program was:" >&5 | |
6667 | cat conftest.$ac_ext >&5 | |
6668 | emacs_cv_x11_toolkit_version_6=no | |
6669 | fi | |
6670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6671 | fi | |
6672 | ||
6673 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
6674 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
598a2813 | 6675 | echo "$as_me:6674: result: 6 or newer" >&5 |
98418dba | 6676 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 6677 | |
925c2f3f | 6678 | cat >>confdefs.h <<\EOF |
98418dba | 6679 | #define HAVE_X11XTR6 1 |
925c2f3f | 6680 | EOF |
98418dba CW |
6681 | |
6682 | else | |
598a2813 | 6683 | echo "$as_me:6682: result: before 6" >&5 |
98418dba CW |
6684 | echo "${ECHO_T}before 6" >&6 |
6685 | fi | |
6686 | ||
6687 | OLDLIBS="$LIBS" | |
6688 | if test x$HAVE_X11XTR6 = xyes; then | |
6689 | LIBS="-lXt -lSM -lICE $LIBS" | |
6690 | else | |
6691 | LIBS="-lXt $LIBS" | |
6692 | fi | |
6693 | ||
598a2813 | 6694 | echo "$as_me:6693: checking for XmuConvertStandardSelection in -lXmu" >&5 |
98418dba CW |
6695 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
6696 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
6697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6698 | else | |
6699 | ac_check_lib_save_LIBS=$LIBS | |
6700 | LIBS="-lXmu $LIBS" | |
6701 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6702 | #line 6696 "configure" |
98418dba CW |
6703 | #include "confdefs.h" |
6704 | ||
6705 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6706 | #ifdef __cplusplus | |
6707 | extern "C" | |
6708 | #endif | |
6709 | /* We use char because int might match the return type of a gcc2 | |
6710 | builtin and then its argument prototype would still apply. */ | |
6711 | char XmuConvertStandardSelection (); | |
98418dba CW |
6712 | int |
6713 | main () | |
6714 | { | |
6715 | XmuConvertStandardSelection (); | |
6716 | ; | |
6717 | return 0; | |
6718 | } | |
6719 | _ACEOF | |
6720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6721 | if { (eval echo "$as_me:6720: \"$ac_link\"") >&5 |
98418dba CW |
6722 | (eval $ac_link) 2>&5 |
6723 | ac_status=$? | |
598a2813 | 6724 | echo "$as_me:6723: \$? = $ac_status" >&5 |
98418dba CW |
6725 | (exit $ac_status); } && |
6726 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6727 | { (eval echo "$as_me:6726: \"$ac_try\"") >&5 |
98418dba CW |
6728 | (eval $ac_try) 2>&5 |
6729 | ac_status=$? | |
598a2813 | 6730 | echo "$as_me:6729: \$? = $ac_status" >&5 |
98418dba CW |
6731 | (exit $ac_status); }; }; then |
6732 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
6733 | else | |
6734 | echo "$as_me: failed program was:" >&5 | |
6735 | cat conftest.$ac_ext >&5 | |
6736 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
6737 | fi | |
6738 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6739 | LIBS=$ac_check_lib_save_LIBS | |
6740 | fi | |
598a2813 | 6741 | echo "$as_me:6740: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
98418dba CW |
6742 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
6743 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
925c2f3f | 6744 | cat >>confdefs.h <<EOF |
98418dba | 6745 | #define HAVE_LIBXMU 1 |
925c2f3f | 6746 | EOF |
98418dba CW |
6747 | |
6748 | LIBS="-lXmu $LIBS" | |
6749 | ||
6750 | fi | |
6751 | ||
6752 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
6753 | fi | |
6754 | ||
6755 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
6756 | if test "${HAVE_X11}" = "yes"; then | |
6757 | if test "${USE_X_TOOLKIT}" != "none"; then | |
6758 | ||
598a2813 | 6759 | echo "$as_me:6758: checking for XShapeQueryExtension in -lXext" >&5 |
98418dba CW |
6760 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
6761 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
6762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6763 | else | |
6764 | ac_check_lib_save_LIBS=$LIBS | |
6765 | LIBS="-lXext $LIBS" | |
6766 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6767 | #line 6761 "configure" |
98418dba CW |
6768 | #include "confdefs.h" |
6769 | ||
6770 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6771 | #ifdef __cplusplus | |
6772 | extern "C" | |
6773 | #endif | |
6774 | /* We use char because int might match the return type of a gcc2 | |
6775 | builtin and then its argument prototype would still apply. */ | |
6776 | char XShapeQueryExtension (); | |
98418dba CW |
6777 | int |
6778 | main () | |
6779 | { | |
6780 | XShapeQueryExtension (); | |
6781 | ; | |
6782 | return 0; | |
6783 | } | |
6784 | _ACEOF | |
6785 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6786 | if { (eval echo "$as_me:6785: \"$ac_link\"") >&5 |
98418dba CW |
6787 | (eval $ac_link) 2>&5 |
6788 | ac_status=$? | |
598a2813 | 6789 | echo "$as_me:6788: \$? = $ac_status" >&5 |
98418dba CW |
6790 | (exit $ac_status); } && |
6791 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6792 | { (eval echo "$as_me:6791: \"$ac_try\"") >&5 |
98418dba CW |
6793 | (eval $ac_try) 2>&5 |
6794 | ac_status=$? | |
598a2813 | 6795 | echo "$as_me:6794: \$? = $ac_status" >&5 |
98418dba CW |
6796 | (exit $ac_status); }; }; then |
6797 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
6798 | else | |
6799 | echo "$as_me: failed program was:" >&5 | |
6800 | cat conftest.$ac_ext >&5 | |
6801 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
6802 | fi | |
6803 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6804 | LIBS=$ac_check_lib_save_LIBS | |
6805 | fi | |
598a2813 | 6806 | echo "$as_me:6805: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
98418dba CW |
6807 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
6808 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
925c2f3f | 6809 | cat >>confdefs.h <<EOF |
98418dba | 6810 | #define HAVE_LIBXEXT 1 |
925c2f3f | 6811 | EOF |
98418dba CW |
6812 | |
6813 | LIBS="-lXext $LIBS" | |
6814 | ||
6815 | fi | |
6816 | ||
6817 | fi | |
6818 | fi | |
6819 | ||
6820 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
598a2813 | 6821 | echo "$as_me:6820: checking for Motif version 2.1" >&5 |
98418dba CW |
6822 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
6823 | if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
6824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6825 | else | |
6826 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6827 | #line 6821 "configure" |
98418dba CW |
6828 | #include "confdefs.h" |
6829 | #include <Xm/Xm.h> | |
98418dba CW |
6830 | int |
6831 | main () | |
6832 | { | |
6833 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
6834 | int x = 5; | |
6835 | #else | |
6836 | Motif version prior to 2.1. | |
6837 | #endif | |
6838 | ; | |
6839 | return 0; | |
6840 | } | |
6841 | _ACEOF | |
6842 | rm -f conftest.$ac_objext | |
598a2813 | 6843 | if { (eval echo "$as_me:6842: \"$ac_compile\"") >&5 |
98418dba CW |
6844 | (eval $ac_compile) 2>&5 |
6845 | ac_status=$? | |
598a2813 | 6846 | echo "$as_me:6845: \$? = $ac_status" >&5 |
98418dba CW |
6847 | (exit $ac_status); } && |
6848 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 6849 | { (eval echo "$as_me:6848: \"$ac_try\"") >&5 |
98418dba CW |
6850 | (eval $ac_try) 2>&5 |
6851 | ac_status=$? | |
598a2813 | 6852 | echo "$as_me:6851: \$? = $ac_status" >&5 |
98418dba CW |
6853 | (exit $ac_status); }; }; then |
6854 | emacs_cv_motif_version_2_1=yes | |
6855 | else | |
6856 | echo "$as_me: failed program was:" >&5 | |
6857 | cat conftest.$ac_ext >&5 | |
6858 | emacs_cv_motif_version_2_1=no | |
6859 | fi | |
6860 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6861 | fi | |
598a2813 | 6862 | echo "$as_me:6861: result: $emacs_cv_motif_version_2_1" >&5 |
98418dba CW |
6863 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
6864 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
6865 | if test $emacs_cv_motif_version_2_1 = yes; then | |
6866 | HAVE_LIBXP=no | |
b936fae4 | 6867 | |
925c2f3f | 6868 | cat >>confdefs.h <<\EOF |
98418dba | 6869 | #define HAVE_MOTIF_2_1 1 |
925c2f3f | 6870 | EOF |
98418dba | 6871 | |
598a2813 | 6872 | echo "$as_me:6871: checking for XpCreateContext in -lXp" >&5 |
98418dba CW |
6873 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
6874 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
6875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6876 | else | |
6877 | ac_check_lib_save_LIBS=$LIBS | |
6878 | LIBS="-lXp $LIBS" | |
6879 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6880 | #line 6874 "configure" |
98418dba CW |
6881 | #include "confdefs.h" |
6882 | ||
6883 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6884 | #ifdef __cplusplus | |
6885 | extern "C" | |
6886 | #endif | |
6887 | /* We use char because int might match the return type of a gcc2 | |
6888 | builtin and then its argument prototype would still apply. */ | |
6889 | char XpCreateContext (); | |
98418dba CW |
6890 | int |
6891 | main () | |
6892 | { | |
6893 | XpCreateContext (); | |
6894 | ; | |
6895 | return 0; | |
6896 | } | |
6897 | _ACEOF | |
6898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 6899 | if { (eval echo "$as_me:6898: \"$ac_link\"") >&5 |
98418dba CW |
6900 | (eval $ac_link) 2>&5 |
6901 | ac_status=$? | |
598a2813 | 6902 | echo "$as_me:6901: \$? = $ac_status" >&5 |
98418dba CW |
6903 | (exit $ac_status); } && |
6904 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 6905 | { (eval echo "$as_me:6904: \"$ac_try\"") >&5 |
98418dba CW |
6906 | (eval $ac_try) 2>&5 |
6907 | ac_status=$? | |
598a2813 | 6908 | echo "$as_me:6907: \$? = $ac_status" >&5 |
98418dba CW |
6909 | (exit $ac_status); }; }; then |
6910 | ac_cv_lib_Xp_XpCreateContext=yes | |
6911 | else | |
6912 | echo "$as_me: failed program was:" >&5 | |
6913 | cat conftest.$ac_ext >&5 | |
6914 | ac_cv_lib_Xp_XpCreateContext=no | |
6915 | fi | |
6916 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6917 | LIBS=$ac_check_lib_save_LIBS | |
6918 | fi | |
598a2813 | 6919 | echo "$as_me:6918: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
98418dba CW |
6920 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
6921 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
6922 | HAVE_LIBXP=yes | |
6923 | fi | |
503d2be0 | 6924 | |
98418dba | 6925 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 6926 | |
925c2f3f | 6927 | cat >>confdefs.h <<\EOF |
98418dba | 6928 | #define HAVE_LIBXP 1 |
925c2f3f | 6929 | EOF |
503d2be0 | 6930 | |
98418dba CW |
6931 | fi |
6932 | fi | |
6933 | fi | |
6934 | ||
6935 | ### Is -lXaw3d available? | |
6936 | HAVE_XAW3D=no | |
6937 | if test "${HAVE_X11}" = "yes"; then | |
6938 | if test "${USE_X_TOOLKIT}" != "none"; then | |
598a2813 | 6939 | echo "$as_me:6938: checking for X11/Xaw3d/Scrollbar.h" >&5 |
98418dba CW |
6940 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
6941 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
6942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 6943 | else |
925c2f3f EZ |
6944 | cat >conftest.$ac_ext <<_ACEOF |
6945 | #line 6939 "configure" | |
98418dba CW |
6946 | #include "confdefs.h" |
6947 | #include <X11/Xaw3d/Scrollbar.h> | |
503d2be0 | 6948 | _ACEOF |
598a2813 | 6949 | if { (eval echo "$as_me:6948: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
6950 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6951 | ac_status=$? | |
6952 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6953 | rm -f conftest.er1 | |
6954 | cat conftest.err >&5 | |
598a2813 | 6955 | echo "$as_me:6954: \$? = $ac_status" >&5 |
503d2be0 AS |
6956 | (exit $ac_status); } >/dev/null; then |
6957 | if test -s conftest.err; then | |
6958 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6959 | else | |
6960 | ac_cpp_err= | |
6961 | fi | |
6962 | else | |
6963 | ac_cpp_err=yes | |
6964 | fi | |
6965 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 6966 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
ba4481b5 | 6967 | else |
503d2be0 | 6968 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 6969 | cat conftest.$ac_ext >&5 |
925c2f3f | 6970 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
ba4481b5 | 6971 | fi |
503d2be0 | 6972 | rm -f conftest.err conftest.$ac_ext |
98418dba | 6973 | fi |
598a2813 | 6974 | echo "$as_me:6973: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
98418dba | 6975 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
98418dba | 6976 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
598a2813 | 6977 | echo "$as_me:6976: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
98418dba CW |
6978 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
6979 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
6980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6981 | else | |
6982 | ac_check_lib_save_LIBS=$LIBS | |
6983 | LIBS="-lXaw3d $LIBS" | |
6984 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 6985 | #line 6979 "configure" |
ba4481b5 | 6986 | #include "confdefs.h" |
98418dba CW |
6987 | |
6988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6989 | #ifdef __cplusplus | |
6990 | extern "C" | |
6991 | #endif | |
6992 | /* We use char because int might match the return type of a gcc2 | |
6993 | builtin and then its argument prototype would still apply. */ | |
6994 | char XawScrollbarSetThumb (); | |
503d2be0 AS |
6995 | int |
6996 | main () | |
6997 | { | |
98418dba | 6998 | XawScrollbarSetThumb (); |
503d2be0 AS |
6999 | ; |
7000 | return 0; | |
7001 | } | |
7002 | _ACEOF | |
7003 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 7004 | if { (eval echo "$as_me:7003: \"$ac_link\"") >&5 |
503d2be0 AS |
7005 | (eval $ac_link) 2>&5 |
7006 | ac_status=$? | |
598a2813 | 7007 | echo "$as_me:7006: \$? = $ac_status" >&5 |
503d2be0 AS |
7008 | (exit $ac_status); } && |
7009 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 7010 | { (eval echo "$as_me:7009: \"$ac_try\"") >&5 |
503d2be0 AS |
7011 | (eval $ac_try) 2>&5 |
7012 | ac_status=$? | |
598a2813 | 7013 | echo "$as_me:7012: \$? = $ac_status" >&5 |
503d2be0 | 7014 | (exit $ac_status); }; }; then |
98418dba | 7015 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
ba4481b5 | 7016 | else |
503d2be0 AS |
7017 | echo "$as_me: failed program was:" >&5 |
7018 | cat conftest.$ac_ext >&5 | |
98418dba | 7019 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
ba4481b5 | 7020 | fi |
503d2be0 | 7021 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 7022 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 7023 | fi |
598a2813 | 7024 | echo "$as_me:7023: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
98418dba CW |
7025 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
7026 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
7027 | HAVE_XAW3D=yes | |
ba4481b5 | 7028 | fi |
503d2be0 | 7029 | |
ba4481b5 DL |
7030 | fi |
7031 | ||
98418dba | 7032 | if test "${HAVE_XAW3D}" = "yes"; then |
b936fae4 | 7033 | |
925c2f3f | 7034 | cat >>confdefs.h <<\EOF |
98418dba | 7035 | #define HAVE_XAW3D 1 |
925c2f3f | 7036 | EOF |
98418dba | 7037 | |
ba4481b5 | 7038 | fi |
98418dba | 7039 | fi |
ba4481b5 DL |
7040 | fi |
7041 | ||
98418dba CW |
7042 | USE_TOOLKIT_SCROLL_BARS=no |
7043 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
7044 | if test "${USE_X_TOOLKIT}" != "none"; then | |
7045 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
925c2f3f | 7046 | cat >>confdefs.h <<\EOF |
98418dba | 7047 | #define USE_TOOLKIT_SCROLL_BARS 1 |
925c2f3f | 7048 | EOF |
98418dba CW |
7049 | |
7050 | HAVE_XAW3D=no | |
7051 | USE_TOOLKIT_SCROLL_BARS=yes | |
7052 | elif test "${HAVE_XAW3D}" = "yes"; then | |
925c2f3f | 7053 | cat >>confdefs.h <<\EOF |
98418dba | 7054 | #define USE_TOOLKIT_SCROLL_BARS 1 |
925c2f3f | 7055 | EOF |
98418dba CW |
7056 | |
7057 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 7058 | fi |
ba4481b5 DL |
7059 | fi |
7060 | fi | |
7061 | ||
98418dba | 7062 | if test "${with_xim}" != "no"; then |
b936fae4 | 7063 | |
925c2f3f | 7064 | cat >>confdefs.h <<\EOF |
98418dba | 7065 | #define USE_XIM 1 |
925c2f3f | 7066 | EOF |
98418dba CW |
7067 | |
7068 | fi | |
7069 | ||
7070 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
7071 | HAVE_XPM=no | |
7072 | if test "${HAVE_X11}" = "yes"; then | |
7073 | if test "${with_xpm}" != "no"; then | |
598a2813 | 7074 | echo "$as_me:7073: checking for X11/xpm.h" >&5 |
98418dba CW |
7075 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
7076 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
7077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 7078 | else |
925c2f3f EZ |
7079 | cat >conftest.$ac_ext <<_ACEOF |
7080 | #line 7074 "configure" | |
98418dba CW |
7081 | #include "confdefs.h" |
7082 | #include <X11/xpm.h> | |
7083 | _ACEOF | |
598a2813 | 7084 | if { (eval echo "$as_me:7083: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7085 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7086 | ac_status=$? | |
7087 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7088 | rm -f conftest.er1 | |
7089 | cat conftest.err >&5 | |
598a2813 | 7090 | echo "$as_me:7089: \$? = $ac_status" >&5 |
98418dba CW |
7091 | (exit $ac_status); } >/dev/null; then |
7092 | if test -s conftest.err; then | |
7093 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7094 | else | |
7095 | ac_cpp_err= | |
7096 | fi | |
7097 | else | |
7098 | ac_cpp_err=yes | |
7099 | fi | |
7100 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 7101 | ac_cv_header_X11_xpm_h=yes |
98418dba CW |
7102 | else |
7103 | echo "$as_me: failed program was:" >&5 | |
7104 | cat conftest.$ac_ext >&5 | |
925c2f3f | 7105 | ac_cv_header_X11_xpm_h=no |
98418dba CW |
7106 | fi |
7107 | rm -f conftest.err conftest.$ac_ext | |
ba4481b5 | 7108 | fi |
598a2813 | 7109 | echo "$as_me:7108: result: $ac_cv_header_X11_xpm_h" >&5 |
98418dba | 7110 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
98418dba | 7111 | if test $ac_cv_header_X11_xpm_h = yes; then |
598a2813 | 7112 | echo "$as_me:7111: checking for XpmReadFileToPixmap in -lXpm" >&5 |
98418dba CW |
7113 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
7114 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
503d2be0 | 7115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7116 | else |
98418dba CW |
7117 | ac_check_lib_save_LIBS=$LIBS |
7118 | LIBS="-lXpm -lX11 $LIBS" | |
7119 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 7120 | #line 7114 "configure" |
ba4481b5 | 7121 | #include "confdefs.h" |
98418dba | 7122 | |
ba4481b5 | 7123 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7124 | #ifdef __cplusplus |
7125 | extern "C" | |
7126 | #endif | |
ba4481b5 | 7127 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 7128 | builtin and then its argument prototype would still apply. */ |
98418dba | 7129 | char XpmReadFileToPixmap (); |
503d2be0 AS |
7130 | int |
7131 | main () | |
7132 | { | |
98418dba | 7133 | XpmReadFileToPixmap (); |
503d2be0 AS |
7134 | ; |
7135 | return 0; | |
7136 | } | |
7137 | _ACEOF | |
7138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 7139 | if { (eval echo "$as_me:7138: \"$ac_link\"") >&5 |
503d2be0 AS |
7140 | (eval $ac_link) 2>&5 |
7141 | ac_status=$? | |
598a2813 | 7142 | echo "$as_me:7141: \$? = $ac_status" >&5 |
503d2be0 AS |
7143 | (exit $ac_status); } && |
7144 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 7145 | { (eval echo "$as_me:7144: \"$ac_try\"") >&5 |
503d2be0 AS |
7146 | (eval $ac_try) 2>&5 |
7147 | ac_status=$? | |
598a2813 | 7148 | echo "$as_me:7147: \$? = $ac_status" >&5 |
503d2be0 | 7149 | (exit $ac_status); }; }; then |
98418dba | 7150 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
7151 | else |
7152 | echo "$as_me: failed program was:" >&5 | |
7153 | cat conftest.$ac_ext >&5 | |
98418dba | 7154 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 AS |
7155 | fi |
7156 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
98418dba | 7157 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 7158 | fi |
598a2813 | 7159 | echo "$as_me:7158: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
98418dba CW |
7160 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
7161 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
7162 | HAVE_XPM=yes | |
ba4481b5 DL |
7163 | fi |
7164 | ||
98418dba CW |
7165 | fi |
7166 | ||
98418dba | 7167 | if test "${HAVE_XPM}" = "yes"; then |
598a2813 | 7168 | echo "$as_me:7167: checking for XpmReturnAllocPixels preprocessor define" >&5 |
98418dba CW |
7169 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
7170 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 7171 | #line 7165 "configure" |
ba4481b5 | 7172 | #include "confdefs.h" |
98418dba CW |
7173 | #include "X11/xpm.h" |
7174 | #ifndef XpmReturnAllocPixels | |
7175 | no_return_alloc_pixels | |
503d2be0 | 7176 | #endif |
ba4481b5 | 7177 | |
98418dba CW |
7178 | _ACEOF |
7179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7180 | egrep "no_return_alloc_pixels" >/dev/null 2>&1; then | |
7181 | HAVE_XPM=no | |
7182 | else | |
7183 | HAVE_XPM=yes | |
7184 | fi | |
7185 | rm -f conftest* | |
ba4481b5 | 7186 | |
98418dba | 7187 | if test "${HAVE_XPM}" = "yes"; then |
598a2813 | 7188 | echo "$as_me:7187: result: yes" >&5 |
98418dba CW |
7189 | echo "${ECHO_T}yes" >&6 |
7190 | else | |
598a2813 | 7191 | echo "$as_me:7190: result: no" >&5 |
98418dba CW |
7192 | echo "${ECHO_T}no" >&6 |
7193 | fi | |
7194 | fi | |
7195 | fi | |
7196 | ||
7197 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 7198 | |
925c2f3f | 7199 | cat >>confdefs.h <<\EOF |
98418dba | 7200 | #define HAVE_XPM 1 |
925c2f3f | 7201 | EOF |
98418dba CW |
7202 | |
7203 | fi | |
7204 | fi | |
7205 | ||
7206 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
7207 | HAVE_JPEG=no | |
7208 | if test "${HAVE_X11}" = "yes"; then | |
7209 | if test "${with_jpeg}" != "no"; then | |
598a2813 | 7210 | echo "$as_me:7209: checking for jerror.h" >&5 |
98418dba CW |
7211 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
7212 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
7213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
503d2be0 | 7214 | else |
925c2f3f EZ |
7215 | cat >conftest.$ac_ext <<_ACEOF |
7216 | #line 7210 "configure" | |
98418dba CW |
7217 | #include "confdefs.h" |
7218 | #include <jerror.h> | |
7219 | _ACEOF | |
598a2813 | 7220 | if { (eval echo "$as_me:7219: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7221 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7222 | ac_status=$? | |
7223 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7224 | rm -f conftest.er1 | |
7225 | cat conftest.err >&5 | |
598a2813 | 7226 | echo "$as_me:7225: \$? = $ac_status" >&5 |
98418dba CW |
7227 | (exit $ac_status); } >/dev/null; then |
7228 | if test -s conftest.err; then | |
7229 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7230 | else | |
7231 | ac_cpp_err= | |
7232 | fi | |
7233 | else | |
7234 | ac_cpp_err=yes | |
503d2be0 | 7235 | fi |
98418dba | 7236 | if test -z "$ac_cpp_err"; then |
925c2f3f | 7237 | ac_cv_header_jerror_h=yes |
ba4481b5 | 7238 | else |
98418dba CW |
7239 | echo "$as_me: failed program was:" >&5 |
7240 | cat conftest.$ac_ext >&5 | |
925c2f3f | 7241 | ac_cv_header_jerror_h=no |
98418dba CW |
7242 | fi |
7243 | rm -f conftest.err conftest.$ac_ext | |
ba4481b5 | 7244 | fi |
598a2813 | 7245 | echo "$as_me:7244: result: $ac_cv_header_jerror_h" >&5 |
98418dba | 7246 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
98418dba | 7247 | if test $ac_cv_header_jerror_h = yes; then |
598a2813 | 7248 | echo "$as_me:7247: checking for jpeg_destroy_compress in -ljpeg" >&5 |
98418dba CW |
7249 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
7250 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
503d2be0 | 7251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7252 | else |
98418dba CW |
7253 | ac_check_lib_save_LIBS=$LIBS |
7254 | LIBS="-ljpeg $LIBS" | |
7255 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 7256 | #line 7250 "configure" |
ba4481b5 | 7257 | #include "confdefs.h" |
98418dba CW |
7258 | |
7259 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7260 | #ifdef __cplusplus | |
7261 | extern "C" | |
7262 | #endif | |
7263 | /* We use char because int might match the return type of a gcc2 | |
7264 | builtin and then its argument prototype would still apply. */ | |
7265 | char jpeg_destroy_compress (); | |
503d2be0 AS |
7266 | int |
7267 | main () | |
7268 | { | |
98418dba | 7269 | jpeg_destroy_compress (); |
503d2be0 AS |
7270 | ; |
7271 | return 0; | |
7272 | } | |
7273 | _ACEOF | |
7274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 7275 | if { (eval echo "$as_me:7274: \"$ac_link\"") >&5 |
503d2be0 AS |
7276 | (eval $ac_link) 2>&5 |
7277 | ac_status=$? | |
598a2813 | 7278 | echo "$as_me:7277: \$? = $ac_status" >&5 |
503d2be0 AS |
7279 | (exit $ac_status); } && |
7280 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 7281 | { (eval echo "$as_me:7280: \"$ac_try\"") >&5 |
503d2be0 AS |
7282 | (eval $ac_try) 2>&5 |
7283 | ac_status=$? | |
598a2813 | 7284 | echo "$as_me:7283: \$? = $ac_status" >&5 |
503d2be0 | 7285 | (exit $ac_status); }; }; then |
98418dba | 7286 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 7287 | else |
503d2be0 AS |
7288 | echo "$as_me: failed program was:" >&5 |
7289 | cat conftest.$ac_ext >&5 | |
98418dba | 7290 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 7291 | fi |
503d2be0 | 7292 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 7293 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 7294 | fi |
598a2813 | 7295 | echo "$as_me:7294: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
98418dba CW |
7296 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
7297 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
7298 | HAVE_JPEG=yes | |
ba4481b5 | 7299 | fi |
98418dba | 7300 | |
ba4481b5 | 7301 | fi |
98418dba | 7302 | |
ba4481b5 | 7303 | fi |
ba4481b5 | 7304 | |
98418dba | 7305 | if test "${HAVE_JPEG}" = "yes"; then |
925c2f3f | 7306 | cat >>confdefs.h <<\EOF |
98418dba | 7307 | #define HAVE_JPEG 1 |
925c2f3f | 7308 | EOF |
98418dba CW |
7309 | |
7310 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 7311 | #line 7305 "configure" |
98418dba CW |
7312 | #include "confdefs.h" |
7313 | #include <jpeglib.h> | |
7314 | version=JPEG_LIB_VERSION | |
7315 | ||
7316 | _ACEOF | |
7317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7318 | egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then | |
925c2f3f | 7319 | cat >>confdefs.h <<\EOF |
98418dba | 7320 | #define HAVE_JPEG 1 |
925c2f3f | 7321 | EOF |
ba4481b5 | 7322 | |
98418dba | 7323 | else |
598a2813 | 7324 | { echo "$as_me:7323: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
7325 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
7326 | HAVE_JPEG=no | |
ba4481b5 | 7327 | fi |
98418dba | 7328 | rm -f conftest* |
ba4481b5 | 7329 | |
98418dba CW |
7330 | fi |
7331 | fi | |
503d2be0 | 7332 | |
98418dba CW |
7333 | ### Use -lpng if available, unless `--with-png=no'. |
7334 | HAVE_PNG=no | |
7335 | if test "${HAVE_X11}" = "yes"; then | |
7336 | if test "${with_png}" != "no"; then | |
598a2813 | 7337 | echo "$as_me:7336: checking for png.h" >&5 |
98418dba CW |
7338 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 |
7339 | if test "${ac_cv_header_png_h+set}" = set; then | |
503d2be0 AS |
7340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7341 | else | |
925c2f3f EZ |
7342 | cat >conftest.$ac_ext <<_ACEOF |
7343 | #line 7337 "configure" | |
503d2be0 | 7344 | #include "confdefs.h" |
98418dba | 7345 | #include <png.h> |
503d2be0 | 7346 | _ACEOF |
598a2813 | 7347 | if { (eval echo "$as_me:7346: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
7348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7349 | ac_status=$? | |
7350 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7351 | rm -f conftest.er1 | |
7352 | cat conftest.err >&5 | |
598a2813 | 7353 | echo "$as_me:7352: \$? = $ac_status" >&5 |
503d2be0 AS |
7354 | (exit $ac_status); } >/dev/null; then |
7355 | if test -s conftest.err; then | |
7356 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7357 | else | |
7358 | ac_cpp_err= | |
7359 | fi | |
7360 | else | |
7361 | ac_cpp_err=yes | |
7362 | fi | |
7363 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 7364 | ac_cv_header_png_h=yes |
503d2be0 AS |
7365 | else |
7366 | echo "$as_me: failed program was:" >&5 | |
ba4481b5 | 7367 | cat conftest.$ac_ext >&5 |
925c2f3f | 7368 | ac_cv_header_png_h=no |
ba4481b5 | 7369 | fi |
503d2be0 | 7370 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 7371 | fi |
598a2813 | 7372 | echo "$as_me:7371: result: $ac_cv_header_png_h" >&5 |
98418dba | 7373 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 |
98418dba | 7374 | if test $ac_cv_header_png_h = yes; then |
598a2813 | 7375 | echo "$as_me:7374: checking for png_get_channels in -lpng" >&5 |
98418dba CW |
7376 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
7377 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
503d2be0 | 7378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7379 | else |
98418dba CW |
7380 | ac_check_lib_save_LIBS=$LIBS |
7381 | LIBS="-lpng -lz -lm $LIBS" | |
7382 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 7383 | #line 7377 "configure" |
ba4481b5 | 7384 | #include "confdefs.h" |
98418dba | 7385 | |
ba4481b5 | 7386 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7387 | #ifdef __cplusplus |
7388 | extern "C" | |
7389 | #endif | |
ba4481b5 | 7390 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 7391 | builtin and then its argument prototype would still apply. */ |
98418dba | 7392 | char png_get_channels (); |
503d2be0 AS |
7393 | int |
7394 | main () | |
7395 | { | |
98418dba | 7396 | png_get_channels (); |
503d2be0 AS |
7397 | ; |
7398 | return 0; | |
7399 | } | |
7400 | _ACEOF | |
7401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 7402 | if { (eval echo "$as_me:7401: \"$ac_link\"") >&5 |
503d2be0 AS |
7403 | (eval $ac_link) 2>&5 |
7404 | ac_status=$? | |
598a2813 | 7405 | echo "$as_me:7404: \$? = $ac_status" >&5 |
98418dba CW |
7406 | (exit $ac_status); } && |
7407 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 7408 | { (eval echo "$as_me:7407: \"$ac_try\"") >&5 |
503d2be0 AS |
7409 | (eval $ac_try) 2>&5 |
7410 | ac_status=$? | |
598a2813 | 7411 | echo "$as_me:7410: \$? = $ac_status" >&5 |
503d2be0 | 7412 | (exit $ac_status); }; }; then |
98418dba | 7413 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 7414 | else |
98418dba | 7415 | echo "$as_me: failed program was:" >&5 |
503d2be0 | 7416 | cat conftest.$ac_ext >&5 |
98418dba | 7417 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 7418 | fi |
98418dba CW |
7419 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
7420 | LIBS=$ac_check_lib_save_LIBS | |
73b77ee5 | 7421 | fi |
598a2813 | 7422 | echo "$as_me:7421: result: $ac_cv_lib_png_png_get_channels" >&5 |
98418dba CW |
7423 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
7424 | if test $ac_cv_lib_png_png_get_channels = yes; then | |
7425 | HAVE_PNG=yes | |
73b77ee5 | 7426 | fi |
503d2be0 | 7427 | |
98418dba CW |
7428 | fi |
7429 | ||
98418dba CW |
7430 | fi |
7431 | ||
7432 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 7433 | |
925c2f3f | 7434 | cat >>confdefs.h <<\EOF |
98418dba | 7435 | #define HAVE_PNG 1 |
925c2f3f | 7436 | EOF |
73b77ee5 | 7437 | |
98418dba | 7438 | fi |
73b77ee5 GM |
7439 | fi |
7440 | ||
98418dba CW |
7441 | ### Use -ltiff if available, unless `--with-tiff=no'. |
7442 | HAVE_TIFF=no | |
7443 | if test "${HAVE_X11}" = "yes"; then | |
7444 | if test "${with_tiff}" != "no"; then | |
598a2813 | 7445 | echo "$as_me:7444: checking for tiffio.h" >&5 |
98418dba CW |
7446 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
7447 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
7448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 7449 | else |
925c2f3f EZ |
7450 | cat >conftest.$ac_ext <<_ACEOF |
7451 | #line 7445 "configure" | |
98418dba CW |
7452 | #include "confdefs.h" |
7453 | #include <tiffio.h> | |
7454 | _ACEOF | |
598a2813 | 7455 | if { (eval echo "$as_me:7454: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7456 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7457 | ac_status=$? | |
7458 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7459 | rm -f conftest.er1 | |
7460 | cat conftest.err >&5 | |
598a2813 | 7461 | echo "$as_me:7460: \$? = $ac_status" >&5 |
98418dba CW |
7462 | (exit $ac_status); } >/dev/null; then |
7463 | if test -s conftest.err; then | |
7464 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7465 | else | |
7466 | ac_cpp_err= | |
7467 | fi | |
7468 | else | |
7469 | ac_cpp_err=yes | |
7470 | fi | |
7471 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 7472 | ac_cv_header_tiffio_h=yes |
98418dba CW |
7473 | else |
7474 | echo "$as_me: failed program was:" >&5 | |
7475 | cat conftest.$ac_ext >&5 | |
925c2f3f | 7476 | ac_cv_header_tiffio_h=no |
98418dba CW |
7477 | fi |
7478 | rm -f conftest.err conftest.$ac_ext | |
98418dba | 7479 | fi |
598a2813 | 7480 | echo "$as_me:7479: result: $ac_cv_header_tiffio_h" >&5 |
98418dba | 7481 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
98418dba CW |
7482 | if test $ac_cv_header_tiffio_h = yes; then |
7483 | tifflibs="-lz -lm" | |
7484 | # At least one tiff package requires the jpeg library. | |
7485 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
598a2813 | 7486 | echo "$as_me:7485: checking for TIFFGetVersion in -ltiff" >&5 |
98418dba CW |
7487 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
7488 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
503d2be0 | 7489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 7490 | else |
503d2be0 | 7491 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 7492 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 7493 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 7494 | #line 7488 "configure" |
73b77ee5 | 7495 | #include "confdefs.h" |
503d2be0 | 7496 | |
73b77ee5 | 7497 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7498 | #ifdef __cplusplus |
7499 | extern "C" | |
7500 | #endif | |
73b77ee5 | 7501 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 7502 | builtin and then its argument prototype would still apply. */ |
98418dba | 7503 | char TIFFGetVersion (); |
503d2be0 AS |
7504 | int |
7505 | main () | |
7506 | { | |
98418dba | 7507 | TIFFGetVersion (); |
503d2be0 AS |
7508 | ; |
7509 | return 0; | |
7510 | } | |
7511 | _ACEOF | |
7512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 7513 | if { (eval echo "$as_me:7512: \"$ac_link\"") >&5 |
503d2be0 AS |
7514 | (eval $ac_link) 2>&5 |
7515 | ac_status=$? | |
598a2813 | 7516 | echo "$as_me:7515: \$? = $ac_status" >&5 |
503d2be0 AS |
7517 | (exit $ac_status); } && |
7518 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 7519 | { (eval echo "$as_me:7518: \"$ac_try\"") >&5 |
503d2be0 AS |
7520 | (eval $ac_try) 2>&5 |
7521 | ac_status=$? | |
598a2813 | 7522 | echo "$as_me:7521: \$? = $ac_status" >&5 |
503d2be0 | 7523 | (exit $ac_status); }; }; then |
98418dba | 7524 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
7525 | else |
7526 | echo "$as_me: failed program was:" >&5 | |
7527 | cat conftest.$ac_ext >&5 | |
98418dba | 7528 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 AS |
7529 | fi |
7530 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7531 | LIBS=$ac_check_lib_save_LIBS | |
7532 | fi | |
598a2813 | 7533 | echo "$as_me:7532: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
98418dba CW |
7534 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
7535 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
7536 | HAVE_TIFF=yes | |
7537 | fi | |
7538 | ||
7539 | fi | |
73b77ee5 | 7540 | |
98418dba CW |
7541 | fi |
7542 | ||
7543 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 7544 | |
925c2f3f | 7545 | cat >>confdefs.h <<\EOF |
98418dba | 7546 | #define HAVE_TIFF 1 |
925c2f3f | 7547 | EOF |
98418dba CW |
7548 | |
7549 | fi | |
73b77ee5 GM |
7550 | fi |
7551 | ||
98418dba CW |
7552 | ### Use -lgif if available, unless `--with-gif=no'. |
7553 | HAVE_GIF=no | |
7554 | if test "${HAVE_X11}" = "yes"; then | |
7555 | if test "${with_gif}" != "no"; then | |
598a2813 | 7556 | echo "$as_me:7555: checking for gif_lib.h" >&5 |
98418dba CW |
7557 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
7558 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
7559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 7560 | else |
925c2f3f EZ |
7561 | cat >conftest.$ac_ext <<_ACEOF |
7562 | #line 7556 "configure" | |
98418dba CW |
7563 | #include "confdefs.h" |
7564 | #include <gif_lib.h> | |
7565 | _ACEOF | |
598a2813 | 7566 | if { (eval echo "$as_me:7565: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7567 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7568 | ac_status=$? | |
7569 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7570 | rm -f conftest.er1 | |
7571 | cat conftest.err >&5 | |
598a2813 | 7572 | echo "$as_me:7571: \$? = $ac_status" >&5 |
98418dba CW |
7573 | (exit $ac_status); } >/dev/null; then |
7574 | if test -s conftest.err; then | |
7575 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7576 | else | |
7577 | ac_cpp_err= | |
7578 | fi | |
7579 | else | |
7580 | ac_cpp_err=yes | |
7581 | fi | |
7582 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 7583 | ac_cv_header_gif_lib_h=yes |
98418dba CW |
7584 | else |
7585 | echo "$as_me: failed program was:" >&5 | |
7586 | cat conftest.$ac_ext >&5 | |
925c2f3f | 7587 | ac_cv_header_gif_lib_h=no |
98418dba CW |
7588 | fi |
7589 | rm -f conftest.err conftest.$ac_ext | |
98418dba | 7590 | fi |
598a2813 | 7591 | echo "$as_me:7590: result: $ac_cv_header_gif_lib_h" >&5 |
98418dba | 7592 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
98418dba CW |
7593 | if test $ac_cv_header_gif_lib_h = yes; then |
7594 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
7595 | # Earlier versions can crash Emacs. | |
598a2813 | 7596 | echo "$as_me:7595: checking for EGifPutExtensionLast in -lungif" >&5 |
98418dba CW |
7597 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
7598 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
503d2be0 | 7599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 7600 | else |
503d2be0 | 7601 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 7602 | LIBS="-lungif $LIBS" |
503d2be0 | 7603 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 7604 | #line 7598 "configure" |
73b77ee5 GM |
7605 | #include "confdefs.h" |
7606 | ||
98418dba CW |
7607 | /* Override any gcc2 internal prototype to avoid an error. */ |
7608 | #ifdef __cplusplus | |
7609 | extern "C" | |
7610 | #endif | |
7611 | /* We use char because int might match the return type of a gcc2 | |
7612 | builtin and then its argument prototype would still apply. */ | |
7613 | char EGifPutExtensionLast (); | |
503d2be0 AS |
7614 | int |
7615 | main () | |
7616 | { | |
98418dba | 7617 | EGifPutExtensionLast (); |
503d2be0 AS |
7618 | ; |
7619 | return 0; | |
7620 | } | |
7621 | _ACEOF | |
7622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 7623 | if { (eval echo "$as_me:7622: \"$ac_link\"") >&5 |
503d2be0 AS |
7624 | (eval $ac_link) 2>&5 |
7625 | ac_status=$? | |
598a2813 | 7626 | echo "$as_me:7625: \$? = $ac_status" >&5 |
98418dba CW |
7627 | (exit $ac_status); } && |
7628 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 7629 | { (eval echo "$as_me:7628: \"$ac_try\"") >&5 |
98418dba CW |
7630 | (eval $ac_try) 2>&5 |
7631 | ac_status=$? | |
598a2813 | 7632 | echo "$as_me:7631: \$? = $ac_status" >&5 |
98418dba CW |
7633 | (exit $ac_status); }; }; then |
7634 | ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
7635 | else | |
7636 | echo "$as_me: failed program was:" >&5 | |
7637 | cat conftest.$ac_ext >&5 | |
7638 | ac_cv_lib_ungif_EGifPutExtensionLast=no | |
7639 | fi | |
7640 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7641 | LIBS=$ac_check_lib_save_LIBS | |
7642 | fi | |
598a2813 | 7643 | echo "$as_me:7642: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
98418dba CW |
7644 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
7645 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
7646 | HAVE_GIF=yes | |
7647 | fi | |
7648 | ||
7649 | fi | |
7650 | ||
98418dba CW |
7651 | fi |
7652 | ||
7653 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 7654 | |
925c2f3f | 7655 | cat >>confdefs.h <<\EOF |
98418dba | 7656 | #define HAVE_GIF 1 |
925c2f3f | 7657 | EOF |
98418dba CW |
7658 | |
7659 | fi | |
7660 | fi | |
7661 | ||
925c2f3f EZ |
7662 | ### Use Mac OS X Carbon API to implement GUI. |
7663 | HAVE_CARBON=no | |
7664 | if test "${with_carbon}" != "no"; then | |
598a2813 | 7665 | echo "$as_me:7664: checking for Carbon/Carbon.h" >&5 |
925c2f3f EZ |
7666 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
7667 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
7668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7669 | else | |
7670 | cat >conftest.$ac_ext <<_ACEOF | |
7671 | #line 7665 "configure" | |
e0f712ba AC |
7672 | #include "confdefs.h" |
7673 | #include <Carbon/Carbon.h> | |
7674 | _ACEOF | |
598a2813 | 7675 | if { (eval echo "$as_me:7674: \"$ac_cpp conftest.$ac_ext\"") >&5 |
e0f712ba AC |
7676 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7677 | ac_status=$? | |
7678 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7679 | rm -f conftest.er1 | |
7680 | cat conftest.err >&5 | |
598a2813 | 7681 | echo "$as_me:7680: \$? = $ac_status" >&5 |
e0f712ba AC |
7682 | (exit $ac_status); } >/dev/null; then |
7683 | if test -s conftest.err; then | |
7684 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7685 | else | |
7686 | ac_cpp_err= | |
7687 | fi | |
7688 | else | |
7689 | ac_cpp_err=yes | |
7690 | fi | |
7691 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 7692 | ac_cv_header_Carbon_Carbon_h=yes |
e0f712ba AC |
7693 | else |
7694 | echo "$as_me: failed program was:" >&5 | |
7695 | cat conftest.$ac_ext >&5 | |
925c2f3f | 7696 | ac_cv_header_Carbon_Carbon_h=no |
e0f712ba AC |
7697 | fi |
7698 | rm -f conftest.err conftest.$ac_ext | |
e0f712ba | 7699 | fi |
598a2813 | 7700 | echo "$as_me:7699: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
e0f712ba | 7701 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
e0f712ba AC |
7702 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
7703 | HAVE_CARBON=yes | |
7704 | fi | |
7705 | ||
e0f712ba AC |
7706 | fi |
7707 | ||
7708 | if test "${HAVE_CARBON}" = "yes"; then | |
e3ba1015 | 7709 | |
925c2f3f | 7710 | cat >>confdefs.h <<\EOF |
e0f712ba | 7711 | #define HAVE_CARBON 1 |
925c2f3f | 7712 | EOF |
e0f712ba AC |
7713 | |
7714 | fi | |
7715 | ||
98418dba CW |
7716 | ### Use session management (-lSM -lICE) if available |
7717 | HAVE_X_SM=no | |
7718 | if test "${HAVE_X11}" = "yes"; then | |
598a2813 | 7719 | echo "$as_me:7718: checking for X11/SM/SMlib.h" >&5 |
98418dba CW |
7720 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
7721 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
7722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
503d2be0 | 7723 | else |
925c2f3f EZ |
7724 | cat >conftest.$ac_ext <<_ACEOF |
7725 | #line 7719 "configure" | |
98418dba CW |
7726 | #include "confdefs.h" |
7727 | #include <X11/SM/SMlib.h> | |
7728 | _ACEOF | |
598a2813 | 7729 | if { (eval echo "$as_me:7728: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7730 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7731 | ac_status=$? | |
7732 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7733 | rm -f conftest.er1 | |
7734 | cat conftest.err >&5 | |
598a2813 | 7735 | echo "$as_me:7734: \$? = $ac_status" >&5 |
98418dba CW |
7736 | (exit $ac_status); } >/dev/null; then |
7737 | if test -s conftest.err; then | |
7738 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7739 | else | |
7740 | ac_cpp_err= | |
7741 | fi | |
7742 | else | |
7743 | ac_cpp_err=yes | |
503d2be0 | 7744 | fi |
98418dba | 7745 | if test -z "$ac_cpp_err"; then |
925c2f3f | 7746 | ac_cv_header_X11_SM_SMlib_h=yes |
98418dba CW |
7747 | else |
7748 | echo "$as_me: failed program was:" >&5 | |
7749 | cat conftest.$ac_ext >&5 | |
925c2f3f | 7750 | ac_cv_header_X11_SM_SMlib_h=no |
98418dba CW |
7751 | fi |
7752 | rm -f conftest.err conftest.$ac_ext | |
73b77ee5 | 7753 | fi |
598a2813 | 7754 | echo "$as_me:7753: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
98418dba | 7755 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
98418dba | 7756 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
598a2813 | 7757 | echo "$as_me:7756: checking for SmcOpenConnection in -lSM" >&5 |
98418dba CW |
7758 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
7759 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then | |
503d2be0 | 7760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 7761 | else |
503d2be0 | 7762 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 7763 | LIBS="-lSM $LIBS" |
503d2be0 | 7764 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 7765 | #line 7759 "configure" |
73b77ee5 | 7766 | #include "confdefs.h" |
503d2be0 | 7767 | |
73b77ee5 | 7768 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7769 | #ifdef __cplusplus |
7770 | extern "C" | |
7771 | #endif | |
73b77ee5 | 7772 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 7773 | builtin and then its argument prototype would still apply. */ |
98418dba | 7774 | char SmcOpenConnection (); |
503d2be0 AS |
7775 | int |
7776 | main () | |
7777 | { | |
98418dba | 7778 | SmcOpenConnection (); |
503d2be0 AS |
7779 | ; |
7780 | return 0; | |
7781 | } | |
7782 | _ACEOF | |
7783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 7784 | if { (eval echo "$as_me:7783: \"$ac_link\"") >&5 |
503d2be0 AS |
7785 | (eval $ac_link) 2>&5 |
7786 | ac_status=$? | |
598a2813 | 7787 | echo "$as_me:7786: \$? = $ac_status" >&5 |
503d2be0 AS |
7788 | (exit $ac_status); } && |
7789 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 7790 | { (eval echo "$as_me:7789: \"$ac_try\"") >&5 |
503d2be0 AS |
7791 | (eval $ac_try) 2>&5 |
7792 | ac_status=$? | |
598a2813 | 7793 | echo "$as_me:7792: \$? = $ac_status" >&5 |
503d2be0 | 7794 | (exit $ac_status); }; }; then |
98418dba | 7795 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
7796 | else |
7797 | echo "$as_me: failed program was:" >&5 | |
7798 | cat conftest.$ac_ext >&5 | |
98418dba | 7799 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 AS |
7800 | fi |
7801 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7802 | LIBS=$ac_check_lib_save_LIBS | |
7803 | fi | |
598a2813 | 7804 | echo "$as_me:7803: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
98418dba CW |
7805 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
7806 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then | |
7807 | HAVE_X_SM=yes | |
7808 | else | |
7809 | -lICE | |
73b77ee5 GM |
7810 | fi |
7811 | ||
73b77ee5 | 7812 | fi |
73b77ee5 | 7813 | |
98418dba | 7814 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 7815 | |
925c2f3f | 7816 | cat >>confdefs.h <<\EOF |
98418dba | 7817 | #define HAVE_X_SM 1 |
925c2f3f | 7818 | EOF |
73b77ee5 | 7819 | |
98418dba CW |
7820 | case "$LIBS" in |
7821 | *-lSM*) ;; | |
7822 | *) LIBS="-lSM -lICE $LIBS" ;; | |
7823 | esac | |
73b77ee5 | 7824 | fi |
98418dba | 7825 | fi |
73b77ee5 | 7826 | |
98418dba | 7827 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
598a2813 | 7828 | echo "$as_me:7827: checking whether netdb declares h_errno" >&5 |
98418dba CW |
7829 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
7830 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
7831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7832 | else | |
7833 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 7834 | #line 7828 "configure" |
73b77ee5 | 7835 | #include "confdefs.h" |
98418dba | 7836 | #include <netdb.h> |
503d2be0 AS |
7837 | int |
7838 | main () | |
7839 | { | |
98418dba | 7840 | return h_errno; |
503d2be0 AS |
7841 | ; |
7842 | return 0; | |
7843 | } | |
7844 | _ACEOF | |
7845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 7846 | if { (eval echo "$as_me:7845: \"$ac_link\"") >&5 |
503d2be0 AS |
7847 | (eval $ac_link) 2>&5 |
7848 | ac_status=$? | |
598a2813 | 7849 | echo "$as_me:7848: \$? = $ac_status" >&5 |
503d2be0 AS |
7850 | (exit $ac_status); } && |
7851 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 7852 | { (eval echo "$as_me:7851: \"$ac_try\"") >&5 |
503d2be0 AS |
7853 | (eval $ac_try) 2>&5 |
7854 | ac_status=$? | |
598a2813 | 7855 | echo "$as_me:7854: \$? = $ac_status" >&5 |
503d2be0 | 7856 | (exit $ac_status); }; }; then |
98418dba | 7857 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 7858 | else |
503d2be0 AS |
7859 | echo "$as_me: failed program was:" >&5 |
7860 | cat conftest.$ac_ext >&5 | |
98418dba | 7861 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 7862 | fi |
503d2be0 | 7863 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 7864 | fi |
598a2813 | 7865 | echo "$as_me:7864: result: $emacs_cv_netdb_declares_h_errno" >&5 |
98418dba CW |
7866 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
7867 | if test $emacs_cv_netdb_declares_h_errno = yes; then | |
b936fae4 | 7868 | |
925c2f3f | 7869 | cat >>confdefs.h <<\EOF |
98418dba | 7870 | #define HAVE_H_ERRNO 1 |
925c2f3f | 7871 | EOF |
73b77ee5 | 7872 | |
98418dba CW |
7873 | fi |
7874 | ||
7875 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7876 | # for constant arguments. Useless! | |
598a2813 | 7877 | echo "$as_me:7876: checking for working alloca.h" >&5 |
98418dba CW |
7878 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
7879 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
7880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7881 | else | |
7882 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 7883 | #line 7877 "configure" |
98418dba CW |
7884 | #include "confdefs.h" |
7885 | #include <alloca.h> | |
503d2be0 AS |
7886 | int |
7887 | main () | |
7888 | { | |
98418dba | 7889 | char *p = (char *) alloca (2 * sizeof (int)); |
503d2be0 AS |
7890 | ; |
7891 | return 0; | |
7892 | } | |
7893 | _ACEOF | |
7894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 7895 | if { (eval echo "$as_me:7894: \"$ac_link\"") >&5 |
503d2be0 AS |
7896 | (eval $ac_link) 2>&5 |
7897 | ac_status=$? | |
598a2813 | 7898 | echo "$as_me:7897: \$? = $ac_status" >&5 |
503d2be0 AS |
7899 | (exit $ac_status); } && |
7900 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 7901 | { (eval echo "$as_me:7900: \"$ac_try\"") >&5 |
503d2be0 AS |
7902 | (eval $ac_try) 2>&5 |
7903 | ac_status=$? | |
598a2813 | 7904 | echo "$as_me:7903: \$? = $ac_status" >&5 |
503d2be0 | 7905 | (exit $ac_status); }; }; then |
98418dba | 7906 | ac_cv_working_alloca_h=yes |
73b77ee5 | 7907 | else |
503d2be0 AS |
7908 | echo "$as_me: failed program was:" >&5 |
7909 | cat conftest.$ac_ext >&5 | |
98418dba | 7910 | ac_cv_working_alloca_h=no |
73b77ee5 | 7911 | fi |
503d2be0 | 7912 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 7913 | fi |
598a2813 | 7914 | echo "$as_me:7913: result: $ac_cv_working_alloca_h" >&5 |
98418dba CW |
7915 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
7916 | if test $ac_cv_working_alloca_h = yes; then | |
73b77ee5 | 7917 | |
925c2f3f | 7918 | cat >>confdefs.h <<\EOF |
98418dba | 7919 | #define HAVE_ALLOCA_H 1 |
925c2f3f | 7920 | EOF |
98418dba CW |
7921 | |
7922 | fi | |
7923 | ||
598a2813 | 7924 | echo "$as_me:7923: checking for alloca" >&5 |
98418dba CW |
7925 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
7926 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
7927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7928 | else | |
503d2be0 | 7929 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 7930 | #line 7924 "configure" |
ac95a621 | 7931 | #include "confdefs.h" |
98418dba CW |
7932 | #ifdef __GNUC__ |
7933 | # define alloca __builtin_alloca | |
7934 | #else | |
7935 | # ifdef _MSC_VER | |
7936 | # include <malloc.h> | |
7937 | # define alloca _alloca | |
7938 | # else | |
7939 | # if HAVE_ALLOCA_H | |
7940 | # include <alloca.h> | |
7941 | # else | |
7942 | # ifdef _AIX | |
7943 | #pragma alloca | |
7944 | # else | |
7945 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
7946 | char *alloca (); | |
7947 | # endif | |
7948 | # endif | |
7949 | # endif | |
7950 | # endif | |
7951 | #endif | |
7952 | ||
503d2be0 AS |
7953 | int |
7954 | main () | |
7955 | { | |
98418dba | 7956 | char *p = (char *) alloca (1); |
503d2be0 AS |
7957 | ; |
7958 | return 0; | |
7959 | } | |
7960 | _ACEOF | |
7961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 7962 | if { (eval echo "$as_me:7961: \"$ac_link\"") >&5 |
503d2be0 AS |
7963 | (eval $ac_link) 2>&5 |
7964 | ac_status=$? | |
598a2813 | 7965 | echo "$as_me:7964: \$? = $ac_status" >&5 |
503d2be0 AS |
7966 | (exit $ac_status); } && |
7967 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 7968 | { (eval echo "$as_me:7967: \"$ac_try\"") >&5 |
503d2be0 AS |
7969 | (eval $ac_try) 2>&5 |
7970 | ac_status=$? | |
598a2813 | 7971 | echo "$as_me:7970: \$? = $ac_status" >&5 |
503d2be0 | 7972 | (exit $ac_status); }; }; then |
98418dba | 7973 | ac_cv_func_alloca_works=yes |
ac95a621 | 7974 | else |
503d2be0 AS |
7975 | echo "$as_me: failed program was:" >&5 |
7976 | cat conftest.$ac_ext >&5 | |
98418dba | 7977 | ac_cv_func_alloca_works=no |
ac95a621 | 7978 | fi |
503d2be0 | 7979 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 7980 | fi |
598a2813 | 7981 | echo "$as_me:7980: result: $ac_cv_func_alloca_works" >&5 |
98418dba | 7982 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
ac95a621 | 7983 | |
98418dba CW |
7984 | if test $ac_cv_func_alloca_works = yes; then |
7985 | ||
925c2f3f | 7986 | cat >>confdefs.h <<\EOF |
98418dba | 7987 | #define HAVE_ALLOCA 1 |
925c2f3f | 7988 | EOF |
98418dba CW |
7989 | |
7990 | else | |
7991 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
7992 | # that cause trouble. Some versions do not even contain alloca or | |
7993 | # contain a buggy version. If you still want to use their alloca, | |
7994 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7995 | ||
7996 | ALLOCA=alloca.$ac_objext | |
7997 | ||
925c2f3f | 7998 | cat >>confdefs.h <<\EOF |
98418dba | 7999 | #define C_ALLOCA 1 |
925c2f3f | 8000 | EOF |
98418dba | 8001 | |
598a2813 | 8002 | echo "$as_me:8001: checking whether \`alloca.c' needs Cray hooks" >&5 |
98418dba CW |
8003 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
8004 | if test "${ac_cv_os_cray+set}" = set; then | |
8005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8006 | else | |
8007 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 8008 | #line 8002 "configure" |
98418dba CW |
8009 | #include "confdefs.h" |
8010 | #if defined(CRAY) && ! defined(CRAY2) | |
8011 | webecray | |
8012 | #else | |
8013 | wenotbecray | |
8014 | #endif | |
8015 | ||
8016 | _ACEOF | |
8017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8018 | egrep "webecray" >/dev/null 2>&1; then | |
8019 | ac_cv_os_cray=yes | |
8020 | else | |
8021 | ac_cv_os_cray=no | |
8022 | fi | |
8023 | rm -f conftest* | |
ac95a621 | 8024 | |
98418dba | 8025 | fi |
598a2813 | 8026 | echo "$as_me:8025: result: $ac_cv_os_cray" >&5 |
98418dba CW |
8027 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
8028 | if test $ac_cv_os_cray = yes; then | |
8029 | for ac_func in _getb67 GETB67 getb67; do | |
8030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 8031 | echo "$as_me:8030: checking for $ac_func" >&5 |
503d2be0 AS |
8032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8033 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 8035 | else |
503d2be0 | 8036 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 8037 | #line 8031 "configure" |
73b77ee5 GM |
8038 | #include "confdefs.h" |
8039 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 8040 | which can conflict with char $ac_func (); below. */ |
73b77ee5 GM |
8041 | #include <assert.h> |
8042 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
8043 | #ifdef __cplusplus |
8044 | extern "C" | |
8045 | #endif | |
73b77ee5 | 8046 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
8047 | builtin and then its argument prototype would still apply. */ |
8048 | char $ac_func (); | |
8049 | char (*f) (); | |
73b77ee5 | 8050 | |
503d2be0 AS |
8051 | int |
8052 | main () | |
8053 | { | |
73b77ee5 GM |
8054 | /* The GNU C library defines this for functions which it implements |
8055 | to always fail with ENOSYS. Some functions are actually named | |
8056 | something starting with __ and the normal name is an alias. */ | |
8057 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8058 | choke me | |
8059 | #else | |
503d2be0 | 8060 | f = $ac_func; |
73b77ee5 GM |
8061 | #endif |
8062 | ||
503d2be0 AS |
8063 | ; |
8064 | return 0; | |
8065 | } | |
8066 | _ACEOF | |
8067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 8068 | if { (eval echo "$as_me:8067: \"$ac_link\"") >&5 |
503d2be0 AS |
8069 | (eval $ac_link) 2>&5 |
8070 | ac_status=$? | |
598a2813 | 8071 | echo "$as_me:8070: \$? = $ac_status" >&5 |
503d2be0 AS |
8072 | (exit $ac_status); } && |
8073 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 8074 | { (eval echo "$as_me:8073: \"$ac_try\"") >&5 |
503d2be0 AS |
8075 | (eval $ac_try) 2>&5 |
8076 | ac_status=$? | |
598a2813 | 8077 | echo "$as_me:8076: \$? = $ac_status" >&5 |
503d2be0 AS |
8078 | (exit $ac_status); }; }; then |
8079 | eval "$as_ac_var=yes" | |
8080 | else | |
8081 | echo "$as_me: failed program was:" >&5 | |
8082 | cat conftest.$ac_ext >&5 | |
8083 | eval "$as_ac_var=no" | |
8084 | fi | |
8085 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8086 | fi | |
598a2813 | 8087 | echo "$as_me:8086: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
8088 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8089 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
73b77ee5 | 8090 | |
925c2f3f | 8091 | cat >>confdefs.h <<EOF |
98418dba | 8092 | #define CRAY_STACKSEG_END $ac_func |
925c2f3f | 8093 | EOF |
98418dba CW |
8094 | |
8095 | break | |
73b77ee5 | 8096 | fi |
73b77ee5 | 8097 | |
98418dba | 8098 | done |
73b77ee5 GM |
8099 | fi |
8100 | ||
598a2813 | 8101 | echo "$as_me:8100: checking stack direction for C alloca" >&5 |
98418dba CW |
8102 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
8103 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
503d2be0 | 8104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
8105 | else |
8106 | if test "$cross_compiling" = yes; then | |
8107 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 8108 | else |
503d2be0 | 8109 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 8110 | #line 8104 "configure" |
73b77ee5 | 8111 | #include "confdefs.h" |
503d2be0 | 8112 | int |
98418dba | 8113 | find_stack_direction () |
503d2be0 | 8114 | { |
98418dba CW |
8115 | static char *addr = 0; |
8116 | auto char dummy; | |
8117 | if (addr == 0) | |
8118 | { | |
8119 | addr = &dummy; | |
8120 | return find_stack_direction (); | |
8121 | } | |
73b77ee5 | 8122 | else |
98418dba CW |
8123 | return (&dummy > addr) ? 1 : -1; |
8124 | } | |
ba4481b5 | 8125 | |
503d2be0 AS |
8126 | int |
8127 | main () | |
8128 | { | |
98418dba | 8129 | exit (find_stack_direction () < 0); |
503d2be0 AS |
8130 | } |
8131 | _ACEOF | |
98418dba | 8132 | rm -f conftest$ac_exeext |
598a2813 | 8133 | if { (eval echo "$as_me:8132: \"$ac_link\"") >&5 |
503d2be0 AS |
8134 | (eval $ac_link) 2>&5 |
8135 | ac_status=$? | |
598a2813 | 8136 | echo "$as_me:8135: \$? = $ac_status" >&5 |
98418dba | 8137 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
598a2813 | 8138 | { (eval echo "$as_me:8137: \"$ac_try\"") >&5 |
503d2be0 AS |
8139 | (eval $ac_try) 2>&5 |
8140 | ac_status=$? | |
598a2813 | 8141 | echo "$as_me:8140: \$? = $ac_status" >&5 |
503d2be0 | 8142 | (exit $ac_status); }; }; then |
98418dba | 8143 | ac_cv_c_stack_direction=1 |
ba4481b5 | 8144 | else |
98418dba CW |
8145 | echo "$as_me: program exited with status $ac_status" >&5 |
8146 | echo "$as_me: failed program was:" >&5 | |
503d2be0 | 8147 | cat conftest.$ac_ext >&5 |
98418dba | 8148 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 8149 | fi |
98418dba | 8150 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 8151 | fi |
98418dba | 8152 | fi |
598a2813 | 8153 | echo "$as_me:8152: result: $ac_cv_c_stack_direction" >&5 |
98418dba CW |
8154 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
8155 | ||
925c2f3f | 8156 | cat >>confdefs.h <<EOF |
98418dba | 8157 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
925c2f3f | 8158 | EOF |
ba4481b5 | 8159 | |
ba4481b5 DL |
8160 | fi |
8161 | ||
98418dba CW |
8162 | # fmod, logb, and frexp are found in -lm on most systems. |
8163 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
8164 | ||
598a2813 | 8165 | echo "$as_me:8164: checking for sqrt in -lm" >&5 |
98418dba CW |
8166 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
8167 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
503d2be0 | 8168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 8169 | else |
98418dba CW |
8170 | ac_check_lib_save_LIBS=$LIBS |
8171 | LIBS="-lm $LIBS" | |
8172 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 8173 | #line 8167 "configure" |
ba4481b5 DL |
8174 | #include "confdefs.h" |
8175 | ||
98418dba CW |
8176 | /* Override any gcc2 internal prototype to avoid an error. */ |
8177 | #ifdef __cplusplus | |
8178 | extern "C" | |
8179 | #endif | |
8180 | /* We use char because int might match the return type of a gcc2 | |
8181 | builtin and then its argument prototype would still apply. */ | |
8182 | char sqrt (); | |
503d2be0 AS |
8183 | int |
8184 | main () | |
8185 | { | |
98418dba | 8186 | sqrt (); |
503d2be0 AS |
8187 | ; |
8188 | return 0; | |
8189 | } | |
8190 | _ACEOF | |
8191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 8192 | if { (eval echo "$as_me:8191: \"$ac_link\"") >&5 |
503d2be0 AS |
8193 | (eval $ac_link) 2>&5 |
8194 | ac_status=$? | |
598a2813 | 8195 | echo "$as_me:8194: \$? = $ac_status" >&5 |
503d2be0 AS |
8196 | (exit $ac_status); } && |
8197 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 8198 | { (eval echo "$as_me:8197: \"$ac_try\"") >&5 |
503d2be0 AS |
8199 | (eval $ac_try) 2>&5 |
8200 | ac_status=$? | |
598a2813 | 8201 | echo "$as_me:8200: \$? = $ac_status" >&5 |
503d2be0 | 8202 | (exit $ac_status); }; }; then |
98418dba | 8203 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 8204 | else |
503d2be0 AS |
8205 | echo "$as_me: failed program was:" >&5 |
8206 | cat conftest.$ac_ext >&5 | |
98418dba | 8207 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 8208 | fi |
503d2be0 | 8209 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 8210 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 8211 | fi |
598a2813 | 8212 | echo "$as_me:8211: result: $ac_cv_lib_m_sqrt" >&5 |
98418dba CW |
8213 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
8214 | if test $ac_cv_lib_m_sqrt = yes; then | |
925c2f3f | 8215 | cat >>confdefs.h <<EOF |
98418dba | 8216 | #define HAVE_LIBM 1 |
925c2f3f | 8217 | EOF |
98418dba CW |
8218 | |
8219 | LIBS="-lm $LIBS" | |
ba4481b5 | 8220 | |
ba4481b5 DL |
8221 | fi |
8222 | ||
98418dba CW |
8223 | # Check for mail-locking functions in a "mail" library |
8224 | ||
598a2813 | 8225 | echo "$as_me:8224: checking for maillock in -lmail" >&5 |
98418dba CW |
8226 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
8227 | if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
503d2be0 | 8228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 8229 | else |
98418dba CW |
8230 | ac_check_lib_save_LIBS=$LIBS |
8231 | LIBS="-lmail $LIBS" | |
8232 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 8233 | #line 8227 "configure" |
ba4481b5 | 8234 | #include "confdefs.h" |
98418dba CW |
8235 | |
8236 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8237 | #ifdef __cplusplus | |
8238 | extern "C" | |
8239 | #endif | |
8240 | /* We use char because int might match the return type of a gcc2 | |
8241 | builtin and then its argument prototype would still apply. */ | |
8242 | char maillock (); | |
503d2be0 AS |
8243 | int |
8244 | main () | |
8245 | { | |
98418dba | 8246 | maillock (); |
503d2be0 AS |
8247 | ; |
8248 | return 0; | |
8249 | } | |
8250 | _ACEOF | |
8251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 8252 | if { (eval echo "$as_me:8251: \"$ac_link\"") >&5 |
503d2be0 AS |
8253 | (eval $ac_link) 2>&5 |
8254 | ac_status=$? | |
598a2813 | 8255 | echo "$as_me:8254: \$? = $ac_status" >&5 |
503d2be0 AS |
8256 | (exit $ac_status); } && |
8257 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 8258 | { (eval echo "$as_me:8257: \"$ac_try\"") >&5 |
503d2be0 AS |
8259 | (eval $ac_try) 2>&5 |
8260 | ac_status=$? | |
598a2813 | 8261 | echo "$as_me:8260: \$? = $ac_status" >&5 |
503d2be0 | 8262 | (exit $ac_status); }; }; then |
98418dba | 8263 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 8264 | else |
503d2be0 AS |
8265 | echo "$as_me: failed program was:" >&5 |
8266 | cat conftest.$ac_ext >&5 | |
98418dba | 8267 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 8268 | fi |
503d2be0 | 8269 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 8270 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 8271 | fi |
598a2813 | 8272 | echo "$as_me:8271: result: $ac_cv_lib_mail_maillock" >&5 |
98418dba CW |
8273 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
8274 | if test $ac_cv_lib_mail_maillock = yes; then | |
925c2f3f | 8275 | cat >>confdefs.h <<EOF |
98418dba | 8276 | #define HAVE_LIBMAIL 1 |
925c2f3f | 8277 | EOF |
ba4481b5 | 8278 | |
98418dba | 8279 | LIBS="-lmail $LIBS" |
ba4481b5 | 8280 | |
98418dba | 8281 | fi |
ba4481b5 | 8282 | |
598a2813 | 8283 | echo "$as_me:8282: checking for maillock in -llockfile" >&5 |
98418dba CW |
8284 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
8285 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
503d2be0 | 8286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 8287 | else |
503d2be0 | 8288 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 8289 | LIBS="-llockfile $LIBS" |
503d2be0 | 8290 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 8291 | #line 8285 "configure" |
ba4481b5 | 8292 | #include "confdefs.h" |
503d2be0 | 8293 | |
ba4481b5 | 8294 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8295 | #ifdef __cplusplus |
8296 | extern "C" | |
8297 | #endif | |
ba4481b5 | 8298 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 8299 | builtin and then its argument prototype would still apply. */ |
98418dba | 8300 | char maillock (); |
503d2be0 AS |
8301 | int |
8302 | main () | |
8303 | { | |
98418dba | 8304 | maillock (); |
503d2be0 AS |
8305 | ; |
8306 | return 0; | |
8307 | } | |
8308 | _ACEOF | |
8309 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 8310 | if { (eval echo "$as_me:8309: \"$ac_link\"") >&5 |
503d2be0 AS |
8311 | (eval $ac_link) 2>&5 |
8312 | ac_status=$? | |
598a2813 | 8313 | echo "$as_me:8312: \$? = $ac_status" >&5 |
503d2be0 AS |
8314 | (exit $ac_status); } && |
8315 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 8316 | { (eval echo "$as_me:8315: \"$ac_try\"") >&5 |
503d2be0 AS |
8317 | (eval $ac_try) 2>&5 |
8318 | ac_status=$? | |
598a2813 | 8319 | echo "$as_me:8318: \$? = $ac_status" >&5 |
503d2be0 | 8320 | (exit $ac_status); }; }; then |
98418dba | 8321 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
8322 | else |
8323 | echo "$as_me: failed program was:" >&5 | |
8324 | cat conftest.$ac_ext >&5 | |
98418dba CW |
8325 | ac_cv_lib_lockfile_maillock=no |
8326 | fi | |
8327 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8328 | LIBS=$ac_check_lib_save_LIBS | |
8329 | fi | |
598a2813 | 8330 | echo "$as_me:8329: result: $ac_cv_lib_lockfile_maillock" >&5 |
98418dba CW |
8331 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
8332 | if test $ac_cv_lib_lockfile_maillock = yes; then | |
925c2f3f | 8333 | cat >>confdefs.h <<EOF |
98418dba | 8334 | #define HAVE_LIBLOCKFILE 1 |
925c2f3f | 8335 | EOF |
98418dba CW |
8336 | |
8337 | LIBS="-llockfile $LIBS" | |
8338 | ||
8339 | fi | |
8340 | ||
8341 | # If we have the shared liblockfile, assume we must use it for mail | |
8342 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
8343 | # (no liblockfile.a installed), ensure that we don't need to. | |
8344 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
8345 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
8346 | set dummy liblockfile.so; ac_word=$2 | |
598a2813 | 8347 | echo "$as_me:8346: checking for $ac_word" >&5 |
98418dba CW |
8348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8349 | if test "${ac_cv_prog_liblockfile+set}" = set; then | |
8350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8351 | else | |
8352 | if test -n "$liblockfile"; then | |
8353 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
8354 | else | |
925c2f3f EZ |
8355 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
8356 | ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
8357 | for ac_dir in $ac_dummy; do | |
8358 | IFS=$ac_save_IFS | |
8359 | test -z "$ac_dir" && ac_dir=. | |
8360 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8361 | ac_cv_prog_liblockfile="yes" | |
598a2813 | 8362 | echo "$as_me:8361: found $ac_dir/$ac_word" >&5 |
925c2f3f | 8363 | break |
98418dba CW |
8364 | done |
8365 | ||
8366 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 8367 | fi |
503d2be0 | 8368 | fi |
98418dba CW |
8369 | liblockfile=$ac_cv_prog_liblockfile |
8370 | if test -n "$liblockfile"; then | |
598a2813 | 8371 | echo "$as_me:8370: result: $liblockfile" >&5 |
98418dba CW |
8372 | echo "${ECHO_T}$liblockfile" >&6 |
8373 | else | |
598a2813 | 8374 | echo "$as_me:8373: result: no" >&5 |
98418dba | 8375 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
8376 | fi |
8377 | ||
98418dba | 8378 | if test $ac_cv_prog_liblockfile = yes; then |
598a2813 | 8379 | { { echo "$as_me:8378: error: Shared liblockfile found but can't link against it. |
98418dba CW |
8380 | This probably means that movemail could lose mail. |
8381 | There may be a \`development' package to install containing liblockfile." >&5 | |
8382 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
8383 | This probably means that movemail could lose mail. | |
8384 | There may be a \`development' package to install containing liblockfile." >&2;} | |
8385 | { (exit 1); exit 1; }; } | |
b936fae4 | 8386 | else |
925c2f3f | 8387 | cat >>confdefs.h <<\EOF |
98418dba | 8388 | #define LIBMAIL -llockfile |
925c2f3f | 8389 | EOF |
457b792c | 8390 | |
98418dba CW |
8391 | fi |
8392 | else : | |
8393 | fi | |
503d2be0 | 8394 | |
98418dba CW |
8395 | for ac_func in touchlock |
8396 | do | |
8397 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 8398 | echo "$as_me:8397: checking for $ac_func" >&5 |
98418dba CW |
8399 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8400 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 8401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 8402 | else |
98418dba | 8403 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 8404 | #line 8398 "configure" |
457b792c | 8405 | #include "confdefs.h" |
98418dba CW |
8406 | /* System header to define __stub macros and hopefully few prototypes, |
8407 | which can conflict with char $ac_func (); below. */ | |
8408 | #include <assert.h> | |
457b792c | 8409 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8410 | #ifdef __cplusplus |
8411 | extern "C" | |
8412 | #endif | |
457b792c | 8413 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 8414 | builtin and then its argument prototype would still apply. */ |
98418dba CW |
8415 | char $ac_func (); |
8416 | char (*f) (); | |
8417 | ||
503d2be0 AS |
8418 | int |
8419 | main () | |
8420 | { | |
98418dba CW |
8421 | /* The GNU C library defines this for functions which it implements |
8422 | to always fail with ENOSYS. Some functions are actually named | |
8423 | something starting with __ and the normal name is an alias. */ | |
8424 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8425 | choke me | |
8426 | #else | |
8427 | f = $ac_func; | |
8428 | #endif | |
8429 | ||
503d2be0 AS |
8430 | ; |
8431 | return 0; | |
8432 | } | |
8433 | _ACEOF | |
8434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 8435 | if { (eval echo "$as_me:8434: \"$ac_link\"") >&5 |
503d2be0 AS |
8436 | (eval $ac_link) 2>&5 |
8437 | ac_status=$? | |
598a2813 | 8438 | echo "$as_me:8437: \$? = $ac_status" >&5 |
503d2be0 AS |
8439 | (exit $ac_status); } && |
8440 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 8441 | { (eval echo "$as_me:8440: \"$ac_try\"") >&5 |
503d2be0 AS |
8442 | (eval $ac_try) 2>&5 |
8443 | ac_status=$? | |
598a2813 | 8444 | echo "$as_me:8443: \$? = $ac_status" >&5 |
503d2be0 | 8445 | (exit $ac_status); }; }; then |
98418dba | 8446 | eval "$as_ac_var=yes" |
503d2be0 AS |
8447 | else |
8448 | echo "$as_me: failed program was:" >&5 | |
8449 | cat conftest.$ac_ext >&5 | |
98418dba | 8450 | eval "$as_ac_var=no" |
503d2be0 AS |
8451 | fi |
8452 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 8453 | fi |
598a2813 | 8454 | echo "$as_me:8453: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
8455 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8456 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 8457 | cat >>confdefs.h <<EOF |
98418dba | 8458 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 8459 | EOF |
457b792c | 8460 | |
457b792c | 8461 | fi |
98418dba | 8462 | done |
457b792c | 8463 | |
98418dba CW |
8464 | for ac_header in maillock.h |
8465 | do | |
8466 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
598a2813 | 8467 | echo "$as_me:8466: checking for $ac_header" >&5 |
98418dba CW |
8468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 8470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 8471 | else |
925c2f3f EZ |
8472 | cat >conftest.$ac_ext <<_ACEOF |
8473 | #line 8467 "configure" | |
ba4481b5 | 8474 | #include "confdefs.h" |
98418dba | 8475 | #include <$ac_header> |
503d2be0 | 8476 | _ACEOF |
598a2813 | 8477 | if { (eval echo "$as_me:8476: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 8478 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 8479 | ac_status=$? |
98418dba CW |
8480 | egrep -v '^ *\+' conftest.er1 >conftest.err |
8481 | rm -f conftest.er1 | |
8482 | cat conftest.err >&5 | |
598a2813 | 8483 | echo "$as_me:8482: \$? = $ac_status" >&5 |
98418dba CW |
8484 | (exit $ac_status); } >/dev/null; then |
8485 | if test -s conftest.err; then | |
8486 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8487 | else | |
8488 | ac_cpp_err= | |
8489 | fi | |
503d2be0 | 8490 | else |
98418dba | 8491 | ac_cpp_err=yes |
503d2be0 | 8492 | fi |
98418dba | 8493 | if test -z "$ac_cpp_err"; then |
925c2f3f | 8494 | eval "$as_ac_Header=yes" |
98418dba CW |
8495 | else |
8496 | echo "$as_me: failed program was:" >&5 | |
8497 | cat conftest.$ac_ext >&5 | |
925c2f3f | 8498 | eval "$as_ac_Header=no" |
503d2be0 | 8499 | fi |
98418dba | 8500 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 8501 | fi |
598a2813 | 8502 | echo "$as_me:8501: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 8503 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
98418dba | 8504 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
925c2f3f | 8505 | cat >>confdefs.h <<EOF |
98418dba | 8506 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 8507 | EOF |
48d4b120 | 8508 | |
ba4481b5 | 8509 | fi |
98418dba CW |
8510 | done |
8511 | ||
98418dba CW |
8512 | for ac_func in gethostname getdomainname dup2 \ |
8513 | rename closedir mkdir rmdir sysinfo \ | |
8514 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
8515 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
8516 | utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | |
8517 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ | |
8518 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
8519 | gai_strerror mkstemp getline getdelim | |
8520 | do | |
8521 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 8522 | echo "$as_me:8521: checking for $ac_func" >&5 |
98418dba CW |
8523 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8524 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 8525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 8526 | else |
503d2be0 | 8527 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 8528 | #line 8522 "configure" |
ba4481b5 | 8529 | #include "confdefs.h" |
98418dba CW |
8530 | /* System header to define __stub macros and hopefully few prototypes, |
8531 | which can conflict with char $ac_func (); below. */ | |
8532 | #include <assert.h> | |
ba4481b5 | 8533 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8534 | #ifdef __cplusplus |
8535 | extern "C" | |
8536 | #endif | |
ba4481b5 | 8537 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 8538 | builtin and then its argument prototype would still apply. */ |
98418dba CW |
8539 | char $ac_func (); |
8540 | char (*f) (); | |
8541 | ||
503d2be0 AS |
8542 | int |
8543 | main () | |
8544 | { | |
98418dba CW |
8545 | /* The GNU C library defines this for functions which it implements |
8546 | to always fail with ENOSYS. Some functions are actually named | |
8547 | something starting with __ and the normal name is an alias. */ | |
8548 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8549 | choke me | |
8550 | #else | |
8551 | f = $ac_func; | |
8552 | #endif | |
8553 | ||
503d2be0 AS |
8554 | ; |
8555 | return 0; | |
8556 | } | |
8557 | _ACEOF | |
8558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 8559 | if { (eval echo "$as_me:8558: \"$ac_link\"") >&5 |
503d2be0 AS |
8560 | (eval $ac_link) 2>&5 |
8561 | ac_status=$? | |
598a2813 | 8562 | echo "$as_me:8561: \$? = $ac_status" >&5 |
503d2be0 AS |
8563 | (exit $ac_status); } && |
8564 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 8565 | { (eval echo "$as_me:8564: \"$ac_try\"") >&5 |
503d2be0 AS |
8566 | (eval $ac_try) 2>&5 |
8567 | ac_status=$? | |
598a2813 | 8568 | echo "$as_me:8567: \$? = $ac_status" >&5 |
503d2be0 | 8569 | (exit $ac_status); }; }; then |
98418dba | 8570 | eval "$as_ac_var=yes" |
503d2be0 AS |
8571 | else |
8572 | echo "$as_me: failed program was:" >&5 | |
8573 | cat conftest.$ac_ext >&5 | |
98418dba | 8574 | eval "$as_ac_var=no" |
503d2be0 AS |
8575 | fi |
8576 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 8577 | fi |
598a2813 | 8578 | echo "$as_me:8577: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
8579 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8580 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 8581 | cat >>confdefs.h <<EOF |
98418dba | 8582 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 8583 | EOF |
ba4481b5 | 8584 | |
ba4481b5 | 8585 | fi |
98418dba | 8586 | done |
ba4481b5 | 8587 | |
98418dba CW |
8588 | for ac_header in sys/un.h |
8589 | do | |
8590 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
598a2813 | 8591 | echo "$as_me:8590: checking for $ac_header" >&5 |
98418dba CW |
8592 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8593 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 8595 | else |
925c2f3f EZ |
8596 | cat >conftest.$ac_ext <<_ACEOF |
8597 | #line 8591 "configure" | |
ba4481b5 | 8598 | #include "confdefs.h" |
98418dba | 8599 | #include <$ac_header> |
503d2be0 | 8600 | _ACEOF |
598a2813 | 8601 | if { (eval echo "$as_me:8600: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
8602 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8603 | ac_status=$? | |
8604 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8605 | rm -f conftest.er1 | |
8606 | cat conftest.err >&5 | |
598a2813 | 8607 | echo "$as_me:8606: \$? = $ac_status" >&5 |
503d2be0 AS |
8608 | (exit $ac_status); } >/dev/null; then |
8609 | if test -s conftest.err; then | |
8610 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8611 | else | |
8612 | ac_cpp_err= | |
8613 | fi | |
8614 | else | |
8615 | ac_cpp_err=yes | |
8616 | fi | |
8617 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 8618 | eval "$as_ac_Header=yes" |
ba4481b5 | 8619 | else |
503d2be0 | 8620 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 8621 | cat conftest.$ac_ext >&5 |
925c2f3f | 8622 | eval "$as_ac_Header=no" |
ba4481b5 | 8623 | fi |
503d2be0 | 8624 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 8625 | fi |
598a2813 | 8626 | echo "$as_me:8625: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
925c2f3f EZ |
8627 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8629 | cat >>confdefs.h <<EOF | |
8630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8631 | EOF | |
503d2be0 | 8632 | |
925c2f3f EZ |
8633 | fi |
8634 | done | |
8635 | ||
8636 | for ac_header in sys/time.h unistd.h | |
8637 | do | |
8638 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
598a2813 | 8639 | echo "$as_me:8638: checking for $ac_header" >&5 |
925c2f3f EZ |
8640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8643 | else | |
8644 | cat >conftest.$ac_ext <<_ACEOF | |
8645 | #line 8639 "configure" | |
ffe36136 | 8646 | #include "confdefs.h" |
98418dba | 8647 | #include <$ac_header> |
503d2be0 | 8648 | _ACEOF |
598a2813 | 8649 | if { (eval echo "$as_me:8648: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
8650 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8651 | ac_status=$? | |
8652 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8653 | rm -f conftest.er1 | |
8654 | cat conftest.err >&5 | |
598a2813 | 8655 | echo "$as_me:8654: \$? = $ac_status" >&5 |
503d2be0 AS |
8656 | (exit $ac_status); } >/dev/null; then |
8657 | if test -s conftest.err; then | |
8658 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8659 | else | |
8660 | ac_cpp_err= | |
8661 | fi | |
8662 | else | |
8663 | ac_cpp_err=yes | |
8664 | fi | |
8665 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 8666 | eval "$as_ac_Header=yes" |
98418dba CW |
8667 | else |
8668 | echo "$as_me: failed program was:" >&5 | |
8669 | cat conftest.$ac_ext >&5 | |
925c2f3f | 8670 | eval "$as_ac_Header=no" |
98418dba CW |
8671 | fi |
8672 | rm -f conftest.err conftest.$ac_ext | |
ffe36136 | 8673 | fi |
598a2813 | 8674 | echo "$as_me:8673: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 8675 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
98418dba | 8676 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
925c2f3f | 8677 | cat >>confdefs.h <<EOF |
98418dba | 8678 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 8679 | EOF |
98418dba CW |
8680 | |
8681 | fi | |
98418dba CW |
8682 | done |
8683 | ||
98418dba CW |
8684 | for ac_func in alarm |
8685 | do | |
8686 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 8687 | echo "$as_me:8686: checking for $ac_func" >&5 |
98418dba CW |
8688 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8689 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 8690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 8691 | else |
98418dba | 8692 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 8693 | #line 8687 "configure" |
ba4481b5 | 8694 | #include "confdefs.h" |
98418dba CW |
8695 | /* System header to define __stub macros and hopefully few prototypes, |
8696 | which can conflict with char $ac_func (); below. */ | |
8697 | #include <assert.h> | |
ba4481b5 | 8698 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8699 | #ifdef __cplusplus |
8700 | extern "C" | |
8701 | #endif | |
ba4481b5 | 8702 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 8703 | builtin and then its argument prototype would still apply. */ |
98418dba CW |
8704 | char $ac_func (); |
8705 | char (*f) (); | |
8706 | ||
503d2be0 AS |
8707 | int |
8708 | main () | |
8709 | { | |
98418dba CW |
8710 | /* The GNU C library defines this for functions which it implements |
8711 | to always fail with ENOSYS. Some functions are actually named | |
8712 | something starting with __ and the normal name is an alias. */ | |
8713 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8714 | choke me | |
8715 | #else | |
8716 | f = $ac_func; | |
8717 | #endif | |
8718 | ||
503d2be0 AS |
8719 | ; |
8720 | return 0; | |
8721 | } | |
8722 | _ACEOF | |
8723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 8724 | if { (eval echo "$as_me:8723: \"$ac_link\"") >&5 |
503d2be0 AS |
8725 | (eval $ac_link) 2>&5 |
8726 | ac_status=$? | |
598a2813 | 8727 | echo "$as_me:8726: \$? = $ac_status" >&5 |
503d2be0 AS |
8728 | (exit $ac_status); } && |
8729 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 8730 | { (eval echo "$as_me:8729: \"$ac_try\"") >&5 |
503d2be0 AS |
8731 | (eval $ac_try) 2>&5 |
8732 | ac_status=$? | |
598a2813 | 8733 | echo "$as_me:8732: \$? = $ac_status" >&5 |
503d2be0 | 8734 | (exit $ac_status); }; }; then |
98418dba | 8735 | eval "$as_ac_var=yes" |
503d2be0 AS |
8736 | else |
8737 | echo "$as_me: failed program was:" >&5 | |
8738 | cat conftest.$ac_ext >&5 | |
98418dba | 8739 | eval "$as_ac_var=no" |
503d2be0 AS |
8740 | fi |
8741 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
ffe36136 | 8742 | fi |
598a2813 | 8743 | echo "$as_me:8742: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
8744 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8745 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 8746 | cat >>confdefs.h <<EOF |
98418dba | 8747 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 8748 | EOF |
ffe36136 | 8749 | |
ba4481b5 | 8750 | fi |
98418dba | 8751 | done |
ba4481b5 | 8752 | |
598a2813 | 8753 | echo "$as_me:8752: checking for working mktime" >&5 |
98418dba CW |
8754 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
8755 | if test "${ac_cv_func_working_mktime+set}" = set; then | |
8756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8757 | else | |
8758 | if test "$cross_compiling" = yes; then | |
8759 | ac_cv_func_working_mktime=no | |
8760 | else | |
8761 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 8762 | #line 8756 "configure" |
98418dba CW |
8763 | #include "confdefs.h" |
8764 | /* Test program from Paul Eggert and Tony Leneis. */ | |
8765 | #if TIME_WITH_SYS_TIME | |
8766 | # include <sys/time.h> | |
8767 | # include <time.h> | |
8768 | #else | |
8769 | # if HAVE_SYS_TIME_H | |
8770 | # include <sys/time.h> | |
8771 | # else | |
8772 | # include <time.h> | |
8773 | # endif | |
8774 | #endif | |
ba4481b5 | 8775 | |
98418dba CW |
8776 | #if HAVE_UNISTD_H |
8777 | # include <unistd.h> | |
8778 | #endif | |
ba4481b5 | 8779 | |
98418dba CW |
8780 | #if !HAVE_ALARM |
8781 | # define alarm(X) /* empty */ | |
8782 | #endif | |
df645f7c | 8783 | |
98418dba CW |
8784 | /* Work around redefinition to rpl_putenv by other config tests. */ |
8785 | #undef putenv | |
df645f7c | 8786 | |
98418dba | 8787 | static time_t time_t_max; |
df645f7c | 8788 | |
98418dba CW |
8789 | /* Values we'll use to set the TZ environment variable. */ |
8790 | static const char *const tz_strings[] = { | |
8791 | (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
8792 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
8793 | }; | |
8794 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 8795 | |
98418dba CW |
8796 | /* Fail if mktime fails to convert a date in the spring-forward gap. |
8797 | Based on a problem report from Andreas Jaeger. */ | |
8798 | static void | |
8799 | spring_forward_gap () | |
8800 | { | |
8801 | /* glibc (up to about 1998-10-07) failed this test. */ | |
8802 | struct tm tm; | |
8803 | ||
8804 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
8805 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
8806 | on systems that don't support the Olson extension, or don't have the | |
8807 | full zoneinfo tables installed. */ | |
8808 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
8809 | ||
8810 | tm.tm_year = 98; | |
8811 | tm.tm_mon = 3; | |
8812 | tm.tm_mday = 5; | |
8813 | tm.tm_hour = 2; | |
8814 | tm.tm_min = 0; | |
8815 | tm.tm_sec = 0; | |
8816 | tm.tm_isdst = -1; | |
8817 | if (mktime (&tm) == (time_t)-1) | |
8818 | exit (1); | |
8819 | } | |
8820 | ||
8821 | static void | |
8822 | mktime_test (now) | |
8823 | time_t now; | |
8824 | { | |
8825 | struct tm *lt; | |
8826 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
8827 | exit (1); | |
8828 | now = time_t_max - now; | |
8829 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
8830 | exit (1); | |
8831 | } | |
8832 | ||
8833 | static void | |
8834 | irix_6_4_bug () | |
8835 | { | |
8836 | /* Based on code from Ariel Faigon. */ | |
8837 | struct tm tm; | |
8838 | tm.tm_year = 96; | |
8839 | tm.tm_mon = 3; | |
8840 | tm.tm_mday = 0; | |
8841 | tm.tm_hour = 0; | |
8842 | tm.tm_min = 0; | |
8843 | tm.tm_sec = 0; | |
8844 | tm.tm_isdst = -1; | |
8845 | mktime (&tm); | |
8846 | if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
8847 | exit (1); | |
8848 | } | |
8849 | ||
8850 | static void | |
8851 | bigtime_test (j) | |
8852 | int j; | |
8853 | { | |
8854 | struct tm tm; | |
8855 | time_t now; | |
8856 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
8857 | now = mktime (&tm); | |
8858 | if (now != (time_t) -1) | |
8859 | { | |
8860 | struct tm *lt = localtime (&now); | |
8861 | if (! (lt | |
8862 | && lt->tm_year == tm.tm_year | |
8863 | && lt->tm_mon == tm.tm_mon | |
8864 | && lt->tm_mday == tm.tm_mday | |
8865 | && lt->tm_hour == tm.tm_hour | |
8866 | && lt->tm_min == tm.tm_min | |
8867 | && lt->tm_sec == tm.tm_sec | |
8868 | && lt->tm_yday == tm.tm_yday | |
8869 | && lt->tm_wday == tm.tm_wday | |
8870 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
8871 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
8872 | exit (1); | |
8873 | } | |
8874 | } | |
8875 | ||
8876 | int | |
8877 | main () | |
8878 | { | |
8879 | time_t t, delta; | |
8880 | int i, j; | |
8881 | ||
8882 | /* This test makes some buggy mktime implementations loop. | |
8883 | Give up after 60 seconds; a mktime slower than that | |
8884 | isn't worth using anyway. */ | |
8885 | alarm (60); | |
8886 | ||
8887 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
8888 | continue; | |
8889 | time_t_max--; | |
8890 | delta = time_t_max / 997; /* a suitable prime number */ | |
8891 | for (i = 0; i < N_STRINGS; i++) | |
8892 | { | |
8893 | if (tz_strings[i]) | |
8894 | putenv (tz_strings[i]); | |
503d2be0 | 8895 | |
98418dba CW |
8896 | for (t = 0; t <= time_t_max - delta; t += delta) |
8897 | mktime_test (t); | |
8898 | mktime_test ((time_t) 60 * 60); | |
8899 | mktime_test ((time_t) 60 * 60 * 24); | |
8900 | ||
8901 | for (j = 1; 0 < j; j *= 2) | |
8902 | bigtime_test (j); | |
8903 | bigtime_test (j - 1); | |
8904 | } | |
8905 | irix_6_4_bug (); | |
8906 | spring_forward_gap (); | |
8907 | exit (0); | |
503d2be0 AS |
8908 | } |
8909 | _ACEOF | |
98418dba | 8910 | rm -f conftest$ac_exeext |
598a2813 | 8911 | if { (eval echo "$as_me:8910: \"$ac_link\"") >&5 |
503d2be0 AS |
8912 | (eval $ac_link) 2>&5 |
8913 | ac_status=$? | |
598a2813 | 8914 | echo "$as_me:8913: \$? = $ac_status" >&5 |
98418dba | 8915 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
598a2813 | 8916 | { (eval echo "$as_me:8915: \"$ac_try\"") >&5 |
503d2be0 AS |
8917 | (eval $ac_try) 2>&5 |
8918 | ac_status=$? | |
598a2813 | 8919 | echo "$as_me:8918: \$? = $ac_status" >&5 |
503d2be0 | 8920 | (exit $ac_status); }; }; then |
98418dba | 8921 | ac_cv_func_working_mktime=yes |
503d2be0 | 8922 | else |
98418dba CW |
8923 | echo "$as_me: program exited with status $ac_status" >&5 |
8924 | echo "$as_me: failed program was:" >&5 | |
503d2be0 | 8925 | cat conftest.$ac_ext >&5 |
98418dba | 8926 | ac_cv_func_working_mktime=no |
503d2be0 | 8927 | fi |
98418dba | 8928 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 8929 | fi |
ba4481b5 | 8930 | fi |
598a2813 | 8931 | echo "$as_me:8930: result: $ac_cv_func_working_mktime" >&5 |
98418dba CW |
8932 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
8933 | if test $ac_cv_func_working_mktime = no; then | |
8934 | LIBOBJS="$LIBOBJS mktime.$ac_objext" | |
ba4481b5 DL |
8935 | fi |
8936 | ||
98418dba | 8937 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 8938 | |
925c2f3f | 8939 | cat >>confdefs.h <<\EOF |
98418dba | 8940 | #define BROKEN_MKTIME 1 |
925c2f3f | 8941 | EOF |
ba4481b5 | 8942 | |
ba4481b5 | 8943 | fi |
503d2be0 | 8944 | |
98418dba CW |
8945 | ac_have_func=no # yes means we've found a way to get the load average. |
8946 | ||
8947 | ac_save_LIBS=$LIBS | |
8948 | ||
8949 | # Check for getloadavg, but be sure not to touch the cache variable. | |
598a2813 | 8950 | (echo "$as_me:8949: checking for getloadavg" >&5 |
98418dba CW |
8951 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
8952 | if test "${ac_cv_func_getloadavg+set}" = set; then | |
503d2be0 | 8953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 8954 | else |
503d2be0 | 8955 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 8956 | #line 8950 "configure" |
ba4481b5 | 8957 | #include "confdefs.h" |
98418dba CW |
8958 | /* System header to define __stub macros and hopefully few prototypes, |
8959 | which can conflict with char getloadavg (); below. */ | |
8960 | #include <assert.h> | |
ba4481b5 | 8961 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8962 | #ifdef __cplusplus |
8963 | extern "C" | |
8964 | #endif | |
ba4481b5 | 8965 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 8966 | builtin and then its argument prototype would still apply. */ |
98418dba CW |
8967 | char getloadavg (); |
8968 | char (*f) (); | |
8969 | ||
503d2be0 AS |
8970 | int |
8971 | main () | |
8972 | { | |
98418dba CW |
8973 | /* The GNU C library defines this for functions which it implements |
8974 | to always fail with ENOSYS. Some functions are actually named | |
8975 | something starting with __ and the normal name is an alias. */ | |
8976 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
8977 | choke me | |
8978 | #else | |
8979 | f = getloadavg; | |
8980 | #endif | |
8981 | ||
503d2be0 AS |
8982 | ; |
8983 | return 0; | |
8984 | } | |
8985 | _ACEOF | |
8986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 8987 | if { (eval echo "$as_me:8986: \"$ac_link\"") >&5 |
503d2be0 AS |
8988 | (eval $ac_link) 2>&5 |
8989 | ac_status=$? | |
598a2813 | 8990 | echo "$as_me:8989: \$? = $ac_status" >&5 |
503d2be0 AS |
8991 | (exit $ac_status); } && |
8992 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 8993 | { (eval echo "$as_me:8992: \"$ac_try\"") >&5 |
503d2be0 AS |
8994 | (eval $ac_try) 2>&5 |
8995 | ac_status=$? | |
598a2813 | 8996 | echo "$as_me:8995: \$? = $ac_status" >&5 |
503d2be0 | 8997 | (exit $ac_status); }; }; then |
98418dba | 8998 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
8999 | else |
9000 | echo "$as_me: failed program was:" >&5 | |
9001 | cat conftest.$ac_ext >&5 | |
98418dba | 9002 | ac_cv_func_getloadavg=no |
503d2be0 AS |
9003 | fi |
9004 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 9005 | fi |
598a2813 | 9006 | echo "$as_me:9005: result: $ac_cv_func_getloadavg" >&5 |
98418dba CW |
9007 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
9008 | if test $ac_cv_func_getloadavg = yes; then | |
9009 | exit 0 | |
9010 | else | |
9011 | exit 1 | |
ba4481b5 | 9012 | fi |
98418dba | 9013 | ) && ac_have_func=yes |
ba4481b5 | 9014 | |
98418dba | 9015 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 9016 | |
98418dba CW |
9017 | for ac_func in pstat_getdynamic |
9018 | do | |
9019 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 9020 | echo "$as_me:9019: checking for $ac_func" >&5 |
98418dba CW |
9021 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9022 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 9023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9024 | else |
503d2be0 | 9025 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 9026 | #line 9020 "configure" |
ba4481b5 | 9027 | #include "confdefs.h" |
98418dba CW |
9028 | /* System header to define __stub macros and hopefully few prototypes, |
9029 | which can conflict with char $ac_func (); below. */ | |
9030 | #include <assert.h> | |
ba4481b5 | 9031 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
9032 | #ifdef __cplusplus |
9033 | extern "C" | |
9034 | #endif | |
ba4481b5 | 9035 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 9036 | builtin and then its argument prototype would still apply. */ |
98418dba CW |
9037 | char $ac_func (); |
9038 | char (*f) (); | |
9039 | ||
503d2be0 AS |
9040 | int |
9041 | main () | |
9042 | { | |
98418dba CW |
9043 | /* The GNU C library defines this for functions which it implements |
9044 | to always fail with ENOSYS. Some functions are actually named | |
9045 | something starting with __ and the normal name is an alias. */ | |
9046 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9047 | choke me | |
9048 | #else | |
9049 | f = $ac_func; | |
9050 | #endif | |
9051 | ||
9052 | ; | |
9053 | return 0; | |
9054 | } | |
f21fadcc | 9055 | _ACEOF |
98418dba | 9056 | rm -f conftest.$ac_objext conftest$ac_exeext |
598a2813 | 9057 | if { (eval echo "$as_me:9056: \"$ac_link\"") >&5 |
98418dba | 9058 | (eval $ac_link) 2>&5 |
f21fadcc | 9059 | ac_status=$? |
598a2813 | 9060 | echo "$as_me:9059: \$? = $ac_status" >&5 |
98418dba CW |
9061 | (exit $ac_status); } && |
9062 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 9063 | { (eval echo "$as_me:9062: \"$ac_try\"") >&5 |
98418dba CW |
9064 | (eval $ac_try) 2>&5 |
9065 | ac_status=$? | |
598a2813 | 9066 | echo "$as_me:9065: \$? = $ac_status" >&5 |
98418dba CW |
9067 | (exit $ac_status); }; }; then |
9068 | eval "$as_ac_var=yes" | |
f21fadcc JD |
9069 | else |
9070 | echo "$as_me: failed program was:" >&5 | |
98418dba CW |
9071 | cat conftest.$ac_ext >&5 |
9072 | eval "$as_ac_var=no" | |
f21fadcc | 9073 | fi |
98418dba | 9074 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f21fadcc | 9075 | fi |
598a2813 | 9076 | echo "$as_me:9075: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
9077 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9078 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 9079 | cat >>confdefs.h <<EOF |
98418dba | 9080 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 9081 | EOF |
98418dba CW |
9082 | |
9083 | fi | |
9084 | done | |
9085 | ||
98418dba CW |
9086 | # Solaris has libkstat which does not require root. |
9087 | ||
598a2813 | 9088 | echo "$as_me:9087: checking for kstat_open in -lkstat" >&5 |
98418dba CW |
9089 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
9090 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
f21fadcc JD |
9091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9092 | else | |
9093 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 9094 | LIBS="-lkstat $LIBS" |
f21fadcc | 9095 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 9096 | #line 9090 "configure" |
f21fadcc JD |
9097 | #include "confdefs.h" |
9098 | ||
9099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9100 | #ifdef __cplusplus | |
9101 | extern "C" | |
9102 | #endif | |
9103 | /* We use char because int might match the return type of a gcc2 | |
9104 | builtin and then its argument prototype would still apply. */ | |
98418dba | 9105 | char kstat_open (); |
f21fadcc JD |
9106 | int |
9107 | main () | |
9108 | { | |
98418dba | 9109 | kstat_open (); |
f21fadcc JD |
9110 | ; |
9111 | return 0; | |
9112 | } | |
9113 | _ACEOF | |
9114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 9115 | if { (eval echo "$as_me:9114: \"$ac_link\"") >&5 |
f21fadcc JD |
9116 | (eval $ac_link) 2>&5 |
9117 | ac_status=$? | |
598a2813 | 9118 | echo "$as_me:9117: \$? = $ac_status" >&5 |
f21fadcc JD |
9119 | (exit $ac_status); } && |
9120 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 9121 | { (eval echo "$as_me:9120: \"$ac_try\"") >&5 |
f21fadcc JD |
9122 | (eval $ac_try) 2>&5 |
9123 | ac_status=$? | |
598a2813 | 9124 | echo "$as_me:9123: \$? = $ac_status" >&5 |
f21fadcc | 9125 | (exit $ac_status); }; }; then |
98418dba | 9126 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
9127 | else |
9128 | echo "$as_me: failed program was:" >&5 | |
9129 | cat conftest.$ac_ext >&5 | |
98418dba | 9130 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc JD |
9131 | fi |
9132 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9133 | LIBS=$ac_check_lib_save_LIBS | |
9134 | fi | |
598a2813 | 9135 | echo "$as_me:9134: result: $ac_cv_lib_kstat_kstat_open" >&5 |
98418dba CW |
9136 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
9137 | if test $ac_cv_lib_kstat_kstat_open = yes; then | |
925c2f3f | 9138 | cat >>confdefs.h <<EOF |
98418dba | 9139 | #define HAVE_LIBKSTAT 1 |
925c2f3f | 9140 | EOF |
f21fadcc | 9141 | |
98418dba | 9142 | LIBS="-lkstat $LIBS" |
f21fadcc | 9143 | |
f21fadcc JD |
9144 | fi |
9145 | ||
98418dba CW |
9146 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
9147 | ||
9148 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
9149 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
9150 | # to get the right answer into the cache. | |
9151 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
9152 | if test $ac_have_func = no; then | |
598a2813 | 9153 | echo "$as_me:9152: checking for elf_begin in -lelf" >&5 |
98418dba CW |
9154 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
9155 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
503d2be0 | 9156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9157 | else |
98418dba CW |
9158 | ac_check_lib_save_LIBS=$LIBS |
9159 | LIBS="-lelf $LIBS" | |
9160 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 9161 | #line 9155 "configure" |
ba4481b5 | 9162 | #include "confdefs.h" |
98418dba CW |
9163 | |
9164 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9165 | #ifdef __cplusplus | |
9166 | extern "C" | |
9167 | #endif | |
9168 | /* We use char because int might match the return type of a gcc2 | |
9169 | builtin and then its argument prototype would still apply. */ | |
9170 | char elf_begin (); | |
503d2be0 AS |
9171 | int |
9172 | main () | |
9173 | { | |
98418dba | 9174 | elf_begin (); |
503d2be0 AS |
9175 | ; |
9176 | return 0; | |
9177 | } | |
9178 | _ACEOF | |
9179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 9180 | if { (eval echo "$as_me:9179: \"$ac_link\"") >&5 |
503d2be0 AS |
9181 | (eval $ac_link) 2>&5 |
9182 | ac_status=$? | |
598a2813 | 9183 | echo "$as_me:9182: \$? = $ac_status" >&5 |
503d2be0 AS |
9184 | (exit $ac_status); } && |
9185 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 9186 | { (eval echo "$as_me:9185: \"$ac_try\"") >&5 |
503d2be0 AS |
9187 | (eval $ac_try) 2>&5 |
9188 | ac_status=$? | |
598a2813 | 9189 | echo "$as_me:9188: \$? = $ac_status" >&5 |
503d2be0 | 9190 | (exit $ac_status); }; }; then |
98418dba | 9191 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 9192 | else |
503d2be0 AS |
9193 | echo "$as_me: failed program was:" >&5 |
9194 | cat conftest.$ac_ext >&5 | |
98418dba | 9195 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 9196 | fi |
503d2be0 | 9197 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba | 9198 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 9199 | fi |
598a2813 | 9200 | echo "$as_me:9199: result: $ac_cv_lib_elf_elf_begin" >&5 |
98418dba CW |
9201 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
9202 | if test $ac_cv_lib_elf_elf_begin = yes; then | |
9203 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
9204 | fi |
9205 | ||
98418dba CW |
9206 | fi |
9207 | if test $ac_have_func = no; then | |
598a2813 | 9208 | echo "$as_me:9207: checking for kvm_open in -lkvm" >&5 |
98418dba CW |
9209 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
9210 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
503d2be0 | 9211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9212 | else |
98418dba CW |
9213 | ac_check_lib_save_LIBS=$LIBS |
9214 | LIBS="-lkvm $LIBS" | |
9215 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 9216 | #line 9210 "configure" |
ba4481b5 | 9217 | #include "confdefs.h" |
98418dba CW |
9218 | |
9219 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9220 | #ifdef __cplusplus | |
9221 | extern "C" | |
9222 | #endif | |
9223 | /* We use char because int might match the return type of a gcc2 | |
9224 | builtin and then its argument prototype would still apply. */ | |
9225 | char kvm_open (); | |
503d2be0 AS |
9226 | int |
9227 | main () | |
9228 | { | |
98418dba | 9229 | kvm_open (); |
503d2be0 AS |
9230 | ; |
9231 | return 0; | |
9232 | } | |
9233 | _ACEOF | |
9234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 9235 | if { (eval echo "$as_me:9234: \"$ac_link\"") >&5 |
503d2be0 AS |
9236 | (eval $ac_link) 2>&5 |
9237 | ac_status=$? | |
598a2813 | 9238 | echo "$as_me:9237: \$? = $ac_status" >&5 |
503d2be0 AS |
9239 | (exit $ac_status); } && |
9240 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 9241 | { (eval echo "$as_me:9240: \"$ac_try\"") >&5 |
503d2be0 AS |
9242 | (eval $ac_try) 2>&5 |
9243 | ac_status=$? | |
598a2813 | 9244 | echo "$as_me:9243: \$? = $ac_status" >&5 |
503d2be0 | 9245 | (exit $ac_status); }; }; then |
98418dba | 9246 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
9247 | else |
9248 | echo "$as_me: failed program was:" >&5 | |
9249 | cat conftest.$ac_ext >&5 | |
98418dba | 9250 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 AS |
9251 | fi |
9252 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
98418dba | 9253 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 9254 | fi |
598a2813 | 9255 | echo "$as_me:9254: result: $ac_cv_lib_kvm_kvm_open" >&5 |
98418dba CW |
9256 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
9257 | if test $ac_cv_lib_kvm_kvm_open = yes; then | |
9258 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
9259 | fi |
9260 | ||
98418dba | 9261 | # Check for the 4.4BSD definition of getloadavg. |
598a2813 | 9262 | echo "$as_me:9261: checking for getloadavg in -lutil" >&5 |
98418dba CW |
9263 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
9264 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
503d2be0 | 9265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9266 | else |
98418dba CW |
9267 | ac_check_lib_save_LIBS=$LIBS |
9268 | LIBS="-lutil $LIBS" | |
9269 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 9270 | #line 9264 "configure" |
ba4481b5 | 9271 | #include "confdefs.h" |
98418dba CW |
9272 | |
9273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9274 | #ifdef __cplusplus | |
9275 | extern "C" | |
9276 | #endif | |
9277 | /* We use char because int might match the return type of a gcc2 | |
9278 | builtin and then its argument prototype would still apply. */ | |
9279 | char getloadavg (); | |
503d2be0 AS |
9280 | int |
9281 | main () | |
9282 | { | |
98418dba | 9283 | getloadavg (); |
503d2be0 AS |
9284 | ; |
9285 | return 0; | |
9286 | } | |
9287 | _ACEOF | |
9288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 9289 | if { (eval echo "$as_me:9288: \"$ac_link\"") >&5 |
503d2be0 AS |
9290 | (eval $ac_link) 2>&5 |
9291 | ac_status=$? | |
598a2813 | 9292 | echo "$as_me:9291: \$? = $ac_status" >&5 |
503d2be0 AS |
9293 | (exit $ac_status); } && |
9294 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 9295 | { (eval echo "$as_me:9294: \"$ac_try\"") >&5 |
503d2be0 AS |
9296 | (eval $ac_try) 2>&5 |
9297 | ac_status=$? | |
598a2813 | 9298 | echo "$as_me:9297: \$? = $ac_status" >&5 |
503d2be0 | 9299 | (exit $ac_status); }; }; then |
98418dba | 9300 | ac_cv_lib_util_getloadavg=yes |
ba4481b5 | 9301 | else |
503d2be0 AS |
9302 | echo "$as_me: failed program was:" >&5 |
9303 | cat conftest.$ac_ext >&5 | |
98418dba | 9304 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 9305 | fi |
503d2be0 | 9306 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
9307 | LIBS=$ac_check_lib_save_LIBS |
9308 | fi | |
598a2813 | 9309 | echo "$as_me:9308: result: $ac_cv_lib_util_getloadavg" >&5 |
98418dba CW |
9310 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
9311 | if test $ac_cv_lib_util_getloadavg = yes; then | |
9312 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 9313 | fi |
503d2be0 | 9314 | |
98418dba | 9315 | fi |
ba4481b5 | 9316 | |
98418dba CW |
9317 | if test $ac_have_func = no; then |
9318 | # There is a commonly available library for RS/6000 AIX. | |
9319 | # Since it is not a standard part of AIX, it might be installed locally. | |
9320 | ac_getloadavg_LIBS=$LIBS | |
9321 | LIBS="-L/usr/local/lib $LIBS" | |
598a2813 | 9322 | echo "$as_me:9321: checking for getloadavg in -lgetloadavg" >&5 |
98418dba CW |
9323 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
9324 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
503d2be0 | 9325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9326 | else |
98418dba CW |
9327 | ac_check_lib_save_LIBS=$LIBS |
9328 | LIBS="-lgetloadavg $LIBS" | |
9329 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 9330 | #line 9324 "configure" |
ba4481b5 | 9331 | #include "confdefs.h" |
ba4481b5 | 9332 | |
98418dba CW |
9333 | /* Override any gcc2 internal prototype to avoid an error. */ |
9334 | #ifdef __cplusplus | |
9335 | extern "C" | |
9336 | #endif | |
9337 | /* We use char because int might match the return type of a gcc2 | |
9338 | builtin and then its argument prototype would still apply. */ | |
9339 | char getloadavg (); | |
98418dba CW |
9340 | int |
9341 | main () | |
9342 | { | |
9343 | getloadavg (); | |
9344 | ; | |
9345 | return 0; | |
9346 | } | |
503d2be0 | 9347 | _ACEOF |
98418dba | 9348 | rm -f conftest.$ac_objext conftest$ac_exeext |
598a2813 | 9349 | if { (eval echo "$as_me:9348: \"$ac_link\"") >&5 |
98418dba CW |
9350 | (eval $ac_link) 2>&5 |
9351 | ac_status=$? | |
598a2813 | 9352 | echo "$as_me:9351: \$? = $ac_status" >&5 |
98418dba CW |
9353 | (exit $ac_status); } && |
9354 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 9355 | { (eval echo "$as_me:9354: \"$ac_try\"") >&5 |
98418dba CW |
9356 | (eval $ac_try) 2>&5 |
9357 | ac_status=$? | |
598a2813 | 9358 | echo "$as_me:9357: \$? = $ac_status" >&5 |
98418dba CW |
9359 | (exit $ac_status); }; }; then |
9360 | ac_cv_lib_getloadavg_getloadavg=yes | |
ba4481b5 | 9361 | else |
98418dba CW |
9362 | echo "$as_me: failed program was:" >&5 |
9363 | cat conftest.$ac_ext >&5 | |
9364 | ac_cv_lib_getloadavg_getloadavg=no | |
9365 | fi | |
9366 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9367 | LIBS=$ac_check_lib_save_LIBS | |
9368 | fi | |
598a2813 | 9369 | echo "$as_me:9368: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
98418dba CW |
9370 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
9371 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
9372 | LIBS="-lgetloadavg $LIBS" | |
9373 | else | |
9374 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 9375 | fi |
ba4481b5 DL |
9376 | |
9377 | fi | |
98418dba CW |
9378 | |
9379 | # Make sure it is really in the library, if we think we found it, | |
9380 | # otherwise set up the replacement function. | |
9381 | ||
9382 | for ac_func in getloadavg | |
9383 | do | |
9384 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 9385 | echo "$as_me:9384: checking for $ac_func" >&5 |
503d2be0 AS |
9386 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9387 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 9389 | else |
503d2be0 | 9390 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 9391 | #line 9385 "configure" |
ba4481b5 DL |
9392 | #include "confdefs.h" |
9393 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 9394 | which can conflict with char $ac_func (); below. */ |
ba4481b5 DL |
9395 | #include <assert.h> |
9396 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
9397 | #ifdef __cplusplus |
9398 | extern "C" | |
9399 | #endif | |
ba4481b5 | 9400 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
9401 | builtin and then its argument prototype would still apply. */ |
9402 | char $ac_func (); | |
9403 | char (*f) (); | |
ba4481b5 | 9404 | |
503d2be0 AS |
9405 | int |
9406 | main () | |
9407 | { | |
ba4481b5 DL |
9408 | /* The GNU C library defines this for functions which it implements |
9409 | to always fail with ENOSYS. Some functions are actually named | |
9410 | something starting with __ and the normal name is an alias. */ | |
9411 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9412 | choke me | |
9413 | #else | |
503d2be0 | 9414 | f = $ac_func; |
ba4481b5 DL |
9415 | #endif |
9416 | ||
503d2be0 AS |
9417 | ; |
9418 | return 0; | |
9419 | } | |
9420 | _ACEOF | |
9421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 9422 | if { (eval echo "$as_me:9421: \"$ac_link\"") >&5 |
503d2be0 AS |
9423 | (eval $ac_link) 2>&5 |
9424 | ac_status=$? | |
598a2813 | 9425 | echo "$as_me:9424: \$? = $ac_status" >&5 |
503d2be0 AS |
9426 | (exit $ac_status); } && |
9427 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 9428 | { (eval echo "$as_me:9427: \"$ac_try\"") >&5 |
503d2be0 AS |
9429 | (eval $ac_try) 2>&5 |
9430 | ac_status=$? | |
598a2813 | 9431 | echo "$as_me:9430: \$? = $ac_status" >&5 |
503d2be0 AS |
9432 | (exit $ac_status); }; }; then |
9433 | eval "$as_ac_var=yes" | |
9434 | else | |
9435 | echo "$as_me: failed program was:" >&5 | |
9436 | cat conftest.$ac_ext >&5 | |
9437 | eval "$as_ac_var=no" | |
9438 | fi | |
9439 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9440 | fi | |
598a2813 | 9441 | echo "$as_me:9440: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
9442 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9443 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 9444 | cat >>confdefs.h <<EOF |
98418dba | 9445 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 9446 | EOF |
503d2be0 | 9447 | |
98418dba CW |
9448 | else |
9449 | LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
ba4481b5 | 9450 | |
925c2f3f | 9451 | cat >>confdefs.h <<\EOF |
98418dba | 9452 | #define C_GETLOADAVG 1 |
925c2f3f | 9453 | EOF |
ba4481b5 | 9454 | |
98418dba CW |
9455 | # Figure out what our getloadavg.c needs. |
9456 | ac_have_func=no | |
598a2813 | 9457 | echo "$as_me:9456: checking for sys/dg_sys_info.h" >&5 |
98418dba CW |
9458 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
9459 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
503d2be0 | 9460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9461 | else |
925c2f3f EZ |
9462 | cat >conftest.$ac_ext <<_ACEOF |
9463 | #line 9457 "configure" | |
98418dba CW |
9464 | #include "confdefs.h" |
9465 | #include <sys/dg_sys_info.h> | |
9466 | _ACEOF | |
598a2813 | 9467 | if { (eval echo "$as_me:9466: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
9468 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9469 | ac_status=$? | |
9470 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9471 | rm -f conftest.er1 | |
9472 | cat conftest.err >&5 | |
598a2813 | 9473 | echo "$as_me:9472: \$? = $ac_status" >&5 |
98418dba CW |
9474 | (exit $ac_status); } >/dev/null; then |
9475 | if test -s conftest.err; then | |
9476 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9477 | else | |
9478 | ac_cpp_err= | |
9479 | fi | |
9480 | else | |
9481 | ac_cpp_err=yes | |
ba4481b5 | 9482 | fi |
98418dba | 9483 | if test -z "$ac_cpp_err"; then |
925c2f3f | 9484 | ac_cv_header_sys_dg_sys_info_h=yes |
98418dba CW |
9485 | else |
9486 | echo "$as_me: failed program was:" >&5 | |
9487 | cat conftest.$ac_ext >&5 | |
925c2f3f | 9488 | ac_cv_header_sys_dg_sys_info_h=no |
ba4481b5 | 9489 | fi |
98418dba | 9490 | rm -f conftest.err conftest.$ac_ext |
98418dba | 9491 | fi |
598a2813 | 9492 | echo "$as_me:9491: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
98418dba | 9493 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
98418dba CW |
9494 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
9495 | ac_have_func=yes | |
ba4481b5 | 9496 | |
925c2f3f | 9497 | cat >>confdefs.h <<\EOF |
98418dba | 9498 | #define DGUX 1 |
925c2f3f | 9499 | EOF |
503d2be0 | 9500 | |
598a2813 | 9501 | echo "$as_me:9500: checking for dg_sys_info in -ldgc" >&5 |
98418dba CW |
9502 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
9503 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
503d2be0 | 9504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 9505 | else |
503d2be0 | 9506 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 9507 | LIBS="-ldgc $LIBS" |
503d2be0 | 9508 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 9509 | #line 9503 "configure" |
ba4481b5 | 9510 | #include "confdefs.h" |
503d2be0 | 9511 | |
ba4481b5 | 9512 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
9513 | #ifdef __cplusplus |
9514 | extern "C" | |
9515 | #endif | |
ba4481b5 | 9516 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 9517 | builtin and then its argument prototype would still apply. */ |
98418dba | 9518 | char dg_sys_info (); |
503d2be0 AS |
9519 | int |
9520 | main () | |
9521 | { | |
98418dba | 9522 | dg_sys_info (); |
503d2be0 AS |
9523 | ; |
9524 | return 0; | |
9525 | } | |
9526 | _ACEOF | |
9527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 9528 | if { (eval echo "$as_me:9527: \"$ac_link\"") >&5 |
503d2be0 AS |
9529 | (eval $ac_link) 2>&5 |
9530 | ac_status=$? | |
598a2813 | 9531 | echo "$as_me:9530: \$? = $ac_status" >&5 |
503d2be0 AS |
9532 | (exit $ac_status); } && |
9533 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 9534 | { (eval echo "$as_me:9533: \"$ac_try\"") >&5 |
503d2be0 AS |
9535 | (eval $ac_try) 2>&5 |
9536 | ac_status=$? | |
598a2813 | 9537 | echo "$as_me:9536: \$? = $ac_status" >&5 |
503d2be0 | 9538 | (exit $ac_status); }; }; then |
98418dba | 9539 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
9540 | else |
9541 | echo "$as_me: failed program was:" >&5 | |
9542 | cat conftest.$ac_ext >&5 | |
98418dba | 9543 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 AS |
9544 | fi |
9545 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9546 | LIBS=$ac_check_lib_save_LIBS | |
9547 | fi | |
598a2813 | 9548 | echo "$as_me:9547: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
98418dba CW |
9549 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
9550 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
925c2f3f | 9551 | cat >>confdefs.h <<EOF |
98418dba | 9552 | #define HAVE_LIBDGC 1 |
925c2f3f | 9553 | EOF |
ba4481b5 | 9554 | |
98418dba | 9555 | LIBS="-ldgc $LIBS" |
ba4481b5 | 9556 | |
ba4481b5 DL |
9557 | fi |
9558 | ||
98418dba | 9559 | fi |
503d2be0 | 9560 | |
598a2813 | 9561 | echo "$as_me:9560: checking for locale.h" >&5 |
98418dba CW |
9562 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
9563 | if test "${ac_cv_header_locale_h+set}" = set; then | |
503d2be0 | 9564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
503d2be0 | 9565 | else |
925c2f3f EZ |
9566 | cat >conftest.$ac_ext <<_ACEOF |
9567 | #line 9561 "configure" | |
ba4481b5 | 9568 | #include "confdefs.h" |
98418dba | 9569 | #include <locale.h> |
503d2be0 | 9570 | _ACEOF |
598a2813 | 9571 | if { (eval echo "$as_me:9570: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 9572 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 9573 | ac_status=$? |
98418dba CW |
9574 | egrep -v '^ *\+' conftest.er1 >conftest.err |
9575 | rm -f conftest.er1 | |
9576 | cat conftest.err >&5 | |
598a2813 | 9577 | echo "$as_me:9576: \$? = $ac_status" >&5 |
98418dba CW |
9578 | (exit $ac_status); } >/dev/null; then |
9579 | if test -s conftest.err; then | |
9580 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9581 | else | |
9582 | ac_cpp_err= | |
9583 | fi | |
503d2be0 | 9584 | else |
98418dba | 9585 | ac_cpp_err=yes |
503d2be0 | 9586 | fi |
98418dba | 9587 | if test -z "$ac_cpp_err"; then |
925c2f3f | 9588 | ac_cv_header_locale_h=yes |
98418dba CW |
9589 | else |
9590 | echo "$as_me: failed program was:" >&5 | |
9591 | cat conftest.$ac_ext >&5 | |
925c2f3f | 9592 | ac_cv_header_locale_h=no |
ba4481b5 | 9593 | fi |
98418dba | 9594 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 9595 | fi |
598a2813 | 9596 | echo "$as_me:9595: result: $ac_cv_header_locale_h" >&5 |
98418dba CW |
9597 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
9598 | ||
98418dba | 9599 | for ac_func in setlocale |
ba4481b5 | 9600 | do |
503d2be0 | 9601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
598a2813 | 9602 | echo "$as_me:9601: checking for $ac_func" >&5 |
503d2be0 AS |
9603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9604 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 9606 | else |
503d2be0 | 9607 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 9608 | #line 9602 "configure" |
ba4481b5 DL |
9609 | #include "confdefs.h" |
9610 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 9611 | which can conflict with char $ac_func (); below. */ |
ba4481b5 DL |
9612 | #include <assert.h> |
9613 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
9614 | #ifdef __cplusplus |
9615 | extern "C" | |
9616 | #endif | |
ba4481b5 | 9617 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
9618 | builtin and then its argument prototype would still apply. */ |
9619 | char $ac_func (); | |
9620 | char (*f) (); | |
ba4481b5 | 9621 | |
503d2be0 AS |
9622 | int |
9623 | main () | |
9624 | { | |
ba4481b5 DL |
9625 | /* The GNU C library defines this for functions which it implements |
9626 | to always fail with ENOSYS. Some functions are actually named | |
9627 | something starting with __ and the normal name is an alias. */ | |
9628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9629 | choke me | |
9630 | #else | |
503d2be0 | 9631 | f = $ac_func; |
ba4481b5 DL |
9632 | #endif |
9633 | ||
503d2be0 AS |
9634 | ; |
9635 | return 0; | |
9636 | } | |
9637 | _ACEOF | |
9638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 9639 | if { (eval echo "$as_me:9638: \"$ac_link\"") >&5 |
503d2be0 AS |
9640 | (eval $ac_link) 2>&5 |
9641 | ac_status=$? | |
598a2813 | 9642 | echo "$as_me:9641: \$? = $ac_status" >&5 |
503d2be0 AS |
9643 | (exit $ac_status); } && |
9644 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 9645 | { (eval echo "$as_me:9644: \"$ac_try\"") >&5 |
503d2be0 AS |
9646 | (eval $ac_try) 2>&5 |
9647 | ac_status=$? | |
598a2813 | 9648 | echo "$as_me:9647: \$? = $ac_status" >&5 |
503d2be0 AS |
9649 | (exit $ac_status); }; }; then |
9650 | eval "$as_ac_var=yes" | |
9651 | else | |
9652 | echo "$as_me: failed program was:" >&5 | |
9653 | cat conftest.$ac_ext >&5 | |
9654 | eval "$as_ac_var=no" | |
9655 | fi | |
9656 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9657 | fi | |
598a2813 | 9658 | echo "$as_me:9657: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
9659 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9660 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 9661 | cat >>confdefs.h <<EOF |
503d2be0 | 9662 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 9663 | EOF |
ba4481b5 | 9664 | |
ba4481b5 DL |
9665 | fi |
9666 | done | |
9667 | ||
98418dba CW |
9668 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
9669 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
9670 | # Irix 4.0.5F has the header but not the library. | |
9671 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
9672 | ac_have_func=yes | |
9673 | ||
925c2f3f | 9674 | cat >>confdefs.h <<\EOF |
98418dba | 9675 | #define SVR4 1 |
925c2f3f | 9676 | EOF |
98418dba CW |
9677 | |
9678 | fi | |
9679 | ||
9680 | if test $ac_have_func = no; then | |
598a2813 | 9681 | echo "$as_me:9680: checking for inq_stats/cpustats.h" >&5 |
98418dba CW |
9682 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
9683 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
503d2be0 | 9684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba | 9685 | else |
925c2f3f EZ |
9686 | cat >conftest.$ac_ext <<_ACEOF |
9687 | #line 9681 "configure" | |
98418dba CW |
9688 | #include "confdefs.h" |
9689 | #include <inq_stats/cpustats.h> | |
503d2be0 | 9690 | _ACEOF |
598a2813 | 9691 | if { (eval echo "$as_me:9690: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
9692 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9693 | ac_status=$? | |
9694 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9695 | rm -f conftest.er1 | |
9696 | cat conftest.err >&5 | |
598a2813 | 9697 | echo "$as_me:9696: \$? = $ac_status" >&5 |
503d2be0 AS |
9698 | (exit $ac_status); } >/dev/null; then |
9699 | if test -s conftest.err; then | |
9700 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9701 | else | |
9702 | ac_cpp_err= | |
9703 | fi | |
9704 | else | |
9705 | ac_cpp_err=yes | |
9706 | fi | |
9707 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 9708 | ac_cv_header_inq_stats_cpustats_h=yes |
503d2be0 AS |
9709 | else |
9710 | echo "$as_me: failed program was:" >&5 | |
ba4481b5 | 9711 | cat conftest.$ac_ext >&5 |
925c2f3f | 9712 | ac_cv_header_inq_stats_cpustats_h=no |
ba4481b5 | 9713 | fi |
503d2be0 | 9714 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 9715 | fi |
598a2813 | 9716 | echo "$as_me:9715: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
98418dba | 9717 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
98418dba CW |
9718 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
9719 | ac_have_func=yes | |
ba4481b5 | 9720 | |
925c2f3f | 9721 | cat >>confdefs.h <<\EOF |
98418dba | 9722 | #define UMAX 1 |
925c2f3f | 9723 | EOF |
98418dba | 9724 | |
925c2f3f | 9725 | cat >>confdefs.h <<\EOF |
98418dba | 9726 | #define UMAX4_3 1 |
925c2f3f | 9727 | EOF |
98418dba CW |
9728 | |
9729 | fi | |
9730 | ||
98418dba CW |
9731 | fi |
9732 | ||
9733 | if test $ac_have_func = no; then | |
598a2813 | 9734 | echo "$as_me:9733: checking for sys/cpustats.h" >&5 |
98418dba CW |
9735 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
9736 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
503d2be0 | 9737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
503d2be0 | 9738 | else |
925c2f3f EZ |
9739 | cat >conftest.$ac_ext <<_ACEOF |
9740 | #line 9734 "configure" | |
98418dba CW |
9741 | #include "confdefs.h" |
9742 | #include <sys/cpustats.h> | |
9743 | _ACEOF | |
598a2813 | 9744 | if { (eval echo "$as_me:9743: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
9745 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9746 | ac_status=$? | |
9747 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9748 | rm -f conftest.er1 | |
9749 | cat conftest.err >&5 | |
598a2813 | 9750 | echo "$as_me:9749: \$? = $ac_status" >&5 |
98418dba CW |
9751 | (exit $ac_status); } >/dev/null; then |
9752 | if test -s conftest.err; then | |
9753 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9754 | else | |
9755 | ac_cpp_err= | |
9756 | fi | |
9757 | else | |
9758 | ac_cpp_err=yes | |
503d2be0 | 9759 | fi |
98418dba | 9760 | if test -z "$ac_cpp_err"; then |
925c2f3f | 9761 | ac_cv_header_sys_cpustats_h=yes |
98418dba CW |
9762 | else |
9763 | echo "$as_me: failed program was:" >&5 | |
9764 | cat conftest.$ac_ext >&5 | |
925c2f3f | 9765 | ac_cv_header_sys_cpustats_h=no |
98418dba CW |
9766 | fi |
9767 | rm -f conftest.err conftest.$ac_ext | |
98418dba | 9768 | fi |
598a2813 | 9769 | echo "$as_me:9768: result: $ac_cv_header_sys_cpustats_h" >&5 |
98418dba | 9770 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
98418dba | 9771 | if test $ac_cv_header_sys_cpustats_h = yes; then |
925c2f3f | 9772 | ac_have_func=yes; cat >>confdefs.h <<\EOF |
98418dba | 9773 | #define UMAX 1 |
925c2f3f | 9774 | EOF |
ba4481b5 | 9775 | |
98418dba CW |
9776 | fi |
9777 | ||
98418dba CW |
9778 | fi |
9779 | ||
9780 | if test $ac_have_func = no; then | |
9781 | ||
9782 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
9783 | do |
9784 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
598a2813 | 9785 | echo "$as_me:9784: checking for $ac_header" >&5 |
2c9dccc9 PJ |
9786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 9789 | else |
925c2f3f EZ |
9790 | cat >conftest.$ac_ext <<_ACEOF |
9791 | #line 9785 "configure" | |
2c9dccc9 PJ |
9792 | #include "confdefs.h" |
9793 | #include <$ac_header> | |
9794 | _ACEOF | |
598a2813 | 9795 | if { (eval echo "$as_me:9794: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2c9dccc9 PJ |
9796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9797 | ac_status=$? | |
9798 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9799 | rm -f conftest.er1 | |
9800 | cat conftest.err >&5 | |
598a2813 | 9801 | echo "$as_me:9800: \$? = $ac_status" >&5 |
2c9dccc9 PJ |
9802 | (exit $ac_status); } >/dev/null; then |
9803 | if test -s conftest.err; then | |
9804 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9805 | else | |
9806 | ac_cpp_err= | |
9807 | fi | |
9808 | else | |
9809 | ac_cpp_err=yes | |
9810 | fi | |
9811 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 9812 | eval "$as_ac_Header=yes" |
2c9dccc9 PJ |
9813 | else |
9814 | echo "$as_me: failed program was:" >&5 | |
9815 | cat conftest.$ac_ext >&5 | |
925c2f3f | 9816 | eval "$as_ac_Header=no" |
2c9dccc9 PJ |
9817 | fi |
9818 | rm -f conftest.err conftest.$ac_ext | |
9819 | fi | |
598a2813 | 9820 | echo "$as_me:9819: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2c9dccc9 PJ |
9821 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9822 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
925c2f3f | 9823 | cat >>confdefs.h <<EOF |
2c9dccc9 | 9824 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 9825 | EOF |
2c9dccc9 PJ |
9826 | |
9827 | fi | |
9828 | done | |
9829 | ||
98418dba CW |
9830 | fi |
9831 | ||
98418dba | 9832 | for ac_header in nlist.h |
b5de8dc0 | 9833 | do |
503d2be0 | 9834 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
598a2813 | 9835 | echo "$as_me:9834: checking for $ac_header" >&5 |
925c2f3f EZ |
9836 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9837 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9839 | else | |
9840 | cat >conftest.$ac_ext <<_ACEOF | |
9841 | #line 9835 "configure" | |
503d2be0 AS |
9842 | #include "confdefs.h" |
9843 | #include <$ac_header> | |
9844 | _ACEOF | |
598a2813 | 9845 | if { (eval echo "$as_me:9844: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
9846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9847 | ac_status=$? | |
9848 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9849 | rm -f conftest.er1 | |
9850 | cat conftest.err >&5 | |
598a2813 | 9851 | echo "$as_me:9850: \$? = $ac_status" >&5 |
503d2be0 AS |
9852 | (exit $ac_status); } >/dev/null; then |
9853 | if test -s conftest.err; then | |
9854 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9855 | else | |
9856 | ac_cpp_err= | |
9857 | fi | |
9858 | else | |
9859 | ac_cpp_err=yes | |
9860 | fi | |
9861 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 9862 | eval "$as_ac_Header=yes" |
503d2be0 AS |
9863 | else |
9864 | echo "$as_me: failed program was:" >&5 | |
b5de8dc0 | 9865 | cat conftest.$ac_ext >&5 |
925c2f3f | 9866 | eval "$as_ac_Header=no" |
b5de8dc0 | 9867 | fi |
503d2be0 | 9868 | rm -f conftest.err conftest.$ac_ext |
b5de8dc0 | 9869 | fi |
598a2813 | 9870 | echo "$as_me:9869: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 9871 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
98418dba | 9872 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
925c2f3f | 9873 | cat >>confdefs.h <<EOF |
98418dba | 9874 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 9875 | EOF |
598a2813 | 9876 | echo "$as_me:9875: checking for struct nlist.n_un.n_name" >&5 |
98418dba CW |
9877 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
9878 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
503d2be0 | 9879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 9880 | else |
503d2be0 | 9881 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 9882 | #line 9876 "configure" |
b5de8dc0 | 9883 | #include "confdefs.h" |
98418dba | 9884 | #include <nlist.h> |
b5de8dc0 | 9885 | |
503d2be0 AS |
9886 | int |
9887 | main () | |
9888 | { | |
98418dba CW |
9889 | static struct nlist ac_aggr; |
9890 | if (ac_aggr.n_un.n_name) | |
9891 | return 0; | |
503d2be0 AS |
9892 | ; |
9893 | return 0; | |
9894 | } | |
9895 | _ACEOF | |
98418dba | 9896 | rm -f conftest.$ac_objext |
598a2813 | 9897 | if { (eval echo "$as_me:9896: \"$ac_compile\"") >&5 |
98418dba | 9898 | (eval $ac_compile) 2>&5 |
503d2be0 | 9899 | ac_status=$? |
598a2813 | 9900 | echo "$as_me:9899: \$? = $ac_status" >&5 |
503d2be0 | 9901 | (exit $ac_status); } && |
98418dba | 9902 | { ac_try='test -s conftest.$ac_objext' |
598a2813 | 9903 | { (eval echo "$as_me:9902: \"$ac_try\"") >&5 |
503d2be0 AS |
9904 | (eval $ac_try) 2>&5 |
9905 | ac_status=$? | |
598a2813 | 9906 | echo "$as_me:9905: \$? = $ac_status" >&5 |
503d2be0 | 9907 | (exit $ac_status); }; }; then |
98418dba | 9908 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
9909 | else |
9910 | echo "$as_me: failed program was:" >&5 | |
9911 | cat conftest.$ac_ext >&5 | |
98418dba | 9912 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 9913 | fi |
98418dba | 9914 | rm -f conftest.$ac_objext conftest.$ac_ext |
b5de8dc0 | 9915 | fi |
598a2813 | 9916 | echo "$as_me:9915: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
98418dba CW |
9917 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
9918 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
b5de8dc0 | 9919 | |
925c2f3f | 9920 | cat >>confdefs.h <<EOF |
98418dba | 9921 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
925c2f3f | 9922 | EOF |
b5de8dc0 | 9923 | |
925c2f3f | 9924 | cat >>confdefs.h <<\EOF |
98418dba | 9925 | #define NLIST_NAME_UNION 1 |
925c2f3f | 9926 | EOF |
b5de8dc0 | 9927 | |
98418dba | 9928 | fi |
b5de8dc0 | 9929 | |
98418dba | 9930 | fi |
98418dba | 9931 | done |
b5de8dc0 | 9932 | |
98418dba CW |
9933 | fi |
9934 | done | |
b5de8dc0 | 9935 | |
98418dba | 9936 | # Some definitions of getloadavg require that the program be installed setgid. |
598a2813 | 9937 | echo "$as_me:9936: checking whether getloadavg requires setgid" >&5 |
98418dba CW |
9938 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
9939 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
9940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9941 | else | |
9942 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 9943 | #line 9937 "configure" |
98418dba CW |
9944 | #include "confdefs.h" |
9945 | #include "$srcdir/getloadavg.c" | |
9946 | #ifdef LDAV_PRIVILEGED | |
9947 | Yowza Am I SETGID yet | |
9948 | #endif | |
9949 | _ACEOF | |
9950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9951 | egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
9952 | ac_cv_func_getloadavg_setgid=yes | |
9953 | else | |
9954 | ac_cv_func_getloadavg_setgid=no | |
9955 | fi | |
9956 | rm -f conftest* | |
b5de8dc0 | 9957 | |
98418dba | 9958 | fi |
598a2813 | 9959 | echo "$as_me:9958: result: $ac_cv_func_getloadavg_setgid" >&5 |
98418dba CW |
9960 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
9961 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
9962 | NEED_SETGID=true | |
b5de8dc0 | 9963 | |
925c2f3f | 9964 | cat >>confdefs.h <<\EOF |
98418dba | 9965 | #define GETLOADAVG_PRIVILEGED 1 |
925c2f3f | 9966 | EOF |
98418dba | 9967 | |
b5de8dc0 | 9968 | else |
98418dba | 9969 | NEED_SETGID=false |
b5de8dc0 | 9970 | fi |
98418dba CW |
9971 | |
9972 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
598a2813 | 9973 | echo "$as_me:9972: checking group of /dev/kmem" >&5 |
98418dba CW |
9974 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
9975 | if test "${ac_cv_group_kmem+set}" = set; then | |
9976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9977 | else | |
9978 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
9979 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
9980 | # If we got an error (system does not support symlinks), try without -L. | |
9981 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
9982 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
9983 | | sed -ne 's/[ ][ ]*/ /g; | |
9984 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
9985 | / /s/.* //;p;'` | |
9986 | ||
b5de8dc0 | 9987 | fi |
598a2813 | 9988 | echo "$as_me:9987: result: $ac_cv_group_kmem" >&5 |
98418dba CW |
9989 | echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
9990 | KMEM_GROUP=$ac_cv_group_kmem | |
b5de8dc0 | 9991 | fi |
98418dba CW |
9992 | if test "x$ac_save_LIBS" = x; then |
9993 | GETLOADAVG_LIBS=$LIBS | |
9994 | else | |
9995 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 9996 | fi |
98418dba | 9997 | LIBS=$ac_save_LIBS |
b5de8dc0 | 9998 | |
598a2813 | 9999 | echo "$as_me:9998: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
b936fae4 AS |
10000 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
10001 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
503d2be0 | 10002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 10003 | else |
b936fae4 AS |
10004 | while :; do |
10005 | ac_cv_sys_largefile_source=no | |
503d2be0 | 10006 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 10007 | #line 10001 "configure" |
4c343001 | 10008 | #include "confdefs.h" |
b936fae4 | 10009 | #include <stdio.h> |
503d2be0 AS |
10010 | int |
10011 | main () | |
10012 | { | |
b936fae4 AS |
10013 | return !fseeko; |
10014 | ; | |
10015 | return 0; | |
10016 | } | |
10017 | _ACEOF | |
10018 | rm -f conftest.$ac_objext | |
598a2813 | 10019 | if { (eval echo "$as_me:10018: \"$ac_compile\"") >&5 |
b936fae4 AS |
10020 | (eval $ac_compile) 2>&5 |
10021 | ac_status=$? | |
598a2813 | 10022 | echo "$as_me:10021: \$? = $ac_status" >&5 |
b936fae4 AS |
10023 | (exit $ac_status); } && |
10024 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 10025 | { (eval echo "$as_me:10024: \"$ac_try\"") >&5 |
b936fae4 AS |
10026 | (eval $ac_try) 2>&5 |
10027 | ac_status=$? | |
598a2813 | 10028 | echo "$as_me:10027: \$? = $ac_status" >&5 |
b936fae4 AS |
10029 | (exit $ac_status); }; }; then |
10030 | break | |
10031 | else | |
10032 | echo "$as_me: failed program was:" >&5 | |
10033 | cat conftest.$ac_ext >&5 | |
10034 | fi | |
10035 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10036 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 10037 | #line 10031 "configure" |
b936fae4 AS |
10038 | #include "confdefs.h" |
10039 | #define _LARGEFILE_SOURCE 1 | |
10040 | #include <stdio.h> | |
b936fae4 AS |
10041 | int |
10042 | main () | |
10043 | { | |
10044 | return !fseeko; | |
10045 | ; | |
10046 | return 0; | |
10047 | } | |
10048 | _ACEOF | |
10049 | rm -f conftest.$ac_objext | |
598a2813 | 10050 | if { (eval echo "$as_me:10049: \"$ac_compile\"") >&5 |
b936fae4 AS |
10051 | (eval $ac_compile) 2>&5 |
10052 | ac_status=$? | |
598a2813 | 10053 | echo "$as_me:10052: \$? = $ac_status" >&5 |
b936fae4 AS |
10054 | (exit $ac_status); } && |
10055 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 10056 | { (eval echo "$as_me:10055: \"$ac_try\"") >&5 |
b936fae4 AS |
10057 | (eval $ac_try) 2>&5 |
10058 | ac_status=$? | |
598a2813 | 10059 | echo "$as_me:10058: \$? = $ac_status" >&5 |
b936fae4 AS |
10060 | (exit $ac_status); }; }; then |
10061 | ac_cv_sys_largefile_source=1; break | |
10062 | else | |
10063 | echo "$as_me: failed program was:" >&5 | |
10064 | cat conftest.$ac_ext >&5 | |
10065 | fi | |
10066 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10067 | break | |
10068 | done | |
10069 | fi | |
598a2813 | 10070 | echo "$as_me:10069: result: $ac_cv_sys_largefile_source" >&5 |
b936fae4 AS |
10071 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
10072 | if test "$ac_cv_sys_largefile_source" != no; then | |
10073 | ||
925c2f3f | 10074 | cat >>confdefs.h <<EOF |
b936fae4 | 10075 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
925c2f3f | 10076 | EOF |
b936fae4 AS |
10077 | |
10078 | fi | |
10079 | rm -f conftest* | |
4c343001 | 10080 | |
b936fae4 AS |
10081 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
10082 | # in glibc 2.1.3, but that breaks too many other things. | |
10083 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
598a2813 | 10084 | echo "$as_me:10083: checking for fseeko" >&5 |
b936fae4 AS |
10085 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
10086 | if test "${ac_cv_func_fseeko+set}" = set; then | |
10087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10088 | else | |
10089 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 10090 | #line 10084 "configure" |
b936fae4 AS |
10091 | #include "confdefs.h" |
10092 | #include <stdio.h> | |
b936fae4 AS |
10093 | int |
10094 | main () | |
10095 | { | |
10096 | return fseeko && fseeko (stdin, 0, 0); | |
503d2be0 AS |
10097 | ; |
10098 | return 0; | |
10099 | } | |
10100 | _ACEOF | |
10101 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10102 | if { (eval echo "$as_me:10101: \"$ac_link\"") >&5 |
503d2be0 AS |
10103 | (eval $ac_link) 2>&5 |
10104 | ac_status=$? | |
598a2813 | 10105 | echo "$as_me:10104: \$? = $ac_status" >&5 |
503d2be0 AS |
10106 | (exit $ac_status); } && |
10107 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10108 | { (eval echo "$as_me:10107: \"$ac_try\"") >&5 |
503d2be0 AS |
10109 | (eval $ac_try) 2>&5 |
10110 | ac_status=$? | |
598a2813 | 10111 | echo "$as_me:10110: \$? = $ac_status" >&5 |
503d2be0 | 10112 | (exit $ac_status); }; }; then |
b936fae4 | 10113 | ac_cv_func_fseeko=yes |
503d2be0 AS |
10114 | else |
10115 | echo "$as_me: failed program was:" >&5 | |
10116 | cat conftest.$ac_ext >&5 | |
b936fae4 | 10117 | ac_cv_func_fseeko=no |
503d2be0 AS |
10118 | fi |
10119 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10120 | fi | |
598a2813 | 10121 | echo "$as_me:10120: result: $ac_cv_func_fseeko" >&5 |
b936fae4 AS |
10122 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
10123 | if test $ac_cv_func_fseeko = yes; then | |
10124 | ||
925c2f3f | 10125 | cat >>confdefs.h <<\EOF |
b936fae4 | 10126 | #define HAVE_FSEEKO 1 |
925c2f3f | 10127 | EOF |
b936fae4 | 10128 | |
4c343001 DL |
10129 | fi |
10130 | ||
b936fae4 AS |
10131 | # UNIX98 PTYs. |
10132 | ||
10133 | for ac_func in grantpt | |
503d2be0 AS |
10134 | do |
10135 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 10136 | echo "$as_me:10135: checking for $ac_func" >&5 |
503d2be0 AS |
10137 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10138 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 10140 | else |
503d2be0 | 10141 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 10142 | #line 10136 "configure" |
4c343001 | 10143 | #include "confdefs.h" |
503d2be0 AS |
10144 | /* System header to define __stub macros and hopefully few prototypes, |
10145 | which can conflict with char $ac_func (); below. */ | |
10146 | #include <assert.h> | |
4c343001 | 10147 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10148 | #ifdef __cplusplus |
10149 | extern "C" | |
10150 | #endif | |
4c343001 | 10151 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10152 | builtin and then its argument prototype would still apply. */ |
10153 | char $ac_func (); | |
10154 | char (*f) (); | |
10155 | ||
10156 | int | |
10157 | main () | |
10158 | { | |
10159 | /* The GNU C library defines this for functions which it implements | |
10160 | to always fail with ENOSYS. Some functions are actually named | |
10161 | something starting with __ and the normal name is an alias. */ | |
10162 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10163 | choke me | |
10164 | #else | |
10165 | f = $ac_func; | |
10166 | #endif | |
4c343001 | 10167 | |
503d2be0 AS |
10168 | ; |
10169 | return 0; | |
10170 | } | |
10171 | _ACEOF | |
10172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10173 | if { (eval echo "$as_me:10172: \"$ac_link\"") >&5 |
503d2be0 AS |
10174 | (eval $ac_link) 2>&5 |
10175 | ac_status=$? | |
598a2813 | 10176 | echo "$as_me:10175: \$? = $ac_status" >&5 |
503d2be0 AS |
10177 | (exit $ac_status); } && |
10178 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10179 | { (eval echo "$as_me:10178: \"$ac_try\"") >&5 |
503d2be0 AS |
10180 | (eval $ac_try) 2>&5 |
10181 | ac_status=$? | |
598a2813 | 10182 | echo "$as_me:10181: \$? = $ac_status" >&5 |
503d2be0 AS |
10183 | (exit $ac_status); }; }; then |
10184 | eval "$as_ac_var=yes" | |
10185 | else | |
10186 | echo "$as_me: failed program was:" >&5 | |
10187 | cat conftest.$ac_ext >&5 | |
10188 | eval "$as_ac_var=no" | |
10189 | fi | |
10190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10191 | fi | |
598a2813 | 10192 | echo "$as_me:10191: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
10193 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10194 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 10195 | cat >>confdefs.h <<EOF |
503d2be0 | 10196 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 10197 | EOF |
4c343001 DL |
10198 | |
10199 | fi | |
503d2be0 AS |
10200 | done |
10201 | ||
b936fae4 | 10202 | # PTY-related GNU extensions. |
4c343001 | 10203 | |
b936fae4 AS |
10204 | for ac_func in getpt |
10205 | do | |
10206 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 10207 | echo "$as_me:10206: checking for $ac_func" >&5 |
b936fae4 AS |
10208 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10209 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 10210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 10211 | else |
b936fae4 | 10212 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 10213 | #line 10207 "configure" |
087121cc GM |
10214 | #include "confdefs.h" |
10215 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 10216 | which can conflict with char $ac_func (); below. */ |
087121cc GM |
10217 | #include <assert.h> |
10218 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
10219 | #ifdef __cplusplus |
10220 | extern "C" | |
10221 | #endif | |
087121cc | 10222 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10223 | builtin and then its argument prototype would still apply. */ |
10224 | char $ac_func (); | |
10225 | char (*f) (); | |
087121cc | 10226 | |
503d2be0 AS |
10227 | int |
10228 | main () | |
10229 | { | |
087121cc GM |
10230 | /* The GNU C library defines this for functions which it implements |
10231 | to always fail with ENOSYS. Some functions are actually named | |
10232 | something starting with __ and the normal name is an alias. */ | |
10233 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10234 | choke me | |
10235 | #else | |
503d2be0 | 10236 | f = $ac_func; |
087121cc GM |
10237 | #endif |
10238 | ||
503d2be0 AS |
10239 | ; |
10240 | return 0; | |
10241 | } | |
10242 | _ACEOF | |
10243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10244 | if { (eval echo "$as_me:10243: \"$ac_link\"") >&5 |
503d2be0 AS |
10245 | (eval $ac_link) 2>&5 |
10246 | ac_status=$? | |
598a2813 | 10247 | echo "$as_me:10246: \$? = $ac_status" >&5 |
503d2be0 AS |
10248 | (exit $ac_status); } && |
10249 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10250 | { (eval echo "$as_me:10249: \"$ac_try\"") >&5 |
503d2be0 AS |
10251 | (eval $ac_try) 2>&5 |
10252 | ac_status=$? | |
598a2813 | 10253 | echo "$as_me:10252: \$? = $ac_status" >&5 |
503d2be0 AS |
10254 | (exit $ac_status); }; }; then |
10255 | eval "$as_ac_var=yes" | |
10256 | else | |
10257 | echo "$as_me: failed program was:" >&5 | |
10258 | cat conftest.$ac_ext >&5 | |
10259 | eval "$as_ac_var=no" | |
10260 | fi | |
10261 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10262 | fi | |
598a2813 | 10263 | echo "$as_me:10262: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
10264 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10265 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 10266 | cat >>confdefs.h <<EOF |
503d2be0 | 10267 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 10268 | EOF |
087121cc | 10269 | |
087121cc GM |
10270 | fi |
10271 | done | |
10272 | ||
ba4481b5 DL |
10273 | # Check this now, so that we will NOT find the above functions in ncurses. |
10274 | # That is because we have not set up to link ncurses in lib-src. | |
10275 | # It's better to believe a function is not available | |
10276 | # than to expect to find it in ncurses. | |
503d2be0 | 10277 | |
598a2813 | 10278 | echo "$as_me:10277: checking for tparm in -lncurses" >&5 |
503d2be0 AS |
10279 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
10280 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
10281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 10282 | else |
503d2be0 | 10283 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 10284 | LIBS="-lncurses $LIBS" |
503d2be0 | 10285 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 10286 | #line 10280 "configure" |
ba4481b5 | 10287 | #include "confdefs.h" |
503d2be0 | 10288 | |
ba4481b5 | 10289 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10290 | #ifdef __cplusplus |
10291 | extern "C" | |
10292 | #endif | |
ba4481b5 | 10293 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10294 | builtin and then its argument prototype would still apply. */ |
10295 | char tparm (); | |
10296 | int | |
10297 | main () | |
10298 | { | |
10299 | tparm (); | |
10300 | ; | |
10301 | return 0; | |
10302 | } | |
10303 | _ACEOF | |
10304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10305 | if { (eval echo "$as_me:10304: \"$ac_link\"") >&5 |
503d2be0 AS |
10306 | (eval $ac_link) 2>&5 |
10307 | ac_status=$? | |
598a2813 | 10308 | echo "$as_me:10307: \$? = $ac_status" >&5 |
503d2be0 AS |
10309 | (exit $ac_status); } && |
10310 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10311 | { (eval echo "$as_me:10310: \"$ac_try\"") >&5 |
503d2be0 AS |
10312 | (eval $ac_try) 2>&5 |
10313 | ac_status=$? | |
598a2813 | 10314 | echo "$as_me:10313: \$? = $ac_status" >&5 |
503d2be0 AS |
10315 | (exit $ac_status); }; }; then |
10316 | ac_cv_lib_ncurses_tparm=yes | |
10317 | else | |
10318 | echo "$as_me: failed program was:" >&5 | |
10319 | cat conftest.$ac_ext >&5 | |
10320 | ac_cv_lib_ncurses_tparm=no | |
10321 | fi | |
10322 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10323 | LIBS=$ac_check_lib_save_LIBS | |
10324 | fi | |
598a2813 | 10325 | echo "$as_me:10324: result: $ac_cv_lib_ncurses_tparm" >&5 |
503d2be0 AS |
10326 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
10327 | if test $ac_cv_lib_ncurses_tparm = yes; then | |
925c2f3f | 10328 | cat >>confdefs.h <<EOF |
503d2be0 | 10329 | #define HAVE_LIBNCURSES 1 |
925c2f3f | 10330 | EOF |
ba4481b5 DL |
10331 | |
10332 | LIBS="-lncurses $LIBS" | |
10333 | ||
ba4481b5 DL |
10334 | fi |
10335 | ||
84e70f78 KR |
10336 | # Do we need the Hesiod library to provide the support routines? |
10337 | if test "$with_hesiod" = yes ; then | |
10338 | # Don't set $LIBS here -- see comments above. | |
10339 | resolv=no | |
598a2813 | 10340 | echo "$as_me:10339: checking for res_send" >&5 |
84e70f78 KR |
10341 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
10342 | if test "${ac_cv_func_res_send+set}" = set; then | |
10343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10344 | else | |
10345 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 10346 | #line 10340 "configure" |
84e70f78 KR |
10347 | #include "confdefs.h" |
10348 | /* System header to define __stub macros and hopefully few prototypes, | |
10349 | which can conflict with char res_send (); below. */ | |
10350 | #include <assert.h> | |
10351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10352 | #ifdef __cplusplus | |
10353 | extern "C" | |
10354 | #endif | |
10355 | /* We use char because int might match the return type of a gcc2 | |
10356 | builtin and then its argument prototype would still apply. */ | |
10357 | char res_send (); | |
10358 | char (*f) (); | |
10359 | ||
10360 | int | |
10361 | main () | |
10362 | { | |
10363 | /* The GNU C library defines this for functions which it implements | |
10364 | to always fail with ENOSYS. Some functions are actually named | |
10365 | something starting with __ and the normal name is an alias. */ | |
10366 | #if defined (__stub_res_send) || defined (__stub___res_send) | |
10367 | choke me | |
10368 | #else | |
10369 | f = res_send; | |
10370 | #endif | |
10371 | ||
10372 | ; | |
10373 | return 0; | |
10374 | } | |
10375 | _ACEOF | |
10376 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10377 | if { (eval echo "$as_me:10376: \"$ac_link\"") >&5 |
84e70f78 KR |
10378 | (eval $ac_link) 2>&5 |
10379 | ac_status=$? | |
598a2813 | 10380 | echo "$as_me:10379: \$? = $ac_status" >&5 |
84e70f78 KR |
10381 | (exit $ac_status); } && |
10382 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10383 | { (eval echo "$as_me:10382: \"$ac_try\"") >&5 |
84e70f78 KR |
10384 | (eval $ac_try) 2>&5 |
10385 | ac_status=$? | |
598a2813 | 10386 | echo "$as_me:10385: \$? = $ac_status" >&5 |
84e70f78 KR |
10387 | (exit $ac_status); }; }; then |
10388 | ac_cv_func_res_send=yes | |
10389 | else | |
10390 | echo "$as_me: failed program was:" >&5 | |
10391 | cat conftest.$ac_ext >&5 | |
10392 | ac_cv_func_res_send=no | |
10393 | fi | |
10394 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10395 | fi | |
598a2813 | 10396 | echo "$as_me:10395: result: $ac_cv_func_res_send" >&5 |
84e70f78 KR |
10397 | echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
10398 | if test $ac_cv_func_res_send = yes; then | |
10399 | : | |
10400 | else | |
598a2813 | 10401 | echo "$as_me:10400: checking for __res_send" >&5 |
84e70f78 KR |
10402 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
10403 | if test "${ac_cv_func___res_send+set}" = set; then | |
10404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10405 | else | |
10406 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 10407 | #line 10401 "configure" |
84e70f78 KR |
10408 | #include "confdefs.h" |
10409 | /* System header to define __stub macros and hopefully few prototypes, | |
10410 | which can conflict with char __res_send (); below. */ | |
10411 | #include <assert.h> | |
10412 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10413 | #ifdef __cplusplus | |
10414 | extern "C" | |
10415 | #endif | |
10416 | /* We use char because int might match the return type of a gcc2 | |
10417 | builtin and then its argument prototype would still apply. */ | |
10418 | char __res_send (); | |
10419 | char (*f) (); | |
10420 | ||
10421 | int | |
10422 | main () | |
10423 | { | |
10424 | /* The GNU C library defines this for functions which it implements | |
10425 | to always fail with ENOSYS. Some functions are actually named | |
10426 | something starting with __ and the normal name is an alias. */ | |
10427 | #if defined (__stub___res_send) || defined (__stub_____res_send) | |
10428 | choke me | |
10429 | #else | |
10430 | f = __res_send; | |
10431 | #endif | |
10432 | ||
10433 | ; | |
10434 | return 0; | |
10435 | } | |
10436 | _ACEOF | |
10437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10438 | if { (eval echo "$as_me:10437: \"$ac_link\"") >&5 |
84e70f78 KR |
10439 | (eval $ac_link) 2>&5 |
10440 | ac_status=$? | |
598a2813 | 10441 | echo "$as_me:10440: \$? = $ac_status" >&5 |
84e70f78 KR |
10442 | (exit $ac_status); } && |
10443 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10444 | { (eval echo "$as_me:10443: \"$ac_try\"") >&5 |
84e70f78 KR |
10445 | (eval $ac_try) 2>&5 |
10446 | ac_status=$? | |
598a2813 | 10447 | echo "$as_me:10446: \$? = $ac_status" >&5 |
84e70f78 KR |
10448 | (exit $ac_status); }; }; then |
10449 | ac_cv_func___res_send=yes | |
10450 | else | |
10451 | echo "$as_me: failed program was:" >&5 | |
10452 | cat conftest.$ac_ext >&5 | |
10453 | ac_cv_func___res_send=no | |
10454 | fi | |
10455 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10456 | fi | |
598a2813 | 10457 | echo "$as_me:10456: result: $ac_cv_func___res_send" >&5 |
84e70f78 KR |
10458 | echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
10459 | if test $ac_cv_func___res_send = yes; then | |
10460 | : | |
10461 | else | |
598a2813 | 10462 | echo "$as_me:10461: checking for res_send in -lresolv" >&5 |
84e70f78 KR |
10463 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
10464 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then | |
10465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10466 | else | |
10467 | ac_check_lib_save_LIBS=$LIBS | |
10468 | LIBS="-lresolv $LIBS" | |
10469 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 10470 | #line 10464 "configure" |
84e70f78 KR |
10471 | #include "confdefs.h" |
10472 | ||
10473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10474 | #ifdef __cplusplus | |
10475 | extern "C" | |
10476 | #endif | |
10477 | /* We use char because int might match the return type of a gcc2 | |
10478 | builtin and then its argument prototype would still apply. */ | |
10479 | char res_send (); | |
10480 | int | |
10481 | main () | |
10482 | { | |
10483 | res_send (); | |
10484 | ; | |
10485 | return 0; | |
10486 | } | |
10487 | _ACEOF | |
10488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10489 | if { (eval echo "$as_me:10488: \"$ac_link\"") >&5 |
84e70f78 KR |
10490 | (eval $ac_link) 2>&5 |
10491 | ac_status=$? | |
598a2813 | 10492 | echo "$as_me:10491: \$? = $ac_status" >&5 |
84e70f78 KR |
10493 | (exit $ac_status); } && |
10494 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10495 | { (eval echo "$as_me:10494: \"$ac_try\"") >&5 |
84e70f78 KR |
10496 | (eval $ac_try) 2>&5 |
10497 | ac_status=$? | |
598a2813 | 10498 | echo "$as_me:10497: \$? = $ac_status" >&5 |
84e70f78 KR |
10499 | (exit $ac_status); }; }; then |
10500 | ac_cv_lib_resolv_res_send=yes | |
10501 | else | |
10502 | echo "$as_me: failed program was:" >&5 | |
10503 | cat conftest.$ac_ext >&5 | |
10504 | ac_cv_lib_resolv_res_send=no | |
10505 | fi | |
10506 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10507 | LIBS=$ac_check_lib_save_LIBS | |
10508 | fi | |
598a2813 | 10509 | echo "$as_me:10508: result: $ac_cv_lib_resolv_res_send" >&5 |
84e70f78 KR |
10510 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
10511 | if test $ac_cv_lib_resolv_res_send = yes; then | |
10512 | resolv=yes | |
10513 | else | |
598a2813 | 10514 | echo "$as_me:10513: checking for __res_send in -lresolv" >&5 |
84e70f78 KR |
10515 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
10516 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then | |
10517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10518 | else | |
10519 | ac_check_lib_save_LIBS=$LIBS | |
10520 | LIBS="-lresolv $LIBS" | |
10521 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 10522 | #line 10516 "configure" |
84e70f78 KR |
10523 | #include "confdefs.h" |
10524 | ||
10525 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10526 | #ifdef __cplusplus | |
10527 | extern "C" | |
10528 | #endif | |
10529 | /* We use char because int might match the return type of a gcc2 | |
10530 | builtin and then its argument prototype would still apply. */ | |
10531 | char __res_send (); | |
10532 | int | |
10533 | main () | |
10534 | { | |
10535 | __res_send (); | |
10536 | ; | |
10537 | return 0; | |
10538 | } | |
10539 | _ACEOF | |
10540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10541 | if { (eval echo "$as_me:10540: \"$ac_link\"") >&5 |
84e70f78 KR |
10542 | (eval $ac_link) 2>&5 |
10543 | ac_status=$? | |
598a2813 | 10544 | echo "$as_me:10543: \$? = $ac_status" >&5 |
84e70f78 KR |
10545 | (exit $ac_status); } && |
10546 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10547 | { (eval echo "$as_me:10546: \"$ac_try\"") >&5 |
84e70f78 KR |
10548 | (eval $ac_try) 2>&5 |
10549 | ac_status=$? | |
598a2813 | 10550 | echo "$as_me:10549: \$? = $ac_status" >&5 |
84e70f78 KR |
10551 | (exit $ac_status); }; }; then |
10552 | ac_cv_lib_resolv___res_send=yes | |
10553 | else | |
10554 | echo "$as_me: failed program was:" >&5 | |
10555 | cat conftest.$ac_ext >&5 | |
10556 | ac_cv_lib_resolv___res_send=no | |
10557 | fi | |
10558 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10559 | LIBS=$ac_check_lib_save_LIBS | |
10560 | fi | |
598a2813 | 10561 | echo "$as_me:10560: result: $ac_cv_lib_resolv___res_send" >&5 |
84e70f78 KR |
10562 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
10563 | if test $ac_cv_lib_resolv___res_send = yes; then | |
10564 | resolv=yes | |
10565 | fi | |
10566 | ||
10567 | fi | |
10568 | ||
10569 | fi | |
10570 | ||
10571 | fi | |
10572 | ||
10573 | if test "$resolv" = yes ; then | |
10574 | RESOLVLIB=-lresolv | |
b936fae4 | 10575 | |
925c2f3f | 10576 | cat >>confdefs.h <<\EOF |
84e70f78 | 10577 | #define HAVE_LIBRESOLV 1 |
925c2f3f | 10578 | EOF |
84e70f78 KR |
10579 | |
10580 | else | |
10581 | RESOLVLIB= | |
10582 | fi | |
598a2813 | 10583 | echo "$as_me:10582: checking for hes_getmailhost" >&5 |
84e70f78 KR |
10584 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
10585 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then | |
10586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10587 | else | |
10588 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 10589 | #line 10583 "configure" |
84e70f78 KR |
10590 | #include "confdefs.h" |
10591 | /* System header to define __stub macros and hopefully few prototypes, | |
10592 | which can conflict with char hes_getmailhost (); below. */ | |
10593 | #include <assert.h> | |
10594 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10595 | #ifdef __cplusplus | |
10596 | extern "C" | |
10597 | #endif | |
10598 | /* We use char because int might match the return type of a gcc2 | |
10599 | builtin and then its argument prototype would still apply. */ | |
10600 | char hes_getmailhost (); | |
10601 | char (*f) (); | |
10602 | ||
10603 | int | |
10604 | main () | |
10605 | { | |
10606 | /* The GNU C library defines this for functions which it implements | |
10607 | to always fail with ENOSYS. Some functions are actually named | |
10608 | something starting with __ and the normal name is an alias. */ | |
10609 | #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) | |
10610 | choke me | |
10611 | #else | |
10612 | f = hes_getmailhost; | |
10613 | #endif | |
10614 | ||
10615 | ; | |
10616 | return 0; | |
10617 | } | |
10618 | _ACEOF | |
10619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10620 | if { (eval echo "$as_me:10619: \"$ac_link\"") >&5 |
84e70f78 KR |
10621 | (eval $ac_link) 2>&5 |
10622 | ac_status=$? | |
598a2813 | 10623 | echo "$as_me:10622: \$? = $ac_status" >&5 |
84e70f78 KR |
10624 | (exit $ac_status); } && |
10625 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10626 | { (eval echo "$as_me:10625: \"$ac_try\"") >&5 |
84e70f78 KR |
10627 | (eval $ac_try) 2>&5 |
10628 | ac_status=$? | |
598a2813 | 10629 | echo "$as_me:10628: \$? = $ac_status" >&5 |
84e70f78 KR |
10630 | (exit $ac_status); }; }; then |
10631 | ac_cv_func_hes_getmailhost=yes | |
10632 | else | |
10633 | echo "$as_me: failed program was:" >&5 | |
10634 | cat conftest.$ac_ext >&5 | |
10635 | ac_cv_func_hes_getmailhost=no | |
10636 | fi | |
10637 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10638 | fi | |
598a2813 | 10639 | echo "$as_me:10638: result: $ac_cv_func_hes_getmailhost" >&5 |
84e70f78 KR |
10640 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
10641 | if test $ac_cv_func_hes_getmailhost = yes; then | |
10642 | : | |
10643 | else | |
598a2813 | 10644 | echo "$as_me:10643: checking for hes_getmailhost in -lhesiod" >&5 |
84e70f78 KR |
10645 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
10646 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | |
10647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10648 | else | |
10649 | ac_check_lib_save_LIBS=$LIBS | |
10650 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
10651 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 10652 | #line 10646 "configure" |
84e70f78 KR |
10653 | #include "confdefs.h" |
10654 | ||
10655 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10656 | #ifdef __cplusplus | |
10657 | extern "C" | |
10658 | #endif | |
10659 | /* We use char because int might match the return type of a gcc2 | |
10660 | builtin and then its argument prototype would still apply. */ | |
10661 | char hes_getmailhost (); | |
10662 | int | |
10663 | main () | |
10664 | { | |
10665 | hes_getmailhost (); | |
10666 | ; | |
10667 | return 0; | |
10668 | } | |
10669 | _ACEOF | |
10670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10671 | if { (eval echo "$as_me:10670: \"$ac_link\"") >&5 |
84e70f78 KR |
10672 | (eval $ac_link) 2>&5 |
10673 | ac_status=$? | |
598a2813 | 10674 | echo "$as_me:10673: \$? = $ac_status" >&5 |
84e70f78 KR |
10675 | (exit $ac_status); } && |
10676 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10677 | { (eval echo "$as_me:10676: \"$ac_try\"") >&5 |
84e70f78 KR |
10678 | (eval $ac_try) 2>&5 |
10679 | ac_status=$? | |
598a2813 | 10680 | echo "$as_me:10679: \$? = $ac_status" >&5 |
84e70f78 KR |
10681 | (exit $ac_status); }; }; then |
10682 | ac_cv_lib_hesiod_hes_getmailhost=yes | |
10683 | else | |
10684 | echo "$as_me: failed program was:" >&5 | |
10685 | cat conftest.$ac_ext >&5 | |
10686 | ac_cv_lib_hesiod_hes_getmailhost=no | |
10687 | fi | |
10688 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10689 | LIBS=$ac_check_lib_save_LIBS | |
10690 | fi | |
598a2813 | 10691 | echo "$as_me:10690: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
84e70f78 KR |
10692 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
10693 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | |
b936fae4 | 10694 | |
925c2f3f | 10695 | cat >>confdefs.h <<\EOF |
84e70f78 | 10696 | #define HAVE_LIBHESIOD 1 |
925c2f3f | 10697 | EOF |
84e70f78 KR |
10698 | |
10699 | else | |
10700 | : | |
10701 | fi | |
10702 | ||
10703 | fi | |
10704 | ||
10705 | fi | |
10706 | ||
a21616bd KR |
10707 | # These tell us which Kerberos-related libraries to use. |
10708 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 10709 | |
598a2813 | 10710 | echo "$as_me:10709: checking for com_err in -lcom_err" >&5 |
503d2be0 AS |
10711 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
10712 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
10713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10714 | else |
503d2be0 | 10715 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10716 | LIBS="-lcom_err $LIBS" |
503d2be0 | 10717 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 10718 | #line 10712 "configure" |
a21616bd | 10719 | #include "confdefs.h" |
503d2be0 | 10720 | |
a21616bd | 10721 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10722 | #ifdef __cplusplus |
10723 | extern "C" | |
10724 | #endif | |
a21616bd | 10725 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10726 | builtin and then its argument prototype would still apply. */ |
10727 | char com_err (); | |
10728 | int | |
10729 | main () | |
10730 | { | |
10731 | com_err (); | |
10732 | ; | |
10733 | return 0; | |
10734 | } | |
10735 | _ACEOF | |
10736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10737 | if { (eval echo "$as_me:10736: \"$ac_link\"") >&5 |
503d2be0 AS |
10738 | (eval $ac_link) 2>&5 |
10739 | ac_status=$? | |
598a2813 | 10740 | echo "$as_me:10739: \$? = $ac_status" >&5 |
503d2be0 AS |
10741 | (exit $ac_status); } && |
10742 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10743 | { (eval echo "$as_me:10742: \"$ac_try\"") >&5 |
503d2be0 AS |
10744 | (eval $ac_try) 2>&5 |
10745 | ac_status=$? | |
598a2813 | 10746 | echo "$as_me:10745: \$? = $ac_status" >&5 |
503d2be0 AS |
10747 | (exit $ac_status); }; }; then |
10748 | ac_cv_lib_com_err_com_err=yes | |
10749 | else | |
10750 | echo "$as_me: failed program was:" >&5 | |
10751 | cat conftest.$ac_ext >&5 | |
10752 | ac_cv_lib_com_err_com_err=no | |
10753 | fi | |
10754 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10755 | LIBS=$ac_check_lib_save_LIBS | |
10756 | fi | |
598a2813 | 10757 | echo "$as_me:10756: result: $ac_cv_lib_com_err_com_err" >&5 |
503d2be0 AS |
10758 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
10759 | if test $ac_cv_lib_com_err_com_err = yes; then | |
925c2f3f | 10760 | cat >>confdefs.h <<EOF |
503d2be0 | 10761 | #define HAVE_LIBCOM_ERR 1 |
925c2f3f | 10762 | EOF |
a21616bd KR |
10763 | |
10764 | LIBS="-lcom_err $LIBS" | |
10765 | ||
a21616bd KR |
10766 | fi |
10767 | ||
598a2813 | 10768 | echo "$as_me:10767: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
503d2be0 AS |
10769 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
10770 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
10771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10772 | else |
503d2be0 | 10773 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10774 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 10775 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 10776 | #line 10770 "configure" |
a21616bd | 10777 | #include "confdefs.h" |
503d2be0 | 10778 | |
a21616bd | 10779 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10780 | #ifdef __cplusplus |
10781 | extern "C" | |
10782 | #endif | |
a21616bd | 10783 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10784 | builtin and then its argument prototype would still apply. */ |
10785 | char mit_des_cbc_encrypt (); | |
10786 | int | |
10787 | main () | |
10788 | { | |
10789 | mit_des_cbc_encrypt (); | |
10790 | ; | |
10791 | return 0; | |
10792 | } | |
10793 | _ACEOF | |
10794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10795 | if { (eval echo "$as_me:10794: \"$ac_link\"") >&5 |
503d2be0 AS |
10796 | (eval $ac_link) 2>&5 |
10797 | ac_status=$? | |
598a2813 | 10798 | echo "$as_me:10797: \$? = $ac_status" >&5 |
503d2be0 AS |
10799 | (exit $ac_status); } && |
10800 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10801 | { (eval echo "$as_me:10800: \"$ac_try\"") >&5 |
503d2be0 AS |
10802 | (eval $ac_try) 2>&5 |
10803 | ac_status=$? | |
598a2813 | 10804 | echo "$as_me:10803: \$? = $ac_status" >&5 |
503d2be0 AS |
10805 | (exit $ac_status); }; }; then |
10806 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
10807 | else | |
10808 | echo "$as_me: failed program was:" >&5 | |
10809 | cat conftest.$ac_ext >&5 | |
10810 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
10811 | fi | |
10812 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10813 | LIBS=$ac_check_lib_save_LIBS | |
10814 | fi | |
598a2813 | 10815 | echo "$as_me:10814: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
10816 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
10817 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
925c2f3f | 10818 | cat >>confdefs.h <<EOF |
503d2be0 | 10819 | #define HAVE_LIBK5CRYPTO 1 |
925c2f3f | 10820 | EOF |
a21616bd KR |
10821 | |
10822 | LIBS="-lk5crypto $LIBS" | |
10823 | ||
a21616bd KR |
10824 | fi |
10825 | ||
598a2813 | 10826 | echo "$as_me:10825: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
503d2be0 AS |
10827 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
10828 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
10829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10830 | else |
503d2be0 | 10831 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10832 | LIBS="-lcrypto $LIBS" |
503d2be0 | 10833 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 10834 | #line 10828 "configure" |
a21616bd | 10835 | #include "confdefs.h" |
503d2be0 | 10836 | |
a21616bd | 10837 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10838 | #ifdef __cplusplus |
10839 | extern "C" | |
10840 | #endif | |
a21616bd | 10841 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10842 | builtin and then its argument prototype would still apply. */ |
10843 | char mit_des_cbc_encrypt (); | |
10844 | int | |
10845 | main () | |
10846 | { | |
10847 | mit_des_cbc_encrypt (); | |
10848 | ; | |
10849 | return 0; | |
10850 | } | |
10851 | _ACEOF | |
10852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10853 | if { (eval echo "$as_me:10852: \"$ac_link\"") >&5 |
503d2be0 AS |
10854 | (eval $ac_link) 2>&5 |
10855 | ac_status=$? | |
598a2813 | 10856 | echo "$as_me:10855: \$? = $ac_status" >&5 |
503d2be0 AS |
10857 | (exit $ac_status); } && |
10858 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10859 | { (eval echo "$as_me:10858: \"$ac_try\"") >&5 |
503d2be0 AS |
10860 | (eval $ac_try) 2>&5 |
10861 | ac_status=$? | |
598a2813 | 10862 | echo "$as_me:10861: \$? = $ac_status" >&5 |
503d2be0 AS |
10863 | (exit $ac_status); }; }; then |
10864 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
10865 | else | |
10866 | echo "$as_me: failed program was:" >&5 | |
10867 | cat conftest.$ac_ext >&5 | |
10868 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
10869 | fi | |
10870 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10871 | LIBS=$ac_check_lib_save_LIBS | |
10872 | fi | |
598a2813 | 10873 | echo "$as_me:10872: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
10874 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
10875 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
925c2f3f | 10876 | cat >>confdefs.h <<EOF |
503d2be0 | 10877 | #define HAVE_LIBCRYPTO 1 |
925c2f3f | 10878 | EOF |
a21616bd KR |
10879 | |
10880 | LIBS="-lcrypto $LIBS" | |
10881 | ||
a21616bd KR |
10882 | fi |
10883 | ||
598a2813 | 10884 | echo "$as_me:10883: checking for krb5_init_context in -lkrb5" >&5 |
503d2be0 AS |
10885 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
10886 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
10887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10888 | else |
503d2be0 | 10889 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10890 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 10891 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 10892 | #line 10886 "configure" |
a21616bd | 10893 | #include "confdefs.h" |
a21616bd | 10894 | |
503d2be0 AS |
10895 | /* Override any gcc2 internal prototype to avoid an error. */ |
10896 | #ifdef __cplusplus | |
10897 | extern "C" | |
10898 | #endif | |
10899 | /* We use char because int might match the return type of a gcc2 | |
10900 | builtin and then its argument prototype would still apply. */ | |
10901 | char krb5_init_context (); | |
10902 | int | |
10903 | main () | |
10904 | { | |
10905 | krb5_init_context (); | |
10906 | ; | |
10907 | return 0; | |
10908 | } | |
10909 | _ACEOF | |
10910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10911 | if { (eval echo "$as_me:10910: \"$ac_link\"") >&5 |
503d2be0 AS |
10912 | (eval $ac_link) 2>&5 |
10913 | ac_status=$? | |
598a2813 | 10914 | echo "$as_me:10913: \$? = $ac_status" >&5 |
503d2be0 AS |
10915 | (exit $ac_status); } && |
10916 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10917 | { (eval echo "$as_me:10916: \"$ac_try\"") >&5 |
503d2be0 AS |
10918 | (eval $ac_try) 2>&5 |
10919 | ac_status=$? | |
598a2813 | 10920 | echo "$as_me:10919: \$? = $ac_status" >&5 |
503d2be0 AS |
10921 | (exit $ac_status); }; }; then |
10922 | ac_cv_lib_krb5_krb5_init_context=yes | |
10923 | else | |
10924 | echo "$as_me: failed program was:" >&5 | |
10925 | cat conftest.$ac_ext >&5 | |
10926 | ac_cv_lib_krb5_krb5_init_context=no | |
10927 | fi | |
10928 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10929 | LIBS=$ac_check_lib_save_LIBS | |
10930 | fi | |
598a2813 | 10931 | echo "$as_me:10930: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
503d2be0 AS |
10932 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
10933 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
925c2f3f | 10934 | cat >>confdefs.h <<EOF |
503d2be0 | 10935 | #define HAVE_LIBKRB5 1 |
925c2f3f | 10936 | EOF |
a21616bd KR |
10937 | |
10938 | LIBS="-lkrb5 $LIBS" | |
10939 | ||
a21616bd KR |
10940 | fi |
10941 | ||
10942 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 10943 | |
598a2813 | 10944 | echo "$as_me:10943: checking for des_cbc_encrypt in -ldes425" >&5 |
503d2be0 AS |
10945 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
10946 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
10947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10948 | else |
503d2be0 | 10949 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10950 | LIBS="-ldes425 $LIBS" |
503d2be0 | 10951 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 10952 | #line 10946 "configure" |
a21616bd | 10953 | #include "confdefs.h" |
503d2be0 | 10954 | |
a21616bd | 10955 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10956 | #ifdef __cplusplus |
10957 | extern "C" | |
10958 | #endif | |
a21616bd | 10959 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10960 | builtin and then its argument prototype would still apply. */ |
10961 | char des_cbc_encrypt (); | |
10962 | int | |
10963 | main () | |
10964 | { | |
10965 | des_cbc_encrypt (); | |
10966 | ; | |
10967 | return 0; | |
10968 | } | |
10969 | _ACEOF | |
10970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 10971 | if { (eval echo "$as_me:10970: \"$ac_link\"") >&5 |
503d2be0 AS |
10972 | (eval $ac_link) 2>&5 |
10973 | ac_status=$? | |
598a2813 | 10974 | echo "$as_me:10973: \$? = $ac_status" >&5 |
503d2be0 AS |
10975 | (exit $ac_status); } && |
10976 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 10977 | { (eval echo "$as_me:10976: \"$ac_try\"") >&5 |
503d2be0 AS |
10978 | (eval $ac_try) 2>&5 |
10979 | ac_status=$? | |
598a2813 | 10980 | echo "$as_me:10979: \$? = $ac_status" >&5 |
503d2be0 AS |
10981 | (exit $ac_status); }; }; then |
10982 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
10983 | else | |
10984 | echo "$as_me: failed program was:" >&5 | |
10985 | cat conftest.$ac_ext >&5 | |
10986 | ac_cv_lib_des425_des_cbc_encrypt=no | |
10987 | fi | |
10988 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10989 | LIBS=$ac_check_lib_save_LIBS | |
10990 | fi | |
598a2813 | 10991 | echo "$as_me:10990: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
503d2be0 AS |
10992 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
10993 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
925c2f3f | 10994 | cat >>confdefs.h <<EOF |
503d2be0 | 10995 | #define HAVE_LIBDES425 1 |
925c2f3f | 10996 | EOF |
a21616bd KR |
10997 | |
10998 | LIBS="-ldes425 $LIBS" | |
10999 | ||
11000 | else | |
503d2be0 | 11001 | |
598a2813 | 11002 | echo "$as_me:11001: checking for des_cbc_encrypt in -ldes" >&5 |
503d2be0 AS |
11003 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
11004 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
11005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 11006 | else |
503d2be0 | 11007 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 11008 | LIBS="-ldes $LIBS" |
503d2be0 | 11009 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 11010 | #line 11004 "configure" |
a21616bd | 11011 | #include "confdefs.h" |
503d2be0 | 11012 | |
a21616bd | 11013 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11014 | #ifdef __cplusplus |
11015 | extern "C" | |
11016 | #endif | |
a21616bd | 11017 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
11018 | builtin and then its argument prototype would still apply. */ |
11019 | char des_cbc_encrypt (); | |
11020 | int | |
11021 | main () | |
11022 | { | |
11023 | des_cbc_encrypt (); | |
11024 | ; | |
11025 | return 0; | |
11026 | } | |
11027 | _ACEOF | |
11028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 11029 | if { (eval echo "$as_me:11028: \"$ac_link\"") >&5 |
503d2be0 AS |
11030 | (eval $ac_link) 2>&5 |
11031 | ac_status=$? | |
598a2813 | 11032 | echo "$as_me:11031: \$? = $ac_status" >&5 |
503d2be0 AS |
11033 | (exit $ac_status); } && |
11034 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 11035 | { (eval echo "$as_me:11034: \"$ac_try\"") >&5 |
503d2be0 AS |
11036 | (eval $ac_try) 2>&5 |
11037 | ac_status=$? | |
598a2813 | 11038 | echo "$as_me:11037: \$? = $ac_status" >&5 |
503d2be0 AS |
11039 | (exit $ac_status); }; }; then |
11040 | ac_cv_lib_des_des_cbc_encrypt=yes | |
11041 | else | |
11042 | echo "$as_me: failed program was:" >&5 | |
11043 | cat conftest.$ac_ext >&5 | |
11044 | ac_cv_lib_des_des_cbc_encrypt=no | |
11045 | fi | |
11046 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11047 | LIBS=$ac_check_lib_save_LIBS | |
11048 | fi | |
598a2813 | 11049 | echo "$as_me:11048: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
503d2be0 AS |
11050 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
11051 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
925c2f3f | 11052 | cat >>confdefs.h <<EOF |
503d2be0 | 11053 | #define HAVE_LIBDES 1 |
925c2f3f | 11054 | EOF |
a21616bd KR |
11055 | |
11056 | LIBS="-ldes $LIBS" | |
11057 | ||
a21616bd KR |
11058 | fi |
11059 | ||
11060 | fi | |
11061 | ||
598a2813 | 11062 | echo "$as_me:11061: checking for krb_get_cred in -lkrb4" >&5 |
503d2be0 AS |
11063 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
11064 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
11065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 11066 | else |
503d2be0 | 11067 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 11068 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 11069 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 11070 | #line 11064 "configure" |
a21616bd | 11071 | #include "confdefs.h" |
503d2be0 | 11072 | |
a21616bd | 11073 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11074 | #ifdef __cplusplus |
11075 | extern "C" | |
11076 | #endif | |
a21616bd | 11077 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
11078 | builtin and then its argument prototype would still apply. */ |
11079 | char krb_get_cred (); | |
11080 | int | |
11081 | main () | |
11082 | { | |
11083 | krb_get_cred (); | |
11084 | ; | |
11085 | return 0; | |
11086 | } | |
11087 | _ACEOF | |
11088 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 11089 | if { (eval echo "$as_me:11088: \"$ac_link\"") >&5 |
503d2be0 AS |
11090 | (eval $ac_link) 2>&5 |
11091 | ac_status=$? | |
598a2813 | 11092 | echo "$as_me:11091: \$? = $ac_status" >&5 |
503d2be0 AS |
11093 | (exit $ac_status); } && |
11094 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 11095 | { (eval echo "$as_me:11094: \"$ac_try\"") >&5 |
503d2be0 AS |
11096 | (eval $ac_try) 2>&5 |
11097 | ac_status=$? | |
598a2813 | 11098 | echo "$as_me:11097: \$? = $ac_status" >&5 |
503d2be0 AS |
11099 | (exit $ac_status); }; }; then |
11100 | ac_cv_lib_krb4_krb_get_cred=yes | |
11101 | else | |
11102 | echo "$as_me: failed program was:" >&5 | |
11103 | cat conftest.$ac_ext >&5 | |
11104 | ac_cv_lib_krb4_krb_get_cred=no | |
11105 | fi | |
11106 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11107 | LIBS=$ac_check_lib_save_LIBS | |
11108 | fi | |
598a2813 | 11109 | echo "$as_me:11108: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
503d2be0 AS |
11110 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
11111 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
925c2f3f | 11112 | cat >>confdefs.h <<EOF |
503d2be0 | 11113 | #define HAVE_LIBKRB4 1 |
925c2f3f | 11114 | EOF |
a21616bd KR |
11115 | |
11116 | LIBS="-lkrb4 $LIBS" | |
11117 | ||
11118 | else | |
503d2be0 | 11119 | |
598a2813 | 11120 | echo "$as_me:11119: checking for krb_get_cred in -lkrb" >&5 |
503d2be0 AS |
11121 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
11122 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
11123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 11124 | else |
503d2be0 | 11125 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 11126 | LIBS="-lkrb $LIBS" |
503d2be0 | 11127 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 11128 | #line 11122 "configure" |
a21616bd | 11129 | #include "confdefs.h" |
503d2be0 | 11130 | |
a21616bd | 11131 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11132 | #ifdef __cplusplus |
11133 | extern "C" | |
11134 | #endif | |
a21616bd | 11135 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
11136 | builtin and then its argument prototype would still apply. */ |
11137 | char krb_get_cred (); | |
11138 | int | |
11139 | main () | |
11140 | { | |
11141 | krb_get_cred (); | |
11142 | ; | |
11143 | return 0; | |
11144 | } | |
11145 | _ACEOF | |
11146 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 11147 | if { (eval echo "$as_me:11146: \"$ac_link\"") >&5 |
503d2be0 AS |
11148 | (eval $ac_link) 2>&5 |
11149 | ac_status=$? | |
598a2813 | 11150 | echo "$as_me:11149: \$? = $ac_status" >&5 |
503d2be0 AS |
11151 | (exit $ac_status); } && |
11152 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 11153 | { (eval echo "$as_me:11152: \"$ac_try\"") >&5 |
503d2be0 AS |
11154 | (eval $ac_try) 2>&5 |
11155 | ac_status=$? | |
598a2813 | 11156 | echo "$as_me:11155: \$? = $ac_status" >&5 |
503d2be0 AS |
11157 | (exit $ac_status); }; }; then |
11158 | ac_cv_lib_krb_krb_get_cred=yes | |
11159 | else | |
11160 | echo "$as_me: failed program was:" >&5 | |
11161 | cat conftest.$ac_ext >&5 | |
11162 | ac_cv_lib_krb_krb_get_cred=no | |
11163 | fi | |
11164 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11165 | LIBS=$ac_check_lib_save_LIBS | |
11166 | fi | |
598a2813 | 11167 | echo "$as_me:11166: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
503d2be0 AS |
11168 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
11169 | if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
925c2f3f | 11170 | cat >>confdefs.h <<EOF |
503d2be0 | 11171 | #define HAVE_LIBKRB 1 |
925c2f3f | 11172 | EOF |
a21616bd KR |
11173 | |
11174 | LIBS="-lkrb $LIBS" | |
11175 | ||
a21616bd KR |
11176 | fi |
11177 | ||
11178 | fi | |
11179 | ||
11180 | fi | |
11181 | ||
11182 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
11183 | |
11184 | for ac_header in krb5.h | |
a21616bd | 11185 | do |
503d2be0 | 11186 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
598a2813 | 11187 | echo "$as_me:11186: checking for $ac_header" >&5 |
503d2be0 AS |
11188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11189 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 11191 | else |
925c2f3f EZ |
11192 | cat >conftest.$ac_ext <<_ACEOF |
11193 | #line 11187 "configure" | |
503d2be0 AS |
11194 | #include "confdefs.h" |
11195 | #include <$ac_header> | |
11196 | _ACEOF | |
598a2813 | 11197 | if { (eval echo "$as_me:11196: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11198 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11199 | ac_status=$? | |
11200 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11201 | rm -f conftest.er1 | |
11202 | cat conftest.err >&5 | |
598a2813 | 11203 | echo "$as_me:11202: \$? = $ac_status" >&5 |
503d2be0 AS |
11204 | (exit $ac_status); } >/dev/null; then |
11205 | if test -s conftest.err; then | |
11206 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11207 | else | |
11208 | ac_cpp_err= | |
11209 | fi | |
11210 | else | |
11211 | ac_cpp_err=yes | |
11212 | fi | |
11213 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 11214 | eval "$as_ac_Header=yes" |
503d2be0 AS |
11215 | else |
11216 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11217 | cat conftest.$ac_ext >&5 |
925c2f3f | 11218 | eval "$as_ac_Header=no" |
a21616bd | 11219 | fi |
503d2be0 | 11220 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11221 | fi |
598a2813 | 11222 | echo "$as_me:11221: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11223 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11224 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
925c2f3f | 11225 | cat >>confdefs.h <<EOF |
503d2be0 | 11226 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 11227 | EOF |
503d2be0 | 11228 | |
a21616bd KR |
11229 | fi |
11230 | done | |
11231 | ||
11232 | else | |
503d2be0 AS |
11233 | |
11234 | for ac_header in des.h | |
a21616bd | 11235 | do |
503d2be0 | 11236 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
598a2813 | 11237 | echo "$as_me:11236: checking for $ac_header" >&5 |
503d2be0 AS |
11238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 11241 | else |
925c2f3f EZ |
11242 | cat >conftest.$ac_ext <<_ACEOF |
11243 | #line 11237 "configure" | |
503d2be0 AS |
11244 | #include "confdefs.h" |
11245 | #include <$ac_header> | |
11246 | _ACEOF | |
598a2813 | 11247 | if { (eval echo "$as_me:11246: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11248 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11249 | ac_status=$? | |
11250 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11251 | rm -f conftest.er1 | |
11252 | cat conftest.err >&5 | |
598a2813 | 11253 | echo "$as_me:11252: \$? = $ac_status" >&5 |
503d2be0 AS |
11254 | (exit $ac_status); } >/dev/null; then |
11255 | if test -s conftest.err; then | |
11256 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11257 | else | |
11258 | ac_cpp_err= | |
11259 | fi | |
11260 | else | |
11261 | ac_cpp_err=yes | |
11262 | fi | |
11263 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 11264 | eval "$as_ac_Header=yes" |
503d2be0 AS |
11265 | else |
11266 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11267 | cat conftest.$ac_ext >&5 |
925c2f3f | 11268 | eval "$as_ac_Header=no" |
a21616bd | 11269 | fi |
503d2be0 | 11270 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11271 | fi |
598a2813 | 11272 | echo "$as_me:11271: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11273 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11274 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
925c2f3f | 11275 | cat >>confdefs.h <<EOF |
503d2be0 | 11276 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 11277 | EOF |
503d2be0 | 11278 | |
a21616bd | 11279 | else |
503d2be0 AS |
11280 | |
11281 | for ac_header in kerberosIV/des.h | |
a21616bd | 11282 | do |
503d2be0 | 11283 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
598a2813 | 11284 | echo "$as_me:11283: checking for $ac_header" >&5 |
503d2be0 AS |
11285 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 11288 | else |
925c2f3f EZ |
11289 | cat >conftest.$ac_ext <<_ACEOF |
11290 | #line 11284 "configure" | |
503d2be0 AS |
11291 | #include "confdefs.h" |
11292 | #include <$ac_header> | |
11293 | _ACEOF | |
598a2813 | 11294 | if { (eval echo "$as_me:11293: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11295 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11296 | ac_status=$? | |
11297 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11298 | rm -f conftest.er1 | |
11299 | cat conftest.err >&5 | |
598a2813 | 11300 | echo "$as_me:11299: \$? = $ac_status" >&5 |
503d2be0 AS |
11301 | (exit $ac_status); } >/dev/null; then |
11302 | if test -s conftest.err; then | |
11303 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11304 | else | |
11305 | ac_cpp_err= | |
11306 | fi | |
11307 | else | |
11308 | ac_cpp_err=yes | |
11309 | fi | |
11310 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 11311 | eval "$as_ac_Header=yes" |
503d2be0 AS |
11312 | else |
11313 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11314 | cat conftest.$ac_ext >&5 |
925c2f3f | 11315 | eval "$as_ac_Header=no" |
a21616bd | 11316 | fi |
503d2be0 | 11317 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11318 | fi |
598a2813 | 11319 | echo "$as_me:11318: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11320 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
925c2f3f | 11322 | cat >>confdefs.h <<EOF |
503d2be0 | 11323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 11324 | EOF |
503d2be0 | 11325 | |
a21616bd | 11326 | else |
503d2be0 AS |
11327 | |
11328 | for ac_header in kerberos/des.h | |
a21616bd | 11329 | do |
503d2be0 | 11330 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
598a2813 | 11331 | echo "$as_me:11330: checking for $ac_header" >&5 |
503d2be0 AS |
11332 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 11335 | else |
925c2f3f EZ |
11336 | cat >conftest.$ac_ext <<_ACEOF |
11337 | #line 11331 "configure" | |
503d2be0 AS |
11338 | #include "confdefs.h" |
11339 | #include <$ac_header> | |
11340 | _ACEOF | |
598a2813 | 11341 | if { (eval echo "$as_me:11340: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11342 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11343 | ac_status=$? | |
11344 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11345 | rm -f conftest.er1 | |
11346 | cat conftest.err >&5 | |
598a2813 | 11347 | echo "$as_me:11346: \$? = $ac_status" >&5 |
503d2be0 AS |
11348 | (exit $ac_status); } >/dev/null; then |
11349 | if test -s conftest.err; then | |
11350 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11351 | else | |
11352 | ac_cpp_err= | |
11353 | fi | |
11354 | else | |
11355 | ac_cpp_err=yes | |
11356 | fi | |
11357 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 11358 | eval "$as_ac_Header=yes" |
503d2be0 AS |
11359 | else |
11360 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11361 | cat conftest.$ac_ext >&5 |
925c2f3f | 11362 | eval "$as_ac_Header=no" |
a21616bd | 11363 | fi |
503d2be0 | 11364 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11365 | fi |
598a2813 | 11366 | echo "$as_me:11365: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11367 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11368 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
925c2f3f | 11369 | cat >>confdefs.h <<EOF |
503d2be0 | 11370 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 11371 | EOF |
a21616bd KR |
11372 | |
11373 | fi | |
11374 | done | |
11375 | ||
98418dba | 11376 | fi |
925c2f3f EZ |
11377 | done |
11378 | ||
98418dba | 11379 | fi |
925c2f3f | 11380 | done |
98418dba | 11381 | |
925c2f3f EZ |
11382 | for ac_header in krb.h |
11383 | do | |
11384 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
598a2813 | 11385 | echo "$as_me:11384: checking for $ac_header" >&5 |
925c2f3f EZ |
11386 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11387 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11389 | else | |
11390 | cat >conftest.$ac_ext <<_ACEOF | |
11391 | #line 11385 "configure" | |
503d2be0 AS |
11392 | #include "confdefs.h" |
11393 | #include <$ac_header> | |
11394 | _ACEOF | |
598a2813 | 11395 | if { (eval echo "$as_me:11394: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11396 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11397 | ac_status=$? | |
11398 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11399 | rm -f conftest.er1 | |
11400 | cat conftest.err >&5 | |
598a2813 | 11401 | echo "$as_me:11400: \$? = $ac_status" >&5 |
503d2be0 AS |
11402 | (exit $ac_status); } >/dev/null; then |
11403 | if test -s conftest.err; then | |
11404 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11405 | else | |
11406 | ac_cpp_err= | |
11407 | fi | |
11408 | else | |
11409 | ac_cpp_err=yes | |
11410 | fi | |
11411 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 11412 | eval "$as_ac_Header=yes" |
503d2be0 AS |
11413 | else |
11414 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11415 | cat conftest.$ac_ext >&5 |
925c2f3f | 11416 | eval "$as_ac_Header=no" |
a21616bd | 11417 | fi |
503d2be0 | 11418 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11419 | fi |
598a2813 | 11420 | echo "$as_me:11419: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11421 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11422 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
925c2f3f | 11423 | cat >>confdefs.h <<EOF |
503d2be0 | 11424 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 11425 | EOF |
503d2be0 | 11426 | |
a21616bd | 11427 | else |
503d2be0 AS |
11428 | |
11429 | for ac_header in kerberosIV/krb.h | |
a21616bd | 11430 | do |
503d2be0 | 11431 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
598a2813 | 11432 | echo "$as_me:11431: checking for $ac_header" >&5 |
503d2be0 AS |
11433 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 11436 | else |
925c2f3f EZ |
11437 | cat >conftest.$ac_ext <<_ACEOF |
11438 | #line 11432 "configure" | |
503d2be0 AS |
11439 | #include "confdefs.h" |
11440 | #include <$ac_header> | |
11441 | _ACEOF | |
598a2813 | 11442 | if { (eval echo "$as_me:11441: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
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 | |
598a2813 | 11448 | echo "$as_me:11447: \$? = $ac_status" >&5 |
503d2be0 AS |
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 | |
11455 | else | |
11456 | ac_cpp_err=yes | |
11457 | fi | |
11458 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 11459 | eval "$as_ac_Header=yes" |
503d2be0 AS |
11460 | else |
11461 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11462 | cat conftest.$ac_ext >&5 |
925c2f3f | 11463 | eval "$as_ac_Header=no" |
a21616bd | 11464 | fi |
503d2be0 | 11465 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11466 | fi |
598a2813 | 11467 | echo "$as_me:11466: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11468 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
925c2f3f | 11470 | cat >>confdefs.h <<EOF |
503d2be0 | 11471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 11472 | EOF |
503d2be0 | 11473 | |
a21616bd | 11474 | else |
503d2be0 AS |
11475 | |
11476 | for ac_header in kerberos/krb.h | |
a21616bd | 11477 | do |
503d2be0 | 11478 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
598a2813 | 11479 | echo "$as_me:11478: checking for $ac_header" >&5 |
503d2be0 AS |
11480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 11483 | else |
925c2f3f EZ |
11484 | cat >conftest.$ac_ext <<_ACEOF |
11485 | #line 11479 "configure" | |
503d2be0 AS |
11486 | #include "confdefs.h" |
11487 | #include <$ac_header> | |
11488 | _ACEOF | |
598a2813 | 11489 | if { (eval echo "$as_me:11488: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11491 | ac_status=$? | |
11492 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11493 | rm -f conftest.er1 | |
11494 | cat conftest.err >&5 | |
598a2813 | 11495 | echo "$as_me:11494: \$? = $ac_status" >&5 |
503d2be0 AS |
11496 | (exit $ac_status); } >/dev/null; then |
11497 | if test -s conftest.err; then | |
11498 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11499 | else | |
11500 | ac_cpp_err= | |
11501 | fi | |
11502 | else | |
11503 | ac_cpp_err=yes | |
11504 | fi | |
11505 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 11506 | eval "$as_ac_Header=yes" |
503d2be0 AS |
11507 | else |
11508 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11509 | cat conftest.$ac_ext >&5 |
925c2f3f | 11510 | eval "$as_ac_Header=no" |
a21616bd | 11511 | fi |
503d2be0 | 11512 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11513 | fi |
598a2813 | 11514 | echo "$as_me:11513: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11515 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
925c2f3f | 11517 | cat >>confdefs.h <<EOF |
503d2be0 | 11518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 11519 | EOF |
503d2be0 | 11520 | |
a21616bd KR |
11521 | fi |
11522 | done | |
11523 | ||
11524 | fi | |
11525 | done | |
11526 | ||
11527 | fi | |
11528 | done | |
11529 | ||
11530 | fi | |
503d2be0 AS |
11531 | |
11532 | for ac_header in com_err.h | |
a21616bd | 11533 | do |
503d2be0 | 11534 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
598a2813 | 11535 | echo "$as_me:11534: checking for $ac_header" >&5 |
503d2be0 AS |
11536 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11537 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 11539 | else |
925c2f3f EZ |
11540 | cat >conftest.$ac_ext <<_ACEOF |
11541 | #line 11535 "configure" | |
503d2be0 AS |
11542 | #include "confdefs.h" |
11543 | #include <$ac_header> | |
11544 | _ACEOF | |
598a2813 | 11545 | if { (eval echo "$as_me:11544: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11546 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11547 | ac_status=$? | |
11548 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11549 | rm -f conftest.er1 | |
11550 | cat conftest.err >&5 | |
598a2813 | 11551 | echo "$as_me:11550: \$? = $ac_status" >&5 |
503d2be0 AS |
11552 | (exit $ac_status); } >/dev/null; then |
11553 | if test -s conftest.err; then | |
11554 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11555 | else | |
11556 | ac_cpp_err= | |
11557 | fi | |
11558 | else | |
11559 | ac_cpp_err=yes | |
11560 | fi | |
11561 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 11562 | eval "$as_ac_Header=yes" |
503d2be0 AS |
11563 | else |
11564 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11565 | cat conftest.$ac_ext >&5 |
925c2f3f | 11566 | eval "$as_ac_Header=no" |
a21616bd | 11567 | fi |
503d2be0 | 11568 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11569 | fi |
598a2813 | 11570 | echo "$as_me:11569: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11572 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
925c2f3f | 11573 | cat >>confdefs.h <<EOF |
503d2be0 | 11574 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 11575 | EOF |
503d2be0 | 11576 | |
a21616bd KR |
11577 | fi |
11578 | done | |
11579 | ||
11580 | fi | |
11581 | ||
ba4481b5 DL |
11582 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
11583 | # to return localized messages. | |
503d2be0 | 11584 | |
598a2813 | 11585 | echo "$as_me:11584: checking for dgettext in -lintl" >&5 |
503d2be0 AS |
11586 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
11587 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
11588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 11589 | else |
503d2be0 | 11590 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 11591 | LIBS="-lintl $LIBS" |
503d2be0 | 11592 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 11593 | #line 11587 "configure" |
ba4481b5 | 11594 | #include "confdefs.h" |
503d2be0 | 11595 | |
ba4481b5 | 11596 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11597 | #ifdef __cplusplus |
11598 | extern "C" | |
11599 | #endif | |
ba4481b5 | 11600 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
11601 | builtin and then its argument prototype would still apply. */ |
11602 | char dgettext (); | |
11603 | int | |
11604 | main () | |
11605 | { | |
11606 | dgettext (); | |
11607 | ; | |
11608 | return 0; | |
11609 | } | |
11610 | _ACEOF | |
11611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 11612 | if { (eval echo "$as_me:11611: \"$ac_link\"") >&5 |
503d2be0 AS |
11613 | (eval $ac_link) 2>&5 |
11614 | ac_status=$? | |
598a2813 | 11615 | echo "$as_me:11614: \$? = $ac_status" >&5 |
503d2be0 AS |
11616 | (exit $ac_status); } && |
11617 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 11618 | { (eval echo "$as_me:11617: \"$ac_try\"") >&5 |
503d2be0 AS |
11619 | (eval $ac_try) 2>&5 |
11620 | ac_status=$? | |
598a2813 | 11621 | echo "$as_me:11620: \$? = $ac_status" >&5 |
503d2be0 AS |
11622 | (exit $ac_status); }; }; then |
11623 | ac_cv_lib_intl_dgettext=yes | |
11624 | else | |
11625 | echo "$as_me: failed program was:" >&5 | |
11626 | cat conftest.$ac_ext >&5 | |
11627 | ac_cv_lib_intl_dgettext=no | |
11628 | fi | |
11629 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11630 | LIBS=$ac_check_lib_save_LIBS | |
11631 | fi | |
598a2813 | 11632 | echo "$as_me:11631: result: $ac_cv_lib_intl_dgettext" >&5 |
503d2be0 AS |
11633 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
11634 | if test $ac_cv_lib_intl_dgettext = yes; then | |
925c2f3f | 11635 | cat >>confdefs.h <<EOF |
503d2be0 | 11636 | #define HAVE_LIBINTL 1 |
925c2f3f | 11637 | EOF |
ba4481b5 DL |
11638 | |
11639 | LIBS="-lintl $LIBS" | |
11640 | ||
ba4481b5 DL |
11641 | fi |
11642 | ||
598a2813 | 11643 | echo "$as_me:11642: checking whether localtime caches TZ" >&5 |
503d2be0 AS |
11644 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
11645 | if test "${emacs_cv_localtime_cache+set}" = set; then | |
11646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
11647 | else |
11648 | if test x$ac_cv_func_tzset = xyes; then | |
11649 | if test "$cross_compiling" = yes; then | |
11650 | # If we have tzset, assume the worst when cross-compiling. | |
11651 | emacs_cv_localtime_cache=yes | |
11652 | else | |
503d2be0 | 11653 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 11654 | #line 11648 "configure" |
ba4481b5 DL |
11655 | #include "confdefs.h" |
11656 | #include <time.h> | |
ba4481b5 DL |
11657 | extern char **environ; |
11658 | unset_TZ () | |
11659 | { | |
11660 | char **from, **to; | |
11661 | for (to = from = environ; (*to = *from); from++) | |
11662 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
11663 | to++; | |
11664 | } | |
11665 | char TZ_GMT0[] = "TZ=GMT0"; | |
11666 | char TZ_PST8[] = "TZ=PST8"; | |
11667 | main() | |
11668 | { | |
11669 | time_t now = time ((time_t *) 0); | |
11670 | int hour_GMT0, hour_unset; | |
11671 | if (putenv (TZ_GMT0) != 0) | |
11672 | exit (1); | |
11673 | hour_GMT0 = localtime (&now)->tm_hour; | |
11674 | unset_TZ (); | |
11675 | hour_unset = localtime (&now)->tm_hour; | |
11676 | if (putenv (TZ_PST8) != 0) | |
11677 | exit (1); | |
11678 | if (localtime (&now)->tm_hour == hour_GMT0) | |
11679 | exit (1); | |
11680 | unset_TZ (); | |
11681 | if (localtime (&now)->tm_hour != hour_unset) | |
11682 | exit (1); | |
11683 | exit (0); | |
11684 | } | |
503d2be0 AS |
11685 | _ACEOF |
11686 | rm -f conftest$ac_exeext | |
598a2813 | 11687 | if { (eval echo "$as_me:11686: \"$ac_link\"") >&5 |
503d2be0 AS |
11688 | (eval $ac_link) 2>&5 |
11689 | ac_status=$? | |
598a2813 | 11690 | echo "$as_me:11689: \$? = $ac_status" >&5 |
503d2be0 | 11691 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
598a2813 | 11692 | { (eval echo "$as_me:11691: \"$ac_try\"") >&5 |
503d2be0 AS |
11693 | (eval $ac_try) 2>&5 |
11694 | ac_status=$? | |
598a2813 | 11695 | echo "$as_me:11694: \$? = $ac_status" >&5 |
503d2be0 | 11696 | (exit $ac_status); }; }; then |
ba4481b5 DL |
11697 | emacs_cv_localtime_cache=no |
11698 | else | |
503d2be0 AS |
11699 | echo "$as_me: program exited with status $ac_status" >&5 |
11700 | echo "$as_me: failed program was:" >&5 | |
11701 | cat conftest.$ac_ext >&5 | |
11702 | emacs_cv_localtime_cache=yes | |
ba4481b5 | 11703 | fi |
503d2be0 | 11704 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 11705 | fi |
ba4481b5 DL |
11706 | else |
11707 | # If we lack tzset, report that localtime does not cache TZ, | |
11708 | # since we can't invalidate the cache if we don't have tzset. | |
11709 | emacs_cv_localtime_cache=no | |
11710 | fi | |
11711 | fi | |
598a2813 | 11712 | echo "$as_me:11711: result: $emacs_cv_localtime_cache" >&5 |
503d2be0 | 11713 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
ba4481b5 | 11714 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 11715 | |
925c2f3f | 11716 | cat >>confdefs.h <<\EOF |
ba4481b5 | 11717 | #define LOCALTIME_CACHE 1 |
925c2f3f | 11718 | EOF |
ba4481b5 DL |
11719 | |
11720 | fi | |
11721 | ||
11722 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
11723 | |
11724 | for ac_func in gettimeofday | |
48d4b120 | 11725 | do |
503d2be0 | 11726 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
598a2813 | 11727 | echo "$as_me:11726: checking for $ac_func" >&5 |
503d2be0 AS |
11728 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11729 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 11731 | else |
503d2be0 | 11732 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 11733 | #line 11727 "configure" |
48d4b120 DL |
11734 | #include "confdefs.h" |
11735 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 11736 | which can conflict with char $ac_func (); below. */ |
48d4b120 DL |
11737 | #include <assert.h> |
11738 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
11739 | #ifdef __cplusplus |
11740 | extern "C" | |
11741 | #endif | |
48d4b120 | 11742 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
11743 | builtin and then its argument prototype would still apply. */ |
11744 | char $ac_func (); | |
11745 | char (*f) (); | |
48d4b120 | 11746 | |
503d2be0 AS |
11747 | int |
11748 | main () | |
11749 | { | |
48d4b120 DL |
11750 | /* The GNU C library defines this for functions which it implements |
11751 | to always fail with ENOSYS. Some functions are actually named | |
11752 | something starting with __ and the normal name is an alias. */ | |
11753 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11754 | choke me | |
11755 | #else | |
503d2be0 | 11756 | f = $ac_func; |
48d4b120 DL |
11757 | #endif |
11758 | ||
503d2be0 AS |
11759 | ; |
11760 | return 0; | |
11761 | } | |
11762 | _ACEOF | |
11763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 11764 | if { (eval echo "$as_me:11763: \"$ac_link\"") >&5 |
503d2be0 AS |
11765 | (eval $ac_link) 2>&5 |
11766 | ac_status=$? | |
598a2813 | 11767 | echo "$as_me:11766: \$? = $ac_status" >&5 |
503d2be0 AS |
11768 | (exit $ac_status); } && |
11769 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 11770 | { (eval echo "$as_me:11769: \"$ac_try\"") >&5 |
503d2be0 AS |
11771 | (eval $ac_try) 2>&5 |
11772 | ac_status=$? | |
598a2813 | 11773 | echo "$as_me:11772: \$? = $ac_status" >&5 |
503d2be0 AS |
11774 | (exit $ac_status); }; }; then |
11775 | eval "$as_ac_var=yes" | |
11776 | else | |
11777 | echo "$as_me: failed program was:" >&5 | |
11778 | cat conftest.$ac_ext >&5 | |
11779 | eval "$as_ac_var=no" | |
11780 | fi | |
11781 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11782 | fi | |
598a2813 | 11783 | echo "$as_me:11782: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
11784 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11785 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 11786 | cat >>confdefs.h <<EOF |
503d2be0 | 11787 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 11788 | EOF |
48d4b120 | 11789 | |
48d4b120 DL |
11790 | fi |
11791 | done | |
11792 | ||
b936fae4 | 11793 | if test $ac_cv_func_gettimeofday = yes; then |
598a2813 | 11794 | echo "$as_me:11793: checking whether gettimeofday can accept two arguments" >&5 |
503d2be0 AS |
11795 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
11796 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
11797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 11798 | else |
503d2be0 | 11799 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 11800 | #line 11794 "configure" |
a3f08d9e | 11801 | #include "confdefs.h" |
ba4481b5 | 11802 | |
a3f08d9e DL |
11803 | #ifdef TIME_WITH_SYS_TIME |
11804 | #include <sys/time.h> | |
11805 | #include <time.h> | |
11806 | #else | |
11807 | #ifdef HAVE_SYS_TIME_H | |
11808 | #include <sys/time.h> | |
11809 | #else | |
11810 | #include <time.h> | |
11811 | #endif | |
11812 | #endif | |
503d2be0 AS |
11813 | int |
11814 | main () | |
11815 | { | |
a3f08d9e | 11816 | struct timeval time; |
b936fae4 | 11817 | gettimeofday (&time, 0); |
503d2be0 AS |
11818 | ; |
11819 | return 0; | |
11820 | } | |
11821 | _ACEOF | |
11822 | rm -f conftest.$ac_objext | |
598a2813 | 11823 | if { (eval echo "$as_me:11822: \"$ac_compile\"") >&5 |
503d2be0 AS |
11824 | (eval $ac_compile) 2>&5 |
11825 | ac_status=$? | |
598a2813 | 11826 | echo "$as_me:11825: \$? = $ac_status" >&5 |
503d2be0 AS |
11827 | (exit $ac_status); } && |
11828 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 11829 | { (eval echo "$as_me:11828: \"$ac_try\"") >&5 |
503d2be0 AS |
11830 | (eval $ac_try) 2>&5 |
11831 | ac_status=$? | |
598a2813 | 11832 | echo "$as_me:11831: \$? = $ac_status" >&5 |
503d2be0 | 11833 | (exit $ac_status); }; }; then |
ba4481b5 DL |
11834 | emacs_cv_gettimeofday_two_arguments=yes |
11835 | else | |
503d2be0 AS |
11836 | echo "$as_me: failed program was:" >&5 |
11837 | cat conftest.$ac_ext >&5 | |
11838 | emacs_cv_gettimeofday_two_arguments=no | |
ba4481b5 | 11839 | fi |
503d2be0 | 11840 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 11841 | fi |
598a2813 | 11842 | echo "$as_me:11841: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
503d2be0 | 11843 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
b936fae4 AS |
11844 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
11845 | ||
925c2f3f | 11846 | cat >>confdefs.h <<\EOF |
ba4481b5 | 11847 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
925c2f3f | 11848 | EOF |
ba4481b5 | 11849 | |
b936fae4 | 11850 | fi |
ba4481b5 DL |
11851 | fi |
11852 | fi | |
11853 | ||
48d4b120 | 11854 | if test "$ac_cv_func_gettimeofday" = yes; then |
598a2813 | 11855 | echo "$as_me:11854: checking for struct timezone" >&5 |
503d2be0 AS |
11856 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
11857 | if test "${emacs_cv_struct_timezone+set}" = set; then | |
11858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 11859 | else |
503d2be0 | 11860 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 11861 | #line 11855 "configure" |
48d4b120 DL |
11862 | #include "confdefs.h" |
11863 | #include <sys/time.h> | |
503d2be0 AS |
11864 | int |
11865 | main () | |
11866 | { | |
48d4b120 | 11867 | struct timezone tz; |
503d2be0 AS |
11868 | ; |
11869 | return 0; | |
11870 | } | |
11871 | _ACEOF | |
11872 | rm -f conftest.$ac_objext | |
598a2813 | 11873 | if { (eval echo "$as_me:11872: \"$ac_compile\"") >&5 |
503d2be0 AS |
11874 | (eval $ac_compile) 2>&5 |
11875 | ac_status=$? | |
598a2813 | 11876 | echo "$as_me:11875: \$? = $ac_status" >&5 |
503d2be0 AS |
11877 | (exit $ac_status); } && |
11878 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 11879 | { (eval echo "$as_me:11878: \"$ac_try\"") >&5 |
503d2be0 AS |
11880 | (eval $ac_try) 2>&5 |
11881 | ac_status=$? | |
598a2813 | 11882 | echo "$as_me:11881: \$? = $ac_status" >&5 |
503d2be0 | 11883 | (exit $ac_status); }; }; then |
48d4b120 DL |
11884 | if test "$cross_compiling" = yes; then |
11885 | emacs_cv_struct_timezone=yes | |
11886 | else | |
503d2be0 | 11887 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 11888 | #line 11882 "configure" |
48d4b120 DL |
11889 | #include "confdefs.h" |
11890 | ||
11891 | #ifdef TIME_WITH_SYS_TIME | |
11892 | #include <sys/time.h> | |
11893 | #include <time.h> | |
11894 | #else | |
11895 | #ifdef HAVE_SYS_TIME_H | |
11896 | #include <sys/time.h> | |
11897 | #else | |
11898 | #include <time.h> | |
11899 | #endif | |
11900 | #endif | |
11901 | main () { | |
11902 | struct timeval time; | |
11903 | struct timezone dummy; | |
11904 | exit (gettimeofday (&time, &dummy)); | |
11905 | } | |
503d2be0 AS |
11906 | _ACEOF |
11907 | rm -f conftest$ac_exeext | |
598a2813 | 11908 | if { (eval echo "$as_me:11907: \"$ac_link\"") >&5 |
503d2be0 AS |
11909 | (eval $ac_link) 2>&5 |
11910 | ac_status=$? | |
598a2813 | 11911 | echo "$as_me:11910: \$? = $ac_status" >&5 |
503d2be0 | 11912 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
598a2813 | 11913 | { (eval echo "$as_me:11912: \"$ac_try\"") >&5 |
503d2be0 AS |
11914 | (eval $ac_try) 2>&5 |
11915 | ac_status=$? | |
598a2813 | 11916 | echo "$as_me:11915: \$? = $ac_status" >&5 |
503d2be0 | 11917 | (exit $ac_status); }; }; then |
48d4b120 DL |
11918 | emacs_cv_struct_timezone=yes |
11919 | else | |
503d2be0 AS |
11920 | echo "$as_me: program exited with status $ac_status" >&5 |
11921 | echo "$as_me: failed program was:" >&5 | |
11922 | cat conftest.$ac_ext >&5 | |
11923 | emacs_cv_struct_timezone=no | |
48d4b120 | 11924 | fi |
503d2be0 | 11925 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 11926 | fi |
48d4b120 | 11927 | else |
503d2be0 AS |
11928 | echo "$as_me: failed program was:" >&5 |
11929 | cat conftest.$ac_ext >&5 | |
11930 | emacs_cv_struct_timezone=no | |
48d4b120 | 11931 | fi |
503d2be0 | 11932 | rm -f conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 11933 | fi |
598a2813 | 11934 | echo "$as_me:11933: result: $emacs_cv_struct_timezone" >&5 |
503d2be0 | 11935 | echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
48d4b120 DL |
11936 | fi |
11937 | ||
ba4481b5 | 11938 | ok_so_far=yes |
598a2813 | 11939 | echo "$as_me:11938: checking for socket" >&5 |
503d2be0 AS |
11940 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
11941 | if test "${ac_cv_func_socket+set}" = set; then | |
11942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 11943 | else |
503d2be0 | 11944 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 11945 | #line 11939 "configure" |
ba4481b5 DL |
11946 | #include "confdefs.h" |
11947 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 11948 | which can conflict with char socket (); below. */ |
ba4481b5 DL |
11949 | #include <assert.h> |
11950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
11951 | #ifdef __cplusplus |
11952 | extern "C" | |
11953 | #endif | |
ba4481b5 | 11954 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
11955 | builtin and then its argument prototype would still apply. */ |
11956 | char socket (); | |
11957 | char (*f) (); | |
ba4481b5 | 11958 | |
503d2be0 AS |
11959 | int |
11960 | main () | |
11961 | { | |
ba4481b5 DL |
11962 | /* The GNU C library defines this for functions which it implements |
11963 | to always fail with ENOSYS. Some functions are actually named | |
11964 | something starting with __ and the normal name is an alias. */ | |
11965 | #if defined (__stub_socket) || defined (__stub___socket) | |
11966 | choke me | |
11967 | #else | |
503d2be0 | 11968 | f = socket; |
ba4481b5 DL |
11969 | #endif |
11970 | ||
503d2be0 AS |
11971 | ; |
11972 | return 0; | |
11973 | } | |
11974 | _ACEOF | |
11975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 11976 | if { (eval echo "$as_me:11975: \"$ac_link\"") >&5 |
503d2be0 AS |
11977 | (eval $ac_link) 2>&5 |
11978 | ac_status=$? | |
598a2813 | 11979 | echo "$as_me:11978: \$? = $ac_status" >&5 |
503d2be0 AS |
11980 | (exit $ac_status); } && |
11981 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 11982 | { (eval echo "$as_me:11981: \"$ac_try\"") >&5 |
503d2be0 AS |
11983 | (eval $ac_try) 2>&5 |
11984 | ac_status=$? | |
598a2813 | 11985 | echo "$as_me:11984: \$? = $ac_status" >&5 |
503d2be0 AS |
11986 | (exit $ac_status); }; }; then |
11987 | ac_cv_func_socket=yes | |
11988 | else | |
11989 | echo "$as_me: failed program was:" >&5 | |
11990 | cat conftest.$ac_ext >&5 | |
11991 | ac_cv_func_socket=no | |
11992 | fi | |
11993 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11994 | fi | |
598a2813 | 11995 | echo "$as_me:11994: result: $ac_cv_func_socket" >&5 |
503d2be0 AS |
11996 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
11997 | if test $ac_cv_func_socket = yes; then | |
ba4481b5 DL |
11998 | : |
11999 | else | |
503d2be0 | 12000 | ok_so_far=no |
ba4481b5 DL |
12001 | fi |
12002 | ||
12003 | if test $ok_so_far = yes; then | |
598a2813 | 12004 | echo "$as_me:12003: checking for netinet/in.h" >&5 |
503d2be0 AS |
12005 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
12006 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
12007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 12008 | else |
925c2f3f EZ |
12009 | cat >conftest.$ac_ext <<_ACEOF |
12010 | #line 12004 "configure" | |
ba4481b5 DL |
12011 | #include "confdefs.h" |
12012 | #include <netinet/in.h> | |
503d2be0 | 12013 | _ACEOF |
598a2813 | 12014 | if { (eval echo "$as_me:12013: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
12015 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12016 | ac_status=$? | |
12017 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
12018 | rm -f conftest.er1 | |
12019 | cat conftest.err >&5 | |
598a2813 | 12020 | echo "$as_me:12019: \$? = $ac_status" >&5 |
503d2be0 AS |
12021 | (exit $ac_status); } >/dev/null; then |
12022 | if test -s conftest.err; then | |
12023 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12024 | else | |
12025 | ac_cpp_err= | |
12026 | fi | |
12027 | else | |
12028 | ac_cpp_err=yes | |
12029 | fi | |
12030 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 12031 | ac_cv_header_netinet_in_h=yes |
ba4481b5 | 12032 | else |
503d2be0 | 12033 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 12034 | cat conftest.$ac_ext >&5 |
925c2f3f | 12035 | ac_cv_header_netinet_in_h=no |
ba4481b5 | 12036 | fi |
503d2be0 | 12037 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 12038 | fi |
598a2813 | 12039 | echo "$as_me:12038: result: $ac_cv_header_netinet_in_h" >&5 |
503d2be0 AS |
12040 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
12041 | if test $ac_cv_header_netinet_in_h = yes; then | |
ba4481b5 DL |
12042 | : |
12043 | else | |
503d2be0 | 12044 | ok_so_far=no |
ba4481b5 DL |
12045 | fi |
12046 | ||
12047 | fi | |
12048 | if test $ok_so_far = yes; then | |
598a2813 | 12049 | echo "$as_me:12048: checking for arpa/inet.h" >&5 |
503d2be0 AS |
12050 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
12051 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
12052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 12053 | else |
925c2f3f EZ |
12054 | cat >conftest.$ac_ext <<_ACEOF |
12055 | #line 12049 "configure" | |
ba4481b5 DL |
12056 | #include "confdefs.h" |
12057 | #include <arpa/inet.h> | |
503d2be0 | 12058 | _ACEOF |
598a2813 | 12059 | if { (eval echo "$as_me:12058: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
12060 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12061 | ac_status=$? | |
12062 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
12063 | rm -f conftest.er1 | |
12064 | cat conftest.err >&5 | |
598a2813 | 12065 | echo "$as_me:12064: \$? = $ac_status" >&5 |
503d2be0 AS |
12066 | (exit $ac_status); } >/dev/null; then |
12067 | if test -s conftest.err; then | |
12068 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12069 | else | |
12070 | ac_cpp_err= | |
12071 | fi | |
12072 | else | |
12073 | ac_cpp_err=yes | |
12074 | fi | |
12075 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 12076 | ac_cv_header_arpa_inet_h=yes |
ba4481b5 | 12077 | else |
503d2be0 | 12078 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 12079 | cat conftest.$ac_ext >&5 |
925c2f3f | 12080 | ac_cv_header_arpa_inet_h=no |
ba4481b5 | 12081 | fi |
503d2be0 | 12082 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 12083 | fi |
598a2813 | 12084 | echo "$as_me:12083: result: $ac_cv_header_arpa_inet_h" >&5 |
503d2be0 AS |
12085 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
12086 | if test $ac_cv_header_arpa_inet_h = yes; then | |
ba4481b5 DL |
12087 | : |
12088 | else | |
503d2be0 | 12089 | ok_so_far=no |
ba4481b5 DL |
12090 | fi |
12091 | ||
12092 | fi | |
12093 | if test $ok_so_far = yes; then | |
b936fae4 | 12094 | |
925c2f3f | 12095 | cat >>confdefs.h <<\EOF |
ba4481b5 | 12096 | #define HAVE_INET_SOCKETS 1 |
925c2f3f | 12097 | EOF |
ba4481b5 DL |
12098 | |
12099 | fi | |
12100 | ||
12101 | if test -f /usr/lpp/X11/bin/smt.exp; then | |
b936fae4 | 12102 | |
925c2f3f | 12103 | cat >>confdefs.h <<\EOF |
ba4481b5 | 12104 | #define HAVE_AIX_SMT_EXP 1 |
925c2f3f | 12105 | EOF |
ba4481b5 DL |
12106 | |
12107 | fi | |
12108 | ||
598a2813 | 12109 | echo "$as_me:12108: checking whether system supports dynamic ptys" >&5 |
503d2be0 | 12110 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
3d9fec71 | 12111 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
598a2813 | 12112 | echo "$as_me:12111: result: yes" >&5 |
503d2be0 | 12113 | echo "${ECHO_T}yes" >&6 |
b936fae4 | 12114 | |
925c2f3f | 12115 | cat >>confdefs.h <<\EOF |
3d9fec71 | 12116 | #define HAVE_DEV_PTMX 1 |
925c2f3f | 12117 | EOF |
3d9fec71 DL |
12118 | |
12119 | else | |
598a2813 | 12120 | echo "$as_me:12119: result: no" >&5 |
503d2be0 | 12121 | echo "${ECHO_T}no" >&6 |
3d9fec71 DL |
12122 | fi |
12123 | ||
598a2813 | 12124 | echo "$as_me:12123: checking for pid_t" >&5 |
503d2be0 AS |
12125 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
12126 | if test "${ac_cv_type_pid_t+set}" = set; then | |
12127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 12128 | else |
503d2be0 | 12129 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 12130 | #line 12124 "configure" |
647847ea | 12131 | #include "confdefs.h" |
503d2be0 AS |
12132 | $ac_includes_default |
12133 | int | |
12134 | main () | |
12135 | { | |
12136 | if ((pid_t *) 0) | |
12137 | return 0; | |
12138 | if (sizeof (pid_t)) | |
12139 | return 0; | |
12140 | ; | |
12141 | return 0; | |
12142 | } | |
12143 | _ACEOF | |
12144 | rm -f conftest.$ac_objext | |
598a2813 | 12145 | if { (eval echo "$as_me:12144: \"$ac_compile\"") >&5 |
503d2be0 AS |
12146 | (eval $ac_compile) 2>&5 |
12147 | ac_status=$? | |
598a2813 | 12148 | echo "$as_me:12147: \$? = $ac_status" >&5 |
503d2be0 AS |
12149 | (exit $ac_status); } && |
12150 | { ac_try='test -s conftest.$ac_objext' | |
598a2813 | 12151 | { (eval echo "$as_me:12150: \"$ac_try\"") >&5 |
503d2be0 AS |
12152 | (eval $ac_try) 2>&5 |
12153 | ac_status=$? | |
598a2813 | 12154 | echo "$as_me:12153: \$? = $ac_status" >&5 |
503d2be0 | 12155 | (exit $ac_status); }; }; then |
647847ea DL |
12156 | ac_cv_type_pid_t=yes |
12157 | else | |
503d2be0 AS |
12158 | echo "$as_me: failed program was:" >&5 |
12159 | cat conftest.$ac_ext >&5 | |
12160 | ac_cv_type_pid_t=no | |
647847ea | 12161 | fi |
503d2be0 | 12162 | rm -f conftest.$ac_objext conftest.$ac_ext |
647847ea | 12163 | fi |
598a2813 | 12164 | echo "$as_me:12163: result: $ac_cv_type_pid_t" >&5 |
503d2be0 AS |
12165 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
12166 | if test $ac_cv_type_pid_t = yes; then | |
12167 | : | |
12168 | else | |
12169 | ||
925c2f3f | 12170 | cat >>confdefs.h <<EOF |
647847ea | 12171 | #define pid_t int |
925c2f3f | 12172 | EOF |
647847ea DL |
12173 | |
12174 | fi | |
12175 | ||
503d2be0 AS |
12176 | for ac_header in unistd.h vfork.h |
12177 | do | |
12178 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
598a2813 | 12179 | echo "$as_me:12178: checking for $ac_header" >&5 |
503d2be0 AS |
12180 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12181 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 12183 | else |
925c2f3f EZ |
12184 | cat >conftest.$ac_ext <<_ACEOF |
12185 | #line 12179 "configure" | |
503d2be0 AS |
12186 | #include "confdefs.h" |
12187 | #include <$ac_header> | |
12188 | _ACEOF | |
598a2813 | 12189 | if { (eval echo "$as_me:12188: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
12190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12191 | ac_status=$? | |
12192 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
12193 | rm -f conftest.er1 | |
12194 | cat conftest.err >&5 | |
598a2813 | 12195 | echo "$as_me:12194: \$? = $ac_status" >&5 |
503d2be0 AS |
12196 | (exit $ac_status); } >/dev/null; then |
12197 | if test -s conftest.err; then | |
12198 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12199 | else | |
12200 | ac_cpp_err= | |
12201 | fi | |
647847ea | 12202 | else |
503d2be0 AS |
12203 | ac_cpp_err=yes |
12204 | fi | |
12205 | if test -z "$ac_cpp_err"; then | |
925c2f3f | 12206 | eval "$as_ac_Header=yes" |
647847ea | 12207 | else |
503d2be0 | 12208 | echo "$as_me: failed program was:" >&5 |
647847ea | 12209 | cat conftest.$ac_ext >&5 |
925c2f3f | 12210 | eval "$as_ac_Header=no" |
647847ea | 12211 | fi |
503d2be0 | 12212 | rm -f conftest.err conftest.$ac_ext |
647847ea | 12213 | fi |
598a2813 | 12214 | echo "$as_me:12213: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
12215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12216 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
925c2f3f | 12217 | cat >>confdefs.h <<EOF |
503d2be0 | 12218 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
925c2f3f | 12219 | EOF |
647847ea | 12220 | |
73b77ee5 | 12221 | fi |
503d2be0 | 12222 | done |
73b77ee5 | 12223 | |
503d2be0 AS |
12224 | for ac_func in fork vfork |
12225 | do | |
12226 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
598a2813 | 12227 | echo "$as_me:12226: checking for $ac_func" >&5 |
503d2be0 AS |
12228 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12229 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 12231 | else |
503d2be0 | 12232 | cat >conftest.$ac_ext <<_ACEOF |
925c2f3f | 12233 | #line 12227 "configure" |
fa0b693c GM |
12234 | #include "confdefs.h" |
12235 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 12236 | which can conflict with char $ac_func (); below. */ |
fa0b693c GM |
12237 | #include <assert.h> |
12238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
12239 | #ifdef __cplusplus |
12240 | extern "C" | |
12241 | #endif | |
fa0b693c | 12242 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
12243 | builtin and then its argument prototype would still apply. */ |
12244 | char $ac_func (); | |
12245 | char (*f) (); | |
fa0b693c | 12246 | |
503d2be0 AS |
12247 | int |
12248 | main () | |
12249 | { | |
fa0b693c GM |
12250 | /* The GNU C library defines this for functions which it implements |
12251 | to always fail with ENOSYS. Some functions are actually named | |
12252 | something starting with __ and the normal name is an alias. */ | |
503d2be0 | 12253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
fa0b693c GM |
12254 | choke me |
12255 | #else | |
503d2be0 | 12256 | f = $ac_func; |
fa0b693c GM |
12257 | #endif |
12258 | ||
503d2be0 AS |
12259 | ; |
12260 | return 0; | |
12261 | } | |
12262 | _ACEOF | |
12263 | rm -f conftest.$ac_objext conftest$ac_exeext | |
598a2813 | 12264 | if { (eval echo "$as_me:12263: \"$ac_link\"") >&5 |
503d2be0 AS |
12265 | (eval $ac_link) 2>&5 |
12266 | ac_status=$? | |
598a2813 | 12267 | echo "$as_me:12266: \$? = $ac_status" >&5 |
503d2be0 AS |
12268 | (exit $ac_status); } && |
12269 | { ac_try='test -s conftest$ac_exeext' | |
598a2813 | 12270 | { (eval echo "$as_me:12269: \"$ac_try\"") >&5 |
503d2be0 AS |
12271 | (eval $ac_try) 2>&5 |
12272 | ac_status=$? | |
598a2813 | 12273 | echo "$as_me:12272: \$? = $ac_status" >&5 |
503d2be0 AS |
12274 | (exit $ac_status); }; }; then |
12275 | eval "$as_ac_var=yes" | |
12276 | else | |
12277 | echo "$as_me: failed program was:" >&5 | |
12278 | cat conftest.$ac_ext >&5 | |
12279 | eval "$as_ac_var=no" | |
12280 | fi | |
12281 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12282 | fi | |
598a2813 | 12283 | echo "$as_me:12282: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
12284 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12285 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
925c2f3f | 12286 | cat >>confdefs.h <<EOF |
503d2be0 | 12287 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
925c2f3f | 12288 | EOF |
503d2be0 | 12289 | |
fa0b693c | 12290 | fi |
503d2be0 | 12291 | done |
fa0b693c | 12292 | |
503d2be0 AS |
12293 | ac_cv_func_fork_works=$ac_cv_func_fork |
12294 | if test "x$ac_cv_func_fork" = xyes; then | |
598a2813 | 12295 | echo "$as_me:12294: checking for working fork" >&5 |
503d2be0 AS |
12296 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
12297 | if test "${ac_cv_func_fork_works+set}" = set; then | |
12298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 12299 | else |
503d2be0 AS |
12300 | if test "$cross_compiling" = yes; then |
12301 | ac_cv_func_fork_works=cross | |
12302 | else | |
12303 | cat >conftest.$ac_ext <<_ACEOF | |
925c2f3f | 12304 |