Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
503d2be0 | 3 | # Generated by Autoconf 2.52. |
ba4481b5 | 4 | # |
503d2be0 AS |
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
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. | |
9 | ||
503d2be0 AS |
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 | |
16 | ||
17 | # Sed expression to map a string onto a valid variable name. | |
18 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
19 | ||
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" | |
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. | |
32 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
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 | ||
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 | |
66 | ||
67 | # NLS nuisances. | |
68 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
69 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
70 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
71 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
72 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
73 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
74 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
75 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
76 | ||
77 | # IFS | |
78 | # We need space, tab and new line, in precisely that order. | |
79 | as_nl=' | |
80 | ' | |
81 | IFS=" $as_nl" | |
82 | ||
83 | # CDPATH. | |
84 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
85 | ||
86 | # Name of the host. | |
87 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
88 | # so uname gets run too. | |
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= | |
99 | MFLAGS= MAKEFLAGS= | |
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 | ||
503d2be0 AS |
183 | # Identity of this package. |
184 | PACKAGE_NAME= | |
185 | PACKAGE_TARNAME= | |
186 | PACKAGE_VERSION= | |
187 | PACKAGE_STRING= | |
188 | PACKAGE_BUGREPORT= | |
ba4481b5 DL |
189 | |
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 \ | |
322 | | --no-cr | --no-c) | |
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 | '' ) ;; | |
501 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
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 | [\\/$]* | ?:[\\/]* ) ;; | |
513 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
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 | ||
524 | # FIXME: should be removed in autoconf 3.0. | |
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. | |
544 | ac_prog=$0 | |
503d2be0 | 545 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
ba4481b5 DL |
546 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
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 | |
503d2be0 AS |
556 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
557 | { (exit 1); exit 1; }; } | |
ba4481b5 | 558 | else |
503d2be0 AS |
559 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
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. | |
603 | cat <<EOF | |
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 | ||
624 | EOF | |
625 | ||
626 | cat <<EOF | |
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] | |
653 | EOF | |
654 | ||
655 | cat <<\EOF | |
656 | ||
657 | X features: | |
658 | --x-includes=DIR X include files are in DIR | |
659 | --x-libraries=DIR X library files are in DIR | |
660 | ||
661 | System types: | |
662 | --build=BUILD configure for building on BUILD [guessed] | |
663 | --host=HOST build programs to run on HOST [BUILD] | |
664 | EOF | |
665 | fi | |
666 | ||
667 | if test -n "$ac_init_help"; then | |
668 | ||
669 | cat <<\EOF | |
670 | ||
671 | Optional Features: | |
672 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
673 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
674 | --disable-largefile omit support for large files | |
675 | ||
676 | Optional Packages: | |
677 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
678 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
679 | --without-gcc don't use GCC to compile Emacs if GCC is found | |
680 | --without-pop don't support POP mail retrieval with movemail | |
681 | --with-kerberos support Kerberos-authenticated POP | |
682 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
683 | --with-hesiod support Hesiod to get the POP server host | |
684 | --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) | |
685 | --with-xpm use -lXpm for displaying XPM images | |
686 | --with-jpeg use -ljpeg for displaying JPEG images | |
687 | --with-tiff use -ltiff for displaying TIFF images | |
688 | --with-gif use -lungif for displaying GIF images | |
689 | --with-png use -lpng for displaying PNG images | |
690 | --without-toolkit-scroll-bars | |
cc227489 MB |
691 | don't use Motif or Xaw3d scroll bars |
692 | --without-xim don't use X11 XIM | |
503d2be0 AS |
693 | --with-x use the X Window System |
694 | ||
695 | Some influential environment variables: | |
696 | CC C compiler command | |
697 | CFLAGS C compiler flags | |
698 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
699 | nonstandard directory <lib dir> | |
700 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
701 | headers in a nonstandard directory <include dir> | |
702 | CPP C preprocessor | |
703 | ||
704 | Use these variables to override the choices made by `configure' or to help | |
705 | it to find libraries and programs with nonstandard names/locations. | |
706 | ||
707 | EOF | |
708 | fi | |
709 | ||
710 | if test "$ac_init_help" = "recursive"; then | |
711 | # If there are subdirs, report their specific --help. | |
712 | ac_popdir=`pwd` | |
713 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
714 | cd $ac_subdir | |
715 | # A "../" for each directory in /$ac_subdir. | |
716 | ac_dots=`echo $ac_subdir | | |
717 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
718 | ||
719 | case $srcdir in | |
720 | .) # No --srcdir option. We are building in place. | |
721 | ac_sub_srcdir=$srcdir ;; | |
722 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
723 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
724 | *) # Relative path. | |
725 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
726 | esac | |
727 | ||
728 | # Check for guested configure; otherwise get Cygnus style configure. | |
729 | if test -f $ac_sub_srcdir/configure.gnu; then | |
730 | echo | |
731 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
732 | elif test -f $ac_sub_srcdir/configure; then | |
733 | echo | |
734 | $SHELL $ac_sub_srcdir/configure --help=recursive | |
735 | elif test -f $ac_sub_srcdir/configure.ac || | |
736 | test -f $ac_sub_srcdir/configure.in; then | |
737 | echo | |
738 | $ac_configure --help | |
739 | else | |
740 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | |
741 | fi | |
742 | cd $ac_popdir | |
743 | done | |
744 | fi | |
745 | ||
746 | test -n "$ac_init_help" && exit 0 | |
747 | if $ac_init_version; then | |
748 | cat <<\EOF | |
749 | ||
750 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
751 | Free Software Foundation, Inc. | |
752 | This configure script is free software; the Free Software Foundation | |
753 | gives unlimited permission to copy, distribute and modify it. | |
754 | EOF | |
755 | exit 0 | |
756 | fi | |
757 | exec 5>config.log | |
758 | cat >&5 <<EOF | |
759 | This file contains any messages produced by compilers while | |
760 | running configure, to aid debugging if configure makes a mistake. | |
761 | ||
762 | It was created by $as_me, which was | |
763 | generated by GNU Autoconf 2.52. Invocation command line was | |
764 | ||
765 | $ $0 $@ | |
766 | ||
767 | EOF | |
768 | { | |
769 | cat <<_ASUNAME | |
770 | ## ---------- ## | |
771 | ## Platform. ## | |
772 | ## ---------- ## | |
773 | ||
774 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
775 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
776 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
777 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
778 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
779 | ||
780 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
781 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
782 | ||
783 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
784 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
785 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
786 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
787 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
788 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
789 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
790 | ||
791 | PATH = $PATH | |
792 | ||
793 | _ASUNAME | |
794 | } >&5 | |
795 | ||
796 | cat >&5 <<EOF | |
797 | ## ------------ ## | |
798 | ## Core tests. ## | |
799 | ## ------------ ## | |
800 | ||
801 | EOF | |
802 | ||
803 | # Keep a trace of the command line. | |
804 | # Strip out --no-create and --no-recursion so they do not pile up. | |
805 | # Also quote any args containing shell meta-characters. | |
806 | ac_configure_args= | |
807 | ac_sep= | |
808 | for ac_arg | |
809 | do | |
810 | case $ac_arg in | |
811 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
812 | | --no-cr | --no-c) ;; | |
813 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
814 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
815 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
816 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
817 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
818 | ac_sep=" " ;; | |
819 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
820 | ac_sep=" " ;; | |
821 | esac | |
822 | # Get rid of the leading space. | |
823 | done | |
824 | ||
825 | # When interrupted or exit'd, cleanup temporary files, and complete | |
826 | # config.log. We remove comments because anyway the quotes in there | |
827 | # would cause problems or look ugly. | |
828 | trap 'exit_status=$? | |
829 | # Save into config.log some information that might help in debugging. | |
830 | echo >&5 | |
831 | echo "## ----------------- ##" >&5 | |
832 | echo "## Cache variables. ##" >&5 | |
833 | echo "## ----------------- ##" >&5 | |
834 | echo >&5 | |
835 | # The following way of writing the cache mishandles newlines in values, | |
836 | { | |
837 | (set) 2>&1 | | |
838 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
839 | *ac_space=\ *) | |
840 | sed -n \ | |
841 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
842 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
843 | ;; | |
844 | *) | |
845 | sed -n \ | |
846 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
847 | ;; | |
848 | esac; | |
849 | } >&5 | |
850 | sed "/^$/d" confdefs.h >conftest.log | |
851 | if test -s conftest.log; then | |
852 | echo >&5 | |
853 | echo "## ------------ ##" >&5 | |
854 | echo "## confdefs.h. ##" >&5 | |
855 | echo "## ------------ ##" >&5 | |
856 | echo >&5 | |
857 | cat conftest.log >&5 | |
858 | fi | |
859 | (echo; echo) >&5 | |
860 | test "$ac_signal" != 0 && | |
861 | echo "$as_me: caught signal $ac_signal" >&5 | |
862 | echo "$as_me: exit $exit_status" >&5 | |
863 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
864 | exit $exit_status | |
865 | ' 0 | |
866 | for ac_signal in 1 2 13 15; do | |
867 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
868 | done | |
869 | ac_signal=0 | |
870 | ||
871 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
872 | rm -rf conftest* confdefs.h | |
873 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
874 | echo >confdefs.h | |
ba4481b5 | 875 | |
503d2be0 | 876 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 DL |
877 | # Prefer explicitly selected file to automatically selected ones. |
878 | if test -z "$CONFIG_SITE"; then | |
879 | if test "x$prefix" != xNONE; then | |
880 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
881 | else | |
882 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
883 | fi | |
884 | fi | |
885 | for ac_site_file in $CONFIG_SITE; do | |
886 | if test -r "$ac_site_file"; then | |
503d2be0 AS |
887 | { echo "$as_me:887: loading site script $ac_site_file" >&5 |
888 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
889 | cat "$ac_site_file" >&5 | |
ba4481b5 DL |
890 | . "$ac_site_file" |
891 | fi | |
892 | done | |
893 | ||
894 | if test -r "$cache_file"; then | |
503d2be0 AS |
895 | # Some versions of bash will fail to source /dev/null (special |
896 | # files actually), so we avoid doing that. | |
897 | if test -f "$cache_file"; then | |
898 | { echo "$as_me:898: loading cache $cache_file" >&5 | |
899 | echo "$as_me: loading cache $cache_file" >&6;} | |
900 | case $cache_file in | |
901 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
902 | *) . ./$cache_file;; | |
903 | esac | |
904 | fi | |
ba4481b5 | 905 | else |
503d2be0 AS |
906 | { echo "$as_me:906: creating cache $cache_file" >&5 |
907 | echo "$as_me: creating cache $cache_file" >&6;} | |
908 | >$cache_file | |
909 | fi | |
910 | ||
911 | # Check that the precious variables saved in the cache have kept the same | |
912 | # value. | |
913 | ac_cache_corrupted=false | |
914 | for ac_var in `(set) 2>&1 | | |
915 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
916 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
917 | eval ac_new_set=\$ac_env_${ac_var}_set | |
918 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
919 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
920 | case $ac_old_set,$ac_new_set in | |
921 | set,) | |
922 | { echo "$as_me:922: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
923 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
924 | ac_cache_corrupted=: ;; | |
925 | ,set) | |
926 | { echo "$as_me:926: error: \`$ac_var' was not set in the previous run" >&5 | |
927 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
928 | ac_cache_corrupted=: ;; | |
929 | ,);; | |
930 | *) | |
931 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
932 | { echo "$as_me:932: error: \`$ac_var' has changed since the previous run:" >&5 | |
933 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
934 | { echo "$as_me:934: former value: $ac_old_val" >&5 | |
935 | echo "$as_me: former value: $ac_old_val" >&2;} | |
936 | { echo "$as_me:936: current value: $ac_new_val" >&5 | |
937 | echo "$as_me: current value: $ac_new_val" >&2;} | |
938 | ac_cache_corrupted=: | |
939 | fi;; | |
940 | esac | |
941 | # Pass precious variables to config.status. It doesn't matter if | |
942 | # we pass some twice (in addition to the command line arguments). | |
943 | if test "$ac_new_set" = set; then | |
944 | case $ac_new_val in | |
945 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
946 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | |
947 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
948 | ;; | |
949 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | |
950 | ;; | |
951 | esac | |
952 | fi | |
953 | done | |
954 | if $ac_cache_corrupted; then | |
955 | { echo "$as_me:955: error: changes in the environment can compromise the build" >&5 | |
956 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
957 | { { echo "$as_me:957: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
958 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
959 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
960 | fi |
961 | ||
962 | ac_ext=c | |
ba4481b5 | 963 | ac_cpp='$CPP $CPPFLAGS' |
503d2be0 AS |
964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
967 | ||
968 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
969 | *c*,-n*) ECHO_N= ECHO_C=' | |
970 | ' ECHO_T=' ' ;; | |
971 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
972 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
973 | esac | |
974 | echo "#! $SHELL" >conftest.sh | |
975 | echo "exit 0" >>conftest.sh | |
976 | chmod +x conftest.sh | |
977 | if { (echo "$as_me:977: PATH=\".;.\"; conftest.sh") >&5 | |
978 | (PATH=".;."; conftest.sh) 2>&5 | |
979 | ac_status=$? | |
980 | echo "$as_me:980: \$? = $ac_status" >&5 | |
981 | (exit $ac_status); }; then | |
982 | ac_path_separator=';' | |
ba4481b5 | 983 | else |
503d2be0 | 984 | ac_path_separator=: |
ba4481b5 | 985 | fi |
503d2be0 AS |
986 | PATH_SEPARATOR="$ac_path_separator" |
987 | rm -f conftest.sh | |
ba4481b5 | 988 | |
503d2be0 | 989 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
ba4481b5 DL |
990 | |
991 | lispdir='${datadir}/emacs/${version}/lisp' | |
992 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
993 | '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
994 | lisppath='${locallisppath}:${lispdir}' | |
995 | etcdir='${datadir}/emacs/${version}/etc' | |
996 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
997 | docdir='${datadir}/emacs/${version}/etc' | |
998 | ||
999 | # Check whether --with-gcc or --without-gcc was given. | |
1000 | if test "${with_gcc+set}" = set; then | |
1001 | withval="$with_gcc" | |
503d2be0 AS |
1002 | |
1003 | fi; | |
ba4481b5 DL |
1004 | |
1005 | # Check whether --with-pop or --without-pop was given. | |
1006 | if test "${with_pop+set}" = set; then | |
1007 | withval="$with_pop" | |
243cf185 | 1008 | if test "$withval" = yes; then |
503d2be0 | 1009 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
1010 | #define MAIL_USE_POP 1 |
1011 | EOF | |
1012 | ||
243cf185 DL |
1013 | else : |
1014 | fi | |
3d9fec71 | 1015 | else |
503d2be0 | 1016 | cat >>confdefs.h <<\EOF |
3d9fec71 DL |
1017 | #define MAIL_USE_POP 1 |
1018 | EOF | |
1019 | ||
503d2be0 | 1020 | fi; |
ba4481b5 | 1021 | |
a21616bd KR |
1022 | # Check whether --with-kerberos or --without-kerberos was given. |
1023 | if test "${with_kerberos+set}" = set; then | |
1024 | withval="$with_kerberos" | |
503d2be0 | 1025 | cat >>confdefs.h <<\EOF |
a21616bd KR |
1026 | #define KERBEROS 1 |
1027 | EOF | |
1028 | ||
503d2be0 | 1029 | fi; |
a21616bd KR |
1030 | |
1031 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | |
1032 | if test "${with_kerberos5+set}" = set; then | |
1033 | withval="$with_kerberos5" | |
1034 | if test "${with_kerberos5+set}" = set; then | |
1035 | if test "${with_kerberos+set}" != set; then | |
1036 | with_kerberos=yes | |
503d2be0 | 1037 | cat >>confdefs.h <<\EOF |
a21616bd KR |
1038 | #define KERBEROS 1 |
1039 | EOF | |
1040 | ||
1041 | fi | |
1042 | fi | |
503d2be0 | 1043 | cat >>confdefs.h <<\EOF |
a21616bd KR |
1044 | #define KERBEROS5 1 |
1045 | EOF | |
1046 | ||
503d2be0 | 1047 | fi; |
a21616bd | 1048 | |
ba4481b5 DL |
1049 | # Check whether --with-hesiod or --without-hesiod was given. |
1050 | if test "${with_hesiod+set}" = set; then | |
1051 | withval="$with_hesiod" | |
503d2be0 | 1052 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
1053 | #define HESIOD 1 |
1054 | EOF | |
1055 | ||
503d2be0 | 1056 | fi; |
ba4481b5 DL |
1057 | |
1058 | # Check whether --with-x-toolkit or --without-x-toolkit was given. | |
1059 | if test "${with_x_toolkit+set}" = set; then | |
1060 | withval="$with_x_toolkit" | |
1061 | case "${withval}" in | |
1062 | y | ye | yes ) val=athena ;; | |
1063 | n | no ) val=no ;; | |
1064 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1065 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1066 | m | mo | mot | moti | motif ) val=motif ;; | |
1067 | * ) | |
503d2be0 | 1068 | { { echo "$as_me:1068: error: \`--with-x-toolkit=$withval' is invalid\; |
ba4481b5 | 1069 | this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. |
503d2be0 AS |
1070 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1071 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
1072 | this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
1073 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} | |
1074 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1075 | ;; |
1076 | esac | |
1077 | with_x_toolkit=$val | |
1078 | ||
503d2be0 | 1079 | fi; |
ba4481b5 DL |
1080 | |
1081 | # Check whether --with-xpm or --without-xpm was given. | |
1082 | if test "${with_xpm+set}" = set; then | |
1083 | withval="$with_xpm" | |
503d2be0 AS |
1084 | |
1085 | fi; | |
ba4481b5 DL |
1086 | |
1087 | # Check whether --with-jpeg or --without-jpeg was given. | |
1088 | if test "${with_jpeg+set}" = set; then | |
1089 | withval="$with_jpeg" | |
503d2be0 AS |
1090 | |
1091 | fi; | |
ba4481b5 DL |
1092 | |
1093 | # Check whether --with-tiff or --without-tiff was given. | |
1094 | if test "${with_tiff+set}" = set; then | |
1095 | withval="$with_tiff" | |
503d2be0 AS |
1096 | |
1097 | fi; | |
ba4481b5 DL |
1098 | |
1099 | # Check whether --with-gif or --without-gif was given. | |
1100 | if test "${with_gif+set}" = set; then | |
1101 | withval="$with_gif" | |
503d2be0 AS |
1102 | |
1103 | fi; | |
ba4481b5 DL |
1104 | |
1105 | # Check whether --with-png or --without-png was given. | |
1106 | if test "${with_png+set}" = set; then | |
1107 | withval="$with_png" | |
503d2be0 AS |
1108 | |
1109 | fi; | |
ba4481b5 DL |
1110 | |
1111 | # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
1112 | if test "${with_toolkit_scroll_bars+set}" = set; then | |
1113 | withval="$with_toolkit_scroll_bars" | |
503d2be0 AS |
1114 | |
1115 | fi; | |
ba4481b5 | 1116 | |
1d36487c GM |
1117 | # Check whether --with-xim or --without-xim was given. |
1118 | if test "${with_xim+set}" = set; then | |
1119 | withval="$with_xim" | |
1d36487c | 1120 | |
503d2be0 | 1121 | fi; |
ba4481b5 DL |
1122 | |
1123 | #### Make srcdir absolute, if it isn't already. It's important to | |
17494071 | 1124 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
1125 | #### give you automounter prefixes, which can go away. We do all this |
1126 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
1127 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1128 | unset CDPATH | |
ba4481b5 DL |
1129 | case "${srcdir}" in |
1130 | /* ) ;; | |
1131 | . ) | |
1132 | ## We may be able to use the $PWD environment variable to make this | |
1133 | ## absolute. But sometimes PWD is inaccurate. | |
17494071 | 1134 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ; |
ba4481b5 DL |
1135 | then |
1136 | srcdir="$PWD" | |
1137 | else | |
1138 | srcdir="`(cd ${srcdir}; pwd)`" | |
1139 | fi | |
1140 | ;; | |
1141 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1142 | esac | |
1143 | ||
1144 | #### Check if the source directory already has a configured system in it. | |
1145 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1146 | && test -f "${srcdir}/src/config.h" ; then | |
503d2be0 AS |
1147 | { echo "$as_me:1147: WARNING: The directory tree \`${srcdir}' is being used |
1148 | as a build directory right now; it has been configured in its own | |
1149 | right. To configure in another directory as well, you MUST | |
1150 | use GNU make. If you do not have GNU make, then you must | |
1151 | now do \`make distclean' in ${srcdir}, | |
1152 | and then run $0 again." >&5 | |
1153 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
1154 | as a build directory right now; it has been configured in its own |
1155 | right. To configure in another directory as well, you MUST | |
1156 | use GNU make. If you do not have GNU make, then you must | |
1157 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 1158 | and then run $0 again." >&2;} |
ba4481b5 DL |
1159 | |
1160 | extrasub='/^VPATH[ ]*=/c\ | |
1161 | vpath %.c $(srcdir)\ | |
1162 | vpath %.h $(srcdir)\ | |
1163 | vpath %.y $(srcdir)\ | |
1164 | vpath %.l $(srcdir)\ | |
1165 | vpath %.s $(srcdir)\ | |
1166 | vpath %.in $(srcdir)\ | |
1167 | vpath %.texi $(srcdir)' | |
1168 | fi | |
1169 | ||
1170 | #### Given the configuration name, set machfile and opsysfile to the | |
1171 | #### names of the m/*.h and s/*.h files we should use. | |
1172 | ||
1173 | ### Canonicalize the configuration name. | |
1174 | ||
1175 | ac_aux_dir= | |
1176 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1177 | if test -f $ac_dir/install-sh; then | |
1178 | ac_aux_dir=$ac_dir | |
1179 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1180 | break | |
1181 | elif test -f $ac_dir/install.sh; then | |
1182 | ac_aux_dir=$ac_dir | |
1183 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1184 | break | |
503d2be0 AS |
1185 | elif test -f $ac_dir/shtool; then |
1186 | ac_aux_dir=$ac_dir | |
1187 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1188 | break | |
ba4481b5 DL |
1189 | fi |
1190 | done | |
1191 | if test -z "$ac_aux_dir"; then | |
503d2be0 AS |
1192 | { { echo "$as_me:1192: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1193 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1194 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1195 | fi |
503d2be0 AS |
1196 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1197 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1198 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
ba4481b5 DL |
1199 | |
1200 | # Make sure we can run config.sub. | |
503d2be0 AS |
1201 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1202 | { { echo "$as_me:1202: error: cannot run $ac_config_sub" >&5 | |
1203 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1204 | { (exit 1); exit 1; }; } | |
1205 | ||
1206 | echo "$as_me:1206: checking build system type" >&5 | |
1207 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1208 | if test "${ac_cv_build+set}" = set; then | |
1209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1210 | else | |
1211 | ac_cv_build_alias=$build_alias | |
1212 | test -z "$ac_cv_build_alias" && | |
1213 | ac_cv_build_alias=`$ac_config_guess` | |
1214 | test -z "$ac_cv_build_alias" && | |
1215 | { { echo "$as_me:1215: error: cannot guess build type; you must specify one" >&5 | |
1216 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1217 | { (exit 1); exit 1; }; } | |
1218 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1219 | { { echo "$as_me:1219: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | |
1220 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | |
1221 | { (exit 1); exit 1; }; } | |
1222 | ||
1223 | fi | |
1224 | echo "$as_me:1224: result: $ac_cv_build" >&5 | |
1225 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1226 | build=$ac_cv_build | |
1227 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1228 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1229 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1230 | ||
1231 | echo "$as_me:1231: checking host system type" >&5 | |
1232 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1233 | if test "${ac_cv_host+set}" = set; then | |
1234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1235 | else | |
1236 | ac_cv_host_alias=$host_alias | |
1237 | test -z "$ac_cv_host_alias" && | |
1238 | ac_cv_host_alias=$ac_cv_build_alias | |
1239 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1240 | { { echo "$as_me:1240: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1241 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1242 | { (exit 1); exit 1; }; } | |
1243 | ||
1244 | fi | |
1245 | echo "$as_me:1245: result: $ac_cv_host" >&5 | |
1246 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1247 | host=$ac_cv_host | |
1248 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1249 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1250 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
ba4481b5 DL |
1251 | |
1252 | canonical=$host | |
531a3336 | 1253 | configuration=${host_alias-$host} |
ba4481b5 | 1254 | |
ba4481b5 DL |
1255 | ### If you add support for a new configuration, add code to this |
1256 | ### switch statement to recognize your configuration name and select | |
1257 | ### the appropriate operating system and machine description files. | |
1258 | ||
1259 | ### You would hope that you could choose an m/*.h file pretty much | |
1260 | ### based on the machine portion of the configuration name, and an s- | |
1261 | ### file based on the operating system portion. However, it turns out | |
1262 | ### that each m/*.h file is pretty manufacturer-specific - for | |
1263 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1264 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1265 | ### machines. So we basically have to have a special case for each | |
1266 | ### configuration name. | |
1267 | ### | |
1268 | ### As far as handling version numbers on operating systems is | |
1269 | ### concerned, make sure things will fail in a fixable way. If | |
1270 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
1271 | ### prepared to handle anything reasonably. If version numbers | |
1272 | ### matter, be sure /etc/MACHINES says something about it. | |
1273 | ### | |
1274 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1275 | ### "System V Release 4"; he writes, "The old convention encouraged | |
1276 | ### confusion between `system' and `release' levels'." | |
1277 | ||
1278 | machine='' opsys='' unported=no | |
1279 | case "${canonical}" in | |
1280 | ||
1281 | ## NetBSD ports | |
1282 | *-*-netbsd* ) | |
1283 | opsys=netbsd | |
1284 | case "${canonical}" in | |
1285 | alpha*-*-netbsd*) machine=alpha ;; | |
1286 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
1287 | m68k-*-netbsd*) | |
1288 | # This is somewhat bogus. | |
1289 | machine=hp9000s300 ;; | |
1290 | powerpc-apple-netbsd*) machine=macppc ;; | |
1291 | mips-*-netbsd*) machine=pmax ;; | |
2df636f4 | 1292 | mipsel-*-netbsd*) machine=pmax ;; |
ba4481b5 | 1293 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 1294 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 1295 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 1296 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 1297 | arm-*-netbsd*) machine=arm ;; |
ba4481b5 DL |
1298 | esac |
1299 | ;; | |
1300 | ||
1301 | ## OpenBSD ports | |
1302 | *-*-openbsd* ) | |
1303 | opsys=openbsd | |
1304 | case "${canonical}" in | |
1305 | alpha*-*-openbsd*) machine=alpha ;; | |
1306 | i386-*-openbsd*) machine=intel386 ;; | |
1307 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
1308 | mipsel-*-openbsd*) machine=pmax ;; | |
1309 | ns32k-*-openbsd*) machine=ns32000 ;; | |
1310 | sparc-*-openbsd*) machine=sparc ;; | |
1311 | vax-*-openbsd*) machine=vax ;; | |
1312 | esac | |
1313 | ;; | |
1314 | ||
1315 | ## Acorn RISCiX: | |
1316 | arm-acorn-riscix1.1* ) | |
1317 | machine=acorn opsys=riscix1-1 | |
1318 | ;; | |
1319 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1320 | ## This name is riscix12 instead of riscix1.2 | |
1321 | ## to avoid a file name conflict on MSDOS. | |
1322 | machine=acorn opsys=riscix12 | |
1323 | ;; | |
1324 | ||
1325 | ## BSDI ports | |
1326 | *-*-bsdi* ) | |
1327 | opsys=bsdi | |
1328 | case "${canonical}" in | |
1329 | i[345]86-*-bsdi*) machine=intel386 ;; | |
1330 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 1331 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
1332 | esac |
1333 | case "${canonical}" in | |
1334 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1335 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1336 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1337 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1338 | *-*-bsdi4* ) opsys=bsdos4 ;; | |
1339 | esac | |
1340 | ;; | |
1341 | ||
1342 | ## Alliant machines | |
1343 | ## Strictly speaking, we need the version of the alliant operating | |
1344 | ## system to choose the right machine file, but currently the | |
1345 | ## configuration name doesn't tell us enough to choose the right | |
1346 | ## one; we need to give alliants their own operating system name to | |
1347 | ## do this right. When someone cares, they can help us. | |
1348 | fx80-alliant-* ) | |
1349 | machine=alliant4 opsys=bsd4-2 | |
1350 | ;; | |
1351 | i860-alliant-* ) | |
1352 | machine=alliant-2800 opsys=bsd4-3 | |
1353 | ;; | |
1354 | ||
1355 | ## Alpha (DEC) machines. | |
1356 | alpha*-dec-osf* ) | |
1357 | machine=alpha opsys=osf1 | |
1358 | # This is needed to find X11R6.1 libraries for certain tests. | |
1359 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1360 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
1361 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1362 | # due to non-traditional preprocessing with the current compiler | |
1363 | # defaults. OSF 4 can also have that compiler version, and there | |
1364 | # seems always to have been a usable /usr/bin/cpp. | |
1365 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 1366 | case "${canonical}" in |
a55b799a | 1367 | alpha*-dec-osf[5-9]*) |
bb17930d | 1368 | opsys=osf5-0 ;; |
ca512671 | 1369 | esac |
ba4481b5 DL |
1370 | ;; |
1371 | ||
1372 | alpha*-*-linux-gnu* ) | |
1373 | machine=alpha opsys=gnu-linux | |
1374 | ;; | |
1375 | ||
c4bb2108 DL |
1376 | arm*-*-linux-gnu* ) |
1377 | machine=arm opsys=gnu-linux | |
1378 | ;; | |
1379 | ||
1380 | ppc-*-linux | \ | |
1381 | powerpc-*-linux* ) | |
3aeecf97 | 1382 | machine=macppc opsys=gnu-linux |
c4bb2108 DL |
1383 | ;; |
1384 | ||
ba4481b5 DL |
1385 | ## Altos 3068 |
1386 | m68*-altos-sysv* ) | |
1387 | machine=altos opsys=usg5-2 | |
1388 | ;; | |
1389 | ||
1390 | ## Amdahl UTS | |
1391 | 580-amdahl-sysv* ) | |
1392 | machine=amdahl opsys=usg5-2-2 | |
1393 | ;; | |
1394 | ||
1395 | ## Apollo, Domain/OS | |
1396 | m68*-apollo-* ) | |
1397 | machine=apollo opsys=bsd4-3 | |
1398 | ;; | |
1399 | ||
1400 | ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1401 | we32k-att-sysv* ) | |
1402 | machine=att3b opsys=usg5-2-2 | |
1403 | ;; | |
1404 | ||
1405 | ## AT&T 3b1 - The Mighty Unix PC! | |
1406 | m68*-att-sysv* ) | |
1407 | machine=7300 opsys=usg5-2-2 | |
1408 | ;; | |
1409 | ||
1410 | ## Bull dpx20 | |
1411 | rs6000-bull-bosx* ) | |
1412 | machine=ibmrs6000 opsys=aix3-2 | |
1413 | ;; | |
1414 | ||
1415 | ## Bull dpx2 | |
1416 | m68*-bull-sysv3* ) | |
1417 | machine=dpx2 opsys=usg5-3 | |
1418 | ;; | |
1419 | ||
1420 | ## Bull sps7 | |
1421 | m68*-bull-sysv2* ) | |
1422 | machine=sps7 opsys=usg5-2 | |
1423 | ;; | |
1424 | ||
1425 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
1426 | ||
1427 | ## Celerity | |
1428 | ## I don't know what configuration name to use for this; config.sub | |
1429 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1430 | ## in touch with us! | |
1431 | celerity-celerity-bsd* ) | |
1432 | machine=celerity opsys=bsd4-2 | |
1433 | ;; | |
1434 | ||
1435 | ## Clipper | |
1436 | ## What operating systems does this chip run that Emacs has been | |
1437 | ## tested on? | |
1438 | clipper-* ) | |
1439 | machine=clipper | |
1440 | ## We'll use the catch-all code at the bottom to guess the | |
1441 | ## operating system. | |
1442 | ;; | |
1443 | ||
1444 | ## Convex | |
1445 | *-convex-bsd* | *-convex-convexos* ) | |
1446 | machine=convex opsys=bsd4-3 | |
1447 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1448 | NON_GNU_CPP="cc -E -P" | |
1449 | ;; | |
1450 | ||
1451 | ## Cubix QBx/386 | |
1452 | i[3456]86-cubix-sysv* ) | |
1453 | machine=intel386 opsys=usg5-3 | |
1454 | ;; | |
1455 | ||
1456 | ## Cydra 5 | |
1457 | cydra*-cydrome-sysv* ) | |
1458 | machine=cydra5 opsys=usg5-3 | |
1459 | ;; | |
1460 | ||
1461 | ## Data General AViiON Machines | |
1462 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
1463 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
1464 | ## R this shouldn't conflict with older versions of the OS (which I | |
1465 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1466 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
1467 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1468 | machine=aviion opsys=dgux4 | |
1469 | ;; | |
1470 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1471 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1472 | ## to avoid a file name conflict on MSDOS. | |
1473 | machine=aviion opsys=dgux5-4-3 | |
1474 | ;; | |
1475 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1476 | machine=aviion opsys=dgux5-4r2 | |
1477 | ;; | |
1478 | m88k-dg-dgux* ) | |
1479 | machine=aviion opsys=dgux | |
1480 | ;; | |
1481 | ||
1482 | ## Data General AViiON Intel (x86) Machines | |
1483 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1484 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1485 | i[345]86-dg-dguxR4* ) | |
1486 | machine=aviion-intel opsys=dgux4 | |
1487 | ;; | |
1488 | ||
1489 | ## DECstations | |
1490 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1491 | machine=pmax opsys=bsd4-2 | |
1492 | ;; | |
1493 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1494 | machine=pmax opsys=bsd4-3 | |
1495 | ;; | |
1496 | mips-dec-ultrix* ) | |
1497 | machine=pmax opsys=ultrix4-3 | |
1498 | ;; | |
1499 | mips-dec-osf* ) | |
1500 | machine=pmax opsys=osf1 | |
1501 | ;; | |
1502 | mips-dec-mach_bsd4.3* ) | |
1503 | machine=pmax opsys=mach-bsd4-3 | |
1504 | ;; | |
1505 | ||
1506 | ## Motorola Delta machines | |
1507 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1508 | machine=delta opsys=usg5-3 | |
1509 | if test -z "`type gnucc | grep 'not found'`" | |
1510 | then | |
1511 | if test -s /etc/167config | |
1512 | then CC="gnucc -m68040" | |
1513 | else CC="gnucc -m68881" | |
1514 | fi | |
1515 | else | |
1516 | if test -z "`type gcc | grep 'not found'`" | |
1517 | then CC=gcc | |
1518 | else CC=cc | |
1519 | fi | |
1520 | fi | |
1521 | ;; | |
1522 | m88k-motorola-sysv4* ) | |
1523 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1524 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1525 | # I hope there are not other 4.0 versions for this machine | |
1526 | # which really need usg5-4 instead. | |
1527 | machine=delta88k opsys=usg5-4-2 | |
1528 | ;; | |
1529 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1530 | machine=delta88k opsys=usg5-3 | |
1531 | ;; | |
1532 | ||
1533 | ## Dual machines | |
1534 | m68*-dual-sysv* ) | |
1535 | machine=dual opsys=usg5-2 | |
1536 | ;; | |
1537 | m68*-dual-uniplus* ) | |
1538 | machine=dual opsys=unipl5-2 | |
1539 | ;; | |
1540 | ||
1541 | ## Elxsi 6400 | |
1542 | elxsi-elxsi-sysv* ) | |
1543 | machine=elxsi opsys=usg5-2 | |
1544 | ;; | |
1545 | ||
1546 | ## Encore machines | |
1547 | ns16k-encore-bsd* ) | |
1548 | machine=ns16000 opsys=umax | |
1549 | ;; | |
1550 | ||
65171e3a DL |
1551 | ## The GEC 63 - apparently, this port isn't really finished yet. |
1552 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
1553 | |
1554 | ## Gould Power Node and NP1 | |
1555 | pn-gould-bsd4.2* ) | |
1556 | machine=gould opsys=bsd4-2 | |
1557 | ;; | |
1558 | pn-gould-bsd4.3* ) | |
1559 | machine=gould opsys=bsd4-3 | |
1560 | ;; | |
1561 | np1-gould-bsd* ) | |
1562 | machine=gould-np1 opsys=bsd4-3 | |
1563 | ;; | |
1564 | ||
1565 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1566 | ## as far as Emacs is concerned). | |
1567 | m88k-harris-cxux* ) | |
1568 | # Build needs to be different on 7.0 and later releases | |
1569 | case "`uname -r`" in | |
1570 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1571 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1572 | esac | |
1573 | NON_GNU_CPP="/lib/cpp" | |
1574 | ;; | |
1575 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1576 | m68k-harris-cxux* ) | |
1577 | machine=nh3000 opsys=cxux | |
1578 | ;; | |
1579 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1580 | powerpc-harris-powerunix ) | |
1581 | machine=nh6000 opsys=powerunix | |
1582 | NON_GNU_CPP="cc -Xo -E -P" | |
1583 | ;; | |
1584 | ## SR2001/SR2201 running HI-UX/MPP | |
1585 | hppa1.1-hitachi-hiuxmpp* ) | |
1586 | machine=sr2k opsys=hiuxmpp | |
1587 | ;; | |
89a336fa GM |
1588 | hppa1.1-hitachi-hiuxwe2* ) |
1589 | machine=sr2k opsys=hiuxwe2 | |
1590 | ;; | |
ba4481b5 DL |
1591 | ## Honeywell XPS100 |
1592 | xps*-honeywell-sysv* ) | |
1593 | machine=xps100 opsys=usg5-2 | |
1594 | ;; | |
1595 | ||
1596 | ## HP 9000 series 200 or 300 | |
1597 | m68*-hp-bsd* ) | |
1598 | machine=hp9000s300 opsys=bsd4-3 | |
1599 | ;; | |
1600 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1601 | m68*-hp-hpux* ) | |
1602 | case "`uname -r`" in | |
1603 | ## Someone's system reports A.B8.05 for this. | |
1604 | ## I wonder what other possibilities there are. | |
1605 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1606 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1607 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1608 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1609 | *) machine=hp9000s300 opsys=hpux ;; | |
1610 | esac | |
1611 | ;; | |
1612 | ||
1613 | ## HP 9000 series 700 and 800, running HP/UX | |
1614 | hppa*-hp-hpux7* ) | |
1615 | machine=hp800 opsys=hpux | |
1616 | ;; | |
1617 | hppa*-hp-hpux8* ) | |
1618 | machine=hp800 opsys=hpux8 | |
1619 | ;; | |
1620 | hppa*-hp-hpux9shr* ) | |
1621 | machine=hp800 opsys=hpux9shr | |
1622 | ;; | |
1623 | hppa*-hp-hpux9* ) | |
1624 | machine=hp800 opsys=hpux9 | |
1625 | ;; | |
cc227489 | 1626 | hppa*-hp-hpux10* ) |
ba4481b5 DL |
1627 | machine=hp800 opsys=hpux10 |
1628 | ;; | |
cc227489 MB |
1629 | hppa*-hp-hpux1[1-9]* ) |
1630 | machine=hp800 opsys=hpux11 | |
1631 | ;; | |
ba4481b5 DL |
1632 | |
1633 | ## HP 9000 series 700 and 800, running HP/UX | |
1634 | hppa*-hp-hpux* ) | |
1635 | ## Cross-compilation? Nah! | |
1636 | case "`uname -r`" in | |
1637 | ## Someone's system reports A.B8.05 for this. | |
1638 | ## I wonder what other possibilities there are. | |
1639 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1640 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1641 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1642 | *) machine=hp800 opsys=hpux10 ;; | |
1643 | esac | |
1644 | ;; | |
1645 | hppa*-*-nextstep* ) | |
1646 | machine=hp800 opsys=nextstep | |
1647 | ;; | |
1648 | ||
1649 | ## Orion machines | |
1650 | orion-orion-bsd* ) | |
1651 | machine=orion opsys=bsd4-2 | |
1652 | ;; | |
1653 | clipper-orion-bsd* ) | |
1654 | machine=orion105 opsys=bsd4-2 | |
1655 | ;; | |
1656 | ||
1657 | ## IBM machines | |
1658 | i[3456]86-ibm-aix1.1* ) | |
1659 | machine=ibmps2-aix opsys=usg5-2-2 | |
1660 | ;; | |
1661 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1662 | machine=ibmps2-aix opsys=usg5-3 | |
1663 | ;; | |
1664 | i370-ibm-aix*) | |
1665 | machine=ibm370aix opsys=usg5-3 | |
1666 | ;; | |
138f0859 GM |
1667 | s390-*-linux-gnu) |
1668 | machine=ibms390 opsys=gnu-linux | |
1669 | ;; | |
ba4481b5 DL |
1670 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
1671 | machine=ibmrs6000 opsys=aix3-1 | |
1672 | ;; | |
1673 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1674 | machine=ibmrs6000 opsys=aix3-2-5 | |
1675 | ;; | |
1676 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1677 | machine=ibmrs6000 opsys=aix4-1 | |
1678 | ;; | |
1679 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1680 | machine=ibmrs6000 opsys=aix4-2 | |
1681 | ;; | |
1682 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) | |
1683 | machine=ibmrs6000 opsys=aix4 | |
1684 | ;; | |
1685 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1686 | machine=ibmrs6000 opsys=aix4-1 | |
1687 | ;; | |
1688 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1689 | machine=ibmrs6000 opsys=aix3-2 | |
1690 | ;; | |
1691 | romp-ibm-bsd4.3* ) | |
1692 | machine=ibmrt opsys=bsd4-3 | |
1693 | ;; | |
1694 | romp-ibm-bsd4.2* ) | |
1695 | machine=ibmrt opsys=bsd4-2 | |
1696 | ;; | |
1697 | romp-ibm-aos4.3* ) | |
1698 | machine=ibmrt opsys=bsd4-3 | |
1699 | ;; | |
1700 | romp-ibm-aos4.2* ) | |
1701 | machine=ibmrt opsys=bsd4-2 | |
1702 | ;; | |
1703 | romp-ibm-aos* ) | |
1704 | machine=ibmrt opsys=bsd4-3 | |
1705 | ;; | |
1706 | romp-ibm-bsd* ) | |
1707 | machine=ibmrt opsys=bsd4-3 | |
1708 | ;; | |
1709 | romp-ibm-aix* ) | |
1710 | machine=ibmrt-aix opsys=usg5-2-2 | |
1711 | ;; | |
1712 | ||
1713 | ## Integrated Solutions `Optimum V' | |
1714 | m68*-isi-bsd4.2* ) | |
1715 | machine=isi-ov opsys=bsd4-2 | |
1716 | ;; | |
1717 | m68*-isi-bsd4.3* ) | |
1718 | machine=isi-ov opsys=bsd4-3 | |
1719 | ;; | |
1720 | ||
1721 | ## Intel 386 machines where we do care about the manufacturer | |
1722 | i[3456]86-intsys-sysv* ) | |
1723 | machine=is386 opsys=usg5-2-2 | |
1724 | ;; | |
1725 | ||
1726 | ## Prime EXL | |
1727 | i[3456]86-prime-sysv* ) | |
1728 | machine=i386 opsys=usg5-3 | |
1729 | ;; | |
1730 | ||
1731 | ## Sequent Symmetry running Dynix | |
1732 | i[3456]86-sequent-bsd* ) | |
1733 | machine=symmetry opsys=bsd4-3 | |
1734 | ;; | |
1735 | ||
1736 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1737 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1738 | machine=sequent-ptx opsys=ptx4 | |
1739 | NON_GNU_CPP=/lib/cpp | |
1740 | ;; | |
1741 | ||
1742 | ## Sequent Symmetry running DYNIX/ptx | |
1743 | ## Use the old cpp rather than the newer ANSI one. | |
1744 | i[3456]86-sequent-ptx* ) | |
1745 | machine=sequent-ptx opsys=ptx | |
1746 | NON_GNU_CPP="/lib/cpp" | |
1747 | ;; | |
1748 | ||
1749 | ## ncr machine running svr4.3. | |
1750 | i[3456]86-ncr-sysv4.3 ) | |
1751 | machine=ncr386 opsys=usg5-4-3 | |
1752 | ;; | |
1753 | ||
1754 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1755 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1756 | i[3456]86-ncr-sysv* ) | |
1757 | machine=ncr386 opsys=usg5-4-2 | |
1758 | ;; | |
1759 | ||
1760 | ## Intel Paragon OSF/1 | |
1761 | i860-intel-osf1* ) | |
1762 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1763 | ;; | |
1764 | ||
1765 | ## Intel 860 | |
1766 | i860-*-sysv4* ) | |
1767 | machine=i860 opsys=usg5-4 | |
1768 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1769 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1770 | ;; | |
1771 | ||
c76e04a8 GM |
1772 | ## Macintosh PowerPC |
1773 | powerpc*-*-linux-gnu* ) | |
1774 | machine=macppc opsys=gnu-linux | |
1775 | ;; | |
1776 | ||
ba4481b5 DL |
1777 | ## Masscomp machines |
1778 | m68*-masscomp-rtu* ) | |
1779 | machine=masscomp opsys=rtu | |
1780 | ;; | |
1781 | ||
1782 | ## Megatest machines | |
1783 | m68*-megatest-bsd* ) | |
1784 | machine=mega68 opsys=bsd4-2 | |
1785 | ;; | |
1786 | ||
1787 | ## Workstations sold by MIPS | |
1788 | ## This is not necessarily all workstations using the MIPS processor - | |
1789 | ## Irises are produced by SGI, and DECstations by DEC. | |
1790 | ||
1791 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1792 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1793 | ## it gives for choosing between the alternatives seems to be "Use | |
1794 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1795 | ## the BSD world." I'll assume that these are instructions for | |
1796 | ## handling two odd situations, and that every other situation | |
1797 | ## should use mips.h and usg5-2-2, they being listed first. | |
1798 | mips-mips-usg* ) | |
1799 | machine=mips4 | |
1800 | ## Fall through to the general code at the bottom to decide on the OS. | |
1801 | ;; | |
1802 | mips-mips-riscos4* ) | |
1803 | machine=mips4 opsys=bsd4-3 | |
1804 | NON_GNU_CC="cc -systype bsd43" | |
1805 | NON_GNU_CPP="cc -systype bsd43 -E" | |
1806 | ;; | |
1807 | mips-mips-riscos5* ) | |
1808 | machine=mips4 opsys=riscos5 | |
1809 | NON_GNU_CC="cc -systype bsd43" | |
1810 | NON_GNU_CPP="cc -systype bsd43 -E" | |
1811 | ;; | |
1812 | mips-mips-bsd* ) | |
1813 | machine=mips opsys=bsd4-3 | |
1814 | ;; | |
1815 | mips-mips-* ) | |
1816 | machine=mips opsys=usg5-2-2 | |
1817 | ;; | |
1818 | ||
1819 | ## NeXT | |
1820 | m68*-next-* | m68k-*-nextstep* ) | |
1821 | machine=m68k opsys=nextstep | |
1822 | ;; | |
1823 | ||
1824 | ## The complete machine from National Semiconductor | |
1825 | ns32k-ns-genix* ) | |
1826 | machine=ns32000 opsys=usg5-2 | |
1827 | ;; | |
1828 | ||
1829 | ## NCR machines | |
1830 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1831 | machine=tower32 opsys=usg5-2-2 | |
1832 | ;; | |
1833 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1834 | machine=tower32v3 opsys=usg5-3 | |
1835 | ;; | |
1836 | ||
1837 | ## NEC EWS4800 | |
1838 | mips-nec-sysv4*) | |
1839 | machine=ews4800 opsys=ux4800 | |
1840 | ;; | |
1841 | ||
1842 | ## Nixdorf Targon 31 | |
1843 | m68*-nixdorf-sysv* ) | |
1844 | machine=targon31 opsys=usg5-2-2 | |
1845 | ;; | |
1846 | ||
1847 | ## Nu (TI or LMI) | |
1848 | m68*-nu-sysv* ) | |
1849 | machine=nu opsys=usg5-2 | |
1850 | ;; | |
1851 | ||
1852 | ## Plexus | |
1853 | m68*-plexus-sysv* ) | |
1854 | machine=plexus opsys=usg5-2 | |
1855 | ;; | |
1856 | ||
1857 | ## PowerPC reference platform | |
1858 | powerpcle-*-solaris2* ) | |
1859 | machine=prep | |
1860 | opsys=sol2-5 | |
1861 | ;; | |
1862 | ||
1863 | ## Pyramid machines | |
1864 | ## I don't really have any idea what sort of processor the Pyramid has, | |
1865 | ## so I'm assuming it is its own architecture. | |
1866 | pyramid-pyramid-bsd* ) | |
1867 | machine=pyramid opsys=bsd4-2 | |
1868 | ;; | |
1869 | ||
1870 | ## Sequent Balance | |
1871 | ns32k-sequent-bsd4.2* ) | |
1872 | machine=sequent opsys=bsd4-2 | |
1873 | ;; | |
1874 | ns32k-sequent-bsd4.3* ) | |
1875 | machine=sequent opsys=bsd4-3 | |
1876 | ;; | |
1877 | ||
1878 | ## Siemens Nixdorf | |
1879 | mips-siemens-sysv* | mips-sni-sysv*) | |
1880 | machine=mips-siemens opsys=usg5-4 | |
1881 | NON_GNU_CC=/usr/ccs/bin/cc | |
1882 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
1883 | ;; | |
1884 | ||
1885 | ## Silicon Graphics machines | |
1886 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1887 | m68*-sgi-iris3.5* ) | |
1888 | machine=irist opsys=iris3-5 | |
1889 | ;; | |
1890 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1891 | machine=irist opsys=iris3-6 | |
1892 | ;; | |
1893 | ## Iris 4D | |
1894 | mips-sgi-irix3* ) | |
1895 | machine=iris4d opsys=irix3-3 | |
1896 | ;; | |
1897 | mips-sgi-irix4* ) | |
1898 | machine=iris4d opsys=irix4-0 | |
1899 | ;; | |
1900 | mips-sgi-irix6.5 ) | |
1901 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
1902 | # Without defining _LANGUAGE_C, things get masked out in the headers |
1903 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
1904 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
1905 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 1906 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
1907 | ;; |
1908 | mips-sgi-irix6* ) | |
1909 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 1910 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
1911 | # but presumably it does no harm. |
1912 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 1913 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
1914 | NON_GCC_TEST_OPTIONS=-32 |
1915 | ;; | |
1916 | mips-sgi-irix5.[01]* ) | |
1917 | machine=iris4d opsys=irix5-0 | |
1918 | ;; | |
1919 | mips-sgi-irix5* | mips-sgi-irix* ) | |
1920 | machine=iris4d opsys=irix5-2 | |
1921 | ;; | |
1922 | ||
1923 | ## SONY machines | |
1924 | m68*-sony-bsd4.2* ) | |
1925 | machine=news opsys=bsd4-2 | |
1926 | ;; | |
1927 | m68*-sony-bsd4.3* ) | |
1928 | machine=news opsys=bsd4-3 | |
1929 | ;; | |
1930 | m68*-sony-newsos3* | m68*-sony-news3*) | |
1931 | machine=news opsys=bsd4-3 | |
1932 | ;; | |
1933 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
1934 | machine=news-risc opsys=bsd4-3 | |
1935 | ;; | |
1936 | mips-sony-newsos6* ) | |
1937 | machine=news-r6 opsys=newsos6 | |
1938 | ;; | |
1939 | mips-sony-news* ) | |
1940 | machine=news-risc opsys=newsos5 | |
1941 | ;; | |
1942 | ||
1943 | ## Stride | |
1944 | m68*-stride-sysv* ) | |
1945 | machine=stride opsys=usg5-2 | |
1946 | ;; | |
1947 | ||
1948 | ## Suns | |
1949 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
1950 | machine=sparc opsys=gnu-linux | |
1951 | ;; | |
1952 | ||
d054101f | 1953 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
1954 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
1955 | | rs6000-*-solaris2*) | |
1956 | case "${canonical}" in | |
1957 | m68*-sunos1* ) machine=sun1 ;; | |
1958 | m68*-sunos2* ) machine=sun2 ;; | |
1959 | m68* ) machine=sun3 ;; | |
1960 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
1961 | i[3456]86-*-* ) machine=intel386 ;; | |
1962 | powerpcle* ) machine=powerpcle ;; | |
1963 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
1964 | sparc* ) machine=sparc ;; | |
1965 | * ) unported=yes ;; | |
1966 | esac | |
1967 | case "${canonical}" in | |
1968 | ## The Sun386 didn't get past 4.0. | |
1969 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
1970 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
1971 | *-sunos4.1.[3-9]*noshare ) | |
1972 | ## This name is sunos413 instead of sunos4-1-3 | |
1973 | ## to avoid a file name conflict on MSDOS. | |
1974 | opsys=sunos413 | |
1975 | NON_GNU_CPP=/usr/lib/cpp | |
1976 | NON_GCC_TEST_OPTIONS=-Bstatic | |
1977 | GCC_TEST_OPTIONS=-static | |
1978 | ;; | |
1979 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
1980 | opsys=sunos4shr | |
1981 | NON_GNU_CPP=/usr/lib/cpp | |
1982 | ;; | |
1983 | *-sunos4* | *-sunos ) | |
1984 | opsys=sunos4-1 | |
1985 | NON_GCC_TEST_OPTIONS=-Bstatic | |
1986 | GCC_TEST_OPTIONS=-static | |
1987 | ;; | |
1988 | *-sunos5.3* | *-solaris2.3* ) | |
1989 | opsys=sol2-3 | |
1990 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
1991 | ;; | |
1992 | *-sunos5.4* | *-solaris2.4* ) | |
1993 | opsys=sol2-4 | |
1994 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
1995 | RANLIB="ar -ts" | |
1996 | ;; | |
1997 | *-sunos5.5* | *-solaris2.5* ) | |
1998 | opsys=sol2-5 | |
1999 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2000 | RANLIB="ar -ts" | |
2001 | ;; | |
2002 | *-sunos5* | *-solaris* ) | |
2003 | opsys=sol2-5 | |
2004 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2005 | ;; | |
2006 | * ) opsys=bsd4-2 ;; | |
2007 | esac | |
2008 | ## Watch out for a compiler that we know will not work. | |
2009 | case "${canonical}" in | |
2010 | *-solaris* | *-sunos5* ) | |
2011 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
2012 | ## /usr/ucb/cc doesn't work; | |
2013 | ## we should find some other compiler that does work. | |
2014 | unset CC | |
2015 | fi | |
2016 | ;; | |
2017 | *) ;; | |
2018 | esac | |
2019 | ;; | |
2020 | sparc-*-nextstep* ) | |
2021 | machine=sparc opsys=nextstep | |
2022 | ;; | |
2023 | ||
2024 | ## Tadpole 68k | |
2025 | m68*-tadpole-sysv* ) | |
2026 | machine=tad68k opsys=usg5-3 | |
2027 | ;; | |
2028 | ||
2029 | ## Tahoe machines | |
2030 | tahoe-tahoe-bsd4.2* ) | |
2031 | machine=tahoe opsys=bsd4-2 | |
2032 | ;; | |
2033 | tahoe-tahoe-bsd4.3* ) | |
2034 | machine=tahoe opsys=bsd4-3 | |
2035 | ;; | |
2036 | ||
2037 | ## Tandem Integrity S2 | |
2038 | mips-tandem-sysv* ) | |
2039 | machine=tandem-s2 opsys=usg5-3 | |
2040 | ;; | |
2041 | ||
2042 | ## Tektronix XD88 | |
2043 | m88k-tektronix-sysv3* ) | |
2044 | machine=tekxd88 opsys=usg5-3 | |
2045 | ;; | |
2046 | ||
2047 | ## Tektronix 16000 box (6130?) | |
2048 | ns16k-tektronix-bsd* ) | |
2049 | machine=ns16000 opsys=bsd4-2 | |
2050 | ;; | |
2051 | ## Tektronix 4300 | |
2052 | ## src/m/tek4300.h hints that this is a m68k machine. | |
2053 | m68*-tektronix-bsd* ) | |
2054 | machine=tek4300 opsys=bsd4-3 | |
2055 | ;; | |
2056 | ||
2057 | ## Titan P2 or P3 | |
2058 | ## We seem to have lost the machine-description file titan.h! | |
2059 | titan-titan-sysv* ) | |
2060 | machine=titan opsys=usg5-3 | |
2061 | ;; | |
2062 | ||
2063 | ## Ustation E30 (SS5E) | |
2064 | m68*-unisys-uniplus* ) | |
2065 | machine=ustation opsystem=unipl5-2 | |
2066 | ;; | |
2067 | ||
2068 | ## Vaxen. | |
2069 | vax-dec-* ) | |
2070 | machine=vax | |
2071 | case "${canonical}" in | |
2072 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
2073 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2074 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2075 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2076 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2077 | *-vms* ) opsys=vms ;; | |
2078 | * ) unported=yes | |
2079 | esac | |
2080 | ;; | |
2081 | ||
2082 | ## Whitechapel MG1 | |
2083 | ns16k-whitechapel-* ) | |
2084 | machine=mg1 | |
2085 | ## We don't know what sort of OS runs on these; we'll let the | |
2086 | ## operating system guessing code below try. | |
2087 | ;; | |
2088 | ||
2089 | ## Wicat | |
2090 | m68*-wicat-sysv* ) | |
2091 | machine=wicat opsys=usg5-2 | |
2092 | ;; | |
2093 | ||
f4988be7 GM |
2094 | ## IA-64 |
2095 | ia64*-*-linux* ) | |
2096 | machine=ia64 opsys=gnu-linux | |
2097 | ;; | |
2098 | ||
ba4481b5 DL |
2099 | ## Intel 386 machines where we don't care about the manufacturer |
2100 | i[3456]86-*-* ) | |
2101 | machine=intel386 | |
2102 | case "${canonical}" in | |
9f817ea4 | 2103 | *-lynxos* ) opsys=lynxos ;; |
ba4481b5 DL |
2104 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2105 | *-isc2.2* ) opsys=isc2-2 ;; | |
2106 | *-isc4.0* ) opsys=isc4-0 ;; | |
2107 | *-isc4.* ) opsys=isc4-1 | |
2108 | GCC_TEST_OPTIONS=-posix | |
2109 | NON_GCC_TEST_OPTIONS=-Xp | |
2110 | ;; | |
2111 | *-isc* ) opsys=isc3-0 ;; | |
2112 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2113 | *-esix* ) opsys=esix ;; | |
2114 | *-xenix* ) opsys=xenix ;; | |
2115 | *-linux-gnu* ) opsys=gnu-linux ;; | |
2116 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 2117 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
2118 | NON_GNU_CPP=/lib/cpp |
2119 | # Prevent -belf from being passed to $CPP. | |
2120 | # /lib/cpp does not accept it. | |
2121 | OVERRIDE_CPPFLAGS=" " | |
2122 | ;; | |
2123 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
2124 | *-386bsd* ) opsys=386bsd ;; | |
2125 | *-freebsd* ) opsys=freebsd ;; | |
2126 | *-nextstep* ) opsys=nextstep ;; | |
2127 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2128 | esac | |
2129 | ;; | |
2130 | ||
2131 | ## m68k Linux-based GNU system | |
2132 | m68k-*-linux-gnu* ) | |
2133 | machine=m68k opsys=gnu-linux | |
2134 | ;; | |
2135 | ||
2136 | ## Mips Linux-based GNU system | |
2137 | mips-*-linux-gnu* ) | |
2138 | machine=mips opsys=gnu-linux | |
2139 | ;; | |
2140 | ||
2141 | ## UXP/DS | |
2142 | sparc-fujitsu-sysv4* ) | |
2143 | machine=sparc opsys=uxpds | |
2144 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2145 | RANLIB="ar -ts" | |
2146 | ;; | |
2147 | ||
2148 | ## UXP/V | |
2149 | f301-fujitsu-uxpv4.1) | |
2150 | machine=f301 opsys=uxpv | |
2151 | ;; | |
2152 | ||
2153 | * ) | |
2154 | unported=yes | |
2155 | ;; | |
2156 | esac | |
2157 | ||
2158 | ### If the code above didn't choose an operating system, just choose | |
2159 | ### an operating system based on the configuration name. You really | |
2160 | ### only want to use this when you have no idea what the right | |
2161 | ### operating system is; if you know what operating systems a machine | |
2162 | ### runs, it's cleaner to make it explicit in the case statement | |
2163 | ### above. | |
2164 | if test x"${opsys}" = x; then | |
2165 | case "${canonical}" in | |
2166 | *-gnu* ) opsys=gnu ;; | |
2167 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2168 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
2169 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
2170 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2171 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2172 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2173 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2174 | *-sysv4.2uw* ) opsys=unixware ;; | |
2175 | *-sysv4.1* | *-sysvr4.1* ) | |
2176 | NON_GNU_CPP=/usr/lib/cpp | |
2177 | opsys=usg5-4 ;; | |
2178 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2179 | if [ x$NON_GNU_CPP = x ]; then | |
2180 | if [ -f /usr/ccs/lib/cpp ]; then | |
2181 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2182 | else | |
2183 | NON_GNU_CPP=/lib/cpp | |
2184 | fi | |
2185 | fi | |
2186 | opsys=usg5-4-2 ;; | |
2187 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2188 | * ) | |
2189 | unported=yes | |
2190 | ;; | |
2191 | esac | |
2192 | fi | |
2193 | ||
ba4481b5 | 2194 | if test $unported = yes; then |
cc227489 | 2195 | { { echo "$as_me:2195: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
2196 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
2197 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2198 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2199 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2200 | fi |
2201 | ||
2202 | machfile="m/${machine}.h" | |
2203 | opsysfile="s/${opsys}.h" | |
2204 | ||
ba4481b5 DL |
2205 | #### Choose a compiler. |
2206 | test -n "$CC" && cc_specified=yes | |
2207 | ||
2208 | # Save the value of CFLAGS that the user specified. | |
2209 | SPECIFIED_CFLAGS="$CFLAGS" | |
2210 | ||
2211 | case ${with_gcc} in | |
2212 | "yes" ) CC="gcc" GCC=yes ;; | |
2213 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
2214 | * ) |
2215 | esac | |
2216 | ac_ext=c | |
2217 | ac_cpp='$CPP $CPPFLAGS' | |
2218 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2219 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2220 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2221 | if test -n "$ac_tool_prefix"; then | |
2222 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2223 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cc227489 | 2224 | echo "$as_me:2224: checking for $ac_word" >&5 |
503d2be0 AS |
2225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2226 | if test "${ac_cv_prog_CC+set}" = set; then | |
2227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2228 | else |
2229 | if test -n "$CC"; then | |
2230 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2231 | else | |
503d2be0 AS |
2232 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2233 | ac_dummy="$PATH" | |
2234 | for ac_dir in $ac_dummy; do | |
2235 | IFS=$ac_save_IFS | |
2236 | test -z "$ac_dir" && ac_dir=. | |
2237 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2238 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
cc227489 | 2239 | echo "$as_me:2239: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
2240 | break |
2241 | done | |
2242 | ||
ba4481b5 DL |
2243 | fi |
2244 | fi | |
503d2be0 | 2245 | CC=$ac_cv_prog_CC |
ba4481b5 | 2246 | if test -n "$CC"; then |
cc227489 | 2247 | echo "$as_me:2247: result: $CC" >&5 |
503d2be0 AS |
2248 | echo "${ECHO_T}$CC" >&6 |
2249 | else | |
cc227489 | 2250 | echo "$as_me:2250: result: no" >&5 |
503d2be0 AS |
2251 | echo "${ECHO_T}no" >&6 |
2252 | fi | |
2253 | ||
2254 | fi | |
2255 | if test -z "$ac_cv_prog_CC"; then | |
2256 | ac_ct_CC=$CC | |
2257 | # Extract the first word of "gcc", so it can be a program name with args. | |
2258 | set dummy gcc; ac_word=$2 | |
cc227489 | 2259 | echo "$as_me:2259: checking for $ac_word" >&5 |
503d2be0 AS |
2260 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2261 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2263 | else | |
2264 | if test -n "$ac_ct_CC"; then | |
2265 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2266 | else | |
2267 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2268 | ac_dummy="$PATH" | |
2269 | for ac_dir in $ac_dummy; do | |
2270 | IFS=$ac_save_IFS | |
2271 | test -z "$ac_dir" && ac_dir=. | |
2272 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2273 | ac_cv_prog_ac_ct_CC="gcc" | |
cc227489 | 2274 | echo "$as_me:2274: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
2275 | break |
2276 | done | |
2277 | ||
2278 | fi | |
2279 | fi | |
2280 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2281 | if test -n "$ac_ct_CC"; then | |
cc227489 | 2282 | echo "$as_me:2282: result: $ac_ct_CC" >&5 |
503d2be0 | 2283 | echo "${ECHO_T}$ac_ct_CC" >&6 |
ba4481b5 | 2284 | else |
cc227489 | 2285 | echo "$as_me:2285: result: no" >&5 |
503d2be0 AS |
2286 | echo "${ECHO_T}no" >&6 |
2287 | fi | |
2288 | ||
2289 | CC=$ac_ct_CC | |
2290 | else | |
2291 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
2292 | fi |
2293 | ||
2294 | if test -z "$CC"; then | |
503d2be0 AS |
2295 | if test -n "$ac_tool_prefix"; then |
2296 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2297 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
cc227489 | 2298 | echo "$as_me:2298: checking for $ac_word" >&5 |
503d2be0 AS |
2299 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2300 | if test "${ac_cv_prog_CC+set}" = set; then | |
2301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2302 | else |
2303 | if test -n "$CC"; then | |
2304 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2305 | else | |
503d2be0 AS |
2306 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2307 | ac_dummy="$PATH" | |
2308 | for ac_dir in $ac_dummy; do | |
2309 | IFS=$ac_save_IFS | |
2310 | test -z "$ac_dir" && ac_dir=. | |
2311 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2312 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
cc227489 | 2313 | echo "$as_me:2313: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
2314 | break |
2315 | done | |
2316 | ||
2317 | fi | |
2318 | fi | |
2319 | CC=$ac_cv_prog_CC | |
2320 | if test -n "$CC"; then | |
cc227489 | 2321 | echo "$as_me:2321: result: $CC" >&5 |
503d2be0 AS |
2322 | echo "${ECHO_T}$CC" >&6 |
2323 | else | |
cc227489 | 2324 | echo "$as_me:2324: result: no" >&5 |
503d2be0 AS |
2325 | echo "${ECHO_T}no" >&6 |
2326 | fi | |
2327 | ||
2328 | fi | |
2329 | if test -z "$ac_cv_prog_CC"; then | |
2330 | ac_ct_CC=$CC | |
2331 | # Extract the first word of "cc", so it can be a program name with args. | |
2332 | set dummy cc; ac_word=$2 | |
cc227489 | 2333 | echo "$as_me:2333: checking for $ac_word" >&5 |
503d2be0 AS |
2334 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2335 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2337 | else | |
2338 | if test -n "$ac_ct_CC"; then | |
2339 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2340 | else | |
2341 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2342 | ac_dummy="$PATH" | |
2343 | for ac_dir in $ac_dummy; do | |
2344 | IFS=$ac_save_IFS | |
2345 | test -z "$ac_dir" && ac_dir=. | |
2346 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2347 | ac_cv_prog_ac_ct_CC="cc" | |
cc227489 | 2348 | echo "$as_me:2348: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
2349 | break |
2350 | done | |
2351 | ||
2352 | fi | |
2353 | fi | |
2354 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2355 | if test -n "$ac_ct_CC"; then | |
cc227489 | 2356 | echo "$as_me:2356: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2357 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2358 | else | |
cc227489 | 2359 | echo "$as_me:2359: result: no" >&5 |
503d2be0 AS |
2360 | echo "${ECHO_T}no" >&6 |
2361 | fi | |
2362 | ||
2363 | CC=$ac_ct_CC | |
2364 | else | |
2365 | CC="$ac_cv_prog_CC" | |
2366 | fi | |
2367 | ||
2368 | fi | |
2369 | if test -z "$CC"; then | |
2370 | # Extract the first word of "cc", so it can be a program name with args. | |
2371 | set dummy cc; ac_word=$2 | |
cc227489 | 2372 | echo "$as_me:2372: checking for $ac_word" >&5 |
503d2be0 AS |
2373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2374 | if test "${ac_cv_prog_CC+set}" = set; then | |
2375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2376 | else | |
2377 | if test -n "$CC"; then | |
2378 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2379 | else | |
2380 | ac_prog_rejected=no | |
2381 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2382 | ac_dummy="$PATH" | |
2383 | for ac_dir in $ac_dummy; do | |
2384 | IFS=$ac_save_IFS | |
2385 | test -z "$ac_dir" && ac_dir=. | |
2386 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2387 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2388 | ac_prog_rejected=yes | |
2389 | continue | |
2390 | fi | |
2391 | ac_cv_prog_CC="cc" | |
cc227489 | 2392 | echo "$as_me:2392: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
2393 | break |
2394 | done | |
2395 | ||
ba4481b5 DL |
2396 | if test $ac_prog_rejected = yes; then |
2397 | # We found a bogon in the path, so make sure we never use it. | |
2398 | set dummy $ac_cv_prog_CC | |
2399 | shift | |
503d2be0 | 2400 | if test $# != 0; then |
ba4481b5 DL |
2401 | # We chose a different compiler from the bogus one. |
2402 | # However, it has the same basename, so the bogon will be chosen | |
2403 | # first if we set CC to just the basename; use the full file name. | |
2404 | shift | |
503d2be0 | 2405 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
ba4481b5 DL |
2406 | shift |
2407 | ac_cv_prog_CC="$@" | |
2408 | fi | |
2409 | fi | |
2410 | fi | |
2411 | fi | |
503d2be0 | 2412 | CC=$ac_cv_prog_CC |
ba4481b5 | 2413 | if test -n "$CC"; then |
cc227489 | 2414 | echo "$as_me:2414: result: $CC" >&5 |
503d2be0 | 2415 | echo "${ECHO_T}$CC" >&6 |
ba4481b5 | 2416 | else |
cc227489 | 2417 | echo "$as_me:2417: result: no" >&5 |
503d2be0 | 2418 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2419 | fi |
2420 | ||
503d2be0 AS |
2421 | fi |
2422 | if test -z "$CC"; then | |
2423 | if test -n "$ac_tool_prefix"; then | |
2424 | for ac_prog in cl | |
2425 | do | |
2426 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2427 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cc227489 | 2428 | echo "$as_me:2428: checking for $ac_word" >&5 |
503d2be0 AS |
2429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2430 | if test "${ac_cv_prog_CC+set}" = set; then | |
2431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
2432 | else |
2433 | if test -n "$CC"; then | |
2434 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2435 | else | |
503d2be0 AS |
2436 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2437 | ac_dummy="$PATH" | |
2438 | for ac_dir in $ac_dummy; do | |
2439 | IFS=$ac_save_IFS | |
2440 | test -z "$ac_dir" && ac_dir=. | |
2441 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2442 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
cc227489 | 2443 | echo "$as_me:2443: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
2444 | break |
2445 | done | |
2446 | ||
c4bb2108 DL |
2447 | fi |
2448 | fi | |
503d2be0 | 2449 | CC=$ac_cv_prog_CC |
c4bb2108 | 2450 | if test -n "$CC"; then |
cc227489 | 2451 | echo "$as_me:2451: result: $CC" >&5 |
503d2be0 | 2452 | echo "${ECHO_T}$CC" >&6 |
c4bb2108 | 2453 | else |
cc227489 | 2454 | echo "$as_me:2454: result: no" >&5 |
503d2be0 AS |
2455 | echo "${ECHO_T}no" >&6 |
2456 | fi | |
2457 | ||
2458 | test -n "$CC" && break | |
2459 | done | |
2460 | fi | |
2461 | if test -z "$CC"; then | |
2462 | ac_ct_CC=$CC | |
2463 | for ac_prog in cl | |
2464 | do | |
2465 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2466 | set dummy $ac_prog; ac_word=$2 | |
cc227489 | 2467 | echo "$as_me:2467: checking for $ac_word" >&5 |
503d2be0 AS |
2468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2469 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2471 | else | |
2472 | if test -n "$ac_ct_CC"; then | |
2473 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2474 | else | |
2475 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2476 | ac_dummy="$PATH" | |
2477 | for ac_dir in $ac_dummy; do | |
2478 | IFS=$ac_save_IFS | |
2479 | test -z "$ac_dir" && ac_dir=. | |
2480 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2481 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
cc227489 | 2482 | echo "$as_me:2482: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
2483 | break |
2484 | done | |
2485 | ||
c4bb2108 | 2486 | fi |
503d2be0 AS |
2487 | fi |
2488 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2489 | if test -n "$ac_ct_CC"; then | |
cc227489 | 2490 | echo "$as_me:2490: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2491 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2492 | else | |
cc227489 | 2493 | echo "$as_me:2493: result: no" >&5 |
503d2be0 | 2494 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2495 | fi |
2496 | ||
503d2be0 AS |
2497 | test -n "$ac_ct_CC" && break |
2498 | done | |
ba4481b5 | 2499 | |
503d2be0 AS |
2500 | CC=$ac_ct_CC |
2501 | fi | |
2502 | ||
2503 | fi | |
ba4481b5 | 2504 | |
cc227489 | 2505 | test -z "$CC" && { { echo "$as_me:2505: error: no acceptable cc found in \$PATH" >&5 |
503d2be0 AS |
2506 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
2507 | { (exit 1); exit 1; }; } | |
c4bb2108 | 2508 | |
503d2be0 | 2509 | # Provide some information about the compiler. |
cc227489 | 2510 | echo "$as_me:2510:" \ |
503d2be0 AS |
2511 | "checking for C compiler version" >&5 |
2512 | ac_compiler=`set X $ac_compile; echo $2` | |
cc227489 | 2513 | { (eval echo "$as_me:2513: \"$ac_compiler --version </dev/null >&5\"") >&5 |
503d2be0 AS |
2514 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2515 | ac_status=$? | |
cc227489 | 2516 | echo "$as_me:2516: \$? = $ac_status" >&5 |
503d2be0 | 2517 | (exit $ac_status); } |
cc227489 | 2518 | { (eval echo "$as_me:2518: \"$ac_compiler -v </dev/null >&5\"") >&5 |
503d2be0 AS |
2519 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2520 | ac_status=$? | |
cc227489 | 2521 | echo "$as_me:2521: \$? = $ac_status" >&5 |
503d2be0 | 2522 | (exit $ac_status); } |
cc227489 | 2523 | { (eval echo "$as_me:2523: \"$ac_compiler -V </dev/null >&5\"") >&5 |
503d2be0 AS |
2524 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2525 | ac_status=$? | |
cc227489 | 2526 | echo "$as_me:2526: \$? = $ac_status" >&5 |
503d2be0 AS |
2527 | (exit $ac_status); } |
2528 | ||
2529 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 2530 | #line 2530 "configure" |
ba4481b5 | 2531 | #include "confdefs.h" |
c4bb2108 | 2532 | |
503d2be0 AS |
2533 | int |
2534 | main () | |
2535 | { | |
2536 | ||
2537 | ; | |
2538 | return 0; | |
2539 | } | |
2540 | _ACEOF | |
2541 | ac_clean_files_save=$ac_clean_files | |
2542 | ac_clean_files="$ac_clean_files a.out a.exe" | |
2543 | # Try to create an executable without -o first, disregard a.out. | |
2544 | # It will help us diagnose broken compilers, and finding out an intuition | |
2545 | # of exeext. | |
cc227489 | 2546 | echo "$as_me:2546: checking for C compiler default output" >&5 |
503d2be0 AS |
2547 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2548 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
cc227489 | 2549 | if { (eval echo "$as_me:2549: \"$ac_link_default\"") >&5 |
503d2be0 AS |
2550 | (eval $ac_link_default) 2>&5 |
2551 | ac_status=$? | |
cc227489 | 2552 | echo "$as_me:2552: \$? = $ac_status" >&5 |
503d2be0 AS |
2553 | (exit $ac_status); }; then |
2554 | # Find the output, starting from the most likely. This scheme is | |
2555 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2556 | # resort. | |
2557 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; | |
2558 | ls a.out conftest 2>/dev/null; | |
2559 | ls a.* conftest.* 2>/dev/null`; do | |
2560 | case $ac_file in | |
2561 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2562 | a.out ) # We found the default executable, but exeext='' is most | |
2563 | # certainly right. | |
2564 | break;; | |
2565 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2566 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2567 | export ac_cv_exeext | |
2568 | break;; | |
2569 | * ) break;; | |
2570 | esac | |
2571 | done | |
2572 | else | |
2573 | echo "$as_me: failed program was:" >&5 | |
2574 | cat conftest.$ac_ext >&5 | |
cc227489 | 2575 | { { echo "$as_me:2575: error: C compiler cannot create executables" >&5 |
503d2be0 AS |
2576 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
2577 | { (exit 77); exit 77; }; } | |
2578 | fi | |
2579 | ||
2580 | ac_exeext=$ac_cv_exeext | |
cc227489 | 2581 | echo "$as_me:2581: result: $ac_file" >&5 |
503d2be0 AS |
2582 | echo "${ECHO_T}$ac_file" >&6 |
2583 | ||
2584 | # Check the compiler produces executables we can run. If not, either | |
2585 | # the compiler is broken, or we cross compile. | |
cc227489 | 2586 | echo "$as_me:2586: checking whether the C compiler works" >&5 |
503d2be0 AS |
2587 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2588 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2589 | # If not cross compiling, check that we can run a simple program. | |
2590 | if test "$cross_compiling" != yes; then | |
2591 | if { ac_try='./$ac_file' | |
cc227489 | 2592 | { (eval echo "$as_me:2592: \"$ac_try\"") >&5 |
503d2be0 AS |
2593 | (eval $ac_try) 2>&5 |
2594 | ac_status=$? | |
cc227489 | 2595 | echo "$as_me:2595: \$? = $ac_status" >&5 |
503d2be0 AS |
2596 | (exit $ac_status); }; }; then |
2597 | cross_compiling=no | |
ba4481b5 | 2598 | else |
503d2be0 AS |
2599 | if test "$cross_compiling" = maybe; then |
2600 | cross_compiling=yes | |
2601 | else | |
cc227489 | 2602 | { { echo "$as_me:2602: error: cannot run C compiled programs. |
503d2be0 AS |
2603 | If you meant to cross compile, use \`--host'." >&5 |
2604 | echo "$as_me: error: cannot run C compiled programs. | |
2605 | If you meant to cross compile, use \`--host'." >&2;} | |
2606 | { (exit 1); exit 1; }; } | |
2607 | fi | |
ba4481b5 | 2608 | fi |
503d2be0 | 2609 | fi |
cc227489 | 2610 | echo "$as_me:2610: result: yes" >&5 |
503d2be0 AS |
2611 | echo "${ECHO_T}yes" >&6 |
2612 | ||
2613 | rm -f a.out a.exe conftest$ac_cv_exeext | |
2614 | ac_clean_files=$ac_clean_files_save | |
2615 | # Check the compiler produces executables we can run. If not, either | |
2616 | # the compiler is broken, or we cross compile. | |
cc227489 | 2617 | echo "$as_me:2617: checking whether we are cross compiling" >&5 |
503d2be0 | 2618 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
cc227489 | 2619 | echo "$as_me:2619: result: $cross_compiling" >&5 |
503d2be0 AS |
2620 | echo "${ECHO_T}$cross_compiling" >&6 |
2621 | ||
cc227489 | 2622 | echo "$as_me:2622: checking for executable suffix" >&5 |
503d2be0 | 2623 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
cc227489 | 2624 | if { (eval echo "$as_me:2624: \"$ac_link\"") >&5 |
503d2be0 AS |
2625 | (eval $ac_link) 2>&5 |
2626 | ac_status=$? | |
cc227489 | 2627 | echo "$as_me:2627: \$? = $ac_status" >&5 |
503d2be0 AS |
2628 | (exit $ac_status); }; then |
2629 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2630 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2631 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2632 | # `rm'. | |
2633 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2634 | case $ac_file in | |
2635 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2636 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2637 | export ac_cv_exeext | |
2638 | break;; | |
2639 | * ) break;; | |
2640 | esac | |
2641 | done | |
ba4481b5 | 2642 | else |
cc227489 | 2643 | { { echo "$as_me:2643: error: cannot compute EXEEXT: cannot compile and link" >&5 |
503d2be0 AS |
2644 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
2645 | { (exit 1); exit 1; }; } | |
ba4481b5 | 2646 | fi |
ba4481b5 | 2647 | |
503d2be0 | 2648 | rm -f conftest$ac_cv_exeext |
cc227489 | 2649 | echo "$as_me:2649: result: $ac_cv_exeext" >&5 |
503d2be0 | 2650 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
ba4481b5 | 2651 | |
503d2be0 AS |
2652 | rm -f conftest.$ac_ext |
2653 | EXEEXT=$ac_cv_exeext | |
2654 | ac_exeext=$EXEEXT | |
cc227489 | 2655 | echo "$as_me:2655: checking for object suffix" >&5 |
503d2be0 AS |
2656 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
2657 | if test "${ac_cv_objext+set}" = set; then | |
2658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 2659 | else |
503d2be0 | 2660 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 2661 | #line 2661 "configure" |
503d2be0 | 2662 | #include "confdefs.h" |
ba4481b5 | 2663 | |
503d2be0 AS |
2664 | int |
2665 | main () | |
2666 | { | |
ba4481b5 | 2667 | |
503d2be0 AS |
2668 | ; |
2669 | return 0; | |
2670 | } | |
2671 | _ACEOF | |
2672 | rm -f conftest.o conftest.obj | |
cc227489 | 2673 | if { (eval echo "$as_me:2673: \"$ac_compile\"") >&5 |
503d2be0 AS |
2674 | (eval $ac_compile) 2>&5 |
2675 | ac_status=$? | |
cc227489 | 2676 | echo "$as_me:2676: \$? = $ac_status" >&5 |
503d2be0 AS |
2677 | (exit $ac_status); }; then |
2678 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2679 | case $ac_file in | |
2680 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2681 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2682 | break;; | |
2683 | esac | |
2684 | done | |
c4bb2108 | 2685 | else |
503d2be0 AS |
2686 | echo "$as_me: failed program was:" >&5 |
2687 | cat conftest.$ac_ext >&5 | |
cc227489 | 2688 | { { echo "$as_me:2688: error: cannot compute OBJEXT: cannot compile" >&5 |
503d2be0 AS |
2689 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
2690 | { (exit 1); exit 1; }; } | |
c4bb2108 DL |
2691 | fi |
2692 | ||
503d2be0 AS |
2693 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2694 | fi | |
cc227489 | 2695 | echo "$as_me:2695: result: $ac_cv_objext" >&5 |
503d2be0 AS |
2696 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2697 | OBJEXT=$ac_cv_objext | |
2698 | ac_objext=$OBJEXT | |
cc227489 | 2699 | echo "$as_me:2699: checking whether we are using the GNU C compiler" >&5 |
503d2be0 AS |
2700 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2701 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 2703 | else |
503d2be0 | 2704 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 2705 | #line 2705 "configure" |
503d2be0 AS |
2706 | #include "confdefs.h" |
2707 | ||
2708 | int | |
2709 | main () | |
2710 | { | |
2711 | #ifndef __GNUC__ | |
2712 | choke me | |
2713 | #endif | |
2714 | ||
2715 | ; | |
2716 | return 0; | |
2717 | } | |
2718 | _ACEOF | |
2719 | rm -f conftest.$ac_objext | |
cc227489 | 2720 | if { (eval echo "$as_me:2720: \"$ac_compile\"") >&5 |
503d2be0 AS |
2721 | (eval $ac_compile) 2>&5 |
2722 | ac_status=$? | |
cc227489 | 2723 | echo "$as_me:2723: \$? = $ac_status" >&5 |
503d2be0 AS |
2724 | (exit $ac_status); } && |
2725 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 2726 | { (eval echo "$as_me:2726: \"$ac_try\"") >&5 |
503d2be0 AS |
2727 | (eval $ac_try) 2>&5 |
2728 | ac_status=$? | |
cc227489 | 2729 | echo "$as_me:2729: \$? = $ac_status" >&5 |
503d2be0 AS |
2730 | (exit $ac_status); }; }; then |
2731 | ac_compiler_gnu=yes | |
2732 | else | |
2733 | echo "$as_me: failed program was:" >&5 | |
2734 | cat conftest.$ac_ext >&5 | |
2735 | ac_compiler_gnu=no | |
2736 | fi | |
2737 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2738 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2739 | ||
2740 | fi | |
cc227489 | 2741 | echo "$as_me:2741: result: $ac_cv_c_compiler_gnu" >&5 |
503d2be0 AS |
2742 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2743 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2744 | ac_test_CFLAGS=${CFLAGS+set} | |
2745 | ac_save_CFLAGS=$CFLAGS | |
2746 | CFLAGS="-g" | |
cc227489 | 2747 | echo "$as_me:2747: checking whether $CC accepts -g" >&5 |
503d2be0 AS |
2748 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2749 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2751 | else | |
2752 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 2753 | #line 2753 "configure" |
503d2be0 AS |
2754 | #include "confdefs.h" |
2755 | ||
2756 | int | |
2757 | main () | |
2758 | { | |
2759 | ||
2760 | ; | |
2761 | return 0; | |
2762 | } | |
2763 | _ACEOF | |
2764 | rm -f conftest.$ac_objext | |
cc227489 | 2765 | if { (eval echo "$as_me:2765: \"$ac_compile\"") >&5 |
503d2be0 AS |
2766 | (eval $ac_compile) 2>&5 |
2767 | ac_status=$? | |
cc227489 | 2768 | echo "$as_me:2768: \$? = $ac_status" >&5 |
503d2be0 AS |
2769 | (exit $ac_status); } && |
2770 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 2771 | { (eval echo "$as_me:2771: \"$ac_try\"") >&5 |
503d2be0 AS |
2772 | (eval $ac_try) 2>&5 |
2773 | ac_status=$? | |
cc227489 | 2774 | echo "$as_me:2774: \$? = $ac_status" >&5 |
503d2be0 | 2775 | (exit $ac_status); }; }; then |
ba4481b5 DL |
2776 | ac_cv_prog_cc_g=yes |
2777 | else | |
503d2be0 AS |
2778 | echo "$as_me: failed program was:" >&5 |
2779 | cat conftest.$ac_ext >&5 | |
2780 | ac_cv_prog_cc_g=no | |
ba4481b5 | 2781 | fi |
503d2be0 | 2782 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 2783 | fi |
cc227489 | 2784 | echo "$as_me:2784: result: $ac_cv_prog_cc_g" >&5 |
503d2be0 | 2785 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
c4bb2108 | 2786 | if test "$ac_test_CFLAGS" = set; then |
503d2be0 | 2787 | CFLAGS=$ac_save_CFLAGS |
c4bb2108 DL |
2788 | elif test $ac_cv_prog_cc_g = yes; then |
2789 | if test "$GCC" = yes; then | |
ba4481b5 DL |
2790 | CFLAGS="-g -O2" |
2791 | else | |
c4bb2108 | 2792 | CFLAGS="-g" |
ba4481b5 | 2793 | fi |
22afa6e8 | 2794 | else |
c4bb2108 DL |
2795 | if test "$GCC" = yes; then |
2796 | CFLAGS="-O2" | |
2797 | else | |
2798 | CFLAGS= | |
2799 | fi | |
ba4481b5 | 2800 | fi |
503d2be0 AS |
2801 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2802 | # in C++ we need to declare it. In case someone uses the same compiler | |
2803 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2804 | # the declaration of exit, since it's the most demanding environment. | |
2805 | cat >conftest.$ac_ext <<_ACEOF | |
2806 | #ifndef __cplusplus | |
2807 | choke me | |
2808 | #endif | |
2809 | _ACEOF | |
2810 | rm -f conftest.$ac_objext | |
cc227489 | 2811 | if { (eval echo "$as_me:2811: \"$ac_compile\"") >&5 |
503d2be0 AS |
2812 | (eval $ac_compile) 2>&5 |
2813 | ac_status=$? | |
cc227489 | 2814 | echo "$as_me:2814: \$? = $ac_status" >&5 |
503d2be0 AS |
2815 | (exit $ac_status); } && |
2816 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 2817 | { (eval echo "$as_me:2817: \"$ac_try\"") >&5 |
503d2be0 AS |
2818 | (eval $ac_try) 2>&5 |
2819 | ac_status=$? | |
cc227489 | 2820 | echo "$as_me:2820: \$? = $ac_status" >&5 |
503d2be0 AS |
2821 | (exit $ac_status); }; }; then |
2822 | for ac_declaration in \ | |
2823 | ''\ | |
2824 | '#include <stdlib.h>' \ | |
2825 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2826 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2827 | 'extern "C" void exit (int) throw ();' \ | |
2828 | 'extern "C" void exit (int);' \ | |
2829 | 'void exit (int);' | |
2830 | do | |
2831 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 2832 | #line 2832 "configure" |
503d2be0 AS |
2833 | #include "confdefs.h" |
2834 | #include <stdlib.h> | |
2835 | $ac_declaration | |
2836 | int | |
2837 | main () | |
2838 | { | |
2839 | exit (42); | |
2840 | ; | |
2841 | return 0; | |
2842 | } | |
2843 | _ACEOF | |
2844 | rm -f conftest.$ac_objext | |
cc227489 | 2845 | if { (eval echo "$as_me:2845: \"$ac_compile\"") >&5 |
503d2be0 AS |
2846 | (eval $ac_compile) 2>&5 |
2847 | ac_status=$? | |
cc227489 | 2848 | echo "$as_me:2848: \$? = $ac_status" >&5 |
503d2be0 AS |
2849 | (exit $ac_status); } && |
2850 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 2851 | { (eval echo "$as_me:2851: \"$ac_try\"") >&5 |
503d2be0 AS |
2852 | (eval $ac_try) 2>&5 |
2853 | ac_status=$? | |
cc227489 | 2854 | echo "$as_me:2854: \$? = $ac_status" >&5 |
503d2be0 AS |
2855 | (exit $ac_status); }; }; then |
2856 | : | |
2857 | else | |
2858 | echo "$as_me: failed program was:" >&5 | |
2859 | cat conftest.$ac_ext >&5 | |
2860 | continue | |
2861 | fi | |
2862 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2863 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 2864 | #line 2864 "configure" |
503d2be0 AS |
2865 | #include "confdefs.h" |
2866 | $ac_declaration | |
2867 | int | |
2868 | main () | |
2869 | { | |
2870 | exit (42); | |
2871 | ; | |
2872 | return 0; | |
2873 | } | |
2874 | _ACEOF | |
2875 | rm -f conftest.$ac_objext | |
cc227489 | 2876 | if { (eval echo "$as_me:2876: \"$ac_compile\"") >&5 |
503d2be0 AS |
2877 | (eval $ac_compile) 2>&5 |
2878 | ac_status=$? | |
cc227489 | 2879 | echo "$as_me:2879: \$? = $ac_status" >&5 |
503d2be0 AS |
2880 | (exit $ac_status); } && |
2881 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 2882 | { (eval echo "$as_me:2882: \"$ac_try\"") >&5 |
503d2be0 AS |
2883 | (eval $ac_try) 2>&5 |
2884 | ac_status=$? | |
cc227489 | 2885 | echo "$as_me:2885: \$? = $ac_status" >&5 |
503d2be0 AS |
2886 | (exit $ac_status); }; }; then |
2887 | break | |
2888 | else | |
2889 | echo "$as_me: failed program was:" >&5 | |
2890 | cat conftest.$ac_ext >&5 | |
2891 | fi | |
2892 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2893 | done | |
2894 | rm -f conftest* | |
2895 | if test -n "$ac_declaration"; then | |
2896 | echo '#ifdef __cplusplus' >>confdefs.h | |
2897 | echo $ac_declaration >>confdefs.h | |
2898 | echo '#endif' >>confdefs.h | |
2899 | fi | |
ba4481b5 | 2900 | |
503d2be0 AS |
2901 | else |
2902 | echo "$as_me: failed program was:" >&5 | |
2903 | cat conftest.$ac_ext >&5 | |
2904 | fi | |
2905 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2906 | ac_ext=c | |
2907 | ac_cpp='$CPP $CPPFLAGS' | |
2908 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2909 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2910 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
2911 | |
2912 | # On Suns, sometimes $CPP names a directory. | |
2913 | if test -n "$CPP" && test -d "$CPP"; then | |
2914 | CPP= | |
2915 | fi | |
2916 | ||
2917 | #### Some systems specify a CPP to use unless we are using GCC. | |
2918 | #### Now that we know whether we are using GCC, we can decide whether | |
2919 | #### to use that one. | |
2920 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
2921 | then | |
2922 | CPP="$NON_GNU_CPP" | |
2923 | fi | |
2924 | ||
2925 | #### Some systems specify a CC to use unless we are using GCC. | |
2926 | #### Now that we know whether we are using GCC, we can decide whether | |
2927 | #### to use that one. | |
2928 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
2929 | test x$cc_specified != xyes | |
2930 | then | |
2931 | CC="$NON_GNU_CC" | |
2932 | fi | |
2933 | ||
2934 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
2935 | then | |
2936 | CC="$CC $GCC_TEST_OPTIONS" | |
2937 | fi | |
2938 | ||
2939 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
2940 | then | |
2941 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
2942 | fi | |
2943 | ||
2944 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
2945 | then | |
2946 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
2947 | fi | |
2948 | ||
2949 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
2950 | then | |
2951 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
2952 | fi | |
2953 | ||
2954 | #### Some other nice autoconf tests. If you add a test here which | |
2955 | #### should make an entry in src/config.h, don't forget to add an | |
2956 | #### #undef clause to src/config.h.in for autoconf to modify. | |
2957 | ||
cc227489 | 2958 | echo "$as_me:2958: checking whether ln -s works" >&5 |
503d2be0 AS |
2959 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
2960 | LN_S=$as_ln_s | |
2961 | if test "$LN_S" = "ln -s"; then | |
cc227489 | 2962 | echo "$as_me:2962: result: yes" >&5 |
503d2be0 | 2963 | echo "${ECHO_T}yes" >&6 |
ba4481b5 | 2964 | else |
cc227489 | 2965 | echo "$as_me:2965: result: no, using $LN_S" >&5 |
503d2be0 | 2966 | echo "${ECHO_T}no, using $LN_S" >&6 |
ba4481b5 DL |
2967 | fi |
2968 | ||
503d2be0 AS |
2969 | ac_ext=c |
2970 | ac_cpp='$CPP $CPPFLAGS' | |
2971 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2972 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2973 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
cc227489 | 2974 | echo "$as_me:2974: checking how to run the C preprocessor" >&5 |
503d2be0 | 2975 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
ba4481b5 DL |
2976 | # On Suns, sometimes $CPP names a directory. |
2977 | if test -n "$CPP" && test -d "$CPP"; then | |
2978 | CPP= | |
2979 | fi | |
2980 | if test -z "$CPP"; then | |
503d2be0 AS |
2981 | if test "${ac_cv_prog_CPP+set}" = set; then |
2982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2983 | else | |
2984 | # Double quotes because CPP needs to be expanded | |
2985 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2986 | do | |
2987 | ac_preproc_ok=false | |
2988 | for ac_c_preproc_warn_flag in '' yes | |
2989 | do | |
2990 | # Use a header file that comes with gcc, so configuring glibc | |
2991 | # with a fresh cross-compiler works. | |
ba4481b5 | 2992 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
2993 | # not just through cpp. "Syntax error" is here to catch this case. |
2994 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 2995 | #line 2995 "configure" |
ba4481b5 DL |
2996 | #include "confdefs.h" |
2997 | #include <assert.h> | |
503d2be0 AS |
2998 | Syntax error |
2999 | _ACEOF | |
cc227489 | 3000 | if { (eval echo "$as_me:3000: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3002 | ac_status=$? | |
3003 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3004 | rm -f conftest.er1 | |
3005 | cat conftest.err >&5 | |
cc227489 | 3006 | echo "$as_me:3006: \$? = $ac_status" >&5 |
503d2be0 AS |
3007 | (exit $ac_status); } >/dev/null; then |
3008 | if test -s conftest.err; then | |
3009 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3010 | else | |
3011 | ac_cpp_err= | |
3012 | fi | |
3013 | else | |
3014 | ac_cpp_err=yes | |
3015 | fi | |
3016 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3017 | : |
3018 | else | |
503d2be0 | 3019 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 3020 | cat conftest.$ac_ext >&5 |
503d2be0 AS |
3021 | # Broken: fails on valid input. |
3022 | continue | |
3023 | fi | |
3024 | rm -f conftest.err conftest.$ac_ext | |
3025 | ||
3026 | # OK, works on sane cases. Now check whether non-existent headers | |
3027 | # can be detected and how. | |
3028 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 3029 | #line 3029 "configure" |
503d2be0 AS |
3030 | #include "confdefs.h" |
3031 | #include <ac_nonexistent.h> | |
3032 | _ACEOF | |
cc227489 | 3033 | if { (eval echo "$as_me:3033: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3035 | ac_status=$? | |
3036 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3037 | rm -f conftest.er1 | |
3038 | cat conftest.err >&5 | |
cc227489 | 3039 | echo "$as_me:3039: \$? = $ac_status" >&5 |
503d2be0 AS |
3040 | (exit $ac_status); } >/dev/null; then |
3041 | if test -s conftest.err; then | |
3042 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3043 | else | |
3044 | ac_cpp_err= | |
3045 | fi | |
3046 | else | |
3047 | ac_cpp_err=yes | |
3048 | fi | |
3049 | if test -z "$ac_cpp_err"; then | |
3050 | # Broken: success on invalid input. | |
3051 | continue | |
c4bb2108 | 3052 | else |
503d2be0 | 3053 | echo "$as_me: failed program was:" >&5 |
c4bb2108 | 3054 | cat conftest.$ac_ext >&5 |
503d2be0 AS |
3055 | # Passes both tests. |
3056 | ac_preproc_ok=: | |
3057 | break | |
3058 | fi | |
3059 | rm -f conftest.err conftest.$ac_ext | |
3060 | ||
3061 | done | |
3062 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3063 | rm -f conftest.err conftest.$ac_ext | |
3064 | if $ac_preproc_ok; then | |
3065 | break | |
3066 | fi | |
3067 | ||
3068 | done | |
3069 | ac_cv_prog_CPP=$CPP | |
3070 | ||
3071 | fi | |
3072 | CPP=$ac_cv_prog_CPP | |
3073 | else | |
3074 | ac_cv_prog_CPP=$CPP | |
3075 | fi | |
cc227489 | 3076 | echo "$as_me:3076: result: $CPP" >&5 |
503d2be0 AS |
3077 | echo "${ECHO_T}$CPP" >&6 |
3078 | ac_preproc_ok=false | |
3079 | for ac_c_preproc_warn_flag in '' yes | |
3080 | do | |
3081 | # Use a header file that comes with gcc, so configuring glibc | |
3082 | # with a fresh cross-compiler works. | |
3083 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3084 | # not just through cpp. "Syntax error" is here to catch this case. | |
3085 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 3086 | #line 3086 "configure" |
c4bb2108 DL |
3087 | #include "confdefs.h" |
3088 | #include <assert.h> | |
503d2be0 AS |
3089 | Syntax error |
3090 | _ACEOF | |
cc227489 | 3091 | if { (eval echo "$as_me:3091: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3093 | ac_status=$? | |
3094 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3095 | rm -f conftest.er1 | |
3096 | cat conftest.err >&5 | |
cc227489 | 3097 | echo "$as_me:3097: \$? = $ac_status" >&5 |
503d2be0 AS |
3098 | (exit $ac_status); } >/dev/null; then |
3099 | if test -s conftest.err; then | |
3100 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3101 | else | |
3102 | ac_cpp_err= | |
3103 | fi | |
3104 | else | |
3105 | ac_cpp_err=yes | |
3106 | fi | |
3107 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3108 | : |
3109 | else | |
503d2be0 | 3110 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 3111 | cat conftest.$ac_ext >&5 |
503d2be0 AS |
3112 | # Broken: fails on valid input. |
3113 | continue | |
3114 | fi | |
3115 | rm -f conftest.err conftest.$ac_ext | |
3116 | ||
3117 | # OK, works on sane cases. Now check whether non-existent headers | |
3118 | # can be detected and how. | |
3119 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 3120 | #line 3120 "configure" |
503d2be0 AS |
3121 | #include "confdefs.h" |
3122 | #include <ac_nonexistent.h> | |
3123 | _ACEOF | |
cc227489 | 3124 | if { (eval echo "$as_me:3124: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3125 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3126 | ac_status=$? | |
3127 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3128 | rm -f conftest.er1 | |
3129 | cat conftest.err >&5 | |
cc227489 | 3130 | echo "$as_me:3130: \$? = $ac_status" >&5 |
503d2be0 AS |
3131 | (exit $ac_status); } >/dev/null; then |
3132 | if test -s conftest.err; then | |
3133 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3134 | else | |
3135 | ac_cpp_err= | |
3136 | fi | |
3137 | else | |
3138 | ac_cpp_err=yes | |
c4bb2108 | 3139 | fi |
503d2be0 AS |
3140 | if test -z "$ac_cpp_err"; then |
3141 | # Broken: success on invalid input. | |
3142 | continue | |
3143 | else | |
3144 | echo "$as_me: failed program was:" >&5 | |
3145 | cat conftest.$ac_ext >&5 | |
3146 | # Passes both tests. | |
3147 | ac_preproc_ok=: | |
3148 | break | |
ba4481b5 | 3149 | fi |
503d2be0 AS |
3150 | rm -f conftest.err conftest.$ac_ext |
3151 | ||
3152 | done | |
3153 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3154 | rm -f conftest.err conftest.$ac_ext | |
3155 | if $ac_preproc_ok; then | |
3156 | : | |
ba4481b5 | 3157 | else |
cc227489 | 3158 | { { echo "$as_me:3158: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
503d2be0 AS |
3159 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
3160 | { (exit 1); exit 1; }; } | |
ba4481b5 | 3161 | fi |
503d2be0 AS |
3162 | |
3163 | ac_ext=c | |
3164 | ac_cpp='$CPP $CPPFLAGS' | |
3165 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3166 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3167 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
3168 | |
3169 | # Find a good install program. We prefer a C program (faster), | |
3170 | # so one script is as good as another. But avoid the broken or | |
3171 | # incompatible versions: | |
3172 | # SysV /etc/install, /usr/sbin/install | |
3173 | # SunOS /usr/etc/install | |
3174 | # IRIX /sbin/install | |
3175 | # AIX /bin/install | |
503d2be0 | 3176 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 3177 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
3178 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3179 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3180 | # ./install, which can be erroneously created by make from ./install.sh. | |
cc227489 | 3181 | echo "$as_me:3181: checking for a BSD compatible install" >&5 |
503d2be0 | 3182 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
ba4481b5 | 3183 | if test -z "$INSTALL"; then |
503d2be0 AS |
3184 | if test "${ac_cv_path_install+set}" = set; then |
3185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3186 | else |
503d2be0 | 3187 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
ba4481b5 | 3188 | for ac_dir in $PATH; do |
503d2be0 | 3189 | IFS=$ac_save_IFS |
ba4481b5 | 3190 | # Account for people who put trailing slashes in PATH elements. |
503d2be0 AS |
3191 | case $ac_dir/ in |
3192 | / | ./ | .// | /cC/* \ | |
3193 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
3194 | | /usr/ucb/* ) ;; | |
ba4481b5 DL |
3195 | *) |
3196 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
c4bb2108 DL |
3197 | # Don't use installbsd from OSF since it installs stuff as root |
3198 | # by default. | |
3199 | for ac_prog in ginstall scoinst install; do | |
503d2be0 | 3200 | if $as_executable_p "$ac_dir/$ac_prog"; then |
ba4481b5 | 3201 | if test $ac_prog = install && |
503d2be0 | 3202 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
ba4481b5 DL |
3203 | # AIX install. It has an incompatible calling convention. |
3204 | : | |
503d2be0 AS |
3205 | elif test $ac_prog = install && |
3206 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
3207 | # program-specific install script used by HP pwplus--don't use. | |
3208 | : | |
ba4481b5 DL |
3209 | else |
3210 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
3211 | break 2 | |
3212 | fi | |
3213 | fi | |
3214 | done | |
3215 | ;; | |
3216 | esac | |
3217 | done | |
ba4481b5 DL |
3218 | |
3219 | fi | |
3220 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 3221 | INSTALL=$ac_cv_path_install |
ba4481b5 DL |
3222 | else |
3223 | # As a last resort, use the slow shell script. We don't cache a | |
3224 | # path for INSTALL within a source directory, because that will | |
3225 | # break other packages using the cache if that directory is | |
3226 | # removed, or if the path is relative. | |
503d2be0 | 3227 | INSTALL=$ac_install_sh |
ba4481b5 DL |
3228 | fi |
3229 | fi | |
cc227489 | 3230 | echo "$as_me:3230: result: $INSTALL" >&5 |
503d2be0 | 3231 | echo "${ECHO_T}$INSTALL" >&6 |
ba4481b5 DL |
3232 | |
3233 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3234 | # It thinks the first close brace ends the variable substitution. | |
3235 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3236 | ||
503d2be0 | 3237 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 3238 | |
ba4481b5 DL |
3239 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3240 | ||
3241 | for ac_prog in 'bison -y' byacc | |
3242 | do | |
503d2be0 | 3243 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
ba4481b5 | 3244 | set dummy $ac_prog; ac_word=$2 |
cc227489 | 3245 | echo "$as_me:3245: checking for $ac_word" >&5 |
503d2be0 AS |
3246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3247 | if test "${ac_cv_prog_YACC+set}" = set; then | |
3248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
3249 | else |
3250 | if test -n "$YACC"; then | |
3251 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3252 | else | |
503d2be0 AS |
3253 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
3254 | ac_dummy="$PATH" | |
3255 | for ac_dir in $ac_dummy; do | |
3256 | IFS=$ac_save_IFS | |
3257 | test -z "$ac_dir" && ac_dir=. | |
3258 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3259 | ac_cv_prog_YACC="$ac_prog" | |
cc227489 | 3260 | echo "$as_me:3260: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
3261 | break |
3262 | done | |
3263 | ||
ba4481b5 DL |
3264 | fi |
3265 | fi | |
503d2be0 | 3266 | YACC=$ac_cv_prog_YACC |
ba4481b5 | 3267 | if test -n "$YACC"; then |
cc227489 | 3268 | echo "$as_me:3268: result: $YACC" >&5 |
503d2be0 | 3269 | echo "${ECHO_T}$YACC" >&6 |
ba4481b5 | 3270 | else |
cc227489 | 3271 | echo "$as_me:3271: result: no" >&5 |
503d2be0 | 3272 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
3273 | fi |
3274 | ||
503d2be0 | 3275 | test -n "$YACC" && break |
ba4481b5 DL |
3276 | done |
3277 | test -n "$YACC" || YACC="yacc" | |
3278 | ||
7397acc4 | 3279 | if test "x$RANLIB" = x; then |
503d2be0 AS |
3280 | if test -n "$ac_tool_prefix"; then |
3281 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3282 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
cc227489 | 3283 | echo "$as_me:3283: checking for $ac_word" >&5 |
503d2be0 AS |
3284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3285 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 DL |
3287 | else |
3288 | if test -n "$RANLIB"; then | |
3289 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3290 | else | |
503d2be0 AS |
3291 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
3292 | ac_dummy="$PATH" | |
3293 | for ac_dir in $ac_dummy; do | |
3294 | IFS=$ac_save_IFS | |
3295 | test -z "$ac_dir" && ac_dir=. | |
3296 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3297 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
cc227489 | 3298 | echo "$as_me:3298: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
3299 | break |
3300 | done | |
3301 | ||
7397acc4 DL |
3302 | fi |
3303 | fi | |
503d2be0 | 3304 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 3305 | if test -n "$RANLIB"; then |
cc227489 | 3306 | echo "$as_me:3306: result: $RANLIB" >&5 |
503d2be0 AS |
3307 | echo "${ECHO_T}$RANLIB" >&6 |
3308 | else | |
cc227489 | 3309 | echo "$as_me:3309: result: no" >&5 |
503d2be0 AS |
3310 | echo "${ECHO_T}no" >&6 |
3311 | fi | |
3312 | ||
3313 | fi | |
3314 | if test -z "$ac_cv_prog_RANLIB"; then | |
3315 | ac_ct_RANLIB=$RANLIB | |
3316 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3317 | set dummy ranlib; ac_word=$2 | |
cc227489 | 3318 | echo "$as_me:3318: checking for $ac_word" >&5 |
503d2be0 AS |
3319 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3320 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3322 | else | |
3323 | if test -n "$ac_ct_RANLIB"; then | |
3324 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3325 | else | |
3326 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3327 | ac_dummy="$PATH" | |
3328 | for ac_dir in $ac_dummy; do | |
3329 | IFS=$ac_save_IFS | |
3330 | test -z "$ac_dir" && ac_dir=. | |
3331 | $as_executable_p "$ac_dir/$ac_word" || continue | |
3332 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
cc227489 | 3333 | echo "$as_me:3333: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
3334 | break |
3335 | done | |
3336 | ||
3337 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3338 | fi | |
3339 | fi | |
3340 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3341 | if test -n "$ac_ct_RANLIB"; then | |
cc227489 | 3342 | echo "$as_me:3342: result: $ac_ct_RANLIB" >&5 |
503d2be0 AS |
3343 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3344 | else | |
cc227489 | 3345 | echo "$as_me:3345: result: no" >&5 |
503d2be0 AS |
3346 | echo "${ECHO_T}no" >&6 |
3347 | fi | |
3348 | ||
3349 | RANLIB=$ac_ct_RANLIB | |
7397acc4 | 3350 | else |
503d2be0 | 3351 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
3352 | fi |
3353 | ||
3354 | fi | |
ba4481b5 | 3355 | |
cc227489 | 3356 | echo "$as_me:3356: checking for AIX" >&5 |
503d2be0 AS |
3357 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
3358 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 3359 | #line 3359 "configure" |
ba4481b5 DL |
3360 | #include "confdefs.h" |
3361 | #ifdef _AIX | |
3362 | yes | |
3363 | #endif | |
3364 | ||
503d2be0 | 3365 | _ACEOF |
ba4481b5 DL |
3366 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3367 | egrep "yes" >/dev/null 2>&1; then | |
cc227489 | 3368 | echo "$as_me:3368: result: yes" >&5 |
503d2be0 AS |
3369 | echo "${ECHO_T}yes" >&6 |
3370 | cat >>confdefs.h <<\EOF | |
ba4481b5 DL |
3371 | #define _ALL_SOURCE 1 |
3372 | EOF | |
3373 | ||
3374 | else | |
cc227489 | 3375 | echo "$as_me:3375: result: no" >&5 |
503d2be0 | 3376 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
3377 | fi |
3378 | rm -f conftest* | |
3379 | ||
3b33a005 DL |
3380 | #### Extract some information from the operating system and machine files. |
3381 | ||
cc227489 | 3382 | { echo "$as_me:3382: checking the machine- and system-dependent files to find out |
3b33a005 | 3383 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
3384 | - whether the GNU malloc routines are usable..." >&5 |
3385 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 3386 | - which libraries the lib-src programs will want, and |
503d2be0 | 3387 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
3388 | |
3389 | ### First figure out CFLAGS (which we use for running the compiler here) | |
3390 | ### and REAL_CFLAGS (which we use for real compilation). | |
3391 | ### The two are the same except on a few systems, where they are made | |
3392 | ### different to work around various lossages. For example, | |
3393 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3394 | ### as implying static linking. | |
3395 | ||
3396 | ### If the CFLAGS env var is specified, we use that value | |
3397 | ### instead of the default. | |
3398 | ||
3399 | ### It's not important that this name contain the PID; you can't run | |
3400 | ### two configures in the same directory and have anything work | |
3401 | ### anyway. | |
3402 | tempcname="conftest.c" | |
3403 | ||
3404 | echo ' | |
3405 | #include "'${srcdir}'/src/'${opsysfile}'" | |
3406 | #include "'${srcdir}'/src/'${machfile}'" | |
3407 | #ifndef LIBS_MACHINE | |
3408 | #define LIBS_MACHINE | |
3409 | #endif | |
3410 | #ifndef LIBS_SYSTEM | |
3411 | #define LIBS_SYSTEM | |
3412 | #endif | |
3413 | #ifndef C_SWITCH_SYSTEM | |
3414 | #define C_SWITCH_SYSTEM | |
3415 | #endif | |
3416 | #ifndef C_SWITCH_MACHINE | |
3417 | #define C_SWITCH_MACHINE | |
3418 | #endif | |
3419 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3420 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
3421 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
3422 | ||
3423 | #ifndef LIB_X11_LIB | |
3424 | #define LIB_X11_LIB -lX11 | |
3425 | #endif | |
3426 | ||
3427 | #ifndef LIBX11_MACHINE | |
3428 | #define LIBX11_MACHINE | |
3429 | #endif | |
3430 | ||
3431 | #ifndef LIBX11_SYSTEM | |
3432 | #define LIBX11_SYSTEM | |
3433 | #endif | |
3434 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3435 | ||
3436 | #ifdef UNEXEC | |
3437 | configure___ unexec=UNEXEC | |
3438 | #else | |
3439 | configure___ unexec=unexec.o | |
3440 | #endif | |
3441 | ||
3442 | #ifdef SYSTEM_MALLOC | |
3443 | configure___ system_malloc=yes | |
3444 | #else | |
3445 | configure___ system_malloc=no | |
3446 | #endif | |
3447 | ||
ef9e4345 GM |
3448 | #ifdef USE_MMAP_FOR_BUFFERS |
3449 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 3450 | #else |
ef9e4345 | 3451 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
3452 | #endif |
3453 | ||
3b33a005 DL |
3454 | #ifndef C_DEBUG_SWITCH |
3455 | #define C_DEBUG_SWITCH -g | |
3456 | #endif | |
3457 | ||
3458 | #ifndef C_OPTIMIZE_SWITCH | |
3459 | #ifdef __GNUC__ | |
3460 | #define C_OPTIMIZE_SWITCH -O2 | |
3461 | #else | |
3462 | #define C_OPTIMIZE_SWITCH -O | |
3463 | #endif | |
3464 | #endif | |
3465 | ||
3466 | #ifndef LD_SWITCH_MACHINE | |
3467 | #define LD_SWITCH_MACHINE | |
3468 | #endif | |
3469 | ||
3470 | #ifndef LD_SWITCH_SYSTEM | |
3471 | #define LD_SWITCH_SYSTEM | |
3472 | #endif | |
3473 | ||
3474 | #ifndef LD_SWITCH_X_SITE_AUX | |
3475 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 3476 | #endif |
3b33a005 DL |
3477 | |
3478 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3479 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3480 | ||
3481 | #ifdef THIS_IS_CONFIGURE | |
3482 | ||
3483 | /* Get the CFLAGS for tests in configure. */ | |
3484 | #ifdef __GNUC__ | |
3485 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3486 | #else | |
3487 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3488 | #endif | |
3489 | ||
3490 | #else /* not THIS_IS_CONFIGURE */ | |
3491 | ||
3492 | /* Get the CFLAGS for real compilation. */ | |
3493 | #ifdef __GNUC__ | |
3494 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3495 | #else | |
3496 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3497 | #endif | |
3498 | ||
3499 | #endif /* not THIS_IS_CONFIGURE */ | |
3500 | ' > ${tempcname} | |
3501 | ||
3502 | # The value of CPP is a quoted variable reference, so we need to do this | |
3503 | # to get its actual value... | |
3504 | CPP=`eval "echo $CPP"` | |
3505 | eval `${CPP} -Isrc ${tempcname} \ | |
3506 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3507 | if test "x$SPECIFIED_CFLAGS" = x; then | |
3508 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3509 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3510 | else | |
3511 | REAL_CFLAGS="$CFLAGS" | |
3512 | fi | |
3513 | rm ${tempcname} | |
3514 | ||
3515 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3516 | ||
3517 | ### Make sure subsequent tests use flags consistent with the build flags. | |
3518 | ||
3519 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3520 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3521 | else | |
3522 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3523 | fi | |
3524 | ||
503d2be0 | 3525 | # Check whether --enable-largefile or --disable-largefile was given. |
f4988be7 GM |
3526 | if test "${enable_largefile+set}" = set; then |
3527 | enableval="$enable_largefile" | |
f4988be7 | 3528 | |
503d2be0 AS |
3529 | fi; |
3530 | if test "$enable_largefile" != no; then | |
f4988be7 | 3531 | |
cc227489 | 3532 | echo "$as_me:3532: checking for special C compiler options needed for large files" >&5 |
503d2be0 AS |
3533 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
3534 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
3535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3536 | else |
f4988be7 | 3537 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
3538 | if test "$GCC" != yes; then |
3539 | ac_save_CC=$CC | |
3540 | while :; do | |
3541 | # IRIX 6.2 and later do not support large files by default, | |
3542 | # so use the C compiler's -n32 option if that helps. | |
3543 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 3544 | #line 3544 "configure" |
b192d653 | 3545 | #include "confdefs.h" |
f4988be7 | 3546 | #include <sys/types.h> |
503d2be0 AS |
3547 | /* Check that off_t can represent 2**63 - 1 correctly. |
3548 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3549 | since some C++ compilers masquerading as C compilers | |
3550 | incorrectly reject 9223372036854775807. */ | |
3551 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3552 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3553 | && LARGE_OFF_T % 2147483647 == 1) | |
3554 | ? 1 : -1]; | |
3555 | int | |
3556 | main () | |
3557 | { | |
f4988be7 | 3558 | |
503d2be0 AS |
3559 | ; |
3560 | return 0; | |
3561 | } | |
3562 | _ACEOF | |
3563 | rm -f conftest.$ac_objext | |
cc227489 | 3564 | if { (eval echo "$as_me:3564: \"$ac_compile\"") >&5 |
503d2be0 AS |
3565 | (eval $ac_compile) 2>&5 |
3566 | ac_status=$? | |
cc227489 | 3567 | echo "$as_me:3567: \$? = $ac_status" >&5 |
503d2be0 AS |
3568 | (exit $ac_status); } && |
3569 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 3570 | { (eval echo "$as_me:3570: \"$ac_try\"") >&5 |
503d2be0 AS |
3571 | (eval $ac_try) 2>&5 |
3572 | ac_status=$? | |
cc227489 | 3573 | echo "$as_me:3573: \$? = $ac_status" >&5 |
503d2be0 AS |
3574 | (exit $ac_status); }; }; then |
3575 | break | |
b192d653 | 3576 | else |
503d2be0 AS |
3577 | echo "$as_me: failed program was:" >&5 |
3578 | cat conftest.$ac_ext >&5 | |
3579 | fi | |
3580 | rm -f conftest.$ac_objext | |
3581 | CC="$CC -n32" | |
3582 | rm -f conftest.$ac_objext | |
cc227489 | 3583 | if { (eval echo "$as_me:3583: \"$ac_compile\"") >&5 |
503d2be0 AS |
3584 | (eval $ac_compile) 2>&5 |
3585 | ac_status=$? | |
cc227489 | 3586 | echo "$as_me:3586: \$? = $ac_status" >&5 |
503d2be0 AS |
3587 | (exit $ac_status); } && |
3588 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 3589 | { (eval echo "$as_me:3589: \"$ac_try\"") >&5 |
503d2be0 AS |
3590 | (eval $ac_try) 2>&5 |
3591 | ac_status=$? | |
cc227489 | 3592 | echo "$as_me:3592: \$? = $ac_status" >&5 |
503d2be0 AS |
3593 | (exit $ac_status); }; }; then |
3594 | ac_cv_sys_largefile_CC=' -n32'; break | |
3595 | else | |
3596 | echo "$as_me: failed program was:" >&5 | |
3597 | cat conftest.$ac_ext >&5 | |
3598 | fi | |
3599 | rm -f conftest.$ac_objext | |
3600 | break | |
3601 | done | |
3602 | CC=$ac_save_CC | |
3603 | rm -f conftest.$ac_ext | |
3604 | fi | |
b192d653 | 3605 | fi |
cc227489 | 3606 | echo "$as_me:3606: result: $ac_cv_sys_largefile_CC" >&5 |
503d2be0 AS |
3607 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
3608 | if test "$ac_cv_sys_largefile_CC" != no; then | |
3609 | CC=$CC$ac_cv_sys_largefile_CC | |
3610 | fi | |
b192d653 | 3611 | |
cc227489 | 3612 | echo "$as_me:3612: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
503d2be0 AS |
3613 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
3614 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
3615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3616 | else |
503d2be0 | 3617 | while :; do |
f4988be7 | 3618 | ac_cv_sys_file_offset_bits=no |
503d2be0 | 3619 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 3620 | #line 3620 "configure" |
f4988be7 GM |
3621 | #include "confdefs.h" |
3622 | #include <sys/types.h> | |
503d2be0 AS |
3623 | /* Check that off_t can represent 2**63 - 1 correctly. |
3624 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3625 | since some C++ compilers masquerading as C compilers | |
3626 | incorrectly reject 9223372036854775807. */ | |
3627 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3628 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3629 | && LARGE_OFF_T % 2147483647 == 1) | |
3630 | ? 1 : -1]; | |
3631 | int | |
3632 | main () | |
3633 | { | |
f4988be7 | 3634 | |
503d2be0 AS |
3635 | ; |
3636 | return 0; | |
3637 | } | |
3638 | _ACEOF | |
3639 | rm -f conftest.$ac_objext | |
cc227489 | 3640 | if { (eval echo "$as_me:3640: \"$ac_compile\"") >&5 |
503d2be0 AS |
3641 | (eval $ac_compile) 2>&5 |
3642 | ac_status=$? | |
cc227489 | 3643 | echo "$as_me:3643: \$? = $ac_status" >&5 |
503d2be0 AS |
3644 | (exit $ac_status); } && |
3645 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 3646 | { (eval echo "$as_me:3646: \"$ac_try\"") >&5 |
503d2be0 AS |
3647 | (eval $ac_try) 2>&5 |
3648 | ac_status=$? | |
cc227489 | 3649 | echo "$as_me:3649: \$? = $ac_status" >&5 |
503d2be0 AS |
3650 | (exit $ac_status); }; }; then |
3651 | break | |
f4988be7 | 3652 | else |
503d2be0 AS |
3653 | echo "$as_me: failed program was:" >&5 |
3654 | cat conftest.$ac_ext >&5 | |
3655 | fi | |
3656 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3657 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 3658 | #line 3658 "configure" |
ba4481b5 | 3659 | #include "confdefs.h" |
f4988be7 GM |
3660 | #define _FILE_OFFSET_BITS 64 |
3661 | #include <sys/types.h> | |
503d2be0 AS |
3662 | /* Check that off_t can represent 2**63 - 1 correctly. |
3663 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3664 | since some C++ compilers masquerading as C compilers | |
3665 | incorrectly reject 9223372036854775807. */ | |
3666 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3667 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3668 | && LARGE_OFF_T % 2147483647 == 1) | |
3669 | ? 1 : -1]; | |
3670 | int | |
3671 | main () | |
3672 | { | |
3673 | ||
3674 | ; | |
3675 | return 0; | |
3676 | } | |
3677 | _ACEOF | |
3678 | rm -f conftest.$ac_objext | |
cc227489 | 3679 | if { (eval echo "$as_me:3679: \"$ac_compile\"") >&5 |
503d2be0 AS |
3680 | (eval $ac_compile) 2>&5 |
3681 | ac_status=$? | |
cc227489 | 3682 | echo "$as_me:3682: \$? = $ac_status" >&5 |
503d2be0 AS |
3683 | (exit $ac_status); } && |
3684 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 3685 | { (eval echo "$as_me:3685: \"$ac_try\"") >&5 |
503d2be0 AS |
3686 | (eval $ac_try) 2>&5 |
3687 | ac_status=$? | |
cc227489 | 3688 | echo "$as_me:3688: \$? = $ac_status" >&5 |
503d2be0 AS |
3689 | (exit $ac_status); }; }; then |
3690 | ac_cv_sys_file_offset_bits=64; break | |
3691 | else | |
3692 | echo "$as_me: failed program was:" >&5 | |
3693 | cat conftest.$ac_ext >&5 | |
3694 | fi | |
3695 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3696 | break | |
3697 | done | |
ba4481b5 | 3698 | fi |
cc227489 | 3699 | echo "$as_me:3699: result: $ac_cv_sys_file_offset_bits" >&5 |
503d2be0 AS |
3700 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
3701 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
ba4481b5 | 3702 | |
503d2be0 | 3703 | cat >>confdefs.h <<EOF |
f4988be7 | 3704 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
ba4481b5 | 3705 | EOF |
f4988be7 | 3706 | |
503d2be0 AS |
3707 | fi |
3708 | rm -f conftest* | |
cc227489 | 3709 | echo "$as_me:3709: checking for _LARGE_FILES value needed for large files" >&5 |
503d2be0 AS |
3710 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
3711 | if test "${ac_cv_sys_large_files+set}" = set; then | |
3712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3713 | else |
503d2be0 | 3714 | while :; do |
f4988be7 | 3715 | ac_cv_sys_large_files=no |
503d2be0 | 3716 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 3717 | #line 3717 "configure" |
f4988be7 | 3718 | #include "confdefs.h" |
503d2be0 AS |
3719 | #include <sys/types.h> |
3720 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3721 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3722 | since some C++ compilers masquerading as C compilers | |
3723 | incorrectly reject 9223372036854775807. */ | |
3724 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3725 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3726 | && LARGE_OFF_T % 2147483647 == 1) | |
3727 | ? 1 : -1]; | |
3728 | int | |
3729 | main () | |
3730 | { | |
ba4481b5 | 3731 | |
503d2be0 AS |
3732 | ; |
3733 | return 0; | |
3734 | } | |
3735 | _ACEOF | |
3736 | rm -f conftest.$ac_objext | |
cc227489 | 3737 | if { (eval echo "$as_me:3737: \"$ac_compile\"") >&5 |
503d2be0 AS |
3738 | (eval $ac_compile) 2>&5 |
3739 | ac_status=$? | |
cc227489 | 3740 | echo "$as_me:3740: \$? = $ac_status" >&5 |
503d2be0 AS |
3741 | (exit $ac_status); } && |
3742 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 3743 | { (eval echo "$as_me:3743: \"$ac_try\"") >&5 |
503d2be0 AS |
3744 | (eval $ac_try) 2>&5 |
3745 | ac_status=$? | |
cc227489 | 3746 | echo "$as_me:3746: \$? = $ac_status" >&5 |
503d2be0 AS |
3747 | (exit $ac_status); }; }; then |
3748 | break | |
ba4481b5 | 3749 | else |
503d2be0 AS |
3750 | echo "$as_me: failed program was:" >&5 |
3751 | cat conftest.$ac_ext >&5 | |
3752 | fi | |
3753 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3754 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 3755 | #line 3755 "configure" |
ba4481b5 | 3756 | #include "confdefs.h" |
f4988be7 | 3757 | #define _LARGE_FILES 1 |
503d2be0 AS |
3758 | #include <sys/types.h> |
3759 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3760 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3761 | since some C++ compilers masquerading as C compilers | |
3762 | incorrectly reject 9223372036854775807. */ | |
3763 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3764 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3765 | && LARGE_OFF_T % 2147483647 == 1) | |
3766 | ? 1 : -1]; | |
3767 | int | |
3768 | main () | |
3769 | { | |
f4988be7 | 3770 | |
503d2be0 AS |
3771 | ; |
3772 | return 0; | |
3773 | } | |
3774 | _ACEOF | |
3775 | rm -f conftest.$ac_objext | |
cc227489 | 3776 | if { (eval echo "$as_me:3776: \"$ac_compile\"") >&5 |
503d2be0 AS |
3777 | (eval $ac_compile) 2>&5 |
3778 | ac_status=$? | |
cc227489 | 3779 | echo "$as_me:3779: \$? = $ac_status" >&5 |
503d2be0 AS |
3780 | (exit $ac_status); } && |
3781 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 3782 | { (eval echo "$as_me:3782: \"$ac_try\"") >&5 |
503d2be0 AS |
3783 | (eval $ac_try) 2>&5 |
3784 | ac_status=$? | |
cc227489 | 3785 | echo "$as_me:3785: \$? = $ac_status" >&5 |
503d2be0 AS |
3786 | (exit $ac_status); }; }; then |
3787 | ac_cv_sys_large_files=1; break | |
3788 | else | |
3789 | echo "$as_me: failed program was:" >&5 | |
3790 | cat conftest.$ac_ext >&5 | |
3791 | fi | |
3792 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3793 | break | |
3794 | done | |
ba4481b5 | 3795 | fi |
cc227489 | 3796 | echo "$as_me:3796: result: $ac_cv_sys_large_files" >&5 |
503d2be0 AS |
3797 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
3798 | if test "$ac_cv_sys_large_files" != no; then | |
ba4481b5 | 3799 | |
503d2be0 | 3800 | cat >>confdefs.h <<EOF |
f4988be7 | 3801 | #define _LARGE_FILES $ac_cv_sys_large_files |
ba4481b5 DL |
3802 | EOF |
3803 | ||
503d2be0 AS |
3804 | fi |
3805 | rm -f conftest* | |
3806 | fi | |
ba4481b5 | 3807 | |
f4988be7 | 3808 | # Sound support for GNU/Linux and the free BSDs. |
503d2be0 AS |
3809 | |
3810 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
f4988be7 | 3811 | do |
503d2be0 | 3812 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 3813 | echo "$as_me:3813: checking for $ac_header" >&5 |
503d2be0 AS |
3814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3817 | else | |
3818 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 3819 | #line 3819 "configure" |
503d2be0 AS |
3820 | #include "confdefs.h" |
3821 | #include <$ac_header> | |
3822 | _ACEOF | |
cc227489 | 3823 | if { (eval echo "$as_me:3823: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3824 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3825 | ac_status=$? | |
3826 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3827 | rm -f conftest.er1 | |
3828 | cat conftest.err >&5 | |
cc227489 | 3829 | echo "$as_me:3829: \$? = $ac_status" >&5 |
503d2be0 AS |
3830 | (exit $ac_status); } >/dev/null; then |
3831 | if test -s conftest.err; then | |
3832 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3833 | else | |
3834 | ac_cpp_err= | |
3835 | fi | |
3836 | else | |
3837 | ac_cpp_err=yes | |
3838 | fi | |
3839 | if test -z "$ac_cpp_err"; then | |
3840 | eval "$as_ac_Header=yes" | |
3841 | else | |
3842 | echo "$as_me: failed program was:" >&5 | |
ba4481b5 | 3843 | cat conftest.$ac_ext >&5 |
503d2be0 | 3844 | eval "$as_ac_Header=no" |
ba4481b5 | 3845 | fi |
503d2be0 | 3846 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 3847 | fi |
cc227489 | 3848 | echo "$as_me:3848: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
3849 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3850 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3851 | cat >>confdefs.h <<EOF | |
3852 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ba4481b5 | 3853 | EOF |
503d2be0 | 3854 | |
ba4481b5 | 3855 | fi |
f4988be7 | 3856 | done |
ba4481b5 | 3857 | |
f4988be7 | 3858 | # Emulation library used on NetBSD. |
cc227489 | 3859 | echo "$as_me:3859: checking for _oss_ioctl in -lossaudio" >&5 |
503d2be0 AS |
3860 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
3861 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
3862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
65171e3a | 3863 | else |
503d2be0 | 3864 | ac_check_lib_save_LIBS=$LIBS |
f4988be7 | 3865 | LIBS="-lossaudio $LIBS" |
503d2be0 | 3866 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 3867 | #line 3867 "configure" |
65171e3a | 3868 | #include "confdefs.h" |
503d2be0 | 3869 | |
f4988be7 | 3870 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
3871 | #ifdef __cplusplus |
3872 | extern "C" | |
3873 | #endif | |
f4988be7 | 3874 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
3875 | builtin and then its argument prototype would still apply. */ |
3876 | char _oss_ioctl (); | |
3877 | int | |
3878 | main () | |
3879 | { | |
3880 | _oss_ioctl (); | |
3881 | ; | |
3882 | return 0; | |
3883 | } | |
3884 | _ACEOF | |
3885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 3886 | if { (eval echo "$as_me:3886: \"$ac_link\"") >&5 |
503d2be0 AS |
3887 | (eval $ac_link) 2>&5 |
3888 | ac_status=$? | |
cc227489 | 3889 | echo "$as_me:3889: \$? = $ac_status" >&5 |
503d2be0 AS |
3890 | (exit $ac_status); } && |
3891 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 3892 | { (eval echo "$as_me:3892: \"$ac_try\"") >&5 |
503d2be0 AS |
3893 | (eval $ac_try) 2>&5 |
3894 | ac_status=$? | |
cc227489 | 3895 | echo "$as_me:3895: \$? = $ac_status" >&5 |
503d2be0 AS |
3896 | (exit $ac_status); }; }; then |
3897 | ac_cv_lib_ossaudio__oss_ioctl=yes | |
3898 | else | |
3899 | echo "$as_me: failed program was:" >&5 | |
3900 | cat conftest.$ac_ext >&5 | |
3901 | ac_cv_lib_ossaudio__oss_ioctl=no | |
3902 | fi | |
3903 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3904 | LIBS=$ac_check_lib_save_LIBS | |
3905 | fi | |
cc227489 | 3906 | echo "$as_me:3906: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
503d2be0 AS |
3907 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
3908 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
f4988be7 GM |
3909 | LIBSOUND=-lossaudio |
3910 | else | |
503d2be0 | 3911 | LIBSOUND= |
f4988be7 | 3912 | fi |
65171e3a | 3913 | |
503d2be0 | 3914 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
f4988be7 | 3915 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
bb17930d | 3916 | termcap.h stdio_ext.h fcntl.h term.h strings.h |
f4988be7 | 3917 | do |
503d2be0 | 3918 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 3919 | echo "$as_me:3919: checking for $ac_header" >&5 |
503d2be0 AS |
3920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3923 | else | |
3924 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 3925 | #line 3925 "configure" |
503d2be0 AS |
3926 | #include "confdefs.h" |
3927 | #include <$ac_header> | |
3928 | _ACEOF | |
cc227489 | 3929 | if { (eval echo "$as_me:3929: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3930 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3931 | ac_status=$? | |
3932 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3933 | rm -f conftest.er1 | |
3934 | cat conftest.err >&5 | |
cc227489 | 3935 | echo "$as_me:3935: \$? = $ac_status" >&5 |
503d2be0 AS |
3936 | (exit $ac_status); } >/dev/null; then |
3937 | if test -s conftest.err; then | |
3938 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3939 | else | |
3940 | ac_cpp_err= | |
3941 | fi | |
3942 | else | |
3943 | ac_cpp_err=yes | |
3944 | fi | |
3945 | if test -z "$ac_cpp_err"; then | |
3946 | eval "$as_ac_Header=yes" | |
3947 | else | |
3948 | echo "$as_me: failed program was:" >&5 | |
ba4481b5 | 3949 | cat conftest.$ac_ext >&5 |
503d2be0 | 3950 | eval "$as_ac_Header=no" |
ba4481b5 | 3951 | fi |
503d2be0 | 3952 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 3953 | fi |
cc227489 | 3954 | echo "$as_me:3954: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
3955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3956 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3957 | cat >>confdefs.h <<EOF | |
3958 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ba4481b5 | 3959 | EOF |
503d2be0 | 3960 | |
ba4481b5 | 3961 | fi |
f4988be7 | 3962 | done |
ba4481b5 | 3963 | |
cc227489 | 3964 | echo "$as_me:3964: checking for ANSI C header files" >&5 |
503d2be0 AS |
3965 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3966 | if test "${ac_cv_header_stdc+set}" = set; then | |
3967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3968 | else |
503d2be0 | 3969 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 3970 | #line 3970 "configure" |
ba4481b5 | 3971 | #include "confdefs.h" |
f4988be7 GM |
3972 | #include <stdlib.h> |
3973 | #include <stdarg.h> | |
3974 | #include <string.h> | |
3975 | #include <float.h> | |
503d2be0 AS |
3976 | |
3977 | _ACEOF | |
cc227489 | 3978 | if { (eval echo "$as_me:3978: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3979 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3980 | ac_status=$? | |
3981 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3982 | rm -f conftest.er1 | |
3983 | cat conftest.err >&5 | |
cc227489 | 3984 | echo "$as_me:3984: \$? = $ac_status" >&5 |
503d2be0 AS |
3985 | (exit $ac_status); } >/dev/null; then |
3986 | if test -s conftest.err; then | |
3987 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3988 | else | |
3989 | ac_cpp_err= | |
3990 | fi | |
3991 | else | |
3992 | ac_cpp_err=yes | |
3993 | fi | |
3994 | if test -z "$ac_cpp_err"; then | |
f4988be7 | 3995 | ac_cv_header_stdc=yes |
ba4481b5 | 3996 | else |
503d2be0 | 3997 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 3998 | cat conftest.$ac_ext >&5 |
f4988be7 | 3999 | ac_cv_header_stdc=no |
ba4481b5 | 4000 | fi |
503d2be0 | 4001 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 4002 | |
f4988be7 GM |
4003 | if test $ac_cv_header_stdc = yes; then |
4004 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
503d2be0 | 4005 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4006 | #line 4006 "configure" |
f4988be7 GM |
4007 | #include "confdefs.h" |
4008 | #include <string.h> | |
503d2be0 AS |
4009 | |
4010 | _ACEOF | |
f4988be7 GM |
4011 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4012 | egrep "memchr" >/dev/null 2>&1; then | |
4013 | : | |
4014 | else | |
f4988be7 GM |
4015 | ac_cv_header_stdc=no |
4016 | fi | |
4017 | rm -f conftest* | |
4018 | ||
4019 | fi | |
4020 | ||
4021 | if test $ac_cv_header_stdc = yes; then | |
4022 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
503d2be0 | 4023 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4024 | #line 4024 "configure" |
f4988be7 GM |
4025 | #include "confdefs.h" |
4026 | #include <stdlib.h> | |
503d2be0 AS |
4027 | |
4028 | _ACEOF | |
f4988be7 GM |
4029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4030 | egrep "free" >/dev/null 2>&1; then | |
4031 | : | |
4032 | else | |
f4988be7 GM |
4033 | ac_cv_header_stdc=no |
4034 | fi | |
4035 | rm -f conftest* | |
4036 | ||
4037 | fi | |
4038 | ||
4039 | if test $ac_cv_header_stdc = yes; then | |
4040 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
503d2be0 | 4041 | if test "$cross_compiling" = yes; then |
f4988be7 GM |
4042 | : |
4043 | else | |
503d2be0 | 4044 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4045 | #line 4045 "configure" |
f4988be7 GM |
4046 | #include "confdefs.h" |
4047 | #include <ctype.h> | |
503d2be0 AS |
4048 | #if ((' ' & 0x0FF) == 0x020) |
4049 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4050 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4051 | #else | |
4052 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4053 | || ('j' <= (c) && (c) <= 'r') \ | |
4054 | || ('s' <= (c) && (c) <= 'z')) | |
4055 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4056 | #endif | |
f4988be7 | 4057 | |
503d2be0 AS |
4058 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4059 | int | |
4060 | main () | |
4061 | { | |
4062 | int i; | |
4063 | for (i = 0; i < 256; i++) | |
4064 | if (XOR (islower (i), ISLOWER (i)) | |
4065 | || toupper (i) != TOUPPER (i)) | |
4066 | exit(2); | |
4067 | exit (0); | |
4068 | } | |
4069 | _ACEOF | |
4070 | rm -f conftest$ac_exeext | |
cc227489 | 4071 | if { (eval echo "$as_me:4071: \"$ac_link\"") >&5 |
503d2be0 AS |
4072 | (eval $ac_link) 2>&5 |
4073 | ac_status=$? | |
cc227489 | 4074 | echo "$as_me:4074: \$? = $ac_status" >&5 |
503d2be0 | 4075 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
cc227489 | 4076 | { (eval echo "$as_me:4076: \"$ac_try\"") >&5 |
503d2be0 AS |
4077 | (eval $ac_try) 2>&5 |
4078 | ac_status=$? | |
cc227489 | 4079 | echo "$as_me:4079: \$? = $ac_status" >&5 |
503d2be0 | 4080 | (exit $ac_status); }; }; then |
f4988be7 GM |
4081 | : |
4082 | else | |
503d2be0 AS |
4083 | echo "$as_me: program exited with status $ac_status" >&5 |
4084 | echo "$as_me: failed program was:" >&5 | |
4085 | cat conftest.$ac_ext >&5 | |
4086 | ac_cv_header_stdc=no | |
f4988be7 | 4087 | fi |
503d2be0 | 4088 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f4988be7 | 4089 | fi |
f4988be7 GM |
4090 | fi |
4091 | fi | |
cc227489 | 4092 | echo "$as_me:4092: result: $ac_cv_header_stdc" >&5 |
503d2be0 | 4093 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
f4988be7 | 4094 | if test $ac_cv_header_stdc = yes; then |
503d2be0 AS |
4095 | |
4096 | cat >>confdefs.h <<\EOF | |
f4988be7 GM |
4097 | #define STDC_HEADERS 1 |
4098 | EOF | |
4099 | ||
4100 | fi | |
4101 | ||
cc227489 | 4102 | echo "$as_me:4102: checking whether time.h and sys/time.h may both be included" >&5 |
503d2be0 AS |
4103 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
4104 | if test "${ac_cv_header_time+set}" = set; then | |
4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f4988be7 | 4106 | else |
503d2be0 | 4107 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4108 | #line 4108 "configure" |
f4988be7 GM |
4109 | #include "confdefs.h" |
4110 | #include <sys/types.h> | |
4111 | #include <sys/time.h> | |
4112 | #include <time.h> | |
503d2be0 AS |
4113 | |
4114 | int | |
4115 | main () | |
4116 | { | |
4117 | if ((struct tm *) 0) | |
4118 | return 0; | |
4119 | ; | |
4120 | return 0; | |
4121 | } | |
4122 | _ACEOF | |
4123 | rm -f conftest.$ac_objext | |
cc227489 | 4124 | if { (eval echo "$as_me:4124: \"$ac_compile\"") >&5 |
503d2be0 AS |
4125 | (eval $ac_compile) 2>&5 |
4126 | ac_status=$? | |
cc227489 | 4127 | echo "$as_me:4127: \$? = $ac_status" >&5 |
503d2be0 AS |
4128 | (exit $ac_status); } && |
4129 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4130 | { (eval echo "$as_me:4130: \"$ac_try\"") >&5 |
503d2be0 AS |
4131 | (eval $ac_try) 2>&5 |
4132 | ac_status=$? | |
cc227489 | 4133 | echo "$as_me:4133: \$? = $ac_status" >&5 |
503d2be0 | 4134 | (exit $ac_status); }; }; then |
f4988be7 GM |
4135 | ac_cv_header_time=yes |
4136 | else | |
503d2be0 AS |
4137 | echo "$as_me: failed program was:" >&5 |
4138 | cat conftest.$ac_ext >&5 | |
4139 | ac_cv_header_time=no | |
f4988be7 | 4140 | fi |
503d2be0 | 4141 | rm -f conftest.$ac_objext conftest.$ac_ext |
f4988be7 | 4142 | fi |
cc227489 | 4143 | echo "$as_me:4143: result: $ac_cv_header_time" >&5 |
503d2be0 | 4144 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
f4988be7 | 4145 | if test $ac_cv_header_time = yes; then |
503d2be0 AS |
4146 | |
4147 | cat >>confdefs.h <<\EOF | |
f4988be7 GM |
4148 | #define TIME_WITH_SYS_TIME 1 |
4149 | EOF | |
4150 | ||
4151 | fi | |
4152 | ||
cc227489 | 4153 | echo "$as_me:4153: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
503d2be0 AS |
4154 | echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 |
4155 | if test "${ac_cv_decl_sys_siglist+set}" = set; then | |
4156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f4988be7 | 4157 | else |
503d2be0 | 4158 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4159 | #line 4159 "configure" |
f4988be7 GM |
4160 | #include "confdefs.h" |
4161 | #include <sys/types.h> | |
4162 | #include <signal.h> | |
4163 | /* NetBSD declares sys_siglist in unistd.h. */ | |
503d2be0 AS |
4164 | #if HAVE_UNISTD_H |
4165 | # include <unistd.h> | |
f4988be7 | 4166 | #endif |
503d2be0 AS |
4167 | |
4168 | int | |
4169 | main () | |
4170 | { | |
f4988be7 | 4171 | char *msg = *(sys_siglist + 1); |
503d2be0 AS |
4172 | ; |
4173 | return 0; | |
4174 | } | |
4175 | _ACEOF | |
4176 | rm -f conftest.$ac_objext | |
cc227489 | 4177 | if { (eval echo "$as_me:4177: \"$ac_compile\"") >&5 |
503d2be0 AS |
4178 | (eval $ac_compile) 2>&5 |
4179 | ac_status=$? | |
cc227489 | 4180 | echo "$as_me:4180: \$? = $ac_status" >&5 |
503d2be0 AS |
4181 | (exit $ac_status); } && |
4182 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4183 | { (eval echo "$as_me:4183: \"$ac_try\"") >&5 |
503d2be0 AS |
4184 | (eval $ac_try) 2>&5 |
4185 | ac_status=$? | |
cc227489 | 4186 | echo "$as_me:4186: \$? = $ac_status" >&5 |
503d2be0 | 4187 | (exit $ac_status); }; }; then |
f4988be7 GM |
4188 | ac_cv_decl_sys_siglist=yes |
4189 | else | |
503d2be0 AS |
4190 | echo "$as_me: failed program was:" >&5 |
4191 | cat conftest.$ac_ext >&5 | |
4192 | ac_cv_decl_sys_siglist=no | |
f4988be7 | 4193 | fi |
503d2be0 | 4194 | rm -f conftest.$ac_objext conftest.$ac_ext |
f4988be7 | 4195 | fi |
cc227489 | 4196 | echo "$as_me:4196: result: $ac_cv_decl_sys_siglist" >&5 |
503d2be0 | 4197 | echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 |
f4988be7 | 4198 | if test $ac_cv_decl_sys_siglist = yes; then |
503d2be0 AS |
4199 | |
4200 | cat >>confdefs.h <<\EOF | |
f4988be7 GM |
4201 | #define SYS_SIGLIST_DECLARED 1 |
4202 | EOF | |
4203 | ||
4204 | fi | |
4205 | ||
cc227489 | 4206 | echo "$as_me:4206: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
503d2be0 AS |
4207 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
4208 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
4209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f4988be7 | 4210 | else |
503d2be0 | 4211 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4212 | #line 4212 "configure" |
f4988be7 GM |
4213 | #include "confdefs.h" |
4214 | #include <sys/types.h> | |
4215 | #include <sys/wait.h> | |
4216 | #ifndef WEXITSTATUS | |
503d2be0 | 4217 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
f4988be7 GM |
4218 | #endif |
4219 | #ifndef WIFEXITED | |
503d2be0 | 4220 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
f4988be7 | 4221 | #endif |
503d2be0 AS |
4222 | |
4223 | int | |
4224 | main () | |
4225 | { | |
4226 | int s; | |
4227 | wait (&s); | |
4228 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4229 | ; | |
4230 | return 0; | |
4231 | } | |
4232 | _ACEOF | |
4233 | rm -f conftest.$ac_objext | |
cc227489 | 4234 | if { (eval echo "$as_me:4234: \"$ac_compile\"") >&5 |
503d2be0 AS |
4235 | (eval $ac_compile) 2>&5 |
4236 | ac_status=$? | |
cc227489 | 4237 | echo "$as_me:4237: \$? = $ac_status" >&5 |
503d2be0 AS |
4238 | (exit $ac_status); } && |
4239 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4240 | { (eval echo "$as_me:4240: \"$ac_try\"") >&5 |
503d2be0 AS |
4241 | (eval $ac_try) 2>&5 |
4242 | ac_status=$? | |
cc227489 | 4243 | echo "$as_me:4243: \$? = $ac_status" >&5 |
503d2be0 | 4244 | (exit $ac_status); }; }; then |
f4988be7 GM |
4245 | ac_cv_header_sys_wait_h=yes |
4246 | else | |
503d2be0 AS |
4247 | echo "$as_me: failed program was:" >&5 |
4248 | cat conftest.$ac_ext >&5 | |
4249 | ac_cv_header_sys_wait_h=no | |
f4988be7 | 4250 | fi |
503d2be0 | 4251 | rm -f conftest.$ac_objext conftest.$ac_ext |
f4988be7 | 4252 | fi |
cc227489 | 4253 | echo "$as_me:4253: result: $ac_cv_header_sys_wait_h" >&5 |
503d2be0 | 4254 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
f4988be7 | 4255 | if test $ac_cv_header_sys_wait_h = yes; then |
503d2be0 AS |
4256 | |
4257 | cat >>confdefs.h <<\EOF | |
f4988be7 GM |
4258 | #define HAVE_SYS_WAIT_H 1 |
4259 | EOF | |
4260 | ||
4261 | fi | |
4262 | ||
cc227489 | 4263 | echo "$as_me:4263: checking for struct utimbuf" >&5 |
503d2be0 AS |
4264 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
4265 | if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
4266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f4988be7 | 4267 | else |
503d2be0 | 4268 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4269 | #line 4269 "configure" |
f4988be7 GM |
4270 | #include "confdefs.h" |
4271 | #ifdef TIME_WITH_SYS_TIME | |
4272 | #include <sys/time.h> | |
4273 | #include <time.h> | |
4274 | #else | |
4275 | #ifdef HAVE_SYS_TIME_H | |
4276 | #include <sys/time.h> | |
4277 | #else | |
4278 | #include <time.h> | |
4279 | #endif | |
4280 | #endif | |
4281 | #ifdef HAVE_UTIME_H | |
4282 | #include <utime.h> | |
4283 | #endif | |
503d2be0 AS |
4284 | int |
4285 | main () | |
4286 | { | |
f4988be7 | 4287 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
4288 | ; |
4289 | return 0; | |
4290 | } | |
4291 | _ACEOF | |
4292 | rm -f conftest.$ac_objext | |
cc227489 | 4293 | if { (eval echo "$as_me:4293: \"$ac_compile\"") >&5 |
503d2be0 AS |
4294 | (eval $ac_compile) 2>&5 |
4295 | ac_status=$? | |
cc227489 | 4296 | echo "$as_me:4296: \$? = $ac_status" >&5 |
503d2be0 AS |
4297 | (exit $ac_status); } && |
4298 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4299 | { (eval echo "$as_me:4299: \"$ac_try\"") >&5 |
503d2be0 AS |
4300 | (eval $ac_try) 2>&5 |
4301 | ac_status=$? | |
cc227489 | 4302 | echo "$as_me:4302: \$? = $ac_status" >&5 |
503d2be0 | 4303 | (exit $ac_status); }; }; then |
f4988be7 GM |
4304 | emacs_cv_struct_utimbuf=yes |
4305 | else | |
503d2be0 AS |
4306 | echo "$as_me: failed program was:" >&5 |
4307 | cat conftest.$ac_ext >&5 | |
4308 | emacs_cv_struct_utimbuf=no | |
f4988be7 | 4309 | fi |
503d2be0 | 4310 | rm -f conftest.$ac_objext conftest.$ac_ext |
f4988be7 | 4311 | fi |
cc227489 | 4312 | echo "$as_me:4312: result: $emacs_cv_struct_utimbuf" >&5 |
503d2be0 | 4313 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
f4988be7 | 4314 | if test $emacs_cv_struct_utimbuf = yes; then |
503d2be0 | 4315 | cat >>confdefs.h <<\EOF |
f4988be7 GM |
4316 | #define HAVE_STRUCT_UTIMBUF 1 |
4317 | EOF | |
4318 | ||
4319 | fi | |
4320 | ||
cc227489 | 4321 | echo "$as_me:4321: checking return type of signal handlers" >&5 |
503d2be0 AS |
4322 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
4323 | if test "${ac_cv_type_signal+set}" = set; then | |
4324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f4988be7 | 4325 | else |
503d2be0 | 4326 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4327 | #line 4327 "configure" |
f4988be7 GM |
4328 | #include "confdefs.h" |
4329 | #include <sys/types.h> | |
4330 | #include <signal.h> | |
4331 | #ifdef signal | |
503d2be0 | 4332 | # undef signal |
f4988be7 GM |
4333 | #endif |
4334 | #ifdef __cplusplus | |
4335 | extern "C" void (*signal (int, void (*)(int)))(int); | |
4336 | #else | |
4337 | void (*signal ()) (); | |
4338 | #endif | |
4339 | ||
503d2be0 AS |
4340 | int |
4341 | main () | |
4342 | { | |
f4988be7 | 4343 | int i; |
503d2be0 AS |
4344 | ; |
4345 | return 0; | |
4346 | } | |
4347 | _ACEOF | |
4348 | rm -f conftest.$ac_objext | |
cc227489 | 4349 | if { (eval echo "$as_me:4349: \"$ac_compile\"") >&5 |
503d2be0 AS |
4350 | (eval $ac_compile) 2>&5 |
4351 | ac_status=$? | |
cc227489 | 4352 | echo "$as_me:4352: \$? = $ac_status" >&5 |
503d2be0 AS |
4353 | (exit $ac_status); } && |
4354 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4355 | { (eval echo "$as_me:4355: \"$ac_try\"") >&5 |
503d2be0 AS |
4356 | (eval $ac_try) 2>&5 |
4357 | ac_status=$? | |
cc227489 | 4358 | echo "$as_me:4358: \$? = $ac_status" >&5 |
503d2be0 | 4359 | (exit $ac_status); }; }; then |
f4988be7 GM |
4360 | ac_cv_type_signal=void |
4361 | else | |
503d2be0 AS |
4362 | echo "$as_me: failed program was:" >&5 |
4363 | cat conftest.$ac_ext >&5 | |
4364 | ac_cv_type_signal=int | |
f4988be7 | 4365 | fi |
503d2be0 | 4366 | rm -f conftest.$ac_objext conftest.$ac_ext |
f4988be7 | 4367 | fi |
cc227489 | 4368 | echo "$as_me:4368: result: $ac_cv_type_signal" >&5 |
503d2be0 | 4369 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
f4988be7 | 4370 | |
503d2be0 | 4371 | cat >>confdefs.h <<EOF |
f4988be7 | 4372 | #define RETSIGTYPE $ac_cv_type_signal |
ba4481b5 DL |
4373 | EOF |
4374 | ||
cc227489 | 4375 | echo "$as_me:4375: checking for speed_t" >&5 |
503d2be0 AS |
4376 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
4377 | if test "${emacs_cv_speed_t+set}" = set; then | |
4378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34ec9ebe | 4379 | else |
503d2be0 | 4380 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4381 | #line 4381 "configure" |
34ec9ebe GM |
4382 | #include "confdefs.h" |
4383 | #include <termios.h> | |
503d2be0 AS |
4384 | int |
4385 | main () | |
4386 | { | |
34ec9ebe | 4387 | speed_t x = 1; |
503d2be0 AS |
4388 | ; |
4389 | return 0; | |
4390 | } | |
4391 | _ACEOF | |
4392 | rm -f conftest.$ac_objext | |
cc227489 | 4393 | if { (eval echo "$as_me:4393: \"$ac_compile\"") >&5 |
503d2be0 AS |
4394 | (eval $ac_compile) 2>&5 |
4395 | ac_status=$? | |
cc227489 | 4396 | echo "$as_me:4396: \$? = $ac_status" >&5 |
503d2be0 AS |
4397 | (exit $ac_status); } && |
4398 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4399 | { (eval echo "$as_me:4399: \"$ac_try\"") >&5 |
503d2be0 AS |
4400 | (eval $ac_try) 2>&5 |
4401 | ac_status=$? | |
cc227489 | 4402 | echo "$as_me:4402: \$? = $ac_status" >&5 |
503d2be0 | 4403 | (exit $ac_status); }; }; then |
34ec9ebe GM |
4404 | emacs_cv_speed_t=yes |
4405 | else | |
503d2be0 AS |
4406 | echo "$as_me: failed program was:" >&5 |
4407 | cat conftest.$ac_ext >&5 | |
4408 | emacs_cv_speed_t=no | |
34ec9ebe | 4409 | fi |
503d2be0 | 4410 | rm -f conftest.$ac_objext conftest.$ac_ext |
34ec9ebe | 4411 | fi |
cc227489 | 4412 | echo "$as_me:4412: result: $emacs_cv_speed_t" >&5 |
503d2be0 | 4413 | echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
34ec9ebe | 4414 | if test $emacs_cv_speed_t = yes; then |
503d2be0 | 4415 | cat >>confdefs.h <<\EOF |
34ec9ebe GM |
4416 | #define HAVE_SPEED_T 1 |
4417 | EOF | |
4418 | ||
4419 | fi | |
4420 | ||
cc227489 | 4421 | echo "$as_me:4421: checking for struct timeval" >&5 |
503d2be0 AS |
4422 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
4423 | if test "${emacs_cv_struct_timeval+set}" = set; then | |
4424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4425 | else |
503d2be0 | 4426 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4427 | #line 4427 "configure" |
ba4481b5 DL |
4428 | #include "confdefs.h" |
4429 | #ifdef TIME_WITH_SYS_TIME | |
4430 | #include <sys/time.h> | |
4431 | #include <time.h> | |
4432 | #else | |
4433 | #ifdef HAVE_SYS_TIME_H | |
4434 | #include <sys/time.h> | |
4435 | #else | |
4436 | #include <time.h> | |
4437 | #endif | |
4438 | #endif | |
503d2be0 AS |
4439 | int |
4440 | main () | |
4441 | { | |
ba4481b5 | 4442 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
4443 | ; |
4444 | return 0; | |
4445 | } | |
4446 | _ACEOF | |
4447 | rm -f conftest.$ac_objext | |
cc227489 | 4448 | if { (eval echo "$as_me:4448: \"$ac_compile\"") >&5 |
503d2be0 AS |
4449 | (eval $ac_compile) 2>&5 |
4450 | ac_status=$? | |
cc227489 | 4451 | echo "$as_me:4451: \$? = $ac_status" >&5 |
503d2be0 AS |
4452 | (exit $ac_status); } && |
4453 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4454 | { (eval echo "$as_me:4454: \"$ac_try\"") >&5 |
503d2be0 AS |
4455 | (eval $ac_try) 2>&5 |
4456 | ac_status=$? | |
cc227489 | 4457 | echo "$as_me:4457: \$? = $ac_status" >&5 |
503d2be0 | 4458 | (exit $ac_status); }; }; then |
ba4481b5 DL |
4459 | emacs_cv_struct_timeval=yes |
4460 | else | |
503d2be0 AS |
4461 | echo "$as_me: failed program was:" >&5 |
4462 | cat conftest.$ac_ext >&5 | |
4463 | emacs_cv_struct_timeval=no | |
ba4481b5 | 4464 | fi |
503d2be0 | 4465 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 4466 | fi |
cc227489 | 4467 | echo "$as_me:4467: result: $emacs_cv_struct_timeval" >&5 |
503d2be0 | 4468 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
ba4481b5 DL |
4469 | HAVE_TIMEVAL=$emacs_cv_struct_timeval |
4470 | if test $emacs_cv_struct_timeval = yes; then | |
503d2be0 | 4471 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
4472 | #define HAVE_TIMEVAL 1 |
4473 | EOF | |
4474 | ||
4475 | fi | |
4476 | ||
cc227489 | 4477 | echo "$as_me:4477: checking for struct exception" >&5 |
503d2be0 AS |
4478 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
4479 | if test "${emacs_cv_struct_exception+set}" = set; then | |
4480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d42122a3 | 4481 | else |
503d2be0 | 4482 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4483 | #line 4483 "configure" |
d42122a3 DL |
4484 | #include "confdefs.h" |
4485 | #include <math.h> | |
503d2be0 AS |
4486 | int |
4487 | main () | |
4488 | { | |
d42122a3 | 4489 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
4490 | ; |
4491 | return 0; | |
4492 | } | |
4493 | _ACEOF | |
4494 | rm -f conftest.$ac_objext | |
cc227489 | 4495 | if { (eval echo "$as_me:4495: \"$ac_compile\"") >&5 |
503d2be0 AS |
4496 | (eval $ac_compile) 2>&5 |
4497 | ac_status=$? | |
cc227489 | 4498 | echo "$as_me:4498: \$? = $ac_status" >&5 |
503d2be0 AS |
4499 | (exit $ac_status); } && |
4500 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4501 | { (eval echo "$as_me:4501: \"$ac_try\"") >&5 |
503d2be0 AS |
4502 | (eval $ac_try) 2>&5 |
4503 | ac_status=$? | |
cc227489 | 4504 | echo "$as_me:4504: \$? = $ac_status" >&5 |
503d2be0 | 4505 | (exit $ac_status); }; }; then |
d42122a3 DL |
4506 | emacs_cv_struct_exception=yes |
4507 | else | |
503d2be0 AS |
4508 | echo "$as_me: failed program was:" >&5 |
4509 | cat conftest.$ac_ext >&5 | |
4510 | emacs_cv_struct_exception=no | |
d42122a3 | 4511 | fi |
503d2be0 | 4512 | rm -f conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 4513 | fi |
cc227489 | 4514 | echo "$as_me:4514: result: $emacs_cv_struct_exception" >&5 |
503d2be0 | 4515 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
d42122a3 DL |
4516 | HAVE_EXCEPTION=$emacs_cv_struct_exception |
4517 | if test $emacs_cv_struct_exception != yes; then | |
503d2be0 | 4518 | cat >>confdefs.h <<\EOF |
d42122a3 DL |
4519 | #define NO_MATHERR 1 |
4520 | EOF | |
4521 | ||
4522 | fi | |
4523 | ||
cc227489 | 4524 | echo "$as_me:4524: checking whether struct tm is in sys/time.h or time.h" >&5 |
503d2be0 AS |
4525 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
4526 | if test "${ac_cv_struct_tm+set}" = set; then | |
4527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4528 | else |
503d2be0 | 4529 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4530 | #line 4530 "configure" |
ba4481b5 DL |
4531 | #include "confdefs.h" |
4532 | #include <sys/types.h> | |
4533 | #include <time.h> | |
503d2be0 AS |
4534 | |
4535 | int | |
4536 | main () | |
4537 | { | |
ba4481b5 | 4538 | struct tm *tp; tp->tm_sec; |
503d2be0 AS |
4539 | ; |
4540 | return 0; | |
4541 | } | |
4542 | _ACEOF | |
4543 | rm -f conftest.$ac_objext | |
cc227489 | 4544 | if { (eval echo "$as_me:4544: \"$ac_compile\"") >&5 |
503d2be0 AS |
4545 | (eval $ac_compile) 2>&5 |
4546 | ac_status=$? | |
cc227489 | 4547 | echo "$as_me:4547: \$? = $ac_status" >&5 |
503d2be0 AS |
4548 | (exit $ac_status); } && |
4549 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4550 | { (eval echo "$as_me:4550: \"$ac_try\"") >&5 |
503d2be0 AS |
4551 | (eval $ac_try) 2>&5 |
4552 | ac_status=$? | |
cc227489 | 4553 | echo "$as_me:4553: \$? = $ac_status" >&5 |
503d2be0 | 4554 | (exit $ac_status); }; }; then |
ba4481b5 DL |
4555 | ac_cv_struct_tm=time.h |
4556 | else | |
503d2be0 AS |
4557 | echo "$as_me: failed program was:" >&5 |
4558 | cat conftest.$ac_ext >&5 | |
4559 | ac_cv_struct_tm=sys/time.h | |
ba4481b5 | 4560 | fi |
503d2be0 | 4561 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 4562 | fi |
cc227489 | 4563 | echo "$as_me:4563: result: $ac_cv_struct_tm" >&5 |
503d2be0 | 4564 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
ba4481b5 | 4565 | if test $ac_cv_struct_tm = sys/time.h; then |
503d2be0 AS |
4566 | |
4567 | cat >>confdefs.h <<\EOF | |
ba4481b5 DL |
4568 | #define TM_IN_SYS_TIME 1 |
4569 | EOF | |
4570 | ||
4571 | fi | |
4572 | ||
cc227489 | 4573 | echo "$as_me:4573: checking for struct tm.tm_zone" >&5 |
503d2be0 AS |
4574 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
4575 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
4576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4577 | else |
503d2be0 | 4578 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4579 | #line 4579 "configure" |
ba4481b5 DL |
4580 | #include "confdefs.h" |
4581 | #include <sys/types.h> | |
4582 | #include <$ac_cv_struct_tm> | |
503d2be0 AS |
4583 | |
4584 | int | |
4585 | main () | |
4586 | { | |
4587 | static struct tm ac_aggr; | |
4588 | if (ac_aggr.tm_zone) | |
4589 | return 0; | |
4590 | ; | |
4591 | return 0; | |
4592 | } | |
4593 | _ACEOF | |
4594 | rm -f conftest.$ac_objext | |
cc227489 | 4595 | if { (eval echo "$as_me:4595: \"$ac_compile\"") >&5 |
503d2be0 AS |
4596 | (eval $ac_compile) 2>&5 |
4597 | ac_status=$? | |
cc227489 | 4598 | echo "$as_me:4598: \$? = $ac_status" >&5 |
503d2be0 AS |
4599 | (exit $ac_status); } && |
4600 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4601 | { (eval echo "$as_me:4601: \"$ac_try\"") >&5 |
503d2be0 AS |
4602 | (eval $ac_try) 2>&5 |
4603 | ac_status=$? | |
cc227489 | 4604 | echo "$as_me:4604: \$? = $ac_status" >&5 |
503d2be0 AS |
4605 | (exit $ac_status); }; }; then |
4606 | ac_cv_member_struct_tm_tm_zone=yes | |
ba4481b5 | 4607 | else |
503d2be0 AS |
4608 | echo "$as_me: failed program was:" >&5 |
4609 | cat conftest.$ac_ext >&5 | |
4610 | ac_cv_member_struct_tm_tm_zone=no | |
ba4481b5 | 4611 | fi |
503d2be0 AS |
4612 | rm -f conftest.$ac_objext conftest.$ac_ext |
4613 | fi | |
cc227489 | 4614 | echo "$as_me:4614: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
503d2be0 AS |
4615 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
4616 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
4617 | ||
4618 | cat >>confdefs.h <<EOF | |
4619 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
4620 | EOF | |
4621 | ||
ba4481b5 DL |
4622 | fi |
4623 | ||
503d2be0 AS |
4624 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
4625 | ||
4626 | cat >>confdefs.h <<\EOF | |
ba4481b5 DL |
4627 | #define HAVE_TM_ZONE 1 |
4628 | EOF | |
4629 | ||
4630 | else | |
cc227489 | 4631 | echo "$as_me:4631: checking for tzname" >&5 |
503d2be0 AS |
4632 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
4633 | if test "${ac_cv_var_tzname+set}" = set; then | |
4634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4635 | else |
503d2be0 | 4636 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4637 | #line 4637 "configure" |
ba4481b5 DL |
4638 | #include "confdefs.h" |
4639 | #include <time.h> | |
4640 | #ifndef tzname /* For SGI. */ | |
4641 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
4642 | #endif | |
503d2be0 AS |
4643 | |
4644 | int | |
4645 | main () | |
4646 | { | |
ba4481b5 | 4647 | atoi(*tzname); |
503d2be0 AS |
4648 | ; |
4649 | return 0; | |
4650 | } | |
4651 | _ACEOF | |
4652 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 4653 | if { (eval echo "$as_me:4653: \"$ac_link\"") >&5 |
503d2be0 AS |
4654 | (eval $ac_link) 2>&5 |
4655 | ac_status=$? | |
cc227489 | 4656 | echo "$as_me:4656: \$? = $ac_status" >&5 |
503d2be0 AS |
4657 | (exit $ac_status); } && |
4658 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 4659 | { (eval echo "$as_me:4659: \"$ac_try\"") >&5 |
503d2be0 AS |
4660 | (eval $ac_try) 2>&5 |
4661 | ac_status=$? | |
cc227489 | 4662 | echo "$as_me:4662: \$? = $ac_status" >&5 |
503d2be0 | 4663 | (exit $ac_status); }; }; then |
ba4481b5 DL |
4664 | ac_cv_var_tzname=yes |
4665 | else | |
503d2be0 AS |
4666 | echo "$as_me: failed program was:" >&5 |
4667 | cat conftest.$ac_ext >&5 | |
4668 | ac_cv_var_tzname=no | |
ba4481b5 | 4669 | fi |
503d2be0 | 4670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 4671 | fi |
cc227489 | 4672 | echo "$as_me:4672: result: $ac_cv_var_tzname" >&5 |
503d2be0 | 4673 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
ba4481b5 | 4674 | if test $ac_cv_var_tzname = yes; then |
503d2be0 AS |
4675 | |
4676 | cat >>confdefs.h <<\EOF | |
ba4481b5 DL |
4677 | #define HAVE_TZNAME 1 |
4678 | EOF | |
4679 | ||
4680 | fi | |
4681 | fi | |
4682 | ||
cc227489 | 4683 | echo "$as_me:4683: checking for tm_gmtoff in struct tm" >&5 |
503d2be0 AS |
4684 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 |
4685 | if test "${emacs_cv_tm_gmtoff+set}" = set; then | |
4686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1113b624 | 4687 | else |
503d2be0 | 4688 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4689 | #line 4689 "configure" |
1113b624 PE |
4690 | #include "confdefs.h" |
4691 | #include <time.h> | |
503d2be0 AS |
4692 | int |
4693 | main () | |
4694 | { | |
1113b624 | 4695 | struct tm t; t.tm_gmtoff = 0 |
503d2be0 AS |
4696 | ; |
4697 | return 0; | |
4698 | } | |
4699 | _ACEOF | |
4700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 4701 | if { (eval echo "$as_me:4701: \"$ac_link\"") >&5 |
503d2be0 AS |
4702 | (eval $ac_link) 2>&5 |
4703 | ac_status=$? | |
cc227489 | 4704 | echo "$as_me:4704: \$? = $ac_status" >&5 |
503d2be0 AS |
4705 | (exit $ac_status); } && |
4706 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 4707 | { (eval echo "$as_me:4707: \"$ac_try\"") >&5 |
503d2be0 AS |
4708 | (eval $ac_try) 2>&5 |
4709 | ac_status=$? | |
cc227489 | 4710 | echo "$as_me:4710: \$? = $ac_status" >&5 |
503d2be0 | 4711 | (exit $ac_status); }; }; then |
1113b624 PE |
4712 | emacs_cv_tm_gmtoff=yes |
4713 | else | |
503d2be0 AS |
4714 | echo "$as_me: failed program was:" >&5 |
4715 | cat conftest.$ac_ext >&5 | |
4716 | emacs_cv_tm_gmtoff=no | |
1113b624 | 4717 | fi |
503d2be0 | 4718 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
1113b624 | 4719 | fi |
cc227489 | 4720 | echo "$as_me:4720: result: $emacs_cv_tm_gmtoff" >&5 |
503d2be0 | 4721 | echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6 |
1113b624 | 4722 | if test $emacs_cv_tm_gmtoff = yes; then |
503d2be0 | 4723 | cat >>confdefs.h <<\EOF |
1113b624 PE |
4724 | #define HAVE_TM_GMTOFF 1 |
4725 | EOF | |
4726 | ||
4727 | fi | |
ba4481b5 | 4728 | |
cc227489 | 4729 | echo "$as_me:4729: checking for $CC option to accept ANSI C" >&5 |
503d2be0 AS |
4730 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
4731 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 DL |
4733 | else |
4734 | ac_cv_prog_cc_stdc=no | |
503d2be0 AS |
4735 | ac_save_CC=$CC |
4736 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 4737 | #line 4737 "configure" |
7397acc4 DL |
4738 | #include "confdefs.h" |
4739 | #include <stdarg.h> | |
4740 | #include <stdio.h> | |
4741 | #include <sys/types.h> | |
4742 | #include <sys/stat.h> | |
4743 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4744 | struct buf { int x; }; | |
4745 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4746 | static char *e (p, i) | |
4747 | char **p; | |
4748 | int i; | |
4749 | { | |
4750 | return p[i]; | |
4751 | } | |
4752 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4753 | { | |
4754 | char *s; | |
4755 | va_list v; | |
4756 | va_start (v,p); | |
4757 | s = g (p, va_arg (v,int)); | |
4758 | va_end (v); | |
4759 | return s; | |
4760 | } | |
4761 | int test (int i, double x); | |
4762 | struct s1 {int (*f) (int a);}; | |
4763 | struct s2 {int (*f) (double a);}; | |
4764 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4765 | int argc; | |
4766 | char **argv; | |
503d2be0 AS |
4767 | int |
4768 | main () | |
4769 | { | |
7397acc4 | 4770 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
503d2be0 AS |
4771 | ; |
4772 | return 0; | |
4773 | } | |
4774 | _ACEOF | |
4775 | # Don't try gcc -ansi; that turns off useful extensions and | |
4776 | # breaks some systems' header files. | |
4777 | # AIX -qlanglvl=ansi | |
4778 | # Ultrix and OSF/1 -std1 | |
4779 | # HP-UX 10.20 and later -Ae | |
4780 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4781 | # SVR4 -Xc -D__EXTENSIONS__ | |
4782 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4783 | do | |
4784 | CC="$ac_save_CC $ac_arg" | |
4785 | rm -f conftest.$ac_objext | |
cc227489 | 4786 | if { (eval echo "$as_me:4786: \"$ac_compile\"") >&5 |
503d2be0 AS |
4787 | (eval $ac_compile) 2>&5 |
4788 | ac_status=$? | |
cc227489 | 4789 | echo "$as_me:4789: \$? = $ac_status" >&5 |
503d2be0 AS |
4790 | (exit $ac_status); } && |
4791 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4792 | { (eval echo "$as_me:4792: \"$ac_try\"") >&5 |
503d2be0 AS |
4793 | (eval $ac_try) 2>&5 |
4794 | ac_status=$? | |
cc227489 | 4795 | echo "$as_me:4795: \$? = $ac_status" >&5 |
503d2be0 AS |
4796 | (exit $ac_status); }; }; then |
4797 | ac_cv_prog_cc_stdc=$ac_arg | |
4798 | break | |
4799 | else | |
4800 | echo "$as_me: failed program was:" >&5 | |
4801 | cat conftest.$ac_ext >&5 | |
4802 | fi | |
4803 | rm -f conftest.$ac_objext | |
7397acc4 | 4804 | done |
503d2be0 AS |
4805 | rm -f conftest.$ac_ext conftest.$ac_objext |
4806 | CC=$ac_save_CC | |
7397acc4 DL |
4807 | |
4808 | fi | |
4809 | ||
4810 | case "x$ac_cv_prog_cc_stdc" in | |
4811 | x|xno) | |
cc227489 | 4812 | echo "$as_me:4812: result: none needed" >&5 |
503d2be0 | 4813 | echo "${ECHO_T}none needed" >&6 ;; |
7397acc4 | 4814 | *) |
cc227489 | 4815 | echo "$as_me:4815: result: $ac_cv_prog_cc_stdc" >&5 |
503d2be0 | 4816 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
7397acc4 DL |
4817 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
4818 | esac | |
4819 | ||
cc227489 | 4820 | echo "$as_me:4820: checking for function prototypes" >&5 |
503d2be0 | 4821 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
7397acc4 | 4822 | if test "$ac_cv_prog_cc_stdc" != no; then |
cc227489 | 4823 | echo "$as_me:4823: result: yes" >&5 |
503d2be0 AS |
4824 | echo "${ECHO_T}yes" >&6 |
4825 | ||
4826 | cat >>confdefs.h <<\EOF | |
7397acc4 DL |
4827 | #define PROTOTYPES 1 |
4828 | EOF | |
4829 | ||
4830 | else | |
cc227489 | 4831 | echo "$as_me:4831: result: no" >&5 |
503d2be0 | 4832 | echo "${ECHO_T}no" >&6 |
7397acc4 DL |
4833 | fi |
4834 | ||
cc227489 | 4835 | echo "$as_me:4835: checking for working volatile" >&5 |
503d2be0 AS |
4836 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
4837 | if test "${ac_cv_c_volatile+set}" = set; then | |
4838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 4839 | else |
503d2be0 | 4840 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4841 | #line 4841 "configure" |
7397acc4 DL |
4842 | #include "confdefs.h" |
4843 | ||
503d2be0 AS |
4844 | int |
4845 | main () | |
4846 | { | |
7397acc4 DL |
4847 | |
4848 | volatile int x; | |
4849 | int * volatile y; | |
503d2be0 AS |
4850 | ; |
4851 | return 0; | |
4852 | } | |
4853 | _ACEOF | |
4854 | rm -f conftest.$ac_objext | |
cc227489 | 4855 | if { (eval echo "$as_me:4855: \"$ac_compile\"") >&5 |
503d2be0 AS |
4856 | (eval $ac_compile) 2>&5 |
4857 | ac_status=$? | |
cc227489 | 4858 | echo "$as_me:4858: \$? = $ac_status" >&5 |
503d2be0 AS |
4859 | (exit $ac_status); } && |
4860 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4861 | { (eval echo "$as_me:4861: \"$ac_try\"") >&5 |
503d2be0 AS |
4862 | (eval $ac_try) 2>&5 |
4863 | ac_status=$? | |
cc227489 | 4864 | echo "$as_me:4864: \$? = $ac_status" >&5 |
503d2be0 | 4865 | (exit $ac_status); }; }; then |
7397acc4 DL |
4866 | ac_cv_c_volatile=yes |
4867 | else | |
503d2be0 AS |
4868 | echo "$as_me: failed program was:" >&5 |
4869 | cat conftest.$ac_ext >&5 | |
4870 | ac_cv_c_volatile=no | |
7397acc4 | 4871 | fi |
503d2be0 | 4872 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 4873 | fi |
cc227489 | 4874 | echo "$as_me:4874: result: $ac_cv_c_volatile" >&5 |
503d2be0 | 4875 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
7397acc4 | 4876 | if test $ac_cv_c_volatile = no; then |
503d2be0 AS |
4877 | |
4878 | cat >>confdefs.h <<\EOF | |
4879 | #define volatile | |
7397acc4 DL |
4880 | EOF |
4881 | ||
4882 | fi | |
4883 | ||
cc227489 | 4884 | echo "$as_me:4884: checking for an ANSI C-conforming const" >&5 |
503d2be0 AS |
4885 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
4886 | if test "${ac_cv_c_const+set}" = set; then | |
4887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4888 | else |
503d2be0 | 4889 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4890 | #line 4890 "configure" |
ba4481b5 DL |
4891 | #include "confdefs.h" |
4892 | ||
503d2be0 AS |
4893 | int |
4894 | main () | |
4895 | { | |
4896 | /* FIXME: Include the comments suggested by Paul. */ | |
4897 | #ifndef __cplusplus | |
4898 | /* Ultrix mips cc rejects this. */ | |
4899 | typedef int charset[2]; | |
4900 | const charset x; | |
4901 | /* SunOS 4.1.1 cc rejects this. */ | |
4902 | char const *const *ccp; | |
4903 | char **p; | |
4904 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4905 | struct point {int x, y;}; | |
4906 | static struct point const zero = {0,0}; | |
4907 | /* AIX XL C 1.02.0.0 rejects this. | |
4908 | It does not let you subtract one const X* pointer from another in | |
4909 | an arm of an if-expression whose if-part is not a constant | |
4910 | expression */ | |
4911 | const char *g = "string"; | |
4912 | ccp = &g + (g ? g-g : 0); | |
4913 | /* HPUX 7.0 cc rejects these. */ | |
4914 | ++ccp; | |
4915 | p = (char**) ccp; | |
4916 | ccp = (char const *const *) p; | |
4917 | { /* SCO 3.2v4 cc rejects this. */ | |
4918 | char *t; | |
4919 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4920 | ||
4921 | *t++ = 0; | |
4922 | } | |
4923 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4924 | int x[] = {25, 17}; | |
4925 | const int *foo = &x[0]; | |
4926 | ++foo; | |
4927 | } | |
4928 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4929 | typedef const int *iptr; | |
4930 | iptr p = 0; | |
4931 | ++p; | |
4932 | } | |
4933 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4934 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4935 | struct s { int j; const int *ap[3]; }; | |
4936 | struct s *b; b->j = 5; | |
4937 | } | |
4938 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4939 | const int foo = 10; | |
4940 | } | |
4941 | #endif | |
ba4481b5 | 4942 | |
503d2be0 AS |
4943 | ; |
4944 | return 0; | |
ba4481b5 | 4945 | } |
503d2be0 AS |
4946 | _ACEOF |
4947 | rm -f conftest.$ac_objext | |
cc227489 | 4948 | if { (eval echo "$as_me:4948: \"$ac_compile\"") >&5 |
503d2be0 AS |
4949 | (eval $ac_compile) 2>&5 |
4950 | ac_status=$? | |
cc227489 | 4951 | echo "$as_me:4951: \$? = $ac_status" >&5 |
503d2be0 AS |
4952 | (exit $ac_status); } && |
4953 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 4954 | { (eval echo "$as_me:4954: \"$ac_try\"") >&5 |
503d2be0 AS |
4955 | (eval $ac_try) 2>&5 |
4956 | ac_status=$? | |
cc227489 | 4957 | echo "$as_me:4957: \$? = $ac_status" >&5 |
503d2be0 | 4958 | (exit $ac_status); }; }; then |
ba4481b5 DL |
4959 | ac_cv_c_const=yes |
4960 | else | |
503d2be0 AS |
4961 | echo "$as_me: failed program was:" >&5 |
4962 | cat conftest.$ac_ext >&5 | |
4963 | ac_cv_c_const=no | |
ba4481b5 | 4964 | fi |
503d2be0 | 4965 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 4966 | fi |
cc227489 | 4967 | echo "$as_me:4967: result: $ac_cv_c_const" >&5 |
503d2be0 | 4968 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
ba4481b5 | 4969 | if test $ac_cv_c_const = no; then |
503d2be0 AS |
4970 | |
4971 | cat >>confdefs.h <<\EOF | |
4972 | #define const | |
ba4481b5 DL |
4973 | EOF |
4974 | ||
4975 | fi | |
4976 | ||
cc227489 | 4977 | echo "$as_me:4977: checking for void * support" >&5 |
503d2be0 AS |
4978 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
4979 | if test "${emacs_cv_void_star+set}" = set; then | |
4980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 4981 | else |
503d2be0 | 4982 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 4983 | #line 4983 "configure" |
7397acc4 DL |
4984 | #include "confdefs.h" |
4985 | ||
503d2be0 AS |
4986 | int |
4987 | main () | |
4988 | { | |
7397acc4 | 4989 | void * foo; |
503d2be0 AS |
4990 | ; |
4991 | return 0; | |
4992 | } | |
4993 | _ACEOF | |
4994 | rm -f conftest.$ac_objext | |
cc227489 | 4995 | if { (eval echo "$as_me:4995: \"$ac_compile\"") >&5 |
503d2be0 AS |
4996 | (eval $ac_compile) 2>&5 |
4997 | ac_status=$? | |
cc227489 | 4998 | echo "$as_me:4998: \$? = $ac_status" >&5 |
503d2be0 AS |
4999 | (exit $ac_status); } && |
5000 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 5001 | { (eval echo "$as_me:5001: \"$ac_try\"") >&5 |
503d2be0 AS |
5002 | (eval $ac_try) 2>&5 |
5003 | ac_status=$? | |
cc227489 | 5004 | echo "$as_me:5004: \$? = $ac_status" >&5 |
503d2be0 | 5005 | (exit $ac_status); }; }; then |
7397acc4 DL |
5006 | emacs_cv_void_star=yes |
5007 | else | |
503d2be0 AS |
5008 | echo "$as_me: failed program was:" >&5 |
5009 | cat conftest.$ac_ext >&5 | |
5010 | emacs_cv_void_star=no | |
7397acc4 | 5011 | fi |
503d2be0 | 5012 | rm -f conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 5013 | fi |
cc227489 | 5014 | echo "$as_me:5014: result: $emacs_cv_void_star" >&5 |
503d2be0 | 5015 | echo "${ECHO_T}$emacs_cv_void_star" >&6 |
7397acc4 | 5016 | if test $emacs_cv_void_star = yes; then |
503d2be0 | 5017 | cat >>confdefs.h <<\EOF |
7397acc4 DL |
5018 | #define POINTER_TYPE void |
5019 | EOF | |
5020 | ||
5021 | else | |
503d2be0 | 5022 | cat >>confdefs.h <<\EOF |
7397acc4 DL |
5023 | #define POINTER_TYPE char |
5024 | EOF | |
5025 | ||
5026 | fi | |
ba4481b5 | 5027 | |
cc227489 | 5028 | echo "$as_me:5028: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
503d2be0 AS |
5029 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
5030 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
5031 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
5032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5033 | else |
503d2be0 | 5034 | cat >conftest.make <<\EOF |
ba4481b5 DL |
5035 | all: |
5036 | @echo 'ac_maketemp="${MAKE}"' | |
5037 | EOF | |
5038 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
503d2be0 | 5039 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
ba4481b5 DL |
5040 | if test -n "$ac_maketemp"; then |
5041 | eval ac_cv_prog_make_${ac_make}_set=yes | |
5042 | else | |
5043 | eval ac_cv_prog_make_${ac_make}_set=no | |
5044 | fi | |
503d2be0 | 5045 | rm -f conftest.make |
ba4481b5 DL |
5046 | fi |
5047 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
cc227489 | 5048 | echo "$as_me:5048: result: yes" >&5 |
503d2be0 | 5049 | echo "${ECHO_T}yes" >&6 |
ba4481b5 DL |
5050 | SET_MAKE= |
5051 | else | |
cc227489 | 5052 | echo "$as_me:5052: result: no" >&5 |
503d2be0 | 5053 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
5054 | SET_MAKE="MAKE=${MAKE-make}" |
5055 | fi | |
5056 | ||
cc227489 | 5057 | echo "$as_me:5057: checking for long file names" >&5 |
503d2be0 AS |
5058 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
5059 | if test "${ac_cv_sys_long_file_names+set}" = set; then | |
5060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
5061 | else |
5062 | ac_cv_sys_long_file_names=yes | |
5063 | # Test for long file names in all the places we know might matter: | |
5064 | # . the current directory, where building will happen | |
5065 | # $prefix/lib where we will be installing things | |
5066 | # $exec_prefix/lib likewise | |
5067 | # eval it to expand exec_prefix. | |
5068 | # $TMPDIR if set, where it might want to write temporary files | |
5069 | # if $TMPDIR is not set: | |
5070 | # /tmp where it might want to write temporary files | |
5071 | # /var/tmp likewise | |
5072 | # /usr/tmp likewise | |
5073 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
503d2be0 | 5074 | ac_tmpdirs=$TMPDIR |
ba4481b5 DL |
5075 | else |
5076 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
5077 | fi | |
5078 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
5079 | test -d $ac_dir || continue | |
5080 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
503d2be0 AS |
5081 | ac_xdir=$ac_dir/cf$$ |
5082 | (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
5083 | ac_tf1=$ac_xdir/conftest9012345 | |
5084 | ac_tf2=$ac_xdir/conftest9012346 | |
5085 | (echo 1 >$ac_tf1) 2>/dev/null | |
5086 | (echo 2 >$ac_tf2) 2>/dev/null | |
5087 | ac_val=`cat $ac_tf1 2>/dev/null` | |
5088 | if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
ba4481b5 | 5089 | ac_cv_sys_long_file_names=no |
503d2be0 | 5090 | rm -rf $ac_xdir 2>/dev/null |
ba4481b5 DL |
5091 | break |
5092 | fi | |
503d2be0 | 5093 | rm -rf $ac_xdir 2>/dev/null |
ba4481b5 DL |
5094 | done |
5095 | fi | |
cc227489 | 5096 | echo "$as_me:5096: result: $ac_cv_sys_long_file_names" >&5 |
503d2be0 | 5097 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
ba4481b5 | 5098 | if test $ac_cv_sys_long_file_names = yes; then |
503d2be0 AS |
5099 | |
5100 | cat >>confdefs.h <<\EOF | |
ba4481b5 DL |
5101 | #define HAVE_LONG_FILE_NAMES 1 |
5102 | EOF | |
5103 | ||
5104 | fi | |
5105 | ||
ba4481b5 DL |
5106 | #### Choose a window system. |
5107 | ||
cc227489 | 5108 | echo "$as_me:5108: checking for X" >&5 |
503d2be0 | 5109 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
ba4481b5 DL |
5110 | |
5111 | # Check whether --with-x or --without-x was given. | |
5112 | if test "${with_x+set}" = set; then | |
5113 | withval="$with_x" | |
ba4481b5 | 5114 | |
503d2be0 | 5115 | fi; |
ba4481b5 DL |
5116 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
5117 | if test "x$with_x" = xno; then | |
5118 | # The user explicitly disabled X. | |
5119 | have_x=disabled | |
5120 | else | |
5121 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
5122 | # Both variables are already set. | |
5123 | have_x=yes | |
5124 | else | |
503d2be0 AS |
5125 | if test "${ac_cv_have_x+set}" = set; then |
5126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
5127 | else |
5128 | # One or both of the vars are not set, and there is no cached value. | |
503d2be0 AS |
5129 | ac_x_includes=no ac_x_libraries=no |
5130 | rm -fr conftest.dir | |
5131 | if mkdir conftest.dir; then | |
5132 | cd conftest.dir | |
ba4481b5 | 5133 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
503d2be0 | 5134 | cat >Imakefile <<'EOF' |
ba4481b5 DL |
5135 | acfindx: |
5136 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
5137 | EOF | |
5138 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
5139 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5140 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
5141 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
5142 | for ac_extension in a so sl; do | |
5143 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
503d2be0 | 5144 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ba4481b5 DL |
5145 | ac_im_usrlibdir=$ac_im_libdir; break |
5146 | fi | |
5147 | done | |
5148 | # Screen out bogus values from the imake configuration. They are | |
5149 | # bogus both because they are the default anyway, and because | |
5150 | # using them would break gcc on systems where it needs fixed includes. | |
503d2be0 | 5151 | case $ac_im_incroot in |
ba4481b5 | 5152 | /usr/include) ;; |
503d2be0 | 5153 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
ba4481b5 | 5154 | esac |
503d2be0 | 5155 | case $ac_im_usrlibdir in |
ba4481b5 | 5156 | /usr/lib | /lib) ;; |
503d2be0 | 5157 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
ba4481b5 DL |
5158 | esac |
5159 | fi | |
5160 | cd .. | |
503d2be0 | 5161 | rm -fr conftest.dir |
ba4481b5 DL |
5162 | fi |
5163 | ||
503d2be0 AS |
5164 | # Standard set of common directories for X headers. |
5165 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
5166 | ac_x_header_dirs=' | |
5167 | /usr/X11/include | |
5168 | /usr/X11R6/include | |
5169 | /usr/X11R5/include | |
5170 | /usr/X11R4/include | |
5171 | ||
5172 | /usr/include/X11 | |
5173 | /usr/include/X11R6 | |
5174 | /usr/include/X11R5 | |
5175 | /usr/include/X11R4 | |
5176 | ||
5177 | /usr/local/X11/include | |
5178 | /usr/local/X11R6/include | |
5179 | /usr/local/X11R5/include | |
5180 | /usr/local/X11R4/include | |
5181 | ||
5182 | /usr/local/include/X11 | |
5183 | /usr/local/include/X11R6 | |
5184 | /usr/local/include/X11R5 | |
5185 | /usr/local/include/X11R4 | |
5186 | ||
5187 | /usr/X386/include | |
5188 | /usr/x386/include | |
5189 | /usr/XFree86/include/X11 | |
5190 | ||
5191 | /usr/include | |
5192 | /usr/local/include | |
5193 | /usr/unsupported/include | |
5194 | /usr/athena/include | |
5195 | /usr/local/x11r5/include | |
5196 | /usr/lpp/Xamples/include | |
5197 | ||
5198 | /usr/openwin/include | |
5199 | /usr/openwin/share/include' | |
5200 | ||
5201 | if test "$ac_x_includes" = no; then | |
5202 | # Guess where to find include files, by looking for Intrinsic.h. | |
ba4481b5 | 5203 | # First, try using that file with no special directory specified. |
503d2be0 | 5204 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 5205 | #line 5205 "configure" |
ba4481b5 | 5206 | #include "confdefs.h" |
503d2be0 AS |
5207 | #include <X11/Intrinsic.h> |
5208 | _ACEOF | |
cc227489 | 5209 | if { (eval echo "$as_me:5209: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
5210 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5211 | ac_status=$? | |
5212 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5213 | rm -f conftest.er1 | |
5214 | cat conftest.err >&5 | |
cc227489 | 5215 | echo "$as_me:5215: \$? = $ac_status" >&5 |
503d2be0 AS |
5216 | (exit $ac_status); } >/dev/null; then |
5217 | if test -s conftest.err; then | |
5218 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5219 | else | |
5220 | ac_cpp_err= | |
5221 | fi | |
5222 | else | |
5223 | ac_cpp_err=yes | |
5224 | fi | |
5225 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
5226 | # We can compile using X headers with no special include directory. |
5227 | ac_x_includes= | |
5228 | else | |
503d2be0 | 5229 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 5230 | cat conftest.$ac_ext >&5 |
503d2be0 AS |
5231 | for ac_dir in $ac_x_header_dirs; do |
5232 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
5233 | ac_x_includes=$ac_dir | |
5234 | break | |
5235 | fi | |
5236 | done | |
ba4481b5 | 5237 | fi |
503d2be0 AS |
5238 | rm -f conftest.err conftest.$ac_ext |
5239 | fi # $ac_x_includes = no | |
ba4481b5 | 5240 | |
503d2be0 | 5241 | if test "$ac_x_libraries" = no; then |
ba4481b5 | 5242 | # Check for the libraries. |
ba4481b5 DL |
5243 | # See if we find them without any special options. |
5244 | # Don't add to $LIBS permanently. | |
503d2be0 AS |
5245 | ac_save_LIBS=$LIBS |
5246 | LIBS="-lXt $LIBS" | |
5247 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 5248 | #line 5248 "configure" |
ba4481b5 | 5249 | #include "confdefs.h" |
503d2be0 AS |
5250 | #include <X11/Intrinsic.h> |
5251 | int | |
5252 | main () | |
5253 | { | |
5254 | XtMalloc (0) | |
5255 | ; | |
5256 | return 0; | |
5257 | } | |
5258 | _ACEOF | |
5259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 5260 | if { (eval echo "$as_me:5260: \"$ac_link\"") >&5 |
503d2be0 AS |
5261 | (eval $ac_link) 2>&5 |
5262 | ac_status=$? | |
cc227489 | 5263 | echo "$as_me:5263: \$? = $ac_status" >&5 |
503d2be0 AS |
5264 | (exit $ac_status); } && |
5265 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 5266 | { (eval echo "$as_me:5266: \"$ac_try\"") >&5 |
503d2be0 AS |
5267 | (eval $ac_try) 2>&5 |
5268 | ac_status=$? | |
cc227489 | 5269 | echo "$as_me:5269: \$? = $ac_status" >&5 |
503d2be0 AS |
5270 | (exit $ac_status); }; }; then |
5271 | LIBS=$ac_save_LIBS | |
ba4481b5 DL |
5272 | # We can link X programs with no special library path. |
5273 | ac_x_libraries= | |
5274 | else | |
503d2be0 AS |
5275 | echo "$as_me: failed program was:" >&5 |
5276 | cat conftest.$ac_ext >&5 | |
5277 | LIBS=$ac_save_LIBS | |
5278 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
ba4481b5 | 5279 | do |
503d2be0 | 5280 | # Don't even attempt the hair of trying to link an X program! |
ba4481b5 | 5281 | for ac_extension in a so sl; do |
503d2be0 | 5282 | if test -r $ac_dir/libXt.$ac_extension; then |
ba4481b5 DL |
5283 | ac_x_libraries=$ac_dir |
5284 | break 2 | |
5285 | fi | |
5286 | done | |
5287 | done | |
5288 | fi | |
503d2be0 AS |
5289 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5290 | fi # $ac_x_libraries = no | |
ba4481b5 | 5291 | |
503d2be0 | 5292 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
ba4481b5 DL |
5293 | # Didn't find X anywhere. Cache the known absence of X. |
5294 | ac_cv_have_x="have_x=no" | |
5295 | else | |
5296 | # Record where we found X for the cache. | |
5297 | ac_cv_have_x="have_x=yes \ | |
5298 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
5299 | fi | |
5300 | fi | |
503d2be0 | 5301 | |
ba4481b5 DL |
5302 | fi |
5303 | eval "$ac_cv_have_x" | |
5304 | fi # $with_x != no | |
5305 | ||
5306 | if test "$have_x" != yes; then | |
cc227489 | 5307 | echo "$as_me:5307: result: $have_x" >&5 |
503d2be0 | 5308 | echo "${ECHO_T}$have_x" >&6 |
ba4481b5 DL |
5309 | no_x=yes |
5310 | else | |
5311 | # If each of the values was on the command line, it overrides each guess. | |
5312 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
5313 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
5314 | # Update the cache value to reflect the command line values. | |
5315 | ac_cv_have_x="have_x=yes \ | |
5316 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
cc227489 | 5317 | echo "$as_me:5317: result: libraries $x_libraries, headers $x_includes" >&5 |
503d2be0 | 5318 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
ba4481b5 DL |
5319 | fi |
5320 | ||
5321 | if test "$no_x" = yes; then | |
5322 | window_system=none | |
5323 | else | |
5324 | window_system=x11 | |
5325 | fi | |
5326 | ||
5327 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
5328 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
5329 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
5330 | x_default_search_path="" | |
5331 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
f5215ba5 GM |
5332 | x_search_path="\ |
5333 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
5334 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
5335 | ${x_library}/X11/%T/%N%C%S:\ | |
5336 | ${x_library}/X11/%L/%T/%N%S:\ | |
5337 | ${x_library}/X11/%l/%T/%N%S:\ | |
5338 | ${x_library}/X11/%T/%N%S" | |
ba4481b5 DL |
5339 | if test x"${x_default_search_path}" = x; then |
5340 | x_default_search_path=${x_search_path} | |
5341 | else | |
5342 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
5343 | fi | |
5344 | done | |
5345 | fi | |
5346 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
5347 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
5348 | fi | |
5349 | ||
5350 | if test x"${x_includes}" = x; then | |
5351 | bitmapdir=/usr/include/X11/bitmaps | |
5352 | else | |
5353 | # accumulate include directories that have X11 bitmap subdirectories | |
5354 | bmd_acc="dummyval" | |
5355 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
5356 | if test -d "${bmd}/X11/bitmaps"; then | |
5357 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
946173ad DL |
5358 | fi |
5359 | if test -d "${bmd}/bitmaps"; then | |
ba4481b5 DL |
5360 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
5361 | fi | |
5362 | done | |
5363 | if test ${bmd_acc} != "dummyval"; then | |
5364 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
5365 | fi | |
5366 | fi | |
5367 | ||
5368 | case "${window_system}" in | |
5369 | x11 ) | |
5370 | HAVE_X_WINDOWS=yes | |
5371 | HAVE_X11=yes | |
5372 | case "${with_x_toolkit}" in | |
5373 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
5374 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
5375 | no ) USE_X_TOOLKIT=none ;; | |
5376 | * ) USE_X_TOOLKIT=maybe ;; | |
5377 | esac | |
5378 | ;; | |
5379 | none ) | |
5380 | HAVE_X_WINDOWS=no | |
5381 | HAVE_X11=no | |
5382 | USE_X_TOOLKIT=none | |
5383 | ;; | |
5384 | esac | |
5385 | ||
5386 | ### If we're using X11, we should use the X menu package. | |
5387 | HAVE_MENUS=no | |
5388 | case ${HAVE_X11} in | |
5389 | yes ) HAVE_MENUS=yes ;; | |
5390 | esac | |
503d2be0 | 5391 | |
ba4481b5 DL |
5392 | if test "${opsys}" = "hpux9"; then |
5393 | case "${x_libraries}" in | |
5394 | *X11R4* ) | |
5395 | opsysfile="s/hpux9-x11r4.h" | |
5396 | ;; | |
5397 | esac | |
5398 | fi | |
5399 | ||
5400 | if test "${opsys}" = "hpux9shr"; then | |
5401 | case "${x_libraries}" in | |
5402 | *X11R4* ) | |
5403 | opsysfile="s/hpux9shxr4.h" | |
5404 | ;; | |
5405 | esac | |
5406 | fi | |
5407 | ||
ba4481b5 DL |
5408 | ### Compute the unexec source name from the object name. |
5409 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
5410 | ||
5411 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
5412 | # Assume not, until told otherwise. | |
5413 | GNU_MALLOC=yes | |
5414 | doug_lea_malloc=yes | |
cc227489 | 5415 | echo "$as_me:5415: checking for malloc_get_state" >&5 |
503d2be0 AS |
5416 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
5417 | if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5419 | else |
503d2be0 | 5420 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 5421 | #line 5421 "configure" |
ba4481b5 DL |
5422 | #include "confdefs.h" |
5423 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 5424 | which can conflict with char malloc_get_state (); below. */ |
ba4481b5 DL |
5425 | #include <assert.h> |
5426 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
5427 | #ifdef __cplusplus |
5428 | extern "C" | |
5429 | #endif | |
ba4481b5 | 5430 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
5431 | builtin and then its argument prototype would still apply. */ |
5432 | char malloc_get_state (); | |
5433 | char (*f) (); | |
ba4481b5 | 5434 | |
503d2be0 AS |
5435 | int |
5436 | main () | |
5437 | { | |
ba4481b5 DL |
5438 | /* The GNU C library defines this for functions which it implements |
5439 | to always fail with ENOSYS. Some functions are actually named | |
5440 | something starting with __ and the normal name is an alias. */ | |
5441 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
5442 | choke me | |
5443 | #else | |
503d2be0 | 5444 | f = malloc_get_state; |
ba4481b5 DL |
5445 | #endif |
5446 | ||
503d2be0 AS |
5447 | ; |
5448 | return 0; | |
5449 | } | |
5450 | _ACEOF | |
5451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 5452 | if { (eval echo "$as_me:5452: \"$ac_link\"") >&5 |
503d2be0 AS |
5453 | (eval $ac_link) 2>&5 |
5454 | ac_status=$? | |
cc227489 | 5455 | echo "$as_me:5455: \$? = $ac_status" >&5 |
503d2be0 AS |
5456 | (exit $ac_status); } && |
5457 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 5458 | { (eval echo "$as_me:5458: \"$ac_try\"") >&5 |
503d2be0 AS |
5459 | (eval $ac_try) 2>&5 |
5460 | ac_status=$? | |
cc227489 | 5461 | echo "$as_me:5461: \$? = $ac_status" >&5 |
503d2be0 AS |
5462 | (exit $ac_status); }; }; then |
5463 | ac_cv_func_malloc_get_state=yes | |
5464 | else | |
5465 | echo "$as_me: failed program was:" >&5 | |
5466 | cat conftest.$ac_ext >&5 | |
5467 | ac_cv_func_malloc_get_state=no | |
5468 | fi | |
5469 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5470 | fi | |
cc227489 | 5471 | echo "$as_me:5471: result: $ac_cv_func_malloc_get_state" >&5 |
503d2be0 AS |
5472 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
5473 | if test $ac_cv_func_malloc_get_state = yes; then | |
ba4481b5 DL |
5474 | : |
5475 | else | |
503d2be0 | 5476 | doug_lea_malloc=no |
ba4481b5 DL |
5477 | fi |
5478 | ||
cc227489 | 5479 | echo "$as_me:5479: checking for malloc_set_state" >&5 |
503d2be0 AS |
5480 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
5481 | if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5483 | else |
503d2be0 | 5484 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 5485 | #line 5485 "configure" |
ba4481b5 DL |
5486 | #include "confdefs.h" |
5487 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 5488 | which can conflict with char malloc_set_state (); below. */ |
ba4481b5 DL |
5489 | #include <assert.h> |
5490 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
5491 | #ifdef __cplusplus |
5492 | extern "C" | |
5493 | #endif | |
ba4481b5 | 5494 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
5495 | builtin and then its argument prototype would still apply. */ |
5496 | char malloc_set_state (); | |
5497 | char (*f) (); | |
ba4481b5 | 5498 | |
503d2be0 AS |
5499 | int |
5500 | main () | |
5501 | { | |
ba4481b5 DL |
5502 | /* The GNU C library defines this for functions which it implements |
5503 | to always fail with ENOSYS. Some functions are actually named | |
5504 | something starting with __ and the normal name is an alias. */ | |
5505 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
5506 | choke me | |
5507 | #else | |
503d2be0 | 5508 | f = malloc_set_state; |
ba4481b5 DL |
5509 | #endif |
5510 | ||
503d2be0 AS |
5511 | ; |
5512 | return 0; | |
5513 | } | |
5514 | _ACEOF | |
5515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 5516 | if { (eval echo "$as_me:5516: \"$ac_link\"") >&5 |
503d2be0 AS |
5517 | (eval $ac_link) 2>&5 |
5518 | ac_status=$? | |
cc227489 | 5519 | echo "$as_me:5519: \$? = $ac_status" >&5 |
503d2be0 AS |
5520 | (exit $ac_status); } && |
5521 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 5522 | { (eval echo "$as_me:5522: \"$ac_try\"") >&5 |
503d2be0 AS |
5523 | (eval $ac_try) 2>&5 |
5524 | ac_status=$? | |
cc227489 | 5525 | echo "$as_me:5525: \$? = $ac_status" >&5 |
503d2be0 AS |
5526 | (exit $ac_status); }; }; then |
5527 | ac_cv_func_malloc_set_state=yes | |
5528 | else | |
5529 | echo "$as_me: failed program was:" >&5 | |
5530 | cat conftest.$ac_ext >&5 | |
5531 | ac_cv_func_malloc_set_state=no | |
5532 | fi | |
5533 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5534 | fi | |
cc227489 | 5535 | echo "$as_me:5535: result: $ac_cv_func_malloc_set_state" >&5 |
503d2be0 AS |
5536 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
5537 | if test $ac_cv_func_malloc_set_state = yes; then | |
ba4481b5 DL |
5538 | : |
5539 | else | |
503d2be0 | 5540 | doug_lea_malloc=no |
ba4481b5 DL |
5541 | fi |
5542 | ||
cc227489 | 5543 | echo "$as_me:5543: checking whether __after_morecore_hook exists" >&5 |
503d2be0 AS |
5544 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
5545 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
5546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5547 | else |
503d2be0 | 5548 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 5549 | #line 5549 "configure" |
ba4481b5 DL |
5550 | #include "confdefs.h" |
5551 | extern void (* __after_morecore_hook)(); | |
503d2be0 AS |
5552 | int |
5553 | main () | |
5554 | { | |
ba4481b5 | 5555 | __after_morecore_hook = 0 |
503d2be0 AS |
5556 | ; |
5557 | return 0; | |
5558 | } | |
5559 | _ACEOF | |
5560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 5561 | if { (eval echo "$as_me:5561: \"$ac_link\"") >&5 |
503d2be0 AS |
5562 | (eval $ac_link) 2>&5 |
5563 | ac_status=$? | |
cc227489 | 5564 | echo "$as_me:5564: \$? = $ac_status" >&5 |
503d2be0 AS |
5565 | (exit $ac_status); } && |
5566 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 5567 | { (eval echo "$as_me:5567: \"$ac_try\"") >&5 |
503d2be0 AS |
5568 | (eval $ac_try) 2>&5 |
5569 | ac_status=$? | |
cc227489 | 5570 | echo "$as_me:5570: \$? = $ac_status" >&5 |
503d2be0 | 5571 | (exit $ac_status); }; }; then |
ba4481b5 DL |
5572 | emacs_cv_var___after_morecore_hook=yes |
5573 | else | |
503d2be0 AS |
5574 | echo "$as_me: failed program was:" >&5 |
5575 | cat conftest.$ac_ext >&5 | |
5576 | emacs_cv_var___after_morecore_hook=no | |
ba4481b5 | 5577 | fi |
503d2be0 | 5578 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 5579 | fi |
cc227489 | 5580 | echo "$as_me:5580: result: $emacs_cv_var___after_morecore_hook" >&5 |
503d2be0 | 5581 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
ba4481b5 DL |
5582 | if test $emacs_cv_var___after_morecore_hook = no; then |
5583 | doug_lea_malloc=no | |
5584 | fi | |
5585 | if test "${system_malloc}" = "yes"; then | |
5586 | GNU_MALLOC=no | |
5587 | GNU_MALLOC_reason=" | |
5588 | (The GNU allocators don't work with this system configuration.)" | |
5589 | fi | |
5590 | if test "$doug_lea_malloc" = "yes" ; then | |
5591 | if test "$GNU_MALLOC" = yes ; then | |
5592 | GNU_MALLOC_reason=" | |
5593 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
5594 | fi | |
503d2be0 | 5595 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
5596 | #define DOUG_LEA_MALLOC 1 |
5597 | EOF | |
5598 | ||
5599 | fi | |
5600 | ||
5601 | if test x"${REL_ALLOC}" = x; then | |
5602 | REL_ALLOC=${GNU_MALLOC} | |
5603 | fi | |
5604 | ||
503d2be0 AS |
5605 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5606 | ||
5607 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5608 | inttypes.h stdint.h unistd.h | |
5609 | do | |
5610 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
cc227489 | 5611 | echo "$as_me:5611: checking for $ac_header" >&5 |
503d2be0 AS |
5612 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5613 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5615 | else | |
5616 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 5617 | #line 5617 "configure" |
503d2be0 AS |
5618 | #include "confdefs.h" |
5619 | $ac_includes_default | |
5620 | #include <$ac_header> | |
5621 | _ACEOF | |
5622 | rm -f conftest.$ac_objext | |
cc227489 | 5623 | if { (eval echo "$as_me:5623: \"$ac_compile\"") >&5 |
503d2be0 AS |
5624 | (eval $ac_compile) 2>&5 |
5625 | ac_status=$? | |
cc227489 | 5626 | echo "$as_me:5626: \$? = $ac_status" >&5 |
503d2be0 AS |
5627 | (exit $ac_status); } && |
5628 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 5629 | { (eval echo "$as_me:5629: \"$ac_try\"") >&5 |
503d2be0 AS |
5630 | (eval $ac_try) 2>&5 |
5631 | ac_status=$? | |
cc227489 | 5632 | echo "$as_me:5632: \$? = $ac_status" >&5 |
503d2be0 AS |
5633 | (exit $ac_status); }; }; then |
5634 | eval "$as_ac_Header=yes" | |
5635 | else | |
5636 | echo "$as_me: failed program was:" >&5 | |
5637 | cat conftest.$ac_ext >&5 | |
5638 | eval "$as_ac_Header=no" | |
5639 | fi | |
5640 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5641 | fi | |
cc227489 | 5642 | echo "$as_me:5642: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
5643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5644 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5645 | cat >>confdefs.h <<EOF | |
5646 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5647 | EOF | |
5648 | ||
5649 | fi | |
5650 | done | |
a55b799a | 5651 | |
503d2be0 | 5652 | for ac_header in stdlib.h unistd.h |
73b77ee5 | 5653 | do |
503d2be0 | 5654 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 5655 | echo "$as_me:5655: checking for $ac_header" >&5 |
503d2be0 AS |
5656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5659 | else | |
5660 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 5661 | #line 5661 "configure" |
503d2be0 AS |
5662 | #include "confdefs.h" |
5663 | #include <$ac_header> | |
5664 | _ACEOF | |
cc227489 | 5665 | if { (eval echo "$as_me:5665: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
5666 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5667 | ac_status=$? | |
5668 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5669 | rm -f conftest.er1 | |
5670 | cat conftest.err >&5 | |
cc227489 | 5671 | echo "$as_me:5671: \$? = $ac_status" >&5 |
503d2be0 AS |
5672 | (exit $ac_status); } >/dev/null; then |
5673 | if test -s conftest.err; then | |
5674 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5675 | else | |
5676 | ac_cpp_err= | |
5677 | fi | |
5678 | else | |
5679 | ac_cpp_err=yes | |
5680 | fi | |
5681 | if test -z "$ac_cpp_err"; then | |
5682 | eval "$as_ac_Header=yes" | |
5683 | else | |
5684 | echo "$as_me: failed program was:" >&5 | |
ba4481b5 | 5685 | cat conftest.$ac_ext >&5 |
503d2be0 | 5686 | eval "$as_ac_Header=no" |
ba4481b5 | 5687 | fi |
503d2be0 | 5688 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 5689 | fi |
cc227489 | 5690 | echo "$as_me:5690: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
5691 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5692 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5693 | cat >>confdefs.h <<EOF | |
5694 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ba4481b5 | 5695 | EOF |
503d2be0 | 5696 | |
ba4481b5 | 5697 | fi |
73b77ee5 | 5698 | done |
ba4481b5 | 5699 | |
73b77ee5 | 5700 | for ac_func in getpagesize |
ba4481b5 | 5701 | do |
503d2be0 | 5702 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
cc227489 | 5703 | echo "$as_me:5703: checking for $ac_func" >&5 |
503d2be0 AS |
5704 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5705 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5707 | else |
503d2be0 | 5708 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 5709 | #line 5709 "configure" |
ba4481b5 DL |
5710 | #include "confdefs.h" |
5711 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 5712 | which can conflict with char $ac_func (); below. */ |
ba4481b5 DL |
5713 | #include <assert.h> |
5714 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
5715 | #ifdef __cplusplus |
5716 | extern "C" | |
5717 | #endif | |
ba4481b5 | 5718 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
5719 | builtin and then its argument prototype would still apply. */ |
5720 | char $ac_func (); | |
5721 | char (*f) (); | |
ba4481b5 | 5722 | |
503d2be0 AS |
5723 | int |
5724 | main () | |
5725 | { | |
ba4481b5 DL |
5726 | /* The GNU C library defines this for functions which it implements |
5727 | to always fail with ENOSYS. Some functions are actually named | |
5728 | something starting with __ and the normal name is an alias. */ | |
5729 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5730 | choke me | |
5731 | #else | |
503d2be0 | 5732 | f = $ac_func; |
ba4481b5 DL |
5733 | #endif |
5734 | ||
503d2be0 AS |
5735 | ; |
5736 | return 0; | |
5737 | } | |
5738 | _ACEOF | |
5739 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 5740 | if { (eval echo "$as_me:5740: \"$ac_link\"") >&5 |
503d2be0 AS |
5741 | (eval $ac_link) 2>&5 |
5742 | ac_status=$? | |
cc227489 | 5743 | echo "$as_me:5743: \$? = $ac_status" >&5 |
503d2be0 AS |
5744 | (exit $ac_status); } && |
5745 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 5746 | { (eval echo "$as_me:5746: \"$ac_try\"") >&5 |
503d2be0 AS |
5747 | (eval $ac_try) 2>&5 |
5748 | ac_status=$? | |
cc227489 | 5749 | echo "$as_me:5749: \$? = $ac_status" >&5 |
503d2be0 AS |
5750 | (exit $ac_status); }; }; then |
5751 | eval "$as_ac_var=yes" | |
5752 | else | |
5753 | echo "$as_me: failed program was:" >&5 | |
5754 | cat conftest.$ac_ext >&5 | |
5755 | eval "$as_ac_var=no" | |
5756 | fi | |
5757 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5758 | fi | |
cc227489 | 5759 | echo "$as_me:5759: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
5760 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5761 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5762 | cat >>confdefs.h <<EOF | |
5763 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ba4481b5 | 5764 | EOF |
ba4481b5 | 5765 | |
ba4481b5 DL |
5766 | fi |
5767 | done | |
5768 | ||
cc227489 | 5769 | echo "$as_me:5769: checking for working mmap" >&5 |
503d2be0 AS |
5770 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
5771 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 GM |
5773 | else |
5774 | if test "$cross_compiling" = yes; then | |
5775 | ac_cv_func_mmap_fixed_mapped=no | |
ba4481b5 | 5776 | else |
503d2be0 | 5777 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 5778 | #line 5778 "configure" |
ba4481b5 | 5779 | #include "confdefs.h" |
503d2be0 | 5780 | $ac_includes_default |
73b77ee5 GM |
5781 | /* Thanks to Mike Haertel and Jim Avera for this test. |
5782 | Here is a matrix of mmap possibilities: | |
5783 | mmap private not fixed | |
5784 | mmap private fixed at somewhere currently unmapped | |
5785 | mmap private fixed at somewhere already mapped | |
5786 | mmap shared not fixed | |
5787 | mmap shared fixed at somewhere currently unmapped | |
5788 | mmap shared fixed at somewhere already mapped | |
5789 | For private mappings, we should verify that changes cannot be read() | |
5790 | back from the file, nor mmap's back from the file at a different | |
5791 | address. (There have been systems where private was not correctly | |
5792 | implemented like the infamous i386 svr4.0, and systems where the | |
1932bc86 | 5793 | VM page cache was not coherent with the file system buffer cache |
73b77ee5 GM |
5794 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
5795 | For shared mappings, we should conversely verify that changes get | |
5796 | propogated back to all the places they're supposed to be. | |
5797 | ||
5798 | Grep wants private fixed already mapped. | |
5799 | The main things grep needs to know about mmap are: | |
5800 | * does it exist and is it safe to write into the mmap'd area | |
5801 | * how to use it (BSD variants) */ | |
503d2be0 | 5802 | |
73b77ee5 GM |
5803 | #include <fcntl.h> |
5804 | #include <sys/mman.h> | |
5805 | ||
503d2be0 | 5806 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
1932bc86 DL |
5807 | char *malloc (); |
5808 | #endif | |
73b77ee5 | 5809 | |
1932bc86 DL |
5810 | /* This mess was copied from the GNU getpagesize.h. */ |
5811 | #if !HAVE_GETPAGESIZE | |
73b77ee5 | 5812 | /* Assume that all systems that can run configure have sys/param.h. */ |
1932bc86 | 5813 | # if !HAVE_SYS_PARAM_H |
73b77ee5 GM |
5814 | # define HAVE_SYS_PARAM_H 1 |
5815 | # endif | |
5816 | ||
5817 | # ifdef _SC_PAGESIZE | |
5818 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5819 | # else /* no _SC_PAGESIZE */ | |
1932bc86 | 5820 | # if HAVE_SYS_PARAM_H |
73b77ee5 GM |
5821 | # include <sys/param.h> |
5822 | # ifdef EXEC_PAGESIZE | |
5823 | # define getpagesize() EXEC_PAGESIZE | |
5824 | # else /* no EXEC_PAGESIZE */ | |
5825 | # ifdef NBPG | |
5826 | # define getpagesize() NBPG * CLSIZE | |
5827 | # ifndef CLSIZE | |
5828 | # define CLSIZE 1 | |
5829 | # endif /* no CLSIZE */ | |
5830 | # else /* no NBPG */ | |
5831 | # ifdef NBPC | |
5832 | # define getpagesize() NBPC | |
5833 | # else /* no NBPC */ | |
5834 | # ifdef PAGESIZE | |
5835 | # define getpagesize() PAGESIZE | |
5836 | # endif /* PAGESIZE */ | |
5837 | # endif /* no NBPC */ | |
5838 | # endif /* no NBPG */ | |
5839 | # endif /* no EXEC_PAGESIZE */ | |
5840 | # else /* no HAVE_SYS_PARAM_H */ | |
5841 | # define getpagesize() 8192 /* punt totally */ | |
5842 | # endif /* no HAVE_SYS_PARAM_H */ | |
5843 | # endif /* no _SC_PAGESIZE */ | |
5844 | ||
5845 | #endif /* no HAVE_GETPAGESIZE */ | |
5846 | ||
73b77ee5 | 5847 | int |
1932bc86 | 5848 | main () |
73b77ee5 | 5849 | { |
1932bc86 DL |
5850 | char *data, *data2, *data3; |
5851 | int i, pagesize; | |
5852 | int fd; | |
5853 | ||
5854 | pagesize = getpagesize (); | |
5855 | ||
5856 | /* First, make a file with some known garbage in it. */ | |
5857 | data = (char *) malloc (pagesize); | |
5858 | if (!data) | |
5859 | exit (1); | |
5860 | for (i = 0; i < pagesize; ++i) | |
5861 | *(data + i) = rand (); | |
5862 | umask (0); | |
503d2be0 | 5863 | fd = creat ("conftest.mmap", 0600); |
1932bc86 DL |
5864 | if (fd < 0) |
5865 | exit (1); | |
5866 | if (write (fd, data, pagesize) != pagesize) | |
5867 | exit (1); | |
5868 | close (fd); | |
73b77ee5 | 5869 | |
1932bc86 DL |
5870 | /* Next, try to mmap the file at a fixed address which already has |
5871 | something else allocated at it. If we can, also make sure that | |
5872 | we see the same garbage. */ | |
503d2be0 | 5873 | fd = open ("conftest.mmap", O_RDWR); |
1932bc86 DL |
5874 | if (fd < 0) |
5875 | exit (1); | |
5876 | data2 = (char *) malloc (2 * pagesize); | |
5877 | if (!data2) | |
5878 | exit (1); | |
5879 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
5880 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5881 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5882 | exit (1); | |
5883 | for (i = 0; i < pagesize; ++i) | |
5884 | if (*(data + i) != *(data2 + i)) | |
5885 | exit (1); | |
5886 | ||
5887 | /* Finally, make sure that changes to the mapped area do not | |
5888 | percolate back to the file as seen by read(). (This is a bug on | |
5889 | some variants of i386 svr4.0.) */ | |
5890 | for (i = 0; i < pagesize; ++i) | |
5891 | *(data2 + i) = *(data2 + i) + 1; | |
5892 | data3 = (char *) malloc (pagesize); | |
5893 | if (!data3) | |
5894 | exit (1); | |
5895 | if (read (fd, data3, pagesize) != pagesize) | |
5896 | exit (1); | |
5897 | for (i = 0; i < pagesize; ++i) | |
5898 | if (*(data + i) != *(data3 + i)) | |
5899 | exit (1); | |
5900 | close (fd); | |
1932bc86 DL |
5901 | exit (0); |
5902 | } | |
503d2be0 AS |
5903 | _ACEOF |
5904 | rm -f conftest$ac_exeext | |
cc227489 | 5905 | if { (eval echo "$as_me:5905: \"$ac_link\"") >&5 |
503d2be0 AS |
5906 | (eval $ac_link) 2>&5 |
5907 | ac_status=$? | |
cc227489 | 5908 | echo "$as_me:5908: \$? = $ac_status" >&5 |
503d2be0 | 5909 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
cc227489 | 5910 | { (eval echo "$as_me:5910: \"$ac_try\"") >&5 |
503d2be0 AS |
5911 | (eval $ac_try) 2>&5 |
5912 | ac_status=$? | |
cc227489 | 5913 | echo "$as_me:5913: \$? = $ac_status" >&5 |
503d2be0 | 5914 | (exit $ac_status); }; }; then |
73b77ee5 GM |
5915 | ac_cv_func_mmap_fixed_mapped=yes |
5916 | else | |
503d2be0 AS |
5917 | echo "$as_me: program exited with status $ac_status" >&5 |
5918 | echo "$as_me: failed program was:" >&5 | |
5919 | cat conftest.$ac_ext >&5 | |
5920 | ac_cv_func_mmap_fixed_mapped=no | |
73b77ee5 | 5921 | fi |
503d2be0 | 5922 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
73b77ee5 | 5923 | fi |
73b77ee5 | 5924 | fi |
cc227489 | 5925 | echo "$as_me:5925: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
503d2be0 | 5926 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
73b77ee5 | 5927 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
503d2be0 AS |
5928 | |
5929 | cat >>confdefs.h <<\EOF | |
73b77ee5 GM |
5930 | #define HAVE_MMAP 1 |
5931 | EOF | |
5932 | ||
5933 | fi | |
503d2be0 | 5934 | rm -f conftest.mmap |
73b77ee5 | 5935 | |
ef9e4345 GM |
5936 | if test $use_mmap_for_buffers = yes; then |
5937 | REL_ALLOC=no | |
73b77ee5 GM |
5938 | fi |
5939 | ||
5940 | LIBS="$libsrc_libs $LIBS" | |
5941 | ||
cc227489 | 5942 | echo "$as_me:5942: checking for dnet_ntoa in -ldnet" >&5 |
503d2be0 AS |
5943 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
5944 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
5945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 5946 | else |
503d2be0 | 5947 | ac_check_lib_save_LIBS=$LIBS |
73b77ee5 | 5948 | LIBS="-ldnet $LIBS" |
503d2be0 | 5949 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 5950 | #line 5950 "configure" |
73b77ee5 | 5951 | #include "confdefs.h" |
503d2be0 | 5952 | |
73b77ee5 | 5953 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
5954 | #ifdef __cplusplus |
5955 | extern "C" | |
5956 | #endif | |
73b77ee5 | 5957 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
5958 | builtin and then its argument prototype would still apply. */ |
5959 | char dnet_ntoa (); | |
5960 | int | |
5961 | main () | |
5962 | { | |
5963 | dnet_ntoa (); | |
5964 | ; | |
5965 | return 0; | |
5966 | } | |
5967 | _ACEOF | |
5968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 5969 | if { (eval echo "$as_me:5969: \"$ac_link\"") >&5 |
503d2be0 AS |
5970 | (eval $ac_link) 2>&5 |
5971 | ac_status=$? | |
cc227489 | 5972 | echo "$as_me:5972: \$? = $ac_status" >&5 |
503d2be0 AS |
5973 | (exit $ac_status); } && |
5974 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 5975 | { (eval echo "$as_me:5975: \"$ac_try\"") >&5 |
503d2be0 AS |
5976 | (eval $ac_try) 2>&5 |
5977 | ac_status=$? | |
cc227489 | 5978 | echo "$as_me:5978: \$? = $ac_status" >&5 |
503d2be0 AS |
5979 | (exit $ac_status); }; }; then |
5980 | ac_cv_lib_dnet_dnet_ntoa=yes | |
5981 | else | |
5982 | echo "$as_me: failed program was:" >&5 | |
5983 | cat conftest.$ac_ext >&5 | |
5984 | ac_cv_lib_dnet_dnet_ntoa=no | |
5985 | fi | |
5986 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5987 | LIBS=$ac_check_lib_save_LIBS | |
5988 | fi | |
cc227489 | 5989 | echo "$as_me:5989: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
503d2be0 AS |
5990 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
5991 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
5992 | cat >>confdefs.h <<EOF | |
5993 | #define HAVE_LIBDNET 1 | |
73b77ee5 GM |
5994 | EOF |
5995 | ||
5996 | LIBS="-ldnet $LIBS" | |
5997 | ||
73b77ee5 GM |
5998 | fi |
5999 | ||
cc227489 | 6000 | echo "$as_me:6000: checking for main in -lXbsd" >&5 |
503d2be0 AS |
6001 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
6002 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
6003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 6004 | else |
503d2be0 | 6005 | ac_check_lib_save_LIBS=$LIBS |
73b77ee5 | 6006 | LIBS="-lXbsd $LIBS" |
503d2be0 | 6007 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6008 | #line 6008 "configure" |
73b77ee5 GM |
6009 | #include "confdefs.h" |
6010 | ||
503d2be0 AS |
6011 | int |
6012 | main () | |
6013 | { | |
6014 | main (); | |
6015 | ; | |
6016 | return 0; | |
6017 | } | |
6018 | _ACEOF | |
6019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6020 | if { (eval echo "$as_me:6020: \"$ac_link\"") >&5 |
503d2be0 AS |
6021 | (eval $ac_link) 2>&5 |
6022 | ac_status=$? | |
cc227489 | 6023 | echo "$as_me:6023: \$? = $ac_status" >&5 |
503d2be0 AS |
6024 | (exit $ac_status); } && |
6025 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6026 | { (eval echo "$as_me:6026: \"$ac_try\"") >&5 |
503d2be0 AS |
6027 | (eval $ac_try) 2>&5 |
6028 | ac_status=$? | |
cc227489 | 6029 | echo "$as_me:6029: \$? = $ac_status" >&5 |
503d2be0 AS |
6030 | (exit $ac_status); }; }; then |
6031 | ac_cv_lib_Xbsd_main=yes | |
6032 | else | |
6033 | echo "$as_me: failed program was:" >&5 | |
6034 | cat conftest.$ac_ext >&5 | |
6035 | ac_cv_lib_Xbsd_main=no | |
6036 | fi | |
6037 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6038 | LIBS=$ac_check_lib_save_LIBS | |
6039 | fi | |
cc227489 | 6040 | echo "$as_me:6040: result: $ac_cv_lib_Xbsd_main" >&5 |
503d2be0 AS |
6041 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
6042 | if test $ac_cv_lib_Xbsd_main = yes; then | |
73b77ee5 | 6043 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
73b77ee5 GM |
6044 | fi |
6045 | ||
cc227489 | 6046 | echo "$as_me:6046: checking for cma_open in -lpthreads" >&5 |
503d2be0 AS |
6047 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
6048 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
6049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 6050 | else |
503d2be0 | 6051 | ac_check_lib_save_LIBS=$LIBS |
73b77ee5 | 6052 | LIBS="-lpthreads $LIBS" |
503d2be0 | 6053 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6054 | #line 6054 "configure" |
73b77ee5 | 6055 | #include "confdefs.h" |
503d2be0 | 6056 | |
73b77ee5 | 6057 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
6058 | #ifdef __cplusplus |
6059 | extern "C" | |
6060 | #endif | |
73b77ee5 | 6061 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
6062 | builtin and then its argument prototype would still apply. */ |
6063 | char cma_open (); | |
6064 | int | |
6065 | main () | |
6066 | { | |
6067 | cma_open (); | |
6068 | ; | |
6069 | return 0; | |
6070 | } | |
6071 | _ACEOF | |
6072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6073 | if { (eval echo "$as_me:6073: \"$ac_link\"") >&5 |
503d2be0 AS |
6074 | (eval $ac_link) 2>&5 |
6075 | ac_status=$? | |
cc227489 | 6076 | echo "$as_me:6076: \$? = $ac_status" >&5 |
503d2be0 AS |
6077 | (exit $ac_status); } && |
6078 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6079 | { (eval echo "$as_me:6079: \"$ac_try\"") >&5 |
503d2be0 AS |
6080 | (eval $ac_try) 2>&5 |
6081 | ac_status=$? | |
cc227489 | 6082 | echo "$as_me:6082: \$? = $ac_status" >&5 |
503d2be0 AS |
6083 | (exit $ac_status); }; }; then |
6084 | ac_cv_lib_pthreads_cma_open=yes | |
6085 | else | |
6086 | echo "$as_me: failed program was:" >&5 | |
6087 | cat conftest.$ac_ext >&5 | |
6088 | ac_cv_lib_pthreads_cma_open=no | |
6089 | fi | |
6090 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6091 | LIBS=$ac_check_lib_save_LIBS | |
6092 | fi | |
cc227489 | 6093 | echo "$as_me:6093: result: $ac_cv_lib_pthreads_cma_open" >&5 |
503d2be0 AS |
6094 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
6095 | if test $ac_cv_lib_pthreads_cma_open = yes; then | |
6096 | cat >>confdefs.h <<EOF | |
6097 | #define HAVE_LIBPTHREADS 1 | |
73b77ee5 GM |
6098 | EOF |
6099 | ||
6100 | LIBS="-lpthreads $LIBS" | |
6101 | ||
73b77ee5 GM |
6102 | fi |
6103 | ||
cc227489 | 6104 | echo "$as_me:6104: checking for XFree86 in /usr/X386" >&5 |
503d2be0 | 6105 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
73b77ee5 GM |
6106 | if test -d /usr/X386/include; then |
6107 | HAVE_XFREE386=yes | |
6108 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
6109 | else | |
6110 | HAVE_XFREE386=no | |
6111 | fi | |
cc227489 | 6112 | echo "$as_me:6112: result: $HAVE_XFREE386" >&5 |
503d2be0 | 6113 | echo "${ECHO_T}$HAVE_XFREE386" >&6 |
73b77ee5 GM |
6114 | |
6115 | # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
6116 | # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
6117 | ||
6118 | REAL_CPPFLAGS="$CPPFLAGS" | |
6119 | ||
6120 | if test "${HAVE_X11}" = "yes"; then | |
6121 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
6122 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
6123 | LIBS="$LIBX $LIBS" | |
6124 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
6125 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
6126 | ||
6127 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
6128 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
6129 | # but it's more convenient here to set LD_RUN_PATH | |
6130 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
6131 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
6132 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
6133 | export LD_RUN_PATH | |
6134 | fi | |
6135 | ||
6136 | if test "${opsys}" = "gnu-linux"; then | |
cc227489 | 6137 | echo "$as_me:6137: checking whether X on GNU/Linux needs -b to link" >&5 |
503d2be0 AS |
6138 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
6139 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 6140 | #line 6140 "configure" |
73b77ee5 GM |
6141 | #include "confdefs.h" |
6142 | ||
503d2be0 AS |
6143 | int |
6144 | main () | |
6145 | { | |
73b77ee5 | 6146 | XOpenDisplay ("foo"); |
503d2be0 AS |
6147 | ; |
6148 | return 0; | |
6149 | } | |
6150 | _ACEOF | |
6151 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6152 | if { (eval echo "$as_me:6152: \"$ac_link\"") >&5 |
503d2be0 AS |
6153 | (eval $ac_link) 2>&5 |
6154 | ac_status=$? | |
cc227489 | 6155 | echo "$as_me:6155: \$? = $ac_status" >&5 |
503d2be0 AS |
6156 | (exit $ac_status); } && |
6157 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6158 | { (eval echo "$as_me:6158: \"$ac_try\"") >&5 |
503d2be0 AS |
6159 | (eval $ac_try) 2>&5 |
6160 | ac_status=$? | |
cc227489 | 6161 | echo "$as_me:6161: \$? = $ac_status" >&5 |
503d2be0 | 6162 | (exit $ac_status); }; }; then |
73b77ee5 GM |
6163 | xlinux_first_failure=no |
6164 | else | |
503d2be0 AS |
6165 | echo "$as_me: failed program was:" >&5 |
6166 | cat conftest.$ac_ext >&5 | |
6167 | xlinux_first_failure=yes | |
73b77ee5 | 6168 | fi |
503d2be0 | 6169 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
73b77ee5 GM |
6170 | if test "${xlinux_first_failure}" = "yes"; then |
6171 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
6172 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
6173 | OLD_CPPFLAGS="$CPPFLAGS" | |
6174 | OLD_LIBS="$LIBS" | |
6175 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
6176 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
6177 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
6178 | LIBS="$LIBS -b i486-linuxaout" | |
503d2be0 | 6179 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6180 | #line 6180 "configure" |
73b77ee5 GM |
6181 | #include "confdefs.h" |
6182 | ||
503d2be0 AS |
6183 | int |
6184 | main () | |
6185 | { | |
73b77ee5 | 6186 | XOpenDisplay ("foo"); |
503d2be0 AS |
6187 | ; |
6188 | return 0; | |
6189 | } | |
6190 | _ACEOF | |
6191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6192 | if { (eval echo "$as_me:6192: \"$ac_link\"") >&5 |
503d2be0 AS |
6193 | (eval $ac_link) 2>&5 |
6194 | ac_status=$? | |
cc227489 | 6195 | echo "$as_me:6195: \$? = $ac_status" >&5 |
503d2be0 AS |
6196 | (exit $ac_status); } && |
6197 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6198 | { (eval echo "$as_me:6198: \"$ac_try\"") >&5 |
503d2be0 AS |
6199 | (eval $ac_try) 2>&5 |
6200 | ac_status=$? | |
cc227489 | 6201 | echo "$as_me:6201: \$? = $ac_status" >&5 |
503d2be0 | 6202 | (exit $ac_status); }; }; then |
73b77ee5 GM |
6203 | xlinux_second_failure=no |
6204 | else | |
503d2be0 AS |
6205 | echo "$as_me: failed program was:" >&5 |
6206 | cat conftest.$ac_ext >&5 | |
6207 | xlinux_second_failure=yes | |
73b77ee5 | 6208 | fi |
503d2be0 | 6209 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
73b77ee5 GM |
6210 | if test "${xlinux_second_failure}" = "yes"; then |
6211 | # If we get the same failure with -b, there is no use adding -b. | |
6212 | # So take it out. This plays safe. | |
6213 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
6214 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
6215 | CPPFLAGS="$OLD_CPPFLAGS" | |
6216 | LIBS="$OLD_LIBS" | |
cc227489 | 6217 | echo "$as_me:6217: result: no" >&5 |
503d2be0 | 6218 | echo "${ECHO_T}no" >&6 |
73b77ee5 | 6219 | else |
cc227489 | 6220 | echo "$as_me:6220: result: yes" >&5 |
503d2be0 | 6221 | echo "${ECHO_T}yes" >&6 |
73b77ee5 GM |
6222 | fi |
6223 | else | |
cc227489 | 6224 | echo "$as_me:6224: result: no" >&5 |
503d2be0 | 6225 | echo "${ECHO_T}no" >&6 |
73b77ee5 GM |
6226 | fi |
6227 | fi | |
6228 | ||
ac95a621 GM |
6229 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
6230 | # header files included from there. | |
cc227489 | 6231 | echo "$as_me:6231: checking for Xkb" >&5 |
503d2be0 AS |
6232 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
6233 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 6234 | #line 6234 "configure" |
ac95a621 GM |
6235 | #include "confdefs.h" |
6236 | #include <X11/Xlib.h> | |
6237 | #include <X11/XKBlib.h> | |
503d2be0 AS |
6238 | int |
6239 | main () | |
6240 | { | |
ac95a621 | 6241 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
503d2be0 AS |
6242 | ; |
6243 | return 0; | |
6244 | } | |
6245 | _ACEOF | |
6246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6247 | if { (eval echo "$as_me:6247: \"$ac_link\"") >&5 |
503d2be0 AS |
6248 | (eval $ac_link) 2>&5 |
6249 | ac_status=$? | |
cc227489 | 6250 | echo "$as_me:6250: \$? = $ac_status" >&5 |
503d2be0 AS |
6251 | (exit $ac_status); } && |
6252 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6253 | { (eval echo "$as_me:6253: \"$ac_try\"") >&5 |
503d2be0 AS |
6254 | (eval $ac_try) 2>&5 |
6255 | ac_status=$? | |
cc227489 | 6256 | echo "$as_me:6256: \$? = $ac_status" >&5 |
503d2be0 | 6257 | (exit $ac_status); }; }; then |
ac95a621 GM |
6258 | emacs_xkb=yes |
6259 | else | |
503d2be0 AS |
6260 | echo "$as_me: failed program was:" >&5 |
6261 | cat conftest.$ac_ext >&5 | |
6262 | emacs_xkb=no | |
ac95a621 | 6263 | fi |
503d2be0 | 6264 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
cc227489 | 6265 | echo "$as_me:6265: result: $emacs_xkb" >&5 |
503d2be0 | 6266 | echo "${ECHO_T}$emacs_xkb" >&6 |
ac95a621 | 6267 | if test $emacs_xkb = yes; then |
503d2be0 | 6268 | cat >>confdefs.h <<\EOF |
ac95a621 GM |
6269 | #define HAVE_XKBGETKEYBOARD 1 |
6270 | EOF | |
6271 | ||
6272 | fi | |
6273 | ||
503d2be0 | 6274 | for ac_func in XrmSetDatabase XScreenResourceString \ |
73b77ee5 GM |
6275 | XScreenNumberOfScreen XSetWMProtocols |
6276 | do | |
503d2be0 | 6277 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
cc227489 | 6278 | echo "$as_me:6278: checking for $ac_func" >&5 |
503d2be0 AS |
6279 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6280 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 6282 | else |
503d2be0 | 6283 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6284 | #line 6284 "configure" |
73b77ee5 GM |
6285 | #include "confdefs.h" |
6286 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 6287 | which can conflict with char $ac_func (); below. */ |
73b77ee5 GM |
6288 | #include <assert.h> |
6289 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
6290 | #ifdef __cplusplus |
6291 | extern "C" | |
6292 | #endif | |
73b77ee5 | 6293 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
6294 | builtin and then its argument prototype would still apply. */ |
6295 | char $ac_func (); | |
6296 | char (*f) (); | |
73b77ee5 | 6297 | |
503d2be0 AS |
6298 | int |
6299 | main () | |
6300 | { | |
73b77ee5 GM |
6301 | /* The GNU C library defines this for functions which it implements |
6302 | to always fail with ENOSYS. Some functions are actually named | |
6303 | something starting with __ and the normal name is an alias. */ | |
6304 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6305 | choke me | |
6306 | #else | |
503d2be0 | 6307 | f = $ac_func; |
73b77ee5 GM |
6308 | #endif |
6309 | ||
503d2be0 AS |
6310 | ; |
6311 | return 0; | |
6312 | } | |
6313 | _ACEOF | |
6314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6315 | if { (eval echo "$as_me:6315: \"$ac_link\"") >&5 |
503d2be0 AS |
6316 | (eval $ac_link) 2>&5 |
6317 | ac_status=$? | |
cc227489 | 6318 | echo "$as_me:6318: \$? = $ac_status" >&5 |
503d2be0 AS |
6319 | (exit $ac_status); } && |
6320 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6321 | { (eval echo "$as_me:6321: \"$ac_try\"") >&5 |
503d2be0 AS |
6322 | (eval $ac_try) 2>&5 |
6323 | ac_status=$? | |
cc227489 | 6324 | echo "$as_me:6324: \$? = $ac_status" >&5 |
503d2be0 AS |
6325 | (exit $ac_status); }; }; then |
6326 | eval "$as_ac_var=yes" | |
6327 | else | |
6328 | echo "$as_me: failed program was:" >&5 | |
6329 | cat conftest.$ac_ext >&5 | |
6330 | eval "$as_ac_var=no" | |
6331 | fi | |
6332 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6333 | fi | |
cc227489 | 6334 | echo "$as_me:6334: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
6335 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6336 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6337 | cat >>confdefs.h <<EOF | |
6338 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
73b77ee5 | 6339 | EOF |
73b77ee5 | 6340 | |
73b77ee5 GM |
6341 | fi |
6342 | done | |
6343 | ||
6344 | fi | |
6345 | ||
6346 | if test "${window_system}" = "x11"; then | |
cc227489 | 6347 | echo "$as_me:6347: checking X11 version 6" >&5 |
503d2be0 AS |
6348 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
6349 | if test "${emacs_cv_x11_version_6+set}" = set; then | |
6350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 6351 | else |
503d2be0 | 6352 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6353 | #line 6353 "configure" |
73b77ee5 GM |
6354 | #include "confdefs.h" |
6355 | #include <X11/Xlib.h> | |
503d2be0 AS |
6356 | int |
6357 | main () | |
6358 | { | |
73b77ee5 GM |
6359 | #if XlibSpecificationRelease < 6 |
6360 | fail; | |
6361 | #endif | |
6362 | ||
503d2be0 AS |
6363 | ; |
6364 | return 0; | |
6365 | } | |
6366 | _ACEOF | |
6367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6368 | if { (eval echo "$as_me:6368: \"$ac_link\"") >&5 |
503d2be0 AS |
6369 | (eval $ac_link) 2>&5 |
6370 | ac_status=$? | |
cc227489 | 6371 | echo "$as_me:6371: \$? = $ac_status" >&5 |
503d2be0 AS |
6372 | (exit $ac_status); } && |
6373 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6374 | { (eval echo "$as_me:6374: \"$ac_try\"") >&5 |
503d2be0 AS |
6375 | (eval $ac_try) 2>&5 |
6376 | ac_status=$? | |
cc227489 | 6377 | echo "$as_me:6377: \$? = $ac_status" >&5 |
503d2be0 | 6378 | (exit $ac_status); }; }; then |
73b77ee5 GM |
6379 | emacs_cv_x11_version_6=yes |
6380 | else | |
503d2be0 AS |
6381 | echo "$as_me: failed program was:" >&5 |
6382 | cat conftest.$ac_ext >&5 | |
6383 | emacs_cv_x11_version_6=no | |
73b77ee5 | 6384 | fi |
503d2be0 | 6385 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
73b77ee5 GM |
6386 | fi |
6387 | ||
6388 | if test $emacs_cv_x11_version_6 = yes; then | |
cc227489 | 6389 | echo "$as_me:6389: result: 6 or newer" >&5 |
503d2be0 AS |
6390 | echo "${ECHO_T}6 or newer" >&6 |
6391 | cat >>confdefs.h <<\EOF | |
73b77ee5 GM |
6392 | #define HAVE_X11R6 1 |
6393 | EOF | |
6394 | ||
6395 | else | |
cc227489 | 6396 | echo "$as_me:6396: result: before 6" >&5 |
503d2be0 | 6397 | echo "${ECHO_T}before 6" >&6 |
ba4481b5 DL |
6398 | fi |
6399 | fi | |
6400 | ||
6401 | if test "${window_system}" = "x11"; then | |
cc227489 | 6402 | echo "$as_me:6402: checking X11 version 5" >&5 |
503d2be0 AS |
6403 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
6404 | if test "${emacs_cv_x11_version_5+set}" = set; then | |
6405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 6406 | else |
503d2be0 | 6407 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6408 | #line 6408 "configure" |
ba4481b5 DL |
6409 | #include "confdefs.h" |
6410 | #include <X11/Xlib.h> | |
503d2be0 AS |
6411 | int |
6412 | main () | |
6413 | { | |
ba4481b5 DL |
6414 | #if XlibSpecificationRelease < 5 |
6415 | fail; | |
6416 | #endif | |
6417 | ||
503d2be0 AS |
6418 | ; |
6419 | return 0; | |
6420 | } | |
6421 | _ACEOF | |
6422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6423 | if { (eval echo "$as_me:6423: \"$ac_link\"") >&5 |
503d2be0 AS |
6424 | (eval $ac_link) 2>&5 |
6425 | ac_status=$? | |
cc227489 | 6426 | echo "$as_me:6426: \$? = $ac_status" >&5 |
503d2be0 AS |
6427 | (exit $ac_status); } && |
6428 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6429 | { (eval echo "$as_me:6429: \"$ac_try\"") >&5 |
503d2be0 AS |
6430 | (eval $ac_try) 2>&5 |
6431 | ac_status=$? | |
cc227489 | 6432 | echo "$as_me:6432: \$? = $ac_status" >&5 |
503d2be0 | 6433 | (exit $ac_status); }; }; then |
ba4481b5 DL |
6434 | emacs_cv_x11_version_5=yes |
6435 | else | |
503d2be0 AS |
6436 | echo "$as_me: failed program was:" >&5 |
6437 | cat conftest.$ac_ext >&5 | |
6438 | emacs_cv_x11_version_5=no | |
ba4481b5 | 6439 | fi |
503d2be0 | 6440 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ba4481b5 DL |
6441 | fi |
6442 | ||
6443 | if test $emacs_cv_x11_version_5 = yes; then | |
cc227489 | 6444 | echo "$as_me:6444: result: 5 or newer" >&5 |
503d2be0 | 6445 | echo "${ECHO_T}5 or newer" >&6 |
ba4481b5 | 6446 | HAVE_X11R5=yes |
503d2be0 | 6447 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
6448 | #define HAVE_X11R5 1 |
6449 | EOF | |
6450 | ||
6451 | else | |
6452 | HAVE_X11R5=no | |
cc227489 | 6453 | echo "$as_me:6453: result: before 5" >&5 |
503d2be0 | 6454 | echo "${ECHO_T}before 5" >&6 |
ba4481b5 DL |
6455 | fi |
6456 | fi | |
6457 | ||
6458 | if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
6459 | if test x"${HAVE_X11R5}" = xyes; then | |
cc227489 | 6460 | echo "$as_me:6460: checking X11 version 5 with Xaw" >&5 |
503d2be0 AS |
6461 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
6462 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
6463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 6464 | else |
503d2be0 | 6465 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6466 | #line 6466 "configure" |
ba4481b5 DL |
6467 | #include "confdefs.h" |
6468 | ||
6469 | #include <X11/Intrinsic.h> | |
6470 | #include <X11/Xaw/Simple.h> | |
503d2be0 AS |
6471 | int |
6472 | main () | |
6473 | { | |
ba4481b5 | 6474 | |
503d2be0 AS |
6475 | ; |
6476 | return 0; | |
6477 | } | |
6478 | _ACEOF | |
6479 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6480 | if { (eval echo "$as_me:6480: \"$ac_link\"") >&5 |
503d2be0 AS |
6481 | (eval $ac_link) 2>&5 |
6482 | ac_status=$? | |
cc227489 | 6483 | echo "$as_me:6483: \$? = $ac_status" >&5 |
503d2be0 AS |
6484 | (exit $ac_status); } && |
6485 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6486 | { (eval echo "$as_me:6486: \"$ac_try\"") >&5 |
503d2be0 AS |
6487 | (eval $ac_try) 2>&5 |
6488 | ac_status=$? | |
cc227489 | 6489 | echo "$as_me:6489: \$? = $ac_status" >&5 |
503d2be0 | 6490 | (exit $ac_status); }; }; then |
ba4481b5 DL |
6491 | emacs_cv_x11_version_5_with_xaw=yes |
6492 | else | |
503d2be0 AS |
6493 | echo "$as_me: failed program was:" >&5 |
6494 | cat conftest.$ac_ext >&5 | |
6495 | emacs_cv_x11_version_5_with_xaw=no | |
ba4481b5 | 6496 | fi |
503d2be0 | 6497 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ba4481b5 DL |
6498 | fi |
6499 | ||
6500 | if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
cc227489 | 6501 | echo "$as_me:6501: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
503d2be0 | 6502 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
ba4481b5 DL |
6503 | USE_X_TOOLKIT=LUCID |
6504 | else | |
cc227489 | 6505 | echo "$as_me:6505: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
503d2be0 | 6506 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
ba4481b5 DL |
6507 | USE_X_TOOLKIT=none |
6508 | fi | |
6509 | else | |
6510 | USE_X_TOOLKIT=none | |
6511 | fi | |
6512 | fi | |
6513 | ||
6514 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
6515 | ||
6516 | if test "${USE_X_TOOLKIT}" != "none"; then | |
cc227489 | 6517 | echo "$as_me:6517: checking X11 toolkit version" >&5 |
503d2be0 AS |
6518 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
6519 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
6520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 6521 | else |
503d2be0 | 6522 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6523 | #line 6523 "configure" |
ba4481b5 DL |
6524 | #include "confdefs.h" |
6525 | #include <X11/Intrinsic.h> | |
503d2be0 AS |
6526 | int |
6527 | main () | |
6528 | { | |
ba4481b5 DL |
6529 | #if XtSpecificationRelease < 6 |
6530 | fail; | |
6531 | #endif | |
6532 | ||
503d2be0 AS |
6533 | ; |
6534 | return 0; | |
6535 | } | |
6536 | _ACEOF | |
6537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6538 | if { (eval echo "$as_me:6538: \"$ac_link\"") >&5 |
503d2be0 AS |
6539 | (eval $ac_link) 2>&5 |
6540 | ac_status=$? | |
cc227489 | 6541 | echo "$as_me:6541: \$? = $ac_status" >&5 |
503d2be0 AS |
6542 | (exit $ac_status); } && |
6543 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6544 | { (eval echo "$as_me:6544: \"$ac_try\"") >&5 |
503d2be0 AS |
6545 | (eval $ac_try) 2>&5 |
6546 | ac_status=$? | |
cc227489 | 6547 | echo "$as_me:6547: \$? = $ac_status" >&5 |
503d2be0 | 6548 | (exit $ac_status); }; }; then |
ba4481b5 DL |
6549 | emacs_cv_x11_toolkit_version_6=yes |
6550 | else | |
503d2be0 AS |
6551 | echo "$as_me: failed program was:" >&5 |
6552 | cat conftest.$ac_ext >&5 | |
6553 | emacs_cv_x11_toolkit_version_6=no | |
ba4481b5 | 6554 | fi |
503d2be0 | 6555 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ba4481b5 DL |
6556 | fi |
6557 | ||
6558 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
6559 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
cc227489 | 6560 | echo "$as_me:6560: result: 6 or newer" >&5 |
503d2be0 AS |
6561 | echo "${ECHO_T}6 or newer" >&6 |
6562 | cat >>confdefs.h <<\EOF | |
ba4481b5 DL |
6563 | #define HAVE_X11XTR6 1 |
6564 | EOF | |
6565 | ||
6566 | else | |
cc227489 | 6567 | echo "$as_me:6567: result: before 6" >&5 |
503d2be0 | 6568 | echo "${ECHO_T}before 6" >&6 |
ba4481b5 DL |
6569 | fi |
6570 | ||
6571 | OLDLIBS="$LIBS" | |
6572 | if test x$HAVE_X11XTR6 = xyes; then | |
6573 | LIBS="-lXt -lSM -lICE $LIBS" | |
6574 | else | |
6575 | LIBS="-lXt $LIBS" | |
6576 | fi | |
503d2be0 | 6577 | |
cc227489 | 6578 | echo "$as_me:6578: checking for XmuConvertStandardSelection in -lXmu" >&5 |
503d2be0 AS |
6579 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
6580 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
6581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 6582 | else |
503d2be0 | 6583 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 6584 | LIBS="-lXmu $LIBS" |
503d2be0 | 6585 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6586 | #line 6586 "configure" |
ba4481b5 | 6587 | #include "confdefs.h" |
503d2be0 | 6588 | |
ba4481b5 | 6589 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
6590 | #ifdef __cplusplus |
6591 | extern "C" | |
6592 | #endif | |
ba4481b5 | 6593 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
6594 | builtin and then its argument prototype would still apply. */ |
6595 | char XmuConvertStandardSelection (); | |
6596 | int | |
6597 | main () | |
6598 | { | |
6599 | XmuConvertStandardSelection (); | |
6600 | ; | |
6601 | return 0; | |
6602 | } | |
6603 | _ACEOF | |
6604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6605 | if { (eval echo "$as_me:6605: \"$ac_link\"") >&5 |
503d2be0 AS |
6606 | (eval $ac_link) 2>&5 |
6607 | ac_status=$? | |
cc227489 | 6608 | echo "$as_me:6608: \$? = $ac_status" >&5 |
503d2be0 AS |
6609 | (exit $ac_status); } && |
6610 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6611 | { (eval echo "$as_me:6611: \"$ac_try\"") >&5 |
503d2be0 AS |
6612 | (eval $ac_try) 2>&5 |
6613 | ac_status=$? | |
cc227489 | 6614 | echo "$as_me:6614: \$? = $ac_status" >&5 |
503d2be0 AS |
6615 | (exit $ac_status); }; }; then |
6616 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
6617 | else | |
6618 | echo "$as_me: failed program was:" >&5 | |
6619 | cat conftest.$ac_ext >&5 | |
6620 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
6621 | fi | |
6622 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6623 | LIBS=$ac_check_lib_save_LIBS | |
6624 | fi | |
cc227489 | 6625 | echo "$as_me:6625: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
503d2be0 AS |
6626 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
6627 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
6628 | cat >>confdefs.h <<EOF | |
6629 | #define HAVE_LIBXMU 1 | |
ba4481b5 DL |
6630 | EOF |
6631 | ||
6632 | LIBS="-lXmu $LIBS" | |
6633 | ||
ba4481b5 DL |
6634 | fi |
6635 | ||
457b792c GM |
6636 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
6637 | fi | |
6638 | ||
6639 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
6640 | if test "${HAVE_X11}" = "yes"; then | |
6641 | if test "${USE_X_TOOLKIT}" != "none"; then | |
503d2be0 | 6642 | |
cc227489 | 6643 | echo "$as_me:6643: checking for XShapeQueryExtension in -lXext" >&5 |
503d2be0 AS |
6644 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
6645 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
6646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
457b792c | 6647 | else |
503d2be0 | 6648 | ac_check_lib_save_LIBS=$LIBS |
457b792c | 6649 | LIBS="-lXext $LIBS" |
503d2be0 | 6650 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6651 | #line 6651 "configure" |
457b792c | 6652 | #include "confdefs.h" |
503d2be0 | 6653 | |
457b792c | 6654 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
6655 | #ifdef __cplusplus |
6656 | extern "C" | |
6657 | #endif | |
457b792c | 6658 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
6659 | builtin and then its argument prototype would still apply. */ |
6660 | char XShapeQueryExtension (); | |
6661 | int | |
6662 | main () | |
6663 | { | |
6664 | XShapeQueryExtension (); | |
6665 | ; | |
6666 | return 0; | |
6667 | } | |
6668 | _ACEOF | |
6669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6670 | if { (eval echo "$as_me:6670: \"$ac_link\"") >&5 |
503d2be0 AS |
6671 | (eval $ac_link) 2>&5 |
6672 | ac_status=$? | |
cc227489 | 6673 | echo "$as_me:6673: \$? = $ac_status" >&5 |
503d2be0 AS |
6674 | (exit $ac_status); } && |
6675 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6676 | { (eval echo "$as_me:6676: \"$ac_try\"") >&5 |
503d2be0 AS |
6677 | (eval $ac_try) 2>&5 |
6678 | ac_status=$? | |
cc227489 | 6679 | echo "$as_me:6679: \$? = $ac_status" >&5 |
503d2be0 AS |
6680 | (exit $ac_status); }; }; then |
6681 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
6682 | else | |
6683 | echo "$as_me: failed program was:" >&5 | |
6684 | cat conftest.$ac_ext >&5 | |
6685 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
6686 | fi | |
6687 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6688 | LIBS=$ac_check_lib_save_LIBS | |
6689 | fi | |
cc227489 | 6690 | echo "$as_me:6690: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
503d2be0 AS |
6691 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
6692 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
6693 | cat >>confdefs.h <<EOF | |
6694 | #define HAVE_LIBXEXT 1 | |
457b792c GM |
6695 | EOF |
6696 | ||
6697 | LIBS="-lXext $LIBS" | |
6698 | ||
457b792c GM |
6699 | fi |
6700 | ||
6701 | fi | |
ba4481b5 DL |
6702 | fi |
6703 | ||
6704 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
cc227489 | 6705 | echo "$as_me:6705: checking for Motif version 2.1" >&5 |
503d2be0 AS |
6706 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
6707 | if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
6708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 6709 | else |
503d2be0 | 6710 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6711 | #line 6711 "configure" |
ba4481b5 DL |
6712 | #include "confdefs.h" |
6713 | #include <Xm/Xm.h> | |
503d2be0 AS |
6714 | int |
6715 | main () | |
6716 | { | |
ba4481b5 DL |
6717 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
6718 | int x = 5; | |
6719 | #else | |
6720 | Motif version prior to 2.1. | |
6721 | #endif | |
503d2be0 AS |
6722 | ; |
6723 | return 0; | |
6724 | } | |
6725 | _ACEOF | |
6726 | rm -f conftest.$ac_objext | |
cc227489 | 6727 | if { (eval echo "$as_me:6727: \"$ac_compile\"") >&5 |
503d2be0 AS |
6728 | (eval $ac_compile) 2>&5 |
6729 | ac_status=$? | |
cc227489 | 6730 | echo "$as_me:6730: \$? = $ac_status" >&5 |
503d2be0 AS |
6731 | (exit $ac_status); } && |
6732 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 6733 | { (eval echo "$as_me:6733: \"$ac_try\"") >&5 |
503d2be0 AS |
6734 | (eval $ac_try) 2>&5 |
6735 | ac_status=$? | |
cc227489 | 6736 | echo "$as_me:6736: \$? = $ac_status" >&5 |
503d2be0 | 6737 | (exit $ac_status); }; }; then |
ba4481b5 DL |
6738 | emacs_cv_motif_version_2_1=yes |
6739 | else | |
503d2be0 AS |
6740 | echo "$as_me: failed program was:" >&5 |
6741 | cat conftest.$ac_ext >&5 | |
6742 | emacs_cv_motif_version_2_1=no | |
ba4481b5 | 6743 | fi |
503d2be0 | 6744 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6745 | fi |
cc227489 | 6746 | echo "$as_me:6746: result: $emacs_cv_motif_version_2_1" >&5 |
503d2be0 | 6747 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
ba4481b5 DL |
6748 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
6749 | if test $emacs_cv_motif_version_2_1 = yes; then | |
169fe44e | 6750 | HAVE_LIBXP=no |
503d2be0 | 6751 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
6752 | #define HAVE_MOTIF_2_1 1 |
6753 | EOF | |
6754 | ||
cc227489 | 6755 | echo "$as_me:6755: checking for XpCreateContext in -lXp" >&5 |
503d2be0 AS |
6756 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
6757 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
6758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 6759 | else |
503d2be0 | 6760 | ac_check_lib_save_LIBS=$LIBS |
457b792c | 6761 | LIBS="-lXp $LIBS" |
503d2be0 | 6762 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6763 | #line 6763 "configure" |
ba4481b5 | 6764 | #include "confdefs.h" |
503d2be0 | 6765 | |
ba4481b5 | 6766 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
6767 | #ifdef __cplusplus |
6768 | extern "C" | |
6769 | #endif | |
ba4481b5 | 6770 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
6771 | builtin and then its argument prototype would still apply. */ |
6772 | char XpCreateContext (); | |
6773 | int | |
6774 | main () | |
6775 | { | |
6776 | XpCreateContext (); | |
6777 | ; | |
6778 | return 0; | |
6779 | } | |
6780 | _ACEOF | |
6781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6782 | if { (eval echo "$as_me:6782: \"$ac_link\"") >&5 |
503d2be0 AS |
6783 | (eval $ac_link) 2>&5 |
6784 | ac_status=$? | |
cc227489 | 6785 | echo "$as_me:6785: \$? = $ac_status" >&5 |
503d2be0 AS |
6786 | (exit $ac_status); } && |
6787 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6788 | { (eval echo "$as_me:6788: \"$ac_try\"") >&5 |
503d2be0 AS |
6789 | (eval $ac_try) 2>&5 |
6790 | ac_status=$? | |
cc227489 | 6791 | echo "$as_me:6791: \$? = $ac_status" >&5 |
503d2be0 AS |
6792 | (exit $ac_status); }; }; then |
6793 | ac_cv_lib_Xp_XpCreateContext=yes | |
6794 | else | |
6795 | echo "$as_me: failed program was:" >&5 | |
6796 | cat conftest.$ac_ext >&5 | |
6797 | ac_cv_lib_Xp_XpCreateContext=no | |
6798 | fi | |
6799 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6800 | LIBS=$ac_check_lib_save_LIBS | |
6801 | fi | |
cc227489 | 6802 | echo "$as_me:6802: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
503d2be0 AS |
6803 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
6804 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
48d4b120 | 6805 | HAVE_LIBXP=yes |
ba4481b5 DL |
6806 | fi |
6807 | ||
48d4b120 | 6808 | if test ${HAVE_LIBXP} = yes; then |
503d2be0 | 6809 | cat >>confdefs.h <<\EOF |
48d4b120 DL |
6810 | #define HAVE_LIBXP 1 |
6811 | EOF | |
6812 | ||
503d2be0 | 6813 | fi |
ba4481b5 DL |
6814 | fi |
6815 | fi | |
6816 | ||
6817 | ### Is -lXaw3d available? | |
6818 | HAVE_XAW3D=no | |
6819 | if test "${HAVE_X11}" = "yes"; then | |
6820 | if test "${USE_X_TOOLKIT}" != "none"; then | |
cc227489 | 6821 | echo "$as_me:6821: checking for X11/Xaw3d/Scrollbar.h" >&5 |
503d2be0 AS |
6822 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
6823 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
6824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 6825 | else |
503d2be0 | 6826 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6827 | #line 6827 "configure" |
ba4481b5 DL |
6828 | #include "confdefs.h" |
6829 | #include <X11/Xaw3d/Scrollbar.h> | |
503d2be0 | 6830 | _ACEOF |
cc227489 | 6831 | if { (eval echo "$as_me:6831: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
6832 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6833 | ac_status=$? | |
6834 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6835 | rm -f conftest.er1 | |
6836 | cat conftest.err >&5 | |
cc227489 | 6837 | echo "$as_me:6837: \$? = $ac_status" >&5 |
503d2be0 AS |
6838 | (exit $ac_status); } >/dev/null; then |
6839 | if test -s conftest.err; then | |
6840 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6841 | else | |
6842 | ac_cpp_err= | |
6843 | fi | |
6844 | else | |
6845 | ac_cpp_err=yes | |
6846 | fi | |
6847 | if test -z "$ac_cpp_err"; then | |
6848 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes | |
ba4481b5 | 6849 | else |
503d2be0 | 6850 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 6851 | cat conftest.$ac_ext >&5 |
503d2be0 | 6852 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
ba4481b5 | 6853 | fi |
503d2be0 | 6854 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 6855 | fi |
cc227489 | 6856 | echo "$as_me:6856: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
503d2be0 AS |
6857 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
6858 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then | |
cc227489 | 6859 | echo "$as_me:6859: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
503d2be0 AS |
6860 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
6861 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
6862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 6863 | else |
503d2be0 | 6864 | ac_check_lib_save_LIBS=$LIBS |
457b792c | 6865 | LIBS="-lXaw3d $LIBS" |
503d2be0 | 6866 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6867 | #line 6867 "configure" |
ba4481b5 | 6868 | #include "confdefs.h" |
503d2be0 | 6869 | |
ba4481b5 | 6870 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
6871 | #ifdef __cplusplus |
6872 | extern "C" | |
6873 | #endif | |
ba4481b5 | 6874 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
6875 | builtin and then its argument prototype would still apply. */ |
6876 | char XawScrollbarSetThumb (); | |
6877 | int | |
6878 | main () | |
6879 | { | |
6880 | XawScrollbarSetThumb (); | |
6881 | ; | |
6882 | return 0; | |
6883 | } | |
6884 | _ACEOF | |
6885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 6886 | if { (eval echo "$as_me:6886: \"$ac_link\"") >&5 |
503d2be0 AS |
6887 | (eval $ac_link) 2>&5 |
6888 | ac_status=$? | |
cc227489 | 6889 | echo "$as_me:6889: \$? = $ac_status" >&5 |
503d2be0 AS |
6890 | (exit $ac_status); } && |
6891 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 6892 | { (eval echo "$as_me:6892: \"$ac_try\"") >&5 |
503d2be0 AS |
6893 | (eval $ac_try) 2>&5 |
6894 | ac_status=$? | |
cc227489 | 6895 | echo "$as_me:6895: \$? = $ac_status" >&5 |
503d2be0 AS |
6896 | (exit $ac_status); }; }; then |
6897 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | |
6898 | else | |
6899 | echo "$as_me: failed program was:" >&5 | |
6900 | cat conftest.$ac_ext >&5 | |
6901 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | |
6902 | fi | |
6903 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6904 | LIBS=$ac_check_lib_save_LIBS | |
6905 | fi | |
cc227489 | 6906 | echo "$as_me:6906: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
503d2be0 AS |
6907 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
6908 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
ba4481b5 | 6909 | HAVE_XAW3D=yes |
ba4481b5 DL |
6910 | fi |
6911 | ||
ba4481b5 DL |
6912 | fi |
6913 | ||
ba4481b5 | 6914 | if test "${HAVE_XAW3D}" = "yes"; then |
503d2be0 | 6915 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
6916 | #define HAVE_XAW3D 1 |
6917 | EOF | |
6918 | ||
6919 | fi | |
6920 | fi | |
6921 | fi | |
ba4481b5 DL |
6922 | |
6923 | USE_TOOLKIT_SCROLL_BARS=no | |
6924 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
6925 | if test "${USE_X_TOOLKIT}" != "none"; then | |
6926 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
503d2be0 | 6927 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
6928 | #define USE_TOOLKIT_SCROLL_BARS 1 |
6929 | EOF | |
6930 | ||
6931 | HAVE_XAW3D=no | |
6932 | USE_TOOLKIT_SCROLL_BARS=yes | |
6933 | elif test "${HAVE_XAW3D}" = "yes"; then | |
503d2be0 | 6934 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
6935 | #define USE_TOOLKIT_SCROLL_BARS 1 |
6936 | EOF | |
6937 | ||
6938 | USE_TOOLKIT_SCROLL_BARS=yes | |
6939 | fi | |
6940 | fi | |
6941 | fi | |
6942 | ||
1d36487c | 6943 | if test "${with_xim}" != "no"; then |
503d2be0 | 6944 | cat >>confdefs.h <<\EOF |
1d36487c GM |
6945 | #define USE_XIM 1 |
6946 | EOF | |
6947 | ||
6948 | fi | |
6949 | ||
ba4481b5 DL |
6950 | ### Use -lXpm if available, unless `--with-xpm=no'. |
6951 | HAVE_XPM=no | |
6952 | if test "${HAVE_X11}" = "yes"; then | |
6953 | if test "${with_xpm}" != "no"; then | |
cc227489 | 6954 | echo "$as_me:6954: checking for X11/xpm.h" >&5 |
503d2be0 AS |
6955 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
6956 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
6957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 6958 | else |
503d2be0 | 6959 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 6960 | #line 6960 "configure" |
ba4481b5 DL |
6961 | #include "confdefs.h" |
6962 | #include <X11/xpm.h> | |
503d2be0 | 6963 | _ACEOF |
cc227489 | 6964 | if { (eval echo "$as_me:6964: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
6965 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6966 | ac_status=$? | |
6967 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6968 | rm -f conftest.er1 | |
6969 | cat conftest.err >&5 | |
cc227489 | 6970 | echo "$as_me:6970: \$? = $ac_status" >&5 |
503d2be0 AS |
6971 | (exit $ac_status); } >/dev/null; then |
6972 | if test -s conftest.err; then | |
6973 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6974 | else | |
6975 | ac_cpp_err= | |
6976 | fi | |
6977 | else | |
6978 | ac_cpp_err=yes | |
6979 | fi | |
6980 | if test -z "$ac_cpp_err"; then | |
6981 | ac_cv_header_X11_xpm_h=yes | |
ba4481b5 | 6982 | else |
503d2be0 | 6983 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 6984 | cat conftest.$ac_ext >&5 |
503d2be0 | 6985 | ac_cv_header_X11_xpm_h=no |
ba4481b5 | 6986 | fi |
503d2be0 | 6987 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 6988 | fi |
cc227489 | 6989 | echo "$as_me:6989: result: $ac_cv_header_X11_xpm_h" >&5 |
503d2be0 AS |
6990 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
6991 | if test $ac_cv_header_X11_xpm_h = yes; then | |
cc227489 | 6992 | echo "$as_me:6992: checking for XpmReadFileToPixmap in -lXpm" >&5 |
503d2be0 AS |
6993 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
6994 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
6995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 6996 | else |
503d2be0 | 6997 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 6998 | LIBS="-lXpm -lX11 $LIBS" |
503d2be0 | 6999 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7000 | #line 7000 "configure" |
ba4481b5 | 7001 | #include "confdefs.h" |
503d2be0 | 7002 | |
ba4481b5 | 7003 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7004 | #ifdef __cplusplus |
7005 | extern "C" | |
7006 | #endif | |
ba4481b5 | 7007 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
7008 | builtin and then its argument prototype would still apply. */ |
7009 | char XpmReadFileToPixmap (); | |
7010 | int | |
7011 | main () | |
7012 | { | |
7013 | XpmReadFileToPixmap (); | |
7014 | ; | |
7015 | return 0; | |
7016 | } | |
7017 | _ACEOF | |
7018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7019 | if { (eval echo "$as_me:7019: \"$ac_link\"") >&5 |
503d2be0 AS |
7020 | (eval $ac_link) 2>&5 |
7021 | ac_status=$? | |
cc227489 | 7022 | echo "$as_me:7022: \$? = $ac_status" >&5 |
503d2be0 AS |
7023 | (exit $ac_status); } && |
7024 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7025 | { (eval echo "$as_me:7025: \"$ac_try\"") >&5 |
503d2be0 AS |
7026 | (eval $ac_try) 2>&5 |
7027 | ac_status=$? | |
cc227489 | 7028 | echo "$as_me:7028: \$? = $ac_status" >&5 |
503d2be0 AS |
7029 | (exit $ac_status); }; }; then |
7030 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | |
7031 | else | |
7032 | echo "$as_me: failed program was:" >&5 | |
7033 | cat conftest.$ac_ext >&5 | |
7034 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no | |
7035 | fi | |
7036 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7037 | LIBS=$ac_check_lib_save_LIBS | |
7038 | fi | |
cc227489 | 7039 | echo "$as_me:7039: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
503d2be0 AS |
7040 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
7041 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
ba4481b5 | 7042 | HAVE_XPM=yes |
ba4481b5 DL |
7043 | fi |
7044 | ||
ba4481b5 DL |
7045 | fi |
7046 | ||
4b92c49a | 7047 | if test "${HAVE_XPM}" = "yes"; then |
cc227489 | 7048 | echo "$as_me:7048: checking for XpmReturnAllocPixels preprocessor define" >&5 |
503d2be0 AS |
7049 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
7050 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 7051 | #line 7051 "configure" |
4b92c49a GM |
7052 | #include "confdefs.h" |
7053 | #include "X11/xpm.h" | |
7054 | #ifndef XpmReturnAllocPixels | |
7055 | no_return_alloc_pixels | |
7056 | #endif | |
503d2be0 AS |
7057 | |
7058 | _ACEOF | |
4b92c49a GM |
7059 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7060 | egrep "no_return_alloc_pixels" >/dev/null 2>&1; then | |
4b92c49a GM |
7061 | HAVE_XPM=no |
7062 | else | |
4b92c49a GM |
7063 | HAVE_XPM=yes |
7064 | fi | |
7065 | rm -f conftest* | |
7066 | ||
5721ae13 | 7067 | if test "${HAVE_XPM}" = "yes"; then |
cc227489 | 7068 | echo "$as_me:7068: result: yes" >&5 |
503d2be0 | 7069 | echo "${ECHO_T}yes" >&6 |
5721ae13 | 7070 | else |
cc227489 | 7071 | echo "$as_me:7071: result: no" >&5 |
503d2be0 | 7072 | echo "${ECHO_T}no" >&6 |
5721ae13 | 7073 | fi |
ff8df3be | 7074 | fi |
ba4481b5 DL |
7075 | fi |
7076 | ||
7077 | if test "${HAVE_XPM}" = "yes"; then | |
503d2be0 | 7078 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
7079 | #define HAVE_XPM 1 |
7080 | EOF | |
7081 | ||
7082 | fi | |
7083 | fi | |
503d2be0 | 7084 | |
ba4481b5 DL |
7085 | ### Use -ljpeg if available, unless `--with-jpeg=no'. |
7086 | HAVE_JPEG=no | |
7087 | if test "${HAVE_X11}" = "yes"; then | |
7088 | if test "${with_jpeg}" != "no"; then | |
cc227489 | 7089 | echo "$as_me:7089: checking for jerror.h" >&5 |
503d2be0 AS |
7090 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
7091 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
7092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ffe36136 | 7093 | else |
503d2be0 | 7094 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7095 | #line 7095 "configure" |
ffe36136 GM |
7096 | #include "confdefs.h" |
7097 | #include <jerror.h> | |
503d2be0 | 7098 | _ACEOF |
cc227489 | 7099 | if { (eval echo "$as_me:7099: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
7100 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7101 | ac_status=$? | |
7102 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7103 | rm -f conftest.er1 | |
7104 | cat conftest.err >&5 | |
cc227489 | 7105 | echo "$as_me:7105: \$? = $ac_status" >&5 |
503d2be0 AS |
7106 | (exit $ac_status); } >/dev/null; then |
7107 | if test -s conftest.err; then | |
7108 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7109 | else | |
7110 | ac_cpp_err= | |
7111 | fi | |
7112 | else | |
7113 | ac_cpp_err=yes | |
7114 | fi | |
7115 | if test -z "$ac_cpp_err"; then | |
7116 | ac_cv_header_jerror_h=yes | |
ffe36136 | 7117 | else |
503d2be0 | 7118 | echo "$as_me: failed program was:" >&5 |
ffe36136 | 7119 | cat conftest.$ac_ext >&5 |
503d2be0 | 7120 | ac_cv_header_jerror_h=no |
ffe36136 | 7121 | fi |
503d2be0 | 7122 | rm -f conftest.err conftest.$ac_ext |
ffe36136 | 7123 | fi |
cc227489 | 7124 | echo "$as_me:7124: result: $ac_cv_header_jerror_h" >&5 |
503d2be0 AS |
7125 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
7126 | if test $ac_cv_header_jerror_h = yes; then | |
cc227489 | 7127 | echo "$as_me:7127: checking for jpeg_destroy_compress in -ljpeg" >&5 |
503d2be0 AS |
7128 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
7129 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
7130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7131 | else |
503d2be0 | 7132 | ac_check_lib_save_LIBS=$LIBS |
457b792c | 7133 | LIBS="-ljpeg $LIBS" |
503d2be0 | 7134 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7135 | #line 7135 "configure" |
ba4481b5 | 7136 | #include "confdefs.h" |
503d2be0 | 7137 | |
ba4481b5 | 7138 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7139 | #ifdef __cplusplus |
7140 | extern "C" | |
7141 | #endif | |
ba4481b5 | 7142 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
7143 | builtin and then its argument prototype would still apply. */ |
7144 | char jpeg_destroy_compress (); | |
7145 | int | |
7146 | main () | |
7147 | { | |
7148 | jpeg_destroy_compress (); | |
7149 | ; | |
7150 | return 0; | |
7151 | } | |
7152 | _ACEOF | |
7153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7154 | if { (eval echo "$as_me:7154: \"$ac_link\"") >&5 |
503d2be0 AS |
7155 | (eval $ac_link) 2>&5 |
7156 | ac_status=$? | |
cc227489 | 7157 | echo "$as_me:7157: \$? = $ac_status" >&5 |
503d2be0 AS |
7158 | (exit $ac_status); } && |
7159 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7160 | { (eval echo "$as_me:7160: \"$ac_try\"") >&5 |
503d2be0 AS |
7161 | (eval $ac_try) 2>&5 |
7162 | ac_status=$? | |
cc227489 | 7163 | echo "$as_me:7163: \$? = $ac_status" >&5 |
503d2be0 AS |
7164 | (exit $ac_status); }; }; then |
7165 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes | |
7166 | else | |
7167 | echo "$as_me: failed program was:" >&5 | |
7168 | cat conftest.$ac_ext >&5 | |
7169 | ac_cv_lib_jpeg_jpeg_destroy_compress=no | |
7170 | fi | |
7171 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7172 | LIBS=$ac_check_lib_save_LIBS | |
7173 | fi | |
cc227489 | 7174 | echo "$as_me:7174: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
503d2be0 AS |
7175 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
7176 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
ba4481b5 | 7177 | HAVE_JPEG=yes |
ffe36136 GM |
7178 | fi |
7179 | ||
ba4481b5 DL |
7180 | fi |
7181 | ||
ba4481b5 DL |
7182 | fi |
7183 | ||
7184 | if test "${HAVE_JPEG}" = "yes"; then | |
503d2be0 | 7185 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
7186 | #define HAVE_JPEG 1 |
7187 | EOF | |
7188 | ||
7189 | fi | |
7190 | fi | |
503d2be0 | 7191 | |
ba4481b5 DL |
7192 | ### Use -lpng if available, unless `--with-png=no'. |
7193 | HAVE_PNG=no | |
7194 | if test "${HAVE_X11}" = "yes"; then | |
7195 | if test "${with_png}" != "no"; then | |
cc227489 | 7196 | echo "$as_me:7196: checking for png.h" >&5 |
503d2be0 AS |
7197 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 |
7198 | if test "${ac_cv_header_png_h+set}" = set; then | |
7199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7200 | else |
503d2be0 | 7201 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7202 | #line 7202 "configure" |
ba4481b5 DL |
7203 | #include "confdefs.h" |
7204 | #include <png.h> | |
503d2be0 | 7205 | _ACEOF |
cc227489 | 7206 | if { (eval echo "$as_me:7206: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
7207 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7208 | ac_status=$? | |
7209 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7210 | rm -f conftest.er1 | |
7211 | cat conftest.err >&5 | |
cc227489 | 7212 | echo "$as_me:7212: \$? = $ac_status" >&5 |
503d2be0 AS |
7213 | (exit $ac_status); } >/dev/null; then |
7214 | if test -s conftest.err; then | |
7215 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7216 | else | |
7217 | ac_cpp_err= | |
7218 | fi | |
7219 | else | |
7220 | ac_cpp_err=yes | |
7221 | fi | |
7222 | if test -z "$ac_cpp_err"; then | |
7223 | ac_cv_header_png_h=yes | |
ba4481b5 | 7224 | else |
503d2be0 | 7225 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 7226 | cat conftest.$ac_ext >&5 |
503d2be0 | 7227 | ac_cv_header_png_h=no |
ba4481b5 | 7228 | fi |
503d2be0 | 7229 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 7230 | fi |
cc227489 | 7231 | echo "$as_me:7231: result: $ac_cv_header_png_h" >&5 |
503d2be0 AS |
7232 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 |
7233 | if test $ac_cv_header_png_h = yes; then | |
cc227489 | 7234 | echo "$as_me:7234: checking for png_get_channels in -lpng" >&5 |
503d2be0 AS |
7235 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
7236 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
7237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7238 | else |
503d2be0 | 7239 | ac_check_lib_save_LIBS=$LIBS |
457b792c | 7240 | LIBS="-lpng -lz -lm $LIBS" |
503d2be0 | 7241 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7242 | #line 7242 "configure" |
ba4481b5 | 7243 | #include "confdefs.h" |
503d2be0 | 7244 | |
ba4481b5 | 7245 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7246 | #ifdef __cplusplus |
7247 | extern "C" | |
7248 | #endif | |
ba4481b5 | 7249 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
7250 | builtin and then its argument prototype would still apply. */ |
7251 | char png_get_channels (); | |
7252 | int | |
7253 | main () | |
7254 | { | |
7255 | png_get_channels (); | |
7256 | ; | |
7257 | return 0; | |
7258 | } | |
7259 | _ACEOF | |
7260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7261 | if { (eval echo "$as_me:7261: \"$ac_link\"") >&5 |
503d2be0 AS |
7262 | (eval $ac_link) 2>&5 |
7263 | ac_status=$? | |
cc227489 | 7264 | echo "$as_me:7264: \$? = $ac_status" >&5 |
503d2be0 AS |
7265 | (exit $ac_status); } && |
7266 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7267 | { (eval echo "$as_me:7267: \"$ac_try\"") >&5 |
503d2be0 AS |
7268 | (eval $ac_try) 2>&5 |
7269 | ac_status=$? | |
cc227489 | 7270 | echo "$as_me:7270: \$? = $ac_status" >&5 |
503d2be0 AS |
7271 | (exit $ac_status); }; }; then |
7272 | ac_cv_lib_png_png_get_channels=yes | |
7273 | else | |
7274 | echo "$as_me: failed program was:" >&5 | |
7275 | cat conftest.$ac_ext >&5 | |
7276 | ac_cv_lib_png_png_get_channels=no | |
7277 | fi | |
7278 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7279 | LIBS=$ac_check_lib_save_LIBS | |
7280 | fi | |
cc227489 | 7281 | echo "$as_me:7281: result: $ac_cv_lib_png_png_get_channels" >&5 |
503d2be0 AS |
7282 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
7283 | if test $ac_cv_lib_png_png_get_channels = yes; then | |
ba4481b5 | 7284 | HAVE_PNG=yes |
ba4481b5 DL |
7285 | fi |
7286 | ||
ba4481b5 DL |
7287 | fi |
7288 | ||
ba4481b5 DL |
7289 | fi |
7290 | ||
7291 | if test "${HAVE_PNG}" = "yes"; then | |
503d2be0 | 7292 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
7293 | #define HAVE_PNG 1 |
7294 | EOF | |
7295 | ||
7296 | fi | |
7297 | fi | |
503d2be0 | 7298 | |
ba4481b5 DL |
7299 | ### Use -ltiff if available, unless `--with-tiff=no'. |
7300 | HAVE_TIFF=no | |
7301 | if test "${HAVE_X11}" = "yes"; then | |
7302 | if test "${with_tiff}" != "no"; then | |
cc227489 | 7303 | echo "$as_me:7303: checking for tiffio.h" >&5 |
503d2be0 AS |
7304 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
7305 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
7306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7307 | else |
503d2be0 | 7308 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7309 | #line 7309 "configure" |
ba4481b5 DL |
7310 | #include "confdefs.h" |
7311 | #include <tiffio.h> | |
503d2be0 | 7312 | _ACEOF |
cc227489 | 7313 | if { (eval echo "$as_me:7313: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
7314 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7315 | ac_status=$? | |
7316 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7317 | rm -f conftest.er1 | |
7318 | cat conftest.err >&5 | |
cc227489 | 7319 | echo "$as_me:7319: \$? = $ac_status" >&5 |
503d2be0 AS |
7320 | (exit $ac_status); } >/dev/null; then |
7321 | if test -s conftest.err; then | |
7322 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7323 | else | |
7324 | ac_cpp_err= | |
7325 | fi | |
7326 | else | |
7327 | ac_cpp_err=yes | |
7328 | fi | |
7329 | if test -z "$ac_cpp_err"; then | |
7330 | ac_cv_header_tiffio_h=yes | |
ba4481b5 | 7331 | else |
503d2be0 | 7332 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 7333 | cat conftest.$ac_ext >&5 |
503d2be0 | 7334 | ac_cv_header_tiffio_h=no |
ba4481b5 | 7335 | fi |
503d2be0 | 7336 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 7337 | fi |
cc227489 | 7338 | echo "$as_me:7338: result: $ac_cv_header_tiffio_h" >&5 |
503d2be0 AS |
7339 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
7340 | if test $ac_cv_header_tiffio_h = yes; then | |
457b792c | 7341 | tifflibs="-lz -lm" |
3b3cc4a4 KR |
7342 | # At least one tiff package requires the jpeg library. |
7343 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
cc227489 | 7344 | echo "$as_me:7344: checking for TIFFGetVersion in -ltiff" >&5 |
503d2be0 AS |
7345 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
7346 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
7347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7348 | else |
503d2be0 | 7349 | ac_check_lib_save_LIBS=$LIBS |
3b3cc4a4 | 7350 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 7351 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7352 | #line 7352 "configure" |
ba4481b5 | 7353 | #include "confdefs.h" |
503d2be0 | 7354 | |
ba4481b5 | 7355 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7356 | #ifdef __cplusplus |
7357 | extern "C" | |
7358 | #endif | |
ba4481b5 | 7359 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
7360 | builtin and then its argument prototype would still apply. */ |
7361 | char TIFFGetVersion (); | |
7362 | int | |
7363 | main () | |
7364 | { | |
7365 | TIFFGetVersion (); | |
7366 | ; | |
7367 | return 0; | |
7368 | } | |
7369 | _ACEOF | |
7370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7371 | if { (eval echo "$as_me:7371: \"$ac_link\"") >&5 |
503d2be0 AS |
7372 | (eval $ac_link) 2>&5 |
7373 | ac_status=$? | |
cc227489 | 7374 | echo "$as_me:7374: \$? = $ac_status" >&5 |
503d2be0 AS |
7375 | (exit $ac_status); } && |
7376 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7377 | { (eval echo "$as_me:7377: \"$ac_try\"") >&5 |
503d2be0 AS |
7378 | (eval $ac_try) 2>&5 |
7379 | ac_status=$? | |
cc227489 | 7380 | echo "$as_me:7380: \$? = $ac_status" >&5 |
503d2be0 AS |
7381 | (exit $ac_status); }; }; then |
7382 | ac_cv_lib_tiff_TIFFGetVersion=yes | |
7383 | else | |
7384 | echo "$as_me: failed program was:" >&5 | |
7385 | cat conftest.$ac_ext >&5 | |
7386 | ac_cv_lib_tiff_TIFFGetVersion=no | |
7387 | fi | |
7388 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7389 | LIBS=$ac_check_lib_save_LIBS | |
7390 | fi | |
cc227489 | 7391 | echo "$as_me:7391: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
503d2be0 AS |
7392 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
7393 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
ba4481b5 | 7394 | HAVE_TIFF=yes |
ba4481b5 DL |
7395 | fi |
7396 | ||
ba4481b5 DL |
7397 | fi |
7398 | ||
ba4481b5 DL |
7399 | fi |
7400 | ||
7401 | if test "${HAVE_TIFF}" = "yes"; then | |
503d2be0 | 7402 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
7403 | #define HAVE_TIFF 1 |
7404 | EOF | |
7405 | ||
7406 | fi | |
7407 | fi | |
503d2be0 | 7408 | |
ba4481b5 DL |
7409 | ### Use -lgif if available, unless `--with-gif=no'. |
7410 | HAVE_GIF=no | |
7411 | if test "${HAVE_X11}" = "yes"; then | |
7412 | if test "${with_gif}" != "no"; then | |
cc227489 | 7413 | echo "$as_me:7413: checking for gif_lib.h" >&5 |
503d2be0 AS |
7414 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
7415 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
7416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7417 | else |
503d2be0 | 7418 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7419 | #line 7419 "configure" |
ba4481b5 DL |
7420 | #include "confdefs.h" |
7421 | #include <gif_lib.h> | |
503d2be0 | 7422 | _ACEOF |
cc227489 | 7423 | if { (eval echo "$as_me:7423: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
7424 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7425 | ac_status=$? | |
7426 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7427 | rm -f conftest.er1 | |
7428 | cat conftest.err >&5 | |
cc227489 | 7429 | echo "$as_me:7429: \$? = $ac_status" >&5 |
503d2be0 AS |
7430 | (exit $ac_status); } >/dev/null; then |
7431 | if test -s conftest.err; then | |
7432 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7433 | else | |
7434 | ac_cpp_err= | |
7435 | fi | |
7436 | else | |
7437 | ac_cpp_err=yes | |
7438 | fi | |
7439 | if test -z "$ac_cpp_err"; then | |
7440 | ac_cv_header_gif_lib_h=yes | |
ba4481b5 | 7441 | else |
503d2be0 | 7442 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 7443 | cat conftest.$ac_ext >&5 |
503d2be0 | 7444 | ac_cv_header_gif_lib_h=no |
ba4481b5 | 7445 | fi |
503d2be0 | 7446 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 7447 | fi |
cc227489 | 7448 | echo "$as_me:7448: result: $ac_cv_header_gif_lib_h" >&5 |
503d2be0 AS |
7449 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
7450 | if test $ac_cv_header_gif_lib_h = yes; then | |
cc227489 | 7451 | echo "$as_me:7451: checking for DGifOpen in -lungif" >&5 |
503d2be0 AS |
7452 | echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6 |
7453 | if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then | |
7454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7455 | else |
503d2be0 | 7456 | ac_check_lib_save_LIBS=$LIBS |
457b792c | 7457 | LIBS="-lungif $LIBS" |
503d2be0 | 7458 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7459 | #line 7459 "configure" |
ba4481b5 | 7460 | #include "confdefs.h" |
503d2be0 | 7461 | |
ba4481b5 | 7462 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7463 | #ifdef __cplusplus |
7464 | extern "C" | |
7465 | #endif | |
ba4481b5 | 7466 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
7467 | builtin and then its argument prototype would still apply. */ |
7468 | char DGifOpen (); | |
7469 | int | |
7470 | main () | |
7471 | { | |
7472 | DGifOpen (); | |
7473 | ; | |
7474 | return 0; | |
7475 | } | |
7476 | _ACEOF | |
7477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7478 | if { (eval echo "$as_me:7478: \"$ac_link\"") >&5 |
503d2be0 AS |
7479 | (eval $ac_link) 2>&5 |
7480 | ac_status=$? | |
cc227489 | 7481 | echo "$as_me:7481: \$? = $ac_status" >&5 |
503d2be0 AS |
7482 | (exit $ac_status); } && |
7483 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7484 | { (eval echo "$as_me:7484: \"$ac_try\"") >&5 |
503d2be0 AS |
7485 | (eval $ac_try) 2>&5 |
7486 | ac_status=$? | |
cc227489 | 7487 | echo "$as_me:7487: \$? = $ac_status" >&5 |
503d2be0 AS |
7488 | (exit $ac_status); }; }; then |
7489 | ac_cv_lib_ungif_DGifOpen=yes | |
7490 | else | |
7491 | echo "$as_me: failed program was:" >&5 | |
7492 | cat conftest.$ac_ext >&5 | |
7493 | ac_cv_lib_ungif_DGifOpen=no | |
7494 | fi | |
7495 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7496 | LIBS=$ac_check_lib_save_LIBS | |
7497 | fi | |
cc227489 | 7498 | echo "$as_me:7498: result: $ac_cv_lib_ungif_DGifOpen" >&5 |
503d2be0 AS |
7499 | echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6 |
7500 | if test $ac_cv_lib_ungif_DGifOpen = yes; then | |
ba4481b5 | 7501 | HAVE_GIF=yes |
ba4481b5 DL |
7502 | fi |
7503 | ||
ba4481b5 DL |
7504 | fi |
7505 | ||
ba4481b5 DL |
7506 | fi |
7507 | ||
7508 | if test "${HAVE_GIF}" = "yes"; then | |
503d2be0 | 7509 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
7510 | #define HAVE_GIF 1 |
7511 | EOF | |
7512 | ||
7513 | fi | |
7514 | fi | |
7515 | ||
7516 | # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
cc227489 | 7517 | echo "$as_me:7517: checking whether netdb declares h_errno" >&5 |
503d2be0 AS |
7518 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
7519 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
7520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7521 | else |
503d2be0 | 7522 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7523 | #line 7523 "configure" |
ba4481b5 DL |
7524 | #include "confdefs.h" |
7525 | #include <netdb.h> | |
503d2be0 AS |
7526 | int |
7527 | main () | |
7528 | { | |
ba4481b5 | 7529 | return h_errno; |
503d2be0 AS |
7530 | ; |
7531 | return 0; | |
7532 | } | |
7533 | _ACEOF | |
7534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7535 | if { (eval echo "$as_me:7535: \"$ac_link\"") >&5 |
503d2be0 AS |
7536 | (eval $ac_link) 2>&5 |
7537 | ac_status=$? | |
cc227489 | 7538 | echo "$as_me:7538: \$? = $ac_status" >&5 |
503d2be0 AS |
7539 | (exit $ac_status); } && |
7540 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7541 | { (eval echo "$as_me:7541: \"$ac_try\"") >&5 |
503d2be0 AS |
7542 | (eval $ac_try) 2>&5 |
7543 | ac_status=$? | |
cc227489 | 7544 | echo "$as_me:7544: \$? = $ac_status" >&5 |
503d2be0 | 7545 | (exit $ac_status); }; }; then |
ba4481b5 DL |
7546 | emacs_cv_netdb_declares_h_errno=yes |
7547 | else | |
503d2be0 AS |
7548 | echo "$as_me: failed program was:" >&5 |
7549 | cat conftest.$ac_ext >&5 | |
7550 | emacs_cv_netdb_declares_h_errno=no | |
ba4481b5 | 7551 | fi |
503d2be0 | 7552 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 7553 | fi |
cc227489 | 7554 | echo "$as_me:7554: result: $emacs_cv_netdb_declares_h_errno" >&5 |
503d2be0 | 7555 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
ba4481b5 | 7556 | if test $emacs_cv_netdb_declares_h_errno = yes; then |
503d2be0 | 7557 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
7558 | #define HAVE_H_ERRNO 1 |
7559 | EOF | |
7560 | ||
7561 | fi | |
7562 | ||
7563 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7564 | # for constant arguments. Useless! | |
cc227489 | 7565 | echo "$as_me:7565: checking for working alloca.h" >&5 |
503d2be0 AS |
7566 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
7567 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
7568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7569 | else |
503d2be0 | 7570 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7571 | #line 7571 "configure" |
ba4481b5 DL |
7572 | #include "confdefs.h" |
7573 | #include <alloca.h> | |
503d2be0 AS |
7574 | int |
7575 | main () | |
7576 | { | |
7577 | char *p = (char *) alloca (2 * sizeof (int)); | |
7578 | ; | |
7579 | return 0; | |
7580 | } | |
7581 | _ACEOF | |
7582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7583 | if { (eval echo "$as_me:7583: \"$ac_link\"") >&5 |
503d2be0 AS |
7584 | (eval $ac_link) 2>&5 |
7585 | ac_status=$? | |
cc227489 | 7586 | echo "$as_me:7586: \$? = $ac_status" >&5 |
503d2be0 AS |
7587 | (exit $ac_status); } && |
7588 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7589 | { (eval echo "$as_me:7589: \"$ac_try\"") >&5 |
503d2be0 AS |
7590 | (eval $ac_try) 2>&5 |
7591 | ac_status=$? | |
cc227489 | 7592 | echo "$as_me:7592: \$? = $ac_status" >&5 |
503d2be0 AS |
7593 | (exit $ac_status); }; }; then |
7594 | ac_cv_working_alloca_h=yes | |
7595 | else | |
7596 | echo "$as_me: failed program was:" >&5 | |
7597 | cat conftest.$ac_ext >&5 | |
7598 | ac_cv_working_alloca_h=no | |
7599 | fi | |
7600 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7601 | fi | |
cc227489 | 7602 | echo "$as_me:7602: result: $ac_cv_working_alloca_h" >&5 |
503d2be0 AS |
7603 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
7604 | if test $ac_cv_working_alloca_h = yes; then | |
7605 | ||
7606 | cat >>confdefs.h <<\EOF | |
ba4481b5 DL |
7607 | #define HAVE_ALLOCA_H 1 |
7608 | EOF | |
7609 | ||
7610 | fi | |
7611 | ||
cc227489 | 7612 | echo "$as_me:7612: checking for alloca" >&5 |
503d2be0 AS |
7613 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
7614 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
7615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7616 | else |
503d2be0 | 7617 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7618 | #line 7618 "configure" |
ba4481b5 | 7619 | #include "confdefs.h" |
ba4481b5 DL |
7620 | #ifdef __GNUC__ |
7621 | # define alloca __builtin_alloca | |
7622 | #else | |
c4bb2108 DL |
7623 | # ifdef _MSC_VER |
7624 | # include <malloc.h> | |
7625 | # define alloca _alloca | |
ba4481b5 | 7626 | # else |
c4bb2108 DL |
7627 | # if HAVE_ALLOCA_H |
7628 | # include <alloca.h> | |
22afa6e8 | 7629 | # else |
c4bb2108 DL |
7630 | # ifdef _AIX |
7631 | #pragma alloca | |
7632 | # else | |
7633 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
ba4481b5 | 7634 | char *alloca (); |
c4bb2108 | 7635 | # endif |
ba4481b5 DL |
7636 | # endif |
7637 | # endif | |
7638 | # endif | |
7639 | #endif | |
7640 | ||
503d2be0 AS |
7641 | int |
7642 | main () | |
7643 | { | |
7644 | char *p = (char *) alloca (1); | |
7645 | ; | |
7646 | return 0; | |
7647 | } | |
7648 | _ACEOF | |
7649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7650 | if { (eval echo "$as_me:7650: \"$ac_link\"") >&5 |
503d2be0 AS |
7651 | (eval $ac_link) 2>&5 |
7652 | ac_status=$? | |
cc227489 | 7653 | echo "$as_me:7653: \$? = $ac_status" >&5 |
503d2be0 AS |
7654 | (exit $ac_status); } && |
7655 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7656 | { (eval echo "$as_me:7656: \"$ac_try\"") >&5 |
503d2be0 AS |
7657 | (eval $ac_try) 2>&5 |
7658 | ac_status=$? | |
cc227489 | 7659 | echo "$as_me:7659: \$? = $ac_status" >&5 |
503d2be0 | 7660 | (exit $ac_status); }; }; then |
ba4481b5 DL |
7661 | ac_cv_func_alloca_works=yes |
7662 | else | |
503d2be0 AS |
7663 | echo "$as_me: failed program was:" >&5 |
7664 | cat conftest.$ac_ext >&5 | |
7665 | ac_cv_func_alloca_works=no | |
ba4481b5 | 7666 | fi |
503d2be0 | 7667 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 7668 | fi |
cc227489 | 7669 | echo "$as_me:7669: result: $ac_cv_func_alloca_works" >&5 |
503d2be0 | 7670 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
ba4481b5 | 7671 | |
ba4481b5 | 7672 | if test $ac_cv_func_alloca_works = yes; then |
503d2be0 AS |
7673 | |
7674 | cat >>confdefs.h <<\EOF | |
ba4481b5 DL |
7675 | #define HAVE_ALLOCA 1 |
7676 | EOF | |
7677 | ||
503d2be0 | 7678 | else |
ba4481b5 | 7679 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
503d2be0 AS |
7680 | # that cause trouble. Some versions do not even contain alloca or |
7681 | # contain a buggy version. If you still want to use their alloca, | |
7682 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7683 | ||
7684 | ALLOCA=alloca.$ac_objext | |
7685 | ||
7686 | cat >>confdefs.h <<\EOF | |
ba4481b5 DL |
7687 | #define C_ALLOCA 1 |
7688 | EOF | |
7689 | ||
cc227489 | 7690 | echo "$as_me:7690: checking whether \`alloca.c' needs Cray hooks" >&5 |
503d2be0 AS |
7691 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
7692 | if test "${ac_cv_os_cray+set}" = set; then | |
7693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7694 | else |
503d2be0 | 7695 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7696 | #line 7696 "configure" |
ba4481b5 DL |
7697 | #include "confdefs.h" |
7698 | #if defined(CRAY) && ! defined(CRAY2) | |
7699 | webecray | |
7700 | #else | |
7701 | wenotbecray | |
7702 | #endif | |
7703 | ||
503d2be0 | 7704 | _ACEOF |
ba4481b5 DL |
7705 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7706 | egrep "webecray" >/dev/null 2>&1; then | |
ba4481b5 DL |
7707 | ac_cv_os_cray=yes |
7708 | else | |
ba4481b5 DL |
7709 | ac_cv_os_cray=no |
7710 | fi | |
7711 | rm -f conftest* | |
7712 | ||
7713 | fi | |
cc227489 | 7714 | echo "$as_me:7714: result: $ac_cv_os_cray" >&5 |
503d2be0 | 7715 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
ba4481b5 | 7716 | if test $ac_cv_os_cray = yes; then |
503d2be0 AS |
7717 | for ac_func in _getb67 GETB67 getb67; do |
7718 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
cc227489 | 7719 | echo "$as_me:7719: checking for $ac_func" >&5 |
503d2be0 AS |
7720 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7721 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7723 | else |
503d2be0 | 7724 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7725 | #line 7725 "configure" |
ba4481b5 DL |
7726 | #include "confdefs.h" |
7727 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 7728 | which can conflict with char $ac_func (); below. */ |
ba4481b5 DL |
7729 | #include <assert.h> |
7730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
7731 | #ifdef __cplusplus |
7732 | extern "C" | |
7733 | #endif | |
ba4481b5 | 7734 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
7735 | builtin and then its argument prototype would still apply. */ |
7736 | char $ac_func (); | |
7737 | char (*f) (); | |
ba4481b5 | 7738 | |
503d2be0 AS |
7739 | int |
7740 | main () | |
7741 | { | |
ba4481b5 DL |
7742 | /* The GNU C library defines this for functions which it implements |
7743 | to always fail with ENOSYS. Some functions are actually named | |
7744 | something starting with __ and the normal name is an alias. */ | |
7745 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7746 | choke me | |
7747 | #else | |
503d2be0 | 7748 | f = $ac_func; |
ba4481b5 DL |
7749 | #endif |
7750 | ||
503d2be0 AS |
7751 | ; |
7752 | return 0; | |
7753 | } | |
7754 | _ACEOF | |
7755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7756 | if { (eval echo "$as_me:7756: \"$ac_link\"") >&5 |
503d2be0 AS |
7757 | (eval $ac_link) 2>&5 |
7758 | ac_status=$? | |
cc227489 | 7759 | echo "$as_me:7759: \$? = $ac_status" >&5 |
503d2be0 AS |
7760 | (exit $ac_status); } && |
7761 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7762 | { (eval echo "$as_me:7762: \"$ac_try\"") >&5 |
503d2be0 AS |
7763 | (eval $ac_try) 2>&5 |
7764 | ac_status=$? | |
cc227489 | 7765 | echo "$as_me:7765: \$? = $ac_status" >&5 |
503d2be0 AS |
7766 | (exit $ac_status); }; }; then |
7767 | eval "$as_ac_var=yes" | |
7768 | else | |
7769 | echo "$as_me: failed program was:" >&5 | |
7770 | cat conftest.$ac_ext >&5 | |
7771 | eval "$as_ac_var=no" | |
7772 | fi | |
7773 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7774 | fi | |
cc227489 | 7775 | echo "$as_me:7775: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
7776 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7777 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7778 | ||
7779 | cat >>confdefs.h <<EOF | |
ba4481b5 DL |
7780 | #define CRAY_STACKSEG_END $ac_func |
7781 | EOF | |
7782 | ||
503d2be0 | 7783 | break |
ba4481b5 DL |
7784 | fi |
7785 | ||
503d2be0 | 7786 | done |
ba4481b5 DL |
7787 | fi |
7788 | ||
cc227489 | 7789 | echo "$as_me:7789: checking stack direction for C alloca" >&5 |
503d2be0 AS |
7790 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
7791 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
7792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
7793 | else |
7794 | if test "$cross_compiling" = yes; then | |
7795 | ac_cv_c_stack_direction=0 | |
7796 | else | |
503d2be0 | 7797 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7798 | #line 7798 "configure" |
ba4481b5 | 7799 | #include "confdefs.h" |
503d2be0 | 7800 | int |
ba4481b5 DL |
7801 | find_stack_direction () |
7802 | { | |
7803 | static char *addr = 0; | |
7804 | auto char dummy; | |
7805 | if (addr == 0) | |
7806 | { | |
7807 | addr = &dummy; | |
7808 | return find_stack_direction (); | |
7809 | } | |
7810 | else | |
7811 | return (&dummy > addr) ? 1 : -1; | |
7812 | } | |
503d2be0 AS |
7813 | |
7814 | int | |
ba4481b5 DL |
7815 | main () |
7816 | { | |
503d2be0 | 7817 | exit (find_stack_direction () < 0); |
ba4481b5 | 7818 | } |
503d2be0 AS |
7819 | _ACEOF |
7820 | rm -f conftest$ac_exeext | |
cc227489 | 7821 | if { (eval echo "$as_me:7821: \"$ac_link\"") >&5 |
503d2be0 AS |
7822 | (eval $ac_link) 2>&5 |
7823 | ac_status=$? | |
cc227489 | 7824 | echo "$as_me:7824: \$? = $ac_status" >&5 |
503d2be0 | 7825 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
cc227489 | 7826 | { (eval echo "$as_me:7826: \"$ac_try\"") >&5 |
503d2be0 AS |
7827 | (eval $ac_try) 2>&5 |
7828 | ac_status=$? | |
cc227489 | 7829 | echo "$as_me:7829: \$? = $ac_status" >&5 |
503d2be0 | 7830 | (exit $ac_status); }; }; then |
ba4481b5 DL |
7831 | ac_cv_c_stack_direction=1 |
7832 | else | |
503d2be0 AS |
7833 | echo "$as_me: program exited with status $ac_status" >&5 |
7834 | echo "$as_me: failed program was:" >&5 | |
7835 | cat conftest.$ac_ext >&5 | |
7836 | ac_cv_c_stack_direction=-1 | |
ba4481b5 | 7837 | fi |
503d2be0 | 7838 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 7839 | fi |
ba4481b5 | 7840 | fi |
cc227489 | 7841 | echo "$as_me:7841: result: $ac_cv_c_stack_direction" >&5 |
503d2be0 | 7842 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
ba4481b5 | 7843 | |
503d2be0 | 7844 | cat >>confdefs.h <<EOF |
ba4481b5 DL |
7845 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
7846 | EOF | |
7847 | ||
7848 | fi | |
7849 | ||
ba4481b5 DL |
7850 | # fmod, logb, and frexp are found in -lm on most systems. |
7851 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
503d2be0 | 7852 | |
cc227489 | 7853 | echo "$as_me:7853: checking for sqrt in -lm" >&5 |
503d2be0 AS |
7854 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
7855 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
7856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7857 | else |
503d2be0 | 7858 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 7859 | LIBS="-lm $LIBS" |
503d2be0 | 7860 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7861 | #line 7861 "configure" |
ba4481b5 | 7862 | #include "confdefs.h" |
503d2be0 | 7863 | |
ba4481b5 | 7864 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7865 | #ifdef __cplusplus |
7866 | extern "C" | |
7867 | #endif | |
ba4481b5 | 7868 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
7869 | builtin and then its argument prototype would still apply. */ |
7870 | char sqrt (); | |
7871 | int | |
7872 | main () | |
7873 | { | |
7874 | sqrt (); | |
7875 | ; | |
7876 | return 0; | |
7877 | } | |
7878 | _ACEOF | |
7879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7880 | if { (eval echo "$as_me:7880: \"$ac_link\"") >&5 |
503d2be0 AS |
7881 | (eval $ac_link) 2>&5 |
7882 | ac_status=$? | |
cc227489 | 7883 | echo "$as_me:7883: \$? = $ac_status" >&5 |
503d2be0 AS |
7884 | (exit $ac_status); } && |
7885 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7886 | { (eval echo "$as_me:7886: \"$ac_try\"") >&5 |
503d2be0 AS |
7887 | (eval $ac_try) 2>&5 |
7888 | ac_status=$? | |
cc227489 | 7889 | echo "$as_me:7889: \$? = $ac_status" >&5 |
503d2be0 AS |
7890 | (exit $ac_status); }; }; then |
7891 | ac_cv_lib_m_sqrt=yes | |
7892 | else | |
7893 | echo "$as_me: failed program was:" >&5 | |
7894 | cat conftest.$ac_ext >&5 | |
7895 | ac_cv_lib_m_sqrt=no | |
7896 | fi | |
7897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7898 | LIBS=$ac_check_lib_save_LIBS | |
7899 | fi | |
cc227489 | 7900 | echo "$as_me:7900: result: $ac_cv_lib_m_sqrt" >&5 |
503d2be0 AS |
7901 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
7902 | if test $ac_cv_lib_m_sqrt = yes; then | |
7903 | cat >>confdefs.h <<EOF | |
7904 | #define HAVE_LIBM 1 | |
ba4481b5 DL |
7905 | EOF |
7906 | ||
7907 | LIBS="-lm $LIBS" | |
7908 | ||
ba4481b5 DL |
7909 | fi |
7910 | ||
ba4481b5 | 7911 | # Check for mail-locking functions in a "mail" library |
503d2be0 | 7912 | |
cc227489 | 7913 | echo "$as_me:7913: checking for maillock in -lmail" >&5 |
503d2be0 AS |
7914 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
7915 | if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7917 | else |
503d2be0 | 7918 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 7919 | LIBS="-lmail $LIBS" |
503d2be0 | 7920 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7921 | #line 7921 "configure" |
ba4481b5 | 7922 | #include "confdefs.h" |
503d2be0 | 7923 | |
ba4481b5 | 7924 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7925 | #ifdef __cplusplus |
7926 | extern "C" | |
7927 | #endif | |
ba4481b5 | 7928 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
7929 | builtin and then its argument prototype would still apply. */ |
7930 | char maillock (); | |
7931 | int | |
7932 | main () | |
7933 | { | |
7934 | maillock (); | |
7935 | ; | |
7936 | return 0; | |
7937 | } | |
7938 | _ACEOF | |
7939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7940 | if { (eval echo "$as_me:7940: \"$ac_link\"") >&5 |
503d2be0 AS |
7941 | (eval $ac_link) 2>&5 |
7942 | ac_status=$? | |
cc227489 | 7943 | echo "$as_me:7943: \$? = $ac_status" >&5 |
503d2be0 AS |
7944 | (exit $ac_status); } && |
7945 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 7946 | { (eval echo "$as_me:7946: \"$ac_try\"") >&5 |
503d2be0 AS |
7947 | (eval $ac_try) 2>&5 |
7948 | ac_status=$? | |
cc227489 | 7949 | echo "$as_me:7949: \$? = $ac_status" >&5 |
503d2be0 AS |
7950 | (exit $ac_status); }; }; then |
7951 | ac_cv_lib_mail_maillock=yes | |
7952 | else | |
7953 | echo "$as_me: failed program was:" >&5 | |
7954 | cat conftest.$ac_ext >&5 | |
7955 | ac_cv_lib_mail_maillock=no | |
7956 | fi | |
7957 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7958 | LIBS=$ac_check_lib_save_LIBS | |
7959 | fi | |
cc227489 | 7960 | echo "$as_me:7960: result: $ac_cv_lib_mail_maillock" >&5 |
503d2be0 AS |
7961 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
7962 | if test $ac_cv_lib_mail_maillock = yes; then | |
7963 | cat >>confdefs.h <<EOF | |
7964 | #define HAVE_LIBMAIL 1 | |
ba4481b5 DL |
7965 | EOF |
7966 | ||
7967 | LIBS="-lmail $LIBS" | |
7968 | ||
ba4481b5 DL |
7969 | fi |
7970 | ||
cc227489 | 7971 | echo "$as_me:7971: checking for maillock in -llockfile" >&5 |
503d2be0 AS |
7972 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
7973 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
7974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 7975 | else |
503d2be0 | 7976 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 7977 | LIBS="-llockfile $LIBS" |
503d2be0 | 7978 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 7979 | #line 7979 "configure" |
ba4481b5 | 7980 | #include "confdefs.h" |
503d2be0 | 7981 | |
ba4481b5 | 7982 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
7983 | #ifdef __cplusplus |
7984 | extern "C" | |
7985 | #endif | |
ba4481b5 | 7986 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
7987 | builtin and then its argument prototype would still apply. */ |
7988 | char maillock (); | |
7989 | int | |
7990 | main () | |
7991 | { | |
7992 | maillock (); | |
7993 | ; | |
7994 | return 0; | |
7995 | } | |
7996 | _ACEOF | |
7997 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 7998 | if { (eval echo "$as_me:7998: \"$ac_link\"") >&5 |
503d2be0 AS |
7999 | (eval $ac_link) 2>&5 |
8000 | ac_status=$? | |
cc227489 | 8001 | echo "$as_me:8001: \$? = $ac_status" >&5 |
503d2be0 AS |
8002 | (exit $ac_status); } && |
8003 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8004 | { (eval echo "$as_me:8004: \"$ac_try\"") >&5 |
503d2be0 AS |
8005 | (eval $ac_try) 2>&5 |
8006 | ac_status=$? | |
cc227489 | 8007 | echo "$as_me:8007: \$? = $ac_status" >&5 |
503d2be0 AS |
8008 | (exit $ac_status); }; }; then |
8009 | ac_cv_lib_lockfile_maillock=yes | |
8010 | else | |
8011 | echo "$as_me: failed program was:" >&5 | |
8012 | cat conftest.$ac_ext >&5 | |
8013 | ac_cv_lib_lockfile_maillock=no | |
8014 | fi | |
8015 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8016 | LIBS=$ac_check_lib_save_LIBS | |
8017 | fi | |
cc227489 | 8018 | echo "$as_me:8018: result: $ac_cv_lib_lockfile_maillock" >&5 |
503d2be0 AS |
8019 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
8020 | if test $ac_cv_lib_lockfile_maillock = yes; then | |
8021 | cat >>confdefs.h <<EOF | |
8022 | #define HAVE_LIBLOCKFILE 1 | |
ba4481b5 DL |
8023 | EOF |
8024 | ||
8025 | LIBS="-llockfile $LIBS" | |
8026 | ||
ba4481b5 DL |
8027 | fi |
8028 | ||
8029 | # If we have the shared liblockfile, assume we must use it for mail | |
8030 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
8031 | # (no liblockfile.a installed), ensure that we don't need to. | |
8032 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
8033 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
8034 | set dummy liblockfile.so; ac_word=$2 | |
cc227489 | 8035 | echo "$as_me:8035: checking for $ac_word" >&5 |
503d2be0 AS |
8036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8037 | if test "${ac_cv_prog_liblockfile+set}" = set; then | |
8038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
8039 | else |
8040 | if test -n "$liblockfile"; then | |
8041 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
8042 | else | |
503d2be0 AS |
8043 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
8044 | ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
8045 | for ac_dir in $ac_dummy; do | |
8046 | IFS=$ac_save_IFS | |
8047 | test -z "$ac_dir" && ac_dir=. | |
8048 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8049 | ac_cv_prog_liblockfile="yes" | |
cc227489 | 8050 | echo "$as_me:8050: found $ac_dir/$ac_word" >&5 |
503d2be0 AS |
8051 | break |
8052 | done | |
8053 | ||
ba4481b5 DL |
8054 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
8055 | fi | |
8056 | fi | |
503d2be0 | 8057 | liblockfile=$ac_cv_prog_liblockfile |
ba4481b5 | 8058 | if test -n "$liblockfile"; then |
cc227489 | 8059 | echo "$as_me:8059: result: $liblockfile" >&5 |
503d2be0 | 8060 | echo "${ECHO_T}$liblockfile" >&6 |
ba4481b5 | 8061 | else |
cc227489 | 8062 | echo "$as_me:8062: result: no" >&5 |
503d2be0 | 8063 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
8064 | fi |
8065 | ||
8066 | if test $ac_cv_prog_liblockfile = yes; then | |
cc227489 | 8067 | { { echo "$as_me:8067: error: Shared liblockfile found but can't link against it. |
503d2be0 AS |
8068 | This probably means that movemail could lose mail. |
8069 | There may be a \`development' package to install containing liblockfile." >&5 | |
8070 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
ba4481b5 | 8071 | This probably means that movemail could lose mail. |
503d2be0 AS |
8072 | There may be a \`development' package to install containing liblockfile." >&2;} |
8073 | { (exit 1); exit 1; }; } | |
8074 | else cat >>confdefs.h <<\EOF | |
ba4481b5 DL |
8075 | #define LIBMAIL -llockfile |
8076 | EOF | |
8077 | ||
8078 | fi | |
8079 | else : | |
8080 | fi | |
503d2be0 | 8081 | |
ba4481b5 DL |
8082 | for ac_func in touchlock |
8083 | do | |
503d2be0 | 8084 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
cc227489 | 8085 | echo "$as_me:8085: checking for $ac_func" >&5 |
503d2be0 AS |
8086 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8087 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 8089 | else |
503d2be0 | 8090 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 8091 | #line 8091 "configure" |
ba4481b5 DL |
8092 | #include "confdefs.h" |
8093 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 8094 | which can conflict with char $ac_func (); below. */ |
ba4481b5 DL |
8095 | #include <assert.h> |
8096 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
8097 | #ifdef __cplusplus |
8098 | extern "C" | |
8099 | #endif | |
ba4481b5 | 8100 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
8101 | builtin and then its argument prototype would still apply. */ |
8102 | char $ac_func (); | |
8103 | char (*f) (); | |
ba4481b5 | 8104 | |
503d2be0 AS |
8105 | int |
8106 | main () | |
8107 | { | |
ba4481b5 DL |
8108 | /* The GNU C library defines this for functions which it implements |
8109 | to always fail with ENOSYS. Some functions are actually named | |
8110 | something starting with __ and the normal name is an alias. */ | |
8111 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8112 | choke me | |
8113 | #else | |
503d2be0 | 8114 | f = $ac_func; |
ba4481b5 DL |
8115 | #endif |
8116 | ||
503d2be0 AS |
8117 | ; |
8118 | return 0; | |
8119 | } | |
8120 | _ACEOF | |
8121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 8122 | if { (eval echo "$as_me:8122: \"$ac_link\"") >&5 |
503d2be0 AS |
8123 | (eval $ac_link) 2>&5 |
8124 | ac_status=$? | |
cc227489 | 8125 | echo "$as_me:8125: \$? = $ac_status" >&5 |
503d2be0 AS |
8126 | (exit $ac_status); } && |
8127 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8128 | { (eval echo "$as_me:8128: \"$ac_try\"") >&5 |
503d2be0 AS |
8129 | (eval $ac_try) 2>&5 |
8130 | ac_status=$? | |
cc227489 | 8131 | echo "$as_me:8131: \$? = $ac_status" >&5 |
503d2be0 AS |
8132 | (exit $ac_status); }; }; then |
8133 | eval "$as_ac_var=yes" | |
8134 | else | |
8135 | echo "$as_me: failed program was:" >&5 | |
8136 | cat conftest.$ac_ext >&5 | |
8137 | eval "$as_ac_var=no" | |
8138 | fi | |
8139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8140 | fi | |
cc227489 | 8141 | echo "$as_me:8141: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
8142 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8143 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8144 | cat >>confdefs.h <<EOF | |
8145 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ba4481b5 | 8146 | EOF |
ba4481b5 | 8147 | |
ba4481b5 DL |
8148 | fi |
8149 | done | |
8150 | ||
503d2be0 | 8151 | for ac_header in maillock.h |
ba4481b5 | 8152 | do |
503d2be0 | 8153 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 8154 | echo "$as_me:8154: checking for $ac_header" >&5 |
503d2be0 AS |
8155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8158 | else | |
8159 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 8160 | #line 8160 "configure" |
503d2be0 AS |
8161 | #include "confdefs.h" |
8162 | #include <$ac_header> | |
8163 | _ACEOF | |
cc227489 | 8164 | if { (eval echo "$as_me:8164: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
8165 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8166 | ac_status=$? | |
8167 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8168 | rm -f conftest.er1 | |
8169 | cat conftest.err >&5 | |
cc227489 | 8170 | echo "$as_me:8170: \$? = $ac_status" >&5 |
503d2be0 AS |
8171 | (exit $ac_status); } >/dev/null; then |
8172 | if test -s conftest.err; then | |
8173 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8174 | else | |
8175 | ac_cpp_err= | |
8176 | fi | |
8177 | else | |
8178 | ac_cpp_err=yes | |
8179 | fi | |
8180 | if test -z "$ac_cpp_err"; then | |
8181 | eval "$as_ac_Header=yes" | |
8182 | else | |
8183 | echo "$as_me: failed program was:" >&5 | |
ba4481b5 | 8184 | cat conftest.$ac_ext >&5 |
503d2be0 | 8185 | eval "$as_ac_Header=no" |
ba4481b5 | 8186 | fi |
503d2be0 | 8187 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 8188 | fi |
cc227489 | 8189 | echo "$as_me:8189: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
8190 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8191 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8192 | cat >>confdefs.h <<EOF | |
8193 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ba4481b5 | 8194 | EOF |
503d2be0 | 8195 | |
ba4481b5 DL |
8196 | fi |
8197 | done | |
8198 | ||
48d4b120 | 8199 | for ac_func in gethostname getdomainname dup2 \ |
ba4481b5 DL |
8200 | rename closedir mkdir rmdir sysinfo \ |
8201 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
8202 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
a3f08d9e | 8203 | utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
03391420 DL |
8204 | __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ |
8205 | gai_strerror mkstemp | |
ba4481b5 | 8206 | do |
503d2be0 | 8207 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
cc227489 | 8208 | echo "$as_me:8208: checking for $ac_func" >&5 |
503d2be0 AS |
8209 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8210 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 8212 | else |
503d2be0 | 8213 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 8214 | #line 8214 "configure" |
ba4481b5 DL |
8215 | #include "confdefs.h" |
8216 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 8217 | which can conflict with char $ac_func (); below. */ |
ba4481b5 DL |
8218 | #include <assert.h> |
8219 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
8220 | #ifdef __cplusplus |
8221 | extern "C" | |
8222 | #endif | |
ba4481b5 | 8223 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
8224 | builtin and then its argument prototype would still apply. */ |
8225 | char $ac_func (); | |
8226 | char (*f) (); | |
ba4481b5 | 8227 | |
503d2be0 AS |
8228 | int |
8229 | main () | |
8230 | { | |
ba4481b5 DL |
8231 | /* The GNU C library defines this for functions which it implements |
8232 | to always fail with ENOSYS. Some functions are actually named | |
8233 | something starting with __ and the normal name is an alias. */ | |
8234 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8235 | choke me | |
8236 | #else | |
503d2be0 | 8237 | f = $ac_func; |
ba4481b5 DL |
8238 | #endif |
8239 | ||
503d2be0 AS |
8240 | ; |
8241 | return 0; | |
8242 | } | |
8243 | _ACEOF | |
8244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 8245 | if { (eval echo "$as_me:8245: \"$ac_link\"") >&5 |
503d2be0 AS |
8246 | (eval $ac_link) 2>&5 |
8247 | ac_status=$? | |
cc227489 | 8248 | echo "$as_me:8248: \$? = $ac_status" >&5 |
503d2be0 AS |
8249 | (exit $ac_status); } && |
8250 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8251 | { (eval echo "$as_me:8251: \"$ac_try\"") >&5 |
503d2be0 AS |
8252 | (eval $ac_try) 2>&5 |
8253 | ac_status=$? | |
cc227489 | 8254 | echo "$as_me:8254: \$? = $ac_status" >&5 |
503d2be0 AS |
8255 | (exit $ac_status); }; }; then |
8256 | eval "$as_ac_var=yes" | |
8257 | else | |
8258 | echo "$as_me: failed program was:" >&5 | |
8259 | cat conftest.$ac_ext >&5 | |
8260 | eval "$as_ac_var=no" | |
8261 | fi | |
8262 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8263 | fi | |
cc227489 | 8264 | echo "$as_me:8264: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
8265 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8266 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8267 | cat >>confdefs.h <<EOF | |
8268 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ba4481b5 | 8269 | EOF |
ba4481b5 | 8270 | |
ba4481b5 DL |
8271 | fi |
8272 | done | |
8273 | ||
503d2be0 | 8274 | for ac_header in sys/time.h unistd.h |
b5de8dc0 | 8275 | do |
503d2be0 | 8276 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 8277 | echo "$as_me:8277: checking for $ac_header" >&5 |
503d2be0 AS |
8278 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8279 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8281 | else | |
8282 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 8283 | #line 8283 "configure" |
503d2be0 AS |
8284 | #include "confdefs.h" |
8285 | #include <$ac_header> | |
8286 | _ACEOF | |
cc227489 | 8287 | if { (eval echo "$as_me:8287: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
8288 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8289 | ac_status=$? | |
8290 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8291 | rm -f conftest.er1 | |
8292 | cat conftest.err >&5 | |
cc227489 | 8293 | echo "$as_me:8293: \$? = $ac_status" >&5 |
503d2be0 AS |
8294 | (exit $ac_status); } >/dev/null; then |
8295 | if test -s conftest.err; then | |
8296 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8297 | else | |
8298 | ac_cpp_err= | |
8299 | fi | |
8300 | else | |
8301 | ac_cpp_err=yes | |
8302 | fi | |
8303 | if test -z "$ac_cpp_err"; then | |
8304 | eval "$as_ac_Header=yes" | |
8305 | else | |
8306 | echo "$as_me: failed program was:" >&5 | |
b5de8dc0 | 8307 | cat conftest.$ac_ext >&5 |
503d2be0 | 8308 | eval "$as_ac_Header=no" |
b5de8dc0 | 8309 | fi |
503d2be0 | 8310 | rm -f conftest.err conftest.$ac_ext |
b5de8dc0 | 8311 | fi |
cc227489 | 8312 | echo "$as_me:8312: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
8313 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8315 | cat >>confdefs.h <<EOF | |
8316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
b5de8dc0 | 8317 | EOF |
503d2be0 | 8318 | |
b5de8dc0 DL |
8319 | fi |
8320 | done | |
8321 | ||
8322 | for ac_func in alarm | |
8323 | do | |
503d2be0 | 8324 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
cc227489 | 8325 | echo "$as_me:8325: checking for $ac_func" >&5 |
503d2be0 AS |
8326 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8327 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b5de8dc0 | 8329 | else |
503d2be0 | 8330 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 8331 | #line 8331 "configure" |
b5de8dc0 DL |
8332 | #include "confdefs.h" |
8333 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 8334 | which can conflict with char $ac_func (); below. */ |
b5de8dc0 DL |
8335 | #include <assert.h> |
8336 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
8337 | #ifdef __cplusplus |
8338 | extern "C" | |
8339 | #endif | |
b5de8dc0 | 8340 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
8341 | builtin and then its argument prototype would still apply. */ |
8342 | char $ac_func (); | |
8343 | char (*f) (); | |
b5de8dc0 | 8344 | |
503d2be0 AS |
8345 | int |
8346 | main () | |
8347 | { | |
b5de8dc0 DL |
8348 | /* The GNU C library defines this for functions which it implements |
8349 | to always fail with ENOSYS. Some functions are actually named | |
8350 | something starting with __ and the normal name is an alias. */ | |
8351 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8352 | choke me | |
8353 | #else | |
503d2be0 | 8354 | f = $ac_func; |
b5de8dc0 DL |
8355 | #endif |
8356 | ||
503d2be0 AS |
8357 | ; |
8358 | return 0; | |
8359 | } | |
8360 | _ACEOF | |
8361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 8362 | if { (eval echo "$as_me:8362: \"$ac_link\"") >&5 |
503d2be0 AS |
8363 | (eval $ac_link) 2>&5 |
8364 | ac_status=$? | |
cc227489 | 8365 | echo "$as_me:8365: \$? = $ac_status" >&5 |
503d2be0 AS |
8366 | (exit $ac_status); } && |
8367 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8368 | { (eval echo "$as_me:8368: \"$ac_try\"") >&5 |
503d2be0 AS |
8369 | (eval $ac_try) 2>&5 |
8370 | ac_status=$? | |
cc227489 | 8371 | echo "$as_me:8371: \$? = $ac_status" >&5 |
503d2be0 AS |
8372 | (exit $ac_status); }; }; then |
8373 | eval "$as_ac_var=yes" | |
8374 | else | |
8375 | echo "$as_me: failed program was:" >&5 | |
8376 | cat conftest.$ac_ext >&5 | |
8377 | eval "$as_ac_var=no" | |
8378 | fi | |
8379 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8380 | fi | |
cc227489 | 8381 | echo "$as_me:8381: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
8382 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8383 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8384 | cat >>confdefs.h <<EOF | |
8385 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
b5de8dc0 | 8386 | EOF |
b5de8dc0 | 8387 | |
b5de8dc0 DL |
8388 | fi |
8389 | done | |
8390 | ||
cc227489 | 8391 | echo "$as_me:8391: checking for working mktime" >&5 |
503d2be0 AS |
8392 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
8393 | if test "${ac_cv_func_working_mktime+set}" = set; then | |
8394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b5de8dc0 DL |
8395 | else |
8396 | if test "$cross_compiling" = yes; then | |
8397 | ac_cv_func_working_mktime=no | |
8398 | else | |
503d2be0 | 8399 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 8400 | #line 8400 "configure" |
b5de8dc0 | 8401 | #include "confdefs.h" |
503d2be0 | 8402 | /* Test program from Paul Eggert and Tony Leneis. */ |
b5de8dc0 DL |
8403 | #if TIME_WITH_SYS_TIME |
8404 | # include <sys/time.h> | |
8405 | # include <time.h> | |
8406 | #else | |
8407 | # if HAVE_SYS_TIME_H | |
8408 | # include <sys/time.h> | |
8409 | # else | |
8410 | # include <time.h> | |
8411 | # endif | |
8412 | #endif | |
8413 | ||
8414 | #if HAVE_UNISTD_H | |
8415 | # include <unistd.h> | |
8416 | #endif | |
8417 | ||
8418 | #if !HAVE_ALARM | |
8419 | # define alarm(X) /* empty */ | |
8420 | #endif | |
8421 | ||
8422 | /* Work around redefinition to rpl_putenv by other config tests. */ | |
8423 | #undef putenv | |
8424 | ||
8425 | static time_t time_t_max; | |
8426 | ||
8427 | /* Values we'll use to set the TZ environment variable. */ | |
8428 | static const char *const tz_strings[] = { | |
8429 | (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
8430 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
8431 | }; | |
8432 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
8433 | ||
8434 | /* Fail if mktime fails to convert a date in the spring-forward gap. | |
8435 | Based on a problem report from Andreas Jaeger. */ | |
8436 | static void | |
8437 | spring_forward_gap () | |
8438 | { | |
503d2be0 | 8439 | /* glibc (up to about 1998-10-07) failed this test. */ |
b5de8dc0 DL |
8440 | struct tm tm; |
8441 | ||
8442 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
8443 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
8444 | on systems that don't support the Olson extension, or don't have the | |
8445 | full zoneinfo tables installed. */ | |
8446 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
8447 | ||
8448 | tm.tm_year = 98; | |
8449 | tm.tm_mon = 3; | |
8450 | tm.tm_mday = 5; | |
8451 | tm.tm_hour = 2; | |
8452 | tm.tm_min = 0; | |
8453 | tm.tm_sec = 0; | |
8454 | tm.tm_isdst = -1; | |
8455 | if (mktime (&tm) == (time_t)-1) | |
8456 | exit (1); | |
8457 | } | |
8458 | ||
8459 | static void | |
8460 | mktime_test (now) | |
8461 | time_t now; | |
8462 | { | |
8463 | struct tm *lt; | |
8464 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
8465 | exit (1); | |
8466 | now = time_t_max - now; | |
8467 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
8468 | exit (1); | |
8469 | } | |
8470 | ||
8471 | static void | |
8472 | irix_6_4_bug () | |
8473 | { | |
8474 | /* Based on code from Ariel Faigon. */ | |
8475 | struct tm tm; | |
8476 | tm.tm_year = 96; | |
8477 | tm.tm_mon = 3; | |
8478 | tm.tm_mday = 0; | |
8479 | tm.tm_hour = 0; | |
8480 | tm.tm_min = 0; | |
8481 | tm.tm_sec = 0; | |
8482 | tm.tm_isdst = -1; | |
8483 | mktime (&tm); | |
8484 | if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
8485 | exit (1); | |
8486 | } | |
8487 | ||
8488 | static void | |
8489 | bigtime_test (j) | |
8490 | int j; | |
8491 | { | |
8492 | struct tm tm; | |
8493 | time_t now; | |
8494 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
8495 | now = mktime (&tm); | |
8496 | if (now != (time_t) -1) | |
8497 | { | |
8498 | struct tm *lt = localtime (&now); | |
8499 | if (! (lt | |
8500 | && lt->tm_year == tm.tm_year | |
8501 | && lt->tm_mon == tm.tm_mon | |
8502 | && lt->tm_mday == tm.tm_mday | |
8503 | && lt->tm_hour == tm.tm_hour | |
8504 | && lt->tm_min == tm.tm_min | |
8505 | && lt->tm_sec == tm.tm_sec | |
8506 | && lt->tm_yday == tm.tm_yday | |
8507 | && lt->tm_wday == tm.tm_wday | |
8508 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
8509 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
8510 | exit (1); | |
8511 | } | |
8512 | } | |
8513 | ||
8514 | int | |
8515 | main () | |
8516 | { | |
8517 | time_t t, delta; | |
8518 | int i, j; | |
8519 | ||
8520 | /* This test makes some buggy mktime implementations loop. | |
8521 | Give up after 60 seconds; a mktime slower than that | |
8522 | isn't worth using anyway. */ | |
8523 | alarm (60); | |
8524 | ||
8525 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
8526 | continue; | |
8527 | time_t_max--; | |
8528 | delta = time_t_max / 997; /* a suitable prime number */ | |
8529 | for (i = 0; i < N_STRINGS; i++) | |
8530 | { | |
8531 | if (tz_strings[i]) | |
8532 | putenv (tz_strings[i]); | |
8533 | ||
8534 | for (t = 0; t <= time_t_max - delta; t += delta) | |
8535 | mktime_test (t); | |
8536 | mktime_test ((time_t) 60 * 60); | |
8537 | mktime_test ((time_t) 60 * 60 * 24); | |
8538 | ||
8539 | for (j = 1; 0 < j; j *= 2) | |
8540 | bigtime_test (j); | |
8541 | bigtime_test (j - 1); | |
8542 | } | |
8543 | irix_6_4_bug (); | |
8544 | spring_forward_gap (); | |
8545 | exit (0); | |
8546 | } | |
503d2be0 AS |
8547 | _ACEOF |
8548 | rm -f conftest$ac_exeext | |
cc227489 | 8549 | if { (eval echo "$as_me:8549: \"$ac_link\"") >&5 |
503d2be0 AS |
8550 | (eval $ac_link) 2>&5 |
8551 | ac_status=$? | |
cc227489 | 8552 | echo "$as_me:8552: \$? = $ac_status" >&5 |
503d2be0 | 8553 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
cc227489 | 8554 | { (eval echo "$as_me:8554: \"$ac_try\"") >&5 |
503d2be0 AS |
8555 | (eval $ac_try) 2>&5 |
8556 | ac_status=$? | |
cc227489 | 8557 | echo "$as_me:8557: \$? = $ac_status" >&5 |
503d2be0 | 8558 | (exit $ac_status); }; }; then |
b5de8dc0 DL |
8559 | ac_cv_func_working_mktime=yes |
8560 | else | |
503d2be0 AS |
8561 | echo "$as_me: program exited with status $ac_status" >&5 |
8562 | echo "$as_me: failed program was:" >&5 | |
8563 | cat conftest.$ac_ext >&5 | |
8564 | ac_cv_func_working_mktime=no | |
b5de8dc0 | 8565 | fi |
503d2be0 | 8566 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b5de8dc0 | 8567 | fi |
b5de8dc0 | 8568 | fi |
cc227489 | 8569 | echo "$as_me:8569: result: $ac_cv_func_working_mktime" >&5 |
503d2be0 | 8570 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
b5de8dc0 | 8571 | if test $ac_cv_func_working_mktime = no; then |
503d2be0 | 8572 | LIBOBJS="$LIBOBJS mktime.$ac_objext" |
b5de8dc0 DL |
8573 | fi |
8574 | ||
8575 | if test "$ac_cv_func_working_mktime" = no; then | |
503d2be0 | 8576 | cat >>confdefs.h <<\EOF |
b5de8dc0 DL |
8577 | #define BROKEN_MKTIME 1 |
8578 | EOF | |
8579 | ||
8580 | fi | |
8581 | ||
4c343001 DL |
8582 | ac_have_func=no # yes means we've found a way to get the load average. |
8583 | ||
503d2be0 AS |
8584 | ac_save_LIBS=$LIBS |
8585 | ||
8586 | # Check for getloadavg, but be sure not to touch the cache variable. | |
cc227489 | 8587 | (echo "$as_me:8587: checking for getloadavg" >&5 |
503d2be0 AS |
8588 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
8589 | if test "${ac_cv_func_getloadavg+set}" = set; then | |
8590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 8591 | else |
503d2be0 | 8592 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 8593 | #line 8593 "configure" |
4c343001 | 8594 | #include "confdefs.h" |
503d2be0 AS |
8595 | /* System header to define __stub macros and hopefully few prototypes, |
8596 | which can conflict with char getloadavg (); below. */ | |
8597 | #include <assert.h> | |
4c343001 | 8598 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8599 | #ifdef __cplusplus |
8600 | extern "C" | |
8601 | #endif | |
4c343001 | 8602 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
8603 | builtin and then its argument prototype would still apply. */ |
8604 | char getloadavg (); | |
8605 | char (*f) (); | |
4c343001 | 8606 | |
503d2be0 AS |
8607 | int |
8608 | main () | |
8609 | { | |
8610 | /* The GNU C library defines this for functions which it implements | |
8611 | to always fail with ENOSYS. Some functions are actually named | |
8612 | something starting with __ and the normal name is an alias. */ | |
8613 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
8614 | choke me | |
8615 | #else | |
8616 | f = getloadavg; | |
8617 | #endif | |
4c343001 | 8618 | |
503d2be0 AS |
8619 | ; |
8620 | return 0; | |
8621 | } | |
8622 | _ACEOF | |
8623 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 8624 | if { (eval echo "$as_me:8624: \"$ac_link\"") >&5 |
503d2be0 AS |
8625 | (eval $ac_link) 2>&5 |
8626 | ac_status=$? | |
cc227489 | 8627 | echo "$as_me:8627: \$? = $ac_status" >&5 |
503d2be0 AS |
8628 | (exit $ac_status); } && |
8629 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8630 | { (eval echo "$as_me:8630: \"$ac_try\"") >&5 |
503d2be0 AS |
8631 | (eval $ac_try) 2>&5 |
8632 | ac_status=$? | |
cc227489 | 8633 | echo "$as_me:8633: \$? = $ac_status" >&5 |
503d2be0 AS |
8634 | (exit $ac_status); }; }; then |
8635 | ac_cv_func_getloadavg=yes | |
8636 | else | |
8637 | echo "$as_me: failed program was:" >&5 | |
8638 | cat conftest.$ac_ext >&5 | |
8639 | ac_cv_func_getloadavg=no | |
8640 | fi | |
8641 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8642 | fi | |
cc227489 | 8643 | echo "$as_me:8643: result: $ac_cv_func_getloadavg" >&5 |
503d2be0 AS |
8644 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
8645 | if test $ac_cv_func_getloadavg = yes; then | |
8646 | exit 0 | |
4c343001 | 8647 | else |
503d2be0 | 8648 | exit 1 |
4c343001 | 8649 | fi |
503d2be0 | 8650 | ) && ac_have_func=yes |
4c343001 | 8651 | |
503d2be0 AS |
8652 | # On HPUX9, an unprivileged user can get load averages through this function. |
8653 | ||
8654 | for ac_func in pstat_getdynamic | |
8655 | do | |
8656 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
cc227489 | 8657 | echo "$as_me:8657: checking for $ac_func" >&5 |
503d2be0 AS |
8658 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8659 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 8661 | else |
503d2be0 | 8662 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 8663 | #line 8663 "configure" |
4c343001 | 8664 | #include "confdefs.h" |
503d2be0 AS |
8665 | /* System header to define __stub macros and hopefully few prototypes, |
8666 | which can conflict with char $ac_func (); below. */ | |
8667 | #include <assert.h> | |
4c343001 | 8668 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8669 | #ifdef __cplusplus |
8670 | extern "C" | |
8671 | #endif | |
4c343001 | 8672 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
8673 | builtin and then its argument prototype would still apply. */ |
8674 | char $ac_func (); | |
8675 | char (*f) (); | |
8676 | ||
8677 | int | |
8678 | main () | |
8679 | { | |
8680 | /* The GNU C library defines this for functions which it implements | |
8681 | to always fail with ENOSYS. Some functions are actually named | |
8682 | something starting with __ and the normal name is an alias. */ | |
8683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8684 | choke me | |
8685 | #else | |
8686 | f = $ac_func; | |
8687 | #endif | |
4c343001 | 8688 | |
503d2be0 AS |
8689 | ; |
8690 | return 0; | |
8691 | } | |
8692 | _ACEOF | |
8693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 8694 | if { (eval echo "$as_me:8694: \"$ac_link\"") >&5 |
503d2be0 AS |
8695 | (eval $ac_link) 2>&5 |
8696 | ac_status=$? | |
cc227489 | 8697 | echo "$as_me:8697: \$? = $ac_status" >&5 |
503d2be0 AS |
8698 | (exit $ac_status); } && |
8699 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8700 | { (eval echo "$as_me:8700: \"$ac_try\"") >&5 |
503d2be0 AS |
8701 | (eval $ac_try) 2>&5 |
8702 | ac_status=$? | |
cc227489 | 8703 | echo "$as_me:8703: \$? = $ac_status" >&5 |
503d2be0 AS |
8704 | (exit $ac_status); }; }; then |
8705 | eval "$as_ac_var=yes" | |
8706 | else | |
8707 | echo "$as_me: failed program was:" >&5 | |
8708 | cat conftest.$ac_ext >&5 | |
8709 | eval "$as_ac_var=no" | |
8710 | fi | |
8711 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8712 | fi | |
cc227489 | 8713 | echo "$as_me:8713: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
8714 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8715 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8716 | cat >>confdefs.h <<EOF | |
8717 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4c343001 | 8718 | EOF |
4c343001 DL |
8719 | |
8720 | fi | |
503d2be0 AS |
8721 | done |
8722 | ||
8723 | # Solaris has libkstat which does not require root. | |
4c343001 | 8724 | |
cc227489 | 8725 | echo "$as_me:8725: checking for kstat_open in -lkstat" >&5 |
503d2be0 AS |
8726 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
8727 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
8728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 8729 | else |
503d2be0 AS |
8730 | ac_check_lib_save_LIBS=$LIBS |
8731 | LIBS="-lkstat $LIBS" | |
8732 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 8733 | #line 8733 "configure" |
4c343001 | 8734 | #include "confdefs.h" |
503d2be0 | 8735 | |
4c343001 | 8736 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8737 | #ifdef __cplusplus |
8738 | extern "C" | |
8739 | #endif | |
4c343001 | 8740 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
8741 | builtin and then its argument prototype would still apply. */ |
8742 | char kstat_open (); | |
8743 | int | |
8744 | main () | |
8745 | { | |
8746 | kstat_open (); | |
8747 | ; | |
8748 | return 0; | |
8749 | } | |
8750 | _ACEOF | |
8751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 8752 | if { (eval echo "$as_me:8752: \"$ac_link\"") >&5 |
503d2be0 AS |
8753 | (eval $ac_link) 2>&5 |
8754 | ac_status=$? | |
cc227489 | 8755 | echo "$as_me:8755: \$? = $ac_status" >&5 |
503d2be0 AS |
8756 | (exit $ac_status); } && |
8757 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8758 | { (eval echo "$as_me:8758: \"$ac_try\"") >&5 |
503d2be0 AS |
8759 | (eval $ac_try) 2>&5 |
8760 | ac_status=$? | |
cc227489 | 8761 | echo "$as_me:8761: \$? = $ac_status" >&5 |
503d2be0 AS |
8762 | (exit $ac_status); }; }; then |
8763 | ac_cv_lib_kstat_kstat_open=yes | |
4c343001 | 8764 | else |
503d2be0 AS |
8765 | echo "$as_me: failed program was:" >&5 |
8766 | cat conftest.$ac_ext >&5 | |
8767 | ac_cv_lib_kstat_kstat_open=no | |
4c343001 | 8768 | fi |
503d2be0 AS |
8769 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
8770 | LIBS=$ac_check_lib_save_LIBS | |
4c343001 | 8771 | fi |
cc227489 | 8772 | echo "$as_me:8772: result: $ac_cv_lib_kstat_kstat_open" >&5 |
503d2be0 AS |
8773 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
8774 | if test $ac_cv_lib_kstat_kstat_open = yes; then | |
8775 | cat >>confdefs.h <<EOF | |
8776 | #define HAVE_LIBKSTAT 1 | |
8777 | EOF | |
8778 | ||
8779 | LIBS="-lkstat $LIBS" | |
8780 | ||
4c343001 DL |
8781 | fi |
8782 | ||
503d2be0 | 8783 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
4c343001 | 8784 | |
503d2be0 AS |
8785 | # Some systems with -lutil have (and need) -lkvm as well, some do not. |
8786 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
8787 | # to get the right answer into the cache. | |
8788 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
4c343001 | 8789 | if test $ac_have_func = no; then |
cc227489 | 8790 | echo "$as_me:8790: checking for elf_begin in -lelf" >&5 |
503d2be0 AS |
8791 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
8792 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
8793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8794 | else | |
8795 | ac_check_lib_save_LIBS=$LIBS | |
8796 | LIBS="-lelf $LIBS" | |
8797 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 8798 | #line 8798 "configure" |
4c343001 | 8799 | #include "confdefs.h" |
503d2be0 | 8800 | |
4c343001 | 8801 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8802 | #ifdef __cplusplus |
8803 | extern "C" | |
8804 | #endif | |
4c343001 | 8805 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
8806 | builtin and then its argument prototype would still apply. */ |
8807 | char elf_begin (); | |
8808 | int | |
8809 | main () | |
8810 | { | |
8811 | elf_begin (); | |
8812 | ; | |
8813 | return 0; | |
8814 | } | |
8815 | _ACEOF | |
8816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 8817 | if { (eval echo "$as_me:8817: \"$ac_link\"") >&5 |
503d2be0 AS |
8818 | (eval $ac_link) 2>&5 |
8819 | ac_status=$? | |
cc227489 | 8820 | echo "$as_me:8820: \$? = $ac_status" >&5 |
503d2be0 AS |
8821 | (exit $ac_status); } && |
8822 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8823 | { (eval echo "$as_me:8823: \"$ac_try\"") >&5 |
503d2be0 AS |
8824 | (eval $ac_try) 2>&5 |
8825 | ac_status=$? | |
cc227489 | 8826 | echo "$as_me:8826: \$? = $ac_status" >&5 |
503d2be0 AS |
8827 | (exit $ac_status); }; }; then |
8828 | ac_cv_lib_elf_elf_begin=yes | |
8829 | else | |
8830 | echo "$as_me: failed program was:" >&5 | |
8831 | cat conftest.$ac_ext >&5 | |
8832 | ac_cv_lib_elf_elf_begin=no | |
8833 | fi | |
8834 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8835 | LIBS=$ac_check_lib_save_LIBS | |
8836 | fi | |
cc227489 | 8837 | echo "$as_me:8837: result: $ac_cv_lib_elf_elf_begin" >&5 |
503d2be0 AS |
8838 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
8839 | if test $ac_cv_lib_elf_elf_begin = yes; then | |
8840 | LIBS="-lelf $LIBS" | |
4c343001 | 8841 | fi |
4c343001 DL |
8842 | |
8843 | fi | |
503d2be0 | 8844 | if test $ac_have_func = no; then |
cc227489 | 8845 | echo "$as_me:8845: checking for kvm_open in -lkvm" >&5 |
503d2be0 AS |
8846 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
8847 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
8848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 8849 | else |
503d2be0 AS |
8850 | ac_check_lib_save_LIBS=$LIBS |
8851 | LIBS="-lkvm $LIBS" | |
8852 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 8853 | #line 8853 "configure" |
503d2be0 | 8854 | #include "confdefs.h" |
4c343001 | 8855 | |
503d2be0 AS |
8856 | /* Override any gcc2 internal prototype to avoid an error. */ |
8857 | #ifdef __cplusplus | |
8858 | extern "C" | |
8859 | #endif | |
8860 | /* We use char because int might match the return type of a gcc2 | |
8861 | builtin and then its argument prototype would still apply. */ | |
8862 | char kvm_open (); | |
8863 | int | |
8864 | main () | |
8865 | { | |
8866 | kvm_open (); | |
8867 | ; | |
8868 | return 0; | |
8869 | } | |
8870 | _ACEOF | |
8871 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 8872 | if { (eval echo "$as_me:8872: \"$ac_link\"") >&5 |
503d2be0 AS |
8873 | (eval $ac_link) 2>&5 |
8874 | ac_status=$? | |
cc227489 | 8875 | echo "$as_me:8875: \$? = $ac_status" >&5 |
503d2be0 AS |
8876 | (exit $ac_status); } && |
8877 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8878 | { (eval echo "$as_me:8878: \"$ac_try\"") >&5 |
503d2be0 AS |
8879 | (eval $ac_try) 2>&5 |
8880 | ac_status=$? | |
cc227489 | 8881 | echo "$as_me:8881: \$? = $ac_status" >&5 |
503d2be0 AS |
8882 | (exit $ac_status); }; }; then |
8883 | ac_cv_lib_kvm_kvm_open=yes | |
8884 | else | |
8885 | echo "$as_me: failed program was:" >&5 | |
8886 | cat conftest.$ac_ext >&5 | |
8887 | ac_cv_lib_kvm_kvm_open=no | |
8888 | fi | |
8889 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8890 | LIBS=$ac_check_lib_save_LIBS | |
8891 | fi | |
cc227489 | 8892 | echo "$as_me:8892: result: $ac_cv_lib_kvm_kvm_open" >&5 |
503d2be0 AS |
8893 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
8894 | if test $ac_cv_lib_kvm_kvm_open = yes; then | |
8895 | LIBS="-lkvm $LIBS" | |
4c343001 DL |
8896 | fi |
8897 | ||
503d2be0 | 8898 | # Check for the 4.4BSD definition of getloadavg. |
cc227489 | 8899 | echo "$as_me:8899: checking for getloadavg in -lutil" >&5 |
503d2be0 AS |
8900 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
8901 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
8902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 8903 | else |
503d2be0 AS |
8904 | ac_check_lib_save_LIBS=$LIBS |
8905 | LIBS="-lutil $LIBS" | |
8906 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 8907 | #line 8907 "configure" |
4c343001 | 8908 | #include "confdefs.h" |
503d2be0 | 8909 | |
4c343001 | 8910 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
8911 | #ifdef __cplusplus |
8912 | extern "C" | |
8913 | #endif | |
8914 | /* We use char because int might match the return type of a gcc2 | |
8915 | builtin and then its argument prototype would still apply. */ | |
8916 | char getloadavg (); | |
8917 | int | |
8918 | main () | |
8919 | { | |
8920 | getloadavg (); | |
8921 | ; | |
8922 | return 0; | |
8923 | } | |
8924 | _ACEOF | |
8925 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 8926 | if { (eval echo "$as_me:8926: \"$ac_link\"") >&5 |
503d2be0 AS |
8927 | (eval $ac_link) 2>&5 |
8928 | ac_status=$? | |
cc227489 | 8929 | echo "$as_me:8929: \$? = $ac_status" >&5 |
503d2be0 AS |
8930 | (exit $ac_status); } && |
8931 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8932 | { (eval echo "$as_me:8932: \"$ac_try\"") >&5 |
503d2be0 AS |
8933 | (eval $ac_try) 2>&5 |
8934 | ac_status=$? | |
cc227489 | 8935 | echo "$as_me:8935: \$? = $ac_status" >&5 |
503d2be0 AS |
8936 | (exit $ac_status); }; }; then |
8937 | ac_cv_lib_util_getloadavg=yes | |
8938 | else | |
8939 | echo "$as_me: failed program was:" >&5 | |
8940 | cat conftest.$ac_ext >&5 | |
8941 | ac_cv_lib_util_getloadavg=no | |
8942 | fi | |
8943 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8944 | LIBS=$ac_check_lib_save_LIBS | |
8945 | fi | |
cc227489 | 8946 | echo "$as_me:8946: result: $ac_cv_lib_util_getloadavg" >&5 |
503d2be0 AS |
8947 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
8948 | if test $ac_cv_lib_util_getloadavg = yes; then | |
8949 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
8950 | fi | |
8951 | ||
8952 | fi | |
8953 | ||
8954 | if test $ac_have_func = no; then | |
8955 | # There is a commonly available library for RS/6000 AIX. | |
8956 | # Since it is not a standard part of AIX, it might be installed locally. | |
8957 | ac_getloadavg_LIBS=$LIBS | |
8958 | LIBS="-L/usr/local/lib $LIBS" | |
cc227489 | 8959 | echo "$as_me:8959: checking for getloadavg in -lgetloadavg" >&5 |
503d2be0 AS |
8960 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
8961 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
8962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8963 | else | |
8964 | ac_check_lib_save_LIBS=$LIBS | |
8965 | LIBS="-lgetloadavg $LIBS" | |
8966 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 8967 | #line 8967 "configure" |
503d2be0 AS |
8968 | #include "confdefs.h" |
8969 | ||
8970 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8971 | #ifdef __cplusplus | |
8972 | extern "C" | |
8973 | #endif | |
4c343001 | 8974 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
8975 | builtin and then its argument prototype would still apply. */ |
8976 | char getloadavg (); | |
8977 | int | |
8978 | main () | |
8979 | { | |
8980 | getloadavg (); | |
8981 | ; | |
8982 | return 0; | |
8983 | } | |
8984 | _ACEOF | |
8985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 8986 | if { (eval echo "$as_me:8986: \"$ac_link\"") >&5 |
503d2be0 AS |
8987 | (eval $ac_link) 2>&5 |
8988 | ac_status=$? | |
cc227489 | 8989 | echo "$as_me:8989: \$? = $ac_status" >&5 |
503d2be0 AS |
8990 | (exit $ac_status); } && |
8991 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 8992 | { (eval echo "$as_me:8992: \"$ac_try\"") >&5 |
503d2be0 AS |
8993 | (eval $ac_try) 2>&5 |
8994 | ac_status=$? | |
cc227489 | 8995 | echo "$as_me:8995: \$? = $ac_status" >&5 |
503d2be0 AS |
8996 | (exit $ac_status); }; }; then |
8997 | ac_cv_lib_getloadavg_getloadavg=yes | |
8998 | else | |
8999 | echo "$as_me: failed program was:" >&5 | |
9000 | cat conftest.$ac_ext >&5 | |
9001 | ac_cv_lib_getloadavg_getloadavg=no | |
9002 | fi | |
9003 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9004 | LIBS=$ac_check_lib_save_LIBS | |
9005 | fi | |
cc227489 | 9006 | echo "$as_me:9006: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
503d2be0 AS |
9007 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
9008 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
9009 | LIBS="-lgetloadavg $LIBS" | |
9010 | else | |
9011 | LIBS=$ac_getloadavg_LIBS | |
9012 | fi | |
9013 | ||
9014 | fi | |
9015 | ||
9016 | # Make sure it is really in the library, if we think we found it, | |
9017 | # otherwise set up the replacement function. | |
4c343001 | 9018 | |
503d2be0 AS |
9019 | for ac_func in getloadavg |
9020 | do | |
9021 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
cc227489 | 9022 | echo "$as_me:9022: checking for $ac_func" >&5 |
503d2be0 AS |
9023 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9024 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9026 | else | |
9027 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 9028 | #line 9028 "configure" |
503d2be0 AS |
9029 | #include "confdefs.h" |
9030 | /* System header to define __stub macros and hopefully few prototypes, | |
9031 | which can conflict with char $ac_func (); below. */ | |
9032 | #include <assert.h> | |
9033 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9034 | #ifdef __cplusplus | |
9035 | extern "C" | |
9036 | #endif | |
9037 | /* We use char because int might match the return type of a gcc2 | |
9038 | builtin and then its argument prototype would still apply. */ | |
9039 | char $ac_func (); | |
9040 | char (*f) (); | |
4c343001 | 9041 | |
503d2be0 AS |
9042 | int |
9043 | main () | |
9044 | { | |
4c343001 DL |
9045 | /* The GNU C library defines this for functions which it implements |
9046 | to always fail with ENOSYS. Some functions are actually named | |
9047 | something starting with __ and the normal name is an alias. */ | |
9048 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9049 | choke me | |
9050 | #else | |
503d2be0 | 9051 | f = $ac_func; |
4c343001 DL |
9052 | #endif |
9053 | ||
503d2be0 AS |
9054 | ; |
9055 | return 0; | |
9056 | } | |
9057 | _ACEOF | |
9058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 9059 | if { (eval echo "$as_me:9059: \"$ac_link\"") >&5 |
503d2be0 AS |
9060 | (eval $ac_link) 2>&5 |
9061 | ac_status=$? | |
cc227489 | 9062 | echo "$as_me:9062: \$? = $ac_status" >&5 |
503d2be0 AS |
9063 | (exit $ac_status); } && |
9064 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 9065 | { (eval echo "$as_me:9065: \"$ac_try\"") >&5 |
503d2be0 AS |
9066 | (eval $ac_try) 2>&5 |
9067 | ac_status=$? | |
cc227489 | 9068 | echo "$as_me:9068: \$? = $ac_status" >&5 |
503d2be0 AS |
9069 | (exit $ac_status); }; }; then |
9070 | eval "$as_ac_var=yes" | |
4c343001 | 9071 | else |
503d2be0 AS |
9072 | echo "$as_me: failed program was:" >&5 |
9073 | cat conftest.$ac_ext >&5 | |
9074 | eval "$as_ac_var=no" | |
4c343001 | 9075 | fi |
503d2be0 | 9076 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4c343001 | 9077 | fi |
cc227489 | 9078 | echo "$as_me:9078: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
9079 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9080 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9081 | cat >>confdefs.h <<EOF | |
9082 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4c343001 | 9083 | EOF |
4c343001 | 9084 | |
503d2be0 AS |
9085 | else |
9086 | LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
4c343001 | 9087 | |
503d2be0 AS |
9088 | cat >>confdefs.h <<\EOF |
9089 | #define C_GETLOADAVG 1 | |
4c343001 DL |
9090 | EOF |
9091 | ||
503d2be0 AS |
9092 | # Figure out what our getloadavg.c needs. |
9093 | ac_have_func=no | |
cc227489 | 9094 | echo "$as_me:9094: checking for sys/dg_sys_info.h" >&5 |
503d2be0 AS |
9095 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
9096 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
9097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 9098 | else |
503d2be0 | 9099 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9100 | #line 9100 "configure" |
4c343001 DL |
9101 | #include "confdefs.h" |
9102 | #include <sys/dg_sys_info.h> | |
503d2be0 | 9103 | _ACEOF |
cc227489 | 9104 | if { (eval echo "$as_me:9104: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
9105 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9106 | ac_status=$? | |
9107 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9108 | rm -f conftest.er1 | |
9109 | cat conftest.err >&5 | |
cc227489 | 9110 | echo "$as_me:9110: \$? = $ac_status" >&5 |
503d2be0 AS |
9111 | (exit $ac_status); } >/dev/null; then |
9112 | if test -s conftest.err; then | |
9113 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9114 | else | |
9115 | ac_cpp_err= | |
9116 | fi | |
9117 | else | |
9118 | ac_cpp_err=yes | |
9119 | fi | |
9120 | if test -z "$ac_cpp_err"; then | |
9121 | ac_cv_header_sys_dg_sys_info_h=yes | |
4c343001 | 9122 | else |
503d2be0 | 9123 | echo "$as_me: failed program was:" >&5 |
4c343001 | 9124 | cat conftest.$ac_ext >&5 |
503d2be0 | 9125 | ac_cv_header_sys_dg_sys_info_h=no |
4c343001 | 9126 | fi |
503d2be0 | 9127 | rm -f conftest.err conftest.$ac_ext |
4c343001 | 9128 | fi |
cc227489 | 9129 | echo "$as_me:9129: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
503d2be0 AS |
9130 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
9131 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
9132 | ac_have_func=yes | |
9133 | ||
9134 | cat >>confdefs.h <<\EOF | |
4c343001 DL |
9135 | #define DGUX 1 |
9136 | EOF | |
9137 | ||
cc227489 | 9138 | echo "$as_me:9138: checking for dg_sys_info in -ldgc" >&5 |
503d2be0 AS |
9139 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
9140 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
9141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 9142 | else |
503d2be0 | 9143 | ac_check_lib_save_LIBS=$LIBS |
4c343001 | 9144 | LIBS="-ldgc $LIBS" |
503d2be0 | 9145 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9146 | #line 9146 "configure" |
4c343001 | 9147 | #include "confdefs.h" |
503d2be0 | 9148 | |
4c343001 | 9149 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
9150 | #ifdef __cplusplus |
9151 | extern "C" | |
9152 | #endif | |
4c343001 | 9153 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
9154 | builtin and then its argument prototype would still apply. */ |
9155 | char dg_sys_info (); | |
9156 | int | |
9157 | main () | |
9158 | { | |
9159 | dg_sys_info (); | |
9160 | ; | |
9161 | return 0; | |
9162 | } | |
9163 | _ACEOF | |
9164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 9165 | if { (eval echo "$as_me:9165: \"$ac_link\"") >&5 |
503d2be0 AS |
9166 | (eval $ac_link) 2>&5 |
9167 | ac_status=$? | |
cc227489 | 9168 | echo "$as_me:9168: \$? = $ac_status" >&5 |
503d2be0 AS |
9169 | (exit $ac_status); } && |
9170 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 9171 | { (eval echo "$as_me:9171: \"$ac_try\"") >&5 |
503d2be0 AS |
9172 | (eval $ac_try) 2>&5 |
9173 | ac_status=$? | |
cc227489 | 9174 | echo "$as_me:9174: \$? = $ac_status" >&5 |
503d2be0 AS |
9175 | (exit $ac_status); }; }; then |
9176 | ac_cv_lib_dgc_dg_sys_info=yes | |
9177 | else | |
9178 | echo "$as_me: failed program was:" >&5 | |
9179 | cat conftest.$ac_ext >&5 | |
9180 | ac_cv_lib_dgc_dg_sys_info=no | |
9181 | fi | |
9182 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9183 | LIBS=$ac_check_lib_save_LIBS | |
9184 | fi | |
cc227489 | 9185 | echo "$as_me:9185: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
503d2be0 AS |
9186 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
9187 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
9188 | cat >>confdefs.h <<EOF | |
9189 | #define HAVE_LIBDGC 1 | |
4c343001 | 9190 | EOF |
503d2be0 AS |
9191 | |
9192 | LIBS="-ldgc $LIBS" | |
4c343001 DL |
9193 | |
9194 | fi | |
4c343001 | 9195 | |
503d2be0 | 9196 | fi |
4c343001 | 9197 | |
cc227489 | 9198 | echo "$as_me:9198: checking for locale.h" >&5 |
503d2be0 AS |
9199 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
9200 | if test "${ac_cv_header_locale_h+set}" = set; then | |
9201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 9202 | else |
503d2be0 | 9203 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9204 | #line 9204 "configure" |
503d2be0 AS |
9205 | #include "confdefs.h" |
9206 | #include <locale.h> | |
9207 | _ACEOF | |
cc227489 | 9208 | if { (eval echo "$as_me:9208: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
9209 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9210 | ac_status=$? | |
9211 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9212 | rm -f conftest.er1 | |
9213 | cat conftest.err >&5 | |
cc227489 | 9214 | echo "$as_me:9214: \$? = $ac_status" >&5 |
503d2be0 AS |
9215 | (exit $ac_status); } >/dev/null; then |
9216 | if test -s conftest.err; then | |
9217 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9218 | else | |
9219 | ac_cpp_err= | |
9220 | fi | |
9221 | else | |
9222 | ac_cpp_err=yes | |
4c343001 | 9223 | fi |
503d2be0 AS |
9224 | if test -z "$ac_cpp_err"; then |
9225 | ac_cv_header_locale_h=yes | |
9226 | else | |
9227 | echo "$as_me: failed program was:" >&5 | |
9228 | cat conftest.$ac_ext >&5 | |
9229 | ac_cv_header_locale_h=no | |
9230 | fi | |
9231 | rm -f conftest.err conftest.$ac_ext | |
9232 | fi | |
cc227489 | 9233 | echo "$as_me:9233: result: $ac_cv_header_locale_h" >&5 |
503d2be0 | 9234 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
4c343001 | 9235 | |
503d2be0 AS |
9236 | for ac_func in setlocale |
9237 | do | |
9238 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
cc227489 | 9239 | echo "$as_me:9239: checking for $ac_func" >&5 |
503d2be0 AS |
9240 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9241 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 9243 | else |
503d2be0 | 9244 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9245 | #line 9245 "configure" |
503d2be0 AS |
9246 | #include "confdefs.h" |
9247 | /* System header to define __stub macros and hopefully few prototypes, | |
9248 | which can conflict with char $ac_func (); below. */ | |
9249 | #include <assert.h> | |
9250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9251 | #ifdef __cplusplus | |
9252 | extern "C" | |
9253 | #endif | |
9254 | /* We use char because int might match the return type of a gcc2 | |
9255 | builtin and then its argument prototype would still apply. */ | |
9256 | char $ac_func (); | |
9257 | char (*f) (); | |
9258 | ||
9259 | int | |
9260 | main () | |
9261 | { | |
9262 | /* The GNU C library defines this for functions which it implements | |
9263 | to always fail with ENOSYS. Some functions are actually named | |
9264 | something starting with __ and the normal name is an alias. */ | |
9265 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9266 | choke me | |
9267 | #else | |
9268 | f = $ac_func; | |
9269 | #endif | |
9270 | ||
9271 | ; | |
9272 | return 0; | |
9273 | } | |
9274 | _ACEOF | |
9275 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 9276 | if { (eval echo "$as_me:9276: \"$ac_link\"") >&5 |
503d2be0 AS |
9277 | (eval $ac_link) 2>&5 |
9278 | ac_status=$? | |
cc227489 | 9279 | echo "$as_me:9279: \$? = $ac_status" >&5 |
503d2be0 AS |
9280 | (exit $ac_status); } && |
9281 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 9282 | { (eval echo "$as_me:9282: \"$ac_try\"") >&5 |
503d2be0 AS |
9283 | (eval $ac_try) 2>&5 |
9284 | ac_status=$? | |
cc227489 | 9285 | echo "$as_me:9285: \$? = $ac_status" >&5 |
503d2be0 AS |
9286 | (exit $ac_status); }; }; then |
9287 | eval "$as_ac_var=yes" | |
9288 | else | |
9289 | echo "$as_me: failed program was:" >&5 | |
9290 | cat conftest.$ac_ext >&5 | |
9291 | eval "$as_ac_var=no" | |
9292 | fi | |
9293 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9294 | fi | |
cc227489 | 9295 | echo "$as_me:9295: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
9296 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9297 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9298 | cat >>confdefs.h <<EOF | |
9299 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9300 | EOF | |
9301 | ||
4c343001 | 9302 | fi |
503d2be0 | 9303 | done |
4c343001 | 9304 | |
503d2be0 AS |
9305 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
9306 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
9307 | # Irix 4.0.5F has the header but not the library. | |
9308 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
9309 | ac_have_func=yes | |
4c343001 | 9310 | |
503d2be0 | 9311 | cat >>confdefs.h <<\EOF |
4c343001 DL |
9312 | #define SVR4 1 |
9313 | EOF | |
9314 | ||
503d2be0 | 9315 | fi |
4c343001 | 9316 | |
503d2be0 | 9317 | if test $ac_have_func = no; then |
cc227489 | 9318 | echo "$as_me:9318: checking for inq_stats/cpustats.h" >&5 |
503d2be0 AS |
9319 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
9320 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
9321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 9322 | else |
503d2be0 | 9323 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9324 | #line 9324 "configure" |
4c343001 DL |
9325 | #include "confdefs.h" |
9326 | #include <inq_stats/cpustats.h> | |
503d2be0 | 9327 | _ACEOF |
cc227489 | 9328 | if { (eval echo "$as_me:9328: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
9329 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9330 | ac_status=$? | |
9331 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9332 | rm -f conftest.er1 | |
9333 | cat conftest.err >&5 | |
cc227489 | 9334 | echo "$as_me:9334: \$? = $ac_status" >&5 |
503d2be0 AS |
9335 | (exit $ac_status); } >/dev/null; then |
9336 | if test -s conftest.err; then | |
9337 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9338 | else | |
9339 | ac_cpp_err= | |
9340 | fi | |
9341 | else | |
9342 | ac_cpp_err=yes | |
9343 | fi | |
9344 | if test -z "$ac_cpp_err"; then | |
9345 | ac_cv_header_inq_stats_cpustats_h=yes | |
4c343001 | 9346 | else |
503d2be0 | 9347 | echo "$as_me: failed program was:" >&5 |
4c343001 | 9348 | cat conftest.$ac_ext >&5 |
503d2be0 | 9349 | ac_cv_header_inq_stats_cpustats_h=no |
4c343001 | 9350 | fi |
503d2be0 | 9351 | rm -f conftest.err conftest.$ac_ext |
4c343001 | 9352 | fi |
cc227489 | 9353 | echo "$as_me:9353: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
503d2be0 AS |
9354 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
9355 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
9356 | ac_have_func=yes | |
9357 | ||
9358 | cat >>confdefs.h <<\EOF | |
4c343001 DL |
9359 | #define UMAX 1 |
9360 | EOF | |
9361 | ||
503d2be0 | 9362 | cat >>confdefs.h <<\EOF |
4c343001 DL |
9363 | #define UMAX4_3 1 |
9364 | EOF | |
9365 | ||
4c343001 DL |
9366 | fi |
9367 | ||
503d2be0 | 9368 | fi |
4c343001 | 9369 | |
503d2be0 | 9370 | if test $ac_have_func = no; then |
cc227489 | 9371 | echo "$as_me:9371: checking for sys/cpustats.h" >&5 |
503d2be0 AS |
9372 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
9373 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
9374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 9375 | else |
503d2be0 | 9376 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9377 | #line 9377 "configure" |
4c343001 DL |
9378 | #include "confdefs.h" |
9379 | #include <sys/cpustats.h> | |
503d2be0 | 9380 | _ACEOF |
cc227489 | 9381 | if { (eval echo "$as_me:9381: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
9382 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9383 | ac_status=$? | |
9384 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9385 | rm -f conftest.er1 | |
9386 | cat conftest.err >&5 | |
cc227489 | 9387 | echo "$as_me:9387: \$? = $ac_status" >&5 |
503d2be0 AS |
9388 | (exit $ac_status); } >/dev/null; then |
9389 | if test -s conftest.err; then | |
9390 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9391 | else | |
9392 | ac_cpp_err= | |
9393 | fi | |
4c343001 | 9394 | else |
503d2be0 AS |
9395 | ac_cpp_err=yes |
9396 | fi | |
9397 | if test -z "$ac_cpp_err"; then | |
9398 | ac_cv_header_sys_cpustats_h=yes | |
9399 | else | |
9400 | echo "$as_me: failed program was:" >&5 | |
4c343001 | 9401 | cat conftest.$ac_ext >&5 |
503d2be0 | 9402 | ac_cv_header_sys_cpustats_h=no |
4c343001 | 9403 | fi |
503d2be0 | 9404 | rm -f conftest.err conftest.$ac_ext |
4c343001 | 9405 | fi |
cc227489 | 9406 | echo "$as_me:9406: result: $ac_cv_header_sys_cpustats_h" >&5 |
503d2be0 AS |
9407 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
9408 | if test $ac_cv_header_sys_cpustats_h = yes; then | |
9409 | ac_have_func=yes; cat >>confdefs.h <<\EOF | |
4c343001 DL |
9410 | #define UMAX 1 |
9411 | EOF | |
9412 | ||
4c343001 DL |
9413 | fi |
9414 | ||
503d2be0 | 9415 | fi |
4c343001 | 9416 | |
503d2be0 AS |
9417 | if test $ac_have_func = no; then |
9418 | ||
9419 | for ac_header in mach/mach.h | |
4c343001 | 9420 | do |
503d2be0 | 9421 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 9422 | echo "$as_me:9422: checking for $ac_header" >&5 |
503d2be0 AS |
9423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9426 | else | |
9427 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 9428 | #line 9428 "configure" |
503d2be0 AS |
9429 | #include "confdefs.h" |
9430 | #include <$ac_header> | |
9431 | _ACEOF | |
cc227489 | 9432 | if { (eval echo "$as_me:9432: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
9433 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9434 | ac_status=$? | |
9435 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9436 | rm -f conftest.er1 | |
9437 | cat conftest.err >&5 | |
cc227489 | 9438 | echo "$as_me:9438: \$? = $ac_status" >&5 |
503d2be0 AS |
9439 | (exit $ac_status); } >/dev/null; then |
9440 | if test -s conftest.err; then | |
9441 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9442 | else | |
9443 | ac_cpp_err= | |
9444 | fi | |
9445 | else | |
9446 | ac_cpp_err=yes | |
9447 | fi | |
9448 | if test -z "$ac_cpp_err"; then | |
9449 | eval "$as_ac_Header=yes" | |
9450 | else | |
9451 | echo "$as_me: failed program was:" >&5 | |
4c343001 | 9452 | cat conftest.$ac_ext >&5 |
503d2be0 | 9453 | eval "$as_ac_Header=no" |
4c343001 | 9454 | fi |
503d2be0 | 9455 | rm -f conftest.err conftest.$ac_ext |
4c343001 | 9456 | fi |
cc227489 | 9457 | echo "$as_me:9457: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
9458 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9459 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9460 | cat >>confdefs.h <<EOF | |
9461 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4c343001 | 9462 | EOF |
503d2be0 | 9463 | |
4c343001 DL |
9464 | fi |
9465 | done | |
9466 | ||
503d2be0 | 9467 | fi |
4c343001 | 9468 | |
503d2be0 AS |
9469 | for ac_header in nlist.h |
9470 | do | |
9471 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
cc227489 | 9472 | echo "$as_me:9472: checking for $ac_header" >&5 |
503d2be0 AS |
9473 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9474 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9476 | else | |
9477 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 9478 | #line 9478 "configure" |
503d2be0 AS |
9479 | #include "confdefs.h" |
9480 | #include <$ac_header> | |
9481 | _ACEOF | |
cc227489 | 9482 | if { (eval echo "$as_me:9482: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
9483 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9484 | ac_status=$? | |
9485 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9486 | rm -f conftest.er1 | |
9487 | cat conftest.err >&5 | |
cc227489 | 9488 | echo "$as_me:9488: \$? = $ac_status" >&5 |
503d2be0 AS |
9489 | (exit $ac_status); } >/dev/null; then |
9490 | if test -s conftest.err; then | |
9491 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9492 | else | |
9493 | ac_cpp_err= | |
9494 | fi | |
4c343001 | 9495 | else |
503d2be0 AS |
9496 | ac_cpp_err=yes |
9497 | fi | |
9498 | if test -z "$ac_cpp_err"; then | |
9499 | eval "$as_ac_Header=yes" | |
4c343001 | 9500 | else |
503d2be0 | 9501 | echo "$as_me: failed program was:" >&5 |
4c343001 | 9502 | cat conftest.$ac_ext >&5 |
503d2be0 | 9503 | eval "$as_ac_Header=no" |
4c343001 | 9504 | fi |
503d2be0 | 9505 | rm -f conftest.err conftest.$ac_ext |
4c343001 | 9506 | fi |
cc227489 | 9507 | echo "$as_me:9507: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
9508 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9509 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9510 | cat >>confdefs.h <<EOF | |
9511 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4c343001 | 9512 | EOF |
cc227489 | 9513 | echo "$as_me:9513: checking for struct nlist.n_un.n_name" >&5 |
503d2be0 AS |
9514 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
9515 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
9516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 9517 | else |
503d2be0 | 9518 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9519 | #line 9519 "configure" |
4c343001 DL |
9520 | #include "confdefs.h" |
9521 | #include <nlist.h> | |
4c343001 | 9522 | |
503d2be0 AS |
9523 | int |
9524 | main () | |
9525 | { | |
9526 | static struct nlist ac_aggr; | |
9527 | if (ac_aggr.n_un.n_name) | |
9528 | return 0; | |
9529 | ; | |
9530 | return 0; | |
9531 | } | |
9532 | _ACEOF | |
9533 | rm -f conftest.$ac_objext | |
cc227489 | 9534 | if { (eval echo "$as_me:9534: \"$ac_compile\"") >&5 |
503d2be0 AS |
9535 | (eval $ac_compile) 2>&5 |
9536 | ac_status=$? | |
cc227489 | 9537 | echo "$as_me:9537: \$? = $ac_status" >&5 |
503d2be0 AS |
9538 | (exit $ac_status); } && |
9539 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 9540 | { (eval echo "$as_me:9540: \"$ac_try\"") >&5 |
503d2be0 AS |
9541 | (eval $ac_try) 2>&5 |
9542 | ac_status=$? | |
cc227489 | 9543 | echo "$as_me:9543: \$? = $ac_status" >&5 |
503d2be0 AS |
9544 | (exit $ac_status); }; }; then |
9545 | ac_cv_member_struct_nlist_n_un_n_name=yes | |
9546 | else | |
9547 | echo "$as_me: failed program was:" >&5 | |
9548 | cat conftest.$ac_ext >&5 | |
9549 | ac_cv_member_struct_nlist_n_un_n_name=no | |
9550 | fi | |
9551 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9552 | fi | |
cc227489 | 9553 | echo "$as_me:9553: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
503d2be0 AS |
9554 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
9555 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
9556 | ||
9557 | cat >>confdefs.h <<EOF | |
9558 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | |
9559 | EOF | |
9560 | ||
9561 | cat >>confdefs.h <<\EOF | |
4c343001 DL |
9562 | #define NLIST_NAME_UNION 1 |
9563 | EOF | |
9564 | ||
4c343001 | 9565 | fi |
503d2be0 AS |
9566 | |
9567 | fi | |
9568 | done | |
9569 | ||
9570 | fi | |
9571 | done | |
4c343001 DL |
9572 | |
9573 | # Some definitions of getloadavg require that the program be installed setgid. | |
cc227489 | 9574 | echo "$as_me:9574: checking whether getloadavg requires setgid" >&5 |
503d2be0 AS |
9575 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
9576 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
9577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 9578 | else |
503d2be0 | 9579 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9580 | #line 9580 "configure" |
4c343001 DL |
9581 | #include "confdefs.h" |
9582 | #include "$srcdir/getloadavg.c" | |
9583 | #ifdef LDAV_PRIVILEGED | |
9584 | Yowza Am I SETGID yet | |
9585 | #endif | |
503d2be0 | 9586 | _ACEOF |
4c343001 DL |
9587 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9588 | egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
4c343001 DL |
9589 | ac_cv_func_getloadavg_setgid=yes |
9590 | else | |
4c343001 DL |
9591 | ac_cv_func_getloadavg_setgid=no |
9592 | fi | |
9593 | rm -f conftest* | |
9594 | ||
9595 | fi | |
cc227489 | 9596 | echo "$as_me:9596: result: $ac_cv_func_getloadavg_setgid" >&5 |
503d2be0 | 9597 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
4c343001 | 9598 | if test $ac_cv_func_getloadavg_setgid = yes; then |
503d2be0 AS |
9599 | NEED_SETGID=true |
9600 | ||
9601 | cat >>confdefs.h <<\EOF | |
4c343001 DL |
9602 | #define GETLOADAVG_PRIVILEGED 1 |
9603 | EOF | |
9604 | ||
9605 | else | |
9606 | NEED_SETGID=false | |
9607 | fi | |
9608 | ||
9609 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
cc227489 | 9610 | echo "$as_me:9610: checking group of /dev/kmem" >&5 |
503d2be0 AS |
9611 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
9612 | if test "${ac_cv_group_kmem+set}" = set; then | |
9613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 9614 | else |
503d2be0 | 9615 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
4c343001 DL |
9616 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
9617 | # If we got an error (system does not support symlinks), try without -L. | |
9618 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
9619 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
9620 | | sed -ne 's/[ ][ ]*/ /g; | |
9621 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
9622 | / /s/.* //;p;'` | |
9623 | ||
9624 | fi | |
cc227489 | 9625 | echo "$as_me:9625: result: $ac_cv_group_kmem" >&5 |
503d2be0 | 9626 | echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
4c343001 DL |
9627 | KMEM_GROUP=$ac_cv_group_kmem |
9628 | fi | |
503d2be0 AS |
9629 | if test "x$ac_save_LIBS" = x; then |
9630 | GETLOADAVG_LIBS=$LIBS | |
9631 | else | |
9632 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
9633 | fi | |
9634 | LIBS=$ac_save_LIBS | |
4c343001 | 9635 | |
cc227489 | 9636 | echo "$as_me:9636: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
503d2be0 AS |
9637 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
9638 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
9639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d42122a3 | 9640 | else |
503d2be0 | 9641 | while :; do |
169fe44e | 9642 | ac_cv_sys_largefile_source=no |
503d2be0 | 9643 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9644 | #line 9644 "configure" |
169fe44e GM |
9645 | #include "confdefs.h" |
9646 | #include <stdio.h> | |
503d2be0 AS |
9647 | int |
9648 | main () | |
9649 | { | |
169fe44e | 9650 | return !fseeko; |
503d2be0 AS |
9651 | ; |
9652 | return 0; | |
9653 | } | |
9654 | _ACEOF | |
9655 | rm -f conftest.$ac_objext | |
cc227489 | 9656 | if { (eval echo "$as_me:9656: \"$ac_compile\"") >&5 |
503d2be0 AS |
9657 | (eval $ac_compile) 2>&5 |
9658 | ac_status=$? | |
cc227489 | 9659 | echo "$as_me:9659: \$? = $ac_status" >&5 |
503d2be0 AS |
9660 | (exit $ac_status); } && |
9661 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 9662 | { (eval echo "$as_me:9662: \"$ac_try\"") >&5 |
503d2be0 AS |
9663 | (eval $ac_try) 2>&5 |
9664 | ac_status=$? | |
cc227489 | 9665 | echo "$as_me:9665: \$? = $ac_status" >&5 |
503d2be0 AS |
9666 | (exit $ac_status); }; }; then |
9667 | break | |
169fe44e | 9668 | else |
503d2be0 AS |
9669 | echo "$as_me: failed program was:" >&5 |
9670 | cat conftest.$ac_ext >&5 | |
9671 | fi | |
9672 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9673 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 9674 | #line 9674 "configure" |
d42122a3 | 9675 | #include "confdefs.h" |
169fe44e GM |
9676 | #define _LARGEFILE_SOURCE 1 |
9677 | #include <stdio.h> | |
503d2be0 AS |
9678 | int |
9679 | main () | |
9680 | { | |
169fe44e | 9681 | return !fseeko; |
503d2be0 AS |
9682 | ; |
9683 | return 0; | |
9684 | } | |
9685 | _ACEOF | |
9686 | rm -f conftest.$ac_objext | |
cc227489 | 9687 | if { (eval echo "$as_me:9687: \"$ac_compile\"") >&5 |
503d2be0 AS |
9688 | (eval $ac_compile) 2>&5 |
9689 | ac_status=$? | |
cc227489 | 9690 | echo "$as_me:9690: \$? = $ac_status" >&5 |
503d2be0 AS |
9691 | (exit $ac_status); } && |
9692 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 9693 | { (eval echo "$as_me:9693: \"$ac_try\"") >&5 |
503d2be0 AS |
9694 | (eval $ac_try) 2>&5 |
9695 | ac_status=$? | |
cc227489 | 9696 | echo "$as_me:9696: \$? = $ac_status" >&5 |
503d2be0 AS |
9697 | (exit $ac_status); }; }; then |
9698 | ac_cv_sys_largefile_source=1; break | |
9699 | else | |
9700 | echo "$as_me: failed program was:" >&5 | |
9701 | cat conftest.$ac_ext >&5 | |
9702 | fi | |
9703 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9704 | break | |
9705 | done | |
d42122a3 | 9706 | fi |
cc227489 | 9707 | echo "$as_me:9707: result: $ac_cv_sys_largefile_source" >&5 |
503d2be0 AS |
9708 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
9709 | if test "$ac_cv_sys_largefile_source" != no; then | |
d42122a3 | 9710 | |
503d2be0 | 9711 | cat >>confdefs.h <<EOF |
169fe44e | 9712 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
d42122a3 | 9713 | EOF |
169fe44e | 9714 | |
503d2be0 AS |
9715 | fi |
9716 | rm -f conftest* | |
169fe44e | 9717 | |
503d2be0 AS |
9718 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
9719 | # in glibc 2.1.3, but that breaks too many other things. | |
9720 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
cc227489 | 9721 | echo "$as_me:9721: checking for fseeko" >&5 |
503d2be0 AS |
9722 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
9723 | if test "${ac_cv_func_fseeko+set}" = set; then | |
9724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d42122a3 | 9725 | else |
503d2be0 | 9726 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9727 | #line 9727 "configure" |
169fe44e GM |
9728 | #include "confdefs.h" |
9729 | #include <stdio.h> | |
503d2be0 AS |
9730 | int |
9731 | main () | |
9732 | { | |
169fe44e | 9733 | return fseeko && fseeko (stdin, 0, 0); |
503d2be0 AS |
9734 | ; |
9735 | return 0; | |
9736 | } | |
9737 | _ACEOF | |
9738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 9739 | if { (eval echo "$as_me:9739: \"$ac_link\"") >&5 |
503d2be0 AS |
9740 | (eval $ac_link) 2>&5 |
9741 | ac_status=$? | |
cc227489 | 9742 | echo "$as_me:9742: \$? = $ac_status" >&5 |
503d2be0 AS |
9743 | (exit $ac_status); } && |
9744 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 9745 | { (eval echo "$as_me:9745: \"$ac_try\"") >&5 |
503d2be0 AS |
9746 | (eval $ac_try) 2>&5 |
9747 | ac_status=$? | |
cc227489 | 9748 | echo "$as_me:9748: \$? = $ac_status" >&5 |
503d2be0 | 9749 | (exit $ac_status); }; }; then |
169fe44e GM |
9750 | ac_cv_func_fseeko=yes |
9751 | else | |
503d2be0 AS |
9752 | echo "$as_me: failed program was:" >&5 |
9753 | cat conftest.$ac_ext >&5 | |
9754 | ac_cv_func_fseeko=no | |
169fe44e | 9755 | fi |
503d2be0 | 9756 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
d42122a3 | 9757 | fi |
cc227489 | 9758 | echo "$as_me:9758: result: $ac_cv_func_fseeko" >&5 |
503d2be0 AS |
9759 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
9760 | if test $ac_cv_func_fseeko = yes; then | |
d42122a3 | 9761 | |
503d2be0 | 9762 | cat >>confdefs.h <<\EOF |
169fe44e GM |
9763 | #define HAVE_FSEEKO 1 |
9764 | EOF | |
9765 | ||
503d2be0 | 9766 | fi |
d42122a3 | 9767 | |
169fe44e | 9768 | # UNIX98 PTYs. |
503d2be0 | 9769 | |
087121cc GM |
9770 | for ac_func in grantpt |
9771 | do | |
503d2be0 | 9772 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
cc227489 | 9773 | echo "$as_me:9773: checking for $ac_func" >&5 |
503d2be0 AS |
9774 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9775 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
087121cc | 9777 | else |
503d2be0 | 9778 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9779 | #line 9779 "configure" |
087121cc GM |
9780 | #include "confdefs.h" |
9781 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 9782 | which can conflict with char $ac_func (); below. */ |
087121cc GM |
9783 | #include <assert.h> |
9784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
9785 | #ifdef __cplusplus |
9786 | extern "C" | |
9787 | #endif | |
087121cc | 9788 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
9789 | builtin and then its argument prototype would still apply. */ |
9790 | char $ac_func (); | |
9791 | char (*f) (); | |
087121cc | 9792 | |
503d2be0 AS |
9793 | int |
9794 | main () | |
9795 | { | |
087121cc GM |
9796 | /* The GNU C library defines this for functions which it implements |
9797 | to always fail with ENOSYS. Some functions are actually named | |
9798 | something starting with __ and the normal name is an alias. */ | |
9799 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9800 | choke me | |
9801 | #else | |
503d2be0 | 9802 | f = $ac_func; |
087121cc GM |
9803 | #endif |
9804 | ||
503d2be0 AS |
9805 | ; |
9806 | return 0; | |
9807 | } | |
9808 | _ACEOF | |
9809 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 9810 | if { (eval echo "$as_me:9810: \"$ac_link\"") >&5 |
503d2be0 AS |
9811 | (eval $ac_link) 2>&5 |
9812 | ac_status=$? | |
cc227489 | 9813 | echo "$as_me:9813: \$? = $ac_status" >&5 |
503d2be0 AS |
9814 | (exit $ac_status); } && |
9815 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 9816 | { (eval echo "$as_me:9816: \"$ac_try\"") >&5 |
503d2be0 AS |
9817 | (eval $ac_try) 2>&5 |
9818 | ac_status=$? | |
cc227489 | 9819 | echo "$as_me:9819: \$? = $ac_status" >&5 |
503d2be0 AS |
9820 | (exit $ac_status); }; }; then |
9821 | eval "$as_ac_var=yes" | |
9822 | else | |
9823 | echo "$as_me: failed program was:" >&5 | |
9824 | cat conftest.$ac_ext >&5 | |
9825 | eval "$as_ac_var=no" | |
9826 | fi | |
9827 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9828 | fi | |
cc227489 | 9829 | echo "$as_me:9829: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
9830 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9831 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9832 | cat >>confdefs.h <<EOF | |
9833 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
087121cc | 9834 | EOF |
087121cc | 9835 | |
087121cc GM |
9836 | fi |
9837 | done | |
9838 | ||
087121cc | 9839 | # PTY-related GNU extensions. |
503d2be0 | 9840 | |
087121cc GM |
9841 | for ac_func in getpt |
9842 | do | |
503d2be0 | 9843 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
cc227489 | 9844 | echo "$as_me:9844: checking for $ac_func" >&5 |
503d2be0 AS |
9845 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9846 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
087121cc | 9848 | else |
503d2be0 | 9849 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9850 | #line 9850 "configure" |
087121cc GM |
9851 | #include "confdefs.h" |
9852 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 9853 | which can conflict with char $ac_func (); below. */ |
087121cc GM |
9854 | #include <assert.h> |
9855 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
9856 | #ifdef __cplusplus |
9857 | extern "C" | |
9858 | #endif | |
087121cc | 9859 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
9860 | builtin and then its argument prototype would still apply. */ |
9861 | char $ac_func (); | |
9862 | char (*f) (); | |
087121cc | 9863 | |
503d2be0 AS |
9864 | int |
9865 | main () | |
9866 | { | |
087121cc GM |
9867 | /* The GNU C library defines this for functions which it implements |
9868 | to always fail with ENOSYS. Some functions are actually named | |
9869 | something starting with __ and the normal name is an alias. */ | |
9870 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9871 | choke me | |
9872 | #else | |
503d2be0 | 9873 | f = $ac_func; |
087121cc GM |
9874 | #endif |
9875 | ||
503d2be0 AS |
9876 | ; |
9877 | return 0; | |
9878 | } | |
9879 | _ACEOF | |
9880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 9881 | if { (eval echo "$as_me:9881: \"$ac_link\"") >&5 |
503d2be0 AS |
9882 | (eval $ac_link) 2>&5 |
9883 | ac_status=$? | |
cc227489 | 9884 | echo "$as_me:9884: \$? = $ac_status" >&5 |
503d2be0 AS |
9885 | (exit $ac_status); } && |
9886 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 9887 | { (eval echo "$as_me:9887: \"$ac_try\"") >&5 |
503d2be0 AS |
9888 | (eval $ac_try) 2>&5 |
9889 | ac_status=$? | |
cc227489 | 9890 | echo "$as_me:9890: \$? = $ac_status" >&5 |
503d2be0 AS |
9891 | (exit $ac_status); }; }; then |
9892 | eval "$as_ac_var=yes" | |
9893 | else | |
9894 | echo "$as_me: failed program was:" >&5 | |
9895 | cat conftest.$ac_ext >&5 | |
9896 | eval "$as_ac_var=no" | |
9897 | fi | |
9898 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9899 | fi | |
cc227489 | 9900 | echo "$as_me:9900: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
9901 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9902 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9903 | cat >>confdefs.h <<EOF | |
9904 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
087121cc | 9905 | EOF |
087121cc | 9906 | |
087121cc GM |
9907 | fi |
9908 | done | |
9909 | ||
ba4481b5 DL |
9910 | # Check this now, so that we will NOT find the above functions in ncurses. |
9911 | # That is because we have not set up to link ncurses in lib-src. | |
9912 | # It's better to believe a function is not available | |
9913 | # than to expect to find it in ncurses. | |
503d2be0 | 9914 | |
cc227489 | 9915 | echo "$as_me:9915: checking for tparm in -lncurses" >&5 |
503d2be0 AS |
9916 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
9917 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
9918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 9919 | else |
503d2be0 | 9920 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 9921 | LIBS="-lncurses $LIBS" |
503d2be0 | 9922 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 9923 | #line 9923 "configure" |
ba4481b5 | 9924 | #include "confdefs.h" |
503d2be0 | 9925 | |
ba4481b5 | 9926 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
9927 | #ifdef __cplusplus |
9928 | extern "C" | |
9929 | #endif | |
ba4481b5 | 9930 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
9931 | builtin and then its argument prototype would still apply. */ |
9932 | char tparm (); | |
9933 | int | |
9934 | main () | |
9935 | { | |
9936 | tparm (); | |
9937 | ; | |
9938 | return 0; | |
9939 | } | |
9940 | _ACEOF | |
9941 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 9942 | if { (eval echo "$as_me:9942: \"$ac_link\"") >&5 |
503d2be0 AS |
9943 | (eval $ac_link) 2>&5 |
9944 | ac_status=$? | |
cc227489 | 9945 | echo "$as_me:9945: \$? = $ac_status" >&5 |
503d2be0 AS |
9946 | (exit $ac_status); } && |
9947 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 9948 | { (eval echo "$as_me:9948: \"$ac_try\"") >&5 |
503d2be0 AS |
9949 | (eval $ac_try) 2>&5 |
9950 | ac_status=$? | |
cc227489 | 9951 | echo "$as_me:9951: \$? = $ac_status" >&5 |
503d2be0 AS |
9952 | (exit $ac_status); }; }; then |
9953 | ac_cv_lib_ncurses_tparm=yes | |
9954 | else | |
9955 | echo "$as_me: failed program was:" >&5 | |
9956 | cat conftest.$ac_ext >&5 | |
9957 | ac_cv_lib_ncurses_tparm=no | |
9958 | fi | |
9959 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9960 | LIBS=$ac_check_lib_save_LIBS | |
9961 | fi | |
cc227489 | 9962 | echo "$as_me:9962: result: $ac_cv_lib_ncurses_tparm" >&5 |
503d2be0 AS |
9963 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
9964 | if test $ac_cv_lib_ncurses_tparm = yes; then | |
9965 | cat >>confdefs.h <<EOF | |
9966 | #define HAVE_LIBNCURSES 1 | |
ba4481b5 DL |
9967 | EOF |
9968 | ||
9969 | LIBS="-lncurses $LIBS" | |
9970 | ||
ba4481b5 DL |
9971 | fi |
9972 | ||
84e70f78 KR |
9973 | # Do we need the Hesiod library to provide the support routines? |
9974 | if test "$with_hesiod" = yes ; then | |
9975 | # Don't set $LIBS here -- see comments above. | |
9976 | resolv=no | |
cc227489 | 9977 | echo "$as_me:9977: checking for res_send" >&5 |
84e70f78 KR |
9978 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
9979 | if test "${ac_cv_func_res_send+set}" = set; then | |
9980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9981 | else | |
9982 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 9983 | #line 9983 "configure" |
84e70f78 KR |
9984 | #include "confdefs.h" |
9985 | /* System header to define __stub macros and hopefully few prototypes, | |
9986 | which can conflict with char res_send (); below. */ | |
9987 | #include <assert.h> | |
9988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9989 | #ifdef __cplusplus | |
9990 | extern "C" | |
9991 | #endif | |
9992 | /* We use char because int might match the return type of a gcc2 | |
9993 | builtin and then its argument prototype would still apply. */ | |
9994 | char res_send (); | |
9995 | char (*f) (); | |
9996 | ||
9997 | int | |
9998 | main () | |
9999 | { | |
10000 | /* The GNU C library defines this for functions which it implements | |
10001 | to always fail with ENOSYS. Some functions are actually named | |
10002 | something starting with __ and the normal name is an alias. */ | |
10003 | #if defined (__stub_res_send) || defined (__stub___res_send) | |
10004 | choke me | |
10005 | #else | |
10006 | f = res_send; | |
10007 | #endif | |
10008 | ||
10009 | ; | |
10010 | return 0; | |
10011 | } | |
10012 | _ACEOF | |
10013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10014 | if { (eval echo "$as_me:10014: \"$ac_link\"") >&5 |
84e70f78 KR |
10015 | (eval $ac_link) 2>&5 |
10016 | ac_status=$? | |
cc227489 | 10017 | echo "$as_me:10017: \$? = $ac_status" >&5 |
84e70f78 KR |
10018 | (exit $ac_status); } && |
10019 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10020 | { (eval echo "$as_me:10020: \"$ac_try\"") >&5 |
84e70f78 KR |
10021 | (eval $ac_try) 2>&5 |
10022 | ac_status=$? | |
cc227489 | 10023 | echo "$as_me:10023: \$? = $ac_status" >&5 |
84e70f78 KR |
10024 | (exit $ac_status); }; }; then |
10025 | ac_cv_func_res_send=yes | |
10026 | else | |
10027 | echo "$as_me: failed program was:" >&5 | |
10028 | cat conftest.$ac_ext >&5 | |
10029 | ac_cv_func_res_send=no | |
10030 | fi | |
10031 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10032 | fi | |
cc227489 | 10033 | echo "$as_me:10033: result: $ac_cv_func_res_send" >&5 |
84e70f78 KR |
10034 | echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
10035 | if test $ac_cv_func_res_send = yes; then | |
10036 | : | |
10037 | else | |
cc227489 | 10038 | echo "$as_me:10038: checking for __res_send" >&5 |
84e70f78 KR |
10039 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
10040 | if test "${ac_cv_func___res_send+set}" = set; then | |
10041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10042 | else | |
10043 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 10044 | #line 10044 "configure" |
84e70f78 KR |
10045 | #include "confdefs.h" |
10046 | /* System header to define __stub macros and hopefully few prototypes, | |
10047 | which can conflict with char __res_send (); below. */ | |
10048 | #include <assert.h> | |
10049 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10050 | #ifdef __cplusplus | |
10051 | extern "C" | |
10052 | #endif | |
10053 | /* We use char because int might match the return type of a gcc2 | |
10054 | builtin and then its argument prototype would still apply. */ | |
10055 | char __res_send (); | |
10056 | char (*f) (); | |
10057 | ||
10058 | int | |
10059 | main () | |
10060 | { | |
10061 | /* The GNU C library defines this for functions which it implements | |
10062 | to always fail with ENOSYS. Some functions are actually named | |
10063 | something starting with __ and the normal name is an alias. */ | |
10064 | #if defined (__stub___res_send) || defined (__stub_____res_send) | |
10065 | choke me | |
10066 | #else | |
10067 | f = __res_send; | |
10068 | #endif | |
10069 | ||
10070 | ; | |
10071 | return 0; | |
10072 | } | |
10073 | _ACEOF | |
10074 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10075 | if { (eval echo "$as_me:10075: \"$ac_link\"") >&5 |
84e70f78 KR |
10076 | (eval $ac_link) 2>&5 |
10077 | ac_status=$? | |
cc227489 | 10078 | echo "$as_me:10078: \$? = $ac_status" >&5 |
84e70f78 KR |
10079 | (exit $ac_status); } && |
10080 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10081 | { (eval echo "$as_me:10081: \"$ac_try\"") >&5 |
84e70f78 KR |
10082 | (eval $ac_try) 2>&5 |
10083 | ac_status=$? | |
cc227489 | 10084 | echo "$as_me:10084: \$? = $ac_status" >&5 |
84e70f78 KR |
10085 | (exit $ac_status); }; }; then |
10086 | ac_cv_func___res_send=yes | |
10087 | else | |
10088 | echo "$as_me: failed program was:" >&5 | |
10089 | cat conftest.$ac_ext >&5 | |
10090 | ac_cv_func___res_send=no | |
10091 | fi | |
10092 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10093 | fi | |
cc227489 | 10094 | echo "$as_me:10094: result: $ac_cv_func___res_send" >&5 |
84e70f78 KR |
10095 | echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
10096 | if test $ac_cv_func___res_send = yes; then | |
10097 | : | |
10098 | else | |
cc227489 | 10099 | echo "$as_me:10099: checking for res_send in -lresolv" >&5 |
84e70f78 KR |
10100 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
10101 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then | |
10102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10103 | else | |
10104 | ac_check_lib_save_LIBS=$LIBS | |
10105 | LIBS="-lresolv $LIBS" | |
10106 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 10107 | #line 10107 "configure" |
84e70f78 KR |
10108 | #include "confdefs.h" |
10109 | ||
10110 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10111 | #ifdef __cplusplus | |
10112 | extern "C" | |
10113 | #endif | |
10114 | /* We use char because int might match the return type of a gcc2 | |
10115 | builtin and then its argument prototype would still apply. */ | |
10116 | char res_send (); | |
10117 | int | |
10118 | main () | |
10119 | { | |
10120 | res_send (); | |
10121 | ; | |
10122 | return 0; | |
10123 | } | |
10124 | _ACEOF | |
10125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10126 | if { (eval echo "$as_me:10126: \"$ac_link\"") >&5 |
84e70f78 KR |
10127 | (eval $ac_link) 2>&5 |
10128 | ac_status=$? | |
cc227489 | 10129 | echo "$as_me:10129: \$? = $ac_status" >&5 |
84e70f78 KR |
10130 | (exit $ac_status); } && |
10131 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10132 | { (eval echo "$as_me:10132: \"$ac_try\"") >&5 |
84e70f78 KR |
10133 | (eval $ac_try) 2>&5 |
10134 | ac_status=$? | |
cc227489 | 10135 | echo "$as_me:10135: \$? = $ac_status" >&5 |
84e70f78 KR |
10136 | (exit $ac_status); }; }; then |
10137 | ac_cv_lib_resolv_res_send=yes | |
10138 | else | |
10139 | echo "$as_me: failed program was:" >&5 | |
10140 | cat conftest.$ac_ext >&5 | |
10141 | ac_cv_lib_resolv_res_send=no | |
10142 | fi | |
10143 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10144 | LIBS=$ac_check_lib_save_LIBS | |
10145 | fi | |
cc227489 | 10146 | echo "$as_me:10146: result: $ac_cv_lib_resolv_res_send" >&5 |
84e70f78 KR |
10147 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
10148 | if test $ac_cv_lib_resolv_res_send = yes; then | |
10149 | resolv=yes | |
10150 | else | |
cc227489 | 10151 | echo "$as_me:10151: checking for __res_send in -lresolv" >&5 |
84e70f78 KR |
10152 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
10153 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then | |
10154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10155 | else | |
10156 | ac_check_lib_save_LIBS=$LIBS | |
10157 | LIBS="-lresolv $LIBS" | |
10158 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 10159 | #line 10159 "configure" |
84e70f78 KR |
10160 | #include "confdefs.h" |
10161 | ||
10162 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10163 | #ifdef __cplusplus | |
10164 | extern "C" | |
10165 | #endif | |
10166 | /* We use char because int might match the return type of a gcc2 | |
10167 | builtin and then its argument prototype would still apply. */ | |
10168 | char __res_send (); | |
10169 | int | |
10170 | main () | |
10171 | { | |
10172 | __res_send (); | |
10173 | ; | |
10174 | return 0; | |
10175 | } | |
10176 | _ACEOF | |
10177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10178 | if { (eval echo "$as_me:10178: \"$ac_link\"") >&5 |
84e70f78 KR |
10179 | (eval $ac_link) 2>&5 |
10180 | ac_status=$? | |
cc227489 | 10181 | echo "$as_me:10181: \$? = $ac_status" >&5 |
84e70f78 KR |
10182 | (exit $ac_status); } && |
10183 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10184 | { (eval echo "$as_me:10184: \"$ac_try\"") >&5 |
84e70f78 KR |
10185 | (eval $ac_try) 2>&5 |
10186 | ac_status=$? | |
cc227489 | 10187 | echo "$as_me:10187: \$? = $ac_status" >&5 |
84e70f78 KR |
10188 | (exit $ac_status); }; }; then |
10189 | ac_cv_lib_resolv___res_send=yes | |
10190 | else | |
10191 | echo "$as_me: failed program was:" >&5 | |
10192 | cat conftest.$ac_ext >&5 | |
10193 | ac_cv_lib_resolv___res_send=no | |
10194 | fi | |
10195 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10196 | LIBS=$ac_check_lib_save_LIBS | |
10197 | fi | |
cc227489 | 10198 | echo "$as_me:10198: result: $ac_cv_lib_resolv___res_send" >&5 |
84e70f78 KR |
10199 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
10200 | if test $ac_cv_lib_resolv___res_send = yes; then | |
10201 | resolv=yes | |
10202 | fi | |
10203 | ||
10204 | fi | |
10205 | ||
10206 | fi | |
10207 | ||
10208 | fi | |
10209 | ||
10210 | if test "$resolv" = yes ; then | |
10211 | RESOLVLIB=-lresolv | |
10212 | cat >>confdefs.h <<\EOF | |
10213 | #define HAVE_LIBRESOLV 1 | |
10214 | EOF | |
10215 | ||
10216 | else | |
10217 | RESOLVLIB= | |
10218 | fi | |
cc227489 | 10219 | echo "$as_me:10219: checking for hes_getmailhost" >&5 |
84e70f78 KR |
10220 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
10221 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then | |
10222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10223 | else | |
10224 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 10225 | #line 10225 "configure" |
84e70f78 KR |
10226 | #include "confdefs.h" |
10227 | /* System header to define __stub macros and hopefully few prototypes, | |
10228 | which can conflict with char hes_getmailhost (); below. */ | |
10229 | #include <assert.h> | |
10230 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10231 | #ifdef __cplusplus | |
10232 | extern "C" | |
10233 | #endif | |
10234 | /* We use char because int might match the return type of a gcc2 | |
10235 | builtin and then its argument prototype would still apply. */ | |
10236 | char hes_getmailhost (); | |
10237 | char (*f) (); | |
10238 | ||
10239 | int | |
10240 | main () | |
10241 | { | |
10242 | /* The GNU C library defines this for functions which it implements | |
10243 | to always fail with ENOSYS. Some functions are actually named | |
10244 | something starting with __ and the normal name is an alias. */ | |
10245 | #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) | |
10246 | choke me | |
10247 | #else | |
10248 | f = hes_getmailhost; | |
10249 | #endif | |
10250 | ||
10251 | ; | |
10252 | return 0; | |
10253 | } | |
10254 | _ACEOF | |
10255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10256 | if { (eval echo "$as_me:10256: \"$ac_link\"") >&5 |
84e70f78 KR |
10257 | (eval $ac_link) 2>&5 |
10258 | ac_status=$? | |
cc227489 | 10259 | echo "$as_me:10259: \$? = $ac_status" >&5 |
84e70f78 KR |
10260 | (exit $ac_status); } && |
10261 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10262 | { (eval echo "$as_me:10262: \"$ac_try\"") >&5 |
84e70f78 KR |
10263 | (eval $ac_try) 2>&5 |
10264 | ac_status=$? | |
cc227489 | 10265 | echo "$as_me:10265: \$? = $ac_status" >&5 |
84e70f78 KR |
10266 | (exit $ac_status); }; }; then |
10267 | ac_cv_func_hes_getmailhost=yes | |
10268 | else | |
10269 | echo "$as_me: failed program was:" >&5 | |
10270 | cat conftest.$ac_ext >&5 | |
10271 | ac_cv_func_hes_getmailhost=no | |
10272 | fi | |
10273 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10274 | fi | |
cc227489 | 10275 | echo "$as_me:10275: result: $ac_cv_func_hes_getmailhost" >&5 |
84e70f78 KR |
10276 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
10277 | if test $ac_cv_func_hes_getmailhost = yes; then | |
10278 | : | |
10279 | else | |
cc227489 | 10280 | echo "$as_me:10280: checking for hes_getmailhost in -lhesiod" >&5 |
84e70f78 KR |
10281 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
10282 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | |
10283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10284 | else | |
10285 | ac_check_lib_save_LIBS=$LIBS | |
10286 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
10287 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 10288 | #line 10288 "configure" |
84e70f78 KR |
10289 | #include "confdefs.h" |
10290 | ||
10291 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10292 | #ifdef __cplusplus | |
10293 | extern "C" | |
10294 | #endif | |
10295 | /* We use char because int might match the return type of a gcc2 | |
10296 | builtin and then its argument prototype would still apply. */ | |
10297 | char hes_getmailhost (); | |
10298 | int | |
10299 | main () | |
10300 | { | |
10301 | hes_getmailhost (); | |
10302 | ; | |
10303 | return 0; | |
10304 | } | |
10305 | _ACEOF | |
10306 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10307 | if { (eval echo "$as_me:10307: \"$ac_link\"") >&5 |
84e70f78 KR |
10308 | (eval $ac_link) 2>&5 |
10309 | ac_status=$? | |
cc227489 | 10310 | echo "$as_me:10310: \$? = $ac_status" >&5 |
84e70f78 KR |
10311 | (exit $ac_status); } && |
10312 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10313 | { (eval echo "$as_me:10313: \"$ac_try\"") >&5 |
84e70f78 KR |
10314 | (eval $ac_try) 2>&5 |
10315 | ac_status=$? | |
cc227489 | 10316 | echo "$as_me:10316: \$? = $ac_status" >&5 |
84e70f78 KR |
10317 | (exit $ac_status); }; }; then |
10318 | ac_cv_lib_hesiod_hes_getmailhost=yes | |
10319 | else | |
10320 | echo "$as_me: failed program was:" >&5 | |
10321 | cat conftest.$ac_ext >&5 | |
10322 | ac_cv_lib_hesiod_hes_getmailhost=no | |
10323 | fi | |
10324 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10325 | LIBS=$ac_check_lib_save_LIBS | |
10326 | fi | |
cc227489 | 10327 | echo "$as_me:10327: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
84e70f78 KR |
10328 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
10329 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | |
10330 | cat >>confdefs.h <<\EOF | |
10331 | #define HAVE_LIBHESIOD 1 | |
10332 | EOF | |
10333 | ||
10334 | else | |
10335 | : | |
10336 | fi | |
10337 | ||
10338 | fi | |
10339 | ||
10340 | fi | |
10341 | ||
a21616bd KR |
10342 | # These tell us which Kerberos-related libraries to use. |
10343 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 10344 | |
cc227489 | 10345 | echo "$as_me:10345: checking for com_err in -lcom_err" >&5 |
503d2be0 AS |
10346 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
10347 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
10348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10349 | else |
503d2be0 | 10350 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10351 | LIBS="-lcom_err $LIBS" |
503d2be0 | 10352 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 10353 | #line 10353 "configure" |
a21616bd | 10354 | #include "confdefs.h" |
503d2be0 | 10355 | |
a21616bd | 10356 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10357 | #ifdef __cplusplus |
10358 | extern "C" | |
10359 | #endif | |
a21616bd | 10360 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10361 | builtin and then its argument prototype would still apply. */ |
10362 | char com_err (); | |
10363 | int | |
10364 | main () | |
10365 | { | |
10366 | com_err (); | |
10367 | ; | |
10368 | return 0; | |
10369 | } | |
10370 | _ACEOF | |
10371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10372 | if { (eval echo "$as_me:10372: \"$ac_link\"") >&5 |
503d2be0 AS |
10373 | (eval $ac_link) 2>&5 |
10374 | ac_status=$? | |
cc227489 | 10375 | echo "$as_me:10375: \$? = $ac_status" >&5 |
503d2be0 AS |
10376 | (exit $ac_status); } && |
10377 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10378 | { (eval echo "$as_me:10378: \"$ac_try\"") >&5 |
503d2be0 AS |
10379 | (eval $ac_try) 2>&5 |
10380 | ac_status=$? | |
cc227489 | 10381 | echo "$as_me:10381: \$? = $ac_status" >&5 |
503d2be0 AS |
10382 | (exit $ac_status); }; }; then |
10383 | ac_cv_lib_com_err_com_err=yes | |
10384 | else | |
10385 | echo "$as_me: failed program was:" >&5 | |
10386 | cat conftest.$ac_ext >&5 | |
10387 | ac_cv_lib_com_err_com_err=no | |
10388 | fi | |
10389 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10390 | LIBS=$ac_check_lib_save_LIBS | |
10391 | fi | |
cc227489 | 10392 | echo "$as_me:10392: result: $ac_cv_lib_com_err_com_err" >&5 |
503d2be0 AS |
10393 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
10394 | if test $ac_cv_lib_com_err_com_err = yes; then | |
10395 | cat >>confdefs.h <<EOF | |
10396 | #define HAVE_LIBCOM_ERR 1 | |
a21616bd KR |
10397 | EOF |
10398 | ||
10399 | LIBS="-lcom_err $LIBS" | |
10400 | ||
a21616bd KR |
10401 | fi |
10402 | ||
cc227489 | 10403 | echo "$as_me:10403: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
503d2be0 AS |
10404 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
10405 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
10406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10407 | else |
503d2be0 | 10408 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10409 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 10410 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 10411 | #line 10411 "configure" |
a21616bd | 10412 | #include "confdefs.h" |
503d2be0 | 10413 | |
a21616bd | 10414 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10415 | #ifdef __cplusplus |
10416 | extern "C" | |
10417 | #endif | |
a21616bd | 10418 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10419 | builtin and then its argument prototype would still apply. */ |
10420 | char mit_des_cbc_encrypt (); | |
10421 | int | |
10422 | main () | |
10423 | { | |
10424 | mit_des_cbc_encrypt (); | |
10425 | ; | |
10426 | return 0; | |
10427 | } | |
10428 | _ACEOF | |
10429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10430 | if { (eval echo "$as_me:10430: \"$ac_link\"") >&5 |
503d2be0 AS |
10431 | (eval $ac_link) 2>&5 |
10432 | ac_status=$? | |
cc227489 | 10433 | echo "$as_me:10433: \$? = $ac_status" >&5 |
503d2be0 AS |
10434 | (exit $ac_status); } && |
10435 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10436 | { (eval echo "$as_me:10436: \"$ac_try\"") >&5 |
503d2be0 AS |
10437 | (eval $ac_try) 2>&5 |
10438 | ac_status=$? | |
cc227489 | 10439 | echo "$as_me:10439: \$? = $ac_status" >&5 |
503d2be0 AS |
10440 | (exit $ac_status); }; }; then |
10441 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
10442 | else | |
10443 | echo "$as_me: failed program was:" >&5 | |
10444 | cat conftest.$ac_ext >&5 | |
10445 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
10446 | fi | |
10447 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10448 | LIBS=$ac_check_lib_save_LIBS | |
10449 | fi | |
cc227489 | 10450 | echo "$as_me:10450: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
10451 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
10452 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
10453 | cat >>confdefs.h <<EOF | |
10454 | #define HAVE_LIBK5CRYPTO 1 | |
a21616bd KR |
10455 | EOF |
10456 | ||
10457 | LIBS="-lk5crypto $LIBS" | |
10458 | ||
a21616bd KR |
10459 | fi |
10460 | ||
cc227489 | 10461 | echo "$as_me:10461: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
503d2be0 AS |
10462 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
10463 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
10464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10465 | else |
503d2be0 | 10466 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10467 | LIBS="-lcrypto $LIBS" |
503d2be0 | 10468 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 10469 | #line 10469 "configure" |
a21616bd | 10470 | #include "confdefs.h" |
503d2be0 | 10471 | |
a21616bd | 10472 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10473 | #ifdef __cplusplus |
10474 | extern "C" | |
10475 | #endif | |
a21616bd | 10476 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10477 | builtin and then its argument prototype would still apply. */ |
10478 | char mit_des_cbc_encrypt (); | |
10479 | int | |
10480 | main () | |
10481 | { | |
10482 | mit_des_cbc_encrypt (); | |
10483 | ; | |
10484 | return 0; | |
10485 | } | |
10486 | _ACEOF | |
10487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10488 | if { (eval echo "$as_me:10488: \"$ac_link\"") >&5 |
503d2be0 AS |
10489 | (eval $ac_link) 2>&5 |
10490 | ac_status=$? | |
cc227489 | 10491 | echo "$as_me:10491: \$? = $ac_status" >&5 |
503d2be0 AS |
10492 | (exit $ac_status); } && |
10493 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10494 | { (eval echo "$as_me:10494: \"$ac_try\"") >&5 |
503d2be0 AS |
10495 | (eval $ac_try) 2>&5 |
10496 | ac_status=$? | |
cc227489 | 10497 | echo "$as_me:10497: \$? = $ac_status" >&5 |
503d2be0 AS |
10498 | (exit $ac_status); }; }; then |
10499 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
10500 | else | |
10501 | echo "$as_me: failed program was:" >&5 | |
10502 | cat conftest.$ac_ext >&5 | |
10503 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
10504 | fi | |
10505 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10506 | LIBS=$ac_check_lib_save_LIBS | |
10507 | fi | |
cc227489 | 10508 | echo "$as_me:10508: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
10509 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
10510 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
10511 | cat >>confdefs.h <<EOF | |
10512 | #define HAVE_LIBCRYPTO 1 | |
a21616bd KR |
10513 | EOF |
10514 | ||
10515 | LIBS="-lcrypto $LIBS" | |
10516 | ||
a21616bd KR |
10517 | fi |
10518 | ||
cc227489 | 10519 | echo "$as_me:10519: checking for krb5_init_context in -lkrb5" >&5 |
503d2be0 AS |
10520 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
10521 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
10522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10523 | else |
503d2be0 | 10524 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10525 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 10526 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 10527 | #line 10527 "configure" |
a21616bd | 10528 | #include "confdefs.h" |
a21616bd | 10529 | |
503d2be0 AS |
10530 | /* Override any gcc2 internal prototype to avoid an error. */ |
10531 | #ifdef __cplusplus | |
10532 | extern "C" | |
10533 | #endif | |
10534 | /* We use char because int might match the return type of a gcc2 | |
10535 | builtin and then its argument prototype would still apply. */ | |
10536 | char krb5_init_context (); | |
10537 | int | |
10538 | main () | |
10539 | { | |
10540 | krb5_init_context (); | |
10541 | ; | |
10542 | return 0; | |
10543 | } | |
10544 | _ACEOF | |
10545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10546 | if { (eval echo "$as_me:10546: \"$ac_link\"") >&5 |
503d2be0 AS |
10547 | (eval $ac_link) 2>&5 |
10548 | ac_status=$? | |
cc227489 | 10549 | echo "$as_me:10549: \$? = $ac_status" >&5 |
503d2be0 AS |
10550 | (exit $ac_status); } && |
10551 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10552 | { (eval echo "$as_me:10552: \"$ac_try\"") >&5 |
503d2be0 AS |
10553 | (eval $ac_try) 2>&5 |
10554 | ac_status=$? | |
cc227489 | 10555 | echo "$as_me:10555: \$? = $ac_status" >&5 |
503d2be0 AS |
10556 | (exit $ac_status); }; }; then |
10557 | ac_cv_lib_krb5_krb5_init_context=yes | |
10558 | else | |
10559 | echo "$as_me: failed program was:" >&5 | |
10560 | cat conftest.$ac_ext >&5 | |
10561 | ac_cv_lib_krb5_krb5_init_context=no | |
10562 | fi | |
10563 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10564 | LIBS=$ac_check_lib_save_LIBS | |
10565 | fi | |
cc227489 | 10566 | echo "$as_me:10566: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
503d2be0 AS |
10567 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
10568 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
10569 | cat >>confdefs.h <<EOF | |
10570 | #define HAVE_LIBKRB5 1 | |
a21616bd KR |
10571 | EOF |
10572 | ||
10573 | LIBS="-lkrb5 $LIBS" | |
10574 | ||
a21616bd KR |
10575 | fi |
10576 | ||
10577 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 10578 | |
cc227489 | 10579 | echo "$as_me:10579: checking for des_cbc_encrypt in -ldes425" >&5 |
503d2be0 AS |
10580 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
10581 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
10582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10583 | else |
503d2be0 | 10584 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10585 | LIBS="-ldes425 $LIBS" |
503d2be0 | 10586 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 10587 | #line 10587 "configure" |
a21616bd | 10588 | #include "confdefs.h" |
503d2be0 | 10589 | |
a21616bd | 10590 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10591 | #ifdef __cplusplus |
10592 | extern "C" | |
10593 | #endif | |
a21616bd | 10594 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10595 | builtin and then its argument prototype would still apply. */ |
10596 | char des_cbc_encrypt (); | |
10597 | int | |
10598 | main () | |
10599 | { | |
10600 | des_cbc_encrypt (); | |
10601 | ; | |
10602 | return 0; | |
10603 | } | |
10604 | _ACEOF | |
10605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10606 | if { (eval echo "$as_me:10606: \"$ac_link\"") >&5 |
503d2be0 AS |
10607 | (eval $ac_link) 2>&5 |
10608 | ac_status=$? | |
cc227489 | 10609 | echo "$as_me:10609: \$? = $ac_status" >&5 |
503d2be0 AS |
10610 | (exit $ac_status); } && |
10611 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10612 | { (eval echo "$as_me:10612: \"$ac_try\"") >&5 |
503d2be0 AS |
10613 | (eval $ac_try) 2>&5 |
10614 | ac_status=$? | |
cc227489 | 10615 | echo "$as_me:10615: \$? = $ac_status" >&5 |
503d2be0 AS |
10616 | (exit $ac_status); }; }; then |
10617 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
10618 | else | |
10619 | echo "$as_me: failed program was:" >&5 | |
10620 | cat conftest.$ac_ext >&5 | |
10621 | ac_cv_lib_des425_des_cbc_encrypt=no | |
10622 | fi | |
10623 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10624 | LIBS=$ac_check_lib_save_LIBS | |
10625 | fi | |
cc227489 | 10626 | echo "$as_me:10626: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
503d2be0 AS |
10627 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
10628 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
10629 | cat >>confdefs.h <<EOF | |
10630 | #define HAVE_LIBDES425 1 | |
a21616bd KR |
10631 | EOF |
10632 | ||
10633 | LIBS="-ldes425 $LIBS" | |
10634 | ||
10635 | else | |
503d2be0 | 10636 | |
cc227489 | 10637 | echo "$as_me:10637: checking for des_cbc_encrypt in -ldes" >&5 |
503d2be0 AS |
10638 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
10639 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
10640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10641 | else |
503d2be0 | 10642 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10643 | LIBS="-ldes $LIBS" |
503d2be0 | 10644 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 10645 | #line 10645 "configure" |
a21616bd | 10646 | #include "confdefs.h" |
503d2be0 | 10647 | |
a21616bd | 10648 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10649 | #ifdef __cplusplus |
10650 | extern "C" | |
10651 | #endif | |
a21616bd | 10652 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10653 | builtin and then its argument prototype would still apply. */ |
10654 | char des_cbc_encrypt (); | |
10655 | int | |
10656 | main () | |
10657 | { | |
10658 | des_cbc_encrypt (); | |
10659 | ; | |
10660 | return 0; | |
10661 | } | |
10662 | _ACEOF | |
10663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10664 | if { (eval echo "$as_me:10664: \"$ac_link\"") >&5 |
503d2be0 AS |
10665 | (eval $ac_link) 2>&5 |
10666 | ac_status=$? | |
cc227489 | 10667 | echo "$as_me:10667: \$? = $ac_status" >&5 |
503d2be0 AS |
10668 | (exit $ac_status); } && |
10669 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10670 | { (eval echo "$as_me:10670: \"$ac_try\"") >&5 |
503d2be0 AS |
10671 | (eval $ac_try) 2>&5 |
10672 | ac_status=$? | |
cc227489 | 10673 | echo "$as_me:10673: \$? = $ac_status" >&5 |
503d2be0 AS |
10674 | (exit $ac_status); }; }; then |
10675 | ac_cv_lib_des_des_cbc_encrypt=yes | |
10676 | else | |
10677 | echo "$as_me: failed program was:" >&5 | |
10678 | cat conftest.$ac_ext >&5 | |
10679 | ac_cv_lib_des_des_cbc_encrypt=no | |
10680 | fi | |
10681 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10682 | LIBS=$ac_check_lib_save_LIBS | |
10683 | fi | |
cc227489 | 10684 | echo "$as_me:10684: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
503d2be0 AS |
10685 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
10686 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
10687 | cat >>confdefs.h <<EOF | |
10688 | #define HAVE_LIBDES 1 | |
a21616bd KR |
10689 | EOF |
10690 | ||
10691 | LIBS="-ldes $LIBS" | |
10692 | ||
a21616bd KR |
10693 | fi |
10694 | ||
10695 | fi | |
10696 | ||
cc227489 | 10697 | echo "$as_me:10697: checking for krb_get_cred in -lkrb4" >&5 |
503d2be0 AS |
10698 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
10699 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
10700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10701 | else |
503d2be0 | 10702 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10703 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 10704 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 10705 | #line 10705 "configure" |
a21616bd | 10706 | #include "confdefs.h" |
503d2be0 | 10707 | |
a21616bd | 10708 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10709 | #ifdef __cplusplus |
10710 | extern "C" | |
10711 | #endif | |
a21616bd | 10712 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10713 | builtin and then its argument prototype would still apply. */ |
10714 | char krb_get_cred (); | |
10715 | int | |
10716 | main () | |
10717 | { | |
10718 | krb_get_cred (); | |
10719 | ; | |
10720 | return 0; | |
10721 | } | |
10722 | _ACEOF | |
10723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10724 | if { (eval echo "$as_me:10724: \"$ac_link\"") >&5 |
503d2be0 AS |
10725 | (eval $ac_link) 2>&5 |
10726 | ac_status=$? | |
cc227489 | 10727 | echo "$as_me:10727: \$? = $ac_status" >&5 |
503d2be0 AS |
10728 | (exit $ac_status); } && |
10729 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10730 | { (eval echo "$as_me:10730: \"$ac_try\"") >&5 |
503d2be0 AS |
10731 | (eval $ac_try) 2>&5 |
10732 | ac_status=$? | |
cc227489 | 10733 | echo "$as_me:10733: \$? = $ac_status" >&5 |
503d2be0 AS |
10734 | (exit $ac_status); }; }; then |
10735 | ac_cv_lib_krb4_krb_get_cred=yes | |
10736 | else | |
10737 | echo "$as_me: failed program was:" >&5 | |
10738 | cat conftest.$ac_ext >&5 | |
10739 | ac_cv_lib_krb4_krb_get_cred=no | |
10740 | fi | |
10741 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10742 | LIBS=$ac_check_lib_save_LIBS | |
10743 | fi | |
cc227489 | 10744 | echo "$as_me:10744: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
503d2be0 AS |
10745 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
10746 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
10747 | cat >>confdefs.h <<EOF | |
10748 | #define HAVE_LIBKRB4 1 | |
a21616bd KR |
10749 | EOF |
10750 | ||
10751 | LIBS="-lkrb4 $LIBS" | |
10752 | ||
10753 | else | |
503d2be0 | 10754 | |
cc227489 | 10755 | echo "$as_me:10755: checking for krb_get_cred in -lkrb" >&5 |
503d2be0 AS |
10756 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
10757 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
10758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 10759 | else |
503d2be0 | 10760 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 10761 | LIBS="-lkrb $LIBS" |
503d2be0 | 10762 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 10763 | #line 10763 "configure" |
a21616bd | 10764 | #include "confdefs.h" |
503d2be0 | 10765 | |
a21616bd | 10766 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10767 | #ifdef __cplusplus |
10768 | extern "C" | |
10769 | #endif | |
a21616bd | 10770 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
10771 | builtin and then its argument prototype would still apply. */ |
10772 | char krb_get_cred (); | |
10773 | int | |
10774 | main () | |
10775 | { | |
10776 | krb_get_cred (); | |
10777 | ; | |
10778 | return 0; | |
10779 | } | |
10780 | _ACEOF | |
10781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 10782 | if { (eval echo "$as_me:10782: \"$ac_link\"") >&5 |
503d2be0 AS |
10783 | (eval $ac_link) 2>&5 |
10784 | ac_status=$? | |
cc227489 | 10785 | echo "$as_me:10785: \$? = $ac_status" >&5 |
503d2be0 AS |
10786 | (exit $ac_status); } && |
10787 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 10788 | { (eval echo "$as_me:10788: \"$ac_try\"") >&5 |
503d2be0 AS |
10789 | (eval $ac_try) 2>&5 |
10790 | ac_status=$? | |
cc227489 | 10791 | echo "$as_me:10791: \$? = $ac_status" >&5 |
503d2be0 AS |
10792 | (exit $ac_status); }; }; then |
10793 | ac_cv_lib_krb_krb_get_cred=yes | |
10794 | else | |
10795 | echo "$as_me: failed program was:" >&5 | |
10796 | cat conftest.$ac_ext >&5 | |
10797 | ac_cv_lib_krb_krb_get_cred=no | |
10798 | fi | |
10799 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10800 | LIBS=$ac_check_lib_save_LIBS | |
10801 | fi | |
cc227489 | 10802 | echo "$as_me:10802: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
503d2be0 AS |
10803 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
10804 | if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
10805 | cat >>confdefs.h <<EOF | |
10806 | #define HAVE_LIBKRB 1 | |
a21616bd KR |
10807 | EOF |
10808 | ||
10809 | LIBS="-lkrb $LIBS" | |
10810 | ||
a21616bd KR |
10811 | fi |
10812 | ||
10813 | fi | |
10814 | ||
10815 | fi | |
10816 | ||
10817 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
10818 | |
10819 | for ac_header in krb5.h | |
a21616bd | 10820 | do |
503d2be0 | 10821 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 10822 | echo "$as_me:10822: checking for $ac_header" >&5 |
503d2be0 AS |
10823 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10824 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10826 | else | |
10827 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 10828 | #line 10828 "configure" |
503d2be0 AS |
10829 | #include "confdefs.h" |
10830 | #include <$ac_header> | |
10831 | _ACEOF | |
cc227489 | 10832 | if { (eval echo "$as_me:10832: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
10833 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10834 | ac_status=$? | |
10835 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
10836 | rm -f conftest.er1 | |
10837 | cat conftest.err >&5 | |
cc227489 | 10838 | echo "$as_me:10838: \$? = $ac_status" >&5 |
503d2be0 AS |
10839 | (exit $ac_status); } >/dev/null; then |
10840 | if test -s conftest.err; then | |
10841 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10842 | else | |
10843 | ac_cpp_err= | |
10844 | fi | |
10845 | else | |
10846 | ac_cpp_err=yes | |
10847 | fi | |
10848 | if test -z "$ac_cpp_err"; then | |
10849 | eval "$as_ac_Header=yes" | |
10850 | else | |
10851 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 10852 | cat conftest.$ac_ext >&5 |
503d2be0 | 10853 | eval "$as_ac_Header=no" |
a21616bd | 10854 | fi |
503d2be0 | 10855 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 10856 | fi |
cc227489 | 10857 | echo "$as_me:10857: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
10858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10859 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10860 | cat >>confdefs.h <<EOF | |
10861 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a21616bd | 10862 | EOF |
503d2be0 | 10863 | |
a21616bd KR |
10864 | fi |
10865 | done | |
10866 | ||
10867 | else | |
503d2be0 AS |
10868 | |
10869 | for ac_header in des.h | |
a21616bd | 10870 | do |
503d2be0 | 10871 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 10872 | echo "$as_me:10872: checking for $ac_header" >&5 |
503d2be0 AS |
10873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10876 | else | |
10877 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 10878 | #line 10878 "configure" |
503d2be0 AS |
10879 | #include "confdefs.h" |
10880 | #include <$ac_header> | |
10881 | _ACEOF | |
cc227489 | 10882 | if { (eval echo "$as_me:10882: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
10883 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10884 | ac_status=$? | |
10885 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
10886 | rm -f conftest.er1 | |
10887 | cat conftest.err >&5 | |
cc227489 | 10888 | echo "$as_me:10888: \$? = $ac_status" >&5 |
503d2be0 AS |
10889 | (exit $ac_status); } >/dev/null; then |
10890 | if test -s conftest.err; then | |
10891 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10892 | else | |
10893 | ac_cpp_err= | |
10894 | fi | |
10895 | else | |
10896 | ac_cpp_err=yes | |
10897 | fi | |
10898 | if test -z "$ac_cpp_err"; then | |
10899 | eval "$as_ac_Header=yes" | |
10900 | else | |
10901 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 10902 | cat conftest.$ac_ext >&5 |
503d2be0 | 10903 | eval "$as_ac_Header=no" |
a21616bd | 10904 | fi |
503d2be0 | 10905 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 10906 | fi |
cc227489 | 10907 | echo "$as_me:10907: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
10908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10909 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10910 | cat >>confdefs.h <<EOF | |
10911 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a21616bd | 10912 | EOF |
503d2be0 | 10913 | |
a21616bd | 10914 | else |
503d2be0 AS |
10915 | |
10916 | for ac_header in kerberosIV/des.h | |
a21616bd | 10917 | do |
503d2be0 | 10918 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 10919 | echo "$as_me:10919: checking for $ac_header" >&5 |
503d2be0 AS |
10920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10923 | else | |
10924 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 10925 | #line 10925 "configure" |
503d2be0 AS |
10926 | #include "confdefs.h" |
10927 | #include <$ac_header> | |
10928 | _ACEOF | |
cc227489 | 10929 | if { (eval echo "$as_me:10929: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
10930 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10931 | ac_status=$? | |
10932 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
10933 | rm -f conftest.er1 | |
10934 | cat conftest.err >&5 | |
cc227489 | 10935 | echo "$as_me:10935: \$? = $ac_status" >&5 |
503d2be0 AS |
10936 | (exit $ac_status); } >/dev/null; then |
10937 | if test -s conftest.err; then | |
10938 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10939 | else | |
10940 | ac_cpp_err= | |
10941 | fi | |
10942 | else | |
10943 | ac_cpp_err=yes | |
10944 | fi | |
10945 | if test -z "$ac_cpp_err"; then | |
10946 | eval "$as_ac_Header=yes" | |
10947 | else | |
10948 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 10949 | cat conftest.$ac_ext >&5 |
503d2be0 | 10950 | eval "$as_ac_Header=no" |
a21616bd | 10951 | fi |
503d2be0 | 10952 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 10953 | fi |
cc227489 | 10954 | echo "$as_me:10954: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
10955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10956 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10957 | cat >>confdefs.h <<EOF | |
10958 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a21616bd | 10959 | EOF |
503d2be0 | 10960 | |
a21616bd | 10961 | else |
503d2be0 AS |
10962 | |
10963 | for ac_header in kerberos/des.h | |
a21616bd | 10964 | do |
503d2be0 | 10965 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 10966 | echo "$as_me:10966: checking for $ac_header" >&5 |
503d2be0 AS |
10967 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10970 | else | |
10971 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 10972 | #line 10972 "configure" |
503d2be0 AS |
10973 | #include "confdefs.h" |
10974 | #include <$ac_header> | |
10975 | _ACEOF | |
cc227489 | 10976 | if { (eval echo "$as_me:10976: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
10977 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10978 | ac_status=$? | |
10979 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
10980 | rm -f conftest.er1 | |
10981 | cat conftest.err >&5 | |
cc227489 | 10982 | echo "$as_me:10982: \$? = $ac_status" >&5 |
503d2be0 AS |
10983 | (exit $ac_status); } >/dev/null; then |
10984 | if test -s conftest.err; then | |
10985 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10986 | else | |
10987 | ac_cpp_err= | |
10988 | fi | |
10989 | else | |
10990 | ac_cpp_err=yes | |
10991 | fi | |
10992 | if test -z "$ac_cpp_err"; then | |
10993 | eval "$as_ac_Header=yes" | |
10994 | else | |
10995 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 10996 | cat conftest.$ac_ext >&5 |
503d2be0 | 10997 | eval "$as_ac_Header=no" |
a21616bd | 10998 | fi |
503d2be0 | 10999 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11000 | fi |
cc227489 | 11001 | echo "$as_me:11001: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11003 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11004 | cat >>confdefs.h <<EOF | |
11005 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a21616bd | 11006 | EOF |
503d2be0 | 11007 | |
a21616bd KR |
11008 | fi |
11009 | done | |
11010 | ||
11011 | fi | |
11012 | done | |
11013 | ||
11014 | fi | |
11015 | done | |
11016 | ||
503d2be0 | 11017 | for ac_header in krb.h |
a21616bd | 11018 | do |
503d2be0 | 11019 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 11020 | echo "$as_me:11020: checking for $ac_header" >&5 |
503d2be0 AS |
11021 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11022 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11024 | else | |
11025 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 11026 | #line 11026 "configure" |
503d2be0 AS |
11027 | #include "confdefs.h" |
11028 | #include <$ac_header> | |
11029 | _ACEOF | |
cc227489 | 11030 | if { (eval echo "$as_me:11030: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11031 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11032 | ac_status=$? | |
11033 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11034 | rm -f conftest.er1 | |
11035 | cat conftest.err >&5 | |
cc227489 | 11036 | echo "$as_me:11036: \$? = $ac_status" >&5 |
503d2be0 AS |
11037 | (exit $ac_status); } >/dev/null; then |
11038 | if test -s conftest.err; then | |
11039 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11040 | else | |
11041 | ac_cpp_err= | |
11042 | fi | |
11043 | else | |
11044 | ac_cpp_err=yes | |
11045 | fi | |
11046 | if test -z "$ac_cpp_err"; then | |
11047 | eval "$as_ac_Header=yes" | |
11048 | else | |
11049 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11050 | cat conftest.$ac_ext >&5 |
503d2be0 | 11051 | eval "$as_ac_Header=no" |
a21616bd | 11052 | fi |
503d2be0 | 11053 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11054 | fi |
cc227489 | 11055 | echo "$as_me:11055: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11056 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11057 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11058 | cat >>confdefs.h <<EOF | |
11059 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a21616bd | 11060 | EOF |
503d2be0 | 11061 | |
a21616bd | 11062 | else |
503d2be0 AS |
11063 | |
11064 | for ac_header in kerberosIV/krb.h | |
a21616bd | 11065 | do |
503d2be0 | 11066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 11067 | echo "$as_me:11067: checking for $ac_header" >&5 |
503d2be0 AS |
11068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11071 | else | |
11072 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 11073 | #line 11073 "configure" |
503d2be0 AS |
11074 | #include "confdefs.h" |
11075 | #include <$ac_header> | |
11076 | _ACEOF | |
cc227489 | 11077 | if { (eval echo "$as_me:11077: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11078 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11079 | ac_status=$? | |
11080 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11081 | rm -f conftest.er1 | |
11082 | cat conftest.err >&5 | |
cc227489 | 11083 | echo "$as_me:11083: \$? = $ac_status" >&5 |
503d2be0 AS |
11084 | (exit $ac_status); } >/dev/null; then |
11085 | if test -s conftest.err; then | |
11086 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11087 | else | |
11088 | ac_cpp_err= | |
11089 | fi | |
11090 | else | |
11091 | ac_cpp_err=yes | |
11092 | fi | |
11093 | if test -z "$ac_cpp_err"; then | |
11094 | eval "$as_ac_Header=yes" | |
11095 | else | |
11096 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11097 | cat conftest.$ac_ext >&5 |
503d2be0 | 11098 | eval "$as_ac_Header=no" |
a21616bd | 11099 | fi |
503d2be0 | 11100 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11101 | fi |
cc227489 | 11102 | echo "$as_me:11102: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11103 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11104 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11105 | cat >>confdefs.h <<EOF | |
11106 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a21616bd | 11107 | EOF |
503d2be0 | 11108 | |
a21616bd | 11109 | else |
503d2be0 AS |
11110 | |
11111 | for ac_header in kerberos/krb.h | |
a21616bd | 11112 | do |
503d2be0 | 11113 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 11114 | echo "$as_me:11114: checking for $ac_header" >&5 |
503d2be0 AS |
11115 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11116 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11118 | else | |
11119 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 11120 | #line 11120 "configure" |
503d2be0 AS |
11121 | #include "confdefs.h" |
11122 | #include <$ac_header> | |
11123 | _ACEOF | |
cc227489 | 11124 | if { (eval echo "$as_me:11124: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11125 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11126 | ac_status=$? | |
11127 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11128 | rm -f conftest.er1 | |
11129 | cat conftest.err >&5 | |
cc227489 | 11130 | echo "$as_me:11130: \$? = $ac_status" >&5 |
503d2be0 AS |
11131 | (exit $ac_status); } >/dev/null; then |
11132 | if test -s conftest.err; then | |
11133 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11134 | else | |
11135 | ac_cpp_err= | |
11136 | fi | |
11137 | else | |
11138 | ac_cpp_err=yes | |
11139 | fi | |
11140 | if test -z "$ac_cpp_err"; then | |
11141 | eval "$as_ac_Header=yes" | |
11142 | else | |
11143 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11144 | cat conftest.$ac_ext >&5 |
503d2be0 | 11145 | eval "$as_ac_Header=no" |
a21616bd | 11146 | fi |
503d2be0 | 11147 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11148 | fi |
cc227489 | 11149 | echo "$as_me:11149: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11150 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11151 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11152 | cat >>confdefs.h <<EOF | |
11153 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a21616bd | 11154 | EOF |
503d2be0 | 11155 | |
a21616bd KR |
11156 | fi |
11157 | done | |
11158 | ||
11159 | fi | |
11160 | done | |
11161 | ||
11162 | fi | |
11163 | done | |
11164 | ||
11165 | fi | |
503d2be0 AS |
11166 | |
11167 | for ac_header in com_err.h | |
a21616bd | 11168 | do |
503d2be0 | 11169 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cc227489 | 11170 | echo "$as_me:11170: checking for $ac_header" >&5 |
503d2be0 AS |
11171 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11172 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11174 | else | |
11175 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 11176 | #line 11176 "configure" |
503d2be0 AS |
11177 | #include "confdefs.h" |
11178 | #include <$ac_header> | |
11179 | _ACEOF | |
cc227489 | 11180 | if { (eval echo "$as_me:11180: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11182 | ac_status=$? | |
11183 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11184 | rm -f conftest.er1 | |
11185 | cat conftest.err >&5 | |
cc227489 | 11186 | echo "$as_me:11186: \$? = $ac_status" >&5 |
503d2be0 AS |
11187 | (exit $ac_status); } >/dev/null; then |
11188 | if test -s conftest.err; then | |
11189 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11190 | else | |
11191 | ac_cpp_err= | |
11192 | fi | |
11193 | else | |
11194 | ac_cpp_err=yes | |
11195 | fi | |
11196 | if test -z "$ac_cpp_err"; then | |
11197 | eval "$as_ac_Header=yes" | |
11198 | else | |
11199 | echo "$as_me: failed program was:" >&5 | |
a21616bd | 11200 | cat conftest.$ac_ext >&5 |
503d2be0 | 11201 | eval "$as_ac_Header=no" |
a21616bd | 11202 | fi |
503d2be0 | 11203 | rm -f conftest.err conftest.$ac_ext |
a21616bd | 11204 | fi |
cc227489 | 11205 | echo "$as_me:11205: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11206 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11207 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11208 | cat >>confdefs.h <<EOF | |
11209 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a21616bd | 11210 | EOF |
503d2be0 | 11211 | |
a21616bd KR |
11212 | fi |
11213 | done | |
11214 | ||
11215 | fi | |
11216 | ||
ba4481b5 DL |
11217 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
11218 | # to return localized messages. | |
503d2be0 | 11219 | |
cc227489 | 11220 | echo "$as_me:11220: checking for dgettext in -lintl" >&5 |
503d2be0 AS |
11221 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
11222 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
11223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 11224 | else |
503d2be0 | 11225 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 11226 | LIBS="-lintl $LIBS" |
503d2be0 | 11227 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11228 | #line 11228 "configure" |
ba4481b5 | 11229 | #include "confdefs.h" |
503d2be0 | 11230 | |
ba4481b5 | 11231 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11232 | #ifdef __cplusplus |
11233 | extern "C" | |
11234 | #endif | |
ba4481b5 | 11235 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
11236 | builtin and then its argument prototype would still apply. */ |
11237 | char dgettext (); | |
11238 | int | |
11239 | main () | |
11240 | { | |
11241 | dgettext (); | |
11242 | ; | |
11243 | return 0; | |
11244 | } | |
11245 | _ACEOF | |
11246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 11247 | if { (eval echo "$as_me:11247: \"$ac_link\"") >&5 |
503d2be0 AS |
11248 | (eval $ac_link) 2>&5 |
11249 | ac_status=$? | |
cc227489 | 11250 | echo "$as_me:11250: \$? = $ac_status" >&5 |
503d2be0 AS |
11251 | (exit $ac_status); } && |
11252 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 11253 | { (eval echo "$as_me:11253: \"$ac_try\"") >&5 |
503d2be0 AS |
11254 | (eval $ac_try) 2>&5 |
11255 | ac_status=$? | |
cc227489 | 11256 | echo "$as_me:11256: \$? = $ac_status" >&5 |
503d2be0 AS |
11257 | (exit $ac_status); }; }; then |
11258 | ac_cv_lib_intl_dgettext=yes | |
11259 | else | |
11260 | echo "$as_me: failed program was:" >&5 | |
11261 | cat conftest.$ac_ext >&5 | |
11262 | ac_cv_lib_intl_dgettext=no | |
11263 | fi | |
11264 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11265 | LIBS=$ac_check_lib_save_LIBS | |
11266 | fi | |
cc227489 | 11267 | echo "$as_me:11267: result: $ac_cv_lib_intl_dgettext" >&5 |
503d2be0 AS |
11268 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
11269 | if test $ac_cv_lib_intl_dgettext = yes; then | |
11270 | cat >>confdefs.h <<EOF | |
11271 | #define HAVE_LIBINTL 1 | |
ba4481b5 DL |
11272 | EOF |
11273 | ||
11274 | LIBS="-lintl $LIBS" | |
11275 | ||
ba4481b5 DL |
11276 | fi |
11277 | ||
cc227489 | 11278 | echo "$as_me:11278: checking whether localtime caches TZ" >&5 |
503d2be0 AS |
11279 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
11280 | if test "${emacs_cv_localtime_cache+set}" = set; then | |
11281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
11282 | else |
11283 | if test x$ac_cv_func_tzset = xyes; then | |
11284 | if test "$cross_compiling" = yes; then | |
11285 | # If we have tzset, assume the worst when cross-compiling. | |
11286 | emacs_cv_localtime_cache=yes | |
11287 | else | |
503d2be0 | 11288 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11289 | #line 11289 "configure" |
ba4481b5 DL |
11290 | #include "confdefs.h" |
11291 | #include <time.h> | |
ba4481b5 DL |
11292 | extern char **environ; |
11293 | unset_TZ () | |
11294 | { | |
11295 | char **from, **to; | |
11296 | for (to = from = environ; (*to = *from); from++) | |
11297 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
11298 | to++; | |
11299 | } | |
11300 | char TZ_GMT0[] = "TZ=GMT0"; | |
11301 | char TZ_PST8[] = "TZ=PST8"; | |
11302 | main() | |
11303 | { | |
11304 | time_t now = time ((time_t *) 0); | |
11305 | int hour_GMT0, hour_unset; | |
11306 | if (putenv (TZ_GMT0) != 0) | |
11307 | exit (1); | |
11308 | hour_GMT0 = localtime (&now)->tm_hour; | |
11309 | unset_TZ (); | |
11310 | hour_unset = localtime (&now)->tm_hour; | |
11311 | if (putenv (TZ_PST8) != 0) | |
11312 | exit (1); | |
11313 | if (localtime (&now)->tm_hour == hour_GMT0) | |
11314 | exit (1); | |
11315 | unset_TZ (); | |
11316 | if (localtime (&now)->tm_hour != hour_unset) | |
11317 | exit (1); | |
11318 | exit (0); | |
11319 | } | |
503d2be0 AS |
11320 | _ACEOF |
11321 | rm -f conftest$ac_exeext | |
cc227489 | 11322 | if { (eval echo "$as_me:11322: \"$ac_link\"") >&5 |
503d2be0 AS |
11323 | (eval $ac_link) 2>&5 |
11324 | ac_status=$? | |
cc227489 | 11325 | echo "$as_me:11325: \$? = $ac_status" >&5 |
503d2be0 | 11326 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
cc227489 | 11327 | { (eval echo "$as_me:11327: \"$ac_try\"") >&5 |
503d2be0 AS |
11328 | (eval $ac_try) 2>&5 |
11329 | ac_status=$? | |
cc227489 | 11330 | echo "$as_me:11330: \$? = $ac_status" >&5 |
503d2be0 | 11331 | (exit $ac_status); }; }; then |
ba4481b5 DL |
11332 | emacs_cv_localtime_cache=no |
11333 | else | |
503d2be0 AS |
11334 | echo "$as_me: program exited with status $ac_status" >&5 |
11335 | echo "$as_me: failed program was:" >&5 | |
11336 | cat conftest.$ac_ext >&5 | |
11337 | emacs_cv_localtime_cache=yes | |
ba4481b5 | 11338 | fi |
503d2be0 | 11339 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 11340 | fi |
ba4481b5 DL |
11341 | else |
11342 | # If we lack tzset, report that localtime does not cache TZ, | |
11343 | # since we can't invalidate the cache if we don't have tzset. | |
11344 | emacs_cv_localtime_cache=no | |
11345 | fi | |
11346 | fi | |
cc227489 | 11347 | echo "$as_me:11347: result: $emacs_cv_localtime_cache" >&5 |
503d2be0 | 11348 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
ba4481b5 | 11349 | if test $emacs_cv_localtime_cache = yes; then |
503d2be0 | 11350 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
11351 | #define LOCALTIME_CACHE 1 |
11352 | EOF | |
11353 | ||
11354 | fi | |
11355 | ||
11356 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
11357 | |
11358 | for ac_func in gettimeofday | |
48d4b120 | 11359 | do |
503d2be0 | 11360 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
cc227489 | 11361 | echo "$as_me:11361: checking for $ac_func" >&5 |
503d2be0 AS |
11362 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11363 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 11365 | else |
503d2be0 | 11366 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11367 | #line 11367 "configure" |
48d4b120 DL |
11368 | #include "confdefs.h" |
11369 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 11370 | which can conflict with char $ac_func (); below. */ |
48d4b120 DL |
11371 | #include <assert.h> |
11372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
11373 | #ifdef __cplusplus |
11374 | extern "C" | |
11375 | #endif | |
48d4b120 | 11376 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
11377 | builtin and then its argument prototype would still apply. */ |
11378 | char $ac_func (); | |
11379 | char (*f) (); | |
48d4b120 | 11380 | |
503d2be0 AS |
11381 | int |
11382 | main () | |
11383 | { | |
48d4b120 DL |
11384 | /* The GNU C library defines this for functions which it implements |
11385 | to always fail with ENOSYS. Some functions are actually named | |
11386 | something starting with __ and the normal name is an alias. */ | |
11387 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11388 | choke me | |
11389 | #else | |
503d2be0 | 11390 | f = $ac_func; |
48d4b120 DL |
11391 | #endif |
11392 | ||
503d2be0 AS |
11393 | ; |
11394 | return 0; | |
11395 | } | |
11396 | _ACEOF | |
11397 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 11398 | if { (eval echo "$as_me:11398: \"$ac_link\"") >&5 |
503d2be0 AS |
11399 | (eval $ac_link) 2>&5 |
11400 | ac_status=$? | |
cc227489 | 11401 | echo "$as_me:11401: \$? = $ac_status" >&5 |
503d2be0 AS |
11402 | (exit $ac_status); } && |
11403 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 11404 | { (eval echo "$as_me:11404: \"$ac_try\"") >&5 |
503d2be0 AS |
11405 | (eval $ac_try) 2>&5 |
11406 | ac_status=$? | |
cc227489 | 11407 | echo "$as_me:11407: \$? = $ac_status" >&5 |
503d2be0 AS |
11408 | (exit $ac_status); }; }; then |
11409 | eval "$as_ac_var=yes" | |
11410 | else | |
11411 | echo "$as_me: failed program was:" >&5 | |
11412 | cat conftest.$ac_ext >&5 | |
11413 | eval "$as_ac_var=no" | |
11414 | fi | |
11415 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11416 | fi | |
cc227489 | 11417 | echo "$as_me:11417: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
11418 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11419 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11420 | cat >>confdefs.h <<EOF | |
11421 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
48d4b120 | 11422 | EOF |
48d4b120 | 11423 | |
48d4b120 DL |
11424 | fi |
11425 | done | |
11426 | ||
cc227489 | 11427 | echo "$as_me:11427: checking whether gettimeofday can accept two arguments" >&5 |
503d2be0 AS |
11428 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
11429 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
11430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 11431 | else |
503d2be0 | 11432 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11433 | #line 11433 "configure" |
a3f08d9e | 11434 | #include "confdefs.h" |
ba4481b5 | 11435 | |
a3f08d9e DL |
11436 | #ifdef TIME_WITH_SYS_TIME |
11437 | #include <sys/time.h> | |
11438 | #include <time.h> | |
11439 | #else | |
11440 | #ifdef HAVE_SYS_TIME_H | |
11441 | #include <sys/time.h> | |
11442 | #else | |
11443 | #include <time.h> | |
11444 | #endif | |
11445 | #endif | |
503d2be0 AS |
11446 | int |
11447 | main () | |
11448 | { | |
a3f08d9e | 11449 | struct timeval time; |
48d4b120 | 11450 | gettimeofday (&time, 0); |
503d2be0 AS |
11451 | ; |
11452 | return 0; | |
11453 | } | |
11454 | _ACEOF | |
11455 | rm -f conftest.$ac_objext | |
cc227489 | 11456 | if { (eval echo "$as_me:11456: \"$ac_compile\"") >&5 |
503d2be0 AS |
11457 | (eval $ac_compile) 2>&5 |
11458 | ac_status=$? | |
cc227489 | 11459 | echo "$as_me:11459: \$? = $ac_status" >&5 |
503d2be0 AS |
11460 | (exit $ac_status); } && |
11461 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 11462 | { (eval echo "$as_me:11462: \"$ac_try\"") >&5 |
503d2be0 AS |
11463 | (eval $ac_try) 2>&5 |
11464 | ac_status=$? | |
cc227489 | 11465 | echo "$as_me:11465: \$? = $ac_status" >&5 |
503d2be0 | 11466 | (exit $ac_status); }; }; then |
ba4481b5 DL |
11467 | emacs_cv_gettimeofday_two_arguments=yes |
11468 | else | |
503d2be0 AS |
11469 | echo "$as_me: failed program was:" >&5 |
11470 | cat conftest.$ac_ext >&5 | |
11471 | emacs_cv_gettimeofday_two_arguments=no | |
ba4481b5 | 11472 | fi |
503d2be0 | 11473 | rm -f conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 11474 | fi |
cc227489 | 11475 | echo "$as_me:11475: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
503d2be0 | 11476 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
ba4481b5 | 11477 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
503d2be0 | 11478 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
11479 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
11480 | EOF | |
11481 | ||
11482 | fi | |
11483 | fi | |
11484 | ||
48d4b120 | 11485 | if test "$ac_cv_func_gettimeofday" = yes; then |
cc227489 | 11486 | echo "$as_me:11486: checking for struct timezone" >&5 |
503d2be0 AS |
11487 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
11488 | if test "${emacs_cv_struct_timezone+set}" = set; then | |
11489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 11490 | else |
503d2be0 | 11491 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11492 | #line 11492 "configure" |
48d4b120 DL |
11493 | #include "confdefs.h" |
11494 | #include <sys/time.h> | |
503d2be0 AS |
11495 | int |
11496 | main () | |
11497 | { | |
48d4b120 | 11498 | struct timezone tz; |
503d2be0 AS |
11499 | ; |
11500 | return 0; | |
11501 | } | |
11502 | _ACEOF | |
11503 | rm -f conftest.$ac_objext | |
cc227489 | 11504 | if { (eval echo "$as_me:11504: \"$ac_compile\"") >&5 |
503d2be0 AS |
11505 | (eval $ac_compile) 2>&5 |
11506 | ac_status=$? | |
cc227489 | 11507 | echo "$as_me:11507: \$? = $ac_status" >&5 |
503d2be0 AS |
11508 | (exit $ac_status); } && |
11509 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 11510 | { (eval echo "$as_me:11510: \"$ac_try\"") >&5 |
503d2be0 AS |
11511 | (eval $ac_try) 2>&5 |
11512 | ac_status=$? | |
cc227489 | 11513 | echo "$as_me:11513: \$? = $ac_status" >&5 |
503d2be0 | 11514 | (exit $ac_status); }; }; then |
48d4b120 DL |
11515 | if test "$cross_compiling" = yes; then |
11516 | emacs_cv_struct_timezone=yes | |
11517 | else | |
503d2be0 | 11518 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11519 | #line 11519 "configure" |
48d4b120 DL |
11520 | #include "confdefs.h" |
11521 | ||
11522 | #ifdef TIME_WITH_SYS_TIME | |
11523 | #include <sys/time.h> | |
11524 | #include <time.h> | |
11525 | #else | |
11526 | #ifdef HAVE_SYS_TIME_H | |
11527 | #include <sys/time.h> | |
11528 | #else | |
11529 | #include <time.h> | |
11530 | #endif | |
11531 | #endif | |
11532 | main () { | |
11533 | struct timeval time; | |
11534 | struct timezone dummy; | |
11535 | exit (gettimeofday (&time, &dummy)); | |
11536 | } | |
503d2be0 AS |
11537 | _ACEOF |
11538 | rm -f conftest$ac_exeext | |
cc227489 | 11539 | if { (eval echo "$as_me:11539: \"$ac_link\"") >&5 |
503d2be0 AS |
11540 | (eval $ac_link) 2>&5 |
11541 | ac_status=$? | |
cc227489 | 11542 | echo "$as_me:11542: \$? = $ac_status" >&5 |
503d2be0 | 11543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
cc227489 | 11544 | { (eval echo "$as_me:11544: \"$ac_try\"") >&5 |
503d2be0 AS |
11545 | (eval $ac_try) 2>&5 |
11546 | ac_status=$? | |
cc227489 | 11547 | echo "$as_me:11547: \$? = $ac_status" >&5 |
503d2be0 | 11548 | (exit $ac_status); }; }; then |
48d4b120 DL |
11549 | emacs_cv_struct_timezone=yes |
11550 | else | |
503d2be0 AS |
11551 | echo "$as_me: program exited with status $ac_status" >&5 |
11552 | echo "$as_me: failed program was:" >&5 | |
11553 | cat conftest.$ac_ext >&5 | |
11554 | emacs_cv_struct_timezone=no | |
48d4b120 | 11555 | fi |
503d2be0 | 11556 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 11557 | fi |
48d4b120 | 11558 | else |
503d2be0 AS |
11559 | echo "$as_me: failed program was:" >&5 |
11560 | cat conftest.$ac_ext >&5 | |
11561 | emacs_cv_struct_timezone=no | |
48d4b120 | 11562 | fi |
503d2be0 | 11563 | rm -f conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 11564 | fi |
cc227489 | 11565 | echo "$as_me:11565: result: $emacs_cv_struct_timezone" >&5 |
503d2be0 | 11566 | echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
48d4b120 DL |
11567 | fi |
11568 | ||
ba4481b5 | 11569 | ok_so_far=yes |
cc227489 | 11570 | echo "$as_me:11570: checking for socket" >&5 |
503d2be0 AS |
11571 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
11572 | if test "${ac_cv_func_socket+set}" = set; then | |
11573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 11574 | else |
503d2be0 | 11575 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11576 | #line 11576 "configure" |
ba4481b5 DL |
11577 | #include "confdefs.h" |
11578 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 11579 | which can conflict with char socket (); below. */ |
ba4481b5 DL |
11580 | #include <assert.h> |
11581 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
11582 | #ifdef __cplusplus |
11583 | extern "C" | |
11584 | #endif | |
ba4481b5 | 11585 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
11586 | builtin and then its argument prototype would still apply. */ |
11587 | char socket (); | |
11588 | char (*f) (); | |
ba4481b5 | 11589 | |
503d2be0 AS |
11590 | int |
11591 | main () | |
11592 | { | |
ba4481b5 DL |
11593 | /* The GNU C library defines this for functions which it implements |
11594 | to always fail with ENOSYS. Some functions are actually named | |
11595 | something starting with __ and the normal name is an alias. */ | |
11596 | #if defined (__stub_socket) || defined (__stub___socket) | |
11597 | choke me | |
11598 | #else | |
503d2be0 | 11599 | f = socket; |
ba4481b5 DL |
11600 | #endif |
11601 | ||
503d2be0 AS |
11602 | ; |
11603 | return 0; | |
11604 | } | |
11605 | _ACEOF | |
11606 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 11607 | if { (eval echo "$as_me:11607: \"$ac_link\"") >&5 |
503d2be0 AS |
11608 | (eval $ac_link) 2>&5 |
11609 | ac_status=$? | |
cc227489 | 11610 | echo "$as_me:11610: \$? = $ac_status" >&5 |
503d2be0 AS |
11611 | (exit $ac_status); } && |
11612 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 11613 | { (eval echo "$as_me:11613: \"$ac_try\"") >&5 |
503d2be0 AS |
11614 | (eval $ac_try) 2>&5 |
11615 | ac_status=$? | |
cc227489 | 11616 | echo "$as_me:11616: \$? = $ac_status" >&5 |
503d2be0 AS |
11617 | (exit $ac_status); }; }; then |
11618 | ac_cv_func_socket=yes | |
11619 | else | |
11620 | echo "$as_me: failed program was:" >&5 | |
11621 | cat conftest.$ac_ext >&5 | |
11622 | ac_cv_func_socket=no | |
11623 | fi | |
11624 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11625 | fi | |
cc227489 | 11626 | echo "$as_me:11626: result: $ac_cv_func_socket" >&5 |
503d2be0 AS |
11627 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
11628 | if test $ac_cv_func_socket = yes; then | |
ba4481b5 DL |
11629 | : |
11630 | else | |
503d2be0 | 11631 | ok_so_far=no |
ba4481b5 DL |
11632 | fi |
11633 | ||
11634 | if test $ok_so_far = yes; then | |
cc227489 | 11635 | echo "$as_me:11635: checking for netinet/in.h" >&5 |
503d2be0 AS |
11636 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
11637 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
11638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 11639 | else |
503d2be0 | 11640 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11641 | #line 11641 "configure" |
ba4481b5 DL |
11642 | #include "confdefs.h" |
11643 | #include <netinet/in.h> | |
503d2be0 | 11644 | _ACEOF |
cc227489 | 11645 | if { (eval echo "$as_me:11645: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11646 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11647 | ac_status=$? | |
11648 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11649 | rm -f conftest.er1 | |
11650 | cat conftest.err >&5 | |
cc227489 | 11651 | echo "$as_me:11651: \$? = $ac_status" >&5 |
503d2be0 AS |
11652 | (exit $ac_status); } >/dev/null; then |
11653 | if test -s conftest.err; then | |
11654 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11655 | else | |
11656 | ac_cpp_err= | |
11657 | fi | |
11658 | else | |
11659 | ac_cpp_err=yes | |
11660 | fi | |
11661 | if test -z "$ac_cpp_err"; then | |
11662 | ac_cv_header_netinet_in_h=yes | |
ba4481b5 | 11663 | else |
503d2be0 | 11664 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 11665 | cat conftest.$ac_ext >&5 |
503d2be0 | 11666 | ac_cv_header_netinet_in_h=no |
ba4481b5 | 11667 | fi |
503d2be0 | 11668 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 11669 | fi |
cc227489 | 11670 | echo "$as_me:11670: result: $ac_cv_header_netinet_in_h" >&5 |
503d2be0 AS |
11671 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
11672 | if test $ac_cv_header_netinet_in_h = yes; then | |
ba4481b5 DL |
11673 | : |
11674 | else | |
503d2be0 | 11675 | ok_so_far=no |
ba4481b5 DL |
11676 | fi |
11677 | ||
11678 | fi | |
11679 | if test $ok_so_far = yes; then | |
cc227489 | 11680 | echo "$as_me:11680: checking for arpa/inet.h" >&5 |
503d2be0 AS |
11681 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
11682 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
11683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 11684 | else |
503d2be0 | 11685 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11686 | #line 11686 "configure" |
ba4481b5 DL |
11687 | #include "confdefs.h" |
11688 | #include <arpa/inet.h> | |
503d2be0 | 11689 | _ACEOF |
cc227489 | 11690 | if { (eval echo "$as_me:11690: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11691 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11692 | ac_status=$? | |
11693 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11694 | rm -f conftest.er1 | |
11695 | cat conftest.err >&5 | |
cc227489 | 11696 | echo "$as_me:11696: \$? = $ac_status" >&5 |
503d2be0 AS |
11697 | (exit $ac_status); } >/dev/null; then |
11698 | if test -s conftest.err; then | |
11699 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11700 | else | |
11701 | ac_cpp_err= | |
11702 | fi | |
11703 | else | |
11704 | ac_cpp_err=yes | |
11705 | fi | |
11706 | if test -z "$ac_cpp_err"; then | |
11707 | ac_cv_header_arpa_inet_h=yes | |
ba4481b5 | 11708 | else |
503d2be0 | 11709 | echo "$as_me: failed program was:" >&5 |
ba4481b5 | 11710 | cat conftest.$ac_ext >&5 |
503d2be0 | 11711 | ac_cv_header_arpa_inet_h=no |
ba4481b5 | 11712 | fi |
503d2be0 | 11713 | rm -f conftest.err conftest.$ac_ext |
ba4481b5 | 11714 | fi |
cc227489 | 11715 | echo "$as_me:11715: result: $ac_cv_header_arpa_inet_h" >&5 |
503d2be0 AS |
11716 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
11717 | if test $ac_cv_header_arpa_inet_h = yes; then | |
ba4481b5 DL |
11718 | : |
11719 | else | |
503d2be0 | 11720 | ok_so_far=no |
ba4481b5 DL |
11721 | fi |
11722 | ||
11723 | fi | |
11724 | if test $ok_so_far = yes; then | |
503d2be0 | 11725 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
11726 | #define HAVE_INET_SOCKETS 1 |
11727 | EOF | |
11728 | ||
11729 | fi | |
11730 | ||
11731 | if test -f /usr/lpp/X11/bin/smt.exp; then | |
503d2be0 | 11732 | cat >>confdefs.h <<\EOF |
ba4481b5 DL |
11733 | #define HAVE_AIX_SMT_EXP 1 |
11734 | EOF | |
11735 | ||
11736 | fi | |
11737 | ||
cc227489 | 11738 | echo "$as_me:11738: checking whether system supports dynamic ptys" >&5 |
503d2be0 | 11739 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
3d9fec71 | 11740 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
cc227489 | 11741 | echo "$as_me:11741: result: yes" >&5 |
503d2be0 AS |
11742 | echo "${ECHO_T}yes" >&6 |
11743 | cat >>confdefs.h <<\EOF | |
3d9fec71 DL |
11744 | #define HAVE_DEV_PTMX 1 |
11745 | EOF | |
11746 | ||
11747 | else | |
cc227489 | 11748 | echo "$as_me:11748: result: no" >&5 |
503d2be0 | 11749 | echo "${ECHO_T}no" >&6 |
3d9fec71 DL |
11750 | fi |
11751 | ||
cc227489 | 11752 | echo "$as_me:11752: checking for pid_t" >&5 |
503d2be0 AS |
11753 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
11754 | if test "${ac_cv_type_pid_t+set}" = set; then | |
11755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 11756 | else |
503d2be0 | 11757 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11758 | #line 11758 "configure" |
647847ea | 11759 | #include "confdefs.h" |
503d2be0 AS |
11760 | $ac_includes_default |
11761 | int | |
11762 | main () | |
11763 | { | |
11764 | if ((pid_t *) 0) | |
11765 | return 0; | |
11766 | if (sizeof (pid_t)) | |
11767 | return 0; | |
11768 | ; | |
11769 | return 0; | |
11770 | } | |
11771 | _ACEOF | |
11772 | rm -f conftest.$ac_objext | |
cc227489 | 11773 | if { (eval echo "$as_me:11773: \"$ac_compile\"") >&5 |
503d2be0 AS |
11774 | (eval $ac_compile) 2>&5 |
11775 | ac_status=$? | |
cc227489 | 11776 | echo "$as_me:11776: \$? = $ac_status" >&5 |
503d2be0 AS |
11777 | (exit $ac_status); } && |
11778 | { ac_try='test -s conftest.$ac_objext' | |
cc227489 | 11779 | { (eval echo "$as_me:11779: \"$ac_try\"") >&5 |
503d2be0 AS |
11780 | (eval $ac_try) 2>&5 |
11781 | ac_status=$? | |
cc227489 | 11782 | echo "$as_me:11782: \$? = $ac_status" >&5 |
503d2be0 | 11783 | (exit $ac_status); }; }; then |
647847ea DL |
11784 | ac_cv_type_pid_t=yes |
11785 | else | |
503d2be0 AS |
11786 | echo "$as_me: failed program was:" >&5 |
11787 | cat conftest.$ac_ext >&5 | |
11788 | ac_cv_type_pid_t=no | |
647847ea | 11789 | fi |
503d2be0 | 11790 | rm -f conftest.$ac_objext conftest.$ac_ext |
647847ea | 11791 | fi |
cc227489 | 11792 | echo "$as_me:11792: result: $ac_cv_type_pid_t" >&5 |
503d2be0 AS |
11793 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
11794 | if test $ac_cv_type_pid_t = yes; then | |
11795 | : | |
11796 | else | |
11797 | ||
11798 | cat >>confdefs.h <<EOF | |
647847ea DL |
11799 | #define pid_t int |
11800 | EOF | |
11801 | ||
11802 | fi | |
11803 | ||
503d2be0 AS |
11804 | for ac_header in unistd.h vfork.h |
11805 | do | |
11806 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
cc227489 | 11807 | echo "$as_me:11807: checking for $ac_header" >&5 |
503d2be0 AS |
11808 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11811 | else | |
11812 | cat >conftest.$ac_ext <<_ACEOF | |
cc227489 | 11813 | #line 11813 "configure" |
503d2be0 AS |
11814 | #include "confdefs.h" |
11815 | #include <$ac_header> | |
11816 | _ACEOF | |
cc227489 | 11817 | if { (eval echo "$as_me:11817: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11818 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11819 | ac_status=$? | |
11820 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11821 | rm -f conftest.er1 | |
11822 | cat conftest.err >&5 | |
cc227489 | 11823 | echo "$as_me:11823: \$? = $ac_status" >&5 |
503d2be0 AS |
11824 | (exit $ac_status); } >/dev/null; then |
11825 | if test -s conftest.err; then | |
11826 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11827 | else | |
11828 | ac_cpp_err= | |
11829 | fi | |
647847ea | 11830 | else |
503d2be0 AS |
11831 | ac_cpp_err=yes |
11832 | fi | |
11833 | if test -z "$ac_cpp_err"; then | |
11834 | eval "$as_ac_Header=yes" | |
647847ea | 11835 | else |
503d2be0 | 11836 | echo "$as_me: failed program was:" >&5 |
647847ea | 11837 | cat conftest.$ac_ext >&5 |
503d2be0 | 11838 | eval "$as_ac_Header=no" |
647847ea | 11839 | fi |
503d2be0 | 11840 | rm -f conftest.err conftest.$ac_ext |
647847ea | 11841 | fi |
cc227489 | 11842 | echo "$as_me:11842: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 AS |
11843 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11844 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11845 | cat >>confdefs.h <<EOF | |
11846 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
647847ea DL |
11847 | EOF |
11848 | ||
73b77ee5 | 11849 | fi |
503d2be0 | 11850 | done |
73b77ee5 | 11851 | |
503d2be0 AS |
11852 | for ac_func in fork vfork |
11853 | do | |
11854 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
cc227489 | 11855 | echo "$as_me:11855: checking for $ac_func" >&5 |
503d2be0 AS |
11856 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11857 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 11859 | else |
503d2be0 | 11860 | cat >conftest.$ac_ext <<_ACEOF |
cc227489 | 11861 | #line 11861 "configure" |
fa0b693c GM |
11862 | #include "confdefs.h" |
11863 | /* System header to define __stub macros and hopefully few prototypes, | |
503d2be0 | 11864 | which can conflict with char $ac_func (); below. */ |
fa0b693c GM |
11865 | #include <assert.h> |
11866 | /* Override any gcc2 internal prototype to avoid an error. */ | |
503d2be0 AS |
11867 | #ifdef __cplusplus |
11868 | extern "C" | |
11869 | #endif | |
fa0b693c | 11870 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
11871 | builtin and then its argument prototype would still apply. */ |
11872 | char $ac_func (); | |
11873 | char (*f) (); | |
fa0b693c | 11874 | |
503d2be0 AS |
11875 | int |
11876 | main () | |
11877 | { | |
fa0b693c GM |
11878 | /* The GNU C library defines this for functions which it implements |
11879 | to always fail with ENOSYS. Some functions are actually named | |
11880 | something starting with __ and the normal name is an alias. */ | |
503d2be0 | 11881 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
fa0b693c GM |
11882 | choke me |
11883 | #else | |
503d2be0 | 11884 | f = $ac_func; |
fa0b693c GM |
11885 | #endif |
11886 | ||
503d2be0 AS |
11887 | ; |
11888 | return 0; | |
11889 | } | |
11890 | _ACEOF | |
11891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
cc227489 | 11892 | if { (eval echo "$as_me:11892: \"$ac_link\"") >&5 |
503d2be0 AS |
11893 | (eval $ac_link) 2>&5 |
11894 | ac_status=$? | |
cc227489 | 11895 | echo "$as_me:11895: \$? = $ac_status" >&5 |
503d2be0 AS |
11896 | (exit $ac_status); } && |
11897 | { ac_try='test -s conftest$ac_exeext' | |
cc227489 | 11898 | { (eval echo "$as_me:11898: \"$ac_try\"") >&5 |
503d2be0 AS |
11899 | (eval $ac_try) 2>&5 |
11900 | ac_status=$? | |
cc227489 | 11901 | echo "$as_me:11901: \$? = $ac_status" >&5 |
503d2be0 AS |
11902 | (exit $ac_status); }; }; then |
11903 | eval "$as_ac_var=yes" | |
11904 | else | |
11905 | echo "$as_me: failed program was:" >&5 | |
11906 | cat conftest.$ac_ext >&5 | |
11907 | eval "$as_ac_var=no" | |
11908 | fi | |
11909 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11910 | fi | |
cc227489 | 11911 | echo "$as_me:11911: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
11912 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11913 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11914 | cat >>confdefs.h <<EOF | |
11915 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
fa0b693c | 11916 | EOF |
503d2be0 | 11917 | |
fa0b693c | 11918 | fi |
503d2be0 | 11919 | done |
fa0b693c | 11920 | |
503d2be0 AS |
11921 | ac_cv_func_fork_works=$ac_cv_func_fork |
11922 | if test "x$ac_cv_func_fork" = xyes; then | |
cc227489 | 11923 | echo "$as_me:11923: checking for working fork" >&5 |
503d2be0 AS |
11924 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
11925 | if test "${ac_cv_func_fork_works+set}" = set; then | |
11926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 11927 | else |
503d2be0 AS |
11928 | if test "$cross_compiling" = yes; then |
11929 | ac_cv_func_fork_works=cross | |
11930 | else | |
11931 | cat >conftest.$ac_ext <<_ACEOF | |
11932 |