Mercurial > emacs
annotate configure @ 30075:39e2dae95929 raeburn-tag-4-for-export
Add support for `bootstrap' and related targets.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Wed, 05 Jul 2000 17:32:43 +0000 |
parents | 7c51ac7c415f |
children | 58ce7aad3fff |
rev | line source |
---|---|
25897 | 1 #! /bin/sh |
2 | |
3 # Guess values for system-dependent variables and create Makefiles. | |
27205 | 4 # Generated automatically using autoconf version 2.13 |
25897 | 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 # | |
7 # This configure script is free software; the Free Software Foundation | |
8 # gives unlimited permission to copy, distribute and modify it. | |
9 | |
10 # Defaults: | |
11 ac_help= | |
12 ac_default_prefix=/usr/local | |
13 # Any additions from configure.in: | |
14 ac_help="$ac_help | |
25994 | 15 --without-gcc don't use GCC to compile Emacs if GCC is found" |
25897 | 16 ac_help="$ac_help |
25994 | 17 --without-pop don't support POP mail retrieval with movemail" |
25897 | 18 ac_help="$ac_help |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
19 --with-kerberos support Kerberos-authenticated POP" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
20 ac_help="$ac_help |
28418
5b7b3b5d54df
* configure.in: Line up "--help" output a little better.
Ken Raeburn <raeburn@raeburn.org>
parents:
28060
diff
changeset
|
21 --with-kerberos5 support Kerberos version 5 authenticated POP" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
22 ac_help="$ac_help |
25897 | 23 --with-hesiod support Hesiod to get the POP server host" |
24 ac_help="$ac_help | |
25 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)" | |
26 ac_help="$ac_help | |
27 --with-xpm use -lXpm for displaying XPM images" | |
28 ac_help="$ac_help | |
29 --with-jpeg use -ljpeg for displaying JPEG images" | |
30 ac_help="$ac_help | |
31 --with-tiff use -ltiff for displaying TIFF images" | |
32 ac_help="$ac_help | |
33 --with-gif use -lungif for displaying GIF images" | |
34 ac_help="$ac_help | |
35 --with-png use -lpng for displaying PNG images" | |
36 ac_help="$ac_help | |
28418
5b7b3b5d54df
* configure.in: Line up "--help" output a little better.
Ken Raeburn <raeburn@raeburn.org>
parents:
28060
diff
changeset
|
37 --without-toolkit-scroll-bars |
29949 | 38 don't use Motif or Xaw3d scroll bars" |
39 ac_help="$ac_help | |
40 --without-xim don't use X11 XIM" | |
25897 | 41 ac_help="$ac_help |
42 --with-x use the X Window System" | |
29388 | 43 ac_help="$ac_help |
44 --disable-largefile omit support for large files" | |
25897 | 45 |
46 # Initialize some variables set by options. | |
47 # The variables have the same names as the options, with | |
48 # dashes changed to underlines. | |
49 build=NONE | |
50 cache_file=./config.cache | |
51 exec_prefix=NONE | |
52 host=NONE | |
53 no_create= | |
54 nonopt=NONE | |
55 no_recursion= | |
56 prefix=NONE | |
57 program_prefix=NONE | |
58 program_suffix=NONE | |
59 program_transform_name=s,x,x, | |
60 silent= | |
61 site= | |
62 srcdir= | |
63 target=NONE | |
64 verbose= | |
65 x_includes=NONE | |
66 x_libraries=NONE | |
67 bindir='${exec_prefix}/bin' | |
68 sbindir='${exec_prefix}/sbin' | |
69 libexecdir='${exec_prefix}/libexec' | |
70 datadir='${prefix}/share' | |
71 sysconfdir='${prefix}/etc' | |
72 sharedstatedir='${prefix}/com' | |
73 localstatedir='${prefix}/var' | |
74 libdir='${exec_prefix}/lib' | |
75 includedir='${prefix}/include' | |
76 oldincludedir='/usr/include' | |
77 infodir='${prefix}/info' | |
78 mandir='${prefix}/man' | |
79 | |
80 # Initialize some other variables. | |
81 subdirs= | |
82 MFLAGS= MAKEFLAGS= | |
27205 | 83 SHELL=${CONFIG_SHELL-/bin/sh} |
25897 | 84 # Maximum number of lines to put in a shell here document. |
85 ac_max_here_lines=12 | |
86 | |
87 ac_prev= | |
88 for ac_option | |
89 do | |
90 | |
91 # If the previous option needs an argument, assign it. | |
92 if test -n "$ac_prev"; then | |
93 eval "$ac_prev=\$ac_option" | |
94 ac_prev= | |
95 continue | |
96 fi | |
97 | |
98 case "$ac_option" in | |
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
100 *) ac_optarg= ;; | |
101 esac | |
102 | |
103 # Accept the important Cygnus configure options, so we can diagnose typos. | |
104 | |
105 case "$ac_option" in | |
106 | |
107 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
108 ac_prev=bindir ;; | |
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
110 bindir="$ac_optarg" ;; | |
111 | |
112 -build | --build | --buil | --bui | --bu) | |
113 ac_prev=build ;; | |
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
115 build="$ac_optarg" ;; | |
116 | |
117 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
119 ac_prev=cache_file ;; | |
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
122 cache_file="$ac_optarg" ;; | |
123 | |
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
125 ac_prev=datadir ;; | |
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
127 | --da=*) | |
128 datadir="$ac_optarg" ;; | |
129 | |
130 -disable-* | --disable-*) | |
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
132 # Reject names that are not valid shell variable names. | |
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
135 fi | |
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
137 eval "enable_${ac_feature}=no" ;; | |
138 | |
139 -enable-* | --enable-*) | |
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
141 # Reject names that are not valid shell variable names. | |
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
144 fi | |
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
146 case "$ac_option" in | |
147 *=*) ;; | |
148 *) ac_optarg=yes ;; | |
149 esac | |
150 eval "enable_${ac_feature}='$ac_optarg'" ;; | |
151 | |
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
154 | --exec | --exe | --ex) | |
155 ac_prev=exec_prefix ;; | |
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
158 | --exec=* | --exe=* | --ex=*) | |
159 exec_prefix="$ac_optarg" ;; | |
160 | |
161 -gas | --gas | --ga | --g) | |
162 # Obsolete; use --with-gas. | |
163 with_gas=yes ;; | |
164 | |
165 -help | --help | --hel | --he) | |
166 # Omit some internal or obsolete options to make the list less imposing. | |
167 # This message is too long to be a string in the A/UX 3.1 sh. | |
168 cat << EOF | |
169 Usage: configure [options] [host] | |
170 Options: [defaults in brackets after descriptions] | |
171 Configuration: | |
172 --cache-file=FILE cache test results in FILE | |
173 --help print this message | |
174 --no-create do not create output files | |
175 --quiet, --silent do not print \`checking...' messages | |
176 --version print the version of autoconf that created configure | |
177 Directory and file names: | |
178 --prefix=PREFIX install architecture-independent files in PREFIX | |
179 [$ac_default_prefix] | |
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
181 [same as prefix] | |
182 --bindir=DIR user executables in DIR [EPREFIX/bin] | |
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
185 --datadir=DIR read-only architecture-independent data in DIR | |
186 [PREFIX/share] | |
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
189 [PREFIX/com] | |
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
192 --includedir=DIR C header files in DIR [PREFIX/include] | |
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
194 --infodir=DIR info documentation in DIR [PREFIX/info] | |
195 --mandir=DIR man documentation in DIR [PREFIX/man] | |
196 --srcdir=DIR find the sources in DIR [configure dir or ..] | |
197 --program-prefix=PREFIX prepend PREFIX to installed program names | |
198 --program-suffix=SUFFIX append SUFFIX to installed program names | |
199 --program-transform-name=PROGRAM | |
200 run sed PROGRAM on installed program names | |
201 EOF | |
202 cat << EOF | |
203 Host type: | |
204 --build=BUILD configure for building on BUILD [BUILD=HOST] | |
205 --host=HOST configure for HOST [guessed] | |
206 --target=TARGET configure for TARGET [TARGET=HOST] | |
207 Features and packages: | |
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
212 --x-includes=DIR X include files are in DIR | |
213 --x-libraries=DIR X library files are in DIR | |
214 EOF | |
215 if test -n "$ac_help"; then | |
216 echo "--enable and --with options recognized:$ac_help" | |
217 fi | |
218 exit 0 ;; | |
219 | |
220 -host | --host | --hos | --ho) | |
221 ac_prev=host ;; | |
222 -host=* | --host=* | --hos=* | --ho=*) | |
223 host="$ac_optarg" ;; | |
224 | |
225 -includedir | --includedir | --includedi | --included | --include \ | |
226 | --includ | --inclu | --incl | --inc) | |
227 ac_prev=includedir ;; | |
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
229 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
230 includedir="$ac_optarg" ;; | |
231 | |
232 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
233 ac_prev=infodir ;; | |
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
235 infodir="$ac_optarg" ;; | |
236 | |
237 -libdir | --libdir | --libdi | --libd) | |
238 ac_prev=libdir ;; | |
239 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
240 libdir="$ac_optarg" ;; | |
241 | |
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
243 | --libexe | --libex | --libe) | |
244 ac_prev=libexecdir ;; | |
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
246 | --libexe=* | --libex=* | --libe=*) | |
247 libexecdir="$ac_optarg" ;; | |
248 | |
249 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
250 | --localstate | --localstat | --localsta | --localst \ | |
251 | --locals | --local | --loca | --loc | --lo) | |
252 ac_prev=localstatedir ;; | |
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
256 localstatedir="$ac_optarg" ;; | |
257 | |
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
259 ac_prev=mandir ;; | |
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
261 mandir="$ac_optarg" ;; | |
262 | |
263 -nfp | --nfp | --nf) | |
264 # Obsolete; use --without-fp. | |
265 with_fp=no ;; | |
266 | |
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
268 | --no-cr | --no-c) | |
269 no_create=yes ;; | |
270 | |
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
273 no_recursion=yes ;; | |
274 | |
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
277 | --oldin | --oldi | --old | --ol | --o) | |
278 ac_prev=oldincludedir ;; | |
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
282 oldincludedir="$ac_optarg" ;; | |
283 | |
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
285 ac_prev=prefix ;; | |
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
287 prefix="$ac_optarg" ;; | |
288 | |
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
290 | --program-pre | --program-pr | --program-p) | |
291 ac_prev=program_prefix ;; | |
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
294 program_prefix="$ac_optarg" ;; | |
295 | |
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
297 | --program-suf | --program-su | --program-s) | |
298 ac_prev=program_suffix ;; | |
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
301 program_suffix="$ac_optarg" ;; | |
302 | |
303 -program-transform-name | --program-transform-name \ | |
304 | --program-transform-nam | --program-transform-na \ | |
305 | --program-transform-n | --program-transform- \ | |
306 | --program-transform | --program-transfor \ | |
307 | --program-transfo | --program-transf \ | |
308 | --program-trans | --program-tran \ | |
309 | --progr-tra | --program-tr | --program-t) | |
310 ac_prev=program_transform_name ;; | |
311 -program-transform-name=* | --program-transform-name=* \ | |
312 | --program-transform-nam=* | --program-transform-na=* \ | |
313 | --program-transform-n=* | --program-transform-=* \ | |
314 | --program-transform=* | --program-transfor=* \ | |
315 | --program-transfo=* | --program-transf=* \ | |
316 | --program-trans=* | --program-tran=* \ | |
317 | --progr-tra=* | --program-tr=* | --program-t=*) | |
318 program_transform_name="$ac_optarg" ;; | |
319 | |
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
321 | -silent | --silent | --silen | --sile | --sil) | |
322 silent=yes ;; | |
323 | |
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
325 ac_prev=sbindir ;; | |
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
327 | --sbi=* | --sb=*) | |
328 sbindir="$ac_optarg" ;; | |
329 | |
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
332 | --sharedst | --shareds | --shared | --share | --shar \ | |
333 | --sha | --sh) | |
334 ac_prev=sharedstatedir ;; | |
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
338 | --sha=* | --sh=*) | |
339 sharedstatedir="$ac_optarg" ;; | |
340 | |
341 -site | --site | --sit) | |
342 ac_prev=site ;; | |
343 -site=* | --site=* | --sit=*) | |
344 site="$ac_optarg" ;; | |
345 | |
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
347 ac_prev=srcdir ;; | |
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
349 srcdir="$ac_optarg" ;; | |
350 | |
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
352 | --syscon | --sysco | --sysc | --sys | --sy) | |
353 ac_prev=sysconfdir ;; | |
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
356 sysconfdir="$ac_optarg" ;; | |
357 | |
358 -target | --target | --targe | --targ | --tar | --ta | --t) | |
359 ac_prev=target ;; | |
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
361 target="$ac_optarg" ;; | |
362 | |
363 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
364 verbose=yes ;; | |
365 | |
366 -version | --version | --versio | --versi | --vers) | |
27205 | 367 echo "configure generated by autoconf version 2.13" |
25897 | 368 exit 0 ;; |
369 | |
370 -with-* | --with-*) | |
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
372 # Reject names that are not valid shell variable names. | |
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
375 fi | |
376 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
377 case "$ac_option" in | |
378 *=*) ;; | |
379 *) ac_optarg=yes ;; | |
380 esac | |
381 eval "with_${ac_package}='$ac_optarg'" ;; | |
382 | |
383 -without-* | --without-*) | |
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
385 # Reject names that are not valid shell variable names. | |
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
388 fi | |
389 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
390 eval "with_${ac_package}=no" ;; | |
391 | |
392 --x) | |
393 # Obsolete; use --with-x. | |
394 with_x=yes ;; | |
395 | |
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
397 | --x-incl | --x-inc | --x-in | --x-i) | |
398 ac_prev=x_includes ;; | |
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
401 x_includes="$ac_optarg" ;; | |
402 | |
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
405 ac_prev=x_libraries ;; | |
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
408 x_libraries="$ac_optarg" ;; | |
409 | |
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
411 ;; | |
412 | |
413 *) | |
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
415 echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
416 fi | |
417 if test "x$nonopt" != xNONE; then | |
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
419 fi | |
420 nonopt="$ac_option" | |
421 ;; | |
422 | |
423 esac | |
424 done | |
425 | |
426 if test -n "$ac_prev"; then | |
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
428 fi | |
429 | |
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
431 | |
432 # File descriptor usage: | |
433 # 0 standard input | |
434 # 1 file creation | |
435 # 2 errors and warnings | |
436 # 3 some systems may open it to /dev/tty | |
437 # 4 used on the Kubota Titan | |
438 # 6 checking for... messages and results | |
439 # 5 compiler messages saved in config.log | |
440 if test "$silent" = yes; then | |
441 exec 6>/dev/null | |
442 else | |
443 exec 6>&1 | |
444 fi | |
445 exec 5>./config.log | |
446 | |
447 echo "\ | |
448 This file contains any messages produced by compilers while | |
449 running configure, to aid debugging if configure makes a mistake. | |
450 " 1>&5 | |
451 | |
452 # Strip out --no-create and --no-recursion so they do not pile up. | |
453 # Also quote any args containing shell metacharacters. | |
454 ac_configure_args= | |
455 for ac_arg | |
456 do | |
457 case "$ac_arg" in | |
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
459 | --no-cr | --no-c) ;; | |
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
465 esac | |
466 done | |
467 | |
468 # NLS nuisances. | |
469 # Only set these to C if already set. These must not be set unconditionally | |
470 # because not all systems understand e.g. LANG=C (notably SCO). | |
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
472 # Non-C LC_CTYPE values break the ctype check. | |
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
477 | |
478 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
479 rm -rf conftest* confdefs.h | |
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
481 echo > confdefs.h | |
482 | |
483 # A filename unique to this package, relative to the directory that | |
484 # configure is in, which we can look for to find out if srcdir is correct. | |
485 ac_unique_file=src/lisp.h | |
486 | |
487 # Find the source files, if location was not specified. | |
488 if test -z "$srcdir"; then | |
489 ac_srcdir_defaulted=yes | |
490 # Try the directory containing this script, then its parent. | |
491 ac_prog=$0 | |
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
494 srcdir=$ac_confdir | |
495 if test ! -r $srcdir/$ac_unique_file; then | |
496 srcdir=.. | |
497 fi | |
498 else | |
499 ac_srcdir_defaulted=no | |
500 fi | |
501 if test ! -r $srcdir/$ac_unique_file; then | |
502 if test "$ac_srcdir_defaulted" = yes; then | |
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
504 else | |
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
506 fi | |
507 fi | |
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
509 | |
510 # Prefer explicitly selected file to automatically selected ones. | |
511 if test -z "$CONFIG_SITE"; then | |
512 if test "x$prefix" != xNONE; then | |
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
514 else | |
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
516 fi | |
517 fi | |
518 for ac_site_file in $CONFIG_SITE; do | |
519 if test -r "$ac_site_file"; then | |
520 echo "loading site script $ac_site_file" | |
521 . "$ac_site_file" | |
522 fi | |
523 done | |
524 | |
525 if test -r "$cache_file"; then | |
526 echo "loading cache $cache_file" | |
527 . $cache_file | |
528 else | |
529 echo "creating cache $cache_file" | |
530 > $cache_file | |
531 fi | |
532 | |
533 ac_ext=c | |
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
535 ac_cpp='$CPP $CPPFLAGS' | |
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
27205 | 537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
25897 | 538 cross_compiling=$ac_cv_prog_cc_cross |
539 | |
27205 | 540 ac_exeext= |
541 ac_objext=o | |
25897 | 542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
545 ac_n= ac_c=' | |
546 ' ac_t=' ' | |
547 else | |
548 ac_n=-n ac_c= ac_t= | |
549 fi | |
550 else | |
551 ac_n= ac_c='\c' ac_t= | |
552 fi | |
553 | |
554 | |
555 | |
556 | |
557 lispdir='${datadir}/emacs/${version}/lisp' | |
558 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
559 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
560 lisppath='${locallisppath}:${lispdir}' | |
561 etcdir='${datadir}/emacs/${version}/etc' | |
562 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
563 docdir='${datadir}/emacs/${version}/etc' | |
564 | |
565 # Check whether --with-gcc or --without-gcc was given. | |
566 if test "${with_gcc+set}" = set; then | |
567 withval="$with_gcc" | |
568 : | |
569 fi | |
570 | |
571 # Check whether --with-pop or --without-pop was given. | |
572 if test "${with_pop+set}" = set; then | |
573 withval="$with_pop" | |
25994 | 574 if test "$withval" = yes; then |
575 cat >> confdefs.h <<\EOF | |
25897 | 576 #define MAIL_USE_POP 1 |
577 EOF | |
578 | |
25994 | 579 else : |
580 fi | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
581 else |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
582 cat >> confdefs.h <<\EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
583 #define MAIL_USE_POP 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
584 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
585 |
25897 | 586 fi |
587 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
588 # Check whether --with-kerberos or --without-kerberos was given. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
589 if test "${with_kerberos+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
590 withval="$with_kerberos" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
591 cat >> confdefs.h <<\EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
592 #define KERBEROS 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
593 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
594 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
595 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
596 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
597 # Check whether --with-kerberos5 or --without-kerberos5 was given. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
598 if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
599 withval="$with_kerberos5" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
600 if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
601 if test "${with_kerberos+set}" != set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
602 with_kerberos=yes |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
603 cat >> confdefs.h <<\EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
604 #define KERBEROS 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
605 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
606 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
607 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
608 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
609 cat >> confdefs.h <<\EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
610 #define KERBEROS5 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
611 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
612 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
613 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
614 |
25897 | 615 # Check whether --with-hesiod or --without-hesiod was given. |
616 if test "${with_hesiod+set}" = set; then | |
617 withval="$with_hesiod" | |
618 cat >> confdefs.h <<\EOF | |
619 #define HESIOD 1 | |
620 EOF | |
621 | |
622 fi | |
623 | |
624 # Check whether --with-x-toolkit or --without-x-toolkit was given. | |
625 if test "${with_x_toolkit+set}" = set; then | |
626 withval="$with_x_toolkit" | |
627 case "${withval}" in | |
628 y | ye | yes ) val=athena ;; | |
629 n | no ) val=no ;; | |
630 l | lu | luc | luci | lucid ) val=lucid ;; | |
631 a | at | ath | athe | athen | athena ) val=athena ;; | |
632 m | mo | mot | moti | motif ) val=motif ;; | |
633 * ) | |
634 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\; | |
635 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
636 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; } | |
637 ;; | |
638 esac | |
639 with_x_toolkit=$val | |
640 | |
641 fi | |
642 | |
643 # Check whether --with-xpm or --without-xpm was given. | |
644 if test "${with_xpm+set}" = set; then | |
645 withval="$with_xpm" | |
646 : | |
647 fi | |
648 | |
649 # Check whether --with-jpeg or --without-jpeg was given. | |
650 if test "${with_jpeg+set}" = set; then | |
651 withval="$with_jpeg" | |
652 : | |
653 fi | |
654 | |
655 # Check whether --with-tiff or --without-tiff was given. | |
656 if test "${with_tiff+set}" = set; then | |
657 withval="$with_tiff" | |
658 : | |
659 fi | |
660 | |
661 # Check whether --with-gif or --without-gif was given. | |
662 if test "${with_gif+set}" = set; then | |
663 withval="$with_gif" | |
664 : | |
665 fi | |
666 | |
667 # Check whether --with-png or --without-png was given. | |
668 if test "${with_png+set}" = set; then | |
669 withval="$with_png" | |
670 : | |
671 fi | |
672 | |
673 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
674 if test "${with_toolkit_scroll_bars+set}" = set; then | |
675 withval="$with_toolkit_scroll_bars" | |
676 : | |
677 fi | |
678 | |
29949 | 679 # Check whether --with-xim or --without-xim was given. |
680 if test "${with_xim+set}" = set; then | |
681 withval="$with_xim" | |
682 : | |
683 fi | |
684 | |
25897 | 685 |
686 #### Make srcdir absolute, if it isn't already. It's important to | |
687 #### avoid running the path through pwd unnecessary, since pwd can | |
688 #### give you automounter prefixes, which can go away. We do all this | |
689 #### so Emacs can find its files when run uninstalled. | |
690 case "${srcdir}" in | |
691 /* ) ;; | |
692 . ) | |
693 ## We may be able to use the $PWD environment variable to make this | |
694 ## absolute. But sometimes PWD is inaccurate. | |
695 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | |
696 unset CDPATH | |
697 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; | |
698 then | |
699 srcdir="$PWD" | |
700 else | |
701 srcdir="`(cd ${srcdir}; pwd)`" | |
702 fi | |
703 ;; | |
704 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
705 esac | |
706 | |
707 #### Check if the source directory already has a configured system in it. | |
708 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
709 && test -f "${srcdir}/src/config.h" ; then | |
710 echo "configure: warning: The directory tree \`${srcdir}' is being used | |
711 as a build directory right now; it has been configured in its own | |
712 right. To configure in another directory as well, you MUST | |
713 use GNU make. If you do not have GNU make, then you must | |
714 now do \`make distclean' in ${srcdir}, | |
715 and then run $0 again." 1>&2 | |
716 | |
717 extrasub='/^VPATH[ ]*=/c\ | |
718 vpath %.c $(srcdir)\ | |
719 vpath %.h $(srcdir)\ | |
720 vpath %.y $(srcdir)\ | |
721 vpath %.l $(srcdir)\ | |
722 vpath %.s $(srcdir)\ | |
723 vpath %.in $(srcdir)\ | |
724 vpath %.texi $(srcdir)' | |
725 fi | |
726 | |
727 #### Given the configuration name, set machfile and opsysfile to the | |
728 #### names of the m/*.h and s/*.h files we should use. | |
729 | |
730 ### Canonicalize the configuration name. | |
731 | |
732 ac_aux_dir= | |
733 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
734 if test -f $ac_dir/install-sh; then | |
735 ac_aux_dir=$ac_dir | |
736 ac_install_sh="$ac_aux_dir/install-sh -c" | |
737 break | |
738 elif test -f $ac_dir/install.sh; then | |
739 ac_aux_dir=$ac_dir | |
740 ac_install_sh="$ac_aux_dir/install.sh -c" | |
741 break | |
742 fi | |
743 done | |
744 if test -z "$ac_aux_dir"; then | |
745 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
746 fi | |
747 ac_config_guess=$ac_aux_dir/config.guess | |
748 ac_config_sub=$ac_aux_dir/config.sub | |
749 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
750 | |
751 | |
752 # Make sure we can run config.sub. | |
27205 | 753 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
25897 | 754 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
755 fi | |
756 | |
757 echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
29949 | 758 echo "configure:759: checking host system type" >&5 |
25897 | 759 |
760 host_alias=$host | |
761 case "$host_alias" in | |
762 NONE) | |
763 case $nonopt in | |
764 NONE) | |
27205 | 765 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
25897 | 766 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
767 fi ;; | |
768 *) host_alias=$nonopt ;; | |
769 esac ;; | |
770 esac | |
771 | |
27205 | 772 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
25897 | 773 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
774 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
775 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
776 echo "$ac_t""$host" 1>&6 | |
777 | |
778 canonical=$host | |
779 configuration=$host_alias | |
780 | |
781 | |
782 ### If you add support for a new configuration, add code to this | |
783 ### switch statement to recognize your configuration name and select | |
784 ### the appropriate operating system and machine description files. | |
785 | |
786 ### You would hope that you could choose an m/*.h file pretty much | |
787 ### based on the machine portion of the configuration name, and an s- | |
788 ### file based on the operating system portion. However, it turns out | |
789 ### that each m/*.h file is pretty manufacturer-specific - for | |
790 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
791 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
792 ### machines. So we basically have to have a special case for each | |
793 ### configuration name. | |
794 ### | |
795 ### As far as handling version numbers on operating systems is | |
796 ### concerned, make sure things will fail in a fixable way. If | |
797 ### /etc/MACHINES doesn't say anything about version numbers, be | |
798 ### prepared to handle anything reasonably. If version numbers | |
799 ### matter, be sure /etc/MACHINES says something about it. | |
800 ### | |
801 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
802 ### "System V Release 4"; he writes, "The old convention encouraged | |
803 ### confusion between `system' and `release' levels'." | |
804 | |
805 machine='' opsys='' unported=no | |
806 case "${canonical}" in | |
807 | |
808 ## NetBSD ports | |
809 *-*-netbsd* ) | |
810 opsys=netbsd | |
811 case "${canonical}" in | |
812 alpha*-*-netbsd*) machine=alpha ;; | |
813 i[3456]86-*-netbsd*) machine=intel386 ;; | |
814 m68k-*-netbsd*) | |
815 # This is somewhat bogus. | |
816 machine=hp9000s300 ;; | |
817 powerpc-apple-netbsd*) machine=macppc ;; | |
818 mips-*-netbsd*) machine=pmax ;; | |
27927 | 819 mipsel-*-netbsd*) machine=pmax ;; |
25897 | 820 ns32k-*-netbsd*) machine=ns32000 ;; |
28674 | 821 powerpc-*-netbsd*) machine=macppc ;; |
25897 | 822 sparc-*-netbsd*) machine=sparc ;; |
823 vax-*-netbsd*) machine=vax ;; | |
27927 | 824 arm-*-netbsd*) machine=arm ;; |
25897 | 825 esac |
826 ;; | |
827 | |
828 ## OpenBSD ports | |
829 *-*-openbsd* ) | |
830 opsys=openbsd | |
831 case "${canonical}" in | |
832 alpha*-*-openbsd*) machine=alpha ;; | |
833 i386-*-openbsd*) machine=intel386 ;; | |
834 m68k-*-openbsd*) machine=hp9000s300 ;; | |
835 mipsel-*-openbsd*) machine=pmax ;; | |
836 ns32k-*-openbsd*) machine=ns32000 ;; | |
837 sparc-*-openbsd*) machine=sparc ;; | |
838 vax-*-openbsd*) machine=vax ;; | |
839 esac | |
840 ;; | |
841 | |
842 ## Acorn RISCiX: | |
843 arm-acorn-riscix1.1* ) | |
844 machine=acorn opsys=riscix1-1 | |
845 ;; | |
846 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
847 ## This name is riscix12 instead of riscix1.2 | |
848 ## to avoid a file name conflict on MSDOS. | |
849 machine=acorn opsys=riscix12 | |
850 ;; | |
851 | |
852 ## BSDI ports | |
853 *-*-bsdi* ) | |
854 opsys=bsdi | |
855 case "${canonical}" in | |
856 i[345]86-*-bsdi*) machine=intel386 ;; | |
857 sparc-*-bsdi*) machine=sparc ;; | |
858 powerpc-*-bsdi*) machine=powerpc ;; | |
859 esac | |
860 case "${canonical}" in | |
861 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
862 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
863 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
864 *-*-bsdi3* ) opsys=bsdos3 ;; | |
865 *-*-bsdi4* ) opsys=bsdos4 ;; | |
866 esac | |
867 ;; | |
868 | |
869 ## Alliant machines | |
870 ## Strictly speaking, we need the version of the alliant operating | |
871 ## system to choose the right machine file, but currently the | |
872 ## configuration name doesn't tell us enough to choose the right | |
873 ## one; we need to give alliants their own operating system name to | |
874 ## do this right. When someone cares, they can help us. | |
875 fx80-alliant-* ) | |
876 machine=alliant4 opsys=bsd4-2 | |
877 ;; | |
878 i860-alliant-* ) | |
879 machine=alliant-2800 opsys=bsd4-3 | |
880 ;; | |
881 | |
882 ## Alpha (DEC) machines. | |
883 alpha*-dec-osf* ) | |
884 machine=alpha opsys=osf1 | |
885 # This is needed to find X11R6.1 libraries for certain tests. | |
886 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
887 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
27883 | 888 case "${canonical}" in |
889 # This is necessary on 5.0 to avoid mangling src/Makefile. | |
890 # Separated out in case it causes problems on earlier versions. | |
891 alpha*-dec-osf[5-9]*) | |
29834 | 892 opsys=osf5-0 |
29654 | 893 NON_GNU_CPP='cpp' ;; |
27883 | 894 esac |
25897 | 895 ;; |
896 | |
897 alpha*-*-linux-gnu* ) | |
898 machine=alpha opsys=gnu-linux | |
899 ;; | |
900 | |
27205 | 901 arm*-*-linux-gnu* ) |
902 machine=arm opsys=gnu-linux | |
903 ;; | |
904 | |
905 ppc-*-linux | \ | |
906 powerpc-*-linux* ) | |
907 machine=powerpc opsys=gnu-linux | |
908 ;; | |
909 | |
25897 | 910 ## Altos 3068 |
911 m68*-altos-sysv* ) | |
912 machine=altos opsys=usg5-2 | |
913 ;; | |
914 | |
915 ## Amdahl UTS | |
916 580-amdahl-sysv* ) | |
917 machine=amdahl opsys=usg5-2-2 | |
918 ;; | |
919 | |
920 ## Apollo, Domain/OS | |
921 m68*-apollo-* ) | |
922 machine=apollo opsys=bsd4-3 | |
923 ;; | |
924 | |
925 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
926 we32k-att-sysv* ) | |
927 machine=att3b opsys=usg5-2-2 | |
928 ;; | |
929 | |
930 ## AT&T 3b1 - The Mighty Unix PC! | |
931 m68*-att-sysv* ) | |
932 machine=7300 opsys=usg5-2-2 | |
933 ;; | |
934 | |
935 ## Bull dpx20 | |
936 rs6000-bull-bosx* ) | |
937 machine=ibmrs6000 opsys=aix3-2 | |
938 ;; | |
939 | |
940 ## Bull dpx2 | |
941 m68*-bull-sysv3* ) | |
942 machine=dpx2 opsys=usg5-3 | |
943 ;; | |
944 | |
945 ## Bull sps7 | |
946 m68*-bull-sysv2* ) | |
947 machine=sps7 opsys=usg5-2 | |
948 ;; | |
949 | |
950 ## CCI 5/32, 6/32 -- see "Tahoe". | |
951 | |
952 ## Celerity | |
953 ## I don't know what configuration name to use for this; config.sub | |
954 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
955 ## in touch with us! | |
956 celerity-celerity-bsd* ) | |
957 machine=celerity opsys=bsd4-2 | |
958 ;; | |
959 | |
960 ## Clipper | |
961 ## What operating systems does this chip run that Emacs has been | |
962 ## tested on? | |
963 clipper-* ) | |
964 machine=clipper | |
965 ## We'll use the catch-all code at the bottom to guess the | |
966 ## operating system. | |
967 ;; | |
968 | |
969 ## Convex | |
970 *-convex-bsd* | *-convex-convexos* ) | |
971 machine=convex opsys=bsd4-3 | |
972 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
973 NON_GNU_CPP="cc -E -P" | |
974 ;; | |
975 | |
976 ## Cubix QBx/386 | |
977 i[3456]86-cubix-sysv* ) | |
978 machine=intel386 opsys=usg5-3 | |
979 ;; | |
980 | |
981 ## Cydra 5 | |
982 cydra*-cydrome-sysv* ) | |
983 machine=cydra5 opsys=usg5-3 | |
984 ;; | |
985 | |
986 ## Data General AViiON Machines | |
987 ## DG changed naming conventions with the release of 5.4.4.10, they | |
988 ## dropped the initial 5.4 but left the intervening R. Because of the | |
989 ## R this shouldn't conflict with older versions of the OS (which I | |
990 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
991 ## uses either Motorola M88k or Intel Pentium CPUs. | |
992 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
993 machine=aviion opsys=dgux4 | |
994 ;; | |
995 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
996 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
997 ## to avoid a file name conflict on MSDOS. | |
998 machine=aviion opsys=dgux5-4-3 | |
999 ;; | |
1000 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1001 machine=aviion opsys=dgux5-4r2 | |
1002 ;; | |
1003 m88k-dg-dgux* ) | |
1004 machine=aviion opsys=dgux | |
1005 ;; | |
1006 | |
1007 ## Data General AViiON Intel (x86) Machines | |
1008 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1009 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1010 i[345]86-dg-dguxR4* ) | |
1011 machine=aviion-intel opsys=dgux4 | |
1012 ;; | |
1013 | |
1014 ## DECstations | |
1015 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1016 machine=pmax opsys=bsd4-2 | |
1017 ;; | |
1018 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1019 machine=pmax opsys=bsd4-3 | |
1020 ;; | |
1021 mips-dec-ultrix* ) | |
1022 machine=pmax opsys=ultrix4-3 | |
1023 ;; | |
1024 mips-dec-osf* ) | |
1025 machine=pmax opsys=osf1 | |
1026 ;; | |
1027 mips-dec-mach_bsd4.3* ) | |
1028 machine=pmax opsys=mach-bsd4-3 | |
1029 ;; | |
1030 | |
1031 ## Motorola Delta machines | |
1032 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1033 machine=delta opsys=usg5-3 | |
1034 if test -z "`type gnucc | grep 'not found'`" | |
1035 then | |
1036 if test -s /etc/167config | |
1037 then CC="gnucc -m68040" | |
1038 else CC="gnucc -m68881" | |
1039 fi | |
1040 else | |
1041 if test -z "`type gcc | grep 'not found'`" | |
1042 then CC=gcc | |
1043 else CC=cc | |
1044 fi | |
1045 fi | |
1046 ;; | |
1047 m88k-motorola-sysv4* ) | |
1048 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1049 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1050 # I hope there are not other 4.0 versions for this machine | |
1051 # which really need usg5-4 instead. | |
1052 machine=delta88k opsys=usg5-4-2 | |
1053 ;; | |
1054 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1055 machine=delta88k opsys=usg5-3 | |
1056 ;; | |
1057 | |
1058 ## Dual machines | |
1059 m68*-dual-sysv* ) | |
1060 machine=dual opsys=usg5-2 | |
1061 ;; | |
1062 m68*-dual-uniplus* ) | |
1063 machine=dual opsys=unipl5-2 | |
1064 ;; | |
1065 | |
1066 ## Elxsi 6400 | |
1067 elxsi-elxsi-sysv* ) | |
1068 machine=elxsi opsys=usg5-2 | |
1069 ;; | |
1070 | |
1071 ## Encore machines | |
1072 ns16k-encore-bsd* ) | |
1073 machine=ns16000 opsys=umax | |
1074 ;; | |
1075 | |
30069 | 1076 ## The GEC 63 - apparently, this port isn't really finished yet. |
1077 # I'm sure we finished off the last of the machines, though. -- fx | |
25897 | 1078 |
1079 ## Gould Power Node and NP1 | |
1080 pn-gould-bsd4.2* ) | |
1081 machine=gould opsys=bsd4-2 | |
1082 ;; | |
1083 pn-gould-bsd4.3* ) | |
1084 machine=gould opsys=bsd4-3 | |
1085 ;; | |
1086 np1-gould-bsd* ) | |
1087 machine=gould-np1 opsys=bsd4-3 | |
1088 ;; | |
1089 | |
1090 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1091 ## as far as Emacs is concerned). | |
1092 m88k-harris-cxux* ) | |
1093 # Build needs to be different on 7.0 and later releases | |
1094 case "`uname -r`" in | |
1095 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1096 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1097 esac | |
1098 NON_GNU_CPP="/lib/cpp" | |
1099 ;; | |
1100 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1101 m68k-harris-cxux* ) | |
1102 machine=nh3000 opsys=cxux | |
1103 ;; | |
1104 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1105 powerpc-harris-powerunix ) | |
1106 machine=nh6000 opsys=powerunix | |
1107 NON_GNU_CPP="cc -Xo -E -P" | |
1108 ;; | |
1109 ## SR2001/SR2201 running HI-UX/MPP | |
1110 hppa1.1-hitachi-hiuxmpp* ) | |
1111 machine=sr2k opsys=hiuxmpp | |
1112 ;; | |
1113 ## Honeywell XPS100 | |
1114 xps*-honeywell-sysv* ) | |
1115 machine=xps100 opsys=usg5-2 | |
1116 ;; | |
1117 | |
1118 ## HP 9000 series 200 or 300 | |
1119 m68*-hp-bsd* ) | |
1120 machine=hp9000s300 opsys=bsd4-3 | |
1121 ;; | |
1122 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1123 m68*-hp-hpux* ) | |
1124 case "`uname -r`" in | |
1125 ## Someone's system reports A.B8.05 for this. | |
1126 ## I wonder what other possibilities there are. | |
1127 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1128 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1129 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1130 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1131 *) machine=hp9000s300 opsys=hpux ;; | |
1132 esac | |
1133 ;; | |
1134 | |
1135 ## HP 9000 series 700 and 800, running HP/UX | |
1136 hppa*-hp-hpux7* ) | |
1137 machine=hp800 opsys=hpux | |
1138 ;; | |
1139 hppa*-hp-hpux8* ) | |
1140 machine=hp800 opsys=hpux8 | |
1141 ;; | |
1142 hppa*-hp-hpux9shr* ) | |
1143 machine=hp800 opsys=hpux9shr | |
1144 ;; | |
1145 hppa*-hp-hpux9* ) | |
1146 machine=hp800 opsys=hpux9 | |
1147 ;; | |
1148 hppa*-hp-hpux1[0-9]* ) | |
1149 machine=hp800 opsys=hpux10 | |
1150 ;; | |
1151 | |
1152 ## HP 9000 series 700 and 800, running HP/UX | |
1153 hppa*-hp-hpux* ) | |
1154 ## Cross-compilation? Nah! | |
1155 case "`uname -r`" in | |
1156 ## Someone's system reports A.B8.05 for this. | |
1157 ## I wonder what other possibilities there are. | |
1158 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1159 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1160 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1161 *) machine=hp800 opsys=hpux10 ;; | |
1162 esac | |
1163 ;; | |
1164 hppa*-*-nextstep* ) | |
1165 machine=hp800 opsys=nextstep | |
1166 ;; | |
1167 | |
1168 ## Orion machines | |
1169 orion-orion-bsd* ) | |
1170 machine=orion opsys=bsd4-2 | |
1171 ;; | |
1172 clipper-orion-bsd* ) | |
1173 machine=orion105 opsys=bsd4-2 | |
1174 ;; | |
1175 | |
1176 ## IBM machines | |
1177 i[3456]86-ibm-aix1.1* ) | |
1178 machine=ibmps2-aix opsys=usg5-2-2 | |
1179 ;; | |
1180 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1181 machine=ibmps2-aix opsys=usg5-3 | |
1182 ;; | |
1183 i370-ibm-aix*) | |
1184 machine=ibm370aix opsys=usg5-3 | |
1185 ;; | |
1186 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) | |
1187 machine=ibmrs6000 opsys=aix3-1 | |
1188 ;; | |
1189 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1190 machine=ibmrs6000 opsys=aix3-2-5 | |
1191 ;; | |
1192 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1193 machine=ibmrs6000 opsys=aix4-1 | |
1194 ;; | |
1195 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1196 machine=ibmrs6000 opsys=aix4-2 | |
1197 ;; | |
1198 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) | |
1199 machine=ibmrs6000 opsys=aix4 | |
1200 ;; | |
1201 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1202 machine=ibmrs6000 opsys=aix4-1 | |
1203 ;; | |
1204 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1205 machine=ibmrs6000 opsys=aix3-2 | |
1206 ;; | |
1207 romp-ibm-bsd4.3* ) | |
1208 machine=ibmrt opsys=bsd4-3 | |
1209 ;; | |
1210 romp-ibm-bsd4.2* ) | |
1211 machine=ibmrt opsys=bsd4-2 | |
1212 ;; | |
1213 romp-ibm-aos4.3* ) | |
1214 machine=ibmrt opsys=bsd4-3 | |
1215 ;; | |
1216 romp-ibm-aos4.2* ) | |
1217 machine=ibmrt opsys=bsd4-2 | |
1218 ;; | |
1219 romp-ibm-aos* ) | |
1220 machine=ibmrt opsys=bsd4-3 | |
1221 ;; | |
1222 romp-ibm-bsd* ) | |
1223 machine=ibmrt opsys=bsd4-3 | |
1224 ;; | |
1225 romp-ibm-aix* ) | |
1226 machine=ibmrt-aix opsys=usg5-2-2 | |
1227 ;; | |
1228 | |
1229 ## Integrated Solutions `Optimum V' | |
1230 m68*-isi-bsd4.2* ) | |
1231 machine=isi-ov opsys=bsd4-2 | |
1232 ;; | |
1233 m68*-isi-bsd4.3* ) | |
1234 machine=isi-ov opsys=bsd4-3 | |
1235 ;; | |
1236 | |
1237 ## Intel 386 machines where we do care about the manufacturer | |
1238 i[3456]86-intsys-sysv* ) | |
1239 machine=is386 opsys=usg5-2-2 | |
1240 ;; | |
1241 | |
1242 ## Prime EXL | |
1243 i[3456]86-prime-sysv* ) | |
1244 machine=i386 opsys=usg5-3 | |
1245 ;; | |
1246 | |
1247 ## Sequent Symmetry running Dynix | |
1248 i[3456]86-sequent-bsd* ) | |
1249 machine=symmetry opsys=bsd4-3 | |
1250 ;; | |
1251 | |
1252 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1253 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1254 machine=sequent-ptx opsys=ptx4 | |
1255 NON_GNU_CPP=/lib/cpp | |
1256 ;; | |
1257 | |
1258 ## Sequent Symmetry running DYNIX/ptx | |
1259 ## Use the old cpp rather than the newer ANSI one. | |
1260 i[3456]86-sequent-ptx* ) | |
1261 machine=sequent-ptx opsys=ptx | |
1262 NON_GNU_CPP="/lib/cpp" | |
1263 ;; | |
1264 | |
1265 ## ncr machine running svr4.3. | |
1266 i[3456]86-ncr-sysv4.3 ) | |
1267 machine=ncr386 opsys=usg5-4-3 | |
1268 ;; | |
1269 | |
1270 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1271 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1272 i[3456]86-ncr-sysv* ) | |
1273 machine=ncr386 opsys=usg5-4-2 | |
1274 ;; | |
1275 | |
1276 ## Intel Paragon OSF/1 | |
1277 i860-intel-osf1* ) | |
1278 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1279 ;; | |
1280 | |
1281 ## Intel 860 | |
1282 i860-*-sysv4* ) | |
1283 machine=i860 opsys=usg5-4 | |
1284 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1285 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1286 ;; | |
1287 | |
28748 | 1288 ## Macintosh PowerPC |
1289 powerpc*-*-linux-gnu* ) | |
1290 machine=macppc opsys=gnu-linux | |
1291 ;; | |
1292 | |
25897 | 1293 ## Masscomp machines |
1294 m68*-masscomp-rtu* ) | |
1295 machine=masscomp opsys=rtu | |
1296 ;; | |
1297 | |
1298 ## Megatest machines | |
1299 m68*-megatest-bsd* ) | |
1300 machine=mega68 opsys=bsd4-2 | |
1301 ;; | |
1302 | |
1303 ## Workstations sold by MIPS | |
1304 ## This is not necessarily all workstations using the MIPS processor - | |
1305 ## Irises are produced by SGI, and DECstations by DEC. | |
1306 | |
1307 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1308 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1309 ## it gives for choosing between the alternatives seems to be "Use | |
1310 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1311 ## the BSD world." I'll assume that these are instructions for | |
1312 ## handling two odd situations, and that every other situation | |
1313 ## should use mips.h and usg5-2-2, they being listed first. | |
1314 mips-mips-usg* ) | |
1315 machine=mips4 | |
1316 ## Fall through to the general code at the bottom to decide on the OS. | |
1317 ;; | |
1318 mips-mips-riscos4* ) | |
1319 machine=mips4 opsys=bsd4-3 | |
1320 NON_GNU_CC="cc -systype bsd43" | |
1321 NON_GNU_CPP="cc -systype bsd43 -E" | |
1322 ;; | |
1323 mips-mips-riscos5* ) | |
1324 machine=mips4 opsys=riscos5 | |
1325 NON_GNU_CC="cc -systype bsd43" | |
1326 NON_GNU_CPP="cc -systype bsd43 -E" | |
1327 ;; | |
1328 mips-mips-bsd* ) | |
1329 machine=mips opsys=bsd4-3 | |
1330 ;; | |
1331 mips-mips-* ) | |
1332 machine=mips opsys=usg5-2-2 | |
1333 ;; | |
1334 | |
1335 ## NeXT | |
1336 m68*-next-* | m68k-*-nextstep* ) | |
1337 machine=m68k opsys=nextstep | |
1338 ;; | |
1339 | |
1340 ## The complete machine from National Semiconductor | |
1341 ns32k-ns-genix* ) | |
1342 machine=ns32000 opsys=usg5-2 | |
1343 ;; | |
1344 | |
1345 ## NCR machines | |
1346 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1347 machine=tower32 opsys=usg5-2-2 | |
1348 ;; | |
1349 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1350 machine=tower32v3 opsys=usg5-3 | |
1351 ;; | |
1352 | |
1353 ## NEC EWS4800 | |
1354 mips-nec-sysv4*) | |
1355 machine=ews4800 opsys=ux4800 | |
1356 ;; | |
1357 | |
1358 ## Nixdorf Targon 31 | |
1359 m68*-nixdorf-sysv* ) | |
1360 machine=targon31 opsys=usg5-2-2 | |
1361 ;; | |
1362 | |
1363 ## Nu (TI or LMI) | |
1364 m68*-nu-sysv* ) | |
1365 machine=nu opsys=usg5-2 | |
1366 ;; | |
1367 | |
1368 ## Plexus | |
1369 m68*-plexus-sysv* ) | |
1370 machine=plexus opsys=usg5-2 | |
1371 ;; | |
1372 | |
1373 ## PowerPC reference platform | |
1374 powerpcle-*-solaris2* ) | |
1375 machine=prep | |
1376 opsys=sol2-5 | |
1377 ;; | |
1378 | |
1379 ## Pyramid machines | |
1380 ## I don't really have any idea what sort of processor the Pyramid has, | |
1381 ## so I'm assuming it is its own architecture. | |
1382 pyramid-pyramid-bsd* ) | |
1383 machine=pyramid opsys=bsd4-2 | |
1384 ;; | |
1385 | |
1386 ## Sequent Balance | |
1387 ns32k-sequent-bsd4.2* ) | |
1388 machine=sequent opsys=bsd4-2 | |
1389 ;; | |
1390 ns32k-sequent-bsd4.3* ) | |
1391 machine=sequent opsys=bsd4-3 | |
1392 ;; | |
1393 | |
1394 ## Siemens Nixdorf | |
1395 mips-siemens-sysv* | mips-sni-sysv*) | |
1396 machine=mips-siemens opsys=usg5-4 | |
1397 NON_GNU_CC=/usr/ccs/bin/cc | |
1398 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1399 ;; | |
1400 | |
1401 ## Silicon Graphics machines | |
1402 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1403 m68*-sgi-iris3.5* ) | |
1404 machine=irist opsys=iris3-5 | |
1405 ;; | |
1406 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1407 machine=irist opsys=iris3-6 | |
1408 ;; | |
1409 ## Iris 4D | |
1410 mips-sgi-irix3* ) | |
1411 machine=iris4d opsys=irix3-3 | |
1412 ;; | |
1413 mips-sgi-irix4* ) | |
1414 machine=iris4d opsys=irix4-0 | |
1415 ;; | |
1416 mips-sgi-irix6.5 ) | |
1417 machine=iris4d opsys=irix6-5 | |
26502 | 1418 # Without defining _LANGUAGE_C, things get masked out in the headers |
1419 # so that, for instance, grepping for `free' in stdlib.h fails and | |
1420 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
1421 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1422 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
25897 | 1423 ;; |
1424 mips-sgi-irix6* ) | |
1425 machine=iris4d opsys=irix6-0 | |
27205 | 1426 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26502 | 1427 # but presumably it does no harm. |
1428 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1429 # -32 probably isn't necessary in later v.6s -- anyone know which? |
25897 | 1430 NON_GCC_TEST_OPTIONS=-32 |
1431 ;; | |
1432 mips-sgi-irix5.[01]* ) | |
1433 machine=iris4d opsys=irix5-0 | |
1434 ;; | |
1435 mips-sgi-irix5* | mips-sgi-irix* ) | |
1436 machine=iris4d opsys=irix5-2 | |
1437 ;; | |
1438 | |
1439 ## SONY machines | |
1440 m68*-sony-bsd4.2* ) | |
1441 machine=news opsys=bsd4-2 | |
1442 ;; | |
1443 m68*-sony-bsd4.3* ) | |
1444 machine=news opsys=bsd4-3 | |
1445 ;; | |
1446 m68*-sony-newsos3* | m68*-sony-news3*) | |
1447 machine=news opsys=bsd4-3 | |
1448 ;; | |
1449 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
1450 machine=news-risc opsys=bsd4-3 | |
1451 ;; | |
1452 mips-sony-newsos6* ) | |
1453 machine=news-r6 opsys=newsos6 | |
1454 ;; | |
1455 mips-sony-news* ) | |
1456 machine=news-risc opsys=newsos5 | |
1457 ;; | |
1458 | |
1459 ## Stride | |
1460 m68*-stride-sysv* ) | |
1461 machine=stride opsys=usg5-2 | |
1462 ;; | |
1463 | |
1464 ## Suns | |
1465 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
1466 machine=sparc opsys=gnu-linux | |
1467 ;; | |
1468 | |
27949 | 1469 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
25897 | 1470 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
1471 | rs6000-*-solaris2*) | |
1472 case "${canonical}" in | |
1473 m68*-sunos1* ) machine=sun1 ;; | |
1474 m68*-sunos2* ) machine=sun2 ;; | |
1475 m68* ) machine=sun3 ;; | |
1476 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
1477 i[3456]86-*-* ) machine=intel386 ;; | |
1478 powerpcle* ) machine=powerpcle ;; | |
1479 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
1480 sparc* ) machine=sparc ;; | |
1481 * ) unported=yes ;; | |
1482 esac | |
1483 case "${canonical}" in | |
1484 ## The Sun386 didn't get past 4.0. | |
1485 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
1486 *-sunos4.0* ) opsys=sunos4-0 ;; | |
1487 *-sunos4.1.[3-9]*noshare ) | |
1488 ## This name is sunos413 instead of sunos4-1-3 | |
1489 ## to avoid a file name conflict on MSDOS. | |
1490 opsys=sunos413 | |
1491 NON_GNU_CPP=/usr/lib/cpp | |
1492 NON_GCC_TEST_OPTIONS=-Bstatic | |
1493 GCC_TEST_OPTIONS=-static | |
1494 ;; | |
1495 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
1496 opsys=sunos4shr | |
1497 NON_GNU_CPP=/usr/lib/cpp | |
1498 ;; | |
1499 *-sunos4* | *-sunos ) | |
1500 opsys=sunos4-1 | |
1501 NON_GCC_TEST_OPTIONS=-Bstatic | |
1502 GCC_TEST_OPTIONS=-static | |
1503 ;; | |
1504 *-sunos5.3* | *-solaris2.3* ) | |
1505 opsys=sol2-3 | |
1506 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1507 ;; | |
1508 *-sunos5.4* | *-solaris2.4* ) | |
1509 opsys=sol2-4 | |
1510 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1511 RANLIB="ar -ts" | |
1512 ;; | |
1513 *-sunos5.5* | *-solaris2.5* ) | |
1514 opsys=sol2-5 | |
1515 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1516 RANLIB="ar -ts" | |
1517 ;; | |
1518 *-sunos5* | *-solaris* ) | |
1519 opsys=sol2-5 | |
1520 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1521 ;; | |
1522 * ) opsys=bsd4-2 ;; | |
1523 esac | |
1524 ## Watch out for a compiler that we know will not work. | |
1525 case "${canonical}" in | |
1526 *-solaris* | *-sunos5* ) | |
1527 if [ "x$CC" = x/usr/ucb/cc ]; then | |
1528 ## /usr/ucb/cc doesn't work; | |
1529 ## we should find some other compiler that does work. | |
1530 unset CC | |
1531 fi | |
1532 ;; | |
1533 *) ;; | |
1534 esac | |
1535 ;; | |
1536 sparc-*-nextstep* ) | |
1537 machine=sparc opsys=nextstep | |
1538 ;; | |
1539 | |
1540 ## Tadpole 68k | |
1541 m68*-tadpole-sysv* ) | |
1542 machine=tad68k opsys=usg5-3 | |
1543 ;; | |
1544 | |
1545 ## Tahoe machines | |
1546 tahoe-tahoe-bsd4.2* ) | |
1547 machine=tahoe opsys=bsd4-2 | |
1548 ;; | |
1549 tahoe-tahoe-bsd4.3* ) | |
1550 machine=tahoe opsys=bsd4-3 | |
1551 ;; | |
1552 | |
1553 ## Tandem Integrity S2 | |
1554 mips-tandem-sysv* ) | |
1555 machine=tandem-s2 opsys=usg5-3 | |
1556 ;; | |
1557 | |
1558 ## Tektronix XD88 | |
1559 m88k-tektronix-sysv3* ) | |
1560 machine=tekxd88 opsys=usg5-3 | |
1561 ;; | |
1562 | |
1563 ## Tektronix 16000 box (6130?) | |
1564 ns16k-tektronix-bsd* ) | |
1565 machine=ns16000 opsys=bsd4-2 | |
1566 ;; | |
1567 ## Tektronix 4300 | |
1568 ## src/m/tek4300.h hints that this is a m68k machine. | |
1569 m68*-tektronix-bsd* ) | |
1570 machine=tek4300 opsys=bsd4-3 | |
1571 ;; | |
1572 | |
1573 ## Titan P2 or P3 | |
1574 ## We seem to have lost the machine-description file titan.h! | |
1575 titan-titan-sysv* ) | |
1576 machine=titan opsys=usg5-3 | |
1577 ;; | |
1578 | |
1579 ## Ustation E30 (SS5E) | |
1580 m68*-unisys-uniplus* ) | |
1581 machine=ustation opsystem=unipl5-2 | |
1582 ;; | |
1583 | |
1584 ## Vaxen. | |
1585 vax-dec-* ) | |
1586 machine=vax | |
1587 case "${canonical}" in | |
1588 *-bsd4.1* ) opsys=bsd4-1 ;; | |
1589 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
1590 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
1591 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
1592 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
1593 *-vms* ) opsys=vms ;; | |
1594 * ) unported=yes | |
1595 esac | |
1596 ;; | |
1597 | |
1598 ## Whitechapel MG1 | |
1599 ns16k-whitechapel-* ) | |
1600 machine=mg1 | |
1601 ## We don't know what sort of OS runs on these; we'll let the | |
1602 ## operating system guessing code below try. | |
1603 ;; | |
1604 | |
1605 ## Wicat | |
1606 m68*-wicat-sysv* ) | |
1607 machine=wicat opsys=usg5-2 | |
1608 ;; | |
1609 | |
1610 ## Intel 386 machines where we don't care about the manufacturer | |
1611 i[3456]86-*-* ) | |
1612 machine=intel386 | |
1613 case "${canonical}" in | |
29654 | 1614 *-lynxos* ) opsys=lynxos ;; |
25897 | 1615 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
1616 *-isc2.2* ) opsys=isc2-2 ;; | |
1617 *-isc4.0* ) opsys=isc4-0 ;; | |
1618 *-isc4.* ) opsys=isc4-1 | |
1619 GCC_TEST_OPTIONS=-posix | |
1620 NON_GCC_TEST_OPTIONS=-Xp | |
1621 ;; | |
1622 *-isc* ) opsys=isc3-0 ;; | |
1623 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
1624 *-esix* ) opsys=esix ;; | |
1625 *-xenix* ) opsys=xenix ;; | |
1626 *-linux-gnu* ) opsys=gnu-linux ;; | |
1627 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
1628 *-sco3.2v5* ) opsys=sco5 | |
1629 NON_GNU_CPP=/lib/cpp | |
1630 # Prevent -belf from being passed to $CPP. | |
1631 # /lib/cpp does not accept it. | |
1632 OVERRIDE_CPPFLAGS=" " | |
1633 ;; | |
1634 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
1635 *-386bsd* ) opsys=386bsd ;; | |
1636 *-freebsd* ) opsys=freebsd ;; | |
1637 *-nextstep* ) opsys=nextstep ;; | |
1638 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
1639 esac | |
1640 ;; | |
1641 | |
1642 ## m68k Linux-based GNU system | |
1643 m68k-*-linux-gnu* ) | |
1644 machine=m68k opsys=gnu-linux | |
1645 ;; | |
1646 | |
1647 ## Mips Linux-based GNU system | |
1648 mips-*-linux-gnu* ) | |
1649 machine=mips opsys=gnu-linux | |
1650 ;; | |
1651 | |
1652 ## UXP/DS | |
1653 sparc-fujitsu-sysv4* ) | |
1654 machine=sparc opsys=uxpds | |
1655 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1656 RANLIB="ar -ts" | |
1657 ;; | |
1658 | |
1659 ## UXP/V | |
1660 f301-fujitsu-uxpv4.1) | |
1661 machine=f301 opsys=uxpv | |
1662 ;; | |
1663 | |
1664 * ) | |
1665 unported=yes | |
1666 ;; | |
1667 esac | |
1668 | |
1669 ### If the code above didn't choose an operating system, just choose | |
1670 ### an operating system based on the configuration name. You really | |
1671 ### only want to use this when you have no idea what the right | |
1672 ### operating system is; if you know what operating systems a machine | |
1673 ### runs, it's cleaner to make it explicit in the case statement | |
1674 ### above. | |
1675 if test x"${opsys}" = x; then | |
1676 case "${canonical}" in | |
1677 *-gnu* ) opsys=gnu ;; | |
1678 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
1679 *-bsd4.2 ) opsys=bsd4-2 ;; | |
1680 *-bsd4.3 ) opsys=bsd4-3 ;; | |
1681 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
1682 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
1683 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
1684 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
1685 *-sysv4.2uw* ) opsys=unixware ;; | |
1686 *-sysv4.1* | *-sysvr4.1* ) | |
1687 NON_GNU_CPP=/usr/lib/cpp | |
1688 opsys=usg5-4 ;; | |
1689 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
1690 if [ x$NON_GNU_CPP = x ]; then | |
1691 if [ -f /usr/ccs/lib/cpp ]; then | |
1692 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1693 else | |
1694 NON_GNU_CPP=/lib/cpp | |
1695 fi | |
1696 fi | |
1697 opsys=usg5-4-2 ;; | |
1698 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
1699 * ) | |
1700 unported=yes | |
1701 ;; | |
1702 esac | |
1703 fi | |
1704 | |
1705 | |
1706 if test $unported = yes; then | |
1707 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems. | |
1708 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; } | |
1709 fi | |
1710 | |
1711 machfile="m/${machine}.h" | |
1712 opsysfile="s/${opsys}.h" | |
1713 | |
1714 | |
1715 #### Choose a compiler. | |
1716 test -n "$CC" && cc_specified=yes | |
1717 | |
1718 # Save the value of CFLAGS that the user specified. | |
1719 SPECIFIED_CFLAGS="$CFLAGS" | |
1720 | |
1721 case ${with_gcc} in | |
1722 "yes" ) CC="gcc" GCC=yes ;; | |
1723 "no" ) : ${CC=cc} ;; | |
1724 * ) # Extract the first word of "gcc", so it can be a program name with args. | |
1725 set dummy gcc; ac_word=$2 | |
1726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30069 | 1727 echo "configure:1728: checking for $ac_word" >&5 |
25897 | 1728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1729 echo $ac_n "(cached) $ac_c" 1>&6 | |
1730 else | |
1731 if test -n "$CC"; then | |
1732 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1733 else | |
27205 | 1734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1735 ac_dummy="$PATH" | |
1736 for ac_dir in $ac_dummy; do | |
25897 | 1737 test -z "$ac_dir" && ac_dir=. |
1738 if test -f $ac_dir/$ac_word; then | |
1739 ac_cv_prog_CC="gcc" | |
1740 break | |
1741 fi | |
1742 done | |
1743 IFS="$ac_save_ifs" | |
1744 fi | |
1745 fi | |
1746 CC="$ac_cv_prog_CC" | |
1747 if test -n "$CC"; then | |
1748 echo "$ac_t""$CC" 1>&6 | |
1749 else | |
1750 echo "$ac_t""no" 1>&6 | |
1751 fi | |
1752 | |
1753 if test -z "$CC"; then | |
1754 # Extract the first word of "cc", so it can be a program name with args. | |
1755 set dummy cc; ac_word=$2 | |
1756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30069 | 1757 echo "configure:1758: checking for $ac_word" >&5 |
25897 | 1758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1759 echo $ac_n "(cached) $ac_c" 1>&6 | |
1760 else | |
1761 if test -n "$CC"; then | |
1762 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1763 else | |
27205 | 1764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
25897 | 1765 ac_prog_rejected=no |
27205 | 1766 ac_dummy="$PATH" |
1767 for ac_dir in $ac_dummy; do | |
25897 | 1768 test -z "$ac_dir" && ac_dir=. |
1769 if test -f $ac_dir/$ac_word; then | |
1770 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1771 ac_prog_rejected=yes | |
1772 continue | |
1773 fi | |
1774 ac_cv_prog_CC="cc" | |
1775 break | |
1776 fi | |
1777 done | |
1778 IFS="$ac_save_ifs" | |
1779 if test $ac_prog_rejected = yes; then | |
1780 # We found a bogon in the path, so make sure we never use it. | |
1781 set dummy $ac_cv_prog_CC | |
1782 shift | |
1783 if test $# -gt 0; then | |
1784 # We chose a different compiler from the bogus one. | |
1785 # However, it has the same basename, so the bogon will be chosen | |
1786 # first if we set CC to just the basename; use the full file name. | |
1787 shift | |
1788 set dummy "$ac_dir/$ac_word" "$@" | |
1789 shift | |
1790 ac_cv_prog_CC="$@" | |
1791 fi | |
1792 fi | |
1793 fi | |
1794 fi | |
1795 CC="$ac_cv_prog_CC" | |
1796 if test -n "$CC"; then | |
1797 echo "$ac_t""$CC" 1>&6 | |
1798 else | |
1799 echo "$ac_t""no" 1>&6 | |
1800 fi | |
1801 | |
27205 | 1802 if test -z "$CC"; then |
1803 case "`uname -s`" in | |
1804 *win32* | *WIN32*) | |
1805 # Extract the first word of "cl", so it can be a program name with args. | |
1806 set dummy cl; ac_word=$2 | |
1807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30069 | 1808 echo "configure:1809: checking for $ac_word" >&5 |
27205 | 1809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1810 echo $ac_n "(cached) $ac_c" 1>&6 | |
1811 else | |
1812 if test -n "$CC"; then | |
1813 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1814 else | |
1815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1816 ac_dummy="$PATH" | |
1817 for ac_dir in $ac_dummy; do | |
1818 test -z "$ac_dir" && ac_dir=. | |
1819 if test -f $ac_dir/$ac_word; then | |
1820 ac_cv_prog_CC="cl" | |
1821 break | |
1822 fi | |
1823 done | |
1824 IFS="$ac_save_ifs" | |
1825 fi | |
1826 fi | |
1827 CC="$ac_cv_prog_CC" | |
1828 if test -n "$CC"; then | |
1829 echo "$ac_t""$CC" 1>&6 | |
1830 else | |
1831 echo "$ac_t""no" 1>&6 | |
1832 fi | |
1833 ;; | |
1834 esac | |
1835 fi | |
25897 | 1836 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1837 fi | |
1838 | |
1839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
30069 | 1840 echo "configure:1841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
25897 | 1841 |
1842 ac_ext=c | |
1843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1844 ac_cpp='$CPP $CPPFLAGS' | |
1845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
27205 | 1846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
25897 | 1847 cross_compiling=$ac_cv_prog_cc_cross |
1848 | |
27205 | 1849 cat > conftest.$ac_ext << EOF |
1850 | |
30069 | 1851 #line 1852 "configure" |
25897 | 1852 #include "confdefs.h" |
27205 | 1853 |
25897 | 1854 main(){return(0);} |
1855 EOF | |
30069 | 1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 1857 ac_cv_prog_cc_works=yes |
1858 # If we can't run a trivial program, we are probably using a cross compiler. | |
1859 if (./conftest; exit) 2>/dev/null; then | |
1860 ac_cv_prog_cc_cross=no | |
1861 else | |
1862 ac_cv_prog_cc_cross=yes | |
1863 fi | |
1864 else | |
1865 echo "configure: failed program was:" >&5 | |
1866 cat conftest.$ac_ext >&5 | |
1867 ac_cv_prog_cc_works=no | |
1868 fi | |
1869 rm -fr conftest* | |
27205 | 1870 ac_ext=c |
1871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1872 ac_cpp='$CPP $CPPFLAGS' | |
1873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1875 cross_compiling=$ac_cv_prog_cc_cross | |
25897 | 1876 |
1877 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1878 if test $ac_cv_prog_cc_works = no; then | |
1879 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1880 fi | |
1881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
30069 | 1882 echo "configure:1883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
25897 | 1883 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1884 cross_compiling=$ac_cv_prog_cc_cross | |
1885 | |
1886 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
30069 | 1887 echo "configure:1888: checking whether we are using GNU C" >&5 |
25897 | 1888 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1889 echo $ac_n "(cached) $ac_c" 1>&6 | |
1890 else | |
1891 cat > conftest.c <<EOF | |
1892 #ifdef __GNUC__ | |
1893 yes; | |
1894 #endif | |
1895 EOF | |
30069 | 1896 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
25897 | 1897 ac_cv_prog_gcc=yes |
1898 else | |
1899 ac_cv_prog_gcc=no | |
1900 fi | |
1901 fi | |
1902 | |
1903 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1904 | |
1905 if test $ac_cv_prog_gcc = yes; then | |
1906 GCC=yes | |
27205 | 1907 else |
1908 GCC= | |
1909 fi | |
1910 | |
1911 ac_test_CFLAGS="${CFLAGS+set}" | |
1912 ac_save_CFLAGS="$CFLAGS" | |
1913 CFLAGS= | |
1914 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
30069 | 1915 echo "configure:1916: checking whether ${CC-cc} accepts -g" >&5 |
25897 | 1916 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1917 echo $ac_n "(cached) $ac_c" 1>&6 | |
1918 else | |
1919 echo 'void f(){}' > conftest.c | |
1920 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1921 ac_cv_prog_cc_g=yes | |
1922 else | |
1923 ac_cv_prog_cc_g=no | |
1924 fi | |
1925 rm -f conftest* | |
1926 | |
1927 fi | |
1928 | |
1929 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
27205 | 1930 if test "$ac_test_CFLAGS" = set; then |
1931 CFLAGS="$ac_save_CFLAGS" | |
1932 elif test $ac_cv_prog_cc_g = yes; then | |
1933 if test "$GCC" = yes; then | |
25897 | 1934 CFLAGS="-g -O2" |
1935 else | |
27205 | 1936 CFLAGS="-g" |
25897 | 1937 fi |
1938 else | |
27205 | 1939 if test "$GCC" = yes; then |
1940 CFLAGS="-O2" | |
1941 else | |
1942 CFLAGS= | |
1943 fi | |
25897 | 1944 fi |
1945 | |
1946 esac | |
1947 | |
1948 # On Suns, sometimes $CPP names a directory. | |
1949 if test -n "$CPP" && test -d "$CPP"; then | |
1950 CPP= | |
1951 fi | |
1952 | |
1953 #### Some systems specify a CPP to use unless we are using GCC. | |
1954 #### Now that we know whether we are using GCC, we can decide whether | |
1955 #### to use that one. | |
1956 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
1957 then | |
1958 CPP="$NON_GNU_CPP" | |
1959 fi | |
1960 | |
1961 #### Some systems specify a CC to use unless we are using GCC. | |
1962 #### Now that we know whether we are using GCC, we can decide whether | |
1963 #### to use that one. | |
1964 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
1965 test x$cc_specified != xyes | |
1966 then | |
1967 CC="$NON_GNU_CC" | |
1968 fi | |
1969 | |
1970 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
1971 then | |
1972 CC="$CC $GCC_TEST_OPTIONS" | |
1973 fi | |
1974 | |
1975 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
1976 then | |
1977 CC="$CC $NON_GCC_TEST_OPTIONS" | |
1978 fi | |
1979 | |
1980 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
1981 then | |
1982 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
1983 fi | |
1984 | |
1985 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
1986 then | |
1987 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
1988 fi | |
1989 | |
1990 #### Some other nice autoconf tests. If you add a test here which | |
1991 #### should make an entry in src/config.h, don't forget to add an | |
1992 #### #undef clause to src/config.h.in for autoconf to modify. | |
1993 | |
1994 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
30069 | 1995 echo "configure:1996: checking whether ln -s works" >&5 |
25897 | 1996 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1997 echo $ac_n "(cached) $ac_c" 1>&6 | |
1998 else | |
1999 rm -f conftestdata | |
2000 if ln -s X conftestdata 2>/dev/null | |
2001 then | |
2002 rm -f conftestdata | |
2003 ac_cv_prog_LN_S="ln -s" | |
2004 else | |
2005 ac_cv_prog_LN_S=ln | |
2006 fi | |
2007 fi | |
2008 LN_S="$ac_cv_prog_LN_S" | |
2009 if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
2010 echo "$ac_t""yes" 1>&6 | |
2011 else | |
2012 echo "$ac_t""no" 1>&6 | |
2013 fi | |
2014 | |
2015 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
30069 | 2016 echo "configure:2017: checking how to run the C preprocessor" >&5 |
25897 | 2017 # On Suns, sometimes $CPP names a directory. |
2018 if test -n "$CPP" && test -d "$CPP"; then | |
2019 CPP= | |
2020 fi | |
2021 if test -z "$CPP"; then | |
2022 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2023 echo $ac_n "(cached) $ac_c" 1>&6 | |
2024 else | |
2025 # This must be in double quotes, not single quotes, because CPP may get | |
2026 # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2027 CPP="${CC-cc} -E" | |
2028 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2029 # not just through cpp. | |
2030 cat > conftest.$ac_ext <<EOF | |
30069 | 2031 #line 2032 "configure" |
25897 | 2032 #include "confdefs.h" |
2033 #include <assert.h> | |
2034 Syntax Error | |
2035 EOF | |
2036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 2037 { (eval echo configure:2038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2039 if test -z "$ac_err"; then |
2040 : | |
2041 else | |
2042 echo "$ac_err" >&5 | |
2043 echo "configure: failed program was:" >&5 | |
2044 cat conftest.$ac_ext >&5 | |
2045 rm -rf conftest* | |
2046 CPP="${CC-cc} -E -traditional-cpp" | |
2047 cat > conftest.$ac_ext <<EOF | |
30069 | 2048 #line 2049 "configure" |
25897 | 2049 #include "confdefs.h" |
2050 #include <assert.h> | |
2051 Syntax Error | |
2052 EOF | |
2053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 2054 { (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2056 if test -z "$ac_err"; then | |
2057 : | |
2058 else | |
2059 echo "$ac_err" >&5 | |
2060 echo "configure: failed program was:" >&5 | |
2061 cat conftest.$ac_ext >&5 | |
2062 rm -rf conftest* | |
2063 CPP="${CC-cc} -nologo -E" | |
2064 cat > conftest.$ac_ext <<EOF | |
30069 | 2065 #line 2066 "configure" |
27205 | 2066 #include "confdefs.h" |
2067 #include <assert.h> | |
2068 Syntax Error | |
2069 EOF | |
2070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 2071 { (eval echo configure:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2073 if test -z "$ac_err"; then |
2074 : | |
2075 else | |
2076 echo "$ac_err" >&5 | |
2077 echo "configure: failed program was:" >&5 | |
2078 cat conftest.$ac_ext >&5 | |
2079 rm -rf conftest* | |
2080 CPP=/lib/cpp | |
2081 fi | |
2082 rm -f conftest* | |
2083 fi | |
2084 rm -f conftest* | |
27205 | 2085 fi |
2086 rm -f conftest* | |
25897 | 2087 ac_cv_prog_CPP="$CPP" |
2088 fi | |
2089 CPP="$ac_cv_prog_CPP" | |
2090 else | |
2091 ac_cv_prog_CPP="$CPP" | |
2092 fi | |
2093 echo "$ac_t""$CPP" 1>&6 | |
2094 | |
2095 # Find a good install program. We prefer a C program (faster), | |
2096 # so one script is as good as another. But avoid the broken or | |
2097 # incompatible versions: | |
2098 # SysV /etc/install, /usr/sbin/install | |
2099 # SunOS /usr/etc/install | |
2100 # IRIX /sbin/install | |
2101 # AIX /bin/install | |
27205 | 2102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
25897 | 2103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2105 # ./install, which can be erroneously created by make from ./install.sh. | |
2106 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
30069 | 2107 echo "configure:2108: checking for a BSD compatible install" >&5 |
25897 | 2108 if test -z "$INSTALL"; then |
2109 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
2110 echo $ac_n "(cached) $ac_c" 1>&6 | |
2111 else | |
27205 | 2112 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
25897 | 2113 for ac_dir in $PATH; do |
2114 # Account for people who put trailing slashes in PATH elements. | |
2115 case "$ac_dir/" in | |
2116 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
2117 *) | |
2118 # OSF1 and SCO ODT 3.0 have their own names for install. | |
27205 | 2119 # Don't use installbsd from OSF since it installs stuff as root |
2120 # by default. | |
2121 for ac_prog in ginstall scoinst install; do | |
25897 | 2122 if test -f $ac_dir/$ac_prog; then |
2123 if test $ac_prog = install && | |
2124 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
2125 # AIX install. It has an incompatible calling convention. | |
2126 : | |
2127 else | |
2128 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2129 break 2 | |
2130 fi | |
2131 fi | |
2132 done | |
2133 ;; | |
2134 esac | |
2135 done | |
2136 IFS="$ac_save_IFS" | |
2137 | |
2138 fi | |
2139 if test "${ac_cv_path_install+set}" = set; then | |
2140 INSTALL="$ac_cv_path_install" | |
2141 else | |
2142 # As a last resort, use the slow shell script. We don't cache a | |
2143 # path for INSTALL within a source directory, because that will | |
2144 # break other packages using the cache if that directory is | |
2145 # removed, or if the path is relative. | |
2146 INSTALL="$ac_install_sh" | |
2147 fi | |
2148 fi | |
2149 echo "$ac_t""$INSTALL" 1>&6 | |
2150 | |
2151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2152 # It thinks the first close brace ends the variable substitution. | |
2153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2154 | |
27205 | 2155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
2156 | |
25897 | 2157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2158 | |
2159 for ac_prog in 'bison -y' byacc | |
2160 do | |
2161 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2162 set dummy $ac_prog; ac_word=$2 | |
2163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30069 | 2164 echo "configure:2165: checking for $ac_word" >&5 |
25897 | 2165 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
2166 echo $ac_n "(cached) $ac_c" 1>&6 | |
2167 else | |
2168 if test -n "$YACC"; then | |
2169 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
2170 else | |
27205 | 2171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2172 ac_dummy="$PATH" | |
2173 for ac_dir in $ac_dummy; do | |
25897 | 2174 test -z "$ac_dir" && ac_dir=. |
2175 if test -f $ac_dir/$ac_word; then | |
2176 ac_cv_prog_YACC="$ac_prog" | |
2177 break | |
2178 fi | |
2179 done | |
2180 IFS="$ac_save_ifs" | |
2181 fi | |
2182 fi | |
2183 YACC="$ac_cv_prog_YACC" | |
2184 if test -n "$YACC"; then | |
2185 echo "$ac_t""$YACC" 1>&6 | |
2186 else | |
2187 echo "$ac_t""no" 1>&6 | |
2188 fi | |
2189 | |
2190 test -n "$YACC" && break | |
2191 done | |
2192 test -n "$YACC" || YACC="yacc" | |
2193 | |
28060 | 2194 if test "x$RANLIB" = x; then |
2195 # Extract the first word of "ranlib", so it can be a program name with args. | |
2196 set dummy ranlib; ac_word=$2 | |
2197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30069 | 2198 echo "configure:2199: checking for $ac_word" >&5 |
28060 | 2199 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2200 echo $ac_n "(cached) $ac_c" 1>&6 | |
2201 else | |
2202 if test -n "$RANLIB"; then | |
2203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2204 else | |
2205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2206 ac_dummy="$PATH" | |
2207 for ac_dir in $ac_dummy; do | |
2208 test -z "$ac_dir" && ac_dir=. | |
2209 if test -f $ac_dir/$ac_word; then | |
2210 ac_cv_prog_RANLIB="ranlib" | |
2211 break | |
2212 fi | |
2213 done | |
2214 IFS="$ac_save_ifs" | |
2215 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2216 fi | |
2217 fi | |
2218 RANLIB="$ac_cv_prog_RANLIB" | |
2219 if test -n "$RANLIB"; then | |
2220 echo "$ac_t""$RANLIB" 1>&6 | |
2221 else | |
2222 echo "$ac_t""no" 1>&6 | |
2223 fi | |
2224 | |
2225 fi | |
25897 | 2226 |
2227 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | |
30069 | 2228 echo "configure:2229: checking for AIX" >&5 |
25897 | 2229 cat > conftest.$ac_ext <<EOF |
30069 | 2230 #line 2231 "configure" |
25897 | 2231 #include "confdefs.h" |
2232 #ifdef _AIX | |
2233 yes | |
2234 #endif | |
2235 | |
2236 EOF | |
2237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2238 egrep "yes" >/dev/null 2>&1; then | |
2239 rm -rf conftest* | |
2240 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | |
2241 #define _ALL_SOURCE 1 | |
2242 EOF | |
2243 | |
2244 else | |
2245 rm -rf conftest* | |
2246 echo "$ac_t""no" 1>&6 | |
2247 fi | |
2248 rm -f conftest* | |
2249 | |
2250 | |
2251 | |
2252 # Sound support for GNU/Linux and the free BSDs. | |
2253 for ac_hdr in machine/soundcard.h sys/soundcard.h | |
2254 do | |
2255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
30069 | 2257 echo "configure:2258: checking for $ac_hdr" >&5 |
25897 | 2258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2259 echo $ac_n "(cached) $ac_c" 1>&6 | |
2260 else | |
2261 cat > conftest.$ac_ext <<EOF | |
30069 | 2262 #line 2263 "configure" |
25897 | 2263 #include "confdefs.h" |
2264 #include <$ac_hdr> | |
2265 EOF | |
2266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 2267 { (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2269 if test -z "$ac_err"; then |
2270 rm -rf conftest* | |
2271 eval "ac_cv_header_$ac_safe=yes" | |
2272 else | |
2273 echo "$ac_err" >&5 | |
2274 echo "configure: failed program was:" >&5 | |
2275 cat conftest.$ac_ext >&5 | |
2276 rm -rf conftest* | |
2277 eval "ac_cv_header_$ac_safe=no" | |
2278 fi | |
2279 rm -f conftest* | |
2280 fi | |
2281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2282 echo "$ac_t""yes" 1>&6 | |
2283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2284 cat >> confdefs.h <<EOF | |
2285 #define $ac_tr_hdr 1 | |
2286 EOF | |
2287 | |
2288 else | |
2289 echo "$ac_t""no" 1>&6 | |
2290 fi | |
2291 done | |
2292 | |
2293 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2294 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2295 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
29906 | 2296 termcap.h stdio_ext.h fcntl.h term.h |
25897 | 2297 do |
2298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
30069 | 2300 echo "configure:2301: checking for $ac_hdr" >&5 |
25897 | 2301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2302 echo $ac_n "(cached) $ac_c" 1>&6 | |
2303 else | |
2304 cat > conftest.$ac_ext <<EOF | |
30069 | 2305 #line 2306 "configure" |
25897 | 2306 #include "confdefs.h" |
2307 #include <$ac_hdr> | |
2308 EOF | |
2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2312 if test -z "$ac_err"; then |
2313 rm -rf conftest* | |
2314 eval "ac_cv_header_$ac_safe=yes" | |
2315 else | |
2316 echo "$ac_err" >&5 | |
2317 echo "configure: failed program was:" >&5 | |
2318 cat conftest.$ac_ext >&5 | |
2319 rm -rf conftest* | |
2320 eval "ac_cv_header_$ac_safe=no" | |
2321 fi | |
2322 rm -f conftest* | |
2323 fi | |
2324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2325 echo "$ac_t""yes" 1>&6 | |
2326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2327 cat >> confdefs.h <<EOF | |
2328 #define $ac_tr_hdr 1 | |
2329 EOF | |
2330 | |
2331 else | |
2332 echo "$ac_t""no" 1>&6 | |
2333 fi | |
2334 done | |
2335 | |
2336 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
30069 | 2337 echo "configure:2338: checking for ANSI C header files" >&5 |
25897 | 2338 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2339 echo $ac_n "(cached) $ac_c" 1>&6 | |
2340 else | |
2341 cat > conftest.$ac_ext <<EOF | |
30069 | 2342 #line 2343 "configure" |
25897 | 2343 #include "confdefs.h" |
2344 #include <stdlib.h> | |
2345 #include <stdarg.h> | |
2346 #include <string.h> | |
2347 #include <float.h> | |
2348 EOF | |
2349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 2350 { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2352 if test -z "$ac_err"; then |
2353 rm -rf conftest* | |
2354 ac_cv_header_stdc=yes | |
2355 else | |
2356 echo "$ac_err" >&5 | |
2357 echo "configure: failed program was:" >&5 | |
2358 cat conftest.$ac_ext >&5 | |
2359 rm -rf conftest* | |
2360 ac_cv_header_stdc=no | |
2361 fi | |
2362 rm -f conftest* | |
2363 | |
2364 if test $ac_cv_header_stdc = yes; then | |
2365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2366 cat > conftest.$ac_ext <<EOF | |
30069 | 2367 #line 2368 "configure" |
25897 | 2368 #include "confdefs.h" |
2369 #include <string.h> | |
2370 EOF | |
2371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2372 egrep "memchr" >/dev/null 2>&1; then | |
2373 : | |
2374 else | |
2375 rm -rf conftest* | |
2376 ac_cv_header_stdc=no | |
2377 fi | |
2378 rm -f conftest* | |
2379 | |
2380 fi | |
2381 | |
2382 if test $ac_cv_header_stdc = yes; then | |
2383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2384 cat > conftest.$ac_ext <<EOF | |
30069 | 2385 #line 2386 "configure" |
25897 | 2386 #include "confdefs.h" |
2387 #include <stdlib.h> | |
2388 EOF | |
2389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2390 egrep "free" >/dev/null 2>&1; then | |
2391 : | |
2392 else | |
2393 rm -rf conftest* | |
2394 ac_cv_header_stdc=no | |
2395 fi | |
2396 rm -f conftest* | |
2397 | |
2398 fi | |
2399 | |
2400 if test $ac_cv_header_stdc = yes; then | |
2401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2402 if test "$cross_compiling" = yes; then | |
2403 : | |
2404 else | |
2405 cat > conftest.$ac_ext <<EOF | |
30069 | 2406 #line 2407 "configure" |
25897 | 2407 #include "confdefs.h" |
2408 #include <ctype.h> | |
2409 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2410 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2412 int main () { int i; for (i = 0; i < 256; i++) | |
2413 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2414 exit (0); } | |
2415 | |
2416 EOF | |
30069 | 2417 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 2418 then |
2419 : | |
2420 else | |
2421 echo "configure: failed program was:" >&5 | |
2422 cat conftest.$ac_ext >&5 | |
2423 rm -fr conftest* | |
2424 ac_cv_header_stdc=no | |
2425 fi | |
2426 rm -fr conftest* | |
2427 fi | |
2428 | |
2429 fi | |
2430 fi | |
2431 | |
2432 echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2433 if test $ac_cv_header_stdc = yes; then | |
2434 cat >> confdefs.h <<\EOF | |
2435 #define STDC_HEADERS 1 | |
2436 EOF | |
2437 | |
2438 fi | |
2439 | |
2440 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
30069 | 2441 echo "configure:2442: checking whether time.h and sys/time.h may both be included" >&5 |
25897 | 2442 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2443 echo $ac_n "(cached) $ac_c" 1>&6 | |
2444 else | |
2445 cat > conftest.$ac_ext <<EOF | |
30069 | 2446 #line 2447 "configure" |
25897 | 2447 #include "confdefs.h" |
2448 #include <sys/types.h> | |
2449 #include <sys/time.h> | |
2450 #include <time.h> | |
2451 int main() { | |
2452 struct tm *tp; | |
2453 ; return 0; } | |
2454 EOF | |
30069 | 2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2456 rm -rf conftest* |
2457 ac_cv_header_time=yes | |
2458 else | |
2459 echo "configure: failed program was:" >&5 | |
2460 cat conftest.$ac_ext >&5 | |
2461 rm -rf conftest* | |
2462 ac_cv_header_time=no | |
2463 fi | |
2464 rm -f conftest* | |
2465 fi | |
2466 | |
2467 echo "$ac_t""$ac_cv_header_time" 1>&6 | |
2468 if test $ac_cv_header_time = yes; then | |
2469 cat >> confdefs.h <<\EOF | |
2470 #define TIME_WITH_SYS_TIME 1 | |
2471 EOF | |
2472 | |
2473 fi | |
2474 | |
2475 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
30069 | 2476 echo "configure:2477: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
25897 | 2477 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2478 echo $ac_n "(cached) $ac_c" 1>&6 | |
2479 else | |
2480 cat > conftest.$ac_ext <<EOF | |
30069 | 2481 #line 2482 "configure" |
25897 | 2482 #include "confdefs.h" |
2483 #include <sys/types.h> | |
2484 #include <signal.h> | |
2485 /* NetBSD declares sys_siglist in unistd.h. */ | |
2486 #ifdef HAVE_UNISTD_H | |
2487 #include <unistd.h> | |
2488 #endif | |
2489 int main() { | |
2490 char *msg = *(sys_siglist + 1); | |
2491 ; return 0; } | |
2492 EOF | |
30069 | 2493 if { (eval echo configure:2494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2494 rm -rf conftest* |
2495 ac_cv_decl_sys_siglist=yes | |
2496 else | |
2497 echo "configure: failed program was:" >&5 | |
2498 cat conftest.$ac_ext >&5 | |
2499 rm -rf conftest* | |
2500 ac_cv_decl_sys_siglist=no | |
2501 fi | |
2502 rm -f conftest* | |
2503 fi | |
2504 | |
2505 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2506 if test $ac_cv_decl_sys_siglist = yes; then | |
2507 cat >> confdefs.h <<\EOF | |
2508 #define SYS_SIGLIST_DECLARED 1 | |
2509 EOF | |
2510 | |
2511 fi | |
2512 | |
30069 | 2513 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
2514 echo "configure:2515: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
2515 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then | |
2516 echo $ac_n "(cached) $ac_c" 1>&6 | |
2517 else | |
2518 cat > conftest.$ac_ext <<EOF | |
2519 #line 2520 "configure" | |
2520 #include "confdefs.h" | |
2521 #include <sys/types.h> | |
2522 #include <sys/wait.h> | |
2523 #ifndef WEXITSTATUS | |
2524 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
2525 #endif | |
2526 #ifndef WIFEXITED | |
2527 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
2528 #endif | |
2529 int main() { | |
2530 int s; | |
2531 wait (&s); | |
2532 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
2533 ; return 0; } | |
2534 EOF | |
2535 if { (eval echo configure:2536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2536 rm -rf conftest* | |
2537 ac_cv_header_sys_wait_h=yes | |
2538 else | |
2539 echo "configure: failed program was:" >&5 | |
2540 cat conftest.$ac_ext >&5 | |
2541 rm -rf conftest* | |
2542 ac_cv_header_sys_wait_h=no | |
2543 fi | |
2544 rm -f conftest* | |
2545 fi | |
2546 | |
2547 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
2548 if test $ac_cv_header_sys_wait_h = yes; then | |
2549 cat >> confdefs.h <<\EOF | |
2550 #define HAVE_SYS_WAIT_H 1 | |
2551 EOF | |
2552 | |
2553 fi | |
2554 | |
25897 | 2555 |
2556 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | |
30069 | 2557 echo "configure:2558: checking for struct utimbuf" >&5 |
25897 | 2558 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then |
2559 echo $ac_n "(cached) $ac_c" 1>&6 | |
2560 else | |
2561 cat > conftest.$ac_ext <<EOF | |
30069 | 2562 #line 2563 "configure" |
25897 | 2563 #include "confdefs.h" |
2564 #ifdef TIME_WITH_SYS_TIME | |
2565 #include <sys/time.h> | |
2566 #include <time.h> | |
2567 #else | |
2568 #ifdef HAVE_SYS_TIME_H | |
2569 #include <sys/time.h> | |
2570 #else | |
2571 #include <time.h> | |
2572 #endif | |
2573 #endif | |
2574 #ifdef HAVE_UTIME_H | |
2575 #include <utime.h> | |
2576 #endif | |
2577 int main() { | |
2578 static struct utimbuf x; x.actime = x.modtime; | |
2579 ; return 0; } | |
2580 EOF | |
30069 | 2581 if { (eval echo configure:2582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2582 rm -rf conftest* |
2583 emacs_cv_struct_utimbuf=yes | |
2584 else | |
2585 echo "configure: failed program was:" >&5 | |
2586 cat conftest.$ac_ext >&5 | |
2587 rm -rf conftest* | |
2588 emacs_cv_struct_utimbuf=no | |
2589 fi | |
2590 rm -f conftest* | |
2591 fi | |
2592 | |
2593 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6 | |
2594 if test $emacs_cv_struct_utimbuf = yes; then | |
2595 cat >> confdefs.h <<\EOF | |
2596 #define HAVE_STRUCT_UTIMBUF 1 | |
2597 EOF | |
2598 | |
2599 fi | |
2600 | |
2601 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
30069 | 2602 echo "configure:2603: checking return type of signal handlers" >&5 |
25897 | 2603 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2604 echo $ac_n "(cached) $ac_c" 1>&6 | |
2605 else | |
2606 cat > conftest.$ac_ext <<EOF | |
30069 | 2607 #line 2608 "configure" |
25897 | 2608 #include "confdefs.h" |
2609 #include <sys/types.h> | |
2610 #include <signal.h> | |
2611 #ifdef signal | |
2612 #undef signal | |
2613 #endif | |
2614 #ifdef __cplusplus | |
2615 extern "C" void (*signal (int, void (*)(int)))(int); | |
2616 #else | |
2617 void (*signal ()) (); | |
2618 #endif | |
2619 | |
2620 int main() { | |
2621 int i; | |
2622 ; return 0; } | |
2623 EOF | |
30069 | 2624 if { (eval echo configure:2625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2625 rm -rf conftest* |
2626 ac_cv_type_signal=void | |
2627 else | |
2628 echo "configure: failed program was:" >&5 | |
2629 cat conftest.$ac_ext >&5 | |
2630 rm -rf conftest* | |
2631 ac_cv_type_signal=int | |
2632 fi | |
2633 rm -f conftest* | |
2634 fi | |
2635 | |
2636 echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
2637 cat >> confdefs.h <<EOF | |
2638 #define RETSIGTYPE $ac_cv_type_signal | |
2639 EOF | |
2640 | |
2641 | |
2642 | |
29254 | 2643 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 |
30069 | 2644 echo "configure:2645: checking for speed_t" >&5 |
29254 | 2645 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then |
2646 echo $ac_n "(cached) $ac_c" 1>&6 | |
2647 else | |
2648 cat > conftest.$ac_ext <<EOF | |
30069 | 2649 #line 2650 "configure" |
29254 | 2650 #include "confdefs.h" |
2651 #include <termios.h> | |
2652 int main() { | |
2653 speed_t x = 1; | |
2654 ; return 0; } | |
2655 EOF | |
30069 | 2656 if { (eval echo configure:2657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29254 | 2657 rm -rf conftest* |
2658 emacs_cv_speed_t=yes | |
2659 else | |
2660 echo "configure: failed program was:" >&5 | |
2661 cat conftest.$ac_ext >&5 | |
2662 fi | |
2663 rm -f conftest* | |
2664 fi | |
2665 | |
2666 echo "$ac_t""$emacs_cv_speed_t" 1>&6 | |
2667 if test $emacs_cv_speed_t = yes; then | |
2668 cat >> confdefs.h <<\EOF | |
2669 #define HAVE_SPEED_T 1 | |
2670 EOF | |
2671 | |
2672 fi | |
2673 | |
25897 | 2674 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
30069 | 2675 echo "configure:2676: checking for struct timeval" >&5 |
25897 | 2676 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then |
2677 echo $ac_n "(cached) $ac_c" 1>&6 | |
2678 else | |
2679 cat > conftest.$ac_ext <<EOF | |
30069 | 2680 #line 2681 "configure" |
25897 | 2681 #include "confdefs.h" |
2682 #ifdef TIME_WITH_SYS_TIME | |
2683 #include <sys/time.h> | |
2684 #include <time.h> | |
2685 #else | |
2686 #ifdef HAVE_SYS_TIME_H | |
2687 #include <sys/time.h> | |
2688 #else | |
2689 #include <time.h> | |
2690 #endif | |
2691 #endif | |
2692 int main() { | |
2693 static struct timeval x; x.tv_sec = x.tv_usec; | |
2694 ; return 0; } | |
2695 EOF | |
30069 | 2696 if { (eval echo configure:2697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2697 rm -rf conftest* |
2698 emacs_cv_struct_timeval=yes | |
2699 else | |
2700 echo "configure: failed program was:" >&5 | |
2701 cat conftest.$ac_ext >&5 | |
2702 rm -rf conftest* | |
2703 emacs_cv_struct_timeval=no | |
2704 fi | |
2705 rm -f conftest* | |
2706 fi | |
2707 | |
2708 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6 | |
2709 HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
2710 if test $emacs_cv_struct_timeval = yes; then | |
2711 cat >> confdefs.h <<\EOF | |
2712 #define HAVE_TIMEVAL 1 | |
2713 EOF | |
2714 | |
2715 fi | |
2716 | |
29388 | 2717 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 |
30069 | 2718 echo "configure:2719: checking for struct exception" >&5 |
29388 | 2719 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then |
2720 echo $ac_n "(cached) $ac_c" 1>&6 | |
2721 else | |
2722 cat > conftest.$ac_ext <<EOF | |
30069 | 2723 #line 2724 "configure" |
29388 | 2724 #include "confdefs.h" |
2725 #include <math.h> | |
2726 int main() { | |
2727 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | |
2728 ; return 0; } | |
2729 EOF | |
30069 | 2730 if { (eval echo configure:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 2731 rm -rf conftest* |
2732 emacs_cv_struct_exception=yes | |
2733 else | |
2734 echo "configure: failed program was:" >&5 | |
2735 cat conftest.$ac_ext >&5 | |
2736 rm -rf conftest* | |
2737 emacs_cv_struct_exception=no | |
2738 fi | |
2739 rm -f conftest* | |
2740 fi | |
2741 | |
2742 echo "$ac_t""$emacs_cv_struct_exception" 1>&6 | |
2743 HAVE_EXCEPTION=$emacs_cv_struct_exception | |
2744 if test $emacs_cv_struct_exception != yes; then | |
2745 cat >> confdefs.h <<\EOF | |
2746 #define NO_MATHERR 1 | |
2747 EOF | |
2748 | |
2749 fi | |
2750 | |
25897 | 2751 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
30069 | 2752 echo "configure:2753: checking whether struct tm is in sys/time.h or time.h" >&5 |
25897 | 2753 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2754 echo $ac_n "(cached) $ac_c" 1>&6 | |
2755 else | |
2756 cat > conftest.$ac_ext <<EOF | |
30069 | 2757 #line 2758 "configure" |
25897 | 2758 #include "confdefs.h" |
2759 #include <sys/types.h> | |
2760 #include <time.h> | |
2761 int main() { | |
2762 struct tm *tp; tp->tm_sec; | |
2763 ; return 0; } | |
2764 EOF | |
30069 | 2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2766 rm -rf conftest* |
2767 ac_cv_struct_tm=time.h | |
2768 else | |
2769 echo "configure: failed program was:" >&5 | |
2770 cat conftest.$ac_ext >&5 | |
2771 rm -rf conftest* | |
2772 ac_cv_struct_tm=sys/time.h | |
2773 fi | |
2774 rm -f conftest* | |
2775 fi | |
2776 | |
2777 echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
2778 if test $ac_cv_struct_tm = sys/time.h; then | |
2779 cat >> confdefs.h <<\EOF | |
2780 #define TM_IN_SYS_TIME 1 | |
2781 EOF | |
2782 | |
2783 fi | |
2784 | |
2785 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | |
30069 | 2786 echo "configure:2787: checking for tm_zone in struct tm" >&5 |
25897 | 2787 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
2788 echo $ac_n "(cached) $ac_c" 1>&6 | |
2789 else | |
2790 cat > conftest.$ac_ext <<EOF | |
30069 | 2791 #line 2792 "configure" |
25897 | 2792 #include "confdefs.h" |
2793 #include <sys/types.h> | |
2794 #include <$ac_cv_struct_tm> | |
2795 int main() { | |
2796 struct tm tm; tm.tm_zone; | |
2797 ; return 0; } | |
2798 EOF | |
30069 | 2799 if { (eval echo configure:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2800 rm -rf conftest* |
2801 ac_cv_struct_tm_zone=yes | |
2802 else | |
2803 echo "configure: failed program was:" >&5 | |
2804 cat conftest.$ac_ext >&5 | |
2805 rm -rf conftest* | |
2806 ac_cv_struct_tm_zone=no | |
2807 fi | |
2808 rm -f conftest* | |
2809 fi | |
2810 | |
2811 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | |
2812 if test "$ac_cv_struct_tm_zone" = yes; then | |
2813 cat >> confdefs.h <<\EOF | |
2814 #define HAVE_TM_ZONE 1 | |
2815 EOF | |
2816 | |
2817 else | |
2818 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | |
30069 | 2819 echo "configure:2820: checking for tzname" >&5 |
25897 | 2820 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
2821 echo $ac_n "(cached) $ac_c" 1>&6 | |
2822 else | |
2823 cat > conftest.$ac_ext <<EOF | |
30069 | 2824 #line 2825 "configure" |
25897 | 2825 #include "confdefs.h" |
2826 #include <time.h> | |
2827 #ifndef tzname /* For SGI. */ | |
2828 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
2829 #endif | |
2830 int main() { | |
2831 atoi(*tzname); | |
2832 ; return 0; } | |
2833 EOF | |
30069 | 2834 if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 2835 rm -rf conftest* |
2836 ac_cv_var_tzname=yes | |
2837 else | |
2838 echo "configure: failed program was:" >&5 | |
2839 cat conftest.$ac_ext >&5 | |
2840 rm -rf conftest* | |
2841 ac_cv_var_tzname=no | |
2842 fi | |
2843 rm -f conftest* | |
2844 fi | |
2845 | |
2846 echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
2847 if test $ac_cv_var_tzname = yes; then | |
2848 cat >> confdefs.h <<\EOF | |
2849 #define HAVE_TZNAME 1 | |
2850 EOF | |
2851 | |
2852 fi | |
2853 fi | |
2854 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2855 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
30069 | 2856 echo "configure:2857: checking for tm_gmtoff in struct tm" >&5 |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2857 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2858 echo $ac_n "(cached) $ac_c" 1>&6 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2859 else |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2860 cat > conftest.$ac_ext <<EOF |
30069 | 2861 #line 2862 "configure" |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2862 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2863 #include <time.h> |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2864 int main() { |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2865 struct tm t; t.tm_gmtoff = 0 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2866 ; return 0; } |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2867 EOF |
30069 | 2868 if { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2869 rm -rf conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2870 emacs_cv_tm_gmtoff=yes |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2871 else |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2872 echo "configure: failed program was:" >&5 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2873 cat conftest.$ac_ext >&5 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2874 rm -rf conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2875 emacs_cv_tm_gmtoff=no |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2876 fi |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2877 rm -f conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2878 fi |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2879 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2880 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2881 if test $emacs_cv_tm_gmtoff = yes; then |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2882 cat >> confdefs.h <<\EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2883 #define HAVE_TM_GMTOFF 1 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2884 EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2885 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2886 fi |
25897 | 2887 |
28060 | 2888 |
2889 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 | |
30069 | 2890 echo "configure:2891: checking for ${CC-cc} option to accept ANSI C" >&5 |
28060 | 2891 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then |
2892 echo $ac_n "(cached) $ac_c" 1>&6 | |
2893 else | |
2894 ac_cv_prog_cc_stdc=no | |
2895 ac_save_CC="$CC" | |
2896 # Don't try gcc -ansi; that turns off useful extensions and | |
2897 # breaks some systems' header files. | |
2898 # AIX -qlanglvl=ansi | |
2899 # Ultrix and OSF/1 -std1 | |
2900 # HP-UX 10.20 and later -Ae | |
2901 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2902 # SVR4 -Xc -D__EXTENSIONS__ | |
2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2904 do | |
2905 CC="$ac_save_CC $ac_arg" | |
2906 cat > conftest.$ac_ext <<EOF | |
30069 | 2907 #line 2908 "configure" |
28060 | 2908 #include "confdefs.h" |
2909 #include <stdarg.h> | |
2910 #include <stdio.h> | |
2911 #include <sys/types.h> | |
2912 #include <sys/stat.h> | |
2913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2914 struct buf { int x; }; | |
2915 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2916 static char *e (p, i) | |
2917 char **p; | |
2918 int i; | |
2919 { | |
2920 return p[i]; | |
2921 } | |
2922 static char *f (char * (*g) (char **, int), char **p, ...) | |
2923 { | |
2924 char *s; | |
2925 va_list v; | |
2926 va_start (v,p); | |
2927 s = g (p, va_arg (v,int)); | |
2928 va_end (v); | |
2929 return s; | |
2930 } | |
2931 int test (int i, double x); | |
2932 struct s1 {int (*f) (int a);}; | |
2933 struct s2 {int (*f) (double a);}; | |
2934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2935 int argc; | |
2936 char **argv; | |
2937 int main() { | |
2938 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2939 ; return 0; } | |
2940 EOF | |
30069 | 2941 if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28060 | 2942 rm -rf conftest* |
2943 ac_cv_prog_cc_stdc="$ac_arg"; break | |
2944 else | |
2945 echo "configure: failed program was:" >&5 | |
2946 cat conftest.$ac_ext >&5 | |
2947 fi | |
2948 rm -f conftest* | |
2949 done | |
2950 CC="$ac_save_CC" | |
2951 | |
2952 fi | |
2953 | |
2954 case "x$ac_cv_prog_cc_stdc" in | |
2955 x|xno) | |
2956 echo "$ac_t""none needed" 1>&6 ;; | |
2957 *) | |
2958 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 | |
2959 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2960 esac | |
2961 | |
2962 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 | |
30069 | 2963 echo "configure:2964: checking for function prototypes" >&5 |
28060 | 2964 if test "$ac_cv_prog_cc_stdc" != no; then |
2965 echo "$ac_t""yes" 1>&6 | |
2966 cat >> confdefs.h <<\EOF | |
2967 #define PROTOTYPES 1 | |
2968 EOF | |
2969 | |
2970 else | |
2971 echo "$ac_t""no" 1>&6 | |
2972 fi | |
2973 | |
2974 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | |
30069 | 2975 echo "configure:2976: checking for working volatile" >&5 |
28060 | 2976 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then |
2977 echo $ac_n "(cached) $ac_c" 1>&6 | |
2978 else | |
2979 cat > conftest.$ac_ext <<EOF | |
30069 | 2980 #line 2981 "configure" |
28060 | 2981 #include "confdefs.h" |
2982 | |
2983 int main() { | |
2984 | |
2985 volatile int x; | |
2986 int * volatile y; | |
2987 ; return 0; } | |
2988 EOF | |
30069 | 2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28060 | 2990 rm -rf conftest* |
2991 ac_cv_c_volatile=yes | |
2992 else | |
2993 echo "configure: failed program was:" >&5 | |
2994 cat conftest.$ac_ext >&5 | |
2995 rm -rf conftest* | |
2996 ac_cv_c_volatile=no | |
2997 fi | |
2998 rm -f conftest* | |
2999 fi | |
3000 | |
3001 echo "$ac_t""$ac_cv_c_volatile" 1>&6 | |
3002 if test $ac_cv_c_volatile = no; then | |
3003 cat >> confdefs.h <<\EOF | |
3004 #define volatile | |
3005 EOF | |
3006 | |
3007 fi | |
3008 | |
25897 | 3009 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
30069 | 3010 echo "configure:3011: checking for working const" >&5 |
25897 | 3011 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
3012 echo $ac_n "(cached) $ac_c" 1>&6 | |
3013 else | |
3014 cat > conftest.$ac_ext <<EOF | |
30069 | 3015 #line 3016 "configure" |
25897 | 3016 #include "confdefs.h" |
3017 | |
3018 int main() { | |
3019 | |
3020 /* Ultrix mips cc rejects this. */ | |
30069 | 3021 typedef int charset[2]; const charset x = {0,0}; |
25897 | 3022 /* SunOS 4.1.1 cc rejects this. */ |
3023 char const *const *ccp; | |
3024 char **p; | |
3025 /* NEC SVR4.0.2 mips cc rejects this. */ | |
3026 struct point {int x, y;}; | |
3027 static struct point const zero = {0,0}; | |
3028 /* AIX XL C 1.02.0.0 rejects this. | |
3029 It does not let you subtract one const X* pointer from another in an arm | |
3030 of an if-expression whose if-part is not a constant expression */ | |
3031 const char *g = "string"; | |
3032 ccp = &g + (g ? g-g : 0); | |
3033 /* HPUX 7.0 cc rejects these. */ | |
3034 ++ccp; | |
3035 p = (char**) ccp; | |
3036 ccp = (char const *const *) p; | |
3037 { /* SCO 3.2v4 cc rejects this. */ | |
3038 char *t; | |
3039 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3040 | |
3041 *t++ = 0; | |
3042 } | |
3043 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3044 int x[] = {25, 17}; | |
3045 const int *foo = &x[0]; | |
3046 ++foo; | |
3047 } | |
3048 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3049 typedef const int *iptr; | |
3050 iptr p = 0; | |
3051 ++p; | |
3052 } | |
3053 { /* AIX XL C 1.02.0.0 rejects this saying | |
3054 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3055 struct s { int j; const int *ap[3]; }; | |
3056 struct s *b; b->j = 5; | |
3057 } | |
3058 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3059 const int foo = 10; | |
3060 } | |
3061 | |
3062 ; return 0; } | |
3063 EOF | |
30069 | 3064 if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 3065 rm -rf conftest* |
3066 ac_cv_c_const=yes | |
3067 else | |
3068 echo "configure: failed program was:" >&5 | |
3069 cat conftest.$ac_ext >&5 | |
3070 rm -rf conftest* | |
3071 ac_cv_c_const=no | |
3072 fi | |
3073 rm -f conftest* | |
3074 fi | |
3075 | |
3076 echo "$ac_t""$ac_cv_c_const" 1>&6 | |
3077 if test $ac_cv_c_const = no; then | |
3078 cat >> confdefs.h <<\EOF | |
3079 #define const | |
3080 EOF | |
3081 | |
3082 fi | |
3083 | |
28060 | 3084 echo $ac_n "checking for void * support""... $ac_c" 1>&6 |
30069 | 3085 echo "configure:3086: checking for void * support" >&5 |
28060 | 3086 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then |
3087 echo $ac_n "(cached) $ac_c" 1>&6 | |
3088 else | |
3089 cat > conftest.$ac_ext <<EOF | |
30069 | 3090 #line 3091 "configure" |
28060 | 3091 #include "confdefs.h" |
3092 | |
3093 int main() { | |
3094 void * foo; | |
3095 ; return 0; } | |
3096 EOF | |
30069 | 3097 if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28060 | 3098 rm -rf conftest* |
3099 emacs_cv_void_star=yes | |
3100 else | |
3101 echo "configure: failed program was:" >&5 | |
3102 cat conftest.$ac_ext >&5 | |
3103 rm -rf conftest* | |
3104 emacs_cv_void_star=no | |
3105 fi | |
3106 rm -f conftest* | |
3107 fi | |
3108 | |
3109 echo "$ac_t""$emacs_cv_void_star" 1>&6 | |
3110 if test $emacs_cv_void_star = yes; then | |
3111 cat >> confdefs.h <<\EOF | |
3112 #define POINTER_TYPE void | |
3113 EOF | |
3114 | |
3115 else | |
3116 cat >> confdefs.h <<\EOF | |
3117 #define POINTER_TYPE char | |
3118 EOF | |
3119 | |
3120 fi | |
25897 | 3121 |
3122 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
30069 | 3123 echo "configure:3124: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
25897 | 3124 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
3125 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
3126 echo $ac_n "(cached) $ac_c" 1>&6 | |
3127 else | |
3128 cat > conftestmake <<\EOF | |
3129 all: | |
3130 @echo 'ac_maketemp="${MAKE}"' | |
3131 EOF | |
3132 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3133 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
3134 if test -n "$ac_maketemp"; then | |
3135 eval ac_cv_prog_make_${ac_make}_set=yes | |
3136 else | |
3137 eval ac_cv_prog_make_${ac_make}_set=no | |
3138 fi | |
3139 rm -f conftestmake | |
3140 fi | |
3141 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3142 echo "$ac_t""yes" 1>&6 | |
3143 SET_MAKE= | |
3144 else | |
3145 echo "$ac_t""no" 1>&6 | |
3146 SET_MAKE="MAKE=${MAKE-make}" | |
3147 fi | |
3148 | |
3149 | |
3150 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | |
30069 | 3151 echo "configure:3152: checking for long file names" >&5 |
25897 | 3152 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
3153 echo $ac_n "(cached) $ac_c" 1>&6 | |
3154 else | |
3155 ac_cv_sys_long_file_names=yes | |
3156 # Test for long file names in all the places we know might matter: | |
3157 # . the current directory, where building will happen | |
3158 # $prefix/lib where we will be installing things | |
3159 # $exec_prefix/lib likewise | |
3160 # eval it to expand exec_prefix. | |
3161 # $TMPDIR if set, where it might want to write temporary files | |
3162 # if $TMPDIR is not set: | |
3163 # /tmp where it might want to write temporary files | |
3164 # /var/tmp likewise | |
3165 # /usr/tmp likewise | |
3166 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
3167 ac_tmpdirs="$TMPDIR" | |
3168 else | |
3169 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
3170 fi | |
3171 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
3172 test -d $ac_dir || continue | |
3173 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
3174 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | |
3175 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | |
3176 val=`cat $ac_dir/conftest9012345 2>/dev/null` | |
3177 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | |
3178 ac_cv_sys_long_file_names=no | |
3179 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
3180 break | |
3181 fi | |
3182 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
3183 done | |
3184 fi | |
3185 | |
3186 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | |
3187 if test $ac_cv_sys_long_file_names = yes; then | |
3188 cat >> confdefs.h <<\EOF | |
3189 #define HAVE_LONG_FILE_NAMES 1 | |
3190 EOF | |
3191 | |
3192 fi | |
3193 | |
3194 | |
3195 #### Choose a window system. | |
3196 | |
3197 # If we find X, set shell vars x_includes and x_libraries to the | |
3198 # paths, otherwise set no_x=yes. | |
3199 # Uses ac_ vars as temps to allow command line to override cache and checks. | |
3200 # --without-x overrides everything else, but does not touch the cache. | |
3201 echo $ac_n "checking for X""... $ac_c" 1>&6 | |
30069 | 3202 echo "configure:3203: checking for X" >&5 |
25897 | 3203 |
3204 # Check whether --with-x or --without-x was given. | |
3205 if test "${with_x+set}" = set; then | |
3206 withval="$with_x" | |
3207 : | |
3208 fi | |
3209 | |
3210 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
3211 if test "x$with_x" = xno; then | |
3212 # The user explicitly disabled X. | |
3213 have_x=disabled | |
3214 else | |
3215 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
3216 # Both variables are already set. | |
3217 have_x=yes | |
3218 else | |
3219 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
3220 echo $ac_n "(cached) $ac_c" 1>&6 | |
3221 else | |
3222 # One or both of the vars are not set, and there is no cached value. | |
3223 ac_x_includes=NO ac_x_libraries=NO | |
3224 rm -fr conftestdir | |
3225 if mkdir conftestdir; then | |
3226 cd conftestdir | |
3227 # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
3228 cat > Imakefile <<'EOF' | |
3229 acfindx: | |
3230 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
3231 EOF | |
3232 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
3233 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3234 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
3235 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
3236 for ac_extension in a so sl; do | |
3237 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
3238 test -f $ac_im_libdir/libX11.$ac_extension; then | |
3239 ac_im_usrlibdir=$ac_im_libdir; break | |
3240 fi | |
3241 done | |
3242 # Screen out bogus values from the imake configuration. They are | |
3243 # bogus both because they are the default anyway, and because | |
3244 # using them would break gcc on systems where it needs fixed includes. | |
3245 case "$ac_im_incroot" in | |
3246 /usr/include) ;; | |
3247 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
3248 esac | |
3249 case "$ac_im_usrlibdir" in | |
3250 /usr/lib | /lib) ;; | |
3251 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
3252 esac | |
3253 fi | |
3254 cd .. | |
3255 rm -fr conftestdir | |
3256 fi | |
3257 | |
3258 if test "$ac_x_includes" = NO; then | |
3259 # Guess where to find include files, by looking for this one X11 .h file. | |
3260 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
3261 | |
3262 # First, try using that file with no special directory specified. | |
3263 cat > conftest.$ac_ext <<EOF | |
30069 | 3264 #line 3265 "configure" |
25897 | 3265 #include "confdefs.h" |
3266 #include <$x_direct_test_include> | |
3267 EOF | |
3268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 3269 { (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 3270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 3271 if test -z "$ac_err"; then |
3272 rm -rf conftest* | |
3273 # We can compile using X headers with no special include directory. | |
3274 ac_x_includes= | |
3275 else | |
3276 echo "$ac_err" >&5 | |
3277 echo "configure: failed program was:" >&5 | |
3278 cat conftest.$ac_ext >&5 | |
3279 rm -rf conftest* | |
3280 # Look for the header file in a standard set of common directories. | |
3281 # Check X11 before X11Rn because it is often a symlink to the current release. | |
3282 for ac_dir in \ | |
3283 /usr/X11/include \ | |
3284 /usr/X11R6/include \ | |
3285 /usr/X11R5/include \ | |
3286 /usr/X11R4/include \ | |
3287 \ | |
3288 /usr/include/X11 \ | |
3289 /usr/include/X11R6 \ | |
3290 /usr/include/X11R5 \ | |
3291 /usr/include/X11R4 \ | |
3292 \ | |
3293 /usr/local/X11/include \ | |
3294 /usr/local/X11R6/include \ | |
3295 /usr/local/X11R5/include \ | |
3296 /usr/local/X11R4/include \ | |
3297 \ | |
3298 /usr/local/include/X11 \ | |
3299 /usr/local/include/X11R6 \ | |
3300 /usr/local/include/X11R5 \ | |
3301 /usr/local/include/X11R4 \ | |
3302 \ | |
3303 /usr/X386/include \ | |
3304 /usr/x386/include \ | |
3305 /usr/XFree86/include/X11 \ | |
3306 \ | |
3307 /usr/include \ | |
3308 /usr/local/include \ | |
3309 /usr/unsupported/include \ | |
3310 /usr/athena/include \ | |
3311 /usr/local/x11r5/include \ | |
3312 /usr/lpp/Xamples/include \ | |
3313 \ | |
3314 /usr/openwin/include \ | |
3315 /usr/openwin/share/include \ | |
3316 ; \ | |
3317 do | |
3318 if test -r "$ac_dir/$x_direct_test_include"; then | |
3319 ac_x_includes=$ac_dir | |
3320 break | |
3321 fi | |
3322 done | |
3323 fi | |
3324 rm -f conftest* | |
3325 fi # $ac_x_includes = NO | |
3326 | |
3327 if test "$ac_x_libraries" = NO; then | |
3328 # Check for the libraries. | |
3329 | |
3330 test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
3331 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
3332 | |
3333 # See if we find them without any special options. | |
3334 # Don't add to $LIBS permanently. | |
3335 ac_save_LIBS="$LIBS" | |
3336 LIBS="-l$x_direct_test_library $LIBS" | |
3337 cat > conftest.$ac_ext <<EOF | |
30069 | 3338 #line 3339 "configure" |
25897 | 3339 #include "confdefs.h" |
3340 | |
3341 int main() { | |
3342 ${x_direct_test_function}() | |
3343 ; return 0; } | |
3344 EOF | |
30069 | 3345 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3346 rm -rf conftest* |
3347 LIBS="$ac_save_LIBS" | |
3348 # We can link X programs with no special library path. | |
3349 ac_x_libraries= | |
3350 else | |
3351 echo "configure: failed program was:" >&5 | |
3352 cat conftest.$ac_ext >&5 | |
3353 rm -rf conftest* | |
3354 LIBS="$ac_save_LIBS" | |
3355 # First see if replacing the include by lib works. | |
3356 # Check X11 before X11Rn because it is often a symlink to the current release. | |
3357 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
3358 /usr/X11/lib \ | |
3359 /usr/X11R6/lib \ | |
3360 /usr/X11R5/lib \ | |
3361 /usr/X11R4/lib \ | |
3362 \ | |
3363 /usr/lib/X11 \ | |
3364 /usr/lib/X11R6 \ | |
3365 /usr/lib/X11R5 \ | |
3366 /usr/lib/X11R4 \ | |
3367 \ | |
3368 /usr/local/X11/lib \ | |
3369 /usr/local/X11R6/lib \ | |
3370 /usr/local/X11R5/lib \ | |
3371 /usr/local/X11R4/lib \ | |
3372 \ | |
3373 /usr/local/lib/X11 \ | |
3374 /usr/local/lib/X11R6 \ | |
3375 /usr/local/lib/X11R5 \ | |
3376 /usr/local/lib/X11R4 \ | |
3377 \ | |
3378 /usr/X386/lib \ | |
3379 /usr/x386/lib \ | |
3380 /usr/XFree86/lib/X11 \ | |
3381 \ | |
3382 /usr/lib \ | |
3383 /usr/local/lib \ | |
3384 /usr/unsupported/lib \ | |
3385 /usr/athena/lib \ | |
3386 /usr/local/x11r5/lib \ | |
3387 /usr/lpp/Xamples/lib \ | |
3388 /lib/usr/lib/X11 \ | |
3389 \ | |
3390 /usr/openwin/lib \ | |
3391 /usr/openwin/share/lib \ | |
3392 ; \ | |
3393 do | |
3394 for ac_extension in a so sl; do | |
3395 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
3396 ac_x_libraries=$ac_dir | |
3397 break 2 | |
3398 fi | |
3399 done | |
3400 done | |
3401 fi | |
3402 rm -f conftest* | |
3403 fi # $ac_x_libraries = NO | |
3404 | |
3405 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
3406 # Didn't find X anywhere. Cache the known absence of X. | |
3407 ac_cv_have_x="have_x=no" | |
3408 else | |
3409 # Record where we found X for the cache. | |
3410 ac_cv_have_x="have_x=yes \ | |
3411 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
3412 fi | |
3413 fi | |
3414 fi | |
3415 eval "$ac_cv_have_x" | |
3416 fi # $with_x != no | |
3417 | |
3418 if test "$have_x" != yes; then | |
3419 echo "$ac_t""$have_x" 1>&6 | |
3420 no_x=yes | |
3421 else | |
3422 # If each of the values was on the command line, it overrides each guess. | |
3423 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
3424 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
3425 # Update the cache value to reflect the command line values. | |
3426 ac_cv_have_x="have_x=yes \ | |
3427 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
3428 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
3429 fi | |
3430 | |
3431 if test "$no_x" = yes; then | |
3432 window_system=none | |
3433 else | |
3434 window_system=x11 | |
3435 fi | |
3436 | |
3437 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3438 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
3439 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
3440 x_default_search_path="" | |
3441 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
3442 x_search_path="${x_library}/X11/%L/%T/%N%C%S:\ | |
3443 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\ | |
3444 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\ | |
3445 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S" | |
3446 if test x"${x_default_search_path}" = x; then | |
3447 x_default_search_path=${x_search_path} | |
3448 else | |
3449 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
3450 fi | |
3451 done | |
3452 fi | |
3453 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
3454 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
3455 fi | |
3456 | |
3457 if test x"${x_includes}" = x; then | |
3458 bitmapdir=/usr/include/X11/bitmaps | |
3459 else | |
3460 # accumulate include directories that have X11 bitmap subdirectories | |
3461 bmd_acc="dummyval" | |
3462 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
3463 if test -d "${bmd}/X11/bitmaps"; then | |
3464 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
26502 | 3465 fi |
3466 if test -d "${bmd}/bitmaps"; then | |
25897 | 3467 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
3468 fi | |
3469 done | |
3470 if test ${bmd_acc} != "dummyval"; then | |
3471 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
3472 fi | |
3473 fi | |
3474 | |
3475 case "${window_system}" in | |
3476 x11 ) | |
3477 HAVE_X_WINDOWS=yes | |
3478 HAVE_X11=yes | |
3479 case "${with_x_toolkit}" in | |
3480 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
3481 motif ) USE_X_TOOLKIT=MOTIF ;; | |
3482 no ) USE_X_TOOLKIT=none ;; | |
3483 * ) USE_X_TOOLKIT=maybe ;; | |
3484 esac | |
3485 ;; | |
3486 none ) | |
3487 HAVE_X_WINDOWS=no | |
3488 HAVE_X11=no | |
3489 USE_X_TOOLKIT=none | |
3490 ;; | |
3491 esac | |
3492 | |
3493 ### If we're using X11, we should use the X menu package. | |
3494 HAVE_MENUS=no | |
3495 case ${HAVE_X11} in | |
3496 yes ) HAVE_MENUS=yes ;; | |
3497 esac | |
3498 | |
3499 if test "${opsys}" = "hpux9"; then | |
3500 case "${x_libraries}" in | |
3501 *X11R4* ) | |
3502 opsysfile="s/hpux9-x11r4.h" | |
3503 ;; | |
3504 esac | |
3505 fi | |
3506 | |
3507 if test "${opsys}" = "hpux9shr"; then | |
3508 case "${x_libraries}" in | |
3509 *X11R4* ) | |
3510 opsysfile="s/hpux9shxr4.h" | |
3511 ;; | |
3512 esac | |
3513 fi | |
3514 | |
3515 #### Extract some information from the operating system and machine files. | |
3516 | |
3517 echo "checking the machine- and system-dependent files to find out | |
3518 - which libraries the lib-src programs will want, and | |
3519 - whether the GNU malloc routines are usable" 1>&6 | |
30069 | 3520 echo "configure:3521: checking the machine- and system-dependent files to find out |
25897 | 3521 - which libraries the lib-src programs will want, and |
3522 - whether the GNU malloc routines are usable" >&5 | |
3523 | |
3524 ### First figure out CFLAGS (which we use for running the compiler here) | |
3525 ### and REAL_CFLAGS (which we use for real compilation). | |
3526 ### The two are the same except on a few systems, where they are made | |
3527 ### different to work around various lossages. For example, | |
3528 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3529 ### as implying static linking. | |
3530 | |
3531 ### If the CFLAGS env var is specified, we use that value | |
3532 ### instead of the default. | |
3533 | |
3534 ### It's not important that this name contain the PID; you can't run | |
3535 ### two configures in the same directory and have anything work | |
3536 ### anyway. | |
3537 tempcname="conftest.c" | |
3538 | |
3539 echo ' | |
3540 #include "'${srcdir}'/src/'${opsysfile}'" | |
3541 #include "'${srcdir}'/src/'${machfile}'" | |
3542 #ifndef LIBS_MACHINE | |
3543 #define LIBS_MACHINE | |
3544 #endif | |
3545 #ifndef LIBS_SYSTEM | |
3546 #define LIBS_SYSTEM | |
3547 #endif | |
3548 #ifndef C_SWITCH_SYSTEM | |
3549 #define C_SWITCH_SYSTEM | |
3550 #endif | |
3551 #ifndef C_SWITCH_MACHINE | |
3552 #define C_SWITCH_MACHINE | |
3553 #endif | |
3554 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3555 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3556 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3557 | |
3558 #ifndef LIB_X11_LIB | |
3559 #define LIB_X11_LIB -lX11 | |
3560 #endif | |
3561 | |
3562 #ifndef LIBX11_MACHINE | |
3563 #define LIBX11_MACHINE | |
3564 #endif | |
3565 | |
3566 #ifndef LIBX11_SYSTEM | |
3567 #define LIBX11_SYSTEM | |
3568 #endif | |
3569 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3570 | |
3571 #ifdef UNEXEC | |
3572 configure___ unexec=UNEXEC | |
3573 #else | |
3574 configure___ unexec=unexec.o | |
3575 #endif | |
3576 | |
3577 #ifdef SYSTEM_MALLOC | |
3578 configure___ system_malloc=yes | |
3579 #else | |
3580 configure___ system_malloc=no | |
3581 #endif | |
3582 | |
3583 #ifndef C_DEBUG_SWITCH | |
3584 #define C_DEBUG_SWITCH -g | |
3585 #endif | |
3586 | |
3587 #ifndef C_OPTIMIZE_SWITCH | |
27910 | 3588 #ifdef __GNUC__ |
3589 #define C_OPTIMIZE_SWITCH -O2 | |
3590 #else | |
25897 | 3591 #define C_OPTIMIZE_SWITCH -O |
3592 #endif | |
27910 | 3593 #endif |
25897 | 3594 |
3595 #ifndef LD_SWITCH_MACHINE | |
3596 #define LD_SWITCH_MACHINE | |
3597 #endif | |
3598 | |
3599 #ifndef LD_SWITCH_SYSTEM | |
3600 #define LD_SWITCH_SYSTEM | |
3601 #endif | |
3602 | |
3603 #ifndef LD_SWITCH_X_SITE_AUX | |
3604 #define LD_SWITCH_X_SITE_AUX | |
3605 #endif | |
3606 | |
3607 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3608 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3609 | |
3610 #ifdef THIS_IS_CONFIGURE | |
3611 | |
3612 /* Get the CFLAGS for tests in configure. */ | |
3613 #ifdef __GNUC__ | |
3614 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3615 #else | |
3616 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3617 #endif | |
3618 | |
3619 #else /* not THIS_IS_CONFIGURE */ | |
3620 | |
3621 /* Get the CFLAGS for real compilation. */ | |
3622 #ifdef __GNUC__ | |
3623 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3624 #else | |
3625 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3626 #endif | |
3627 | |
3628 #endif /* not THIS_IS_CONFIGURE */ | |
3629 ' > ${tempcname} | |
3630 | |
3631 # The value of CPP is a quoted variable reference, so we need to do this | |
3632 # to get its actual value... | |
3633 CPP=`eval "echo $CPP"` | |
3634 eval `${CPP} -Isrc ${tempcname} \ | |
3635 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3636 if test "x$SPECIFIED_CFLAGS" = x; then | |
3637 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3638 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3639 else | |
3640 REAL_CFLAGS="$CFLAGS" | |
3641 fi | |
3642 rm ${tempcname} | |
3643 | |
3644 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3645 | |
3646 ### Compute the unexec source name from the object name. | |
3647 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
3648 | |
3649 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
3650 # Assume not, until told otherwise. | |
3651 GNU_MALLOC=yes | |
3652 doug_lea_malloc=yes | |
3653 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | |
30069 | 3654 echo "configure:3655: checking for malloc_get_state" >&5 |
25897 | 3655 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3656 echo $ac_n "(cached) $ac_c" 1>&6 | |
3657 else | |
3658 cat > conftest.$ac_ext <<EOF | |
30069 | 3659 #line 3660 "configure" |
25897 | 3660 #include "confdefs.h" |
3661 /* System header to define __stub macros and hopefully few prototypes, | |
3662 which can conflict with char malloc_get_state(); below. */ | |
3663 #include <assert.h> | |
3664 /* Override any gcc2 internal prototype to avoid an error. */ | |
3665 /* We use char because int might match the return type of a gcc2 | |
3666 builtin and then its argument prototype would still apply. */ | |
3667 char malloc_get_state(); | |
3668 | |
3669 int main() { | |
3670 | |
3671 /* The GNU C library defines this for functions which it implements | |
3672 to always fail with ENOSYS. Some functions are actually named | |
3673 something starting with __ and the normal name is an alias. */ | |
3674 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
3675 choke me | |
3676 #else | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
3677 malloc_get_state(); |
25897 | 3678 #endif |
3679 | |
3680 ; return 0; } | |
3681 EOF | |
30069 | 3682 if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3683 rm -rf conftest* |
3684 eval "ac_cv_func_malloc_get_state=yes" | |
3685 else | |
3686 echo "configure: failed program was:" >&5 | |
3687 cat conftest.$ac_ext >&5 | |
3688 rm -rf conftest* | |
3689 eval "ac_cv_func_malloc_get_state=no" | |
3690 fi | |
3691 rm -f conftest* | |
3692 fi | |
3693 | |
3694 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then | |
3695 echo "$ac_t""yes" 1>&6 | |
3696 : | |
3697 else | |
3698 echo "$ac_t""no" 1>&6 | |
3699 doug_lea_malloc=no | |
3700 fi | |
3701 | |
3702 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | |
30069 | 3703 echo "configure:3704: checking for malloc_set_state" >&5 |
25897 | 3704 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3705 echo $ac_n "(cached) $ac_c" 1>&6 | |
3706 else | |
3707 cat > conftest.$ac_ext <<EOF | |
30069 | 3708 #line 3709 "configure" |
25897 | 3709 #include "confdefs.h" |
3710 /* System header to define __stub macros and hopefully few prototypes, | |
3711 which can conflict with char malloc_set_state(); below. */ | |
3712 #include <assert.h> | |
3713 /* Override any gcc2 internal prototype to avoid an error. */ | |
3714 /* We use char because int might match the return type of a gcc2 | |
3715 builtin and then its argument prototype would still apply. */ | |
3716 char malloc_set_state(); | |
3717 | |
3718 int main() { | |
3719 | |
3720 /* The GNU C library defines this for functions which it implements | |
3721 to always fail with ENOSYS. Some functions are actually named | |
3722 something starting with __ and the normal name is an alias. */ | |
3723 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
3724 choke me | |
3725 #else | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
3726 malloc_set_state(); |
25897 | 3727 #endif |
3728 | |
3729 ; return 0; } | |
3730 EOF | |
30069 | 3731 if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3732 rm -rf conftest* |
3733 eval "ac_cv_func_malloc_set_state=yes" | |
3734 else | |
3735 echo "configure: failed program was:" >&5 | |
3736 cat conftest.$ac_ext >&5 | |
3737 rm -rf conftest* | |
3738 eval "ac_cv_func_malloc_set_state=no" | |
3739 fi | |
3740 rm -f conftest* | |
3741 fi | |
3742 | |
3743 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then | |
3744 echo "$ac_t""yes" 1>&6 | |
3745 : | |
3746 else | |
3747 echo "$ac_t""no" 1>&6 | |
3748 doug_lea_malloc=no | |
3749 fi | |
3750 | |
3751 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | |
30069 | 3752 echo "configure:3753: checking whether __after_morecore_hook exists" >&5 |
25897 | 3753 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3754 echo $ac_n "(cached) $ac_c" 1>&6 | |
3755 else | |
3756 cat > conftest.$ac_ext <<EOF | |
30069 | 3757 #line 3758 "configure" |
25897 | 3758 #include "confdefs.h" |
3759 extern void (* __after_morecore_hook)(); | |
3760 int main() { | |
3761 __after_morecore_hook = 0 | |
3762 ; return 0; } | |
3763 EOF | |
30069 | 3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3765 rm -rf conftest* |
3766 emacs_cv_var___after_morecore_hook=yes | |
3767 else | |
3768 echo "configure: failed program was:" >&5 | |
3769 cat conftest.$ac_ext >&5 | |
3770 rm -rf conftest* | |
3771 emacs_cv_var___after_morecore_hook=no | |
3772 fi | |
3773 rm -f conftest* | |
3774 fi | |
3775 | |
3776 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6 | |
3777 if test $emacs_cv_var___after_morecore_hook = no; then | |
3778 doug_lea_malloc=no | |
3779 fi | |
3780 if test "${system_malloc}" = "yes"; then | |
3781 GNU_MALLOC=no | |
3782 GNU_MALLOC_reason=" | |
3783 (The GNU allocators don't work with this system configuration.)" | |
3784 fi | |
3785 if test "$doug_lea_malloc" = "yes" ; then | |
3786 if test "$GNU_MALLOC" = yes ; then | |
3787 GNU_MALLOC_reason=" | |
3788 (Using Doug Lea's new malloc from the GNU C Library.)" | |
3789 fi | |
3790 cat >> confdefs.h <<\EOF | |
3791 #define DOUG_LEA_MALLOC 1 | |
3792 EOF | |
3793 | |
3794 fi | |
3795 | |
3796 if test x"${REL_ALLOC}" = x; then | |
3797 REL_ALLOC=${GNU_MALLOC} | |
3798 fi | |
3799 | |
3800 #### Add the libraries to LIBS and check for some functions. | |
3801 | |
3802 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3803 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3804 else | |
3805 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3806 fi | |
3807 | |
3808 LIBS="$libsrc_libs $LIBS" | |
3809 | |
3810 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
30069 | 3811 echo "configure:3812: checking for dnet_ntoa in -ldnet" >&5 |
25897 | 3812 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
3813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3814 echo $ac_n "(cached) $ac_c" 1>&6 | |
3815 else | |
3816 ac_save_LIBS="$LIBS" | |
3817 LIBS="-ldnet $LIBS" | |
3818 cat > conftest.$ac_ext <<EOF | |
30069 | 3819 #line 3820 "configure" |
25897 | 3820 #include "confdefs.h" |
3821 /* Override any gcc2 internal prototype to avoid an error. */ | |
3822 /* We use char because int might match the return type of a gcc2 | |
3823 builtin and then its argument prototype would still apply. */ | |
3824 char dnet_ntoa(); | |
3825 | |
3826 int main() { | |
3827 dnet_ntoa() | |
3828 ; return 0; } | |
3829 EOF | |
30069 | 3830 if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3831 rm -rf conftest* |
3832 eval "ac_cv_lib_$ac_lib_var=yes" | |
3833 else | |
3834 echo "configure: failed program was:" >&5 | |
3835 cat conftest.$ac_ext >&5 | |
3836 rm -rf conftest* | |
3837 eval "ac_cv_lib_$ac_lib_var=no" | |
3838 fi | |
3839 rm -f conftest* | |
3840 LIBS="$ac_save_LIBS" | |
3841 | |
3842 fi | |
3843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3844 echo "$ac_t""yes" 1>&6 | |
3845 ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3846 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3847 cat >> confdefs.h <<EOF | |
3848 #define $ac_tr_lib 1 | |
3849 EOF | |
3850 | |
3851 LIBS="-ldnet $LIBS" | |
3852 | |
3853 else | |
3854 echo "$ac_t""no" 1>&6 | |
3855 fi | |
3856 | |
3857 | |
3858 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | |
30069 | 3859 echo "configure:3860: checking for main in -lXbsd" >&5 |
25897 | 3860 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
3861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3862 echo $ac_n "(cached) $ac_c" 1>&6 | |
3863 else | |
3864 ac_save_LIBS="$LIBS" | |
3865 LIBS="-lXbsd $LIBS" | |
3866 cat > conftest.$ac_ext <<EOF | |
30069 | 3867 #line 3868 "configure" |
25897 | 3868 #include "confdefs.h" |
3869 | |
3870 int main() { | |
3871 main() | |
3872 ; return 0; } | |
3873 EOF | |
30069 | 3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3875 rm -rf conftest* |
3876 eval "ac_cv_lib_$ac_lib_var=yes" | |
3877 else | |
3878 echo "configure: failed program was:" >&5 | |
3879 cat conftest.$ac_ext >&5 | |
3880 rm -rf conftest* | |
3881 eval "ac_cv_lib_$ac_lib_var=no" | |
3882 fi | |
3883 rm -f conftest* | |
3884 LIBS="$ac_save_LIBS" | |
3885 | |
3886 fi | |
3887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3888 echo "$ac_t""yes" 1>&6 | |
3889 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
3890 else | |
3891 echo "$ac_t""no" 1>&6 | |
3892 fi | |
3893 | |
3894 | |
3895 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | |
30069 | 3896 echo "configure:3897: checking for cma_open in -lpthreads" >&5 |
25897 | 3897 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
3898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3899 echo $ac_n "(cached) $ac_c" 1>&6 | |
3900 else | |
3901 ac_save_LIBS="$LIBS" | |
3902 LIBS="-lpthreads $LIBS" | |
3903 cat > conftest.$ac_ext <<EOF | |
30069 | 3904 #line 3905 "configure" |
25897 | 3905 #include "confdefs.h" |
3906 /* Override any gcc2 internal prototype to avoid an error. */ | |
3907 /* We use char because int might match the return type of a gcc2 | |
3908 builtin and then its argument prototype would still apply. */ | |
3909 char cma_open(); | |
3910 | |
3911 int main() { | |
3912 cma_open() | |
3913 ; return 0; } | |
3914 EOF | |
30069 | 3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3916 rm -rf conftest* |
3917 eval "ac_cv_lib_$ac_lib_var=yes" | |
3918 else | |
3919 echo "configure: failed program was:" >&5 | |
3920 cat conftest.$ac_ext >&5 | |
3921 rm -rf conftest* | |
3922 eval "ac_cv_lib_$ac_lib_var=no" | |
3923 fi | |
3924 rm -f conftest* | |
3925 LIBS="$ac_save_LIBS" | |
3926 | |
3927 fi | |
3928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3929 echo "$ac_t""yes" 1>&6 | |
3930 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3931 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3932 cat >> confdefs.h <<EOF | |
3933 #define $ac_tr_lib 1 | |
3934 EOF | |
3935 | |
3936 LIBS="-lpthreads $LIBS" | |
3937 | |
3938 else | |
3939 echo "$ac_t""no" 1>&6 | |
3940 fi | |
3941 | |
3942 | |
3943 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | |
30069 | 3944 echo "configure:3945: checking for XFree86 in /usr/X386" >&5 |
25897 | 3945 if test -d /usr/X386/include; then |
3946 HAVE_XFREE386=yes | |
3947 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
3948 else | |
3949 HAVE_XFREE386=no | |
3950 fi | |
3951 echo "$ac_t""$HAVE_XFREE386" 1>&6 | |
3952 | |
3953 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
3954 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
3955 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3956 REAL_CPPFLAGS="$CPPFLAGS" |
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3957 |
25897 | 3958 if test "${HAVE_X11}" = "yes"; then |
3959 DEFS="$C_SWITCH_X_SITE $DEFS" | |
3960 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
3961 LIBS="$LIBX $LIBS" | |
3962 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3963 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
25897 | 3964 |
3965 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
3966 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
3967 # but it's more convenient here to set LD_RUN_PATH | |
3968 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
3969 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3970 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
3971 export LD_RUN_PATH | |
3972 fi | |
3973 | |
3974 if test "${opsys}" = "gnu-linux"; then | |
3975 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | |
30069 | 3976 echo "configure:3977: checking whether X on GNU/Linux needs -b to link" >&5 |
25897 | 3977 cat > conftest.$ac_ext <<EOF |
30069 | 3978 #line 3979 "configure" |
25897 | 3979 #include "confdefs.h" |
3980 | |
3981 int main() { | |
3982 XOpenDisplay ("foo"); | |
3983 ; return 0; } | |
3984 EOF | |
30069 | 3985 if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3986 rm -rf conftest* |
3987 xlinux_first_failure=no | |
3988 else | |
3989 echo "configure: failed program was:" >&5 | |
3990 cat conftest.$ac_ext >&5 | |
3991 rm -rf conftest* | |
3992 xlinux_first_failure=yes | |
3993 fi | |
3994 rm -f conftest* | |
3995 if test "${xlinux_first_failure}" = "yes"; then | |
3996 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
3997 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
3998 OLD_CPPFLAGS="$CPPFLAGS" | |
3999 OLD_LIBS="$LIBS" | |
4000 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
4001 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
4002 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
4003 LIBS="$LIBS -b i486-linuxaout" | |
4004 cat > conftest.$ac_ext <<EOF | |
30069 | 4005 #line 4006 "configure" |
25897 | 4006 #include "confdefs.h" |
4007 | |
4008 int main() { | |
4009 XOpenDisplay ("foo"); | |
4010 ; return 0; } | |
4011 EOF | |
30069 | 4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4013 rm -rf conftest* |
4014 xlinux_second_failure=no | |
4015 else | |
4016 echo "configure: failed program was:" >&5 | |
4017 cat conftest.$ac_ext >&5 | |
4018 rm -rf conftest* | |
4019 xlinux_second_failure=yes | |
4020 fi | |
4021 rm -f conftest* | |
4022 if test "${xlinux_second_failure}" = "yes"; then | |
4023 # If we get the same failure with -b, there is no use adding -b. | |
4024 # So take it out. This plays safe. | |
4025 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
4026 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
4027 CPPFLAGS="$OLD_CPPFLAGS" | |
4028 LIBS="$OLD_LIBS" | |
4029 echo "$ac_t""no" 1>&6 | |
4030 else | |
4031 echo "$ac_t""yes" 1>&6 | |
4032 fi | |
4033 else | |
4034 echo "$ac_t""no" 1>&6 | |
4035 fi | |
4036 fi | |
4037 | |
4038 for ac_func in XrmSetDatabase XScreenResourceString \ | |
4039 XScreenNumberOfScreen XSetWMProtocols | |
4040 do | |
4041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
30069 | 4042 echo "configure:4043: checking for $ac_func" >&5 |
25897 | 4043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4044 echo $ac_n "(cached) $ac_c" 1>&6 | |
4045 else | |
4046 cat > conftest.$ac_ext <<EOF | |
30069 | 4047 #line 4048 "configure" |
25897 | 4048 #include "confdefs.h" |
4049 /* System header to define __stub macros and hopefully few prototypes, | |
4050 which can conflict with char $ac_func(); below. */ | |
4051 #include <assert.h> | |
4052 /* Override any gcc2 internal prototype to avoid an error. */ | |
4053 /* We use char because int might match the return type of a gcc2 | |
4054 builtin and then its argument prototype would still apply. */ | |
4055 char $ac_func(); | |
4056 | |
4057 int main() { | |
4058 | |
4059 /* The GNU C library defines this for functions which it implements | |
4060 to always fail with ENOSYS. Some functions are actually named | |
4061 something starting with __ and the normal name is an alias. */ | |
4062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4063 choke me | |
4064 #else | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
4065 $ac_func(); |
25897 | 4066 #endif |
4067 | |
4068 ; return 0; } | |
4069 EOF | |
30069 | 4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4071 rm -rf conftest* |
4072 eval "ac_cv_func_$ac_func=yes" | |
4073 else | |
4074 echo "configure: failed program was:" >&5 | |
4075 cat conftest.$ac_ext >&5 | |
4076 rm -rf conftest* | |
4077 eval "ac_cv_func_$ac_func=no" | |
4078 fi | |
4079 rm -f conftest* | |
4080 fi | |
4081 | |
4082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4083 echo "$ac_t""yes" 1>&6 | |
4084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4085 cat >> confdefs.h <<EOF | |
4086 #define $ac_tr_func 1 | |
4087 EOF | |
4088 | |
4089 else | |
4090 echo "$ac_t""no" 1>&6 | |
4091 fi | |
4092 done | |
4093 | |
4094 fi | |
4095 | |
4096 if test "${window_system}" = "x11"; then | |
4097 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | |
30069 | 4098 echo "configure:4099: checking X11 version 6" >&5 |
25897 | 4099 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
4100 echo $ac_n "(cached) $ac_c" 1>&6 | |
4101 else | |
4102 cat > conftest.$ac_ext <<EOF | |
30069 | 4103 #line 4104 "configure" |
25897 | 4104 #include "confdefs.h" |
4105 #include <X11/Xlib.h> | |
4106 int main() { | |
4107 #if XlibSpecificationRelease < 6 | |
4108 fail; | |
4109 #endif | |
4110 | |
4111 ; return 0; } | |
4112 EOF | |
30069 | 4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4114 rm -rf conftest* |
4115 emacs_cv_x11_version_6=yes | |
4116 else | |
4117 echo "configure: failed program was:" >&5 | |
4118 cat conftest.$ac_ext >&5 | |
4119 rm -rf conftest* | |
4120 emacs_cv_x11_version_6=no | |
4121 fi | |
4122 rm -f conftest* | |
4123 fi | |
4124 | |
4125 if test $emacs_cv_x11_version_6 = yes; then | |
4126 echo "$ac_t""6 or newer" 1>&6 | |
4127 cat >> confdefs.h <<\EOF | |
4128 #define HAVE_X11R6 1 | |
4129 EOF | |
4130 | |
4131 else | |
4132 echo "$ac_t""before 6" 1>&6 | |
4133 fi | |
4134 fi | |
4135 | |
4136 if test "${window_system}" = "x11"; then | |
4137 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | |
30069 | 4138 echo "configure:4139: checking X11 version 5" >&5 |
25897 | 4139 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
4140 echo $ac_n "(cached) $ac_c" 1>&6 | |
4141 else | |
4142 cat > conftest.$ac_ext <<EOF | |
30069 | 4143 #line 4144 "configure" |
25897 | 4144 #include "confdefs.h" |
4145 #include <X11/Xlib.h> | |
4146 int main() { | |
4147 #if XlibSpecificationRelease < 5 | |
4148 fail; | |
4149 #endif | |
4150 | |
4151 ; return 0; } | |
4152 EOF | |
30069 | 4153 if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4154 rm -rf conftest* |
4155 emacs_cv_x11_version_5=yes | |
4156 else | |
4157 echo "configure: failed program was:" >&5 | |
4158 cat conftest.$ac_ext >&5 | |
4159 rm -rf conftest* | |
4160 emacs_cv_x11_version_5=no | |
4161 fi | |
4162 rm -f conftest* | |
4163 fi | |
4164 | |
4165 if test $emacs_cv_x11_version_5 = yes; then | |
4166 echo "$ac_t""5 or newer" 1>&6 | |
4167 HAVE_X11R5=yes | |
4168 cat >> confdefs.h <<\EOF | |
4169 #define HAVE_X11R5 1 | |
4170 EOF | |
4171 | |
4172 else | |
4173 HAVE_X11R5=no | |
4174 echo "$ac_t""before 5" 1>&6 | |
4175 fi | |
4176 fi | |
4177 | |
4178 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
4179 if test x"${HAVE_X11R5}" = xyes; then | |
4180 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | |
30069 | 4181 echo "configure:4182: checking X11 version 5 with Xaw" >&5 |
25897 | 4182 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
4183 echo $ac_n "(cached) $ac_c" 1>&6 | |
4184 else | |
4185 cat > conftest.$ac_ext <<EOF | |
30069 | 4186 #line 4187 "configure" |
25897 | 4187 #include "confdefs.h" |
4188 | |
4189 #include <X11/Intrinsic.h> | |
4190 #include <X11/Xaw/Simple.h> | |
4191 int main() { | |
4192 | |
4193 ; return 0; } | |
4194 EOF | |
30069 | 4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4196 rm -rf conftest* |
4197 emacs_cv_x11_version_5_with_xaw=yes | |
4198 else | |
4199 echo "configure: failed program was:" >&5 | |
4200 cat conftest.$ac_ext >&5 | |
4201 rm -rf conftest* | |
4202 emacs_cv_x11_version_5_with_xaw=no | |
4203 fi | |
4204 rm -f conftest* | |
4205 fi | |
4206 | |
4207 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
4208 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6 | |
4209 USE_X_TOOLKIT=LUCID | |
4210 else | |
4211 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6 | |
4212 USE_X_TOOLKIT=none | |
4213 fi | |
4214 else | |
4215 USE_X_TOOLKIT=none | |
4216 fi | |
4217 fi | |
4218 | |
4219 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
4220 | |
4221 if test "${USE_X_TOOLKIT}" != "none"; then | |
4222 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | |
30069 | 4223 echo "configure:4224: checking X11 toolkit version" >&5 |
25897 | 4224 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
4225 echo $ac_n "(cached) $ac_c" 1>&6 | |
4226 else | |
4227 cat > conftest.$ac_ext <<EOF | |
30069 | 4228 #line 4229 "configure" |
25897 | 4229 #include "confdefs.h" |
4230 #include <X11/Intrinsic.h> | |
4231 int main() { | |
4232 #if XtSpecificationRelease < 6 | |
4233 fail; | |
4234 #endif | |
4235 | |
4236 ; return 0; } | |
4237 EOF | |
30069 | 4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4239 rm -rf conftest* |
4240 emacs_cv_x11_toolkit_version_6=yes | |
4241 else | |
4242 echo "configure: failed program was:" >&5 | |
4243 cat conftest.$ac_ext >&5 | |
4244 rm -rf conftest* | |
4245 emacs_cv_x11_toolkit_version_6=no | |
4246 fi | |
4247 rm -f conftest* | |
4248 fi | |
4249 | |
4250 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
4251 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
4252 echo "$ac_t""6 or newer" 1>&6 | |
4253 cat >> confdefs.h <<\EOF | |
4254 #define HAVE_X11XTR6 1 | |
4255 EOF | |
4256 | |
4257 else | |
4258 echo "$ac_t""before 6" 1>&6 | |
4259 fi | |
4260 | |
4261 OLDLIBS="$LIBS" | |
4262 if test x$HAVE_X11XTR6 = xyes; then | |
4263 LIBS="-lXt -lSM -lICE $LIBS" | |
4264 else | |
4265 LIBS="-lXt $LIBS" | |
4266 fi | |
4267 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | |
30069 | 4268 echo "configure:4269: checking for XmuConvertStandardSelection in -lXmu" >&5 |
25897 | 4269 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
4270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4271 echo $ac_n "(cached) $ac_c" 1>&6 | |
4272 else | |
4273 ac_save_LIBS="$LIBS" | |
4274 LIBS="-lXmu $LIBS" | |
4275 cat > conftest.$ac_ext <<EOF | |
30069 | 4276 #line 4277 "configure" |
25897 | 4277 #include "confdefs.h" |
4278 /* Override any gcc2 internal prototype to avoid an error. */ | |
4279 /* We use char because int might match the return type of a gcc2 | |
4280 builtin and then its argument prototype would still apply. */ | |
4281 char XmuConvertStandardSelection(); | |
4282 | |
4283 int main() { | |
4284 XmuConvertStandardSelection() | |
4285 ; return 0; } | |
4286 EOF | |
30069 | 4287 if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4288 rm -rf conftest* |
4289 eval "ac_cv_lib_$ac_lib_var=yes" | |
4290 else | |
4291 echo "configure: failed program was:" >&5 | |
4292 cat conftest.$ac_ext >&5 | |
4293 rm -rf conftest* | |
4294 eval "ac_cv_lib_$ac_lib_var=no" | |
4295 fi | |
4296 rm -f conftest* | |
4297 LIBS="$ac_save_LIBS" | |
4298 | |
4299 fi | |
4300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4301 echo "$ac_t""yes" 1>&6 | |
4302 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4304 cat >> confdefs.h <<EOF | |
4305 #define $ac_tr_lib 1 | |
4306 EOF | |
4307 | |
4308 LIBS="-lXmu $LIBS" | |
4309 | |
4310 else | |
4311 echo "$ac_t""no" 1>&6 | |
4312 fi | |
4313 | |
4314 LIBS="$OLDLIBS" | |
4315 fi | |
4316 | |
4317 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
4318 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | |
30069 | 4319 echo "configure:4320: checking for Motif version 2.1" >&5 |
25897 | 4320 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4321 echo $ac_n "(cached) $ac_c" 1>&6 | |
4322 else | |
4323 cat > conftest.$ac_ext <<EOF | |
30069 | 4324 #line 4325 "configure" |
25897 | 4325 #include "confdefs.h" |
4326 #include <Xm/Xm.h> | |
4327 int main() { | |
4328 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
4329 int x = 5; | |
4330 #else | |
4331 Motif version prior to 2.1. | |
4332 #endif | |
4333 ; return 0; } | |
4334 EOF | |
30069 | 4335 if { (eval echo configure:4336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 4336 rm -rf conftest* |
4337 emacs_cv_motif_version_2_1=yes | |
4338 else | |
4339 echo "configure: failed program was:" >&5 | |
4340 cat conftest.$ac_ext >&5 | |
4341 rm -rf conftest* | |
4342 emacs_cv_motif_version_2_1=no | |
4343 fi | |
4344 rm -f conftest* | |
4345 fi | |
4346 | |
4347 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6 | |
4348 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
4349 if test $emacs_cv_motif_version_2_1 = yes; then | |
4350 cat >> confdefs.h <<\EOF | |
4351 #define HAVE_MOTIF_2_1 1 | |
4352 EOF | |
4353 | |
4354 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | |
30069 | 4355 echo "configure:4356: checking for XpCreateContext in -lXp" >&5 |
25897 | 4356 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4358 echo $ac_n "(cached) $ac_c" 1>&6 | |
4359 else | |
4360 ac_save_LIBS="$LIBS" | |
29906 | 4361 LIBS="-lXp -lXext $LIBS" |
25897 | 4362 cat > conftest.$ac_ext <<EOF |
30069 | 4363 #line 4364 "configure" |
25897 | 4364 #include "confdefs.h" |
4365 /* Override any gcc2 internal prototype to avoid an error. */ | |
4366 /* We use char because int might match the return type of a gcc2 | |
4367 builtin and then its argument prototype would still apply. */ | |
4368 char XpCreateContext(); | |
4369 | |
4370 int main() { | |
4371 XpCreateContext() | |
4372 ; return 0; } | |
4373 EOF | |
30069 | 4374 if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4375 rm -rf conftest* |
4376 eval "ac_cv_lib_$ac_lib_var=yes" | |
4377 else | |
4378 echo "configure: failed program was:" >&5 | |
4379 cat conftest.$ac_ext >&5 | |
4380 rm -rf conftest* | |
4381 eval "ac_cv_lib_$ac_lib_var=no" | |
4382 fi | |
4383 rm -f conftest* | |
4384 LIBS="$ac_save_LIBS" | |
4385 | |
4386 fi | |
4387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4388 echo "$ac_t""yes" 1>&6 | |
29906 | 4389 HAVE_LIBXP=yes |
25897 | 4390 else |
4391 echo "$ac_t""no" 1>&6 | |
4392 fi | |
4393 | |
29906 | 4394 if test ${HAVE_LIBXP} = yes; then |
4395 cat >> confdefs.h <<\EOF | |
4396 #define HAVE_LIBXP 1 | |
4397 EOF | |
4398 | |
4399 fi | |
25897 | 4400 fi |
4401 fi | |
4402 | |
4403 ### Is -lXaw3d available? | |
4404 HAVE_XAW3D=no | |
4405 if test "${HAVE_X11}" = "yes"; then | |
4406 if test "${USE_X_TOOLKIT}" != "none"; then | |
4407 old_c_flags="${CFLAGS}" | |
4408 CFLAGS="${LD_SWITCH_X_SITE}" | |
4409 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | |
4410 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | |
30069 | 4411 echo "configure:4412: checking for X11/Xaw3d/Scrollbar.h" >&5 |
25897 | 4412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4413 echo $ac_n "(cached) $ac_c" 1>&6 | |
4414 else | |
4415 cat > conftest.$ac_ext <<EOF | |
30069 | 4416 #line 4417 "configure" |
25897 | 4417 #include "confdefs.h" |
4418 #include <X11/Xaw3d/Scrollbar.h> | |
4419 EOF | |
4420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 4421 { (eval echo configure:4422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4423 if test -z "$ac_err"; then |
4424 rm -rf conftest* | |
4425 eval "ac_cv_header_$ac_safe=yes" | |
4426 else | |
4427 echo "$ac_err" >&5 | |
4428 echo "configure: failed program was:" >&5 | |
4429 cat conftest.$ac_ext >&5 | |
4430 rm -rf conftest* | |
4431 eval "ac_cv_header_$ac_safe=no" | |
4432 fi | |
4433 rm -f conftest* | |
4434 fi | |
4435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4436 echo "$ac_t""yes" 1>&6 | |
4437 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | |
30069 | 4438 echo "configure:4439: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
25897 | 4439 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4441 echo $ac_n "(cached) $ac_c" 1>&6 | |
4442 else | |
4443 ac_save_LIBS="$LIBS" | |
4444 LIBS="-lXaw3d -lX11 $LIBS" | |
4445 cat > conftest.$ac_ext <<EOF | |
30069 | 4446 #line 4447 "configure" |
25897 | 4447 #include "confdefs.h" |
4448 /* Override any gcc2 internal prototype to avoid an error. */ | |
4449 /* We use char because int might match the return type of a gcc2 | |
4450 builtin and then its argument prototype would still apply. */ | |
4451 char XawScrollbarSetThumb(); | |
4452 | |
4453 int main() { | |
4454 XawScrollbarSetThumb() | |
4455 ; return 0; } | |
4456 EOF | |
30069 | 4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4458 rm -rf conftest* |
4459 eval "ac_cv_lib_$ac_lib_var=yes" | |
4460 else | |
4461 echo "configure: failed program was:" >&5 | |
4462 cat conftest.$ac_ext >&5 | |
4463 rm -rf conftest* | |
4464 eval "ac_cv_lib_$ac_lib_var=no" | |
4465 fi | |
4466 rm -f conftest* | |
4467 LIBS="$ac_save_LIBS" | |
4468 | |
4469 fi | |
4470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4471 echo "$ac_t""yes" 1>&6 | |
4472 HAVE_XAW3D=yes | |
4473 else | |
4474 echo "$ac_t""no" 1>&6 | |
4475 fi | |
4476 | |
4477 else | |
4478 echo "$ac_t""no" 1>&6 | |
4479 fi | |
4480 | |
4481 CFLAGS="${old_c_flags}" | |
4482 | |
4483 if test "${HAVE_XAW3D}" = "yes"; then | |
4484 cat >> confdefs.h <<\EOF | |
4485 #define HAVE_XAW3D 1 | |
4486 EOF | |
4487 | |
4488 fi | |
4489 fi | |
4490 fi | |
4491 | |
4492 | |
4493 USE_TOOLKIT_SCROLL_BARS=no | |
4494 if test "${with_toolkit_scroll_bars}" != "no"; then | |
4495 if test "${USE_X_TOOLKIT}" != "none"; then | |
4496 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
4497 cat >> confdefs.h <<\EOF | |
4498 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4499 EOF | |
4500 | |
4501 HAVE_XAW3D=no | |
4502 USE_TOOLKIT_SCROLL_BARS=yes | |
4503 elif test "${HAVE_XAW3D}" = "yes"; then | |
4504 cat >> confdefs.h <<\EOF | |
4505 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4506 EOF | |
4507 | |
4508 USE_TOOLKIT_SCROLL_BARS=yes | |
4509 fi | |
4510 fi | |
4511 fi | |
4512 | |
29949 | 4513 |
4514 if test "${with_xim}" != "no"; then | |
4515 cat >> confdefs.h <<\EOF | |
4516 #define USE_XIM 1 | |
4517 EOF | |
4518 | |
4519 fi | |
4520 | |
25897 | 4521 ### Use -lXpm if available, unless `--with-xpm=no'. |
4522 HAVE_XPM=no | |
4523 if test "${HAVE_X11}" = "yes"; then | |
4524 if test "${with_xpm}" != "no"; then | |
4525 old_c_flags="${CFLAGS}" | |
4526 CFLAGS="${LD_SWITCH_X_SITE}" | |
4527 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | |
4528 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | |
30069 | 4529 echo "configure:4530: checking for X11/xpm.h" >&5 |
25897 | 4530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4531 echo $ac_n "(cached) $ac_c" 1>&6 | |
4532 else | |
4533 cat > conftest.$ac_ext <<EOF | |
30069 | 4534 #line 4535 "configure" |
25897 | 4535 #include "confdefs.h" |
4536 #include <X11/xpm.h> | |
4537 EOF | |
4538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 4539 { (eval echo configure:4540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4541 if test -z "$ac_err"; then |
4542 rm -rf conftest* | |
4543 eval "ac_cv_header_$ac_safe=yes" | |
4544 else | |
4545 echo "$ac_err" >&5 | |
4546 echo "configure: failed program was:" >&5 | |
4547 cat conftest.$ac_ext >&5 | |
4548 rm -rf conftest* | |
4549 eval "ac_cv_header_$ac_safe=no" | |
4550 fi | |
4551 rm -f conftest* | |
4552 fi | |
4553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4554 echo "$ac_t""yes" 1>&6 | |
4555 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | |
30069 | 4556 echo "configure:4557: checking for XpmReadFileToPixmap in -lXpm" >&5 |
25897 | 4557 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4559 echo $ac_n "(cached) $ac_c" 1>&6 | |
4560 else | |
4561 ac_save_LIBS="$LIBS" | |
4562 LIBS="-lXpm -lX11 $LIBS" | |
4563 cat > conftest.$ac_ext <<EOF | |
30069 | 4564 #line 4565 "configure" |
25897 | 4565 #include "confdefs.h" |
4566 /* Override any gcc2 internal prototype to avoid an error. */ | |
4567 /* We use char because int might match the return type of a gcc2 | |
4568 builtin and then its argument prototype would still apply. */ | |
4569 char XpmReadFileToPixmap(); | |
4570 | |
4571 int main() { | |
4572 XpmReadFileToPixmap() | |
4573 ; return 0; } | |
4574 EOF | |
30069 | 4575 if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4576 rm -rf conftest* |
4577 eval "ac_cv_lib_$ac_lib_var=yes" | |
4578 else | |
4579 echo "configure: failed program was:" >&5 | |
4580 cat conftest.$ac_ext >&5 | |
4581 rm -rf conftest* | |
4582 eval "ac_cv_lib_$ac_lib_var=no" | |
4583 fi | |
4584 rm -f conftest* | |
4585 LIBS="$ac_save_LIBS" | |
4586 | |
4587 fi | |
4588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4589 echo "$ac_t""yes" 1>&6 | |
4590 HAVE_XPM=yes | |
4591 else | |
4592 echo "$ac_t""no" 1>&6 | |
4593 fi | |
4594 | |
4595 else | |
4596 echo "$ac_t""no" 1>&6 | |
4597 fi | |
4598 | |
4599 CFLAGS="${old_c_flags}" | |
4600 fi | |
4601 | |
4602 if test "${HAVE_XPM}" = "yes"; then | |
4603 cat >> confdefs.h <<\EOF | |
4604 #define HAVE_XPM 1 | |
4605 EOF | |
4606 | |
4607 fi | |
4608 fi | |
4609 | |
4610 ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
4611 HAVE_JPEG=no | |
4612 if test "${HAVE_X11}" = "yes"; then | |
4613 if test "${with_jpeg}" != "no"; then | |
4614 old_c_flags="${CFLAGS}" | |
4615 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
27356 | 4616 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
4617 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | |
30069 | 4618 echo "configure:4619: checking for jerror.h" >&5 |
27356 | 4619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4620 echo $ac_n "(cached) $ac_c" 1>&6 | |
4621 else | |
4622 cat > conftest.$ac_ext <<EOF | |
30069 | 4623 #line 4624 "configure" |
27356 | 4624 #include "confdefs.h" |
4625 #include <jerror.h> | |
4626 EOF | |
4627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 4628 { (eval echo configure:4629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27356 | 4629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4630 if test -z "$ac_err"; then | |
4631 rm -rf conftest* | |
4632 eval "ac_cv_header_$ac_safe=yes" | |
4633 else | |
4634 echo "$ac_err" >&5 | |
4635 echo "configure: failed program was:" >&5 | |
4636 cat conftest.$ac_ext >&5 | |
4637 rm -rf conftest* | |
4638 eval "ac_cv_header_$ac_safe=no" | |
4639 fi | |
4640 rm -f conftest* | |
4641 fi | |
4642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4643 echo "$ac_t""yes" 1>&6 | |
4644 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | |
30069 | 4645 echo "configure:4646: checking for jpeg_destroy_compress in -ljpeg" >&5 |
25897 | 4646 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
4647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4648 echo $ac_n "(cached) $ac_c" 1>&6 | |
4649 else | |
4650 ac_save_LIBS="$LIBS" | |
4651 LIBS="-ljpeg -lX11 $LIBS" | |
4652 cat > conftest.$ac_ext <<EOF | |
30069 | 4653 #line 4654 "configure" |
25897 | 4654 #include "confdefs.h" |
4655 /* Override any gcc2 internal prototype to avoid an error. */ | |
4656 /* We use char because int might match the return type of a gcc2 | |
4657 builtin and then its argument prototype would still apply. */ | |
4658 char jpeg_destroy_compress(); | |
4659 | |
4660 int main() { | |
4661 jpeg_destroy_compress() | |
4662 ; return 0; } | |
4663 EOF | |
30069 | 4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4665 rm -rf conftest* |
4666 eval "ac_cv_lib_$ac_lib_var=yes" | |
4667 else | |
4668 echo "configure: failed program was:" >&5 | |
4669 cat conftest.$ac_ext >&5 | |
4670 rm -rf conftest* | |
4671 eval "ac_cv_lib_$ac_lib_var=no" | |
4672 fi | |
4673 rm -f conftest* | |
4674 LIBS="$ac_save_LIBS" | |
4675 | |
4676 fi | |
4677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4678 echo "$ac_t""yes" 1>&6 | |
4679 HAVE_JPEG=yes | |
4680 else | |
4681 echo "$ac_t""no" 1>&6 | |
4682 fi | |
4683 | |
27356 | 4684 else |
4685 echo "$ac_t""no" 1>&6 | |
4686 fi | |
4687 | |
25897 | 4688 CFLAGS="${old_c_flags}" |
4689 fi | |
4690 | |
4691 if test "${HAVE_JPEG}" = "yes"; then | |
4692 cat >> confdefs.h <<\EOF | |
4693 #define HAVE_JPEG 1 | |
4694 EOF | |
4695 | |
4696 fi | |
4697 fi | |
4698 | |
4699 ### Use -lpng if available, unless `--with-png=no'. | |
4700 HAVE_PNG=no | |
4701 if test "${HAVE_X11}" = "yes"; then | |
4702 if test "${with_png}" != "no"; then | |
4703 old_c_flags="${CFLAGS}" | |
4704 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4705 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4706 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
30069 | 4707 echo "configure:4708: checking for png.h" >&5 |
25897 | 4708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4709 echo $ac_n "(cached) $ac_c" 1>&6 | |
4710 else | |
4711 cat > conftest.$ac_ext <<EOF | |
30069 | 4712 #line 4713 "configure" |
25897 | 4713 #include "confdefs.h" |
4714 #include <png.h> | |
4715 EOF | |
4716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 4717 { (eval echo configure:4718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4719 if test -z "$ac_err"; then |
4720 rm -rf conftest* | |
4721 eval "ac_cv_header_$ac_safe=yes" | |
4722 else | |
4723 echo "$ac_err" >&5 | |
4724 echo "configure: failed program was:" >&5 | |
4725 cat conftest.$ac_ext >&5 | |
4726 rm -rf conftest* | |
4727 eval "ac_cv_header_$ac_safe=no" | |
4728 fi | |
4729 rm -f conftest* | |
4730 fi | |
4731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4732 echo "$ac_t""yes" 1>&6 | |
4733 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | |
30069 | 4734 echo "configure:4735: checking for png_set_expand in -lpng" >&5 |
25897 | 4735 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
4736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4737 echo $ac_n "(cached) $ac_c" 1>&6 | |
4738 else | |
4739 ac_save_LIBS="$LIBS" | |
4740 LIBS="-lpng -lX11 -lz -lm $LIBS" | |
4741 cat > conftest.$ac_ext <<EOF | |
30069 | 4742 #line 4743 "configure" |
25897 | 4743 #include "confdefs.h" |
4744 /* Override any gcc2 internal prototype to avoid an error. */ | |
4745 /* We use char because int might match the return type of a gcc2 | |
4746 builtin and then its argument prototype would still apply. */ | |
4747 char png_set_expand(); | |
4748 | |
4749 int main() { | |
4750 png_set_expand() | |
4751 ; return 0; } | |
4752 EOF | |
30069 | 4753 if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4754 rm -rf conftest* |
4755 eval "ac_cv_lib_$ac_lib_var=yes" | |
4756 else | |
4757 echo "configure: failed program was:" >&5 | |
4758 cat conftest.$ac_ext >&5 | |
4759 rm -rf conftest* | |
4760 eval "ac_cv_lib_$ac_lib_var=no" | |
4761 fi | |
4762 rm -f conftest* | |
4763 LIBS="$ac_save_LIBS" | |
4764 | |
4765 fi | |
4766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4767 echo "$ac_t""yes" 1>&6 | |
4768 HAVE_PNG=yes | |
4769 else | |
4770 echo "$ac_t""no" 1>&6 | |
4771 fi | |
4772 | |
4773 else | |
4774 echo "$ac_t""no" 1>&6 | |
4775 fi | |
4776 | |
4777 CFLAGS="${old_c_flags}" | |
4778 fi | |
4779 | |
4780 if test "${HAVE_PNG}" = "yes"; then | |
4781 cat >> confdefs.h <<\EOF | |
4782 #define HAVE_PNG 1 | |
4783 EOF | |
4784 | |
4785 fi | |
4786 fi | |
4787 | |
4788 ### Use -ltiff if available, unless `--with-tiff=no'. | |
4789 HAVE_TIFF=no | |
4790 if test "${HAVE_X11}" = "yes"; then | |
4791 if test "${with_tiff}" != "no"; then | |
4792 old_c_flags="${CFLAGS}" | |
4793 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4794 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
4795 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
30069 | 4796 echo "configure:4797: checking for tiffio.h" >&5 |
25897 | 4797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4798 echo $ac_n "(cached) $ac_c" 1>&6 | |
4799 else | |
4800 cat > conftest.$ac_ext <<EOF | |
30069 | 4801 #line 4802 "configure" |
25897 | 4802 #include "confdefs.h" |
4803 #include <tiffio.h> | |
4804 EOF | |
4805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 4806 { (eval echo configure:4807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4808 if test -z "$ac_err"; then |
4809 rm -rf conftest* | |
4810 eval "ac_cv_header_$ac_safe=yes" | |
4811 else | |
4812 echo "$ac_err" >&5 | |
4813 echo "configure: failed program was:" >&5 | |
4814 cat conftest.$ac_ext >&5 | |
4815 rm -rf conftest* | |
4816 eval "ac_cv_header_$ac_safe=no" | |
4817 fi | |
4818 rm -f conftest* | |
4819 fi | |
4820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4821 echo "$ac_t""yes" 1>&6 | |
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4822 tifflibs="-lX11 -lz -lm" |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4823 # At least one tiff package requires the jpeg library. |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4824 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4825 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
30069 | 4826 echo "configure:4827: checking for TIFFGetVersion in -ltiff" >&5 |
25897 | 4827 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
4828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4829 echo $ac_n "(cached) $ac_c" 1>&6 | |
4830 else | |
4831 ac_save_LIBS="$LIBS" | |
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4832 LIBS="-ltiff $tifflibs $LIBS" |
25897 | 4833 cat > conftest.$ac_ext <<EOF |
30069 | 4834 #line 4835 "configure" |
25897 | 4835 #include "confdefs.h" |
4836 /* Override any gcc2 internal prototype to avoid an error. */ | |
4837 /* We use char because int might match the return type of a gcc2 | |
4838 builtin and then its argument prototype would still apply. */ | |
4839 char TIFFGetVersion(); | |
4840 | |
4841 int main() { | |
4842 TIFFGetVersion() | |
4843 ; return 0; } | |
4844 EOF | |
30069 | 4845 if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4846 rm -rf conftest* |
4847 eval "ac_cv_lib_$ac_lib_var=yes" | |
4848 else | |
4849 echo "configure: failed program was:" >&5 | |
4850 cat conftest.$ac_ext >&5 | |
4851 rm -rf conftest* | |
4852 eval "ac_cv_lib_$ac_lib_var=no" | |
4853 fi | |
4854 rm -f conftest* | |
4855 LIBS="$ac_save_LIBS" | |
4856 | |
4857 fi | |
4858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4859 echo "$ac_t""yes" 1>&6 | |
4860 HAVE_TIFF=yes | |
4861 else | |
4862 echo "$ac_t""no" 1>&6 | |
4863 fi | |
4864 | |
4865 else | |
4866 echo "$ac_t""no" 1>&6 | |
4867 fi | |
4868 | |
4869 CFLAGS="${old_c_flags}" | |
4870 fi | |
4871 | |
4872 if test "${HAVE_TIFF}" = "yes"; then | |
4873 cat >> confdefs.h <<\EOF | |
4874 #define HAVE_TIFF 1 | |
4875 EOF | |
4876 | |
4877 fi | |
4878 fi | |
4879 | |
4880 ### Use -lgif if available, unless `--with-gif=no'. | |
4881 HAVE_GIF=no | |
4882 if test "${HAVE_X11}" = "yes"; then | |
4883 if test "${with_gif}" != "no"; then | |
4884 old_c_flags="${CFLAGS}" | |
4885 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4886 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | |
4887 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | |
30069 | 4888 echo "configure:4889: checking for gif_lib.h" >&5 |
25897 | 4889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4890 echo $ac_n "(cached) $ac_c" 1>&6 | |
4891 else | |
4892 cat > conftest.$ac_ext <<EOF | |
30069 | 4893 #line 4894 "configure" |
25897 | 4894 #include "confdefs.h" |
4895 #include <gif_lib.h> | |
4896 EOF | |
4897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 4898 { (eval echo configure:4899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4900 if test -z "$ac_err"; then |
4901 rm -rf conftest* | |
4902 eval "ac_cv_header_$ac_safe=yes" | |
4903 else | |
4904 echo "$ac_err" >&5 | |
4905 echo "configure: failed program was:" >&5 | |
4906 cat conftest.$ac_ext >&5 | |
4907 rm -rf conftest* | |
4908 eval "ac_cv_header_$ac_safe=no" | |
4909 fi | |
4910 rm -f conftest* | |
4911 fi | |
4912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4913 echo "$ac_t""yes" 1>&6 | |
27356 | 4914 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
30069 | 4915 echo "configure:4916: checking for DGifOpen in -lungif" >&5 |
27356 | 4916 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
25897 | 4917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4918 echo $ac_n "(cached) $ac_c" 1>&6 | |
4919 else | |
4920 ac_save_LIBS="$LIBS" | |
4921 LIBS="-lungif -lX11 $LIBS" | |
4922 cat > conftest.$ac_ext <<EOF | |
30069 | 4923 #line 4924 "configure" |
25897 | 4924 #include "confdefs.h" |
4925 /* Override any gcc2 internal prototype to avoid an error. */ | |
4926 /* We use char because int might match the return type of a gcc2 | |
4927 builtin and then its argument prototype would still apply. */ | |
27356 | 4928 char DGifOpen(); |
25897 | 4929 |
4930 int main() { | |
27356 | 4931 DGifOpen() |
25897 | 4932 ; return 0; } |
4933 EOF | |
30069 | 4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4935 rm -rf conftest* |
4936 eval "ac_cv_lib_$ac_lib_var=yes" | |
4937 else | |
4938 echo "configure: failed program was:" >&5 | |
4939 cat conftest.$ac_ext >&5 | |
4940 rm -rf conftest* | |
4941 eval "ac_cv_lib_$ac_lib_var=no" | |
4942 fi | |
4943 rm -f conftest* | |
4944 LIBS="$ac_save_LIBS" | |
4945 | |
4946 fi | |
4947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4948 echo "$ac_t""yes" 1>&6 | |
4949 HAVE_GIF=yes | |
4950 else | |
4951 echo "$ac_t""no" 1>&6 | |
4952 fi | |
4953 | |
4954 else | |
4955 echo "$ac_t""no" 1>&6 | |
4956 fi | |
4957 | |
4958 CFLAGS="${old_c_flags}" | |
4959 fi | |
4960 | |
4961 if test "${HAVE_GIF}" = "yes"; then | |
4962 cat >> confdefs.h <<\EOF | |
4963 #define HAVE_GIF 1 | |
4964 EOF | |
4965 | |
4966 fi | |
4967 fi | |
4968 | |
4969 # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
4970 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | |
30069 | 4971 echo "configure:4972: checking whether netdb declares h_errno" >&5 |
25897 | 4972 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
4973 echo $ac_n "(cached) $ac_c" 1>&6 | |
4974 else | |
4975 cat > conftest.$ac_ext <<EOF | |
30069 | 4976 #line 4977 "configure" |
25897 | 4977 #include "confdefs.h" |
4978 #include <netdb.h> | |
4979 int main() { | |
4980 return h_errno; | |
4981 ; return 0; } | |
4982 EOF | |
30069 | 4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4984 rm -rf conftest* |
4985 emacs_cv_netdb_declares_h_errno=yes | |
4986 else | |
4987 echo "configure: failed program was:" >&5 | |
4988 cat conftest.$ac_ext >&5 | |
4989 rm -rf conftest* | |
4990 emacs_cv_netdb_declares_h_errno=no | |
4991 fi | |
4992 rm -f conftest* | |
4993 fi | |
4994 | |
4995 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6 | |
4996 if test $emacs_cv_netdb_declares_h_errno = yes; then | |
4997 cat >> confdefs.h <<\EOF | |
4998 #define HAVE_H_ERRNO 1 | |
4999 EOF | |
5000 | |
5001 fi | |
5002 | |
5003 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
5004 # for constant arguments. Useless! | |
5005 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
30069 | 5006 echo "configure:5007: checking for working alloca.h" >&5 |
25897 | 5007 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
5008 echo $ac_n "(cached) $ac_c" 1>&6 | |
5009 else | |
5010 cat > conftest.$ac_ext <<EOF | |
30069 | 5011 #line 5012 "configure" |
25897 | 5012 #include "confdefs.h" |
5013 #include <alloca.h> | |
5014 int main() { | |
30069 | 5015 void *p = alloca(2 * sizeof(int)); |
25897 | 5016 ; return 0; } |
5017 EOF | |
30069 | 5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5019 rm -rf conftest* |
5020 ac_cv_header_alloca_h=yes | |
5021 else | |
5022 echo "configure: failed program was:" >&5 | |
5023 cat conftest.$ac_ext >&5 | |
5024 rm -rf conftest* | |
5025 ac_cv_header_alloca_h=no | |
5026 fi | |
5027 rm -f conftest* | |
5028 fi | |
5029 | |
5030 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
5031 if test $ac_cv_header_alloca_h = yes; then | |
5032 cat >> confdefs.h <<\EOF | |
5033 #define HAVE_ALLOCA_H 1 | |
5034 EOF | |
5035 | |
5036 fi | |
5037 | |
5038 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
30069 | 5039 echo "configure:5040: checking for alloca" >&5 |
25897 | 5040 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
5041 echo $ac_n "(cached) $ac_c" 1>&6 | |
5042 else | |
5043 cat > conftest.$ac_ext <<EOF | |
30069 | 5044 #line 5045 "configure" |
25897 | 5045 #include "confdefs.h" |
5046 | |
5047 #ifdef __GNUC__ | |
5048 # define alloca __builtin_alloca | |
5049 #else | |
27205 | 5050 # ifdef _MSC_VER |
5051 # include <malloc.h> | |
5052 # define alloca _alloca | |
25897 | 5053 # else |
27205 | 5054 # if HAVE_ALLOCA_H |
5055 # include <alloca.h> | |
25897 | 5056 # else |
27205 | 5057 # ifdef _AIX |
5058 #pragma alloca | |
5059 # else | |
5060 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 5061 char *alloca (); |
27205 | 5062 # endif |
25897 | 5063 # endif |
5064 # endif | |
5065 # endif | |
5066 #endif | |
5067 | |
5068 int main() { | |
5069 char *p = (char *) alloca(1); | |
5070 ; return 0; } | |
5071 EOF | |
30069 | 5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5073 rm -rf conftest* |
5074 ac_cv_func_alloca_works=yes | |
5075 else | |
5076 echo "configure: failed program was:" >&5 | |
5077 cat conftest.$ac_ext >&5 | |
5078 rm -rf conftest* | |
5079 ac_cv_func_alloca_works=no | |
5080 fi | |
5081 rm -f conftest* | |
5082 fi | |
5083 | |
5084 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
5085 if test $ac_cv_func_alloca_works = yes; then | |
5086 cat >> confdefs.h <<\EOF | |
5087 #define HAVE_ALLOCA 1 | |
5088 EOF | |
5089 | |
5090 fi | |
5091 | |
5092 if test $ac_cv_func_alloca_works = no; then | |
5093 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5094 # that cause trouble. Some versions do not even contain alloca or | |
5095 # contain a buggy version. If you still want to use their alloca, | |
5096 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
27205 | 5097 ALLOCA=alloca.${ac_objext} |
25897 | 5098 cat >> confdefs.h <<\EOF |
5099 #define C_ALLOCA 1 | |
5100 EOF | |
5101 | |
5102 | |
5103 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
30069 | 5104 echo "configure:5105: checking whether alloca needs Cray hooks" >&5 |
25897 | 5105 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5106 echo $ac_n "(cached) $ac_c" 1>&6 | |
5107 else | |
5108 cat > conftest.$ac_ext <<EOF | |
30069 | 5109 #line 5110 "configure" |
25897 | 5110 #include "confdefs.h" |
5111 #if defined(CRAY) && ! defined(CRAY2) | |
5112 webecray | |
5113 #else | |
5114 wenotbecray | |
5115 #endif | |
5116 | |
5117 EOF | |
5118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5119 egrep "webecray" >/dev/null 2>&1; then | |
5120 rm -rf conftest* | |
5121 ac_cv_os_cray=yes | |
5122 else | |
5123 rm -rf conftest* | |
5124 ac_cv_os_cray=no | |
5125 fi | |
5126 rm -f conftest* | |
5127 | |
5128 fi | |
5129 | |
5130 echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
5131 if test $ac_cv_os_cray = yes; then | |
5132 for ac_func in _getb67 GETB67 getb67; do | |
5133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
30069 | 5134 echo "configure:5135: checking for $ac_func" >&5 |
25897 | 5135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5136 echo $ac_n "(cached) $ac_c" 1>&6 | |
5137 else | |
5138 cat > conftest.$ac_ext <<EOF | |
30069 | 5139 #line 5140 "configure" |
25897 | 5140 #include "confdefs.h" |
5141 /* System header to define __stub macros and hopefully few prototypes, | |
5142 which can conflict with char $ac_func(); below. */ | |
5143 #include <assert.h> | |
5144 /* Override any gcc2 internal prototype to avoid an error. */ | |
5145 /* We use char because int might match the return type of a gcc2 | |
5146 builtin and then its argument prototype would still apply. */ | |
5147 char $ac_func(); | |
5148 | |
5149 int main() { | |
5150 | |
5151 /* The GNU C library defines this for functions which it implements | |
5152 to always fail with ENOSYS. Some functions are actually named | |
5153 something starting with __ and the normal name is an alias. */ | |
5154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5155 choke me | |
5156 #else | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5157 $ac_func(); |
25897 | 5158 #endif |
5159 | |
5160 ; return 0; } | |
5161 EOF | |
30069 | 5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5163 rm -rf conftest* |
5164 eval "ac_cv_func_$ac_func=yes" | |
5165 else | |
5166 echo "configure: failed program was:" >&5 | |
5167 cat conftest.$ac_ext >&5 | |
5168 rm -rf conftest* | |
5169 eval "ac_cv_func_$ac_func=no" | |
5170 fi | |
5171 rm -f conftest* | |
5172 fi | |
5173 | |
5174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5175 echo "$ac_t""yes" 1>&6 | |
5176 cat >> confdefs.h <<EOF | |
5177 #define CRAY_STACKSEG_END $ac_func | |
5178 EOF | |
5179 | |
5180 break | |
5181 else | |
5182 echo "$ac_t""no" 1>&6 | |
5183 fi | |
5184 | |
5185 done | |
5186 fi | |
5187 | |
5188 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
30069 | 5189 echo "configure:5190: checking stack direction for C alloca" >&5 |
25897 | 5190 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5191 echo $ac_n "(cached) $ac_c" 1>&6 | |
5192 else | |
5193 if test "$cross_compiling" = yes; then | |
5194 ac_cv_c_stack_direction=0 | |
5195 else | |
5196 cat > conftest.$ac_ext <<EOF | |
30069 | 5197 #line 5198 "configure" |
25897 | 5198 #include "confdefs.h" |
5199 find_stack_direction () | |
5200 { | |
5201 static char *addr = 0; | |
5202 auto char dummy; | |
5203 if (addr == 0) | |
5204 { | |
5205 addr = &dummy; | |
5206 return find_stack_direction (); | |
5207 } | |
5208 else | |
5209 return (&dummy > addr) ? 1 : -1; | |
5210 } | |
5211 main () | |
5212 { | |
5213 exit (find_stack_direction() < 0); | |
5214 } | |
5215 EOF | |
30069 | 5216 if { (eval echo configure:5217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 5217 then |
5218 ac_cv_c_stack_direction=1 | |
5219 else | |
5220 echo "configure: failed program was:" >&5 | |
5221 cat conftest.$ac_ext >&5 | |
5222 rm -fr conftest* | |
5223 ac_cv_c_stack_direction=-1 | |
5224 fi | |
5225 rm -fr conftest* | |
5226 fi | |
5227 | |
5228 fi | |
5229 | |
5230 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
5231 cat >> confdefs.h <<EOF | |
5232 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5233 EOF | |
5234 | |
5235 fi | |
5236 | |
5237 | |
5238 # fmod, logb, and frexp are found in -lm on most systems. | |
5239 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
5240 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | |
30069 | 5241 echo "configure:5242: checking for sqrt in -lm" >&5 |
25897 | 5242 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
5243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5244 echo $ac_n "(cached) $ac_c" 1>&6 | |
5245 else | |
5246 ac_save_LIBS="$LIBS" | |
5247 LIBS="-lm $LIBS" | |
5248 cat > conftest.$ac_ext <<EOF | |
30069 | 5249 #line 5250 "configure" |
25897 | 5250 #include "confdefs.h" |
5251 /* Override any gcc2 internal prototype to avoid an error. */ | |
5252 /* We use char because int might match the return type of a gcc2 | |
5253 builtin and then its argument prototype would still apply. */ | |
5254 char sqrt(); | |
5255 | |
5256 int main() { | |
5257 sqrt() | |
5258 ; return 0; } | |
5259 EOF | |
30069 | 5260 if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5261 rm -rf conftest* |
5262 eval "ac_cv_lib_$ac_lib_var=yes" | |
5263 else | |
5264 echo "configure: failed program was:" >&5 | |
5265 cat conftest.$ac_ext >&5 | |
5266 rm -rf conftest* | |
5267 eval "ac_cv_lib_$ac_lib_var=no" | |
5268 fi | |
5269 rm -f conftest* | |
5270 LIBS="$ac_save_LIBS" | |
5271 | |
5272 fi | |
5273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5274 echo "$ac_t""yes" 1>&6 | |
5275 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5276 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5277 cat >> confdefs.h <<EOF | |
5278 #define $ac_tr_lib 1 | |
5279 EOF | |
5280 | |
5281 LIBS="-lm $LIBS" | |
5282 | |
5283 else | |
5284 echo "$ac_t""no" 1>&6 | |
5285 fi | |
5286 | |
5287 | |
5288 # Check for mail-locking functions in a "mail" library | |
5289 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | |
30069 | 5290 echo "configure:5291: checking for maillock in -lmail" >&5 |
25897 | 5291 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
5292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5293 echo $ac_n "(cached) $ac_c" 1>&6 | |
5294 else | |
5295 ac_save_LIBS="$LIBS" | |
5296 LIBS="-lmail $LIBS" | |
5297 cat > conftest.$ac_ext <<EOF | |
30069 | 5298 #line 5299 "configure" |
25897 | 5299 #include "confdefs.h" |
5300 /* Override any gcc2 internal prototype to avoid an error. */ | |
5301 /* We use char because int might match the return type of a gcc2 | |
5302 builtin and then its argument prototype would still apply. */ | |
5303 char maillock(); | |
5304 | |
5305 int main() { | |
5306 maillock() | |
5307 ; return 0; } | |
5308 EOF | |
30069 | 5309 if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5310 rm -rf conftest* |
5311 eval "ac_cv_lib_$ac_lib_var=yes" | |
5312 else | |
5313 echo "configure: failed program was:" >&5 | |
5314 cat conftest.$ac_ext >&5 | |
5315 rm -rf conftest* | |
5316 eval "ac_cv_lib_$ac_lib_var=no" | |
5317 fi | |
5318 rm -f conftest* | |
5319 LIBS="$ac_save_LIBS" | |
5320 | |
5321 fi | |
5322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5323 echo "$ac_t""yes" 1>&6 | |
5324 ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5326 cat >> confdefs.h <<EOF | |
5327 #define $ac_tr_lib 1 | |
5328 EOF | |
5329 | |
5330 LIBS="-lmail $LIBS" | |
5331 | |
5332 else | |
5333 echo "$ac_t""no" 1>&6 | |
5334 fi | |
5335 | |
5336 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | |
30069 | 5337 echo "configure:5338: checking for maillock in -llockfile" >&5 |
25897 | 5338 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5340 echo $ac_n "(cached) $ac_c" 1>&6 | |
5341 else | |
5342 ac_save_LIBS="$LIBS" | |
5343 LIBS="-llockfile $LIBS" | |
5344 cat > conftest.$ac_ext <<EOF | |
30069 | 5345 #line 5346 "configure" |
25897 | 5346 #include "confdefs.h" |
5347 /* Override any gcc2 internal prototype to avoid an error. */ | |
5348 /* We use char because int might match the return type of a gcc2 | |
5349 builtin and then its argument prototype would still apply. */ | |
5350 char maillock(); | |
5351 | |
5352 int main() { | |
5353 maillock() | |
5354 ; return 0; } | |
5355 EOF | |
30069 | 5356 if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5357 rm -rf conftest* |
5358 eval "ac_cv_lib_$ac_lib_var=yes" | |
5359 else | |
5360 echo "configure: failed program was:" >&5 | |
5361 cat conftest.$ac_ext >&5 | |
5362 rm -rf conftest* | |
5363 eval "ac_cv_lib_$ac_lib_var=no" | |
5364 fi | |
5365 rm -f conftest* | |
5366 LIBS="$ac_save_LIBS" | |
5367 | |
5368 fi | |
5369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5370 echo "$ac_t""yes" 1>&6 | |
5371 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5372 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5373 cat >> confdefs.h <<EOF | |
5374 #define $ac_tr_lib 1 | |
5375 EOF | |
5376 | |
5377 LIBS="-llockfile $LIBS" | |
5378 | |
5379 else | |
5380 echo "$ac_t""no" 1>&6 | |
5381 fi | |
5382 | |
5383 # If we have the shared liblockfile, assume we must use it for mail | |
5384 # locking (e.g. Debian). If we couldn't link against liblockfile | |
5385 # (no liblockfile.a installed), ensure that we don't need to. | |
5386 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
5387 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
5388 set dummy liblockfile.so; ac_word=$2 | |
5389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
30069 | 5390 echo "configure:5391: checking for $ac_word" >&5 |
25897 | 5391 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5392 echo $ac_n "(cached) $ac_c" 1>&6 | |
5393 else | |
5394 if test -n "$liblockfile"; then | |
5395 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
5396 else | |
27205 | 5397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5398 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
5399 for ac_dir in $ac_dummy; do | |
25897 | 5400 test -z "$ac_dir" && ac_dir=. |
5401 if test -f $ac_dir/$ac_word; then | |
5402 ac_cv_prog_liblockfile="yes" | |
5403 break | |
5404 fi | |
5405 done | |
5406 IFS="$ac_save_ifs" | |
5407 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
5408 fi | |
5409 fi | |
5410 liblockfile="$ac_cv_prog_liblockfile" | |
5411 if test -n "$liblockfile"; then | |
5412 echo "$ac_t""$liblockfile" 1>&6 | |
5413 else | |
5414 echo "$ac_t""no" 1>&6 | |
5415 fi | |
5416 | |
5417 if test $ac_cv_prog_liblockfile = yes; then | |
5418 { echo "configure: error: Shared liblockfile found but can't link against it. | |
5419 This probably means that movemail could lose mail. | |
5420 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; } | |
5421 else cat >> confdefs.h <<\EOF | |
5422 #define LIBMAIL -llockfile | |
5423 EOF | |
5424 | |
5425 fi | |
5426 else : | |
5427 fi | |
5428 for ac_func in touchlock | |
5429 do | |
5430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
30069 | 5431 echo "configure:5432: checking for $ac_func" >&5 |
25897 | 5432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5433 echo $ac_n "(cached) $ac_c" 1>&6 | |
5434 else | |
5435 cat > conftest.$ac_ext <<EOF | |
30069 | 5436 #line 5437 "configure" |
25897 | 5437 #include "confdefs.h" |
5438 /* System header to define __stub macros and hopefully few prototypes, | |
5439 which can conflict with char $ac_func(); below. */ | |
5440 #include <assert.h> | |
5441 /* Override any gcc2 internal prototype to avoid an error. */ | |
5442 /* We use char because int might match the return type of a gcc2 | |
5443 builtin and then its argument prototype would still apply. */ | |
5444 char $ac_func(); | |
5445 | |
5446 int main() { | |
5447 | |
5448 /* The GNU C library defines this for functions which it implements | |
5449 to always fail with ENOSYS. Some functions are actually named | |
5450 something starting with __ and the normal name is an alias. */ | |
5451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5452 choke me | |
5453 #else | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5454 $ac_func(); |
25897 | 5455 #endif |
5456 | |
5457 ; return 0; } | |
5458 EOF | |
30069 | 5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5460 rm -rf conftest* |
5461 eval "ac_cv_func_$ac_func=yes" | |
5462 else | |
5463 echo "configure: failed program was:" >&5 | |
5464 cat conftest.$ac_ext >&5 | |
5465 rm -rf conftest* | |
5466 eval "ac_cv_func_$ac_func=no" | |
5467 fi | |
5468 rm -f conftest* | |
5469 fi | |
5470 | |
5471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5472 echo "$ac_t""yes" 1>&6 | |
5473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5474 cat >> confdefs.h <<EOF | |
5475 #define $ac_tr_func 1 | |
5476 EOF | |
5477 | |
5478 else | |
5479 echo "$ac_t""no" 1>&6 | |
5480 fi | |
5481 done | |
5482 | |
5483 for ac_hdr in maillock.h | |
5484 do | |
5485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
30069 | 5487 echo "configure:5488: checking for $ac_hdr" >&5 |
25897 | 5488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5489 echo $ac_n "(cached) $ac_c" 1>&6 | |
5490 else | |
5491 cat > conftest.$ac_ext <<EOF | |
30069 | 5492 #line 5493 "configure" |
25897 | 5493 #include "confdefs.h" |
5494 #include <$ac_hdr> | |
5495 EOF | |
5496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 5497 { (eval echo configure:5498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 5499 if test -z "$ac_err"; then |
5500 rm -rf conftest* | |
5501 eval "ac_cv_header_$ac_safe=yes" | |
5502 else | |
5503 echo "$ac_err" >&5 | |
5504 echo "configure: failed program was:" >&5 | |
5505 cat conftest.$ac_ext >&5 | |
5506 rm -rf conftest* | |
5507 eval "ac_cv_header_$ac_safe=no" | |
5508 fi | |
5509 rm -f conftest* | |
5510 fi | |
5511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5512 echo "$ac_t""yes" 1>&6 | |
5513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5514 cat >> confdefs.h <<EOF | |
5515 #define $ac_tr_hdr 1 | |
5516 EOF | |
5517 | |
5518 else | |
5519 echo "$ac_t""no" 1>&6 | |
5520 fi | |
5521 done | |
5522 | |
5523 | |
29906 | 5524 for ac_func in gethostname getdomainname dup2 \ |
25897 | 5525 rename closedir mkdir rmdir sysinfo \ |
5526 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
5527 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
29733 | 5528 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
29834 | 5529 __fpending mblen mbrlen strsignal setitimer ualarm |
25897 | 5530 do |
5531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
30069 | 5532 echo "configure:5533: checking for $ac_func" >&5 |
25897 | 5533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5534 echo $ac_n "(cached) $ac_c" 1>&6 | |
5535 else | |
5536 cat > conftest.$ac_ext <<EOF | |
30069 | 5537 #line 5538 "configure" |
25897 | 5538 #include "confdefs.h" |
5539 /* System header to define __stub macros and hopefully few prototypes, | |
5540 which can conflict with char $ac_func(); below. */ | |
5541 #include <assert.h> | |
5542 /* Override any gcc2 internal prototype to avoid an error. */ | |
5543 /* We use char because int might match the return type of a gcc2 | |
5544 builtin and then its argument prototype would still apply. */ | |
5545 char $ac_func(); | |
5546 | |
5547 int main() { | |
5548 | |
5549 /* The GNU C library defines this for functions which it implements | |
5550 to always fail with ENOSYS. Some functions are actually named | |
5551 something starting with __ and the normal name is an alias. */ | |
5552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5553 choke me | |
5554 #else | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5555 $ac_func(); |
25897 | 5556 #endif |
5557 | |
5558 ; return 0; } | |
5559 EOF | |
30069 | 5560 if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5561 rm -rf conftest* |
5562 eval "ac_cv_func_$ac_func=yes" | |
5563 else | |
5564 echo "configure: failed program was:" >&5 | |
5565 cat conftest.$ac_ext >&5 | |
5566 rm -rf conftest* | |
5567 eval "ac_cv_func_$ac_func=no" | |
5568 fi | |
5569 rm -f conftest* | |
5570 fi | |
5571 | |
5572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5573 echo "$ac_t""yes" 1>&6 | |
5574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5575 cat >> confdefs.h <<EOF | |
5576 #define $ac_tr_func 1 | |
5577 EOF | |
5578 | |
5579 else | |
5580 echo "$ac_t""no" 1>&6 | |
5581 fi | |
5582 done | |
5583 | |
5584 | |
28607 | 5585 for ac_hdr in sys/time.h unistd.h |
5586 do | |
5587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
30069 | 5589 echo "configure:5590: checking for $ac_hdr" >&5 |
28607 | 5590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5591 echo $ac_n "(cached) $ac_c" 1>&6 | |
5592 else | |
5593 cat > conftest.$ac_ext <<EOF | |
30069 | 5594 #line 5595 "configure" |
28607 | 5595 #include "confdefs.h" |
5596 #include <$ac_hdr> | |
5597 EOF | |
5598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 5599 { (eval echo configure:5600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
28607 | 5600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5601 if test -z "$ac_err"; then | |
5602 rm -rf conftest* | |
5603 eval "ac_cv_header_$ac_safe=yes" | |
5604 else | |
5605 echo "$ac_err" >&5 | |
5606 echo "configure: failed program was:" >&5 | |
5607 cat conftest.$ac_ext >&5 | |
5608 rm -rf conftest* | |
5609 eval "ac_cv_header_$ac_safe=no" | |
5610 fi | |
5611 rm -f conftest* | |
5612 fi | |
5613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5614 echo "$ac_t""yes" 1>&6 | |
5615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5616 cat >> confdefs.h <<EOF | |
5617 #define $ac_tr_hdr 1 | |
5618 EOF | |
5619 | |
5620 else | |
5621 echo "$ac_t""no" 1>&6 | |
5622 fi | |
5623 done | |
5624 | |
5625 for ac_func in alarm | |
5626 do | |
5627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
30069 | 5628 echo "configure:5629: checking for $ac_func" >&5 |
28607 | 5629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5630 echo $ac_n "(cached) $ac_c" 1>&6 | |
5631 else | |
5632 cat > conftest.$ac_ext <<EOF | |
30069 | 5633 #line 5634 "configure" |
28607 | 5634 #include "confdefs.h" |
5635 /* System header to define __stub macros and hopefully few prototypes, | |
5636 which can conflict with char $ac_func(); below. */ | |
5637 #include <assert.h> | |
5638 /* Override any gcc2 internal prototype to avoid an error. */ | |
5639 /* We use char because int might match the return type of a gcc2 | |
5640 builtin and then its argument prototype would still apply. */ | |
5641 char $ac_func(); | |
5642 | |
5643 int main() { | |
5644 | |
5645 /* The GNU C library defines this for functions which it implements | |
5646 to always fail with ENOSYS. Some functions are actually named | |
5647 something starting with __ and the normal name is an alias. */ | |
5648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5649 choke me | |
5650 #else | |
5651 $ac_func(); | |
5652 #endif | |
5653 | |
5654 ; return 0; } | |
5655 EOF | |
30069 | 5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
28607 | 5657 rm -rf conftest* |
5658 eval "ac_cv_func_$ac_func=yes" | |
5659 else | |
5660 echo "configure: failed program was:" >&5 | |
5661 cat conftest.$ac_ext >&5 | |
5662 rm -rf conftest* | |
5663 eval "ac_cv_func_$ac_func=no" | |
5664 fi | |
5665 rm -f conftest* | |
5666 fi | |
5667 | |
5668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5669 echo "$ac_t""yes" 1>&6 | |
5670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5671 cat >> confdefs.h <<EOF | |
5672 #define $ac_tr_func 1 | |
5673 EOF | |
5674 | |
5675 else | |
5676 echo "$ac_t""no" 1>&6 | |
5677 fi | |
5678 done | |
5679 | |
5680 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | |
30069 | 5681 echo "configure:5682: checking for working mktime" >&5 |
28607 | 5682 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then |
5683 echo $ac_n "(cached) $ac_c" 1>&6 | |
5684 else | |
5685 if test "$cross_compiling" = yes; then | |
5686 ac_cv_func_working_mktime=no | |
5687 else | |
5688 cat > conftest.$ac_ext <<EOF | |
30069 | 5689 #line 5690 "configure" |
28607 | 5690 #include "confdefs.h" |
5691 /* Test program from Paul Eggert (eggert@twinsun.com) | |
5692 and Tony Leneis (tony@plaza.ds.adp.com). */ | |
5693 #if TIME_WITH_SYS_TIME | |
5694 # include <sys/time.h> | |
5695 # include <time.h> | |
5696 #else | |
5697 # if HAVE_SYS_TIME_H | |
5698 # include <sys/time.h> | |
5699 # else | |
5700 # include <time.h> | |
5701 # endif | |
5702 #endif | |
5703 | |
5704 #if HAVE_UNISTD_H | |
5705 # include <unistd.h> | |
5706 #endif | |
5707 | |
5708 #if !HAVE_ALARM | |
5709 # define alarm(X) /* empty */ | |
5710 #endif | |
5711 | |
5712 /* Work around redefinition to rpl_putenv by other config tests. */ | |
5713 #undef putenv | |
5714 | |
5715 static time_t time_t_max; | |
5716 | |
5717 /* Values we'll use to set the TZ environment variable. */ | |
5718 static const char *const tz_strings[] = { | |
5719 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
5720 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
5721 }; | |
5722 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
5723 | |
5724 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
5725 Based on a problem report from Andreas Jaeger. */ | |
5726 static void | |
5727 spring_forward_gap () | |
5728 { | |
5729 /* glibc (up to about 1998-10-07) failed this test) */ | |
5730 struct tm tm; | |
5731 | |
5732 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
5733 instead of "TZ=America/Vancouver" in order to detect the bug even | |
5734 on systems that don't support the Olson extension, or don't have the | |
5735 full zoneinfo tables installed. */ | |
5736 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
5737 | |
5738 tm.tm_year = 98; | |
5739 tm.tm_mon = 3; | |
5740 tm.tm_mday = 5; | |
5741 tm.tm_hour = 2; | |
5742 tm.tm_min = 0; | |
5743 tm.tm_sec = 0; | |
5744 tm.tm_isdst = -1; | |
5745 if (mktime (&tm) == (time_t)-1) | |
5746 exit (1); | |
5747 } | |
5748 | |
5749 static void | |
5750 mktime_test (now) | |
5751 time_t now; | |
5752 { | |
5753 struct tm *lt; | |
5754 if ((lt = localtime (&now)) && mktime (lt) != now) | |
5755 exit (1); | |
5756 now = time_t_max - now; | |
5757 if ((lt = localtime (&now)) && mktime (lt) != now) | |
5758 exit (1); | |
5759 } | |
5760 | |
5761 static void | |
5762 irix_6_4_bug () | |
5763 { | |
5764 /* Based on code from Ariel Faigon. */ | |
5765 struct tm tm; | |
5766 tm.tm_year = 96; | |
5767 tm.tm_mon = 3; | |
5768 tm.tm_mday = 0; | |
5769 tm.tm_hour = 0; | |
5770 tm.tm_min = 0; | |
5771 tm.tm_sec = 0; | |
5772 tm.tm_isdst = -1; | |
5773 mktime (&tm); | |
5774 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
5775 exit (1); | |
5776 } | |
5777 | |
5778 static void | |
5779 bigtime_test (j) | |
5780 int j; | |
5781 { | |
5782 struct tm tm; | |
5783 time_t now; | |
5784 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
5785 now = mktime (&tm); | |
5786 if (now != (time_t) -1) | |
5787 { | |
5788 struct tm *lt = localtime (&now); | |
5789 if (! (lt | |
5790 && lt->tm_year == tm.tm_year | |
5791 && lt->tm_mon == tm.tm_mon | |
5792 && lt->tm_mday == tm.tm_mday | |
5793 && lt->tm_hour == tm.tm_hour | |
5794 && lt->tm_min == tm.tm_min | |
5795 && lt->tm_sec == tm.tm_sec | |
5796 && lt->tm_yday == tm.tm_yday | |
5797 && lt->tm_wday == tm.tm_wday | |
5798 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
5799 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
5800 exit (1); | |
5801 } | |
5802 } | |
5803 | |
5804 int | |
5805 main () | |
5806 { | |
5807 time_t t, delta; | |
5808 int i, j; | |
5809 | |
5810 /* This test makes some buggy mktime implementations loop. | |
5811 Give up after 60 seconds; a mktime slower than that | |
5812 isn't worth using anyway. */ | |
5813 alarm (60); | |
5814 | |
5815 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
5816 continue; | |
5817 time_t_max--; | |
5818 delta = time_t_max / 997; /* a suitable prime number */ | |
5819 for (i = 0; i < N_STRINGS; i++) | |
5820 { | |
5821 if (tz_strings[i]) | |
5822 putenv (tz_strings[i]); | |
5823 | |
5824 for (t = 0; t <= time_t_max - delta; t += delta) | |
5825 mktime_test (t); | |
5826 mktime_test ((time_t) 60 * 60); | |
5827 mktime_test ((time_t) 60 * 60 * 24); | |
5828 | |
5829 for (j = 1; 0 < j; j *= 2) | |
5830 bigtime_test (j); | |
5831 bigtime_test (j - 1); | |
5832 } | |
5833 irix_6_4_bug (); | |
5834 spring_forward_gap (); | |
5835 exit (0); | |
5836 } | |
5837 EOF | |
30069 | 5838 if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
28607 | 5839 then |
5840 ac_cv_func_working_mktime=yes | |
5841 else | |
5842 echo "configure: failed program was:" >&5 | |
5843 cat conftest.$ac_ext >&5 | |
5844 rm -fr conftest* | |
5845 ac_cv_func_working_mktime=no | |
5846 fi | |
5847 rm -fr conftest* | |
5848 fi | |
5849 | |
5850 fi | |
5851 | |
5852 echo "$ac_t""$ac_cv_func_working_mktime" 1>&6 | |
5853 if test $ac_cv_func_working_mktime = no; then | |
5854 LIBOBJS="$LIBOBJS mktime.${ac_objext}" | |
5855 fi | |
5856 | |
5857 if test "$ac_cv_func_working_mktime" = no; then | |
5858 cat >> confdefs.h <<\EOF | |
5859 #define BROKEN_MKTIME 1 | |
5860 EOF | |
5861 | |
5862 fi | |
5863 | |
29834 | 5864 ac_have_func=no # yes means we've found a way to get the load average. |
5865 | |
5866 # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
5867 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
5868 # to get the right answer into the cache. | |
5869 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | |
30069 | 5870 echo "configure:5871: checking for elf_begin in -lelf" >&5 |
29834 | 5871 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` |
5872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5873 echo $ac_n "(cached) $ac_c" 1>&6 | |
5874 else | |
5875 ac_save_LIBS="$LIBS" | |
5876 LIBS="-lelf $LIBS" | |
5877 cat > conftest.$ac_ext <<EOF | |
30069 | 5878 #line 5879 "configure" |
29834 | 5879 #include "confdefs.h" |
5880 /* Override any gcc2 internal prototype to avoid an error. */ | |
5881 /* We use char because int might match the return type of a gcc2 | |
5882 builtin and then its argument prototype would still apply. */ | |
5883 char elf_begin(); | |
5884 | |
5885 int main() { | |
5886 elf_begin() | |
5887 ; return 0; } | |
5888 EOF | |
30069 | 5889 if { (eval echo configure:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 5890 rm -rf conftest* |
5891 eval "ac_cv_lib_$ac_lib_var=yes" | |
5892 else | |
5893 echo "configure: failed program was:" >&5 | |
5894 cat conftest.$ac_ext >&5 | |
5895 rm -rf conftest* | |
5896 eval "ac_cv_lib_$ac_lib_var=no" | |
5897 fi | |
5898 rm -f conftest* | |
5899 LIBS="$ac_save_LIBS" | |
5900 | |
5901 fi | |
5902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5903 echo "$ac_t""yes" 1>&6 | |
5904 LIBS="-lelf $LIBS" | |
5905 else | |
5906 echo "$ac_t""no" 1>&6 | |
5907 fi | |
5908 | |
5909 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | |
30069 | 5910 echo "configure:5911: checking for kvm_open in -lkvm" >&5 |
29834 | 5911 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` |
5912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5913 echo $ac_n "(cached) $ac_c" 1>&6 | |
5914 else | |
5915 ac_save_LIBS="$LIBS" | |
5916 LIBS="-lkvm $LIBS" | |
5917 cat > conftest.$ac_ext <<EOF | |
30069 | 5918 #line 5919 "configure" |
29834 | 5919 #include "confdefs.h" |
5920 /* Override any gcc2 internal prototype to avoid an error. */ | |
5921 /* We use char because int might match the return type of a gcc2 | |
5922 builtin and then its argument prototype would still apply. */ | |
5923 char kvm_open(); | |
5924 | |
5925 int main() { | |
5926 kvm_open() | |
5927 ; return 0; } | |
5928 EOF | |
30069 | 5929 if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 5930 rm -rf conftest* |
5931 eval "ac_cv_lib_$ac_lib_var=yes" | |
5932 else | |
5933 echo "configure: failed program was:" >&5 | |
5934 cat conftest.$ac_ext >&5 | |
5935 rm -rf conftest* | |
5936 eval "ac_cv_lib_$ac_lib_var=no" | |
5937 fi | |
5938 rm -f conftest* | |
5939 LIBS="$ac_save_LIBS" | |
5940 | |
5941 fi | |
5942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5943 echo "$ac_t""yes" 1>&6 | |
5944 LIBS="-lkvm $LIBS" | |
5945 else | |
5946 echo "$ac_t""no" 1>&6 | |
5947 fi | |
5948 | |
5949 # Check for the 4.4BSD definition of getloadavg. | |
5950 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | |
30069 | 5951 echo "configure:5952: checking for getloadavg in -lutil" >&5 |
29834 | 5952 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` |
5953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5954 echo $ac_n "(cached) $ac_c" 1>&6 | |
5955 else | |
5956 ac_save_LIBS="$LIBS" | |
5957 LIBS="-lutil $LIBS" | |
5958 cat > conftest.$ac_ext <<EOF | |
30069 | 5959 #line 5960 "configure" |
29834 | 5960 #include "confdefs.h" |
5961 /* Override any gcc2 internal prototype to avoid an error. */ | |
5962 /* We use char because int might match the return type of a gcc2 | |
5963 builtin and then its argument prototype would still apply. */ | |
5964 char getloadavg(); | |
5965 | |
5966 int main() { | |
5967 getloadavg() | |
5968 ; return 0; } | |
5969 EOF | |
30069 | 5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 5971 rm -rf conftest* |
5972 eval "ac_cv_lib_$ac_lib_var=yes" | |
5973 else | |
5974 echo "configure: failed program was:" >&5 | |
5975 cat conftest.$ac_ext >&5 | |
5976 rm -rf conftest* | |
5977 eval "ac_cv_lib_$ac_lib_var=no" | |
5978 fi | |
5979 rm -f conftest* | |
5980 LIBS="$ac_save_LIBS" | |
5981 | |
5982 fi | |
5983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5984 echo "$ac_t""yes" 1>&6 | |
5985 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
5986 else | |
5987 echo "$ac_t""no" 1>&6 | |
5988 fi | |
5989 | |
5990 | |
5991 if test $ac_have_func = no; then | |
5992 # There is a commonly available library for RS/6000 AIX. | |
5993 # Since it is not a standard part of AIX, it might be installed locally. | |
5994 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | |
5995 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | |
30069 | 5996 echo "configure:5997: checking for getloadavg in -lgetloadavg" >&5 |
29834 | 5997 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` |
5998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5999 echo $ac_n "(cached) $ac_c" 1>&6 | |
6000 else | |
6001 ac_save_LIBS="$LIBS" | |
6002 LIBS="-lgetloadavg $LIBS" | |
6003 cat > conftest.$ac_ext <<EOF | |
30069 | 6004 #line 6005 "configure" |
29834 | 6005 #include "confdefs.h" |
6006 /* Override any gcc2 internal prototype to avoid an error. */ | |
6007 /* We use char because int might match the return type of a gcc2 | |
6008 builtin and then its argument prototype would still apply. */ | |
6009 char getloadavg(); | |
6010 | |
6011 int main() { | |
6012 getloadavg() | |
6013 ; return 0; } | |
6014 EOF | |
30069 | 6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 6016 rm -rf conftest* |
6017 eval "ac_cv_lib_$ac_lib_var=yes" | |
6018 else | |
6019 echo "configure: failed program was:" >&5 | |
6020 cat conftest.$ac_ext >&5 | |
6021 rm -rf conftest* | |
6022 eval "ac_cv_lib_$ac_lib_var=no" | |
6023 fi | |
6024 rm -f conftest* | |
6025 LIBS="$ac_save_LIBS" | |
6026 | |
6027 fi | |
6028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6029 echo "$ac_t""yes" 1>&6 | |
6030 LIBS="-lgetloadavg $LIBS" | |
6031 else | |
6032 echo "$ac_t""no" 1>&6 | |
6033 LIBS="$ac_getloadavg_LIBS" | |
6034 fi | |
6035 | |
6036 fi | |
6037 | |
6038 # Make sure it is really in the library, if we think we found it. | |
6039 for ac_func in getloadavg | |
6040 do | |
6041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
30069 | 6042 echo "configure:6043: checking for $ac_func" >&5 |
29834 | 6043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6044 echo $ac_n "(cached) $ac_c" 1>&6 | |
6045 else | |
6046 cat > conftest.$ac_ext <<EOF | |
30069 | 6047 #line 6048 "configure" |
29834 | 6048 #include "confdefs.h" |
6049 /* System header to define __stub macros and hopefully few prototypes, | |
6050 which can conflict with char $ac_func(); below. */ | |
6051 #include <assert.h> | |
6052 /* Override any gcc2 internal prototype to avoid an error. */ | |
6053 /* We use char because int might match the return type of a gcc2 | |
6054 builtin and then its argument prototype would still apply. */ | |
6055 char $ac_func(); | |
6056 | |
6057 int main() { | |
6058 | |
6059 /* The GNU C library defines this for functions which it implements | |
6060 to always fail with ENOSYS. Some functions are actually named | |
6061 something starting with __ and the normal name is an alias. */ | |
6062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6063 choke me | |
6064 #else | |
6065 $ac_func(); | |
6066 #endif | |
6067 | |
6068 ; return 0; } | |
6069 EOF | |
30069 | 6070 if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 6071 rm -rf conftest* |
6072 eval "ac_cv_func_$ac_func=yes" | |
6073 else | |
6074 echo "configure: failed program was:" >&5 | |
6075 cat conftest.$ac_ext >&5 | |
6076 rm -rf conftest* | |
6077 eval "ac_cv_func_$ac_func=no" | |
6078 fi | |
6079 rm -f conftest* | |
6080 fi | |
6081 | |
6082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6083 echo "$ac_t""yes" 1>&6 | |
6084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6085 cat >> confdefs.h <<EOF | |
6086 #define $ac_tr_func 1 | |
6087 EOF | |
6088 | |
6089 else | |
6090 echo "$ac_t""no" 1>&6 | |
6091 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | |
6092 fi | |
6093 done | |
6094 | |
6095 | |
6096 | |
6097 if test $ac_cv_func_getloadavg = yes; then | |
6098 cat >> confdefs.h <<\EOF | |
6099 #define HAVE_GETLOADAVG 1 | |
6100 EOF | |
6101 | |
6102 ac_have_func=yes | |
6103 else | |
6104 # Figure out what our getloadavg.c needs. | |
6105 ac_have_func=no | |
6106 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | |
6107 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | |
30069 | 6108 echo "configure:6109: checking for sys/dg_sys_info.h" >&5 |
29834 | 6109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6110 echo $ac_n "(cached) $ac_c" 1>&6 | |
6111 else | |
6112 cat > conftest.$ac_ext <<EOF | |
30069 | 6113 #line 6114 "configure" |
29834 | 6114 #include "confdefs.h" |
6115 #include <sys/dg_sys_info.h> | |
6116 EOF | |
6117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 6118 { (eval echo configure:6119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29834 | 6119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6120 if test -z "$ac_err"; then | |
6121 rm -rf conftest* | |
6122 eval "ac_cv_header_$ac_safe=yes" | |
6123 else | |
6124 echo "$ac_err" >&5 | |
6125 echo "configure: failed program was:" >&5 | |
6126 cat conftest.$ac_ext >&5 | |
6127 rm -rf conftest* | |
6128 eval "ac_cv_header_$ac_safe=no" | |
6129 fi | |
6130 rm -f conftest* | |
6131 fi | |
6132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6133 echo "$ac_t""yes" 1>&6 | |
6134 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6135 #define DGUX 1 | |
6136 EOF | |
6137 | |
6138 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | |
30069 | 6139 echo "configure:6140: checking for dg_sys_info in -ldgc" >&5 |
29834 | 6140 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` |
6141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6142 echo $ac_n "(cached) $ac_c" 1>&6 | |
6143 else | |
6144 ac_save_LIBS="$LIBS" | |
6145 LIBS="-ldgc $LIBS" | |
6146 cat > conftest.$ac_ext <<EOF | |
30069 | 6147 #line 6148 "configure" |
29834 | 6148 #include "confdefs.h" |
6149 /* Override any gcc2 internal prototype to avoid an error. */ | |
6150 /* We use char because int might match the return type of a gcc2 | |
6151 builtin and then its argument prototype would still apply. */ | |
6152 char dg_sys_info(); | |
6153 | |
6154 int main() { | |
6155 dg_sys_info() | |
6156 ; return 0; } | |
6157 EOF | |
30069 | 6158 if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 6159 rm -rf conftest* |
6160 eval "ac_cv_lib_$ac_lib_var=yes" | |
6161 else | |
6162 echo "configure: failed program was:" >&5 | |
6163 cat conftest.$ac_ext >&5 | |
6164 rm -rf conftest* | |
6165 eval "ac_cv_lib_$ac_lib_var=no" | |
6166 fi | |
6167 rm -f conftest* | |
6168 LIBS="$ac_save_LIBS" | |
6169 | |
6170 fi | |
6171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6172 echo "$ac_t""yes" 1>&6 | |
6173 ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6174 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6175 cat >> confdefs.h <<EOF | |
6176 #define $ac_tr_lib 1 | |
6177 EOF | |
6178 | |
6179 LIBS="-ldgc $LIBS" | |
6180 | |
6181 else | |
6182 echo "$ac_t""no" 1>&6 | |
6183 fi | |
6184 | |
6185 else | |
6186 echo "$ac_t""no" 1>&6 | |
6187 fi | |
6188 | |
6189 | |
6190 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
6191 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
6192 # Irix 4.0.5F has the header but not the library. | |
6193 if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then | |
6194 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6195 #define SVR4 1 | |
6196 EOF | |
6197 | |
6198 fi | |
6199 | |
6200 if test $ac_have_func = no; then | |
6201 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | |
6202 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | |
30069 | 6203 echo "configure:6204: checking for inq_stats/cpustats.h" >&5 |
29834 | 6204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6205 echo $ac_n "(cached) $ac_c" 1>&6 | |
6206 else | |
6207 cat > conftest.$ac_ext <<EOF | |
30069 | 6208 #line 6209 "configure" |
29834 | 6209 #include "confdefs.h" |
6210 #include <inq_stats/cpustats.h> | |
6211 EOF | |
6212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 6213 { (eval echo configure:6214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29834 | 6214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6215 if test -z "$ac_err"; then | |
6216 rm -rf conftest* | |
6217 eval "ac_cv_header_$ac_safe=yes" | |
6218 else | |
6219 echo "$ac_err" >&5 | |
6220 echo "configure: failed program was:" >&5 | |
6221 cat conftest.$ac_ext >&5 | |
6222 rm -rf conftest* | |
6223 eval "ac_cv_header_$ac_safe=no" | |
6224 fi | |
6225 rm -f conftest* | |
6226 fi | |
6227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6228 echo "$ac_t""yes" 1>&6 | |
6229 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6230 #define UMAX 1 | |
6231 EOF | |
6232 | |
6233 cat >> confdefs.h <<\EOF | |
6234 #define UMAX4_3 1 | |
6235 EOF | |
6236 | |
6237 else | |
6238 echo "$ac_t""no" 1>&6 | |
6239 fi | |
6240 | |
6241 fi | |
6242 | |
6243 if test $ac_have_func = no; then | |
6244 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | |
6245 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | |
30069 | 6246 echo "configure:6247: checking for sys/cpustats.h" >&5 |
29834 | 6247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6248 echo $ac_n "(cached) $ac_c" 1>&6 | |
6249 else | |
6250 cat > conftest.$ac_ext <<EOF | |
30069 | 6251 #line 6252 "configure" |
29834 | 6252 #include "confdefs.h" |
6253 #include <sys/cpustats.h> | |
6254 EOF | |
6255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 6256 { (eval echo configure:6257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29834 | 6257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6258 if test -z "$ac_err"; then | |
6259 rm -rf conftest* | |
6260 eval "ac_cv_header_$ac_safe=yes" | |
6261 else | |
6262 echo "$ac_err" >&5 | |
6263 echo "configure: failed program was:" >&5 | |
6264 cat conftest.$ac_ext >&5 | |
6265 rm -rf conftest* | |
6266 eval "ac_cv_header_$ac_safe=no" | |
6267 fi | |
6268 rm -f conftest* | |
6269 fi | |
6270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6271 echo "$ac_t""yes" 1>&6 | |
6272 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6273 #define UMAX 1 | |
6274 EOF | |
6275 | |
6276 else | |
6277 echo "$ac_t""no" 1>&6 | |
6278 fi | |
6279 | |
6280 fi | |
6281 | |
6282 if test $ac_have_func = no; then | |
6283 for ac_hdr in mach/mach.h | |
6284 do | |
6285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
30069 | 6287 echo "configure:6288: checking for $ac_hdr" >&5 |
29834 | 6288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6289 echo $ac_n "(cached) $ac_c" 1>&6 | |
6290 else | |
6291 cat > conftest.$ac_ext <<EOF | |
30069 | 6292 #line 6293 "configure" |
29834 | 6293 #include "confdefs.h" |
6294 #include <$ac_hdr> | |
6295 EOF | |
6296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 6297 { (eval echo configure:6298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29834 | 6298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6299 if test -z "$ac_err"; then | |
6300 rm -rf conftest* | |
6301 eval "ac_cv_header_$ac_safe=yes" | |
6302 else | |
6303 echo "$ac_err" >&5 | |
6304 echo "configure: failed program was:" >&5 | |
6305 cat conftest.$ac_ext >&5 | |
6306 rm -rf conftest* | |
6307 eval "ac_cv_header_$ac_safe=no" | |
6308 fi | |
6309 rm -f conftest* | |
6310 fi | |
6311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6312 echo "$ac_t""yes" 1>&6 | |
6313 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6314 cat >> confdefs.h <<EOF | |
6315 #define $ac_tr_hdr 1 | |
6316 EOF | |
6317 | |
6318 else | |
6319 echo "$ac_t""no" 1>&6 | |
6320 fi | |
6321 done | |
6322 | |
6323 fi | |
6324 | |
6325 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | |
6326 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | |
30069 | 6327 echo "configure:6328: checking for nlist.h" >&5 |
29834 | 6328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6329 echo $ac_n "(cached) $ac_c" 1>&6 | |
6330 else | |
6331 cat > conftest.$ac_ext <<EOF | |
30069 | 6332 #line 6333 "configure" |
29834 | 6333 #include "confdefs.h" |
6334 #include <nlist.h> | |
6335 EOF | |
6336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 6337 { (eval echo configure:6338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29834 | 6338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6339 if test -z "$ac_err"; then | |
6340 rm -rf conftest* | |
6341 eval "ac_cv_header_$ac_safe=yes" | |
6342 else | |
6343 echo "$ac_err" >&5 | |
6344 echo "configure: failed program was:" >&5 | |
6345 cat conftest.$ac_ext >&5 | |
6346 rm -rf conftest* | |
6347 eval "ac_cv_header_$ac_safe=no" | |
6348 fi | |
6349 rm -f conftest* | |
6350 fi | |
6351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6352 echo "$ac_t""yes" 1>&6 | |
6353 cat >> confdefs.h <<\EOF | |
6354 #define NLIST_STRUCT 1 | |
6355 EOF | |
6356 | |
6357 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | |
30069 | 6358 echo "configure:6359: checking for n_un in struct nlist" >&5 |
29834 | 6359 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then |
6360 echo $ac_n "(cached) $ac_c" 1>&6 | |
6361 else | |
6362 cat > conftest.$ac_ext <<EOF | |
30069 | 6363 #line 6364 "configure" |
29834 | 6364 #include "confdefs.h" |
6365 #include <nlist.h> | |
6366 int main() { | |
6367 struct nlist n; n.n_un.n_name = 0; | |
6368 ; return 0; } | |
6369 EOF | |
30069 | 6370 if { (eval echo configure:6371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29834 | 6371 rm -rf conftest* |
6372 ac_cv_struct_nlist_n_un=yes | |
6373 else | |
6374 echo "configure: failed program was:" >&5 | |
6375 cat conftest.$ac_ext >&5 | |
6376 rm -rf conftest* | |
6377 ac_cv_struct_nlist_n_un=no | |
6378 fi | |
6379 rm -f conftest* | |
6380 fi | |
6381 | |
6382 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6 | |
6383 if test $ac_cv_struct_nlist_n_un = yes; then | |
6384 cat >> confdefs.h <<\EOF | |
6385 #define NLIST_NAME_UNION 1 | |
6386 EOF | |
6387 | |
6388 fi | |
6389 | |
6390 else | |
6391 echo "$ac_t""no" 1>&6 | |
6392 fi | |
6393 fi # Do not have getloadavg in system libraries. | |
6394 | |
6395 # Some definitions of getloadavg require that the program be installed setgid. | |
6396 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | |
30069 | 6397 echo "configure:6398: checking whether getloadavg requires setgid" >&5 |
29834 | 6398 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then |
6399 echo $ac_n "(cached) $ac_c" 1>&6 | |
6400 else | |
6401 cat > conftest.$ac_ext <<EOF | |
30069 | 6402 #line 6403 "configure" |
29834 | 6403 #include "confdefs.h" |
6404 #include "$srcdir/getloadavg.c" | |
6405 #ifdef LDAV_PRIVILEGED | |
6406 Yowza Am I SETGID yet | |
6407 #endif | |
6408 EOF | |
6409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6410 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
6411 rm -rf conftest* | |
6412 ac_cv_func_getloadavg_setgid=yes | |
6413 else | |
6414 rm -rf conftest* | |
6415 ac_cv_func_getloadavg_setgid=no | |
6416 fi | |
6417 rm -f conftest* | |
6418 | |
6419 fi | |
6420 | |
6421 echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6 | |
6422 if test $ac_cv_func_getloadavg_setgid = yes; then | |
6423 NEED_SETGID=true; cat >> confdefs.h <<\EOF | |
6424 #define GETLOADAVG_PRIVILEGED 1 | |
6425 EOF | |
6426 | |
6427 else | |
6428 NEED_SETGID=false | |
6429 fi | |
6430 | |
6431 if test $ac_cv_func_getloadavg_setgid = yes; then | |
6432 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | |
30069 | 6433 echo "configure:6434: checking group of /dev/kmem" >&5 |
29834 | 6434 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then |
6435 echo $ac_n "(cached) $ac_c" 1>&6 | |
6436 else | |
6437 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
6438 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
6439 # If we got an error (system does not support symlinks), try without -L. | |
6440 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
6441 ac_cv_group_kmem=`echo $ac_ls_output \ | |
6442 | sed -ne 's/[ ][ ]*/ /g; | |
6443 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
6444 / /s/.* //;p;'` | |
6445 | |
6446 fi | |
6447 | |
6448 echo "$ac_t""$ac_cv_group_kmem" 1>&6 | |
6449 KMEM_GROUP=$ac_cv_group_kmem | |
6450 fi | |
6451 | |
6452 | |
29388 | 6453 # Check whether --enable-largefile or --disable-largefile was given. |
6454 if test "${enable_largefile+set}" = set; then | |
6455 enableval="$enable_largefile" | |
6456 : | |
6457 fi | |
6458 | |
6459 if test "$enable_largefile" != no; then | |
6460 | |
6461 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 | |
30069 | 6462 echo "configure:6463: checking for special C compiler options needed for large files" >&5 |
29388 | 6463 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then |
6464 echo $ac_n "(cached) $ac_c" 1>&6 | |
6465 else | |
6466 ac_cv_sys_largefile_CC=no | |
6467 if test "$GCC" != yes; then | |
6468 # IRIX 6.2 and later do not support large files by default, | |
6469 # so use the C compiler's -n32 option if that helps. | |
6470 cat > conftest.$ac_ext <<EOF | |
30069 | 6471 #line 6472 "configure" |
29388 | 6472 #include "confdefs.h" |
6473 #include <sys/types.h> | |
6474 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6475 | |
6476 int main() { | |
6477 | |
6478 ; return 0; } | |
6479 EOF | |
30069 | 6480 if { (eval echo configure:6481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6481 : |
6482 else | |
6483 echo "configure: failed program was:" >&5 | |
6484 cat conftest.$ac_ext >&5 | |
6485 rm -rf conftest* | |
6486 ac_save_CC="$CC" | |
6487 CC="$CC -n32" | |
6488 cat > conftest.$ac_ext <<EOF | |
30069 | 6489 #line 6490 "configure" |
29388 | 6490 #include "confdefs.h" |
6491 #include <sys/types.h> | |
6492 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6493 | |
6494 int main() { | |
6495 | |
6496 ; return 0; } | |
6497 EOF | |
30069 | 6498 if { (eval echo configure:6499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6499 rm -rf conftest* |
6500 ac_cv_sys_largefile_CC=' -n32' | |
6501 else | |
6502 echo "configure: failed program was:" >&5 | |
6503 cat conftest.$ac_ext >&5 | |
6504 fi | |
6505 rm -f conftest* | |
6506 CC="$ac_save_CC" | |
6507 fi | |
6508 rm -f conftest* | |
6509 fi | |
6510 fi | |
6511 | |
6512 echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 | |
6513 if test "$ac_cv_sys_largefile_CC" != no; then | |
6514 CC="$CC$ac_cv_sys_largefile_CC" | |
6515 fi | |
6516 | |
6517 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
30069 | 6518 echo "configure:6519: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
29388 | 6519 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
6520 echo $ac_n "(cached) $ac_c" 1>&6 | |
6521 else | |
6522 ac_cv_sys_file_offset_bits=no | |
6523 cat > conftest.$ac_ext <<EOF | |
30069 | 6524 #line 6525 "configure" |
29388 | 6525 #include "confdefs.h" |
6526 #include <sys/types.h> | |
6527 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6528 | |
6529 | |
6530 | |
6531 int main() { | |
6532 | |
6533 ; return 0; } | |
6534 EOF | |
30069 | 6535 if { (eval echo configure:6536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6536 : |
6537 else | |
6538 echo "configure: failed program was:" >&5 | |
6539 cat conftest.$ac_ext >&5 | |
6540 rm -rf conftest* | |
6541 cat > conftest.$ac_ext <<EOF | |
30069 | 6542 #line 6543 "configure" |
29388 | 6543 #include "confdefs.h" |
6544 #define _FILE_OFFSET_BITS 64 | |
6545 #include <sys/types.h> | |
6546 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6547 | |
6548 | |
6549 | |
6550 int main() { | |
6551 | |
6552 ; return 0; } | |
6553 EOF | |
30069 | 6554 if { (eval echo configure:6555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6555 rm -rf conftest* |
6556 ac_cv_sys_file_offset_bits=64 | |
6557 else | |
6558 echo "configure: failed program was:" >&5 | |
6559 cat conftest.$ac_ext >&5 | |
6560 fi | |
6561 rm -f conftest* | |
6562 fi | |
6563 rm -f conftest* | |
6564 fi | |
6565 | |
6566 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
6567 if test "$ac_cv_sys_file_offset_bits" != no; then | |
6568 cat >> confdefs.h <<EOF | |
6569 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
6570 EOF | |
6571 | |
6572 fi | |
6573 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | |
30069 | 6574 echo "configure:6575: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
29388 | 6575 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then |
6576 echo $ac_n "(cached) $ac_c" 1>&6 | |
6577 else | |
6578 ac_cv_sys_largefile_source=no | |
6579 cat > conftest.$ac_ext <<EOF | |
30069 | 6580 #line 6581 "configure" |
29388 | 6581 #include "confdefs.h" |
6582 #include <sys/types.h> | |
6583 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6584 | |
6585 #include <stdio.h> | |
6586 | |
6587 int main() { | |
6588 return !ftello; | |
6589 ; return 0; } | |
6590 EOF | |
30069 | 6591 if { (eval echo configure:6592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6592 : |
6593 else | |
6594 echo "configure: failed program was:" >&5 | |
6595 cat conftest.$ac_ext >&5 | |
6596 rm -rf conftest* | |
6597 cat > conftest.$ac_ext <<EOF | |
30069 | 6598 #line 6599 "configure" |
29388 | 6599 #include "confdefs.h" |
6600 #define _LARGEFILE_SOURCE 1 | |
6601 #include <sys/types.h> | |
6602 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6603 | |
6604 #include <stdio.h> | |
6605 | |
6606 int main() { | |
6607 return !ftello; | |
6608 ; return 0; } | |
6609 EOF | |
30069 | 6610 if { (eval echo configure:6611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6611 rm -rf conftest* |
6612 ac_cv_sys_largefile_source=1 | |
6613 else | |
6614 echo "configure: failed program was:" >&5 | |
6615 cat conftest.$ac_ext >&5 | |
6616 fi | |
6617 rm -f conftest* | |
6618 fi | |
6619 rm -f conftest* | |
6620 fi | |
6621 | |
6622 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 | |
6623 if test "$ac_cv_sys_largefile_source" != no; then | |
6624 cat >> confdefs.h <<EOF | |
6625 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
6626 EOF | |
6627 | |
6628 fi | |
6629 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
30069 | 6630 echo "configure:6631: checking for _LARGE_FILES value needed for large files" >&5 |
29388 | 6631 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
6632 echo $ac_n "(cached) $ac_c" 1>&6 | |
6633 else | |
6634 ac_cv_sys_large_files=no | |
6635 cat > conftest.$ac_ext <<EOF | |
30069 | 6636 #line 6637 "configure" |
29388 | 6637 #include "confdefs.h" |
6638 #include <sys/types.h> | |
6639 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6640 | |
6641 | |
6642 | |
6643 int main() { | |
6644 | |
6645 ; return 0; } | |
6646 EOF | |
30069 | 6647 if { (eval echo configure:6648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6648 : |
6649 else | |
6650 echo "configure: failed program was:" >&5 | |
6651 cat conftest.$ac_ext >&5 | |
6652 rm -rf conftest* | |
6653 cat > conftest.$ac_ext <<EOF | |
30069 | 6654 #line 6655 "configure" |
29388 | 6655 #include "confdefs.h" |
6656 #define _LARGE_FILES 1 | |
6657 #include <sys/types.h> | |
6658 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6659 | |
6660 | |
6661 | |
6662 int main() { | |
6663 | |
6664 ; return 0; } | |
6665 EOF | |
30069 | 6666 if { (eval echo configure:6667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6667 rm -rf conftest* |
6668 ac_cv_sys_large_files=1 | |
6669 else | |
6670 echo "configure: failed program was:" >&5 | |
6671 cat conftest.$ac_ext >&5 | |
6672 fi | |
6673 rm -f conftest* | |
6674 fi | |
6675 rm -f conftest* | |
6676 fi | |
6677 | |
6678 echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
6679 if test "$ac_cv_sys_large_files" != no; then | |
6680 cat >> confdefs.h <<EOF | |
6681 #define _LARGE_FILES $ac_cv_sys_large_files | |
6682 EOF | |
6683 | |
6684 fi | |
6685 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 | |
30069 | 6686 echo "configure:6687: checking for _XOPEN_SOURCE value needed for large files" >&5 |
29388 | 6687 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then |
6688 echo $ac_n "(cached) $ac_c" 1>&6 | |
6689 else | |
6690 ac_cv_sys_xopen_source=no | |
6691 cat > conftest.$ac_ext <<EOF | |
30069 | 6692 #line 6693 "configure" |
29388 | 6693 #include "confdefs.h" |
6694 #include <sys/types.h> | |
6695 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6696 | |
6697 #include <stdio.h> | |
6698 | |
6699 int main() { | |
6700 return !ftello; | |
6701 ; return 0; } | |
6702 EOF | |
30069 | 6703 if { (eval echo configure:6704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6704 : |
6705 else | |
6706 echo "configure: failed program was:" >&5 | |
6707 cat conftest.$ac_ext >&5 | |
6708 rm -rf conftest* | |
6709 cat > conftest.$ac_ext <<EOF | |
30069 | 6710 #line 6711 "configure" |
29388 | 6711 #include "confdefs.h" |
6712 #define _XOPEN_SOURCE 500 | |
6713 #include <sys/types.h> | |
6714 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6715 | |
6716 #include <stdio.h> | |
6717 | |
6718 int main() { | |
6719 return !ftello; | |
6720 ; return 0; } | |
6721 EOF | |
30069 | 6722 if { (eval echo configure:6723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6723 rm -rf conftest* |
6724 ac_cv_sys_xopen_source=500 | |
6725 else | |
6726 echo "configure: failed program was:" >&5 | |
6727 cat conftest.$ac_ext >&5 | |
6728 fi | |
6729 rm -f conftest* | |
6730 fi | |
6731 rm -f conftest* | |
6732 fi | |
6733 | |
6734 echo "$ac_t""$ac_cv_sys_xopen_source" 1>&6 | |
6735 if test "$ac_cv_sys_xopen_source" != no; then | |
6736 cat >> confdefs.h <<EOF | |
6737 #define _XOPEN_SOURCE $ac_cv_sys_xopen_source | |
6738 EOF | |
6739 | |
6740 fi | |
6741 fi | |
6742 | |
6743 for ac_func in ftello | |
29036 | 6744 do |
6745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
30069 | 6746 echo "configure:6747: checking for $ac_func" >&5 |
29036 | 6747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6748 echo $ac_n "(cached) $ac_c" 1>&6 | |
6749 else | |
6750 cat > conftest.$ac_ext <<EOF | |
30069 | 6751 #line 6752 "configure" |
29036 | 6752 #include "confdefs.h" |
6753 /* System header to define __stub macros and hopefully few prototypes, | |
6754 which can conflict with char $ac_func(); below. */ | |
6755 #include <assert.h> | |
6756 /* Override any gcc2 internal prototype to avoid an error. */ | |
6757 /* We use char because int might match the return type of a gcc2 | |
6758 builtin and then its argument prototype would still apply. */ | |
6759 char $ac_func(); | |
6760 | |
6761 int main() { | |
6762 | |
6763 /* The GNU C library defines this for functions which it implements | |
6764 to always fail with ENOSYS. Some functions are actually named | |
6765 something starting with __ and the normal name is an alias. */ | |
6766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6767 choke me | |
6768 #else | |
6769 $ac_func(); | |
6770 #endif | |
6771 | |
6772 ; return 0; } | |
6773 EOF | |
30069 | 6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29388 | 6775 rm -rf conftest* |
6776 eval "ac_cv_func_$ac_func=yes" | |
6777 else | |
6778 echo "configure: failed program was:" >&5 | |
6779 cat conftest.$ac_ext >&5 | |
6780 rm -rf conftest* | |
6781 eval "ac_cv_func_$ac_func=no" | |
6782 fi | |
6783 rm -f conftest* | |
6784 fi | |
6785 | |
6786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6787 echo "$ac_t""yes" 1>&6 | |
6788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6789 cat >> confdefs.h <<EOF | |
6790 #define $ac_tr_func 1 | |
6791 EOF | |
6792 | |
6793 else | |
6794 echo "$ac_t""no" 1>&6 | |
6795 fi | |
6796 done | |
6797 | |
6798 | |
6799 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE | |
6800 # if we need it. | |
6801 for ac_func in grantpt | |
6802 do | |
6803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
30069 | 6804 echo "configure:6805: checking for $ac_func" >&5 |
29388 | 6805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6806 echo $ac_n "(cached) $ac_c" 1>&6 | |
6807 else | |
6808 cat > conftest.$ac_ext <<EOF | |
30069 | 6809 #line 6810 "configure" |
29388 | 6810 #include "confdefs.h" |
6811 /* System header to define __stub macros and hopefully few prototypes, | |
6812 which can conflict with char $ac_func(); below. */ | |
6813 #include <assert.h> | |
6814 /* Override any gcc2 internal prototype to avoid an error. */ | |
6815 /* We use char because int might match the return type of a gcc2 | |
6816 builtin and then its argument prototype would still apply. */ | |
6817 char $ac_func(); | |
6818 | |
6819 int main() { | |
6820 | |
6821 /* The GNU C library defines this for functions which it implements | |
6822 to always fail with ENOSYS. Some functions are actually named | |
6823 something starting with __ and the normal name is an alias. */ | |
6824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6825 choke me | |
6826 #else | |
6827 $ac_func(); | |
6828 #endif | |
6829 | |
6830 ; return 0; } | |
6831 EOF | |
30069 | 6832 if { (eval echo configure:6833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29036 | 6833 rm -rf conftest* |
6834 eval "ac_cv_func_$ac_func=yes" | |
6835 else | |
6836 echo "configure: failed program was:" >&5 | |
6837 cat conftest.$ac_ext >&5 | |
6838 rm -rf conftest* | |
6839 eval "ac_cv_func_$ac_func=no" | |
6840 fi | |
6841 rm -f conftest* | |
6842 fi | |
6843 | |
6844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6845 echo "$ac_t""yes" 1>&6 | |
6846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6847 cat >> confdefs.h <<EOF | |
6848 #define $ac_tr_func 1 | |
6849 EOF | |
6850 | |
6851 else | |
6852 echo "$ac_t""no" 1>&6 | |
6853 fi | |
6854 done | |
6855 | |
6856 | |
6857 # PTY-related GNU extensions. | |
6858 for ac_func in getpt | |
6859 do | |
6860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
30069 | 6861 echo "configure:6862: checking for $ac_func" >&5 |
29036 | 6862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6863 echo $ac_n "(cached) $ac_c" 1>&6 | |
6864 else | |
6865 cat > conftest.$ac_ext <<EOF | |
30069 | 6866 #line 6867 "configure" |
29036 | 6867 #include "confdefs.h" |
6868 /* System header to define __stub macros and hopefully few prototypes, | |
6869 which can conflict with char $ac_func(); below. */ | |
6870 #include <assert.h> | |
6871 /* Override any gcc2 internal prototype to avoid an error. */ | |
6872 /* We use char because int might match the return type of a gcc2 | |
6873 builtin and then its argument prototype would still apply. */ | |
6874 char $ac_func(); | |
6875 | |
6876 int main() { | |
6877 | |
6878 /* The GNU C library defines this for functions which it implements | |
6879 to always fail with ENOSYS. Some functions are actually named | |
6880 something starting with __ and the normal name is an alias. */ | |
6881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6882 choke me | |
6883 #else | |
6884 $ac_func(); | |
6885 #endif | |
6886 | |
6887 ; return 0; } | |
6888 EOF | |
30069 | 6889 if { (eval echo configure:6890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29036 | 6890 rm -rf conftest* |
6891 eval "ac_cv_func_$ac_func=yes" | |
6892 else | |
6893 echo "configure: failed program was:" >&5 | |
6894 cat conftest.$ac_ext >&5 | |
6895 rm -rf conftest* | |
6896 eval "ac_cv_func_$ac_func=no" | |
6897 fi | |
6898 rm -f conftest* | |
6899 fi | |
6900 | |
6901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6902 echo "$ac_t""yes" 1>&6 | |
6903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6904 cat >> confdefs.h <<EOF | |
6905 #define $ac_tr_func 1 | |
6906 EOF | |
6907 | |
6908 else | |
6909 echo "$ac_t""no" 1>&6 | |
6910 fi | |
6911 done | |
6912 | |
6913 | |
25897 | 6914 # Check this now, so that we will NOT find the above functions in ncurses. |
6915 # That is because we have not set up to link ncurses in lib-src. | |
6916 # It's better to believe a function is not available | |
6917 # than to expect to find it in ncurses. | |
6918 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | |
30069 | 6919 echo "configure:6920: checking for tparm in -lncurses" >&5 |
25897 | 6920 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
6921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6922 echo $ac_n "(cached) $ac_c" 1>&6 | |
6923 else | |
6924 ac_save_LIBS="$LIBS" | |
6925 LIBS="-lncurses $LIBS" | |
6926 cat > conftest.$ac_ext <<EOF | |
30069 | 6927 #line 6928 "configure" |
25897 | 6928 #include "confdefs.h" |
6929 /* Override any gcc2 internal prototype to avoid an error. */ | |
6930 /* We use char because int might match the return type of a gcc2 | |
6931 builtin and then its argument prototype would still apply. */ | |
6932 char tparm(); | |
6933 | |
6934 int main() { | |
6935 tparm() | |
6936 ; return 0; } | |
6937 EOF | |
30069 | 6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 6939 rm -rf conftest* |
6940 eval "ac_cv_lib_$ac_lib_var=yes" | |
6941 else | |
6942 echo "configure: failed program was:" >&5 | |
6943 cat conftest.$ac_ext >&5 | |
6944 rm -rf conftest* | |
6945 eval "ac_cv_lib_$ac_lib_var=no" | |
6946 fi | |
6947 rm -f conftest* | |
6948 LIBS="$ac_save_LIBS" | |
6949 | |
6950 fi | |
6951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6952 echo "$ac_t""yes" 1>&6 | |
6953 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6954 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6955 cat >> confdefs.h <<EOF | |
6956 #define $ac_tr_lib 1 | |
6957 EOF | |
6958 | |
6959 LIBS="-lncurses $LIBS" | |
6960 | |
6961 else | |
6962 echo "$ac_t""no" 1>&6 | |
6963 fi | |
6964 | |
6965 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6966 # These tell us which Kerberos-related libraries to use. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6967 if test "${with_kerberos+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6968 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
30069 | 6969 echo "configure:6970: checking for com_err in -lcom_err" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6970 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6972 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6973 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6974 ac_save_LIBS="$LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6975 LIBS="-lcom_err $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6976 cat > conftest.$ac_ext <<EOF |
30069 | 6977 #line 6978 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6978 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6979 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6980 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6981 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6982 char com_err(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6983 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6984 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6985 com_err() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6986 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6987 EOF |
30069 | 6988 if { (eval echo configure:6989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6989 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6990 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6991 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6992 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6993 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6994 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6995 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6996 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6997 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6998 LIBS="$ac_save_LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6999 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7000 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7002 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7003 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7004 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7005 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7006 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7007 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7008 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7009 LIBS="-lcom_err $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7010 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7011 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7012 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7013 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7014 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7015 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
30069 | 7016 echo "configure:7017: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7017 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7019 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7020 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7021 ac_save_LIBS="$LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7022 LIBS="-lk5crypto $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7023 cat > conftest.$ac_ext <<EOF |
30069 | 7024 #line 7025 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7025 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7026 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7027 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7028 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7029 char mit_des_cbc_encrypt(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7030 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7031 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7032 mit_des_cbc_encrypt() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7033 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7034 EOF |
30069 | 7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7036 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7037 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7038 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7039 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7040 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7041 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7042 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7043 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7044 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7045 LIBS="$ac_save_LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7046 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7047 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7049 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7050 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7051 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7052 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7053 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7054 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7055 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7056 LIBS="-lk5crypto $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7057 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7058 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7059 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7060 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7061 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7062 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
30069 | 7063 echo "configure:7064: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7064 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7066 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7067 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7068 ac_save_LIBS="$LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7069 LIBS="-lcrypto $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7070 cat > conftest.$ac_ext <<EOF |
30069 | 7071 #line 7072 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7072 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7073 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7074 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7075 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7076 char mit_des_cbc_encrypt(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7077 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7078 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7079 mit_des_cbc_encrypt() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7080 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7081 EOF |
30069 | 7082 if { (eval echo configure:7083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7083 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7084 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7085 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7086 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7087 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7088 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7089 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7090 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7091 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7092 LIBS="$ac_save_LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7093 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7094 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7096 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7097 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7099 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7100 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7101 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7102 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7103 LIBS="-lcrypto $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7104 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7105 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7106 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7107 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7108 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7109 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
30069 | 7110 echo "configure:7111: checking for krb5_init_context in -lkrb5" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7111 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7113 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7114 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7115 ac_save_LIBS="$LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7116 LIBS="-lkrb5 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7117 cat > conftest.$ac_ext <<EOF |
30069 | 7118 #line 7119 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7119 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7120 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7121 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7122 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7123 char krb5_init_context(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7124 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7125 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7126 krb5_init_context() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7127 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7128 EOF |
30069 | 7129 if { (eval echo configure:7130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7130 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7131 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7132 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7133 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7134 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7135 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7136 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7137 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7138 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7139 LIBS="$ac_save_LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7140 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7141 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7143 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7144 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7146 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7147 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7148 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7149 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7150 LIBS="-lkrb5 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7151 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7152 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7153 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7154 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7155 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7156 if test "${with_kerberos5+set}" != set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7157 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
30069 | 7158 echo "configure:7159: checking for des_cbc_encrypt in -ldes425" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7159 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7161 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7162 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7163 ac_save_LIBS="$LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7164 LIBS="-ldes425 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7165 cat > conftest.$ac_ext <<EOF |
30069 | 7166 #line 7167 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7167 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7168 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7169 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7170 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7171 char des_cbc_encrypt(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7172 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7173 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7174 des_cbc_encrypt() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7175 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7176 EOF |
30069 | 7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7178 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7179 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7180 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7181 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7182 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7183 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7184 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7185 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7186 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7187 LIBS="$ac_save_LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7188 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7189 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7191 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7192 ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7194 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7195 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7196 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7197 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7198 LIBS="-ldes425 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7199 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7200 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7201 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7202 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
30069 | 7203 echo "configure:7204: checking for des_cbc_encrypt in -ldes" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7204 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7206 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7207 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7208 ac_save_LIBS="$LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7209 LIBS="-ldes $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7210 cat > conftest.$ac_ext <<EOF |
30069 | 7211 #line 7212 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7212 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7213 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7214 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7215 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7216 char des_cbc_encrypt(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7217 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7218 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7219 des_cbc_encrypt() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7220 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7221 EOF |
30069 | 7222 if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7223 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7224 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7225 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7226 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7227 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7228 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7229 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7230 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7231 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7232 LIBS="$ac_save_LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7233 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7234 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7236 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7237 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7238 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7239 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7240 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7241 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7242 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7243 LIBS="-ldes $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7244 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7245 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7246 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7247 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7248 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7249 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7250 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7251 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
30069 | 7252 echo "configure:7253: checking for krb_get_cred in -lkrb4" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7253 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7255 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7256 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7257 ac_save_LIBS="$LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7258 LIBS="-lkrb4 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7259 cat > conftest.$ac_ext <<EOF |
30069 | 7260 #line 7261 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7261 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7262 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7263 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7264 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7265 char krb_get_cred(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7266 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7267 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7268 krb_get_cred() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7269 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7270 EOF |
30069 | 7271 if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7272 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7273 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7274 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7275 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7276 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7277 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7278 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7279 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7280 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7281 LIBS="$ac_save_LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7282 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7283 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7285 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7286 ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7287 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7288 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7289 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7290 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7291 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7292 LIBS="-lkrb4 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7293 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7294 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7295 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7296 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
30069 | 7297 echo "configure:7298: checking for krb_get_cred in -lkrb" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7298 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7300 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7301 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7302 ac_save_LIBS="$LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7303 LIBS="-lkrb $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7304 cat > conftest.$ac_ext <<EOF |
30069 | 7305 #line 7306 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7306 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7307 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7308 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7309 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7310 char krb_get_cred(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7311 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7312 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7313 krb_get_cred() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7314 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7315 EOF |
30069 | 7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7317 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7318 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7319 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7320 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7321 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7322 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7323 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7324 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7325 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7326 LIBS="$ac_save_LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7327 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7328 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7330 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7331 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7332 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7333 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7334 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7335 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7336 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7337 LIBS="-lkrb $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7338 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7339 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7340 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7341 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7342 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7343 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7344 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7345 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7346 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7347 if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7348 for ac_hdr in krb5.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7349 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
30069 | 7352 echo "configure:7353: checking for $ac_hdr" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7354 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7355 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7356 cat > conftest.$ac_ext <<EOF |
30069 | 7357 #line 7358 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7358 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7359 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7360 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
30069 | 7362 { (eval echo configure:7363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7364 if test -z "$ac_err"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7365 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7366 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7367 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7368 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7369 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7370 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7371 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7372 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7373 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7374 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7375 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7377 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7379 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7380 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7381 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7382 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7383 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7384 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7385 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7386 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7387 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7388 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7389 for ac_hdr in des.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7390 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
30069 | 7393 echo "configure:7394: checking for $ac_hdr" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7395 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7396 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7397 cat > conftest.$ac_ext <<EOF |
30069 | 7398 #line 7399 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7399 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7400 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7401 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
30069 | 7403 { (eval echo configure:7404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7405 if test -z "$ac_err"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7406 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7407 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7408 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7409 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7410 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7411 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7412 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7413 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7414 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7415 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7416 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7418 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7420 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7421 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7422 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7423 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7424 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7425 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7426 for ac_hdr in kerberosIV/des.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7427 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
30069 | 7430 echo "configure:7431: checking for $ac_hdr" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7432 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7433 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7434 cat > conftest.$ac_ext <<EOF |
30069 | 7435 #line 7436 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7436 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7437 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7438 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
30069 | 7440 { (eval echo configure:7441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7442 if test -z "$ac_err"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7443 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7444 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7445 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7446 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7447 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7448 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7449 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7450 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7451 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7452 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7453 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7455 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7456 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7457 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7458 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7459 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7460 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7461 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7462 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7463 for ac_hdr in kerberos/des.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7464 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
30069 | 7467 echo "configure:7468: checking for $ac_hdr" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7469 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7470 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7471 cat > conftest.$ac_ext <<EOF |
30069 | 7472 #line 7473 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7473 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7474 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7475 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
30069 | 7477 { (eval echo configure:7478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7479 if test -z "$ac_err"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7480 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7481 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7482 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7483 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7484 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7485 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7486 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7487 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7488 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7489 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7490 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7492 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7493 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7494 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7495 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7496 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7497 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7498 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7499 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7500 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7501 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7502 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7503 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7504 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7505 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7506 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7507 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7508 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7509 for ac_hdr in krb.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7510 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
30069 | 7513 echo "configure:7514: checking for $ac_hdr" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7515 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7516 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7517 cat > conftest.$ac_ext <<EOF |
30069 | 7518 #line 7519 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7519 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7520 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7521 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
30069 | 7523 { (eval echo configure:7524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7525 if test -z "$ac_err"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7526 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7527 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7528 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7529 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7530 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7531 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7532 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7533 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7534 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7535 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7536 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7538 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7540 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7541 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7542 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7543 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7544 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7545 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7546 for ac_hdr in kerberosIV/krb.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7547 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
30069 | 7550 echo "configure:7551: checking for $ac_hdr" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7552 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7553 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7554 cat > conftest.$ac_ext <<EOF |
30069 | 7555 #line 7556 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7556 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7557 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7558 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
30069 | 7560 { (eval echo configure:7561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7562 if test -z "$ac_err"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7563 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7564 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7565 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7566 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7567 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7568 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7569 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7570 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7571 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7572 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7573 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7575 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7577 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7578 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7579 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7580 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7581 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7582 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7583 for ac_hdr in kerberos/krb.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7584 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
30069 | 7587 echo "configure:7588: checking for $ac_hdr" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7589 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7590 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7591 cat > conftest.$ac_ext <<EOF |
30069 | 7592 #line 7593 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7593 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7594 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7595 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
30069 | 7597 { (eval echo configure:7598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7599 if test -z "$ac_err"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7600 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7601 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7602 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7603 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7604 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7605 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7606 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7607 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7608 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7609 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7610 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7612 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7614 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7615 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7616 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7617 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7618 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7619 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7620 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7621 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7622 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7623 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7624 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7625 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7626 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7627 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7628 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7629 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7630 for ac_hdr in com_err.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7631 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
30069 | 7634 echo "configure:7635: checking for $ac_hdr" >&5 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7636 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7637 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7638 cat > conftest.$ac_ext <<EOF |
30069 | 7639 #line 7640 "configure" |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7640 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7641 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7642 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
30069 | 7644 { (eval echo configure:7645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7646 if test -z "$ac_err"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7647 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7648 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7649 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7650 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7651 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7652 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7653 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7654 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7655 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7656 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7657 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7659 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7660 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7661 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7662 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7663 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7664 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7665 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7666 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7667 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7668 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7669 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7670 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7671 |
25897 | 7672 # Solaris requires -lintl if you want strerror (which calls dgettext) |
7673 # to return localized messages. | |
7674 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | |
30069 | 7675 echo "configure:7676: checking for dgettext in -lintl" >&5 |
25897 | 7676 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
7677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7678 echo $ac_n "(cached) $ac_c" 1>&6 | |
7679 else | |
7680 ac_save_LIBS="$LIBS" | |
7681 LIBS="-lintl $LIBS" | |
7682 cat > conftest.$ac_ext <<EOF | |
30069 | 7683 #line 7684 "configure" |
25897 | 7684 #include "confdefs.h" |
7685 /* Override any gcc2 internal prototype to avoid an error. */ | |
7686 /* We use char because int might match the return type of a gcc2 | |
7687 builtin and then its argument prototype would still apply. */ | |
7688 char dgettext(); | |
7689 | |
7690 int main() { | |
7691 dgettext() | |
7692 ; return 0; } | |
7693 EOF | |
30069 | 7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 7695 rm -rf conftest* |
7696 eval "ac_cv_lib_$ac_lib_var=yes" | |
7697 else | |
7698 echo "configure: failed program was:" >&5 | |
7699 cat conftest.$ac_ext >&5 | |
7700 rm -rf conftest* | |
7701 eval "ac_cv_lib_$ac_lib_var=no" | |
7702 fi | |
7703 rm -f conftest* | |
7704 LIBS="$ac_save_LIBS" | |
7705 | |
7706 fi | |
7707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7708 echo "$ac_t""yes" 1>&6 | |
7709 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7710 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7711 cat >> confdefs.h <<EOF | |
7712 #define $ac_tr_lib 1 | |
7713 EOF | |
7714 | |
7715 LIBS="-lintl $LIBS" | |
7716 | |
7717 else | |
7718 echo "$ac_t""no" 1>&6 | |
7719 fi | |
7720 | |
7721 | |
7722 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | |
30069 | 7723 echo "configure:7724: checking whether localtime caches TZ" >&5 |
25897 | 7724 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
7725 echo $ac_n "(cached) $ac_c" 1>&6 | |
7726 else | |
7727 if test x$ac_cv_func_tzset = xyes; then | |
7728 if test "$cross_compiling" = yes; then | |
7729 # If we have tzset, assume the worst when cross-compiling. | |
7730 emacs_cv_localtime_cache=yes | |
7731 else | |
7732 cat > conftest.$ac_ext <<EOF | |
30069 | 7733 #line 7734 "configure" |
25897 | 7734 #include "confdefs.h" |
7735 #include <time.h> | |
7736 extern char **environ; | |
7737 unset_TZ () | |
7738 { | |
7739 char **from, **to; | |
7740 for (to = from = environ; (*to = *from); from++) | |
7741 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
7742 to++; | |
7743 } | |
7744 char TZ_GMT0[] = "TZ=GMT0"; | |
7745 char TZ_PST8[] = "TZ=PST8"; | |
7746 main() | |
7747 { | |
7748 time_t now = time ((time_t *) 0); | |
7749 int hour_GMT0, hour_unset; | |
7750 if (putenv (TZ_GMT0) != 0) | |
7751 exit (1); | |
7752 hour_GMT0 = localtime (&now)->tm_hour; | |
7753 unset_TZ (); | |
7754 hour_unset = localtime (&now)->tm_hour; | |
7755 if (putenv (TZ_PST8) != 0) | |
7756 exit (1); | |
7757 if (localtime (&now)->tm_hour == hour_GMT0) | |
7758 exit (1); | |
7759 unset_TZ (); | |
7760 if (localtime (&now)->tm_hour != hour_unset) | |
7761 exit (1); | |
7762 exit (0); | |
7763 } | |
7764 EOF | |
30069 | 7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 7766 then |
7767 emacs_cv_localtime_cache=no | |
7768 else | |
7769 echo "configure: failed program was:" >&5 | |
7770 cat conftest.$ac_ext >&5 | |
7771 rm -fr conftest* | |
7772 emacs_cv_localtime_cache=yes | |
7773 fi | |
7774 rm -fr conftest* | |
7775 fi | |
7776 | |
7777 else | |
7778 # If we lack tzset, report that localtime does not cache TZ, | |
7779 # since we can't invalidate the cache if we don't have tzset. | |
7780 emacs_cv_localtime_cache=no | |
7781 fi | |
7782 fi | |
7783 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6 | |
7784 if test $emacs_cv_localtime_cache = yes; then | |
7785 cat >> confdefs.h <<\EOF | |
7786 #define LOCALTIME_CACHE 1 | |
7787 EOF | |
7788 | |
7789 fi | |
7790 | |
7791 if test "x$HAVE_TIMEVAL" = xyes; then | |
29906 | 7792 for ac_func in gettimeofday |
7793 do | |
7794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
30069 | 7795 echo "configure:7796: checking for $ac_func" >&5 |
29906 | 7796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7797 echo $ac_n "(cached) $ac_c" 1>&6 | |
7798 else | |
7799 cat > conftest.$ac_ext <<EOF | |
30069 | 7800 #line 7801 "configure" |
29906 | 7801 #include "confdefs.h" |
7802 /* System header to define __stub macros and hopefully few prototypes, | |
7803 which can conflict with char $ac_func(); below. */ | |
7804 #include <assert.h> | |
7805 /* Override any gcc2 internal prototype to avoid an error. */ | |
7806 /* We use char because int might match the return type of a gcc2 | |
7807 builtin and then its argument prototype would still apply. */ | |
7808 char $ac_func(); | |
7809 | |
7810 int main() { | |
7811 | |
7812 /* The GNU C library defines this for functions which it implements | |
7813 to always fail with ENOSYS. Some functions are actually named | |
7814 something starting with __ and the normal name is an alias. */ | |
7815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7816 choke me | |
7817 #else | |
7818 $ac_func(); | |
7819 #endif | |
7820 | |
7821 ; return 0; } | |
7822 EOF | |
30069 | 7823 if { (eval echo configure:7824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29906 | 7824 rm -rf conftest* |
7825 eval "ac_cv_func_$ac_func=yes" | |
7826 else | |
7827 echo "configure: failed program was:" >&5 | |
7828 cat conftest.$ac_ext >&5 | |
7829 rm -rf conftest* | |
7830 eval "ac_cv_func_$ac_func=no" | |
7831 fi | |
7832 rm -f conftest* | |
7833 fi | |
7834 | |
7835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7836 echo "$ac_t""yes" 1>&6 | |
7837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7838 cat >> confdefs.h <<EOF | |
7839 #define $ac_tr_func 1 | |
7840 EOF | |
7841 | |
7842 else | |
7843 echo "$ac_t""no" 1>&6 | |
7844 fi | |
7845 done | |
7846 | |
7847 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | |
30069 | 7848 echo "configure:7849: checking whether gettimeofday can accept two arguments" >&5 |
25897 | 7849 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
7850 echo $ac_n "(cached) $ac_c" 1>&6 | |
7851 else | |
7852 cat > conftest.$ac_ext <<EOF | |
30069 | 7853 #line 7854 "configure" |
25897 | 7854 #include "confdefs.h" |
7855 | |
7856 #ifdef TIME_WITH_SYS_TIME | |
7857 #include <sys/time.h> | |
7858 #include <time.h> | |
7859 #else | |
7860 #ifdef HAVE_SYS_TIME_H | |
7861 #include <sys/time.h> | |
7862 #else | |
7863 #include <time.h> | |
7864 #endif | |
7865 #endif | |
7866 int main() { | |
29733 | 7867 struct timeval time; |
29906 | 7868 gettimeofday (&time, 0); |
25897 | 7869 ; return 0; } |
7870 EOF | |
30069 | 7871 if { (eval echo configure:7872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 7872 rm -rf conftest* |
7873 emacs_cv_gettimeofday_two_arguments=yes | |
7874 else | |
7875 echo "configure: failed program was:" >&5 | |
7876 cat conftest.$ac_ext >&5 | |
7877 rm -rf conftest* | |
7878 emacs_cv_gettimeofday_two_arguments=no | |
7879 fi | |
7880 rm -f conftest* | |
7881 fi | |
7882 | |
7883 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 | |
7884 if test $emacs_cv_gettimeofday_two_arguments = no; then | |
7885 cat >> confdefs.h <<\EOF | |
7886 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
7887 EOF | |
7888 | |
7889 fi | |
7890 fi | |
7891 | |
29906 | 7892 if test "$ac_cv_func_gettimeofday" = yes; then |
7893 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 | |
30069 | 7894 echo "configure:7895: checking for struct timezone" >&5 |
29906 | 7895 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then |
7896 echo $ac_n "(cached) $ac_c" 1>&6 | |
7897 else | |
7898 cat > conftest.$ac_ext <<EOF | |
30069 | 7899 #line 7900 "configure" |
29906 | 7900 #include "confdefs.h" |
7901 #include <sys/time.h> | |
7902 int main() { | |
7903 struct timezone tz; | |
7904 ; return 0; } | |
7905 EOF | |
30069 | 7906 if { (eval echo configure:7907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29906 | 7907 rm -rf conftest* |
7908 if test "$cross_compiling" = yes; then | |
7909 emacs_cv_struct_timezone=yes | |
7910 else | |
7911 cat > conftest.$ac_ext <<EOF | |
30069 | 7912 #line 7913 "configure" |
29906 | 7913 #include "confdefs.h" |
7914 | |
7915 #ifdef TIME_WITH_SYS_TIME | |
7916 #include <sys/time.h> | |
7917 #include <time.h> | |
7918 #else | |
7919 #ifdef HAVE_SYS_TIME_H | |
7920 #include <sys/time.h> | |
7921 #else | |
7922 #include <time.h> | |
7923 #endif | |
7924 #endif | |
7925 main () { | |
7926 struct timeval time; | |
7927 struct timezone dummy; | |
7928 exit (gettimeofday (&time, &dummy)); | |
7929 } | |
7930 EOF | |
30069 | 7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
29906 | 7932 then |
7933 emacs_cv_struct_timezone=yes | |
7934 else | |
7935 echo "configure: failed program was:" >&5 | |
7936 cat conftest.$ac_ext >&5 | |
7937 rm -fr conftest* | |
7938 emacs_cv_struct_timezone=no | |
7939 fi | |
7940 rm -fr conftest* | |
7941 fi | |
7942 | |
7943 else | |
7944 echo "configure: failed program was:" >&5 | |
7945 cat conftest.$ac_ext >&5 | |
7946 rm -rf conftest* | |
7947 emacs_cv_struct_timezone=no | |
7948 fi | |
7949 rm -f conftest* | |
7950 fi | |
7951 | |
7952 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 | |
7953 fi | |
7954 | |
25897 | 7955 ok_so_far=yes |
7956 echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
30069 | 7957 echo "configure:7958: checking for socket" >&5 |
25897 | 7958 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
7959 echo $ac_n "(cached) $ac_c" 1>&6 | |
7960 else | |
7961 cat > conftest.$ac_ext <<EOF | |
30069 | 7962 #line 7963 "configure" |
25897 | 7963 #include "confdefs.h" |
7964 /* System header to define __stub macros and hopefully few prototypes, | |
7965 which can conflict with char socket(); below. */ | |
7966 #include <assert.h> | |
7967 /* Override any gcc2 internal prototype to avoid an error. */ | |
7968 /* We use char because int might match the return type of a gcc2 | |
7969 builtin and then its argument prototype would still apply. */ | |
7970 char socket(); | |
7971 | |
7972 int main() { | |
7973 | |
7974 /* The GNU C library defines this for functions which it implements | |
7975 to always fail with ENOSYS. Some functions are actually named | |
7976 something starting with __ and the normal name is an alias. */ | |
7977 #if defined (__stub_socket) || defined (__stub___socket) | |
7978 choke me | |
7979 #else | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7980 socket(); |
25897 | 7981 #endif |
7982 | |
7983 ; return 0; } | |
7984 EOF | |
30069 | 7985 if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 7986 rm -rf conftest* |
7987 eval "ac_cv_func_socket=yes" | |
7988 else | |
7989 echo "configure: failed program was:" >&5 | |
7990 cat conftest.$ac_ext >&5 | |
7991 rm -rf conftest* | |
7992 eval "ac_cv_func_socket=no" | |
7993 fi | |
7994 rm -f conftest* | |
7995 fi | |
7996 | |
7997 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
7998 echo "$ac_t""yes" 1>&6 | |
7999 : | |
8000 else | |
8001 echo "$ac_t""no" 1>&6 | |
8002 ok_so_far=no | |
8003 fi | |
8004 | |
8005 if test $ok_so_far = yes; then | |
8006 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | |
8007 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | |
30069 | 8008 echo "configure:8009: checking for netinet/in.h" >&5 |
25897 | 8009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8010 echo $ac_n "(cached) $ac_c" 1>&6 | |
8011 else | |
8012 cat > conftest.$ac_ext <<EOF | |
30069 | 8013 #line 8014 "configure" |
25897 | 8014 #include "confdefs.h" |
8015 #include <netinet/in.h> | |
8016 EOF | |
8017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 8018 { (eval echo configure:8019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 8019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 8020 if test -z "$ac_err"; then |
8021 rm -rf conftest* | |
8022 eval "ac_cv_header_$ac_safe=yes" | |
8023 else | |
8024 echo "$ac_err" >&5 | |
8025 echo "configure: failed program was:" >&5 | |
8026 cat conftest.$ac_ext >&5 | |
8027 rm -rf conftest* | |
8028 eval "ac_cv_header_$ac_safe=no" | |
8029 fi | |
8030 rm -f conftest* | |
8031 fi | |
8032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8033 echo "$ac_t""yes" 1>&6 | |
8034 : | |
8035 else | |
8036 echo "$ac_t""no" 1>&6 | |
8037 ok_so_far=no | |
8038 fi | |
8039 | |
8040 fi | |
8041 if test $ok_so_far = yes; then | |
8042 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | |
8043 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | |
30069 | 8044 echo "configure:8045: checking for arpa/inet.h" >&5 |
25897 | 8045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8046 echo $ac_n "(cached) $ac_c" 1>&6 | |
8047 else | |
8048 cat > conftest.$ac_ext <<EOF | |
30069 | 8049 #line 8050 "configure" |
25897 | 8050 #include "confdefs.h" |
8051 #include <arpa/inet.h> | |
8052 EOF | |
8053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 8054 { (eval echo configure:8055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 8055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 8056 if test -z "$ac_err"; then |
8057 rm -rf conftest* | |
8058 eval "ac_cv_header_$ac_safe=yes" | |
8059 else | |
8060 echo "$ac_err" >&5 | |
8061 echo "configure: failed program was:" >&5 | |
8062 cat conftest.$ac_ext >&5 | |
8063 rm -rf conftest* | |
8064 eval "ac_cv_header_$ac_safe=no" | |
8065 fi | |
8066 rm -f conftest* | |
8067 fi | |
8068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8069 echo "$ac_t""yes" 1>&6 | |
8070 : | |
8071 else | |
8072 echo "$ac_t""no" 1>&6 | |
8073 ok_so_far=no | |
8074 fi | |
8075 | |
8076 fi | |
8077 if test $ok_so_far = yes; then | |
8078 cat >> confdefs.h <<\EOF | |
8079 #define HAVE_INET_SOCKETS 1 | |
8080 EOF | |
8081 | |
8082 fi | |
8083 | |
8084 if test -f /usr/lpp/X11/bin/smt.exp; then | |
8085 cat >> confdefs.h <<\EOF | |
8086 #define HAVE_AIX_SMT_EXP 1 | |
8087 EOF | |
8088 | |
8089 fi | |
8090 | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8091 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
30069 | 8092 echo "configure:8093: checking whether system supports dynamic ptys" >&5 |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8093 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8094 echo "$ac_t""yes" 1>&6 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8095 cat >> confdefs.h <<\EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8096 #define HAVE_DEV_PTMX 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8097 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8098 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8099 else |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8100 echo "$ac_t""no" 1>&6 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8101 fi |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8102 |
27675 | 8103 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
30069 | 8104 echo "configure:8105: checking for pid_t" >&5 |
27675 | 8105 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8106 echo $ac_n "(cached) $ac_c" 1>&6 | |
8107 else | |
8108 cat > conftest.$ac_ext <<EOF | |
30069 | 8109 #line 8110 "configure" |
27675 | 8110 #include "confdefs.h" |
8111 #include <sys/types.h> | |
8112 #if STDC_HEADERS | |
8113 #include <stdlib.h> | |
8114 #include <stddef.h> | |
8115 #endif | |
8116 EOF | |
8117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8118 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8119 rm -rf conftest* | |
8120 ac_cv_type_pid_t=yes | |
8121 else | |
8122 rm -rf conftest* | |
8123 ac_cv_type_pid_t=no | |
8124 fi | |
8125 rm -f conftest* | |
8126 | |
8127 fi | |
8128 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
8129 if test $ac_cv_type_pid_t = no; then | |
8130 cat >> confdefs.h <<\EOF | |
8131 #define pid_t int | |
8132 EOF | |
8133 | |
8134 fi | |
8135 | |
8136 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
8137 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
30069 | 8138 echo "configure:8139: checking for vfork.h" >&5 |
27675 | 8139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8140 echo $ac_n "(cached) $ac_c" 1>&6 | |
8141 else | |
8142 cat > conftest.$ac_ext <<EOF | |
30069 | 8143 #line 8144 "configure" |
27675 | 8144 #include "confdefs.h" |
8145 #include <vfork.h> | |
8146 EOF | |
8147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
30069 | 8148 { (eval echo configure:8149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27675 | 8149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8150 if test -z "$ac_err"; then | |
8151 rm -rf conftest* | |
8152 eval "ac_cv_header_$ac_safe=yes" | |
8153 else | |
8154 echo "$ac_err" >&5 | |
8155 echo "configure: failed program was:" >&5 | |
8156 cat conftest.$ac_ext >&5 | |
8157 rm -rf conftest* | |
8158 eval "ac_cv_header_$ac_safe=no" | |
8159 fi | |
8160 rm -f conftest* | |
8161 fi | |
8162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8163 echo "$ac_t""yes" 1>&6 | |
8164 cat >> confdefs.h <<\EOF | |
8165 #define HAVE_VFORK_H 1 | |
8166 EOF | |
8167 | |
8168 else | |
8169 echo "$ac_t""no" 1>&6 | |
8170 fi | |
8171 | |
8172 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
30069 | 8173 echo "configure:8174: checking for working vfork" >&5 |
27675 | 8174 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
8175 echo $ac_n "(cached) $ac_c" 1>&6 | |
8176 else | |
8177 if test "$cross_compiling" = yes; then | |
8178 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
30069 | 8179 echo "configure:8180: checking for vfork" >&5 |
27675 | 8180 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
8181 echo $ac_n "(cached) $ac_c" 1>&6 | |
8182 else | |
8183 cat > conftest.$ac_ext <<EOF | |
30069 | 8184 #line 8185 "configure" |
27675 | 8185 #include "confdefs.h" |
8186 /* System header to define __stub macros and hopefully few prototypes, | |
8187 which can conflict with char vfork(); below. */ | |
8188 #include <assert.h> | |
8189 /* Override any gcc2 internal prototype to avoid an error. */ | |
8190 /* We use char because int might match the return type of a gcc2 | |
8191 builtin and then its argument prototype would still apply. */ | |
8192 char vfork(); | |
8193 | |
8194 int main() { | |
8195 | |
8196 /* The GNU C library defines this for functions which it implements | |
8197 to always fail with ENOSYS. Some functions are actually named | |
8198 something starting with __ and the normal name is an alias. */ | |
8199 #if defined (__stub_vfork) || defined (__stub___vfork) | |
8200 choke me | |
8201 #else | |
8202 vfork(); | |
8203 #endif | |
8204 | |
8205 ; return 0; } | |
8206 EOF | |
30069 | 8207 if { (eval echo configure:8208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
27675 | 8208 rm -rf conftest* |
8209 eval "ac_cv_func_vfork=yes" | |
8210 else | |
8211 echo "configure: failed program was:" >&5 | |
8212 cat conftest.$ac_ext >&5 | |
8213 rm -rf conftest* | |
8214 eval "ac_cv_func_vfork=no" | |
8215 fi | |
8216 rm -f conftest* | |
8217 fi | |
8218 | |
8219 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
8220 echo "$ac_t""yes" 1>&6 | |
8221 : | |
8222 else | |
8223 echo "$ac_t""no" 1>&6 | |
8224 fi | |
8225 | |
8226 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
8227 else | |
8228 cat > conftest.$ac_ext <<EOF | |
30069 | 8229 #line 8230 "configure" |
27675 | 8230 #include "confdefs.h" |
8231 /* Thanks to Paul Eggert for this test. */ | |
8232 #include <stdio.h> | |
8233 #include <sys/types.h> | |
8234 #include <sys/stat.h> | |
8235 #ifdef HAVE_UNISTD_H | |
8236 #include <unistd.h> | |
8237 #endif | |
8238 #ifdef HAVE_VFORK_H | |
8239 #include <vfork.h> | |
8240 #endif | |
8241 /* On some sparc systems, changes by the child to local and incoming | |
8242 argument registers are propagated back to the parent. | |
8243 The compiler is told about this with #include <vfork.h>, | |
8244 but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
8245 Test for this by using a static variable whose address | |
8246 is put into a register that is clobbered by the vfork. */ | |
8247 static | |
8248 #ifdef __cplusplus | |
8249 sparc_address_test (int arg) | |
8250 #else | |
8251 sparc_address_test (arg) int arg; | |
8252 #endif | |
8253 { | |
8254 static pid_t child; | |
8255 if (!child) { | |
8256 child = vfork (); | |
8257 if (child < 0) { | |
8258 perror ("vfork"); | |
8259 _exit(2); | |
8260 } | |
8261 if (!child) { | |
8262 arg = getpid(); | |
8263 write(-1, "", 0); | |
8264 _exit (arg); | |
8265 } | |
8266 } | |
8267 } | |
8268 main() { | |
8269 pid_t parent = getpid (); | |
8270 pid_t child; | |
8271 | |
8272 sparc_address_test (); | |
8273 | |
8274 child = vfork (); | |
8275 | |
8276 if (child == 0) { | |
8277 /* Here is another test for sparc vfork register problems. | |
8278 This test uses lots of local variables, at least | |
8279 as many local variables as main has allocated so far | |
8280 including compiler temporaries. 4 locals are enough for | |
8281 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
8282 A buggy compiler should reuse the register of parent | |
8283 for one of the local variables, since it will think that | |
8284 parent can't possibly be used any more in this routine. | |
8285 Assigning to the local variable will thus munge parent | |
8286 in the parent process. */ | |
8287 pid_t | |
8288 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
8289 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
8290 /* Convince the compiler that p..p7 are live; otherwise, it might | |
8291 use the same hardware register for all 8 local variables. */ | |
8292 if (p != p1 || p != p2 || p != p3 || p != p4 | |
8293 || p != p5 || p != p6 || p != p7) | |
8294 _exit(1); | |
8295 | |
8296 /* On some systems (e.g. IRIX 3.3), | |
8297 vfork doesn't separate parent from child file descriptors. | |
8298 If the child closes a descriptor before it execs or exits, | |
8299 this munges the parent's descriptor as well. | |
8300 Test for this by closing stdout in the child. */ | |
8301 _exit(close(fileno(stdout)) != 0); | |
8302 } else { | |
8303 int status; | |
8304 struct stat st; | |
8305 | |
8306 while (wait(&status) != child) | |
8307 ; | |
8308 exit( | |
8309 /* Was there some problem with vforking? */ | |
8310 child < 0 | |
8311 | |
8312 /* Did the child fail? (This shouldn't happen.) */ | |
8313 || status | |
8314 | |
8315 /* Did the vfork/compiler bug occur? */ | |
8316 || parent != getpid() | |
8317 | |
8318 /* Did the file descriptor bug occur? */ | |
8319 || fstat(fileno(stdout), &st) != 0 | |
8320 ); | |
8321 } | |
8322 } | |
8323 EOF | |
30069 | 8324 if { (eval echo configure:8325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
27675 | 8325 then |
8326 ac_cv_func_vfork_works=yes | |
8327 else | |
8328 echo "configure: failed program was:" >&5 | |
8329 cat conftest.$ac_ext >&5 | |
8330 rm -fr conftest* | |
8331 ac_cv_func_vfork_works=no | |
8332 fi | |
8333 rm -fr conftest* | |
8334 fi | |
8335 | |
8336 fi | |
8337 | |
8338 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
8339 if test $ac_cv_func_vfork_works = no; then | |
8340 cat >> confdefs.h <<\EOF | |
8341 #define vfork fork | |
8342 EOF | |
8343 | |
8344 fi | |
8345 | |
8346 | |
25897 | 8347 # Set up the CFLAGS for real compilation, so we can substitute it. |
8348 CFLAGS="$REAL_CFLAGS" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8349 CPPFLAGS="$REAL_CPPFLAGS" |
25897 | 8350 |
8351 #### Find out which version of Emacs this is. | |
8352 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
8353 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
8354 if test x"${version}" = x; then | |
8355 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; } | |
8356 fi | |
8357 | |
8358 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
8359 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
8360 | |
8361 | |
8362 | |
8363 | |
8364 | |
8365 | |
8366 | |
8367 | |
8368 | |
8369 | |
8370 | |
8371 | |
8372 | |
8373 | |
8374 | |
8375 | |
8376 | |
8377 | |
8378 | |
8379 | |
8380 | |
8381 | |
8382 | |
8383 | |
8384 | |
8385 | |
8386 | |
8387 | |
8388 | |
8389 | |
29834 | 8390 |
25897 | 8391 cat >> confdefs.h <<EOF |
8392 #define EMACS_CONFIGURATION "${canonical}" | |
8393 EOF | |
8394 | |
8395 cat >> confdefs.h <<EOF | |
8396 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
8397 EOF | |
8398 | |
8399 cat >> confdefs.h <<EOF | |
8400 #define config_machfile "${machfile}" | |
8401 EOF | |
8402 | |
8403 cat >> confdefs.h <<EOF | |
8404 #define config_opsysfile "${opsysfile}" | |
8405 EOF | |
8406 | |
8407 cat >> confdefs.h <<EOF | |
8408 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
8409 EOF | |
8410 | |
8411 cat >> confdefs.h <<EOF | |
8412 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
8413 EOF | |
8414 | |
8415 cat >> confdefs.h <<EOF | |
8416 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
8417 EOF | |
8418 | |
8419 cat >> confdefs.h <<EOF | |
8420 #define UNEXEC_SRC ${UNEXEC_SRC} | |
8421 EOF | |
8422 | |
8423 | |
8424 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
8425 cat >> confdefs.h <<\EOF | |
8426 #define HAVE_X_WINDOWS 1 | |
8427 EOF | |
8428 | |
8429 fi | |
8430 if test "${USE_X_TOOLKIT}" != "none" ; then | |
8431 cat >> confdefs.h <<\EOF | |
8432 #define USE_X_TOOLKIT 1 | |
8433 EOF | |
8434 | |
8435 fi | |
8436 if test "${HAVE_X11}" = "yes" ; then | |
8437 cat >> confdefs.h <<\EOF | |
8438 #define HAVE_X11 1 | |
8439 EOF | |
8440 | |
8441 fi | |
8442 if test "${HAVE_XFREE386}" = "yes" ; then | |
8443 cat >> confdefs.h <<\EOF | |
8444 #define HAVE_XFREE386 1 | |
8445 EOF | |
8446 | |
8447 fi | |
8448 if test "${HAVE_MENUS}" = "yes" ; then | |
8449 cat >> confdefs.h <<\EOF | |
8450 #define HAVE_MENUS 1 | |
8451 EOF | |
8452 | |
8453 fi | |
8454 if test "${GNU_MALLOC}" = "yes" ; then | |
8455 cat >> confdefs.h <<\EOF | |
8456 #define GNU_MALLOC 1 | |
8457 EOF | |
8458 | |
8459 fi | |
8460 if test "${REL_ALLOC}" = "yes" ; then | |
8461 cat >> confdefs.h <<\EOF | |
8462 #define REL_ALLOC 1 | |
8463 EOF | |
8464 | |
8465 fi | |
8466 | |
8467 #### Report on what we decided to do. | |
8468 echo " | |
8469 Configured for \`${canonical}'. | |
8470 | |
8471 Where should the build process find the source code? ${srcdir} | |
8472 What operating system and machine description files should Emacs use? | |
8473 \`${opsysfile}' and \`${machfile}' | |
8474 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
8475 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
8476 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} | |
8477 What window system should Emacs use? ${window_system} | |
8478 What toolkit should Emacs use? ${USE_X_TOOLKIT}" | |
8479 | |
8480 if test -n "${x_includes}"; then | |
8481 echo " Where do we find X Windows header files? ${x_includes}" | |
8482 else | |
8483 echo " Where do we find X Windows header files? Standard dirs" | |
8484 fi | |
8485 if test -n "${x_libraries}"; then | |
8486 echo " Where do we find X Windows libraries? ${x_libraries}" | |
8487 else | |
8488 echo " Where do we find X Windows libraries? Standard dirs" | |
8489 fi | |
8490 | |
8491 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
8492 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
8493 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
8494 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
8495 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
8496 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
8497 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
8498 echo | |
8499 | |
8500 # Remove any trailing slashes in these variables. | |
8501 test "${prefix}" != NONE && | |
8502 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
8503 test "${exec_prefix}" != NONE && | |
8504 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
8505 | |
8506 trap '' 1 2 15 | |
8507 cat > confcache <<\EOF | |
8508 # This file is a shell script that caches the results of configure | |
8509 # tests run on this system so they can be shared between configure | |
8510 # scripts and configure runs. It is not useful on other systems. | |
8511 # If it contains results you don't want to keep, you may remove or edit it. | |
8512 # | |
8513 # By default, configure uses ./config.cache as the cache file, | |
8514 # creating it if it does not exist already. You can give configure | |
8515 # the --cache-file=FILE option to use a different cache file; that is | |
8516 # what configure does when it calls configure scripts in | |
8517 # subdirectories, so they share the cache. | |
8518 # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8519 # config.status only pays attention to the cache file if you give it the | |
8520 # --recheck option to rerun configure. | |
8521 # | |
8522 EOF | |
8523 # The following way of writing the cache mishandles newlines in values, | |
8524 # but we know of no workaround that is simple, portable, and efficient. | |
8525 # So, don't put newlines in cache variables' values. | |
8526 # Ultrix sh set writes to stderr and can't be redirected directly, | |
8527 # and sets the high bit in the cache file unless we assign to the vars. | |
8528 (set) 2>&1 | | |
8529 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8530 *ac_space=\ *) | |
8531 # `set' does not quote correctly, so add quotes (double-quote substitution | |
8532 # turns \\\\ into \\, and sed turns \\ into \). | |
8533 sed -n \ | |
8534 -e "s/'/'\\\\''/g" \ | |
8535 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8536 ;; | |
8537 *) | |
8538 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8539 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8540 ;; | |
8541 esac >> confcache | |
8542 if cmp -s $cache_file confcache; then | |
8543 : | |
8544 else | |
8545 if test -w $cache_file; then | |
8546 echo "updating cache $cache_file" | |
8547 cat confcache > $cache_file | |
8548 else | |
8549 echo "not updating unwritable cache $cache_file" | |
8550 fi | |
8551 fi | |
8552 rm -f confcache | |
8553 | |
8554 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
8555 | |
8556 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8557 # Let make expand exec_prefix. | |
8558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8559 | |
8560 # Any assignment to VPATH causes Sun make to only execute | |
8561 # the first set of double-colon rules, so remove it if not needed. | |
8562 # If there is a colon in the path, we need to keep it. | |
8563 if test "x$srcdir" = x.; then | |
8564 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
8565 fi | |
8566 | |
8567 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
8568 | |
8569 DEFS=-DHAVE_CONFIG_H | |
8570 | |
8571 # Without the "./", some shells look in PATH for config.status. | |
8572 : ${CONFIG_STATUS=./config.status} | |
8573 | |
8574 echo creating $CONFIG_STATUS | |
8575 rm -f $CONFIG_STATUS | |
8576 cat > $CONFIG_STATUS <<EOF | |
8577 #! /bin/sh | |
8578 # Generated automatically by configure. | |
8579 # Run this file to recreate the current configuration. | |
8580 # This directory was configured as follows, | |
8581 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8582 # | |
8583 # $0 $ac_configure_args | |
8584 # | |
8585 # Compiler output produced by configure, useful for debugging | |
8586 # configure, is in ./config.log if it exists. | |
8587 | |
8588 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
8589 for ac_option | |
8590 do | |
8591 case "\$ac_option" in | |
8592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8593 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
8594 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
8595 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
27205 | 8596 echo "$CONFIG_STATUS generated by autoconf version 2.13" |
25897 | 8597 exit 0 ;; |
8598 -help | --help | --hel | --he | --h) | |
8599 echo "\$ac_cs_usage"; exit 0 ;; | |
8600 *) echo "\$ac_cs_usage"; exit 1 ;; | |
8601 esac | |
8602 done | |
8603 | |
8604 ac_given_srcdir=$srcdir | |
8605 ac_given_INSTALL="$INSTALL" | |
8606 | |
8607 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
8608 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
29657 | 8609 lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
25897 | 8610 EOF |
8611 cat >> $CONFIG_STATUS <<EOF | |
8612 | |
8613 # Protect against being on the right side of a sed subst in config.status. | |
8614 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
8615 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
8616 $ac_vpsub | |
8617 $extrasub | |
27205 | 8618 s%@SHELL@%$SHELL%g |
25897 | 8619 s%@CFLAGS@%$CFLAGS%g |
8620 s%@CPPFLAGS@%$CPPFLAGS%g | |
8621 s%@CXXFLAGS@%$CXXFLAGS%g | |
27205 | 8622 s%@FFLAGS@%$FFLAGS%g |
25897 | 8623 s%@DEFS@%$DEFS%g |
8624 s%@LDFLAGS@%$LDFLAGS%g | |
8625 s%@LIBS@%$LIBS%g | |
8626 s%@exec_prefix@%$exec_prefix%g | |
8627 s%@prefix@%$prefix%g | |
8628 s%@program_transform_name@%$program_transform_name%g | |
8629 s%@bindir@%$bindir%g | |
8630 s%@sbindir@%$sbindir%g | |
8631 s%@libexecdir@%$libexecdir%g | |
8632 s%@datadir@%$datadir%g | |
8633 s%@sysconfdir@%$sysconfdir%g | |
8634 s%@sharedstatedir@%$sharedstatedir%g | |
8635 s%@localstatedir@%$localstatedir%g | |
8636 s%@libdir@%$libdir%g | |
8637 s%@includedir@%$includedir%g | |
8638 s%@oldincludedir@%$oldincludedir%g | |
8639 s%@infodir@%$infodir%g | |
8640 s%@mandir@%$mandir%g | |
8641 s%@host@%$host%g | |
8642 s%@host_alias@%$host_alias%g | |
8643 s%@host_cpu@%$host_cpu%g | |
8644 s%@host_vendor@%$host_vendor%g | |
8645 s%@host_os@%$host_os%g | |
8646 s%@CC@%$CC%g | |
8647 s%@LN_S@%$LN_S%g | |
8648 s%@CPP@%$CPP%g | |
8649 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
27205 | 8650 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
25897 | 8651 s%@INSTALL_DATA@%$INSTALL_DATA%g |
8652 s%@YACC@%$YACC%g | |
28060 | 8653 s%@RANLIB@%$RANLIB%g |
25897 | 8654 s%@SET_MAKE@%$SET_MAKE%g |
8655 s%@ALLOCA@%$ALLOCA%g | |
8656 s%@liblockfile@%$liblockfile%g | |
28607 | 8657 s%@LIBOBJS@%$LIBOBJS%g |
29834 | 8658 s%@NEED_SETGID@%$NEED_SETGID%g |
8659 s%@KMEM_GROUP@%$KMEM_GROUP%g | |
25897 | 8660 s%@version@%$version%g |
8661 s%@configuration@%$configuration%g | |
8662 s%@canonical@%$canonical%g | |
8663 s%@srcdir@%$srcdir%g | |
8664 s%@lispdir@%$lispdir%g | |
8665 s%@locallisppath@%$locallisppath%g | |
8666 s%@lisppath@%$lisppath%g | |
8667 s%@x_default_search_path@%$x_default_search_path%g | |
8668 s%@etcdir@%$etcdir%g | |
8669 s%@archlibdir@%$archlibdir%g | |
8670 s%@docdir@%$docdir%g | |
8671 s%@bitmapdir@%$bitmapdir%g | |
8672 s%@c_switch_system@%$c_switch_system%g | |
8673 s%@c_switch_machine@%$c_switch_machine%g | |
8674 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g | |
8675 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g | |
8676 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g | |
8677 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g | |
8678 s%@machfile@%$machfile%g | |
8679 s%@opsysfile@%$opsysfile%g | |
29834 | 8680 s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g |
25897 | 8681 |
8682 CEOF | |
8683 EOF | |
8684 | |
8685 cat >> $CONFIG_STATUS <<\EOF | |
8686 | |
8687 # Split the substitutions into bite-sized pieces for seds with | |
8688 # small command number limits, like on Digital OSF/1 and HP-UX. | |
8689 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
8690 ac_file=1 # Number of current file. | |
8691 ac_beg=1 # First line for current file. | |
8692 ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
8693 ac_more_lines=: | |
8694 ac_sed_cmds="" | |
8695 while $ac_more_lines; do | |
8696 if test $ac_beg -gt 1; then | |
8697 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
8698 else | |
8699 sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
8700 fi | |
8701 if test ! -s conftest.s$ac_file; then | |
8702 ac_more_lines=false | |
8703 rm -f conftest.s$ac_file | |
8704 else | |
8705 if test -z "$ac_sed_cmds"; then | |
8706 ac_sed_cmds="sed -f conftest.s$ac_file" | |
8707 else | |
8708 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
8709 fi | |
8710 ac_file=`expr $ac_file + 1` | |
8711 ac_beg=$ac_end | |
8712 ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
8713 fi | |
8714 done | |
8715 if test -z "$ac_sed_cmds"; then | |
8716 ac_sed_cmds=cat | |
8717 fi | |
8718 EOF | |
8719 | |
8720 cat >> $CONFIG_STATUS <<EOF | |
8721 | |
8722 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
8723 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
29657 | 8724 lisp/Makefile leim/Makefile"} |
25897 | 8725 EOF |
8726 cat >> $CONFIG_STATUS <<\EOF | |
8727 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
8728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8729 case "$ac_file" in | |
8730 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8731 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8732 *) ac_file_in="${ac_file}.in" ;; | |
8733 esac | |
8734 | |
8735 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
8736 | |
8737 # Remove last slash and all that follows it. Not all systems have dirname. | |
8738 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8739 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8740 # The file is in a subdirectory. | |
8741 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8742 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
8743 # A "../" for each directory in $ac_dir_suffix. | |
8744 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
8745 else | |
8746 ac_dir_suffix= ac_dots= | |
8747 fi | |
8748 | |
8749 case "$ac_given_srcdir" in | |
8750 .) srcdir=. | |
8751 if test -z "$ac_dots"; then top_srcdir=. | |
8752 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
8753 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
8754 *) # Relative path. | |
8755 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
8756 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8757 esac | |
8758 | |
8759 case "$ac_given_INSTALL" in | |
8760 [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
8761 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
8762 esac | |
8763 | |
8764 echo creating "$ac_file" | |
8765 rm -f "$ac_file" | |
8766 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
8767 case "$ac_file" in | |
8768 *Makefile*) ac_comsub="1i\\ | |
8769 # $configure_input" ;; | |
8770 *) ac_comsub= ;; | |
8771 esac | |
8772 | |
8773 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8774 sed -e "$ac_comsub | |
8775 s%@configure_input@%$configure_input%g | |
8776 s%@srcdir@%$srcdir%g | |
8777 s%@top_srcdir@%$top_srcdir%g | |
8778 s%@INSTALL@%$INSTALL%g | |
8779 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
8780 fi; done | |
8781 rm -f conftest.s* | |
8782 | |
8783 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8784 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8785 # | |
8786 # ac_d sets the value in "#define NAME VALUE" lines. | |
8787 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
8788 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
8789 ac_dC='\3' | |
8790 ac_dD='%g' | |
8791 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
8792 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8793 ac_uB='\([ ]\)%\1#\2define\3' | |
8794 ac_uC=' ' | |
8795 ac_uD='\4%g' | |
8796 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8797 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8798 ac_eB='$%\1#\2define\3' | |
8799 ac_eC=' ' | |
8800 ac_eD='%g' | |
8801 | |
8802 if test "${CONFIG_HEADERS+set}" != set; then | |
8803 EOF | |
8804 cat >> $CONFIG_STATUS <<EOF | |
8805 CONFIG_HEADERS="src/config.h:src/config.in" | |
8806 EOF | |
8807 cat >> $CONFIG_STATUS <<\EOF | |
8808 fi | |
8809 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
8810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8811 case "$ac_file" in | |
8812 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8813 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8814 *) ac_file_in="${ac_file}.in" ;; | |
8815 esac | |
8816 | |
8817 echo creating $ac_file | |
8818 | |
8819 rm -f conftest.frag conftest.in conftest.out | |
8820 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8821 cat $ac_file_inputs > conftest.in | |
8822 | |
8823 EOF | |
8824 | |
8825 # Transform confdefs.h into a sed script conftest.vals that substitutes | |
8826 # the proper values into config.h.in to produce config.h. And first: | |
8827 # Protect against being on the right side of a sed subst in config.status. | |
8828 # Protect against being in an unquoted here document in config.status. | |
8829 rm -f conftest.vals | |
8830 cat > conftest.hdr <<\EOF | |
8831 s/[\\&%]/\\&/g | |
8832 s%[\\$`]%\\&%g | |
8833 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
8834 s%ac_d%ac_u%gp | |
8835 s%ac_u%ac_e%gp | |
8836 EOF | |
8837 sed -n -f conftest.hdr confdefs.h > conftest.vals | |
8838 rm -f conftest.hdr | |
8839 | |
8840 # This sed command replaces #undef with comments. This is necessary, for | |
8841 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8842 # on some systems where configure will not decide to define it. | |
8843 cat >> conftest.vals <<\EOF | |
8844 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
8845 EOF | |
8846 | |
8847 # Break up conftest.vals because some shells have a limit on | |
8848 # the size of here documents, and old seds have small limits too. | |
8849 | |
8850 rm -f conftest.tail | |
8851 while : | |
8852 do | |
8853 ac_lines=`grep -c . conftest.vals` | |
8854 # grep -c gives empty output for an empty file on some AIX systems. | |
8855 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
8856 # Write a limited-size here document to conftest.frag. | |
8857 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
8858 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
8859 echo 'CEOF | |
8860 sed -f conftest.frag conftest.in > conftest.out | |
8861 rm -f conftest.in | |
8862 mv conftest.out conftest.in | |
8863 ' >> $CONFIG_STATUS | |
8864 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
8865 rm -f conftest.vals | |
8866 mv conftest.tail conftest.vals | |
8867 done | |
8868 rm -f conftest.vals | |
8869 | |
8870 cat >> $CONFIG_STATUS <<\EOF | |
8871 rm -f conftest.frag conftest.h | |
8872 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
8873 cat conftest.in >> conftest.h | |
8874 rm -f conftest.in | |
8875 if cmp -s $ac_file conftest.h 2>/dev/null; then | |
8876 echo "$ac_file is unchanged" | |
8877 rm -f conftest.h | |
8878 else | |
8879 # Remove last slash and all that follows it. Not all systems have dirname. | |
8880 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8881 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8882 # The file is in a subdirectory. | |
8883 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8884 fi | |
8885 rm -f $ac_file | |
8886 mv conftest.h $ac_file | |
8887 fi | |
8888 fi; done | |
8889 | |
8890 EOF | |
8891 cat >> $CONFIG_STATUS <<EOF | |
8892 CPP="$CPP" CPPFLAGS="$CPPFLAGS" | |
8893 EOF | |
8894 cat >> $CONFIG_STATUS <<\EOF | |
8895 | |
8896 | |
8897 ### Make the necessary directories, if they don't exist. | |
8898 for dir in etc lisp ; do | |
8899 test -d ${dir} || mkdir ${dir} | |
8900 done | |
8901 | |
8902 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
8903 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
8904 # This must be done after src/config.h is built, since we rely on that file. | |
8905 | |
8906 # Now get this: Some word that is part of the ${srcdir} directory name | |
8907 # or the ${configuration} value might, just might, happen to be an | |
8908 # identifier like `sun4' or `i386' or something, and be predefined by | |
8909 # the C preprocessor to some helpful value like 1, or maybe the empty | |
8910 # string. Needless to say consequent macro substitutions are less | |
8911 # than conducive to the makefile finding the correct directory. | |
8912 undefs="`echo $top_srcdir $configuration $canonical | | |
8913 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
8914 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
8915 `" | |
8916 | |
8917 echo creating src/epaths.h | |
8918 make epaths-force | |
8919 | |
8920 echo creating lib-src/Makefile | |
8921 ( cd lib-src | |
8922 rm -f junk.c junk1.c junk2.c | |
8923 sed -e '/start of cpp stuff/q' \ | |
8924 < Makefile.c > junk1.c | |
8925 sed -e '1,/start of cpp stuff/d'\ | |
8926 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
8927 < Makefile.c > junk.c | |
8928 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
8929 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
8930 cat junk1.c junk2.c > Makefile.new | |
8931 rm -f junk.c junk1.c junk2.c | |
8932 chmod 444 Makefile.new | |
8933 mv -f Makefile.new Makefile | |
8934 ) | |
8935 | |
8936 echo creating src/Makefile | |
8937 ( cd src | |
8938 rm -f junk.c junk1.c junk2.c | |
8939 sed -e '/start of cpp stuff/q' \ | |
8940 < Makefile.c > junk1.c | |
8941 sed -e '1,/start of cpp stuff/d'\ | |
8942 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
8943 < Makefile.c > junk.c | |
8944 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
8945 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
8946 cat junk1.c junk2.c > Makefile.new | |
8947 rm -f junk.c junk1.c junk2.c | |
8948 chmod 444 Makefile.new | |
8949 mv -f Makefile.new Makefile | |
8950 ) | |
8951 | |
8952 if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then | |
8953 echo creating src/.gdbinit | |
8954 echo source $top_srcdir/src/.gdbinit > src/.gdbinit | |
8955 fi | |
8956 | |
8957 # This is how we know whether to re-run configure in certain cases. | |
8958 touch src/config.stamp | |
8959 | |
8960 | |
8961 exit 0 | |
8962 EOF | |
8963 chmod +x $CONFIG_STATUS | |
8964 rm -fr confdefs* $ac_clean_files | |
8965 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
8966 |