Mercurial > emacs
annotate configure @ 27322:38a27742f511
Obsoleted by EUDC.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 13 Jan 2000 17:43:37 +0000 |
parents | 5b9c236a581d |
children | 6a78e514e6d3 |
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 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
21 --with-kerberos5 support Kerberos version 5 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
|
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 | |
25994 | 37 --without-toolkit-scroll-bars don't use Motif or Xaw3d scroll bars" |
25897 | 38 ac_help="$ac_help |
39 --with-x use the X Window System" | |
40 | |
41 # Initialize some variables set by options. | |
42 # The variables have the same names as the options, with | |
43 # dashes changed to underlines. | |
44 build=NONE | |
45 cache_file=./config.cache | |
46 exec_prefix=NONE | |
47 host=NONE | |
48 no_create= | |
49 nonopt=NONE | |
50 no_recursion= | |
51 prefix=NONE | |
52 program_prefix=NONE | |
53 program_suffix=NONE | |
54 program_transform_name=s,x,x, | |
55 silent= | |
56 site= | |
57 srcdir= | |
58 target=NONE | |
59 verbose= | |
60 x_includes=NONE | |
61 x_libraries=NONE | |
62 bindir='${exec_prefix}/bin' | |
63 sbindir='${exec_prefix}/sbin' | |
64 libexecdir='${exec_prefix}/libexec' | |
65 datadir='${prefix}/share' | |
66 sysconfdir='${prefix}/etc' | |
67 sharedstatedir='${prefix}/com' | |
68 localstatedir='${prefix}/var' | |
69 libdir='${exec_prefix}/lib' | |
70 includedir='${prefix}/include' | |
71 oldincludedir='/usr/include' | |
72 infodir='${prefix}/info' | |
73 mandir='${prefix}/man' | |
74 | |
75 # Initialize some other variables. | |
76 subdirs= | |
77 MFLAGS= MAKEFLAGS= | |
27205 | 78 SHELL=${CONFIG_SHELL-/bin/sh} |
25897 | 79 # Maximum number of lines to put in a shell here document. |
80 ac_max_here_lines=12 | |
81 | |
82 ac_prev= | |
83 for ac_option | |
84 do | |
85 | |
86 # If the previous option needs an argument, assign it. | |
87 if test -n "$ac_prev"; then | |
88 eval "$ac_prev=\$ac_option" | |
89 ac_prev= | |
90 continue | |
91 fi | |
92 | |
93 case "$ac_option" in | |
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
95 *) ac_optarg= ;; | |
96 esac | |
97 | |
98 # Accept the important Cygnus configure options, so we can diagnose typos. | |
99 | |
100 case "$ac_option" in | |
101 | |
102 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
103 ac_prev=bindir ;; | |
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
105 bindir="$ac_optarg" ;; | |
106 | |
107 -build | --build | --buil | --bui | --bu) | |
108 ac_prev=build ;; | |
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
110 build="$ac_optarg" ;; | |
111 | |
112 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
114 ac_prev=cache_file ;; | |
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
117 cache_file="$ac_optarg" ;; | |
118 | |
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
120 ac_prev=datadir ;; | |
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
122 | --da=*) | |
123 datadir="$ac_optarg" ;; | |
124 | |
125 -disable-* | --disable-*) | |
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
127 # Reject names that are not valid shell variable names. | |
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
130 fi | |
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
132 eval "enable_${ac_feature}=no" ;; | |
133 | |
134 -enable-* | --enable-*) | |
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
136 # Reject names that are not valid shell variable names. | |
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
139 fi | |
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
141 case "$ac_option" in | |
142 *=*) ;; | |
143 *) ac_optarg=yes ;; | |
144 esac | |
145 eval "enable_${ac_feature}='$ac_optarg'" ;; | |
146 | |
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
149 | --exec | --exe | --ex) | |
150 ac_prev=exec_prefix ;; | |
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
153 | --exec=* | --exe=* | --ex=*) | |
154 exec_prefix="$ac_optarg" ;; | |
155 | |
156 -gas | --gas | --ga | --g) | |
157 # Obsolete; use --with-gas. | |
158 with_gas=yes ;; | |
159 | |
160 -help | --help | --hel | --he) | |
161 # Omit some internal or obsolete options to make the list less imposing. | |
162 # This message is too long to be a string in the A/UX 3.1 sh. | |
163 cat << EOF | |
164 Usage: configure [options] [host] | |
165 Options: [defaults in brackets after descriptions] | |
166 Configuration: | |
167 --cache-file=FILE cache test results in FILE | |
168 --help print this message | |
169 --no-create do not create output files | |
170 --quiet, --silent do not print \`checking...' messages | |
171 --version print the version of autoconf that created configure | |
172 Directory and file names: | |
173 --prefix=PREFIX install architecture-independent files in PREFIX | |
174 [$ac_default_prefix] | |
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
176 [same as prefix] | |
177 --bindir=DIR user executables in DIR [EPREFIX/bin] | |
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
180 --datadir=DIR read-only architecture-independent data in DIR | |
181 [PREFIX/share] | |
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
184 [PREFIX/com] | |
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
187 --includedir=DIR C header files in DIR [PREFIX/include] | |
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
189 --infodir=DIR info documentation in DIR [PREFIX/info] | |
190 --mandir=DIR man documentation in DIR [PREFIX/man] | |
191 --srcdir=DIR find the sources in DIR [configure dir or ..] | |
192 --program-prefix=PREFIX prepend PREFIX to installed program names | |
193 --program-suffix=SUFFIX append SUFFIX to installed program names | |
194 --program-transform-name=PROGRAM | |
195 run sed PROGRAM on installed program names | |
196 EOF | |
197 cat << EOF | |
198 Host type: | |
199 --build=BUILD configure for building on BUILD [BUILD=HOST] | |
200 --host=HOST configure for HOST [guessed] | |
201 --target=TARGET configure for TARGET [TARGET=HOST] | |
202 Features and packages: | |
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
207 --x-includes=DIR X include files are in DIR | |
208 --x-libraries=DIR X library files are in DIR | |
209 EOF | |
210 if test -n "$ac_help"; then | |
211 echo "--enable and --with options recognized:$ac_help" | |
212 fi | |
213 exit 0 ;; | |
214 | |
215 -host | --host | --hos | --ho) | |
216 ac_prev=host ;; | |
217 -host=* | --host=* | --hos=* | --ho=*) | |
218 host="$ac_optarg" ;; | |
219 | |
220 -includedir | --includedir | --includedi | --included | --include \ | |
221 | --includ | --inclu | --incl | --inc) | |
222 ac_prev=includedir ;; | |
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
224 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
225 includedir="$ac_optarg" ;; | |
226 | |
227 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
228 ac_prev=infodir ;; | |
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
230 infodir="$ac_optarg" ;; | |
231 | |
232 -libdir | --libdir | --libdi | --libd) | |
233 ac_prev=libdir ;; | |
234 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
235 libdir="$ac_optarg" ;; | |
236 | |
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
238 | --libexe | --libex | --libe) | |
239 ac_prev=libexecdir ;; | |
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
241 | --libexe=* | --libex=* | --libe=*) | |
242 libexecdir="$ac_optarg" ;; | |
243 | |
244 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
245 | --localstate | --localstat | --localsta | --localst \ | |
246 | --locals | --local | --loca | --loc | --lo) | |
247 ac_prev=localstatedir ;; | |
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
251 localstatedir="$ac_optarg" ;; | |
252 | |
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
254 ac_prev=mandir ;; | |
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
256 mandir="$ac_optarg" ;; | |
257 | |
258 -nfp | --nfp | --nf) | |
259 # Obsolete; use --without-fp. | |
260 with_fp=no ;; | |
261 | |
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
263 | --no-cr | --no-c) | |
264 no_create=yes ;; | |
265 | |
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
268 no_recursion=yes ;; | |
269 | |
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
272 | --oldin | --oldi | --old | --ol | --o) | |
273 ac_prev=oldincludedir ;; | |
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
277 oldincludedir="$ac_optarg" ;; | |
278 | |
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
280 ac_prev=prefix ;; | |
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
282 prefix="$ac_optarg" ;; | |
283 | |
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
285 | --program-pre | --program-pr | --program-p) | |
286 ac_prev=program_prefix ;; | |
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
289 program_prefix="$ac_optarg" ;; | |
290 | |
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
292 | --program-suf | --program-su | --program-s) | |
293 ac_prev=program_suffix ;; | |
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
296 program_suffix="$ac_optarg" ;; | |
297 | |
298 -program-transform-name | --program-transform-name \ | |
299 | --program-transform-nam | --program-transform-na \ | |
300 | --program-transform-n | --program-transform- \ | |
301 | --program-transform | --program-transfor \ | |
302 | --program-transfo | --program-transf \ | |
303 | --program-trans | --program-tran \ | |
304 | --progr-tra | --program-tr | --program-t) | |
305 ac_prev=program_transform_name ;; | |
306 -program-transform-name=* | --program-transform-name=* \ | |
307 | --program-transform-nam=* | --program-transform-na=* \ | |
308 | --program-transform-n=* | --program-transform-=* \ | |
309 | --program-transform=* | --program-transfor=* \ | |
310 | --program-transfo=* | --program-transf=* \ | |
311 | --program-trans=* | --program-tran=* \ | |
312 | --progr-tra=* | --program-tr=* | --program-t=*) | |
313 program_transform_name="$ac_optarg" ;; | |
314 | |
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
316 | -silent | --silent | --silen | --sile | --sil) | |
317 silent=yes ;; | |
318 | |
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
320 ac_prev=sbindir ;; | |
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
322 | --sbi=* | --sb=*) | |
323 sbindir="$ac_optarg" ;; | |
324 | |
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
327 | --sharedst | --shareds | --shared | --share | --shar \ | |
328 | --sha | --sh) | |
329 ac_prev=sharedstatedir ;; | |
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
333 | --sha=* | --sh=*) | |
334 sharedstatedir="$ac_optarg" ;; | |
335 | |
336 -site | --site | --sit) | |
337 ac_prev=site ;; | |
338 -site=* | --site=* | --sit=*) | |
339 site="$ac_optarg" ;; | |
340 | |
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
342 ac_prev=srcdir ;; | |
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
344 srcdir="$ac_optarg" ;; | |
345 | |
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
347 | --syscon | --sysco | --sysc | --sys | --sy) | |
348 ac_prev=sysconfdir ;; | |
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
351 sysconfdir="$ac_optarg" ;; | |
352 | |
353 -target | --target | --targe | --targ | --tar | --ta | --t) | |
354 ac_prev=target ;; | |
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
356 target="$ac_optarg" ;; | |
357 | |
358 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
359 verbose=yes ;; | |
360 | |
361 -version | --version | --versio | --versi | --vers) | |
27205 | 362 echo "configure generated by autoconf version 2.13" |
25897 | 363 exit 0 ;; |
364 | |
365 -with-* | --with-*) | |
366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
367 # Reject names that are not valid shell variable names. | |
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
370 fi | |
371 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
372 case "$ac_option" in | |
373 *=*) ;; | |
374 *) ac_optarg=yes ;; | |
375 esac | |
376 eval "with_${ac_package}='$ac_optarg'" ;; | |
377 | |
378 -without-* | --without-*) | |
379 ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
380 # Reject names that are not valid shell variable names. | |
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
383 fi | |
384 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
385 eval "with_${ac_package}=no" ;; | |
386 | |
387 --x) | |
388 # Obsolete; use --with-x. | |
389 with_x=yes ;; | |
390 | |
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
392 | --x-incl | --x-inc | --x-in | --x-i) | |
393 ac_prev=x_includes ;; | |
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
396 x_includes="$ac_optarg" ;; | |
397 | |
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
400 ac_prev=x_libraries ;; | |
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
403 x_libraries="$ac_optarg" ;; | |
404 | |
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
406 ;; | |
407 | |
408 *) | |
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
410 echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
411 fi | |
412 if test "x$nonopt" != xNONE; then | |
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
414 fi | |
415 nonopt="$ac_option" | |
416 ;; | |
417 | |
418 esac | |
419 done | |
420 | |
421 if test -n "$ac_prev"; then | |
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
423 fi | |
424 | |
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
426 | |
427 # File descriptor usage: | |
428 # 0 standard input | |
429 # 1 file creation | |
430 # 2 errors and warnings | |
431 # 3 some systems may open it to /dev/tty | |
432 # 4 used on the Kubota Titan | |
433 # 6 checking for... messages and results | |
434 # 5 compiler messages saved in config.log | |
435 if test "$silent" = yes; then | |
436 exec 6>/dev/null | |
437 else | |
438 exec 6>&1 | |
439 fi | |
440 exec 5>./config.log | |
441 | |
442 echo "\ | |
443 This file contains any messages produced by compilers while | |
444 running configure, to aid debugging if configure makes a mistake. | |
445 " 1>&5 | |
446 | |
447 # Strip out --no-create and --no-recursion so they do not pile up. | |
448 # Also quote any args containing shell metacharacters. | |
449 ac_configure_args= | |
450 for ac_arg | |
451 do | |
452 case "$ac_arg" in | |
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
454 | --no-cr | --no-c) ;; | |
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
458 ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
459 *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
460 esac | |
461 done | |
462 | |
463 # NLS nuisances. | |
464 # Only set these to C if already set. These must not be set unconditionally | |
465 # because not all systems understand e.g. LANG=C (notably SCO). | |
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
467 # Non-C LC_CTYPE values break the ctype check. | |
468 if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
472 | |
473 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
474 rm -rf conftest* confdefs.h | |
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
476 echo > confdefs.h | |
477 | |
478 # A filename unique to this package, relative to the directory that | |
479 # configure is in, which we can look for to find out if srcdir is correct. | |
480 ac_unique_file=src/lisp.h | |
481 | |
482 # Find the source files, if location was not specified. | |
483 if test -z "$srcdir"; then | |
484 ac_srcdir_defaulted=yes | |
485 # Try the directory containing this script, then its parent. | |
486 ac_prog=$0 | |
487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
489 srcdir=$ac_confdir | |
490 if test ! -r $srcdir/$ac_unique_file; then | |
491 srcdir=.. | |
492 fi | |
493 else | |
494 ac_srcdir_defaulted=no | |
495 fi | |
496 if test ! -r $srcdir/$ac_unique_file; then | |
497 if test "$ac_srcdir_defaulted" = yes; then | |
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
499 else | |
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
501 fi | |
502 fi | |
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
504 | |
505 # Prefer explicitly selected file to automatically selected ones. | |
506 if test -z "$CONFIG_SITE"; then | |
507 if test "x$prefix" != xNONE; then | |
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
509 else | |
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
511 fi | |
512 fi | |
513 for ac_site_file in $CONFIG_SITE; do | |
514 if test -r "$ac_site_file"; then | |
515 echo "loading site script $ac_site_file" | |
516 . "$ac_site_file" | |
517 fi | |
518 done | |
519 | |
520 if test -r "$cache_file"; then | |
521 echo "loading cache $cache_file" | |
522 . $cache_file | |
523 else | |
524 echo "creating cache $cache_file" | |
525 > $cache_file | |
526 fi | |
527 | |
528 ac_ext=c | |
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
530 ac_cpp='$CPP $CPPFLAGS' | |
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
27205 | 532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
25897 | 533 cross_compiling=$ac_cv_prog_cc_cross |
534 | |
27205 | 535 ac_exeext= |
536 ac_objext=o | |
25897 | 537 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
540 ac_n= ac_c=' | |
541 ' ac_t=' ' | |
542 else | |
543 ac_n=-n ac_c= ac_t= | |
544 fi | |
545 else | |
546 ac_n= ac_c='\c' ac_t= | |
547 fi | |
548 | |
549 | |
550 | |
551 | |
552 lispdir='${datadir}/emacs/${version}/lisp' | |
553 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
554 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
555 lisppath='${locallisppath}:${lispdir}' | |
556 etcdir='${datadir}/emacs/${version}/etc' | |
557 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
558 docdir='${datadir}/emacs/${version}/etc' | |
559 | |
560 # Check whether --with-gcc or --without-gcc was given. | |
561 if test "${with_gcc+set}" = set; then | |
562 withval="$with_gcc" | |
563 : | |
564 fi | |
565 | |
566 # Check whether --with-pop or --without-pop was given. | |
567 if test "${with_pop+set}" = set; then | |
568 withval="$with_pop" | |
25994 | 569 if test "$withval" = yes; then |
570 cat >> confdefs.h <<\EOF | |
25897 | 571 #define MAIL_USE_POP 1 |
572 EOF | |
573 | |
25994 | 574 else : |
575 fi | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
576 else |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
577 cat >> confdefs.h <<\EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
578 #define MAIL_USE_POP 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
579 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
580 |
25897 | 581 fi |
582 | |
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
|
583 # 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
|
584 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
|
585 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
|
586 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
|
587 #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
|
588 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
|
589 |
b32d82817493
* 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 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
|
591 |
b32d82817493
* 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 # 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
|
593 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
|
594 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
|
595 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
|
596 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
|
597 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
|
598 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
|
599 #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
|
600 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
|
601 |
b32d82817493
* 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 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
|
603 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
|
604 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
|
605 #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
|
606 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
|
607 |
b32d82817493
* 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 |
25897 | 610 # Check whether --with-hesiod or --without-hesiod was given. |
611 if test "${with_hesiod+set}" = set; then | |
612 withval="$with_hesiod" | |
613 cat >> confdefs.h <<\EOF | |
614 #define HESIOD 1 | |
615 EOF | |
616 | |
617 fi | |
618 | |
619 # Check whether --with-x-toolkit or --without-x-toolkit was given. | |
620 if test "${with_x_toolkit+set}" = set; then | |
621 withval="$with_x_toolkit" | |
622 case "${withval}" in | |
623 y | ye | yes ) val=athena ;; | |
624 n | no ) val=no ;; | |
625 l | lu | luc | luci | lucid ) val=lucid ;; | |
626 a | at | ath | athe | athen | athena ) val=athena ;; | |
627 m | mo | mot | moti | motif ) val=motif ;; | |
628 * ) | |
629 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\; | |
630 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
631 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; } | |
632 ;; | |
633 esac | |
634 with_x_toolkit=$val | |
635 | |
636 fi | |
637 | |
638 # Check whether --with-xpm or --without-xpm was given. | |
639 if test "${with_xpm+set}" = set; then | |
640 withval="$with_xpm" | |
641 : | |
642 fi | |
643 | |
644 # Check whether --with-jpeg or --without-jpeg was given. | |
645 if test "${with_jpeg+set}" = set; then | |
646 withval="$with_jpeg" | |
647 : | |
648 fi | |
649 | |
650 # Check whether --with-tiff or --without-tiff was given. | |
651 if test "${with_tiff+set}" = set; then | |
652 withval="$with_tiff" | |
653 : | |
654 fi | |
655 | |
656 # Check whether --with-gif or --without-gif was given. | |
657 if test "${with_gif+set}" = set; then | |
658 withval="$with_gif" | |
659 : | |
660 fi | |
661 | |
662 # Check whether --with-png or --without-png was given. | |
663 if test "${with_png+set}" = set; then | |
664 withval="$with_png" | |
665 : | |
666 fi | |
667 | |
668 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
669 if test "${with_toolkit_scroll_bars+set}" = set; then | |
670 withval="$with_toolkit_scroll_bars" | |
671 : | |
672 fi | |
673 | |
674 | |
675 #### Make srcdir absolute, if it isn't already. It's important to | |
676 #### avoid running the path through pwd unnecessary, since pwd can | |
677 #### give you automounter prefixes, which can go away. We do all this | |
678 #### so Emacs can find its files when run uninstalled. | |
679 case "${srcdir}" in | |
680 /* ) ;; | |
681 . ) | |
682 ## We may be able to use the $PWD environment variable to make this | |
683 ## absolute. But sometimes PWD is inaccurate. | |
684 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | |
685 unset CDPATH | |
686 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; | |
687 then | |
688 srcdir="$PWD" | |
689 else | |
690 srcdir="`(cd ${srcdir}; pwd)`" | |
691 fi | |
692 ;; | |
693 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
694 esac | |
695 | |
696 #### Check if the source directory already has a configured system in it. | |
697 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
698 && test -f "${srcdir}/src/config.h" ; then | |
699 echo "configure: warning: The directory tree \`${srcdir}' is being used | |
700 as a build directory right now; it has been configured in its own | |
701 right. To configure in another directory as well, you MUST | |
702 use GNU make. If you do not have GNU make, then you must | |
703 now do \`make distclean' in ${srcdir}, | |
704 and then run $0 again." 1>&2 | |
705 | |
706 extrasub='/^VPATH[ ]*=/c\ | |
707 vpath %.c $(srcdir)\ | |
708 vpath %.h $(srcdir)\ | |
709 vpath %.y $(srcdir)\ | |
710 vpath %.l $(srcdir)\ | |
711 vpath %.s $(srcdir)\ | |
712 vpath %.in $(srcdir)\ | |
713 vpath %.texi $(srcdir)' | |
714 fi | |
715 | |
716 #### Given the configuration name, set machfile and opsysfile to the | |
717 #### names of the m/*.h and s/*.h files we should use. | |
718 | |
719 ### Canonicalize the configuration name. | |
720 | |
721 ac_aux_dir= | |
722 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
723 if test -f $ac_dir/install-sh; then | |
724 ac_aux_dir=$ac_dir | |
725 ac_install_sh="$ac_aux_dir/install-sh -c" | |
726 break | |
727 elif test -f $ac_dir/install.sh; then | |
728 ac_aux_dir=$ac_dir | |
729 ac_install_sh="$ac_aux_dir/install.sh -c" | |
730 break | |
731 fi | |
732 done | |
733 if test -z "$ac_aux_dir"; then | |
734 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
735 fi | |
736 ac_config_guess=$ac_aux_dir/config.guess | |
737 ac_config_sub=$ac_aux_dir/config.sub | |
738 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
739 | |
740 | |
741 # Make sure we can run config.sub. | |
27205 | 742 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
25897 | 743 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
744 fi | |
745 | |
746 echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
27205 | 747 echo "configure:748: checking host system type" >&5 |
25897 | 748 |
749 host_alias=$host | |
750 case "$host_alias" in | |
751 NONE) | |
752 case $nonopt in | |
753 NONE) | |
27205 | 754 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
25897 | 755 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
756 fi ;; | |
757 *) host_alias=$nonopt ;; | |
758 esac ;; | |
759 esac | |
760 | |
27205 | 761 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
25897 | 762 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
763 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
764 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
765 echo "$ac_t""$host" 1>&6 | |
766 | |
767 canonical=$host | |
768 configuration=$host_alias | |
769 | |
770 | |
771 ### If you add support for a new configuration, add code to this | |
772 ### switch statement to recognize your configuration name and select | |
773 ### the appropriate operating system and machine description files. | |
774 | |
775 ### You would hope that you could choose an m/*.h file pretty much | |
776 ### based on the machine portion of the configuration name, and an s- | |
777 ### file based on the operating system portion. However, it turns out | |
778 ### that each m/*.h file is pretty manufacturer-specific - for | |
779 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
780 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
781 ### machines. So we basically have to have a special case for each | |
782 ### configuration name. | |
783 ### | |
784 ### As far as handling version numbers on operating systems is | |
785 ### concerned, make sure things will fail in a fixable way. If | |
786 ### /etc/MACHINES doesn't say anything about version numbers, be | |
787 ### prepared to handle anything reasonably. If version numbers | |
788 ### matter, be sure /etc/MACHINES says something about it. | |
789 ### | |
790 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
791 ### "System V Release 4"; he writes, "The old convention encouraged | |
792 ### confusion between `system' and `release' levels'." | |
793 | |
794 machine='' opsys='' unported=no | |
795 case "${canonical}" in | |
796 | |
797 ## NetBSD ports | |
798 *-*-netbsd* ) | |
799 opsys=netbsd | |
800 case "${canonical}" in | |
801 alpha*-*-netbsd*) machine=alpha ;; | |
802 i[3456]86-*-netbsd*) machine=intel386 ;; | |
803 m68k-*-netbsd*) | |
804 # This is somewhat bogus. | |
805 machine=hp9000s300 ;; | |
806 powerpc-apple-netbsd*) machine=macppc ;; | |
807 mips-*-netbsd*) machine=pmax ;; | |
808 ns32k-*-netbsd*) machine=ns32000 ;; | |
809 sparc-*-netbsd*) machine=sparc ;; | |
810 vax-*-netbsd*) machine=vax ;; | |
811 esac | |
812 ;; | |
813 | |
814 ## OpenBSD ports | |
815 *-*-openbsd* ) | |
816 opsys=openbsd | |
817 case "${canonical}" in | |
818 alpha*-*-openbsd*) machine=alpha ;; | |
819 i386-*-openbsd*) machine=intel386 ;; | |
820 m68k-*-openbsd*) machine=hp9000s300 ;; | |
821 mipsel-*-openbsd*) machine=pmax ;; | |
822 ns32k-*-openbsd*) machine=ns32000 ;; | |
823 sparc-*-openbsd*) machine=sparc ;; | |
824 vax-*-openbsd*) machine=vax ;; | |
825 esac | |
826 ;; | |
827 | |
828 ## Acorn RISCiX: | |
829 arm-acorn-riscix1.1* ) | |
830 machine=acorn opsys=riscix1-1 | |
831 ;; | |
832 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
833 ## This name is riscix12 instead of riscix1.2 | |
834 ## to avoid a file name conflict on MSDOS. | |
835 machine=acorn opsys=riscix12 | |
836 ;; | |
837 | |
838 ## BSDI ports | |
839 *-*-bsdi* ) | |
840 opsys=bsdi | |
841 case "${canonical}" in | |
842 i[345]86-*-bsdi*) machine=intel386 ;; | |
843 sparc-*-bsdi*) machine=sparc ;; | |
844 powerpc-*-bsdi*) machine=powerpc ;; | |
845 esac | |
846 case "${canonical}" in | |
847 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
848 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
849 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
850 *-*-bsdi3* ) opsys=bsdos3 ;; | |
851 *-*-bsdi4* ) opsys=bsdos4 ;; | |
852 esac | |
853 ;; | |
854 | |
855 ## Alliant machines | |
856 ## Strictly speaking, we need the version of the alliant operating | |
857 ## system to choose the right machine file, but currently the | |
858 ## configuration name doesn't tell us enough to choose the right | |
859 ## one; we need to give alliants their own operating system name to | |
860 ## do this right. When someone cares, they can help us. | |
861 fx80-alliant-* ) | |
862 machine=alliant4 opsys=bsd4-2 | |
863 ;; | |
864 i860-alliant-* ) | |
865 machine=alliant-2800 opsys=bsd4-3 | |
866 ;; | |
867 | |
868 ## Alpha (DEC) machines. | |
869 alpha*-dec-osf* ) | |
870 machine=alpha opsys=osf1 | |
871 # This is needed to find X11R6.1 libraries for certain tests. | |
872 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
873 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
27205 | 874 #NON_GCC_TEST_OPTIONS=-std # gets us __STDC__ |
875 #NON_GNU_CPP=/usr/lib/cpp | |
25897 | 876 ;; |
877 | |
878 alpha*-*-linux-gnu* ) | |
879 machine=alpha opsys=gnu-linux | |
880 ;; | |
881 | |
27205 | 882 arm*-*-linux-gnu* ) |
883 machine=arm opsys=gnu-linux | |
884 ;; | |
885 | |
886 ppc-*-linux | \ | |
887 powerpc-*-linux* ) | |
888 machine=powerpc opsys=gnu-linux | |
889 ;; | |
890 | |
25897 | 891 ## Altos 3068 |
892 m68*-altos-sysv* ) | |
893 machine=altos opsys=usg5-2 | |
894 ;; | |
895 | |
896 ## Amdahl UTS | |
897 580-amdahl-sysv* ) | |
898 machine=amdahl opsys=usg5-2-2 | |
899 ;; | |
900 | |
901 ## Apollo, Domain/OS | |
902 m68*-apollo-* ) | |
903 machine=apollo opsys=bsd4-3 | |
904 ;; | |
905 | |
26708 | 906 ## ARM, GNU/Linux |
907 arm*-*-linux-gnu* ) | |
908 machine=arm opsys=gnu-linux | |
909 ;; | |
910 | |
25897 | 911 ## AT&T 3b2, 3b5, 3b15, 3b20 |
912 we32k-att-sysv* ) | |
913 machine=att3b opsys=usg5-2-2 | |
914 ;; | |
915 | |
916 ## AT&T 3b1 - The Mighty Unix PC! | |
917 m68*-att-sysv* ) | |
918 machine=7300 opsys=usg5-2-2 | |
919 ;; | |
920 | |
921 ## Bull dpx20 | |
922 rs6000-bull-bosx* ) | |
923 machine=ibmrs6000 opsys=aix3-2 | |
924 ;; | |
925 | |
926 ## Bull dpx2 | |
927 m68*-bull-sysv3* ) | |
928 machine=dpx2 opsys=usg5-3 | |
929 ;; | |
930 | |
931 ## Bull sps7 | |
932 m68*-bull-sysv2* ) | |
933 machine=sps7 opsys=usg5-2 | |
934 ;; | |
935 | |
936 ## CCI 5/32, 6/32 -- see "Tahoe". | |
937 | |
938 ## Celerity | |
939 ## I don't know what configuration name to use for this; config.sub | |
940 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
941 ## in touch with us! | |
942 celerity-celerity-bsd* ) | |
943 machine=celerity opsys=bsd4-2 | |
944 ;; | |
945 | |
946 ## Clipper | |
947 ## What operating systems does this chip run that Emacs has been | |
948 ## tested on? | |
949 clipper-* ) | |
950 machine=clipper | |
951 ## We'll use the catch-all code at the bottom to guess the | |
952 ## operating system. | |
953 ;; | |
954 | |
955 ## Convex | |
956 *-convex-bsd* | *-convex-convexos* ) | |
957 machine=convex opsys=bsd4-3 | |
958 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
959 NON_GNU_CPP="cc -E -P" | |
960 ;; | |
961 | |
962 ## Cubix QBx/386 | |
963 i[3456]86-cubix-sysv* ) | |
964 machine=intel386 opsys=usg5-3 | |
965 ;; | |
966 | |
967 ## Cydra 5 | |
968 cydra*-cydrome-sysv* ) | |
969 machine=cydra5 opsys=usg5-3 | |
970 ;; | |
971 | |
972 ## Data General AViiON Machines | |
973 ## DG changed naming conventions with the release of 5.4.4.10, they | |
974 ## dropped the initial 5.4 but left the intervening R. Because of the | |
975 ## R this shouldn't conflict with older versions of the OS (which I | |
976 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
977 ## uses either Motorola M88k or Intel Pentium CPUs. | |
978 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
979 machine=aviion opsys=dgux4 | |
980 ;; | |
981 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
982 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
983 ## to avoid a file name conflict on MSDOS. | |
984 machine=aviion opsys=dgux5-4-3 | |
985 ;; | |
986 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
987 machine=aviion opsys=dgux5-4r2 | |
988 ;; | |
989 m88k-dg-dgux* ) | |
990 machine=aviion opsys=dgux | |
991 ;; | |
992 | |
993 ## Data General AViiON Intel (x86) Machines | |
994 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
995 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
996 i[345]86-dg-dguxR4* ) | |
997 machine=aviion-intel opsys=dgux4 | |
998 ;; | |
999 | |
1000 ## DECstations | |
1001 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1002 machine=pmax opsys=bsd4-2 | |
1003 ;; | |
1004 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1005 machine=pmax opsys=bsd4-3 | |
1006 ;; | |
1007 mips-dec-ultrix* ) | |
1008 machine=pmax opsys=ultrix4-3 | |
1009 ;; | |
1010 mips-dec-osf* ) | |
1011 machine=pmax opsys=osf1 | |
1012 ;; | |
1013 mips-dec-mach_bsd4.3* ) | |
1014 machine=pmax opsys=mach-bsd4-3 | |
1015 ;; | |
1016 | |
1017 ## Motorola Delta machines | |
1018 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1019 machine=delta opsys=usg5-3 | |
1020 if test -z "`type gnucc | grep 'not found'`" | |
1021 then | |
1022 if test -s /etc/167config | |
1023 then CC="gnucc -m68040" | |
1024 else CC="gnucc -m68881" | |
1025 fi | |
1026 else | |
1027 if test -z "`type gcc | grep 'not found'`" | |
1028 then CC=gcc | |
1029 else CC=cc | |
1030 fi | |
1031 fi | |
1032 ;; | |
1033 m88k-motorola-sysv4* ) | |
1034 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1035 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1036 # I hope there are not other 4.0 versions for this machine | |
1037 # which really need usg5-4 instead. | |
1038 machine=delta88k opsys=usg5-4-2 | |
1039 ;; | |
1040 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1041 machine=delta88k opsys=usg5-3 | |
1042 ;; | |
1043 | |
1044 ## Dual machines | |
1045 m68*-dual-sysv* ) | |
1046 machine=dual opsys=usg5-2 | |
1047 ;; | |
1048 m68*-dual-uniplus* ) | |
1049 machine=dual opsys=unipl5-2 | |
1050 ;; | |
1051 | |
1052 ## Elxsi 6400 | |
1053 elxsi-elxsi-sysv* ) | |
1054 machine=elxsi opsys=usg5-2 | |
1055 ;; | |
1056 | |
1057 ## Encore machines | |
1058 ns16k-encore-bsd* ) | |
1059 machine=ns16000 opsys=umax | |
1060 ;; | |
1061 | |
1062 ## The GEC 93 - apparently, this port isn't really finished yet. | |
1063 | |
1064 ## Gould Power Node and NP1 | |
1065 pn-gould-bsd4.2* ) | |
1066 machine=gould opsys=bsd4-2 | |
1067 ;; | |
1068 pn-gould-bsd4.3* ) | |
1069 machine=gould opsys=bsd4-3 | |
1070 ;; | |
1071 np1-gould-bsd* ) | |
1072 machine=gould-np1 opsys=bsd4-3 | |
1073 ;; | |
1074 | |
1075 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1076 ## as far as Emacs is concerned). | |
1077 m88k-harris-cxux* ) | |
1078 # Build needs to be different on 7.0 and later releases | |
1079 case "`uname -r`" in | |
1080 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1081 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1082 esac | |
1083 NON_GNU_CPP="/lib/cpp" | |
1084 ;; | |
1085 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1086 m68k-harris-cxux* ) | |
1087 machine=nh3000 opsys=cxux | |
1088 ;; | |
1089 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1090 powerpc-harris-powerunix ) | |
1091 machine=nh6000 opsys=powerunix | |
1092 NON_GNU_CPP="cc -Xo -E -P" | |
1093 ;; | |
1094 ## SR2001/SR2201 running HI-UX/MPP | |
1095 hppa1.1-hitachi-hiuxmpp* ) | |
1096 machine=sr2k opsys=hiuxmpp | |
1097 ;; | |
1098 ## Honeywell XPS100 | |
1099 xps*-honeywell-sysv* ) | |
1100 machine=xps100 opsys=usg5-2 | |
1101 ;; | |
1102 | |
1103 ## HP 9000 series 200 or 300 | |
1104 m68*-hp-bsd* ) | |
1105 machine=hp9000s300 opsys=bsd4-3 | |
1106 ;; | |
1107 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1108 m68*-hp-hpux* ) | |
1109 case "`uname -r`" in | |
1110 ## Someone's system reports A.B8.05 for this. | |
1111 ## I wonder what other possibilities there are. | |
1112 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1113 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1114 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1115 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1116 *) machine=hp9000s300 opsys=hpux ;; | |
1117 esac | |
1118 ;; | |
1119 | |
1120 ## HP 9000 series 700 and 800, running HP/UX | |
1121 hppa*-hp-hpux7* ) | |
1122 machine=hp800 opsys=hpux | |
1123 ;; | |
1124 hppa*-hp-hpux8* ) | |
1125 machine=hp800 opsys=hpux8 | |
1126 ;; | |
1127 hppa*-hp-hpux9shr* ) | |
1128 machine=hp800 opsys=hpux9shr | |
1129 ;; | |
1130 hppa*-hp-hpux9* ) | |
1131 machine=hp800 opsys=hpux9 | |
1132 ;; | |
1133 hppa*-hp-hpux1[0-9]* ) | |
1134 machine=hp800 opsys=hpux10 | |
1135 ;; | |
1136 | |
1137 ## HP 9000 series 700 and 800, running HP/UX | |
1138 hppa*-hp-hpux* ) | |
1139 ## Cross-compilation? Nah! | |
1140 case "`uname -r`" in | |
1141 ## Someone's system reports A.B8.05 for this. | |
1142 ## I wonder what other possibilities there are. | |
1143 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1144 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1145 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1146 *) machine=hp800 opsys=hpux10 ;; | |
1147 esac | |
1148 ;; | |
1149 hppa*-*-nextstep* ) | |
1150 machine=hp800 opsys=nextstep | |
1151 ;; | |
1152 | |
1153 ## Orion machines | |
1154 orion-orion-bsd* ) | |
1155 machine=orion opsys=bsd4-2 | |
1156 ;; | |
1157 clipper-orion-bsd* ) | |
1158 machine=orion105 opsys=bsd4-2 | |
1159 ;; | |
1160 | |
1161 ## IBM machines | |
1162 i[3456]86-ibm-aix1.1* ) | |
1163 machine=ibmps2-aix opsys=usg5-2-2 | |
1164 ;; | |
1165 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1166 machine=ibmps2-aix opsys=usg5-3 | |
1167 ;; | |
1168 i370-ibm-aix*) | |
1169 machine=ibm370aix opsys=usg5-3 | |
1170 ;; | |
1171 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) | |
1172 machine=ibmrs6000 opsys=aix3-1 | |
1173 ;; | |
1174 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1175 machine=ibmrs6000 opsys=aix3-2-5 | |
1176 ;; | |
1177 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1178 machine=ibmrs6000 opsys=aix4-1 | |
1179 ;; | |
1180 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1181 machine=ibmrs6000 opsys=aix4-2 | |
1182 ;; | |
1183 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) | |
1184 machine=ibmrs6000 opsys=aix4 | |
1185 ;; | |
1186 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1187 machine=ibmrs6000 opsys=aix4-1 | |
1188 ;; | |
1189 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1190 machine=ibmrs6000 opsys=aix3-2 | |
1191 ;; | |
1192 romp-ibm-bsd4.3* ) | |
1193 machine=ibmrt opsys=bsd4-3 | |
1194 ;; | |
1195 romp-ibm-bsd4.2* ) | |
1196 machine=ibmrt opsys=bsd4-2 | |
1197 ;; | |
1198 romp-ibm-aos4.3* ) | |
1199 machine=ibmrt opsys=bsd4-3 | |
1200 ;; | |
1201 romp-ibm-aos4.2* ) | |
1202 machine=ibmrt opsys=bsd4-2 | |
1203 ;; | |
1204 romp-ibm-aos* ) | |
1205 machine=ibmrt opsys=bsd4-3 | |
1206 ;; | |
1207 romp-ibm-bsd* ) | |
1208 machine=ibmrt opsys=bsd4-3 | |
1209 ;; | |
1210 romp-ibm-aix* ) | |
1211 machine=ibmrt-aix opsys=usg5-2-2 | |
1212 ;; | |
1213 | |
1214 ## Integrated Solutions `Optimum V' | |
1215 m68*-isi-bsd4.2* ) | |
1216 machine=isi-ov opsys=bsd4-2 | |
1217 ;; | |
1218 m68*-isi-bsd4.3* ) | |
1219 machine=isi-ov opsys=bsd4-3 | |
1220 ;; | |
1221 | |
1222 ## Intel 386 machines where we do care about the manufacturer | |
1223 i[3456]86-intsys-sysv* ) | |
1224 machine=is386 opsys=usg5-2-2 | |
1225 ;; | |
1226 | |
1227 ## Prime EXL | |
1228 i[3456]86-prime-sysv* ) | |
1229 machine=i386 opsys=usg5-3 | |
1230 ;; | |
1231 | |
1232 ## Sequent Symmetry running Dynix | |
1233 i[3456]86-sequent-bsd* ) | |
1234 machine=symmetry opsys=bsd4-3 | |
1235 ;; | |
1236 | |
1237 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1238 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1239 machine=sequent-ptx opsys=ptx4 | |
1240 NON_GNU_CPP=/lib/cpp | |
1241 ;; | |
1242 | |
1243 ## Sequent Symmetry running DYNIX/ptx | |
1244 ## Use the old cpp rather than the newer ANSI one. | |
1245 i[3456]86-sequent-ptx* ) | |
1246 machine=sequent-ptx opsys=ptx | |
1247 NON_GNU_CPP="/lib/cpp" | |
1248 ;; | |
1249 | |
1250 ## ncr machine running svr4.3. | |
1251 i[3456]86-ncr-sysv4.3 ) | |
1252 machine=ncr386 opsys=usg5-4-3 | |
1253 ;; | |
1254 | |
1255 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1256 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1257 i[3456]86-ncr-sysv* ) | |
1258 machine=ncr386 opsys=usg5-4-2 | |
1259 ;; | |
1260 | |
1261 ## Intel Paragon OSF/1 | |
1262 i860-intel-osf1* ) | |
1263 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1264 ;; | |
1265 | |
1266 ## Intel 860 | |
1267 i860-*-sysv4* ) | |
1268 machine=i860 opsys=usg5-4 | |
1269 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1270 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1271 ;; | |
1272 | |
1273 ## Masscomp machines | |
1274 m68*-masscomp-rtu* ) | |
1275 machine=masscomp opsys=rtu | |
1276 ;; | |
1277 | |
1278 ## Megatest machines | |
1279 m68*-megatest-bsd* ) | |
1280 machine=mega68 opsys=bsd4-2 | |
1281 ;; | |
1282 | |
1283 ## Workstations sold by MIPS | |
1284 ## This is not necessarily all workstations using the MIPS processor - | |
1285 ## Irises are produced by SGI, and DECstations by DEC. | |
1286 | |
1287 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1288 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1289 ## it gives for choosing between the alternatives seems to be "Use | |
1290 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1291 ## the BSD world." I'll assume that these are instructions for | |
1292 ## handling two odd situations, and that every other situation | |
1293 ## should use mips.h and usg5-2-2, they being listed first. | |
1294 mips-mips-usg* ) | |
1295 machine=mips4 | |
1296 ## Fall through to the general code at the bottom to decide on the OS. | |
1297 ;; | |
1298 mips-mips-riscos4* ) | |
1299 machine=mips4 opsys=bsd4-3 | |
1300 NON_GNU_CC="cc -systype bsd43" | |
1301 NON_GNU_CPP="cc -systype bsd43 -E" | |
1302 ;; | |
1303 mips-mips-riscos5* ) | |
1304 machine=mips4 opsys=riscos5 | |
1305 NON_GNU_CC="cc -systype bsd43" | |
1306 NON_GNU_CPP="cc -systype bsd43 -E" | |
1307 ;; | |
1308 mips-mips-bsd* ) | |
1309 machine=mips opsys=bsd4-3 | |
1310 ;; | |
1311 mips-mips-* ) | |
1312 machine=mips opsys=usg5-2-2 | |
1313 ;; | |
1314 | |
1315 ## NeXT | |
1316 m68*-next-* | m68k-*-nextstep* ) | |
1317 machine=m68k opsys=nextstep | |
1318 ;; | |
1319 | |
1320 ## The complete machine from National Semiconductor | |
1321 ns32k-ns-genix* ) | |
1322 machine=ns32000 opsys=usg5-2 | |
1323 ;; | |
1324 | |
1325 ## NCR machines | |
1326 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1327 machine=tower32 opsys=usg5-2-2 | |
1328 ;; | |
1329 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1330 machine=tower32v3 opsys=usg5-3 | |
1331 ;; | |
1332 | |
1333 ## NEC EWS4800 | |
1334 mips-nec-sysv4*) | |
1335 machine=ews4800 opsys=ux4800 | |
1336 ;; | |
1337 | |
1338 ## Nixdorf Targon 31 | |
1339 m68*-nixdorf-sysv* ) | |
1340 machine=targon31 opsys=usg5-2-2 | |
1341 ;; | |
1342 | |
1343 ## Nu (TI or LMI) | |
1344 m68*-nu-sysv* ) | |
1345 machine=nu opsys=usg5-2 | |
1346 ;; | |
1347 | |
1348 ## Plexus | |
1349 m68*-plexus-sysv* ) | |
1350 machine=plexus opsys=usg5-2 | |
1351 ;; | |
1352 | |
1353 ## PowerPC reference platform | |
1354 powerpcle-*-solaris2* ) | |
1355 machine=prep | |
1356 opsys=sol2-5 | |
1357 ;; | |
1358 | |
1359 ## Pyramid machines | |
1360 ## I don't really have any idea what sort of processor the Pyramid has, | |
1361 ## so I'm assuming it is its own architecture. | |
1362 pyramid-pyramid-bsd* ) | |
1363 machine=pyramid opsys=bsd4-2 | |
1364 ;; | |
1365 | |
1366 ## Sequent Balance | |
1367 ns32k-sequent-bsd4.2* ) | |
1368 machine=sequent opsys=bsd4-2 | |
1369 ;; | |
1370 ns32k-sequent-bsd4.3* ) | |
1371 machine=sequent opsys=bsd4-3 | |
1372 ;; | |
1373 | |
1374 ## Siemens Nixdorf | |
1375 mips-siemens-sysv* | mips-sni-sysv*) | |
1376 machine=mips-siemens opsys=usg5-4 | |
1377 NON_GNU_CC=/usr/ccs/bin/cc | |
1378 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1379 ;; | |
1380 | |
1381 ## Silicon Graphics machines | |
1382 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1383 m68*-sgi-iris3.5* ) | |
1384 machine=irist opsys=iris3-5 | |
1385 ;; | |
1386 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1387 machine=irist opsys=iris3-6 | |
1388 ;; | |
1389 ## Iris 4D | |
1390 mips-sgi-irix3* ) | |
1391 machine=iris4d opsys=irix3-3 | |
1392 ;; | |
1393 mips-sgi-irix4* ) | |
1394 machine=iris4d opsys=irix4-0 | |
1395 ;; | |
1396 mips-sgi-irix6.5 ) | |
1397 machine=iris4d opsys=irix6-5 | |
26502 | 1398 # Without defining _LANGUAGE_C, things get masked out in the headers |
1399 # so that, for instance, grepping for `free' in stdlib.h fails and | |
1400 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
1401 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
1402 NON_GCC_TEST_OPTIONS="-n32 -G0 -D_LANGUAGE_C" | |
25897 | 1403 ;; |
1404 mips-sgi-irix6* ) | |
1405 machine=iris4d opsys=irix6-0 | |
27205 | 1406 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26502 | 1407 # but presumably it does no harm. |
1408 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
25897 | 1409 NON_GCC_TEST_OPTIONS=-32 |
1410 ;; | |
1411 mips-sgi-irix5.[01]* ) | |
1412 machine=iris4d opsys=irix5-0 | |
1413 ;; | |
1414 mips-sgi-irix5* | mips-sgi-irix* ) | |
1415 machine=iris4d opsys=irix5-2 | |
1416 ;; | |
1417 | |
1418 ## SONY machines | |
1419 m68*-sony-bsd4.2* ) | |
1420 machine=news opsys=bsd4-2 | |
1421 ;; | |
1422 m68*-sony-bsd4.3* ) | |
1423 machine=news opsys=bsd4-3 | |
1424 ;; | |
1425 m68*-sony-newsos3* | m68*-sony-news3*) | |
1426 machine=news opsys=bsd4-3 | |
1427 ;; | |
1428 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
1429 machine=news-risc opsys=bsd4-3 | |
1430 ;; | |
1431 mips-sony-newsos6* ) | |
1432 machine=news-r6 opsys=newsos6 | |
1433 ;; | |
1434 mips-sony-news* ) | |
1435 machine=news-risc opsys=newsos5 | |
1436 ;; | |
1437 | |
1438 ## Stride | |
1439 m68*-stride-sysv* ) | |
1440 machine=stride opsys=usg5-2 | |
1441 ;; | |
1442 | |
1443 ## Suns | |
1444 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
1445 machine=sparc opsys=gnu-linux | |
1446 ;; | |
1447 | |
1448 *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ | |
1449 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ | |
1450 | rs6000-*-solaris2*) | |
1451 case "${canonical}" in | |
1452 m68*-sunos1* ) machine=sun1 ;; | |
1453 m68*-sunos2* ) machine=sun2 ;; | |
1454 m68* ) machine=sun3 ;; | |
1455 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
1456 i[3456]86-*-* ) machine=intel386 ;; | |
1457 powerpcle* ) machine=powerpcle ;; | |
1458 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
1459 sparc* ) machine=sparc ;; | |
1460 * ) unported=yes ;; | |
1461 esac | |
1462 case "${canonical}" in | |
1463 ## The Sun386 didn't get past 4.0. | |
1464 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
1465 *-sunos4.0* ) opsys=sunos4-0 ;; | |
1466 *-sunos4.1.[3-9]*noshare ) | |
1467 ## This name is sunos413 instead of sunos4-1-3 | |
1468 ## to avoid a file name conflict on MSDOS. | |
1469 opsys=sunos413 | |
1470 NON_GNU_CPP=/usr/lib/cpp | |
1471 NON_GCC_TEST_OPTIONS=-Bstatic | |
1472 GCC_TEST_OPTIONS=-static | |
1473 ;; | |
1474 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
1475 opsys=sunos4shr | |
1476 NON_GNU_CPP=/usr/lib/cpp | |
1477 ;; | |
1478 *-sunos4* | *-sunos ) | |
1479 opsys=sunos4-1 | |
1480 NON_GCC_TEST_OPTIONS=-Bstatic | |
1481 GCC_TEST_OPTIONS=-static | |
1482 ;; | |
1483 *-sunos5.3* | *-solaris2.3* ) | |
1484 opsys=sol2-3 | |
1485 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1486 ;; | |
1487 *-sunos5.4* | *-solaris2.4* ) | |
1488 opsys=sol2-4 | |
1489 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1490 RANLIB="ar -ts" | |
1491 ;; | |
1492 *-sunos5.5* | *-solaris2.5* ) | |
1493 opsys=sol2-5 | |
1494 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1495 RANLIB="ar -ts" | |
1496 ;; | |
1497 *-sunos5* | *-solaris* ) | |
1498 opsys=sol2-5 | |
1499 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1500 ;; | |
1501 * ) opsys=bsd4-2 ;; | |
1502 esac | |
1503 ## Watch out for a compiler that we know will not work. | |
1504 case "${canonical}" in | |
1505 *-solaris* | *-sunos5* ) | |
1506 if [ "x$CC" = x/usr/ucb/cc ]; then | |
1507 ## /usr/ucb/cc doesn't work; | |
1508 ## we should find some other compiler that does work. | |
1509 unset CC | |
1510 fi | |
1511 ;; | |
1512 *) ;; | |
1513 esac | |
1514 ;; | |
1515 sparc-*-nextstep* ) | |
1516 machine=sparc opsys=nextstep | |
1517 ;; | |
1518 | |
1519 ## Tadpole 68k | |
1520 m68*-tadpole-sysv* ) | |
1521 machine=tad68k opsys=usg5-3 | |
1522 ;; | |
1523 | |
1524 ## Tahoe machines | |
1525 tahoe-tahoe-bsd4.2* ) | |
1526 machine=tahoe opsys=bsd4-2 | |
1527 ;; | |
1528 tahoe-tahoe-bsd4.3* ) | |
1529 machine=tahoe opsys=bsd4-3 | |
1530 ;; | |
1531 | |
1532 ## Tandem Integrity S2 | |
1533 mips-tandem-sysv* ) | |
1534 machine=tandem-s2 opsys=usg5-3 | |
1535 ;; | |
1536 | |
1537 ## Tektronix XD88 | |
1538 m88k-tektronix-sysv3* ) | |
1539 machine=tekxd88 opsys=usg5-3 | |
1540 ;; | |
1541 | |
1542 ## Tektronix 16000 box (6130?) | |
1543 ns16k-tektronix-bsd* ) | |
1544 machine=ns16000 opsys=bsd4-2 | |
1545 ;; | |
1546 ## Tektronix 4300 | |
1547 ## src/m/tek4300.h hints that this is a m68k machine. | |
1548 m68*-tektronix-bsd* ) | |
1549 machine=tek4300 opsys=bsd4-3 | |
1550 ;; | |
1551 | |
1552 ## Titan P2 or P3 | |
1553 ## We seem to have lost the machine-description file titan.h! | |
1554 titan-titan-sysv* ) | |
1555 machine=titan opsys=usg5-3 | |
1556 ;; | |
1557 | |
1558 ## Ustation E30 (SS5E) | |
1559 m68*-unisys-uniplus* ) | |
1560 machine=ustation opsystem=unipl5-2 | |
1561 ;; | |
1562 | |
1563 ## Vaxen. | |
1564 vax-dec-* ) | |
1565 machine=vax | |
1566 case "${canonical}" in | |
1567 *-bsd4.1* ) opsys=bsd4-1 ;; | |
1568 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
1569 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
1570 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
1571 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
1572 *-vms* ) opsys=vms ;; | |
1573 * ) unported=yes | |
1574 esac | |
1575 ;; | |
1576 | |
1577 ## Whitechapel MG1 | |
1578 ns16k-whitechapel-* ) | |
1579 machine=mg1 | |
1580 ## We don't know what sort of OS runs on these; we'll let the | |
1581 ## operating system guessing code below try. | |
1582 ;; | |
1583 | |
1584 ## Wicat | |
1585 m68*-wicat-sysv* ) | |
1586 machine=wicat opsys=usg5-2 | |
1587 ;; | |
1588 | |
1589 ## Intel 386 machines where we don't care about the manufacturer | |
1590 i[3456]86-*-* ) | |
1591 machine=intel386 | |
1592 case "${canonical}" in | |
1593 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; | |
1594 *-isc2.2* ) opsys=isc2-2 ;; | |
1595 *-isc4.0* ) opsys=isc4-0 ;; | |
1596 *-isc4.* ) opsys=isc4-1 | |
1597 GCC_TEST_OPTIONS=-posix | |
1598 NON_GCC_TEST_OPTIONS=-Xp | |
1599 ;; | |
1600 *-isc* ) opsys=isc3-0 ;; | |
1601 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
1602 *-esix* ) opsys=esix ;; | |
1603 *-xenix* ) opsys=xenix ;; | |
1604 *-linux-gnu* ) opsys=gnu-linux ;; | |
1605 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
1606 *-sco3.2v5* ) opsys=sco5 | |
1607 NON_GNU_CPP=/lib/cpp | |
1608 # Prevent -belf from being passed to $CPP. | |
1609 # /lib/cpp does not accept it. | |
1610 OVERRIDE_CPPFLAGS=" " | |
1611 ;; | |
1612 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
1613 *-386bsd* ) opsys=386bsd ;; | |
1614 *-freebsd* ) opsys=freebsd ;; | |
1615 *-nextstep* ) opsys=nextstep ;; | |
1616 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
1617 esac | |
1618 ;; | |
1619 | |
1620 ## m68k Linux-based GNU system | |
1621 m68k-*-linux-gnu* ) | |
1622 machine=m68k opsys=gnu-linux | |
1623 ;; | |
1624 | |
1625 ## Mips Linux-based GNU system | |
1626 mips-*-linux-gnu* ) | |
1627 machine=mips opsys=gnu-linux | |
1628 ;; | |
1629 | |
1630 ## UXP/DS | |
1631 sparc-fujitsu-sysv4* ) | |
1632 machine=sparc opsys=uxpds | |
1633 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1634 RANLIB="ar -ts" | |
1635 ;; | |
1636 | |
1637 ## UXP/V | |
1638 f301-fujitsu-uxpv4.1) | |
1639 machine=f301 opsys=uxpv | |
1640 ;; | |
1641 | |
1642 * ) | |
1643 unported=yes | |
1644 ;; | |
1645 esac | |
1646 | |
1647 ### If the code above didn't choose an operating system, just choose | |
1648 ### an operating system based on the configuration name. You really | |
1649 ### only want to use this when you have no idea what the right | |
1650 ### operating system is; if you know what operating systems a machine | |
1651 ### runs, it's cleaner to make it explicit in the case statement | |
1652 ### above. | |
1653 if test x"${opsys}" = x; then | |
1654 case "${canonical}" in | |
1655 *-gnu* ) opsys=gnu ;; | |
1656 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
1657 *-bsd4.2 ) opsys=bsd4-2 ;; | |
1658 *-bsd4.3 ) opsys=bsd4-3 ;; | |
1659 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
1660 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
1661 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
1662 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
1663 *-sysv4.2uw* ) opsys=unixware ;; | |
1664 *-sysv4.1* | *-sysvr4.1* ) | |
1665 NON_GNU_CPP=/usr/lib/cpp | |
1666 opsys=usg5-4 ;; | |
1667 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
1668 if [ x$NON_GNU_CPP = x ]; then | |
1669 if [ -f /usr/ccs/lib/cpp ]; then | |
1670 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1671 else | |
1672 NON_GNU_CPP=/lib/cpp | |
1673 fi | |
1674 fi | |
1675 opsys=usg5-4-2 ;; | |
1676 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
1677 * ) | |
1678 unported=yes | |
1679 ;; | |
1680 esac | |
1681 fi | |
1682 | |
1683 if test "x$RANLIB" = x; then | |
1684 RANLIB=ranlib | |
1685 fi | |
1686 | |
1687 | |
1688 if test $unported = yes; then | |
1689 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems. | |
1690 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; } | |
1691 fi | |
1692 | |
1693 machfile="m/${machine}.h" | |
1694 opsysfile="s/${opsys}.h" | |
1695 | |
1696 | |
1697 #### Choose a compiler. | |
1698 test -n "$CC" && cc_specified=yes | |
1699 | |
1700 # Save the value of CFLAGS that the user specified. | |
1701 SPECIFIED_CFLAGS="$CFLAGS" | |
1702 | |
1703 case ${with_gcc} in | |
1704 "yes" ) CC="gcc" GCC=yes ;; | |
1705 "no" ) : ${CC=cc} ;; | |
1706 * ) # Extract the first word of "gcc", so it can be a program name with args. | |
1707 set dummy gcc; ac_word=$2 | |
1708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
27205 | 1709 echo "configure:1710: checking for $ac_word" >&5 |
25897 | 1710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1711 echo $ac_n "(cached) $ac_c" 1>&6 | |
1712 else | |
1713 if test -n "$CC"; then | |
1714 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1715 else | |
27205 | 1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1717 ac_dummy="$PATH" | |
1718 for ac_dir in $ac_dummy; do | |
25897 | 1719 test -z "$ac_dir" && ac_dir=. |
1720 if test -f $ac_dir/$ac_word; then | |
1721 ac_cv_prog_CC="gcc" | |
1722 break | |
1723 fi | |
1724 done | |
1725 IFS="$ac_save_ifs" | |
1726 fi | |
1727 fi | |
1728 CC="$ac_cv_prog_CC" | |
1729 if test -n "$CC"; then | |
1730 echo "$ac_t""$CC" 1>&6 | |
1731 else | |
1732 echo "$ac_t""no" 1>&6 | |
1733 fi | |
1734 | |
1735 if test -z "$CC"; then | |
1736 # Extract the first word of "cc", so it can be a program name with args. | |
1737 set dummy cc; ac_word=$2 | |
1738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
27205 | 1739 echo "configure:1740: checking for $ac_word" >&5 |
25897 | 1740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1741 echo $ac_n "(cached) $ac_c" 1>&6 | |
1742 else | |
1743 if test -n "$CC"; then | |
1744 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1745 else | |
27205 | 1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
25897 | 1747 ac_prog_rejected=no |
27205 | 1748 ac_dummy="$PATH" |
1749 for ac_dir in $ac_dummy; do | |
25897 | 1750 test -z "$ac_dir" && ac_dir=. |
1751 if test -f $ac_dir/$ac_word; then | |
1752 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1753 ac_prog_rejected=yes | |
1754 continue | |
1755 fi | |
1756 ac_cv_prog_CC="cc" | |
1757 break | |
1758 fi | |
1759 done | |
1760 IFS="$ac_save_ifs" | |
1761 if test $ac_prog_rejected = yes; then | |
1762 # We found a bogon in the path, so make sure we never use it. | |
1763 set dummy $ac_cv_prog_CC | |
1764 shift | |
1765 if test $# -gt 0; then | |
1766 # We chose a different compiler from the bogus one. | |
1767 # However, it has the same basename, so the bogon will be chosen | |
1768 # first if we set CC to just the basename; use the full file name. | |
1769 shift | |
1770 set dummy "$ac_dir/$ac_word" "$@" | |
1771 shift | |
1772 ac_cv_prog_CC="$@" | |
1773 fi | |
1774 fi | |
1775 fi | |
1776 fi | |
1777 CC="$ac_cv_prog_CC" | |
1778 if test -n "$CC"; then | |
1779 echo "$ac_t""$CC" 1>&6 | |
1780 else | |
1781 echo "$ac_t""no" 1>&6 | |
1782 fi | |
1783 | |
27205 | 1784 if test -z "$CC"; then |
1785 case "`uname -s`" in | |
1786 *win32* | *WIN32*) | |
1787 # Extract the first word of "cl", so it can be a program name with args. | |
1788 set dummy cl; ac_word=$2 | |
1789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1790 echo "configure:1791: checking for $ac_word" >&5 | |
1791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1792 echo $ac_n "(cached) $ac_c" 1>&6 | |
1793 else | |
1794 if test -n "$CC"; then | |
1795 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1796 else | |
1797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1798 ac_dummy="$PATH" | |
1799 for ac_dir in $ac_dummy; do | |
1800 test -z "$ac_dir" && ac_dir=. | |
1801 if test -f $ac_dir/$ac_word; then | |
1802 ac_cv_prog_CC="cl" | |
1803 break | |
1804 fi | |
1805 done | |
1806 IFS="$ac_save_ifs" | |
1807 fi | |
1808 fi | |
1809 CC="$ac_cv_prog_CC" | |
1810 if test -n "$CC"; then | |
1811 echo "$ac_t""$CC" 1>&6 | |
1812 else | |
1813 echo "$ac_t""no" 1>&6 | |
1814 fi | |
1815 ;; | |
1816 esac | |
1817 fi | |
25897 | 1818 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1819 fi | |
1820 | |
1821 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
27205 | 1822 echo "configure:1823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
25897 | 1823 |
1824 ac_ext=c | |
1825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1826 ac_cpp='$CPP $CPPFLAGS' | |
1827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
27205 | 1828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
25897 | 1829 cross_compiling=$ac_cv_prog_cc_cross |
1830 | |
27205 | 1831 cat > conftest.$ac_ext << EOF |
1832 | |
1833 #line 1834 "configure" | |
25897 | 1834 #include "confdefs.h" |
27205 | 1835 |
25897 | 1836 main(){return(0);} |
1837 EOF | |
27205 | 1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 1839 ac_cv_prog_cc_works=yes |
1840 # If we can't run a trivial program, we are probably using a cross compiler. | |
1841 if (./conftest; exit) 2>/dev/null; then | |
1842 ac_cv_prog_cc_cross=no | |
1843 else | |
1844 ac_cv_prog_cc_cross=yes | |
1845 fi | |
1846 else | |
1847 echo "configure: failed program was:" >&5 | |
1848 cat conftest.$ac_ext >&5 | |
1849 ac_cv_prog_cc_works=no | |
1850 fi | |
1851 rm -fr conftest* | |
27205 | 1852 ac_ext=c |
1853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1854 ac_cpp='$CPP $CPPFLAGS' | |
1855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1857 cross_compiling=$ac_cv_prog_cc_cross | |
25897 | 1858 |
1859 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1860 if test $ac_cv_prog_cc_works = no; then | |
1861 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1862 fi | |
1863 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
27205 | 1864 echo "configure:1865: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
25897 | 1865 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1866 cross_compiling=$ac_cv_prog_cc_cross | |
1867 | |
1868 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
27205 | 1869 echo "configure:1870: checking whether we are using GNU C" >&5 |
25897 | 1870 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1871 echo $ac_n "(cached) $ac_c" 1>&6 | |
1872 else | |
1873 cat > conftest.c <<EOF | |
1874 #ifdef __GNUC__ | |
1875 yes; | |
1876 #endif | |
1877 EOF | |
27205 | 1878 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
25897 | 1879 ac_cv_prog_gcc=yes |
1880 else | |
1881 ac_cv_prog_gcc=no | |
1882 fi | |
1883 fi | |
1884 | |
1885 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1886 | |
1887 if test $ac_cv_prog_gcc = yes; then | |
1888 GCC=yes | |
27205 | 1889 else |
1890 GCC= | |
1891 fi | |
1892 | |
1893 ac_test_CFLAGS="${CFLAGS+set}" | |
1894 ac_save_CFLAGS="$CFLAGS" | |
1895 CFLAGS= | |
1896 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1897 echo "configure:1898: checking whether ${CC-cc} accepts -g" >&5 | |
25897 | 1898 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1899 echo $ac_n "(cached) $ac_c" 1>&6 | |
1900 else | |
1901 echo 'void f(){}' > conftest.c | |
1902 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1903 ac_cv_prog_cc_g=yes | |
1904 else | |
1905 ac_cv_prog_cc_g=no | |
1906 fi | |
1907 rm -f conftest* | |
1908 | |
1909 fi | |
1910 | |
1911 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
27205 | 1912 if test "$ac_test_CFLAGS" = set; then |
1913 CFLAGS="$ac_save_CFLAGS" | |
1914 elif test $ac_cv_prog_cc_g = yes; then | |
1915 if test "$GCC" = yes; then | |
25897 | 1916 CFLAGS="-g -O2" |
1917 else | |
27205 | 1918 CFLAGS="-g" |
25897 | 1919 fi |
1920 else | |
27205 | 1921 if test "$GCC" = yes; then |
1922 CFLAGS="-O2" | |
1923 else | |
1924 CFLAGS= | |
1925 fi | |
25897 | 1926 fi |
1927 | |
1928 esac | |
1929 | |
1930 # On Suns, sometimes $CPP names a directory. | |
1931 if test -n "$CPP" && test -d "$CPP"; then | |
1932 CPP= | |
1933 fi | |
1934 | |
1935 #### Some systems specify a CPP to use unless we are using GCC. | |
1936 #### Now that we know whether we are using GCC, we can decide whether | |
1937 #### to use that one. | |
1938 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
1939 then | |
1940 CPP="$NON_GNU_CPP" | |
1941 fi | |
1942 | |
1943 #### Some systems specify a CC to use unless we are using GCC. | |
1944 #### Now that we know whether we are using GCC, we can decide whether | |
1945 #### to use that one. | |
1946 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
1947 test x$cc_specified != xyes | |
1948 then | |
1949 CC="$NON_GNU_CC" | |
1950 fi | |
1951 | |
1952 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
1953 then | |
1954 CC="$CC $GCC_TEST_OPTIONS" | |
1955 fi | |
1956 | |
1957 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
1958 then | |
1959 CC="$CC $NON_GCC_TEST_OPTIONS" | |
1960 fi | |
1961 | |
1962 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
1963 then | |
1964 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
1965 fi | |
1966 | |
1967 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
1968 then | |
1969 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
1970 fi | |
1971 | |
1972 #### Some other nice autoconf tests. If you add a test here which | |
1973 #### should make an entry in src/config.h, don't forget to add an | |
1974 #### #undef clause to src/config.h.in for autoconf to modify. | |
1975 | |
1976 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
27205 | 1977 echo "configure:1978: checking whether ln -s works" >&5 |
25897 | 1978 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1979 echo $ac_n "(cached) $ac_c" 1>&6 | |
1980 else | |
1981 rm -f conftestdata | |
1982 if ln -s X conftestdata 2>/dev/null | |
1983 then | |
1984 rm -f conftestdata | |
1985 ac_cv_prog_LN_S="ln -s" | |
1986 else | |
1987 ac_cv_prog_LN_S=ln | |
1988 fi | |
1989 fi | |
1990 LN_S="$ac_cv_prog_LN_S" | |
1991 if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1992 echo "$ac_t""yes" 1>&6 | |
1993 else | |
1994 echo "$ac_t""no" 1>&6 | |
1995 fi | |
1996 | |
1997 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
27205 | 1998 echo "configure:1999: checking how to run the C preprocessor" >&5 |
25897 | 1999 # On Suns, sometimes $CPP names a directory. |
2000 if test -n "$CPP" && test -d "$CPP"; then | |
2001 CPP= | |
2002 fi | |
2003 if test -z "$CPP"; then | |
2004 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2005 echo $ac_n "(cached) $ac_c" 1>&6 | |
2006 else | |
2007 # This must be in double quotes, not single quotes, because CPP may get | |
2008 # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2009 CPP="${CC-cc} -E" | |
2010 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2011 # not just through cpp. | |
2012 cat > conftest.$ac_ext <<EOF | |
27205 | 2013 #line 2014 "configure" |
25897 | 2014 #include "confdefs.h" |
2015 #include <assert.h> | |
2016 Syntax Error | |
2017 EOF | |
2018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 2019 { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 2021 if test -z "$ac_err"; then |
2022 : | |
2023 else | |
2024 echo "$ac_err" >&5 | |
2025 echo "configure: failed program was:" >&5 | |
2026 cat conftest.$ac_ext >&5 | |
2027 rm -rf conftest* | |
2028 CPP="${CC-cc} -E -traditional-cpp" | |
2029 cat > conftest.$ac_ext <<EOF | |
27205 | 2030 #line 2031 "configure" |
25897 | 2031 #include "confdefs.h" |
2032 #include <assert.h> | |
2033 Syntax Error | |
2034 EOF | |
2035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 2036 { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2038 if test -z "$ac_err"; then | |
2039 : | |
2040 else | |
2041 echo "$ac_err" >&5 | |
2042 echo "configure: failed program was:" >&5 | |
2043 cat conftest.$ac_ext >&5 | |
2044 rm -rf conftest* | |
2045 CPP="${CC-cc} -nologo -E" | |
2046 cat > conftest.$ac_ext <<EOF | |
2047 #line 2048 "configure" | |
2048 #include "confdefs.h" | |
2049 #include <assert.h> | |
2050 Syntax Error | |
2051 EOF | |
2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 2055 if test -z "$ac_err"; then |
2056 : | |
2057 else | |
2058 echo "$ac_err" >&5 | |
2059 echo "configure: failed program was:" >&5 | |
2060 cat conftest.$ac_ext >&5 | |
2061 rm -rf conftest* | |
2062 CPP=/lib/cpp | |
2063 fi | |
2064 rm -f conftest* | |
2065 fi | |
2066 rm -f conftest* | |
27205 | 2067 fi |
2068 rm -f conftest* | |
25897 | 2069 ac_cv_prog_CPP="$CPP" |
2070 fi | |
2071 CPP="$ac_cv_prog_CPP" | |
2072 else | |
2073 ac_cv_prog_CPP="$CPP" | |
2074 fi | |
2075 echo "$ac_t""$CPP" 1>&6 | |
2076 | |
2077 # Find a good install program. We prefer a C program (faster), | |
2078 # so one script is as good as another. But avoid the broken or | |
2079 # incompatible versions: | |
2080 # SysV /etc/install, /usr/sbin/install | |
2081 # SunOS /usr/etc/install | |
2082 # IRIX /sbin/install | |
2083 # AIX /bin/install | |
27205 | 2084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
25897 | 2085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2087 # ./install, which can be erroneously created by make from ./install.sh. | |
2088 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
27205 | 2089 echo "configure:2090: checking for a BSD compatible install" >&5 |
25897 | 2090 if test -z "$INSTALL"; then |
2091 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
2092 echo $ac_n "(cached) $ac_c" 1>&6 | |
2093 else | |
27205 | 2094 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
25897 | 2095 for ac_dir in $PATH; do |
2096 # Account for people who put trailing slashes in PATH elements. | |
2097 case "$ac_dir/" in | |
2098 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
2099 *) | |
2100 # OSF1 and SCO ODT 3.0 have their own names for install. | |
27205 | 2101 # Don't use installbsd from OSF since it installs stuff as root |
2102 # by default. | |
2103 for ac_prog in ginstall scoinst install; do | |
25897 | 2104 if test -f $ac_dir/$ac_prog; then |
2105 if test $ac_prog = install && | |
2106 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
2107 # AIX install. It has an incompatible calling convention. | |
2108 : | |
2109 else | |
2110 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2111 break 2 | |
2112 fi | |
2113 fi | |
2114 done | |
2115 ;; | |
2116 esac | |
2117 done | |
2118 IFS="$ac_save_IFS" | |
2119 | |
2120 fi | |
2121 if test "${ac_cv_path_install+set}" = set; then | |
2122 INSTALL="$ac_cv_path_install" | |
2123 else | |
2124 # As a last resort, use the slow shell script. We don't cache a | |
2125 # path for INSTALL within a source directory, because that will | |
2126 # break other packages using the cache if that directory is | |
2127 # removed, or if the path is relative. | |
2128 INSTALL="$ac_install_sh" | |
2129 fi | |
2130 fi | |
2131 echo "$ac_t""$INSTALL" 1>&6 | |
2132 | |
2133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2134 # It thinks the first close brace ends the variable substitution. | |
2135 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2136 | |
27205 | 2137 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
2138 | |
25897 | 2139 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2140 | |
2141 for ac_prog in 'bison -y' byacc | |
2142 do | |
2143 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2144 set dummy $ac_prog; ac_word=$2 | |
2145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
27205 | 2146 echo "configure:2147: checking for $ac_word" >&5 |
25897 | 2147 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
2148 echo $ac_n "(cached) $ac_c" 1>&6 | |
2149 else | |
2150 if test -n "$YACC"; then | |
2151 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
2152 else | |
27205 | 2153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2154 ac_dummy="$PATH" | |
2155 for ac_dir in $ac_dummy; do | |
25897 | 2156 test -z "$ac_dir" && ac_dir=. |
2157 if test -f $ac_dir/$ac_word; then | |
2158 ac_cv_prog_YACC="$ac_prog" | |
2159 break | |
2160 fi | |
2161 done | |
2162 IFS="$ac_save_ifs" | |
2163 fi | |
2164 fi | |
2165 YACC="$ac_cv_prog_YACC" | |
2166 if test -n "$YACC"; then | |
2167 echo "$ac_t""$YACC" 1>&6 | |
2168 else | |
2169 echo "$ac_t""no" 1>&6 | |
2170 fi | |
2171 | |
2172 test -n "$YACC" && break | |
2173 done | |
2174 test -n "$YACC" || YACC="yacc" | |
2175 | |
2176 | |
2177 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | |
27205 | 2178 echo "configure:2179: checking for AIX" >&5 |
25897 | 2179 cat > conftest.$ac_ext <<EOF |
27205 | 2180 #line 2181 "configure" |
25897 | 2181 #include "confdefs.h" |
2182 #ifdef _AIX | |
2183 yes | |
2184 #endif | |
2185 | |
2186 EOF | |
2187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2188 egrep "yes" >/dev/null 2>&1; then | |
2189 rm -rf conftest* | |
2190 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | |
2191 #define _ALL_SOURCE 1 | |
2192 EOF | |
2193 | |
2194 else | |
2195 rm -rf conftest* | |
2196 echo "$ac_t""no" 1>&6 | |
2197 fi | |
2198 rm -f conftest* | |
2199 | |
2200 | |
2201 | |
2202 # Sound support for GNU/Linux and the free BSDs. | |
2203 for ac_hdr in machine/soundcard.h sys/soundcard.h | |
2204 do | |
2205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
27205 | 2207 echo "configure:2208: checking for $ac_hdr" >&5 |
25897 | 2208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2209 echo $ac_n "(cached) $ac_c" 1>&6 | |
2210 else | |
2211 cat > conftest.$ac_ext <<EOF | |
27205 | 2212 #line 2213 "configure" |
25897 | 2213 #include "confdefs.h" |
2214 #include <$ac_hdr> | |
2215 EOF | |
2216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 2217 { (eval echo configure:2218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 2219 if test -z "$ac_err"; then |
2220 rm -rf conftest* | |
2221 eval "ac_cv_header_$ac_safe=yes" | |
2222 else | |
2223 echo "$ac_err" >&5 | |
2224 echo "configure: failed program was:" >&5 | |
2225 cat conftest.$ac_ext >&5 | |
2226 rm -rf conftest* | |
2227 eval "ac_cv_header_$ac_safe=no" | |
2228 fi | |
2229 rm -f conftest* | |
2230 fi | |
2231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2232 echo "$ac_t""yes" 1>&6 | |
2233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2234 cat >> confdefs.h <<EOF | |
2235 #define $ac_tr_hdr 1 | |
2236 EOF | |
2237 | |
2238 else | |
2239 echo "$ac_t""no" 1>&6 | |
2240 fi | |
2241 done | |
2242 | |
2243 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2244 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
|
2245 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2246 termcap.h stdio_ext.h |
25897 | 2247 do |
2248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
27205 | 2250 echo "configure:2251: checking for $ac_hdr" >&5 |
25897 | 2251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2252 echo $ac_n "(cached) $ac_c" 1>&6 | |
2253 else | |
2254 cat > conftest.$ac_ext <<EOF | |
27205 | 2255 #line 2256 "configure" |
25897 | 2256 #include "confdefs.h" |
2257 #include <$ac_hdr> | |
2258 EOF | |
2259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 2260 { (eval echo configure:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 2262 if test -z "$ac_err"; then |
2263 rm -rf conftest* | |
2264 eval "ac_cv_header_$ac_safe=yes" | |
2265 else | |
2266 echo "$ac_err" >&5 | |
2267 echo "configure: failed program was:" >&5 | |
2268 cat conftest.$ac_ext >&5 | |
2269 rm -rf conftest* | |
2270 eval "ac_cv_header_$ac_safe=no" | |
2271 fi | |
2272 rm -f conftest* | |
2273 fi | |
2274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2275 echo "$ac_t""yes" 1>&6 | |
2276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2277 cat >> confdefs.h <<EOF | |
2278 #define $ac_tr_hdr 1 | |
2279 EOF | |
2280 | |
2281 else | |
2282 echo "$ac_t""no" 1>&6 | |
2283 fi | |
2284 done | |
2285 | |
2286 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
27205 | 2287 echo "configure:2288: checking for ANSI C header files" >&5 |
25897 | 2288 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2289 echo $ac_n "(cached) $ac_c" 1>&6 | |
2290 else | |
2291 cat > conftest.$ac_ext <<EOF | |
27205 | 2292 #line 2293 "configure" |
25897 | 2293 #include "confdefs.h" |
2294 #include <stdlib.h> | |
2295 #include <stdarg.h> | |
2296 #include <string.h> | |
2297 #include <float.h> | |
2298 EOF | |
2299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 2300 { (eval echo configure:2301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 2302 if test -z "$ac_err"; then |
2303 rm -rf conftest* | |
2304 ac_cv_header_stdc=yes | |
2305 else | |
2306 echo "$ac_err" >&5 | |
2307 echo "configure: failed program was:" >&5 | |
2308 cat conftest.$ac_ext >&5 | |
2309 rm -rf conftest* | |
2310 ac_cv_header_stdc=no | |
2311 fi | |
2312 rm -f conftest* | |
2313 | |
2314 if test $ac_cv_header_stdc = yes; then | |
2315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2316 cat > conftest.$ac_ext <<EOF | |
27205 | 2317 #line 2318 "configure" |
25897 | 2318 #include "confdefs.h" |
2319 #include <string.h> | |
2320 EOF | |
2321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2322 egrep "memchr" >/dev/null 2>&1; then | |
2323 : | |
2324 else | |
2325 rm -rf conftest* | |
2326 ac_cv_header_stdc=no | |
2327 fi | |
2328 rm -f conftest* | |
2329 | |
2330 fi | |
2331 | |
2332 if test $ac_cv_header_stdc = yes; then | |
2333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2334 cat > conftest.$ac_ext <<EOF | |
27205 | 2335 #line 2336 "configure" |
25897 | 2336 #include "confdefs.h" |
2337 #include <stdlib.h> | |
2338 EOF | |
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2340 egrep "free" >/dev/null 2>&1; then | |
2341 : | |
2342 else | |
2343 rm -rf conftest* | |
2344 ac_cv_header_stdc=no | |
2345 fi | |
2346 rm -f conftest* | |
2347 | |
2348 fi | |
2349 | |
2350 if test $ac_cv_header_stdc = yes; then | |
2351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2352 if test "$cross_compiling" = yes; then | |
2353 : | |
2354 else | |
2355 cat > conftest.$ac_ext <<EOF | |
27205 | 2356 #line 2357 "configure" |
25897 | 2357 #include "confdefs.h" |
2358 #include <ctype.h> | |
2359 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2360 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2362 int main () { int i; for (i = 0; i < 256; i++) | |
2363 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2364 exit (0); } | |
2365 | |
2366 EOF | |
27205 | 2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 2368 then |
2369 : | |
2370 else | |
2371 echo "configure: failed program was:" >&5 | |
2372 cat conftest.$ac_ext >&5 | |
2373 rm -fr conftest* | |
2374 ac_cv_header_stdc=no | |
2375 fi | |
2376 rm -fr conftest* | |
2377 fi | |
2378 | |
2379 fi | |
2380 fi | |
2381 | |
2382 echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2383 if test $ac_cv_header_stdc = yes; then | |
2384 cat >> confdefs.h <<\EOF | |
2385 #define STDC_HEADERS 1 | |
2386 EOF | |
2387 | |
2388 fi | |
2389 | |
2390 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
27205 | 2391 echo "configure:2392: checking whether time.h and sys/time.h may both be included" >&5 |
25897 | 2392 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2393 echo $ac_n "(cached) $ac_c" 1>&6 | |
2394 else | |
2395 cat > conftest.$ac_ext <<EOF | |
27205 | 2396 #line 2397 "configure" |
25897 | 2397 #include "confdefs.h" |
2398 #include <sys/types.h> | |
2399 #include <sys/time.h> | |
2400 #include <time.h> | |
2401 int main() { | |
2402 struct tm *tp; | |
2403 ; return 0; } | |
2404 EOF | |
27205 | 2405 if { (eval echo configure:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2406 rm -rf conftest* |
2407 ac_cv_header_time=yes | |
2408 else | |
2409 echo "configure: failed program was:" >&5 | |
2410 cat conftest.$ac_ext >&5 | |
2411 rm -rf conftest* | |
2412 ac_cv_header_time=no | |
2413 fi | |
2414 rm -f conftest* | |
2415 fi | |
2416 | |
2417 echo "$ac_t""$ac_cv_header_time" 1>&6 | |
2418 if test $ac_cv_header_time = yes; then | |
2419 cat >> confdefs.h <<\EOF | |
2420 #define TIME_WITH_SYS_TIME 1 | |
2421 EOF | |
2422 | |
2423 fi | |
2424 | |
2425 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
27205 | 2426 echo "configure:2427: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
25897 | 2427 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2428 echo $ac_n "(cached) $ac_c" 1>&6 | |
2429 else | |
2430 cat > conftest.$ac_ext <<EOF | |
27205 | 2431 #line 2432 "configure" |
25897 | 2432 #include "confdefs.h" |
2433 #include <sys/types.h> | |
2434 #include <signal.h> | |
2435 /* NetBSD declares sys_siglist in unistd.h. */ | |
2436 #ifdef HAVE_UNISTD_H | |
2437 #include <unistd.h> | |
2438 #endif | |
2439 int main() { | |
2440 char *msg = *(sys_siglist + 1); | |
2441 ; return 0; } | |
2442 EOF | |
27205 | 2443 if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2444 rm -rf conftest* |
2445 ac_cv_decl_sys_siglist=yes | |
2446 else | |
2447 echo "configure: failed program was:" >&5 | |
2448 cat conftest.$ac_ext >&5 | |
2449 rm -rf conftest* | |
2450 ac_cv_decl_sys_siglist=no | |
2451 fi | |
2452 rm -f conftest* | |
2453 fi | |
2454 | |
2455 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2456 if test $ac_cv_decl_sys_siglist = yes; then | |
2457 cat >> confdefs.h <<\EOF | |
2458 #define SYS_SIGLIST_DECLARED 1 | |
2459 EOF | |
2460 | |
2461 fi | |
2462 | |
2463 | |
2464 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | |
27205 | 2465 echo "configure:2466: checking for struct utimbuf" >&5 |
25897 | 2466 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then |
2467 echo $ac_n "(cached) $ac_c" 1>&6 | |
2468 else | |
2469 cat > conftest.$ac_ext <<EOF | |
27205 | 2470 #line 2471 "configure" |
25897 | 2471 #include "confdefs.h" |
2472 #ifdef TIME_WITH_SYS_TIME | |
2473 #include <sys/time.h> | |
2474 #include <time.h> | |
2475 #else | |
2476 #ifdef HAVE_SYS_TIME_H | |
2477 #include <sys/time.h> | |
2478 #else | |
2479 #include <time.h> | |
2480 #endif | |
2481 #endif | |
2482 #ifdef HAVE_UTIME_H | |
2483 #include <utime.h> | |
2484 #endif | |
2485 int main() { | |
2486 static struct utimbuf x; x.actime = x.modtime; | |
2487 ; return 0; } | |
2488 EOF | |
27205 | 2489 if { (eval echo configure:2490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2490 rm -rf conftest* |
2491 emacs_cv_struct_utimbuf=yes | |
2492 else | |
2493 echo "configure: failed program was:" >&5 | |
2494 cat conftest.$ac_ext >&5 | |
2495 rm -rf conftest* | |
2496 emacs_cv_struct_utimbuf=no | |
2497 fi | |
2498 rm -f conftest* | |
2499 fi | |
2500 | |
2501 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6 | |
2502 if test $emacs_cv_struct_utimbuf = yes; then | |
2503 cat >> confdefs.h <<\EOF | |
2504 #define HAVE_STRUCT_UTIMBUF 1 | |
2505 EOF | |
2506 | |
2507 fi | |
2508 | |
2509 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
27205 | 2510 echo "configure:2511: checking return type of signal handlers" >&5 |
25897 | 2511 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2512 echo $ac_n "(cached) $ac_c" 1>&6 | |
2513 else | |
2514 cat > conftest.$ac_ext <<EOF | |
27205 | 2515 #line 2516 "configure" |
25897 | 2516 #include "confdefs.h" |
2517 #include <sys/types.h> | |
2518 #include <signal.h> | |
2519 #ifdef signal | |
2520 #undef signal | |
2521 #endif | |
2522 #ifdef __cplusplus | |
2523 extern "C" void (*signal (int, void (*)(int)))(int); | |
2524 #else | |
2525 void (*signal ()) (); | |
2526 #endif | |
2527 | |
2528 int main() { | |
2529 int i; | |
2530 ; return 0; } | |
2531 EOF | |
27205 | 2532 if { (eval echo configure:2533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2533 rm -rf conftest* |
2534 ac_cv_type_signal=void | |
2535 else | |
2536 echo "configure: failed program was:" >&5 | |
2537 cat conftest.$ac_ext >&5 | |
2538 rm -rf conftest* | |
2539 ac_cv_type_signal=int | |
2540 fi | |
2541 rm -f conftest* | |
2542 fi | |
2543 | |
2544 echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
2545 cat >> confdefs.h <<EOF | |
2546 #define RETSIGTYPE $ac_cv_type_signal | |
2547 EOF | |
2548 | |
2549 | |
2550 | |
2551 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | |
27205 | 2552 echo "configure:2553: checking for struct timeval" >&5 |
25897 | 2553 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then |
2554 echo $ac_n "(cached) $ac_c" 1>&6 | |
2555 else | |
2556 cat > conftest.$ac_ext <<EOF | |
27205 | 2557 #line 2558 "configure" |
25897 | 2558 #include "confdefs.h" |
2559 #ifdef TIME_WITH_SYS_TIME | |
2560 #include <sys/time.h> | |
2561 #include <time.h> | |
2562 #else | |
2563 #ifdef HAVE_SYS_TIME_H | |
2564 #include <sys/time.h> | |
2565 #else | |
2566 #include <time.h> | |
2567 #endif | |
2568 #endif | |
2569 int main() { | |
2570 static struct timeval x; x.tv_sec = x.tv_usec; | |
2571 ; return 0; } | |
2572 EOF | |
27205 | 2573 if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2574 rm -rf conftest* |
2575 emacs_cv_struct_timeval=yes | |
2576 else | |
2577 echo "configure: failed program was:" >&5 | |
2578 cat conftest.$ac_ext >&5 | |
2579 rm -rf conftest* | |
2580 emacs_cv_struct_timeval=no | |
2581 fi | |
2582 rm -f conftest* | |
2583 fi | |
2584 | |
2585 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6 | |
2586 HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
2587 if test $emacs_cv_struct_timeval = yes; then | |
2588 cat >> confdefs.h <<\EOF | |
2589 #define HAVE_TIMEVAL 1 | |
2590 EOF | |
2591 | |
2592 fi | |
2593 | |
2594 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | |
27205 | 2595 echo "configure:2596: checking whether struct tm is in sys/time.h or time.h" >&5 |
25897 | 2596 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2597 echo $ac_n "(cached) $ac_c" 1>&6 | |
2598 else | |
2599 cat > conftest.$ac_ext <<EOF | |
27205 | 2600 #line 2601 "configure" |
25897 | 2601 #include "confdefs.h" |
2602 #include <sys/types.h> | |
2603 #include <time.h> | |
2604 int main() { | |
2605 struct tm *tp; tp->tm_sec; | |
2606 ; return 0; } | |
2607 EOF | |
27205 | 2608 if { (eval echo configure:2609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2609 rm -rf conftest* |
2610 ac_cv_struct_tm=time.h | |
2611 else | |
2612 echo "configure: failed program was:" >&5 | |
2613 cat conftest.$ac_ext >&5 | |
2614 rm -rf conftest* | |
2615 ac_cv_struct_tm=sys/time.h | |
2616 fi | |
2617 rm -f conftest* | |
2618 fi | |
2619 | |
2620 echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
2621 if test $ac_cv_struct_tm = sys/time.h; then | |
2622 cat >> confdefs.h <<\EOF | |
2623 #define TM_IN_SYS_TIME 1 | |
2624 EOF | |
2625 | |
2626 fi | |
2627 | |
2628 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | |
27205 | 2629 echo "configure:2630: checking for tm_zone in struct tm" >&5 |
25897 | 2630 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
2631 echo $ac_n "(cached) $ac_c" 1>&6 | |
2632 else | |
2633 cat > conftest.$ac_ext <<EOF | |
27205 | 2634 #line 2635 "configure" |
25897 | 2635 #include "confdefs.h" |
2636 #include <sys/types.h> | |
2637 #include <$ac_cv_struct_tm> | |
2638 int main() { | |
2639 struct tm tm; tm.tm_zone; | |
2640 ; return 0; } | |
2641 EOF | |
27205 | 2642 if { (eval echo configure:2643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2643 rm -rf conftest* |
2644 ac_cv_struct_tm_zone=yes | |
2645 else | |
2646 echo "configure: failed program was:" >&5 | |
2647 cat conftest.$ac_ext >&5 | |
2648 rm -rf conftest* | |
2649 ac_cv_struct_tm_zone=no | |
2650 fi | |
2651 rm -f conftest* | |
2652 fi | |
2653 | |
2654 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | |
2655 if test "$ac_cv_struct_tm_zone" = yes; then | |
2656 cat >> confdefs.h <<\EOF | |
2657 #define HAVE_TM_ZONE 1 | |
2658 EOF | |
2659 | |
2660 else | |
2661 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | |
27205 | 2662 echo "configure:2663: checking for tzname" >&5 |
25897 | 2663 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
2664 echo $ac_n "(cached) $ac_c" 1>&6 | |
2665 else | |
2666 cat > conftest.$ac_ext <<EOF | |
27205 | 2667 #line 2668 "configure" |
25897 | 2668 #include "confdefs.h" |
2669 #include <time.h> | |
2670 #ifndef tzname /* For SGI. */ | |
2671 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
2672 #endif | |
2673 int main() { | |
2674 atoi(*tzname); | |
2675 ; return 0; } | |
2676 EOF | |
27205 | 2677 if { (eval echo configure:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 2678 rm -rf conftest* |
2679 ac_cv_var_tzname=yes | |
2680 else | |
2681 echo "configure: failed program was:" >&5 | |
2682 cat conftest.$ac_ext >&5 | |
2683 rm -rf conftest* | |
2684 ac_cv_var_tzname=no | |
2685 fi | |
2686 rm -f conftest* | |
2687 fi | |
2688 | |
2689 echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
2690 if test $ac_cv_var_tzname = yes; then | |
2691 cat >> confdefs.h <<\EOF | |
2692 #define HAVE_TZNAME 1 | |
2693 EOF | |
2694 | |
2695 fi | |
2696 fi | |
2697 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2698 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
27205 | 2699 echo "configure:2700: 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
|
2700 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
|
2701 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
|
2702 else |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2703 cat > conftest.$ac_ext <<EOF |
27205 | 2704 #line 2705 "configure" |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2705 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2706 #include <time.h> |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2707 int main() { |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2708 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
|
2709 ; return 0; } |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2710 EOF |
27205 | 2711 if { (eval echo configure:2712: \"$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
|
2712 rm -rf conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2713 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
|
2714 else |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2715 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
|
2716 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
|
2717 rm -rf conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2718 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
|
2719 fi |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2720 rm -f conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2721 fi |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2722 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2723 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
|
2724 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
|
2725 cat >> confdefs.h <<\EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2726 #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
|
2727 EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2728 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2729 fi |
25897 | 2730 |
2731 echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
27205 | 2732 echo "configure:2733: checking for working const" >&5 |
25897 | 2733 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2734 echo $ac_n "(cached) $ac_c" 1>&6 | |
2735 else | |
2736 cat > conftest.$ac_ext <<EOF | |
27205 | 2737 #line 2738 "configure" |
25897 | 2738 #include "confdefs.h" |
2739 | |
2740 int main() { | |
2741 | |
2742 /* Ultrix mips cc rejects this. */ | |
2743 typedef int charset[2]; const charset x; | |
2744 /* SunOS 4.1.1 cc rejects this. */ | |
2745 char const *const *ccp; | |
2746 char **p; | |
2747 /* NEC SVR4.0.2 mips cc rejects this. */ | |
2748 struct point {int x, y;}; | |
2749 static struct point const zero = {0,0}; | |
2750 /* AIX XL C 1.02.0.0 rejects this. | |
2751 It does not let you subtract one const X* pointer from another in an arm | |
2752 of an if-expression whose if-part is not a constant expression */ | |
2753 const char *g = "string"; | |
2754 ccp = &g + (g ? g-g : 0); | |
2755 /* HPUX 7.0 cc rejects these. */ | |
2756 ++ccp; | |
2757 p = (char**) ccp; | |
2758 ccp = (char const *const *) p; | |
2759 { /* SCO 3.2v4 cc rejects this. */ | |
2760 char *t; | |
2761 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2762 | |
2763 *t++ = 0; | |
2764 } | |
2765 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2766 int x[] = {25, 17}; | |
2767 const int *foo = &x[0]; | |
2768 ++foo; | |
2769 } | |
2770 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2771 typedef const int *iptr; | |
2772 iptr p = 0; | |
2773 ++p; | |
2774 } | |
2775 { /* AIX XL C 1.02.0.0 rejects this saying | |
2776 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2777 struct s { int j; const int *ap[3]; }; | |
2778 struct s *b; b->j = 5; | |
2779 } | |
2780 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2781 const int foo = 10; | |
2782 } | |
2783 | |
2784 ; return 0; } | |
2785 EOF | |
27205 | 2786 if { (eval echo configure:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2787 rm -rf conftest* |
2788 ac_cv_c_const=yes | |
2789 else | |
2790 echo "configure: failed program was:" >&5 | |
2791 cat conftest.$ac_ext >&5 | |
2792 rm -rf conftest* | |
2793 ac_cv_c_const=no | |
2794 fi | |
2795 rm -f conftest* | |
2796 fi | |
2797 | |
2798 echo "$ac_t""$ac_cv_c_const" 1>&6 | |
2799 if test $ac_cv_c_const = no; then | |
2800 cat >> confdefs.h <<\EOF | |
2801 #define const | |
2802 EOF | |
2803 | |
2804 fi | |
2805 | |
2806 | |
2807 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
27205 | 2808 echo "configure:2809: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
25897 | 2809 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
2810 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
2811 echo $ac_n "(cached) $ac_c" 1>&6 | |
2812 else | |
2813 cat > conftestmake <<\EOF | |
2814 all: | |
2815 @echo 'ac_maketemp="${MAKE}"' | |
2816 EOF | |
2817 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2818 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
2819 if test -n "$ac_maketemp"; then | |
2820 eval ac_cv_prog_make_${ac_make}_set=yes | |
2821 else | |
2822 eval ac_cv_prog_make_${ac_make}_set=no | |
2823 fi | |
2824 rm -f conftestmake | |
2825 fi | |
2826 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2827 echo "$ac_t""yes" 1>&6 | |
2828 SET_MAKE= | |
2829 else | |
2830 echo "$ac_t""no" 1>&6 | |
2831 SET_MAKE="MAKE=${MAKE-make}" | |
2832 fi | |
2833 | |
2834 | |
2835 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | |
27205 | 2836 echo "configure:2837: checking for long file names" >&5 |
25897 | 2837 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
2838 echo $ac_n "(cached) $ac_c" 1>&6 | |
2839 else | |
2840 ac_cv_sys_long_file_names=yes | |
2841 # Test for long file names in all the places we know might matter: | |
2842 # . the current directory, where building will happen | |
2843 # $prefix/lib where we will be installing things | |
2844 # $exec_prefix/lib likewise | |
2845 # eval it to expand exec_prefix. | |
2846 # $TMPDIR if set, where it might want to write temporary files | |
2847 # if $TMPDIR is not set: | |
2848 # /tmp where it might want to write temporary files | |
2849 # /var/tmp likewise | |
2850 # /usr/tmp likewise | |
2851 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
2852 ac_tmpdirs="$TMPDIR" | |
2853 else | |
2854 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
2855 fi | |
2856 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
2857 test -d $ac_dir || continue | |
2858 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
2859 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | |
2860 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | |
2861 val=`cat $ac_dir/conftest9012345 2>/dev/null` | |
2862 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | |
2863 ac_cv_sys_long_file_names=no | |
2864 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
2865 break | |
2866 fi | |
2867 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
2868 done | |
2869 fi | |
2870 | |
2871 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | |
2872 if test $ac_cv_sys_long_file_names = yes; then | |
2873 cat >> confdefs.h <<\EOF | |
2874 #define HAVE_LONG_FILE_NAMES 1 | |
2875 EOF | |
2876 | |
2877 fi | |
2878 | |
2879 | |
2880 #### Choose a window system. | |
2881 | |
2882 # If we find X, set shell vars x_includes and x_libraries to the | |
2883 # paths, otherwise set no_x=yes. | |
2884 # Uses ac_ vars as temps to allow command line to override cache and checks. | |
2885 # --without-x overrides everything else, but does not touch the cache. | |
2886 echo $ac_n "checking for X""... $ac_c" 1>&6 | |
27205 | 2887 echo "configure:2888: checking for X" >&5 |
25897 | 2888 |
2889 # Check whether --with-x or --without-x was given. | |
2890 if test "${with_x+set}" = set; then | |
2891 withval="$with_x" | |
2892 : | |
2893 fi | |
2894 | |
2895 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
2896 if test "x$with_x" = xno; then | |
2897 # The user explicitly disabled X. | |
2898 have_x=disabled | |
2899 else | |
2900 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
2901 # Both variables are already set. | |
2902 have_x=yes | |
2903 else | |
2904 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
2905 echo $ac_n "(cached) $ac_c" 1>&6 | |
2906 else | |
2907 # One or both of the vars are not set, and there is no cached value. | |
2908 ac_x_includes=NO ac_x_libraries=NO | |
2909 rm -fr conftestdir | |
2910 if mkdir conftestdir; then | |
2911 cd conftestdir | |
2912 # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
2913 cat > Imakefile <<'EOF' | |
2914 acfindx: | |
2915 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
2916 EOF | |
2917 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
2918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2919 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
2920 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
2921 for ac_extension in a so sl; do | |
2922 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
2923 test -f $ac_im_libdir/libX11.$ac_extension; then | |
2924 ac_im_usrlibdir=$ac_im_libdir; break | |
2925 fi | |
2926 done | |
2927 # Screen out bogus values from the imake configuration. They are | |
2928 # bogus both because they are the default anyway, and because | |
2929 # using them would break gcc on systems where it needs fixed includes. | |
2930 case "$ac_im_incroot" in | |
2931 /usr/include) ;; | |
2932 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
2933 esac | |
2934 case "$ac_im_usrlibdir" in | |
2935 /usr/lib | /lib) ;; | |
2936 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
2937 esac | |
2938 fi | |
2939 cd .. | |
2940 rm -fr conftestdir | |
2941 fi | |
2942 | |
2943 if test "$ac_x_includes" = NO; then | |
2944 # Guess where to find include files, by looking for this one X11 .h file. | |
2945 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
2946 | |
2947 # First, try using that file with no special directory specified. | |
2948 cat > conftest.$ac_ext <<EOF | |
27205 | 2949 #line 2950 "configure" |
25897 | 2950 #include "confdefs.h" |
2951 #include <$x_direct_test_include> | |
2952 EOF | |
2953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 2954 { (eval echo configure:2955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 2956 if test -z "$ac_err"; then |
2957 rm -rf conftest* | |
2958 # We can compile using X headers with no special include directory. | |
2959 ac_x_includes= | |
2960 else | |
2961 echo "$ac_err" >&5 | |
2962 echo "configure: failed program was:" >&5 | |
2963 cat conftest.$ac_ext >&5 | |
2964 rm -rf conftest* | |
2965 # Look for the header file in a standard set of common directories. | |
2966 # Check X11 before X11Rn because it is often a symlink to the current release. | |
2967 for ac_dir in \ | |
2968 /usr/X11/include \ | |
2969 /usr/X11R6/include \ | |
2970 /usr/X11R5/include \ | |
2971 /usr/X11R4/include \ | |
2972 \ | |
2973 /usr/include/X11 \ | |
2974 /usr/include/X11R6 \ | |
2975 /usr/include/X11R5 \ | |
2976 /usr/include/X11R4 \ | |
2977 \ | |
2978 /usr/local/X11/include \ | |
2979 /usr/local/X11R6/include \ | |
2980 /usr/local/X11R5/include \ | |
2981 /usr/local/X11R4/include \ | |
2982 \ | |
2983 /usr/local/include/X11 \ | |
2984 /usr/local/include/X11R6 \ | |
2985 /usr/local/include/X11R5 \ | |
2986 /usr/local/include/X11R4 \ | |
2987 \ | |
2988 /usr/X386/include \ | |
2989 /usr/x386/include \ | |
2990 /usr/XFree86/include/X11 \ | |
2991 \ | |
2992 /usr/include \ | |
2993 /usr/local/include \ | |
2994 /usr/unsupported/include \ | |
2995 /usr/athena/include \ | |
2996 /usr/local/x11r5/include \ | |
2997 /usr/lpp/Xamples/include \ | |
2998 \ | |
2999 /usr/openwin/include \ | |
3000 /usr/openwin/share/include \ | |
3001 ; \ | |
3002 do | |
3003 if test -r "$ac_dir/$x_direct_test_include"; then | |
3004 ac_x_includes=$ac_dir | |
3005 break | |
3006 fi | |
3007 done | |
3008 fi | |
3009 rm -f conftest* | |
3010 fi # $ac_x_includes = NO | |
3011 | |
3012 if test "$ac_x_libraries" = NO; then | |
3013 # Check for the libraries. | |
3014 | |
3015 test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
3016 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
3017 | |
3018 # See if we find them without any special options. | |
3019 # Don't add to $LIBS permanently. | |
3020 ac_save_LIBS="$LIBS" | |
3021 LIBS="-l$x_direct_test_library $LIBS" | |
3022 cat > conftest.$ac_ext <<EOF | |
27205 | 3023 #line 3024 "configure" |
25897 | 3024 #include "confdefs.h" |
3025 | |
3026 int main() { | |
3027 ${x_direct_test_function}() | |
3028 ; return 0; } | |
3029 EOF | |
27205 | 3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3031 rm -rf conftest* |
3032 LIBS="$ac_save_LIBS" | |
3033 # We can link X programs with no special library path. | |
3034 ac_x_libraries= | |
3035 else | |
3036 echo "configure: failed program was:" >&5 | |
3037 cat conftest.$ac_ext >&5 | |
3038 rm -rf conftest* | |
3039 LIBS="$ac_save_LIBS" | |
3040 # First see if replacing the include by lib works. | |
3041 # Check X11 before X11Rn because it is often a symlink to the current release. | |
3042 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
3043 /usr/X11/lib \ | |
3044 /usr/X11R6/lib \ | |
3045 /usr/X11R5/lib \ | |
3046 /usr/X11R4/lib \ | |
3047 \ | |
3048 /usr/lib/X11 \ | |
3049 /usr/lib/X11R6 \ | |
3050 /usr/lib/X11R5 \ | |
3051 /usr/lib/X11R4 \ | |
3052 \ | |
3053 /usr/local/X11/lib \ | |
3054 /usr/local/X11R6/lib \ | |
3055 /usr/local/X11R5/lib \ | |
3056 /usr/local/X11R4/lib \ | |
3057 \ | |
3058 /usr/local/lib/X11 \ | |
3059 /usr/local/lib/X11R6 \ | |
3060 /usr/local/lib/X11R5 \ | |
3061 /usr/local/lib/X11R4 \ | |
3062 \ | |
3063 /usr/X386/lib \ | |
3064 /usr/x386/lib \ | |
3065 /usr/XFree86/lib/X11 \ | |
3066 \ | |
3067 /usr/lib \ | |
3068 /usr/local/lib \ | |
3069 /usr/unsupported/lib \ | |
3070 /usr/athena/lib \ | |
3071 /usr/local/x11r5/lib \ | |
3072 /usr/lpp/Xamples/lib \ | |
3073 /lib/usr/lib/X11 \ | |
3074 \ | |
3075 /usr/openwin/lib \ | |
3076 /usr/openwin/share/lib \ | |
3077 ; \ | |
3078 do | |
3079 for ac_extension in a so sl; do | |
3080 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
3081 ac_x_libraries=$ac_dir | |
3082 break 2 | |
3083 fi | |
3084 done | |
3085 done | |
3086 fi | |
3087 rm -f conftest* | |
3088 fi # $ac_x_libraries = NO | |
3089 | |
3090 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
3091 # Didn't find X anywhere. Cache the known absence of X. | |
3092 ac_cv_have_x="have_x=no" | |
3093 else | |
3094 # Record where we found X for the cache. | |
3095 ac_cv_have_x="have_x=yes \ | |
3096 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
3097 fi | |
3098 fi | |
3099 fi | |
3100 eval "$ac_cv_have_x" | |
3101 fi # $with_x != no | |
3102 | |
3103 if test "$have_x" != yes; then | |
3104 echo "$ac_t""$have_x" 1>&6 | |
3105 no_x=yes | |
3106 else | |
3107 # If each of the values was on the command line, it overrides each guess. | |
3108 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
3109 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
3110 # Update the cache value to reflect the command line values. | |
3111 ac_cv_have_x="have_x=yes \ | |
3112 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
3113 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
3114 fi | |
3115 | |
3116 if test "$no_x" = yes; then | |
3117 window_system=none | |
3118 else | |
3119 window_system=x11 | |
3120 fi | |
3121 | |
3122 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3123 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
3124 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
3125 x_default_search_path="" | |
3126 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
3127 x_search_path="${x_library}/X11/%L/%T/%N%C%S:\ | |
3128 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\ | |
3129 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\ | |
3130 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S" | |
3131 if test x"${x_default_search_path}" = x; then | |
3132 x_default_search_path=${x_search_path} | |
3133 else | |
3134 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
3135 fi | |
3136 done | |
3137 fi | |
3138 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
3139 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
3140 fi | |
3141 | |
3142 if test x"${x_includes}" = x; then | |
3143 bitmapdir=/usr/include/X11/bitmaps | |
3144 else | |
3145 # accumulate include directories that have X11 bitmap subdirectories | |
3146 bmd_acc="dummyval" | |
3147 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
3148 if test -d "${bmd}/X11/bitmaps"; then | |
3149 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
26502 | 3150 fi |
3151 if test -d "${bmd}/bitmaps"; then | |
25897 | 3152 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
3153 fi | |
3154 done | |
3155 if test ${bmd_acc} != "dummyval"; then | |
3156 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
3157 fi | |
3158 fi | |
3159 | |
3160 case "${window_system}" in | |
3161 x11 ) | |
3162 HAVE_X_WINDOWS=yes | |
3163 HAVE_X11=yes | |
3164 case "${with_x_toolkit}" in | |
3165 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
3166 motif ) USE_X_TOOLKIT=MOTIF ;; | |
3167 no ) USE_X_TOOLKIT=none ;; | |
3168 * ) USE_X_TOOLKIT=maybe ;; | |
3169 esac | |
3170 ;; | |
3171 none ) | |
3172 HAVE_X_WINDOWS=no | |
3173 HAVE_X11=no | |
3174 USE_X_TOOLKIT=none | |
3175 ;; | |
3176 esac | |
3177 | |
3178 ### If we're using X11, we should use the X menu package. | |
3179 HAVE_MENUS=no | |
3180 case ${HAVE_X11} in | |
3181 yes ) HAVE_MENUS=yes ;; | |
3182 esac | |
3183 | |
3184 if test "${opsys}" = "hpux9"; then | |
3185 case "${x_libraries}" in | |
3186 *X11R4* ) | |
3187 opsysfile="s/hpux9-x11r4.h" | |
3188 ;; | |
3189 esac | |
3190 fi | |
3191 | |
3192 if test "${opsys}" = "hpux9shr"; then | |
3193 case "${x_libraries}" in | |
3194 *X11R4* ) | |
3195 opsysfile="s/hpux9shxr4.h" | |
3196 ;; | |
3197 esac | |
3198 fi | |
3199 | |
3200 #### Extract some information from the operating system and machine files. | |
3201 | |
3202 echo "checking the machine- and system-dependent files to find out | |
3203 - which libraries the lib-src programs will want, and | |
3204 - whether the GNU malloc routines are usable" 1>&6 | |
27205 | 3205 echo "configure:3206: checking the machine- and system-dependent files to find out |
25897 | 3206 - which libraries the lib-src programs will want, and |
3207 - whether the GNU malloc routines are usable" >&5 | |
3208 | |
3209 ### First figure out CFLAGS (which we use for running the compiler here) | |
3210 ### and REAL_CFLAGS (which we use for real compilation). | |
3211 ### The two are the same except on a few systems, where they are made | |
3212 ### different to work around various lossages. For example, | |
3213 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3214 ### as implying static linking. | |
3215 | |
3216 ### If the CFLAGS env var is specified, we use that value | |
3217 ### instead of the default. | |
3218 | |
3219 ### It's not important that this name contain the PID; you can't run | |
3220 ### two configures in the same directory and have anything work | |
3221 ### anyway. | |
3222 tempcname="conftest.c" | |
3223 | |
3224 echo ' | |
3225 #include "'${srcdir}'/src/'${opsysfile}'" | |
3226 #include "'${srcdir}'/src/'${machfile}'" | |
3227 #ifndef LIBS_MACHINE | |
3228 #define LIBS_MACHINE | |
3229 #endif | |
3230 #ifndef LIBS_SYSTEM | |
3231 #define LIBS_SYSTEM | |
3232 #endif | |
3233 #ifndef C_SWITCH_SYSTEM | |
3234 #define C_SWITCH_SYSTEM | |
3235 #endif | |
3236 #ifndef C_SWITCH_MACHINE | |
3237 #define C_SWITCH_MACHINE | |
3238 #endif | |
3239 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3240 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3241 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3242 | |
3243 #ifndef LIB_X11_LIB | |
3244 #define LIB_X11_LIB -lX11 | |
3245 #endif | |
3246 | |
3247 #ifndef LIBX11_MACHINE | |
3248 #define LIBX11_MACHINE | |
3249 #endif | |
3250 | |
3251 #ifndef LIBX11_SYSTEM | |
3252 #define LIBX11_SYSTEM | |
3253 #endif | |
3254 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3255 | |
3256 #ifdef UNEXEC | |
3257 configure___ unexec=UNEXEC | |
3258 #else | |
3259 configure___ unexec=unexec.o | |
3260 #endif | |
3261 | |
3262 #ifdef SYSTEM_MALLOC | |
3263 configure___ system_malloc=yes | |
3264 #else | |
3265 configure___ system_malloc=no | |
3266 #endif | |
3267 | |
3268 #ifndef C_DEBUG_SWITCH | |
3269 #define C_DEBUG_SWITCH -g | |
3270 #endif | |
3271 | |
3272 #ifndef C_OPTIMIZE_SWITCH | |
3273 #define C_OPTIMIZE_SWITCH -O | |
3274 #endif | |
3275 | |
3276 #ifndef LD_SWITCH_MACHINE | |
3277 #define LD_SWITCH_MACHINE | |
3278 #endif | |
3279 | |
3280 #ifndef LD_SWITCH_SYSTEM | |
3281 #define LD_SWITCH_SYSTEM | |
3282 #endif | |
3283 | |
3284 #ifndef LD_SWITCH_X_SITE_AUX | |
3285 #define LD_SWITCH_X_SITE_AUX | |
3286 #endif | |
3287 | |
3288 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3289 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3290 | |
3291 #ifdef THIS_IS_CONFIGURE | |
3292 | |
3293 /* Get the CFLAGS for tests in configure. */ | |
3294 #ifdef __GNUC__ | |
3295 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3296 #else | |
3297 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3298 #endif | |
3299 | |
3300 #else /* not THIS_IS_CONFIGURE */ | |
3301 | |
3302 /* Get the CFLAGS for real compilation. */ | |
3303 #ifdef __GNUC__ | |
3304 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3305 #else | |
3306 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3307 #endif | |
3308 | |
3309 #endif /* not THIS_IS_CONFIGURE */ | |
3310 ' > ${tempcname} | |
3311 | |
3312 # The value of CPP is a quoted variable reference, so we need to do this | |
3313 # to get its actual value... | |
3314 CPP=`eval "echo $CPP"` | |
3315 eval `${CPP} -Isrc ${tempcname} \ | |
3316 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3317 if test "x$SPECIFIED_CFLAGS" = x; then | |
3318 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3319 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3320 else | |
3321 REAL_CFLAGS="$CFLAGS" | |
3322 fi | |
3323 rm ${tempcname} | |
3324 | |
3325 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3326 | |
3327 ### Compute the unexec source name from the object name. | |
3328 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
3329 | |
3330 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
3331 # Assume not, until told otherwise. | |
3332 GNU_MALLOC=yes | |
3333 doug_lea_malloc=yes | |
3334 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | |
27205 | 3335 echo "configure:3336: checking for malloc_get_state" >&5 |
25897 | 3336 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3337 echo $ac_n "(cached) $ac_c" 1>&6 | |
3338 else | |
3339 cat > conftest.$ac_ext <<EOF | |
27205 | 3340 #line 3341 "configure" |
25897 | 3341 #include "confdefs.h" |
3342 /* System header to define __stub macros and hopefully few prototypes, | |
3343 which can conflict with char malloc_get_state(); below. */ | |
3344 #include <assert.h> | |
3345 /* Override any gcc2 internal prototype to avoid an error. */ | |
3346 /* We use char because int might match the return type of a gcc2 | |
3347 builtin and then its argument prototype would still apply. */ | |
3348 char malloc_get_state(); | |
3349 | |
3350 int main() { | |
3351 | |
3352 /* The GNU C library defines this for functions which it implements | |
3353 to always fail with ENOSYS. Some functions are actually named | |
3354 something starting with __ and the normal name is an alias. */ | |
3355 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
3356 choke me | |
3357 #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
|
3358 malloc_get_state(); |
25897 | 3359 #endif |
3360 | |
3361 ; return 0; } | |
3362 EOF | |
27205 | 3363 if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3364 rm -rf conftest* |
3365 eval "ac_cv_func_malloc_get_state=yes" | |
3366 else | |
3367 echo "configure: failed program was:" >&5 | |
3368 cat conftest.$ac_ext >&5 | |
3369 rm -rf conftest* | |
3370 eval "ac_cv_func_malloc_get_state=no" | |
3371 fi | |
3372 rm -f conftest* | |
3373 fi | |
3374 | |
3375 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then | |
3376 echo "$ac_t""yes" 1>&6 | |
3377 : | |
3378 else | |
3379 echo "$ac_t""no" 1>&6 | |
3380 doug_lea_malloc=no | |
3381 fi | |
3382 | |
3383 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | |
27205 | 3384 echo "configure:3385: checking for malloc_set_state" >&5 |
25897 | 3385 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3386 echo $ac_n "(cached) $ac_c" 1>&6 | |
3387 else | |
3388 cat > conftest.$ac_ext <<EOF | |
27205 | 3389 #line 3390 "configure" |
25897 | 3390 #include "confdefs.h" |
3391 /* System header to define __stub macros and hopefully few prototypes, | |
3392 which can conflict with char malloc_set_state(); below. */ | |
3393 #include <assert.h> | |
3394 /* Override any gcc2 internal prototype to avoid an error. */ | |
3395 /* We use char because int might match the return type of a gcc2 | |
3396 builtin and then its argument prototype would still apply. */ | |
3397 char malloc_set_state(); | |
3398 | |
3399 int main() { | |
3400 | |
3401 /* The GNU C library defines this for functions which it implements | |
3402 to always fail with ENOSYS. Some functions are actually named | |
3403 something starting with __ and the normal name is an alias. */ | |
3404 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
3405 choke me | |
3406 #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
|
3407 malloc_set_state(); |
25897 | 3408 #endif |
3409 | |
3410 ; return 0; } | |
3411 EOF | |
27205 | 3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3413 rm -rf conftest* |
3414 eval "ac_cv_func_malloc_set_state=yes" | |
3415 else | |
3416 echo "configure: failed program was:" >&5 | |
3417 cat conftest.$ac_ext >&5 | |
3418 rm -rf conftest* | |
3419 eval "ac_cv_func_malloc_set_state=no" | |
3420 fi | |
3421 rm -f conftest* | |
3422 fi | |
3423 | |
3424 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then | |
3425 echo "$ac_t""yes" 1>&6 | |
3426 : | |
3427 else | |
3428 echo "$ac_t""no" 1>&6 | |
3429 doug_lea_malloc=no | |
3430 fi | |
3431 | |
3432 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | |
27205 | 3433 echo "configure:3434: checking whether __after_morecore_hook exists" >&5 |
25897 | 3434 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3435 echo $ac_n "(cached) $ac_c" 1>&6 | |
3436 else | |
3437 cat > conftest.$ac_ext <<EOF | |
27205 | 3438 #line 3439 "configure" |
25897 | 3439 #include "confdefs.h" |
3440 extern void (* __after_morecore_hook)(); | |
3441 int main() { | |
3442 __after_morecore_hook = 0 | |
3443 ; return 0; } | |
3444 EOF | |
27205 | 3445 if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3446 rm -rf conftest* |
3447 emacs_cv_var___after_morecore_hook=yes | |
3448 else | |
3449 echo "configure: failed program was:" >&5 | |
3450 cat conftest.$ac_ext >&5 | |
3451 rm -rf conftest* | |
3452 emacs_cv_var___after_morecore_hook=no | |
3453 fi | |
3454 rm -f conftest* | |
3455 fi | |
3456 | |
3457 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6 | |
3458 if test $emacs_cv_var___after_morecore_hook = no; then | |
3459 doug_lea_malloc=no | |
3460 fi | |
3461 if test "${system_malloc}" = "yes"; then | |
3462 GNU_MALLOC=no | |
3463 GNU_MALLOC_reason=" | |
3464 (The GNU allocators don't work with this system configuration.)" | |
3465 fi | |
3466 if test "$doug_lea_malloc" = "yes" ; then | |
3467 if test "$GNU_MALLOC" = yes ; then | |
3468 GNU_MALLOC_reason=" | |
3469 (Using Doug Lea's new malloc from the GNU C Library.)" | |
3470 fi | |
3471 cat >> confdefs.h <<\EOF | |
3472 #define DOUG_LEA_MALLOC 1 | |
3473 EOF | |
3474 | |
3475 fi | |
3476 | |
3477 if test x"${REL_ALLOC}" = x; then | |
3478 REL_ALLOC=${GNU_MALLOC} | |
3479 fi | |
3480 | |
3481 LISP_FLOAT_TYPE=yes | |
3482 | |
3483 | |
3484 #### Add the libraries to LIBS and check for some functions. | |
3485 | |
3486 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3487 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3488 else | |
3489 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3490 fi | |
3491 | |
3492 LIBS="$libsrc_libs $LIBS" | |
3493 | |
3494 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
27205 | 3495 echo "configure:3496: checking for dnet_ntoa in -ldnet" >&5 |
25897 | 3496 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
3497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3498 echo $ac_n "(cached) $ac_c" 1>&6 | |
3499 else | |
3500 ac_save_LIBS="$LIBS" | |
3501 LIBS="-ldnet $LIBS" | |
3502 cat > conftest.$ac_ext <<EOF | |
27205 | 3503 #line 3504 "configure" |
25897 | 3504 #include "confdefs.h" |
3505 /* Override any gcc2 internal prototype to avoid an error. */ | |
3506 /* We use char because int might match the return type of a gcc2 | |
3507 builtin and then its argument prototype would still apply. */ | |
3508 char dnet_ntoa(); | |
3509 | |
3510 int main() { | |
3511 dnet_ntoa() | |
3512 ; return 0; } | |
3513 EOF | |
27205 | 3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3515 rm -rf conftest* |
3516 eval "ac_cv_lib_$ac_lib_var=yes" | |
3517 else | |
3518 echo "configure: failed program was:" >&5 | |
3519 cat conftest.$ac_ext >&5 | |
3520 rm -rf conftest* | |
3521 eval "ac_cv_lib_$ac_lib_var=no" | |
3522 fi | |
3523 rm -f conftest* | |
3524 LIBS="$ac_save_LIBS" | |
3525 | |
3526 fi | |
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3528 echo "$ac_t""yes" 1>&6 | |
3529 ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3530 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3531 cat >> confdefs.h <<EOF | |
3532 #define $ac_tr_lib 1 | |
3533 EOF | |
3534 | |
3535 LIBS="-ldnet $LIBS" | |
3536 | |
3537 else | |
3538 echo "$ac_t""no" 1>&6 | |
3539 fi | |
3540 | |
3541 | |
3542 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | |
27205 | 3543 echo "configure:3544: checking for main in -lXbsd" >&5 |
25897 | 3544 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
3545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3546 echo $ac_n "(cached) $ac_c" 1>&6 | |
3547 else | |
3548 ac_save_LIBS="$LIBS" | |
3549 LIBS="-lXbsd $LIBS" | |
3550 cat > conftest.$ac_ext <<EOF | |
27205 | 3551 #line 3552 "configure" |
25897 | 3552 #include "confdefs.h" |
3553 | |
3554 int main() { | |
3555 main() | |
3556 ; return 0; } | |
3557 EOF | |
27205 | 3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3559 rm -rf conftest* |
3560 eval "ac_cv_lib_$ac_lib_var=yes" | |
3561 else | |
3562 echo "configure: failed program was:" >&5 | |
3563 cat conftest.$ac_ext >&5 | |
3564 rm -rf conftest* | |
3565 eval "ac_cv_lib_$ac_lib_var=no" | |
3566 fi | |
3567 rm -f conftest* | |
3568 LIBS="$ac_save_LIBS" | |
3569 | |
3570 fi | |
3571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3572 echo "$ac_t""yes" 1>&6 | |
3573 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
3574 else | |
3575 echo "$ac_t""no" 1>&6 | |
3576 fi | |
3577 | |
3578 | |
3579 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | |
27205 | 3580 echo "configure:3581: checking for cma_open in -lpthreads" >&5 |
25897 | 3581 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
3582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3583 echo $ac_n "(cached) $ac_c" 1>&6 | |
3584 else | |
3585 ac_save_LIBS="$LIBS" | |
3586 LIBS="-lpthreads $LIBS" | |
3587 cat > conftest.$ac_ext <<EOF | |
27205 | 3588 #line 3589 "configure" |
25897 | 3589 #include "confdefs.h" |
3590 /* Override any gcc2 internal prototype to avoid an error. */ | |
3591 /* We use char because int might match the return type of a gcc2 | |
3592 builtin and then its argument prototype would still apply. */ | |
3593 char cma_open(); | |
3594 | |
3595 int main() { | |
3596 cma_open() | |
3597 ; return 0; } | |
3598 EOF | |
27205 | 3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3600 rm -rf conftest* |
3601 eval "ac_cv_lib_$ac_lib_var=yes" | |
3602 else | |
3603 echo "configure: failed program was:" >&5 | |
3604 cat conftest.$ac_ext >&5 | |
3605 rm -rf conftest* | |
3606 eval "ac_cv_lib_$ac_lib_var=no" | |
3607 fi | |
3608 rm -f conftest* | |
3609 LIBS="$ac_save_LIBS" | |
3610 | |
3611 fi | |
3612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3613 echo "$ac_t""yes" 1>&6 | |
3614 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3616 cat >> confdefs.h <<EOF | |
3617 #define $ac_tr_lib 1 | |
3618 EOF | |
3619 | |
3620 LIBS="-lpthreads $LIBS" | |
3621 | |
3622 else | |
3623 echo "$ac_t""no" 1>&6 | |
3624 fi | |
3625 | |
3626 | |
3627 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | |
27205 | 3628 echo "configure:3629: checking for XFree86 in /usr/X386" >&5 |
25897 | 3629 if test -d /usr/X386/include; then |
3630 HAVE_XFREE386=yes | |
3631 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
3632 else | |
3633 HAVE_XFREE386=no | |
3634 fi | |
3635 echo "$ac_t""$HAVE_XFREE386" 1>&6 | |
3636 | |
3637 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
3638 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
3639 | |
3640 if test "${HAVE_X11}" = "yes"; then | |
3641 DEFS="$C_SWITCH_X_SITE $DEFS" | |
3642 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
3643 LIBS="$LIBX $LIBS" | |
3644 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
3645 | |
3646 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
3647 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
3648 # but it's more convenient here to set LD_RUN_PATH | |
3649 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
3650 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3651 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
3652 export LD_RUN_PATH | |
3653 fi | |
3654 | |
3655 if test "${opsys}" = "gnu-linux"; then | |
3656 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | |
27205 | 3657 echo "configure:3658: checking whether X on GNU/Linux needs -b to link" >&5 |
25897 | 3658 cat > conftest.$ac_ext <<EOF |
27205 | 3659 #line 3660 "configure" |
25897 | 3660 #include "confdefs.h" |
3661 | |
3662 int main() { | |
3663 XOpenDisplay ("foo"); | |
3664 ; return 0; } | |
3665 EOF | |
27205 | 3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3667 rm -rf conftest* |
3668 xlinux_first_failure=no | |
3669 else | |
3670 echo "configure: failed program was:" >&5 | |
3671 cat conftest.$ac_ext >&5 | |
3672 rm -rf conftest* | |
3673 xlinux_first_failure=yes | |
3674 fi | |
3675 rm -f conftest* | |
3676 if test "${xlinux_first_failure}" = "yes"; then | |
3677 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
3678 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
3679 OLD_CPPFLAGS="$CPPFLAGS" | |
3680 OLD_LIBS="$LIBS" | |
3681 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
3682 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
3683 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
3684 LIBS="$LIBS -b i486-linuxaout" | |
3685 cat > conftest.$ac_ext <<EOF | |
27205 | 3686 #line 3687 "configure" |
25897 | 3687 #include "confdefs.h" |
3688 | |
3689 int main() { | |
3690 XOpenDisplay ("foo"); | |
3691 ; return 0; } | |
3692 EOF | |
27205 | 3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3694 rm -rf conftest* |
3695 xlinux_second_failure=no | |
3696 else | |
3697 echo "configure: failed program was:" >&5 | |
3698 cat conftest.$ac_ext >&5 | |
3699 rm -rf conftest* | |
3700 xlinux_second_failure=yes | |
3701 fi | |
3702 rm -f conftest* | |
3703 if test "${xlinux_second_failure}" = "yes"; then | |
3704 # If we get the same failure with -b, there is no use adding -b. | |
3705 # So take it out. This plays safe. | |
3706 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
3707 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
3708 CPPFLAGS="$OLD_CPPFLAGS" | |
3709 LIBS="$OLD_LIBS" | |
3710 echo "$ac_t""no" 1>&6 | |
3711 else | |
3712 echo "$ac_t""yes" 1>&6 | |
3713 fi | |
3714 else | |
3715 echo "$ac_t""no" 1>&6 | |
3716 fi | |
3717 fi | |
3718 | |
3719 for ac_func in XrmSetDatabase XScreenResourceString \ | |
3720 XScreenNumberOfScreen XSetWMProtocols | |
3721 do | |
3722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
27205 | 3723 echo "configure:3724: checking for $ac_func" >&5 |
25897 | 3724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3725 echo $ac_n "(cached) $ac_c" 1>&6 | |
3726 else | |
3727 cat > conftest.$ac_ext <<EOF | |
27205 | 3728 #line 3729 "configure" |
25897 | 3729 #include "confdefs.h" |
3730 /* System header to define __stub macros and hopefully few prototypes, | |
3731 which can conflict with char $ac_func(); below. */ | |
3732 #include <assert.h> | |
3733 /* Override any gcc2 internal prototype to avoid an error. */ | |
3734 /* We use char because int might match the return type of a gcc2 | |
3735 builtin and then its argument prototype would still apply. */ | |
3736 char $ac_func(); | |
3737 | |
3738 int main() { | |
3739 | |
3740 /* The GNU C library defines this for functions which it implements | |
3741 to always fail with ENOSYS. Some functions are actually named | |
3742 something starting with __ and the normal name is an alias. */ | |
3743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3744 choke me | |
3745 #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
|
3746 $ac_func(); |
25897 | 3747 #endif |
3748 | |
3749 ; return 0; } | |
3750 EOF | |
27205 | 3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3752 rm -rf conftest* |
3753 eval "ac_cv_func_$ac_func=yes" | |
3754 else | |
3755 echo "configure: failed program was:" >&5 | |
3756 cat conftest.$ac_ext >&5 | |
3757 rm -rf conftest* | |
3758 eval "ac_cv_func_$ac_func=no" | |
3759 fi | |
3760 rm -f conftest* | |
3761 fi | |
3762 | |
3763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3764 echo "$ac_t""yes" 1>&6 | |
3765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3766 cat >> confdefs.h <<EOF | |
3767 #define $ac_tr_func 1 | |
3768 EOF | |
3769 | |
3770 else | |
3771 echo "$ac_t""no" 1>&6 | |
3772 fi | |
3773 done | |
3774 | |
3775 fi | |
3776 | |
3777 if test "${window_system}" = "x11"; then | |
3778 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | |
27205 | 3779 echo "configure:3780: checking X11 version 6" >&5 |
25897 | 3780 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
3781 echo $ac_n "(cached) $ac_c" 1>&6 | |
3782 else | |
3783 cat > conftest.$ac_ext <<EOF | |
27205 | 3784 #line 3785 "configure" |
25897 | 3785 #include "confdefs.h" |
3786 #include <X11/Xlib.h> | |
3787 int main() { | |
3788 #if XlibSpecificationRelease < 6 | |
3789 fail; | |
3790 #endif | |
3791 | |
3792 ; return 0; } | |
3793 EOF | |
27205 | 3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3795 rm -rf conftest* |
3796 emacs_cv_x11_version_6=yes | |
3797 else | |
3798 echo "configure: failed program was:" >&5 | |
3799 cat conftest.$ac_ext >&5 | |
3800 rm -rf conftest* | |
3801 emacs_cv_x11_version_6=no | |
3802 fi | |
3803 rm -f conftest* | |
3804 fi | |
3805 | |
3806 if test $emacs_cv_x11_version_6 = yes; then | |
3807 echo "$ac_t""6 or newer" 1>&6 | |
3808 cat >> confdefs.h <<\EOF | |
3809 #define HAVE_X11R6 1 | |
3810 EOF | |
3811 | |
3812 else | |
3813 echo "$ac_t""before 6" 1>&6 | |
3814 fi | |
3815 fi | |
3816 | |
3817 if test "${window_system}" = "x11"; then | |
3818 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | |
27205 | 3819 echo "configure:3820: checking X11 version 5" >&5 |
25897 | 3820 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
3821 echo $ac_n "(cached) $ac_c" 1>&6 | |
3822 else | |
3823 cat > conftest.$ac_ext <<EOF | |
27205 | 3824 #line 3825 "configure" |
25897 | 3825 #include "confdefs.h" |
3826 #include <X11/Xlib.h> | |
3827 int main() { | |
3828 #if XlibSpecificationRelease < 5 | |
3829 fail; | |
3830 #endif | |
3831 | |
3832 ; return 0; } | |
3833 EOF | |
27205 | 3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3835 rm -rf conftest* |
3836 emacs_cv_x11_version_5=yes | |
3837 else | |
3838 echo "configure: failed program was:" >&5 | |
3839 cat conftest.$ac_ext >&5 | |
3840 rm -rf conftest* | |
3841 emacs_cv_x11_version_5=no | |
3842 fi | |
3843 rm -f conftest* | |
3844 fi | |
3845 | |
3846 if test $emacs_cv_x11_version_5 = yes; then | |
3847 echo "$ac_t""5 or newer" 1>&6 | |
3848 HAVE_X11R5=yes | |
3849 cat >> confdefs.h <<\EOF | |
3850 #define HAVE_X11R5 1 | |
3851 EOF | |
3852 | |
3853 else | |
3854 HAVE_X11R5=no | |
3855 echo "$ac_t""before 5" 1>&6 | |
3856 fi | |
3857 fi | |
3858 | |
3859 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
3860 if test x"${HAVE_X11R5}" = xyes; then | |
3861 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | |
27205 | 3862 echo "configure:3863: checking X11 version 5 with Xaw" >&5 |
25897 | 3863 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
3864 echo $ac_n "(cached) $ac_c" 1>&6 | |
3865 else | |
3866 cat > conftest.$ac_ext <<EOF | |
27205 | 3867 #line 3868 "configure" |
25897 | 3868 #include "confdefs.h" |
3869 | |
3870 #include <X11/Intrinsic.h> | |
3871 #include <X11/Xaw/Simple.h> | |
3872 int main() { | |
3873 | |
3874 ; return 0; } | |
3875 EOF | |
27205 | 3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3877 rm -rf conftest* |
3878 emacs_cv_x11_version_5_with_xaw=yes | |
3879 else | |
3880 echo "configure: failed program was:" >&5 | |
3881 cat conftest.$ac_ext >&5 | |
3882 rm -rf conftest* | |
3883 emacs_cv_x11_version_5_with_xaw=no | |
3884 fi | |
3885 rm -f conftest* | |
3886 fi | |
3887 | |
3888 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
3889 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6 | |
3890 USE_X_TOOLKIT=LUCID | |
3891 else | |
3892 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6 | |
3893 USE_X_TOOLKIT=none | |
3894 fi | |
3895 else | |
3896 USE_X_TOOLKIT=none | |
3897 fi | |
3898 fi | |
3899 | |
3900 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
3901 | |
3902 if test "${USE_X_TOOLKIT}" != "none"; then | |
3903 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | |
27205 | 3904 echo "configure:3905: checking X11 toolkit version" >&5 |
25897 | 3905 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
3906 echo $ac_n "(cached) $ac_c" 1>&6 | |
3907 else | |
3908 cat > conftest.$ac_ext <<EOF | |
27205 | 3909 #line 3910 "configure" |
25897 | 3910 #include "confdefs.h" |
3911 #include <X11/Intrinsic.h> | |
3912 int main() { | |
3913 #if XtSpecificationRelease < 6 | |
3914 fail; | |
3915 #endif | |
3916 | |
3917 ; return 0; } | |
3918 EOF | |
27205 | 3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3920 rm -rf conftest* |
3921 emacs_cv_x11_toolkit_version_6=yes | |
3922 else | |
3923 echo "configure: failed program was:" >&5 | |
3924 cat conftest.$ac_ext >&5 | |
3925 rm -rf conftest* | |
3926 emacs_cv_x11_toolkit_version_6=no | |
3927 fi | |
3928 rm -f conftest* | |
3929 fi | |
3930 | |
3931 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
3932 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
3933 echo "$ac_t""6 or newer" 1>&6 | |
3934 cat >> confdefs.h <<\EOF | |
3935 #define HAVE_X11XTR6 1 | |
3936 EOF | |
3937 | |
3938 else | |
3939 echo "$ac_t""before 6" 1>&6 | |
3940 fi | |
3941 | |
3942 OLDLIBS="$LIBS" | |
3943 if test x$HAVE_X11XTR6 = xyes; then | |
3944 LIBS="-lXt -lSM -lICE $LIBS" | |
3945 else | |
3946 LIBS="-lXt $LIBS" | |
3947 fi | |
3948 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | |
27205 | 3949 echo "configure:3950: checking for XmuConvertStandardSelection in -lXmu" >&5 |
25897 | 3950 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
3951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3952 echo $ac_n "(cached) $ac_c" 1>&6 | |
3953 else | |
3954 ac_save_LIBS="$LIBS" | |
3955 LIBS="-lXmu $LIBS" | |
3956 cat > conftest.$ac_ext <<EOF | |
27205 | 3957 #line 3958 "configure" |
25897 | 3958 #include "confdefs.h" |
3959 /* Override any gcc2 internal prototype to avoid an error. */ | |
3960 /* We use char because int might match the return type of a gcc2 | |
3961 builtin and then its argument prototype would still apply. */ | |
3962 char XmuConvertStandardSelection(); | |
3963 | |
3964 int main() { | |
3965 XmuConvertStandardSelection() | |
3966 ; return 0; } | |
3967 EOF | |
27205 | 3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3969 rm -rf conftest* |
3970 eval "ac_cv_lib_$ac_lib_var=yes" | |
3971 else | |
3972 echo "configure: failed program was:" >&5 | |
3973 cat conftest.$ac_ext >&5 | |
3974 rm -rf conftest* | |
3975 eval "ac_cv_lib_$ac_lib_var=no" | |
3976 fi | |
3977 rm -f conftest* | |
3978 LIBS="$ac_save_LIBS" | |
3979 | |
3980 fi | |
3981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3982 echo "$ac_t""yes" 1>&6 | |
3983 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3985 cat >> confdefs.h <<EOF | |
3986 #define $ac_tr_lib 1 | |
3987 EOF | |
3988 | |
3989 LIBS="-lXmu $LIBS" | |
3990 | |
3991 else | |
3992 echo "$ac_t""no" 1>&6 | |
3993 fi | |
3994 | |
3995 LIBS="$OLDLIBS" | |
3996 fi | |
3997 | |
3998 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
3999 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | |
27205 | 4000 echo "configure:4001: checking for Motif version 2.1" >&5 |
25897 | 4001 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4002 echo $ac_n "(cached) $ac_c" 1>&6 | |
4003 else | |
4004 cat > conftest.$ac_ext <<EOF | |
27205 | 4005 #line 4006 "configure" |
25897 | 4006 #include "confdefs.h" |
4007 #include <Xm/Xm.h> | |
4008 int main() { | |
4009 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
4010 int x = 5; | |
4011 #else | |
4012 Motif version prior to 2.1. | |
4013 #endif | |
4014 ; return 0; } | |
4015 EOF | |
27205 | 4016 if { (eval echo configure:4017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 4017 rm -rf conftest* |
4018 emacs_cv_motif_version_2_1=yes | |
4019 else | |
4020 echo "configure: failed program was:" >&5 | |
4021 cat conftest.$ac_ext >&5 | |
4022 rm -rf conftest* | |
4023 emacs_cv_motif_version_2_1=no | |
4024 fi | |
4025 rm -f conftest* | |
4026 fi | |
4027 | |
4028 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6 | |
4029 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
4030 if test $emacs_cv_motif_version_2_1 = yes; then | |
4031 cat >> confdefs.h <<\EOF | |
4032 #define HAVE_MOTIF_2_1 1 | |
4033 EOF | |
4034 | |
4035 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | |
27205 | 4036 echo "configure:4037: checking for XpCreateContext in -lXp" >&5 |
25897 | 4037 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4039 echo $ac_n "(cached) $ac_c" 1>&6 | |
4040 else | |
4041 ac_save_LIBS="$LIBS" | |
4042 LIBS="-lXp $LIBS" | |
4043 cat > conftest.$ac_ext <<EOF | |
27205 | 4044 #line 4045 "configure" |
25897 | 4045 #include "confdefs.h" |
4046 /* Override any gcc2 internal prototype to avoid an error. */ | |
4047 /* We use char because int might match the return type of a gcc2 | |
4048 builtin and then its argument prototype would still apply. */ | |
4049 char XpCreateContext(); | |
4050 | |
4051 int main() { | |
4052 XpCreateContext() | |
4053 ; return 0; } | |
4054 EOF | |
27205 | 4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4056 rm -rf conftest* |
4057 eval "ac_cv_lib_$ac_lib_var=yes" | |
4058 else | |
4059 echo "configure: failed program was:" >&5 | |
4060 cat conftest.$ac_ext >&5 | |
4061 rm -rf conftest* | |
4062 eval "ac_cv_lib_$ac_lib_var=no" | |
4063 fi | |
4064 rm -f conftest* | |
4065 LIBS="$ac_save_LIBS" | |
4066 | |
4067 fi | |
4068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4069 echo "$ac_t""yes" 1>&6 | |
4070 ac_tr_lib=HAVE_LIB`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4071 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4072 cat >> confdefs.h <<EOF | |
4073 #define $ac_tr_lib 1 | |
4074 EOF | |
4075 | |
4076 LIBS="-lXp $LIBS" | |
4077 | |
4078 else | |
4079 echo "$ac_t""no" 1>&6 | |
4080 fi | |
4081 | |
4082 fi | |
4083 fi | |
4084 | |
4085 ### Is -lXaw3d available? | |
4086 HAVE_XAW3D=no | |
4087 if test "${HAVE_X11}" = "yes"; then | |
4088 if test "${USE_X_TOOLKIT}" != "none"; then | |
4089 old_c_flags="${CFLAGS}" | |
4090 CFLAGS="${LD_SWITCH_X_SITE}" | |
4091 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | |
4092 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | |
27205 | 4093 echo "configure:4094: checking for X11/Xaw3d/Scrollbar.h" >&5 |
25897 | 4094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4095 echo $ac_n "(cached) $ac_c" 1>&6 | |
4096 else | |
4097 cat > conftest.$ac_ext <<EOF | |
27205 | 4098 #line 4099 "configure" |
25897 | 4099 #include "confdefs.h" |
4100 #include <X11/Xaw3d/Scrollbar.h> | |
4101 EOF | |
4102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 4103 { (eval echo configure:4104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 4105 if test -z "$ac_err"; then |
4106 rm -rf conftest* | |
4107 eval "ac_cv_header_$ac_safe=yes" | |
4108 else | |
4109 echo "$ac_err" >&5 | |
4110 echo "configure: failed program was:" >&5 | |
4111 cat conftest.$ac_ext >&5 | |
4112 rm -rf conftest* | |
4113 eval "ac_cv_header_$ac_safe=no" | |
4114 fi | |
4115 rm -f conftest* | |
4116 fi | |
4117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4118 echo "$ac_t""yes" 1>&6 | |
4119 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | |
27205 | 4120 echo "configure:4121: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
25897 | 4121 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4123 echo $ac_n "(cached) $ac_c" 1>&6 | |
4124 else | |
4125 ac_save_LIBS="$LIBS" | |
4126 LIBS="-lXaw3d -lX11 $LIBS" | |
4127 cat > conftest.$ac_ext <<EOF | |
27205 | 4128 #line 4129 "configure" |
25897 | 4129 #include "confdefs.h" |
4130 /* Override any gcc2 internal prototype to avoid an error. */ | |
4131 /* We use char because int might match the return type of a gcc2 | |
4132 builtin and then its argument prototype would still apply. */ | |
4133 char XawScrollbarSetThumb(); | |
4134 | |
4135 int main() { | |
4136 XawScrollbarSetThumb() | |
4137 ; return 0; } | |
4138 EOF | |
27205 | 4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4140 rm -rf conftest* |
4141 eval "ac_cv_lib_$ac_lib_var=yes" | |
4142 else | |
4143 echo "configure: failed program was:" >&5 | |
4144 cat conftest.$ac_ext >&5 | |
4145 rm -rf conftest* | |
4146 eval "ac_cv_lib_$ac_lib_var=no" | |
4147 fi | |
4148 rm -f conftest* | |
4149 LIBS="$ac_save_LIBS" | |
4150 | |
4151 fi | |
4152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4153 echo "$ac_t""yes" 1>&6 | |
4154 HAVE_XAW3D=yes | |
4155 else | |
4156 echo "$ac_t""no" 1>&6 | |
4157 fi | |
4158 | |
4159 else | |
4160 echo "$ac_t""no" 1>&6 | |
4161 fi | |
4162 | |
4163 CFLAGS="${old_c_flags}" | |
4164 | |
4165 if test "${HAVE_XAW3D}" = "yes"; then | |
4166 cat >> confdefs.h <<\EOF | |
4167 #define HAVE_XAW3D 1 | |
4168 EOF | |
4169 | |
4170 fi | |
4171 fi | |
4172 fi | |
4173 | |
4174 | |
4175 USE_TOOLKIT_SCROLL_BARS=no | |
4176 if test "${with_toolkit_scroll_bars}" != "no"; then | |
4177 if test "${USE_X_TOOLKIT}" != "none"; then | |
4178 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
4179 cat >> confdefs.h <<\EOF | |
4180 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4181 EOF | |
4182 | |
4183 HAVE_XAW3D=no | |
4184 USE_TOOLKIT_SCROLL_BARS=yes | |
4185 elif test "${HAVE_XAW3D}" = "yes"; then | |
4186 cat >> confdefs.h <<\EOF | |
4187 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4188 EOF | |
4189 | |
4190 USE_TOOLKIT_SCROLL_BARS=yes | |
4191 fi | |
4192 fi | |
4193 fi | |
4194 | |
4195 ### Use -lXpm if available, unless `--with-xpm=no'. | |
4196 HAVE_XPM=no | |
4197 if test "${HAVE_X11}" = "yes"; then | |
4198 if test "${with_xpm}" != "no"; then | |
4199 old_c_flags="${CFLAGS}" | |
4200 CFLAGS="${LD_SWITCH_X_SITE}" | |
4201 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | |
4202 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | |
27205 | 4203 echo "configure:4204: checking for X11/xpm.h" >&5 |
25897 | 4204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4205 echo $ac_n "(cached) $ac_c" 1>&6 | |
4206 else | |
4207 cat > conftest.$ac_ext <<EOF | |
27205 | 4208 #line 4209 "configure" |
25897 | 4209 #include "confdefs.h" |
4210 #include <X11/xpm.h> | |
4211 EOF | |
4212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 4213 { (eval echo configure:4214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 4215 if test -z "$ac_err"; then |
4216 rm -rf conftest* | |
4217 eval "ac_cv_header_$ac_safe=yes" | |
4218 else | |
4219 echo "$ac_err" >&5 | |
4220 echo "configure: failed program was:" >&5 | |
4221 cat conftest.$ac_ext >&5 | |
4222 rm -rf conftest* | |
4223 eval "ac_cv_header_$ac_safe=no" | |
4224 fi | |
4225 rm -f conftest* | |
4226 fi | |
4227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4228 echo "$ac_t""yes" 1>&6 | |
4229 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | |
27205 | 4230 echo "configure:4231: checking for XpmReadFileToPixmap in -lXpm" >&5 |
25897 | 4231 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4233 echo $ac_n "(cached) $ac_c" 1>&6 | |
4234 else | |
4235 ac_save_LIBS="$LIBS" | |
4236 LIBS="-lXpm -lX11 $LIBS" | |
4237 cat > conftest.$ac_ext <<EOF | |
27205 | 4238 #line 4239 "configure" |
25897 | 4239 #include "confdefs.h" |
4240 /* Override any gcc2 internal prototype to avoid an error. */ | |
4241 /* We use char because int might match the return type of a gcc2 | |
4242 builtin and then its argument prototype would still apply. */ | |
4243 char XpmReadFileToPixmap(); | |
4244 | |
4245 int main() { | |
4246 XpmReadFileToPixmap() | |
4247 ; return 0; } | |
4248 EOF | |
27205 | 4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4250 rm -rf conftest* |
4251 eval "ac_cv_lib_$ac_lib_var=yes" | |
4252 else | |
4253 echo "configure: failed program was:" >&5 | |
4254 cat conftest.$ac_ext >&5 | |
4255 rm -rf conftest* | |
4256 eval "ac_cv_lib_$ac_lib_var=no" | |
4257 fi | |
4258 rm -f conftest* | |
4259 LIBS="$ac_save_LIBS" | |
4260 | |
4261 fi | |
4262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4263 echo "$ac_t""yes" 1>&6 | |
4264 HAVE_XPM=yes | |
4265 else | |
4266 echo "$ac_t""no" 1>&6 | |
4267 fi | |
4268 | |
4269 else | |
4270 echo "$ac_t""no" 1>&6 | |
4271 fi | |
4272 | |
4273 CFLAGS="${old_c_flags}" | |
4274 fi | |
4275 | |
4276 if test "${HAVE_XPM}" = "yes"; then | |
4277 cat >> confdefs.h <<\EOF | |
4278 #define HAVE_XPM 1 | |
4279 EOF | |
4280 | |
4281 fi | |
4282 fi | |
4283 | |
4284 ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
4285 HAVE_JPEG=no | |
4286 if test "${HAVE_X11}" = "yes"; then | |
4287 if test "${with_jpeg}" != "no"; then | |
4288 old_c_flags="${CFLAGS}" | |
4289 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4290 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | |
27205 | 4291 echo "configure:4292: checking for jpeg_destroy_compress in -ljpeg" >&5 |
25897 | 4292 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
4293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4294 echo $ac_n "(cached) $ac_c" 1>&6 | |
4295 else | |
4296 ac_save_LIBS="$LIBS" | |
4297 LIBS="-ljpeg -lX11 $LIBS" | |
4298 cat > conftest.$ac_ext <<EOF | |
27205 | 4299 #line 4300 "configure" |
25897 | 4300 #include "confdefs.h" |
4301 /* Override any gcc2 internal prototype to avoid an error. */ | |
4302 /* We use char because int might match the return type of a gcc2 | |
4303 builtin and then its argument prototype would still apply. */ | |
4304 char jpeg_destroy_compress(); | |
4305 | |
4306 int main() { | |
4307 jpeg_destroy_compress() | |
4308 ; return 0; } | |
4309 EOF | |
27205 | 4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4311 rm -rf conftest* |
4312 eval "ac_cv_lib_$ac_lib_var=yes" | |
4313 else | |
4314 echo "configure: failed program was:" >&5 | |
4315 cat conftest.$ac_ext >&5 | |
4316 rm -rf conftest* | |
4317 eval "ac_cv_lib_$ac_lib_var=no" | |
4318 fi | |
4319 rm -f conftest* | |
4320 LIBS="$ac_save_LIBS" | |
4321 | |
4322 fi | |
4323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4324 echo "$ac_t""yes" 1>&6 | |
4325 HAVE_JPEG=yes | |
4326 else | |
4327 echo "$ac_t""no" 1>&6 | |
4328 fi | |
4329 | |
4330 CFLAGS="${old_c_flags}" | |
4331 fi | |
4332 | |
4333 if test "${HAVE_JPEG}" = "yes"; then | |
4334 cat >> confdefs.h <<\EOF | |
4335 #define HAVE_JPEG 1 | |
4336 EOF | |
4337 | |
4338 fi | |
4339 fi | |
4340 | |
4341 ### Use -lpng if available, unless `--with-png=no'. | |
4342 HAVE_PNG=no | |
4343 if test "${HAVE_X11}" = "yes"; then | |
4344 if test "${with_png}" != "no"; then | |
4345 old_c_flags="${CFLAGS}" | |
4346 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4347 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4348 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
27205 | 4349 echo "configure:4350: checking for png.h" >&5 |
25897 | 4350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4351 echo $ac_n "(cached) $ac_c" 1>&6 | |
4352 else | |
4353 cat > conftest.$ac_ext <<EOF | |
27205 | 4354 #line 4355 "configure" |
25897 | 4355 #include "confdefs.h" |
4356 #include <png.h> | |
4357 EOF | |
4358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 4359 { (eval echo configure:4360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 4361 if test -z "$ac_err"; then |
4362 rm -rf conftest* | |
4363 eval "ac_cv_header_$ac_safe=yes" | |
4364 else | |
4365 echo "$ac_err" >&5 | |
4366 echo "configure: failed program was:" >&5 | |
4367 cat conftest.$ac_ext >&5 | |
4368 rm -rf conftest* | |
4369 eval "ac_cv_header_$ac_safe=no" | |
4370 fi | |
4371 rm -f conftest* | |
4372 fi | |
4373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4374 echo "$ac_t""yes" 1>&6 | |
4375 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | |
27205 | 4376 echo "configure:4377: checking for png_set_expand in -lpng" >&5 |
25897 | 4377 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
4378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4379 echo $ac_n "(cached) $ac_c" 1>&6 | |
4380 else | |
4381 ac_save_LIBS="$LIBS" | |
4382 LIBS="-lpng -lX11 -lz -lm $LIBS" | |
4383 cat > conftest.$ac_ext <<EOF | |
27205 | 4384 #line 4385 "configure" |
25897 | 4385 #include "confdefs.h" |
4386 /* Override any gcc2 internal prototype to avoid an error. */ | |
4387 /* We use char because int might match the return type of a gcc2 | |
4388 builtin and then its argument prototype would still apply. */ | |
4389 char png_set_expand(); | |
4390 | |
4391 int main() { | |
4392 png_set_expand() | |
4393 ; return 0; } | |
4394 EOF | |
27205 | 4395 if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4396 rm -rf conftest* |
4397 eval "ac_cv_lib_$ac_lib_var=yes" | |
4398 else | |
4399 echo "configure: failed program was:" >&5 | |
4400 cat conftest.$ac_ext >&5 | |
4401 rm -rf conftest* | |
4402 eval "ac_cv_lib_$ac_lib_var=no" | |
4403 fi | |
4404 rm -f conftest* | |
4405 LIBS="$ac_save_LIBS" | |
4406 | |
4407 fi | |
4408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4409 echo "$ac_t""yes" 1>&6 | |
4410 HAVE_PNG=yes | |
4411 else | |
4412 echo "$ac_t""no" 1>&6 | |
4413 fi | |
4414 | |
4415 else | |
4416 echo "$ac_t""no" 1>&6 | |
4417 fi | |
4418 | |
4419 CFLAGS="${old_c_flags}" | |
4420 fi | |
4421 | |
4422 if test "${HAVE_PNG}" = "yes"; then | |
4423 cat >> confdefs.h <<\EOF | |
4424 #define HAVE_PNG 1 | |
4425 EOF | |
4426 | |
4427 fi | |
4428 fi | |
4429 | |
4430 ### Use -ltiff if available, unless `--with-tiff=no'. | |
4431 HAVE_TIFF=no | |
4432 if test "${HAVE_X11}" = "yes"; then | |
4433 if test "${with_tiff}" != "no"; then | |
4434 old_c_flags="${CFLAGS}" | |
4435 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4436 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
4437 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
27205 | 4438 echo "configure:4439: checking for tiffio.h" >&5 |
25897 | 4439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4440 echo $ac_n "(cached) $ac_c" 1>&6 | |
4441 else | |
4442 cat > conftest.$ac_ext <<EOF | |
27205 | 4443 #line 4444 "configure" |
25897 | 4444 #include "confdefs.h" |
4445 #include <tiffio.h> | |
4446 EOF | |
4447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 4448 { (eval echo configure:4449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 4450 if test -z "$ac_err"; then |
4451 rm -rf conftest* | |
4452 eval "ac_cv_header_$ac_safe=yes" | |
4453 else | |
4454 echo "$ac_err" >&5 | |
4455 echo "configure: failed program was:" >&5 | |
4456 cat conftest.$ac_ext >&5 | |
4457 rm -rf conftest* | |
4458 eval "ac_cv_header_$ac_safe=no" | |
4459 fi | |
4460 rm -f conftest* | |
4461 fi | |
4462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4463 echo "$ac_t""yes" 1>&6 | |
4464 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | |
27205 | 4465 echo "configure:4466: checking for TIFFGetVersion in -ltiff" >&5 |
25897 | 4466 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
4467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4468 echo $ac_n "(cached) $ac_c" 1>&6 | |
4469 else | |
4470 ac_save_LIBS="$LIBS" | |
4471 LIBS="-ltiff -lX11 -lm $LIBS" | |
4472 cat > conftest.$ac_ext <<EOF | |
27205 | 4473 #line 4474 "configure" |
25897 | 4474 #include "confdefs.h" |
4475 /* Override any gcc2 internal prototype to avoid an error. */ | |
4476 /* We use char because int might match the return type of a gcc2 | |
4477 builtin and then its argument prototype would still apply. */ | |
4478 char TIFFGetVersion(); | |
4479 | |
4480 int main() { | |
4481 TIFFGetVersion() | |
4482 ; return 0; } | |
4483 EOF | |
27205 | 4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4485 rm -rf conftest* |
4486 eval "ac_cv_lib_$ac_lib_var=yes" | |
4487 else | |
4488 echo "configure: failed program was:" >&5 | |
4489 cat conftest.$ac_ext >&5 | |
4490 rm -rf conftest* | |
4491 eval "ac_cv_lib_$ac_lib_var=no" | |
4492 fi | |
4493 rm -f conftest* | |
4494 LIBS="$ac_save_LIBS" | |
4495 | |
4496 fi | |
4497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4498 echo "$ac_t""yes" 1>&6 | |
4499 HAVE_TIFF=yes | |
4500 else | |
4501 echo "$ac_t""no" 1>&6 | |
4502 fi | |
4503 | |
4504 else | |
4505 echo "$ac_t""no" 1>&6 | |
4506 fi | |
4507 | |
4508 CFLAGS="${old_c_flags}" | |
4509 fi | |
4510 | |
4511 if test "${HAVE_TIFF}" = "yes"; then | |
4512 cat >> confdefs.h <<\EOF | |
4513 #define HAVE_TIFF 1 | |
4514 EOF | |
4515 | |
4516 fi | |
4517 fi | |
4518 | |
4519 ### Use -lgif if available, unless `--with-gif=no'. | |
4520 HAVE_GIF=no | |
4521 if test "${HAVE_X11}" = "yes"; then | |
4522 if test "${with_gif}" != "no"; then | |
4523 old_c_flags="${CFLAGS}" | |
4524 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4525 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | |
4526 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | |
27205 | 4527 echo "configure:4528: checking for gif_lib.h" >&5 |
25897 | 4528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4529 echo $ac_n "(cached) $ac_c" 1>&6 | |
4530 else | |
4531 cat > conftest.$ac_ext <<EOF | |
27205 | 4532 #line 4533 "configure" |
25897 | 4533 #include "confdefs.h" |
4534 #include <gif_lib.h> | |
4535 EOF | |
4536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 4537 { (eval echo configure:4538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 4539 if test -z "$ac_err"; then |
4540 rm -rf conftest* | |
4541 eval "ac_cv_header_$ac_safe=yes" | |
4542 else | |
4543 echo "$ac_err" >&5 | |
4544 echo "configure: failed program was:" >&5 | |
4545 cat conftest.$ac_ext >&5 | |
4546 rm -rf conftest* | |
4547 eval "ac_cv_header_$ac_safe=no" | |
4548 fi | |
4549 rm -f conftest* | |
4550 fi | |
4551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4552 echo "$ac_t""yes" 1>&6 | |
4553 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6 | |
27205 | 4554 echo "configure:4555: checking for DGifOpenFileName in -lungif" >&5 |
25897 | 4555 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'` |
4556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4557 echo $ac_n "(cached) $ac_c" 1>&6 | |
4558 else | |
4559 ac_save_LIBS="$LIBS" | |
4560 LIBS="-lungif -lX11 $LIBS" | |
4561 cat > conftest.$ac_ext <<EOF | |
27205 | 4562 #line 4563 "configure" |
25897 | 4563 #include "confdefs.h" |
4564 /* Override any gcc2 internal prototype to avoid an error. */ | |
4565 /* We use char because int might match the return type of a gcc2 | |
4566 builtin and then its argument prototype would still apply. */ | |
4567 char DGifOpenFileName(); | |
4568 | |
4569 int main() { | |
4570 DGifOpenFileName() | |
4571 ; return 0; } | |
4572 EOF | |
27205 | 4573 if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4574 rm -rf conftest* |
4575 eval "ac_cv_lib_$ac_lib_var=yes" | |
4576 else | |
4577 echo "configure: failed program was:" >&5 | |
4578 cat conftest.$ac_ext >&5 | |
4579 rm -rf conftest* | |
4580 eval "ac_cv_lib_$ac_lib_var=no" | |
4581 fi | |
4582 rm -f conftest* | |
4583 LIBS="$ac_save_LIBS" | |
4584 | |
4585 fi | |
4586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4587 echo "$ac_t""yes" 1>&6 | |
4588 HAVE_GIF=yes | |
4589 else | |
4590 echo "$ac_t""no" 1>&6 | |
4591 fi | |
4592 | |
4593 else | |
4594 echo "$ac_t""no" 1>&6 | |
4595 fi | |
4596 | |
4597 CFLAGS="${old_c_flags}" | |
4598 fi | |
4599 | |
4600 if test "${HAVE_GIF}" = "yes"; then | |
4601 cat >> confdefs.h <<\EOF | |
4602 #define HAVE_GIF 1 | |
4603 EOF | |
4604 | |
4605 fi | |
4606 fi | |
4607 | |
4608 # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
4609 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | |
27205 | 4610 echo "configure:4611: checking whether netdb declares h_errno" >&5 |
25897 | 4611 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
4612 echo $ac_n "(cached) $ac_c" 1>&6 | |
4613 else | |
4614 cat > conftest.$ac_ext <<EOF | |
27205 | 4615 #line 4616 "configure" |
25897 | 4616 #include "confdefs.h" |
4617 #include <netdb.h> | |
4618 int main() { | |
4619 return h_errno; | |
4620 ; return 0; } | |
4621 EOF | |
27205 | 4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4623 rm -rf conftest* |
4624 emacs_cv_netdb_declares_h_errno=yes | |
4625 else | |
4626 echo "configure: failed program was:" >&5 | |
4627 cat conftest.$ac_ext >&5 | |
4628 rm -rf conftest* | |
4629 emacs_cv_netdb_declares_h_errno=no | |
4630 fi | |
4631 rm -f conftest* | |
4632 fi | |
4633 | |
4634 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6 | |
4635 if test $emacs_cv_netdb_declares_h_errno = yes; then | |
4636 cat >> confdefs.h <<\EOF | |
4637 #define HAVE_H_ERRNO 1 | |
4638 EOF | |
4639 | |
4640 fi | |
4641 | |
4642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4643 # for constant arguments. Useless! | |
4644 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
27205 | 4645 echo "configure:4646: checking for working alloca.h" >&5 |
25897 | 4646 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
4647 echo $ac_n "(cached) $ac_c" 1>&6 | |
4648 else | |
4649 cat > conftest.$ac_ext <<EOF | |
27205 | 4650 #line 4651 "configure" |
25897 | 4651 #include "confdefs.h" |
4652 #include <alloca.h> | |
4653 int main() { | |
4654 char *p = alloca(2 * sizeof(int)); | |
4655 ; return 0; } | |
4656 EOF | |
27205 | 4657 if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4658 rm -rf conftest* |
4659 ac_cv_header_alloca_h=yes | |
4660 else | |
4661 echo "configure: failed program was:" >&5 | |
4662 cat conftest.$ac_ext >&5 | |
4663 rm -rf conftest* | |
4664 ac_cv_header_alloca_h=no | |
4665 fi | |
4666 rm -f conftest* | |
4667 fi | |
4668 | |
4669 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
4670 if test $ac_cv_header_alloca_h = yes; then | |
4671 cat >> confdefs.h <<\EOF | |
4672 #define HAVE_ALLOCA_H 1 | |
4673 EOF | |
4674 | |
4675 fi | |
4676 | |
4677 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
27205 | 4678 echo "configure:4679: checking for alloca" >&5 |
25897 | 4679 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
4680 echo $ac_n "(cached) $ac_c" 1>&6 | |
4681 else | |
4682 cat > conftest.$ac_ext <<EOF | |
27205 | 4683 #line 4684 "configure" |
25897 | 4684 #include "confdefs.h" |
4685 | |
4686 #ifdef __GNUC__ | |
4687 # define alloca __builtin_alloca | |
4688 #else | |
27205 | 4689 # ifdef _MSC_VER |
4690 # include <malloc.h> | |
4691 # define alloca _alloca | |
25897 | 4692 # else |
27205 | 4693 # if HAVE_ALLOCA_H |
4694 # include <alloca.h> | |
25897 | 4695 # else |
27205 | 4696 # ifdef _AIX |
4697 #pragma alloca | |
4698 # else | |
4699 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 4700 char *alloca (); |
27205 | 4701 # endif |
25897 | 4702 # endif |
4703 # endif | |
4704 # endif | |
4705 #endif | |
4706 | |
4707 int main() { | |
4708 char *p = (char *) alloca(1); | |
4709 ; return 0; } | |
4710 EOF | |
27205 | 4711 if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4712 rm -rf conftest* |
4713 ac_cv_func_alloca_works=yes | |
4714 else | |
4715 echo "configure: failed program was:" >&5 | |
4716 cat conftest.$ac_ext >&5 | |
4717 rm -rf conftest* | |
4718 ac_cv_func_alloca_works=no | |
4719 fi | |
4720 rm -f conftest* | |
4721 fi | |
4722 | |
4723 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
4724 if test $ac_cv_func_alloca_works = yes; then | |
4725 cat >> confdefs.h <<\EOF | |
4726 #define HAVE_ALLOCA 1 | |
4727 EOF | |
4728 | |
4729 fi | |
4730 | |
4731 if test $ac_cv_func_alloca_works = no; then | |
4732 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
4733 # that cause trouble. Some versions do not even contain alloca or | |
4734 # contain a buggy version. If you still want to use their alloca, | |
4735 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
27205 | 4736 ALLOCA=alloca.${ac_objext} |
25897 | 4737 cat >> confdefs.h <<\EOF |
4738 #define C_ALLOCA 1 | |
4739 EOF | |
4740 | |
4741 | |
4742 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
27205 | 4743 echo "configure:4744: checking whether alloca needs Cray hooks" >&5 |
25897 | 4744 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
4745 echo $ac_n "(cached) $ac_c" 1>&6 | |
4746 else | |
4747 cat > conftest.$ac_ext <<EOF | |
27205 | 4748 #line 4749 "configure" |
25897 | 4749 #include "confdefs.h" |
4750 #if defined(CRAY) && ! defined(CRAY2) | |
4751 webecray | |
4752 #else | |
4753 wenotbecray | |
4754 #endif | |
4755 | |
4756 EOF | |
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4758 egrep "webecray" >/dev/null 2>&1; then | |
4759 rm -rf conftest* | |
4760 ac_cv_os_cray=yes | |
4761 else | |
4762 rm -rf conftest* | |
4763 ac_cv_os_cray=no | |
4764 fi | |
4765 rm -f conftest* | |
4766 | |
4767 fi | |
4768 | |
4769 echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
4770 if test $ac_cv_os_cray = yes; then | |
4771 for ac_func in _getb67 GETB67 getb67; do | |
4772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
27205 | 4773 echo "configure:4774: checking for $ac_func" >&5 |
25897 | 4774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4775 echo $ac_n "(cached) $ac_c" 1>&6 | |
4776 else | |
4777 cat > conftest.$ac_ext <<EOF | |
27205 | 4778 #line 4779 "configure" |
25897 | 4779 #include "confdefs.h" |
4780 /* System header to define __stub macros and hopefully few prototypes, | |
4781 which can conflict with char $ac_func(); below. */ | |
4782 #include <assert.h> | |
4783 /* Override any gcc2 internal prototype to avoid an error. */ | |
4784 /* We use char because int might match the return type of a gcc2 | |
4785 builtin and then its argument prototype would still apply. */ | |
4786 char $ac_func(); | |
4787 | |
4788 int main() { | |
4789 | |
4790 /* The GNU C library defines this for functions which it implements | |
4791 to always fail with ENOSYS. Some functions are actually named | |
4792 something starting with __ and the normal name is an alias. */ | |
4793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4794 choke me | |
4795 #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
|
4796 $ac_func(); |
25897 | 4797 #endif |
4798 | |
4799 ; return 0; } | |
4800 EOF | |
27205 | 4801 if { (eval echo configure:4802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4802 rm -rf conftest* |
4803 eval "ac_cv_func_$ac_func=yes" | |
4804 else | |
4805 echo "configure: failed program was:" >&5 | |
4806 cat conftest.$ac_ext >&5 | |
4807 rm -rf conftest* | |
4808 eval "ac_cv_func_$ac_func=no" | |
4809 fi | |
4810 rm -f conftest* | |
4811 fi | |
4812 | |
4813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4814 echo "$ac_t""yes" 1>&6 | |
4815 cat >> confdefs.h <<EOF | |
4816 #define CRAY_STACKSEG_END $ac_func | |
4817 EOF | |
4818 | |
4819 break | |
4820 else | |
4821 echo "$ac_t""no" 1>&6 | |
4822 fi | |
4823 | |
4824 done | |
4825 fi | |
4826 | |
4827 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
27205 | 4828 echo "configure:4829: checking stack direction for C alloca" >&5 |
25897 | 4829 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
4830 echo $ac_n "(cached) $ac_c" 1>&6 | |
4831 else | |
4832 if test "$cross_compiling" = yes; then | |
4833 ac_cv_c_stack_direction=0 | |
4834 else | |
4835 cat > conftest.$ac_ext <<EOF | |
27205 | 4836 #line 4837 "configure" |
25897 | 4837 #include "confdefs.h" |
4838 find_stack_direction () | |
4839 { | |
4840 static char *addr = 0; | |
4841 auto char dummy; | |
4842 if (addr == 0) | |
4843 { | |
4844 addr = &dummy; | |
4845 return find_stack_direction (); | |
4846 } | |
4847 else | |
4848 return (&dummy > addr) ? 1 : -1; | |
4849 } | |
4850 main () | |
4851 { | |
4852 exit (find_stack_direction() < 0); | |
4853 } | |
4854 EOF | |
27205 | 4855 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 4856 then |
4857 ac_cv_c_stack_direction=1 | |
4858 else | |
4859 echo "configure: failed program was:" >&5 | |
4860 cat conftest.$ac_ext >&5 | |
4861 rm -fr conftest* | |
4862 ac_cv_c_stack_direction=-1 | |
4863 fi | |
4864 rm -fr conftest* | |
4865 fi | |
4866 | |
4867 fi | |
4868 | |
4869 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
4870 cat >> confdefs.h <<EOF | |
4871 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4872 EOF | |
4873 | |
4874 fi | |
4875 | |
4876 | |
4877 # fmod, logb, and frexp are found in -lm on most systems. | |
4878 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
4879 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | |
27205 | 4880 echo "configure:4881: checking for sqrt in -lm" >&5 |
25897 | 4881 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
4882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4883 echo $ac_n "(cached) $ac_c" 1>&6 | |
4884 else | |
4885 ac_save_LIBS="$LIBS" | |
4886 LIBS="-lm $LIBS" | |
4887 cat > conftest.$ac_ext <<EOF | |
27205 | 4888 #line 4889 "configure" |
25897 | 4889 #include "confdefs.h" |
4890 /* Override any gcc2 internal prototype to avoid an error. */ | |
4891 /* We use char because int might match the return type of a gcc2 | |
4892 builtin and then its argument prototype would still apply. */ | |
4893 char sqrt(); | |
4894 | |
4895 int main() { | |
4896 sqrt() | |
4897 ; return 0; } | |
4898 EOF | |
27205 | 4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4900 rm -rf conftest* |
4901 eval "ac_cv_lib_$ac_lib_var=yes" | |
4902 else | |
4903 echo "configure: failed program was:" >&5 | |
4904 cat conftest.$ac_ext >&5 | |
4905 rm -rf conftest* | |
4906 eval "ac_cv_lib_$ac_lib_var=no" | |
4907 fi | |
4908 rm -f conftest* | |
4909 LIBS="$ac_save_LIBS" | |
4910 | |
4911 fi | |
4912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4913 echo "$ac_t""yes" 1>&6 | |
4914 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4915 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4916 cat >> confdefs.h <<EOF | |
4917 #define $ac_tr_lib 1 | |
4918 EOF | |
4919 | |
4920 LIBS="-lm $LIBS" | |
4921 | |
4922 else | |
4923 echo "$ac_t""no" 1>&6 | |
4924 fi | |
4925 | |
4926 | |
4927 # Check for mail-locking functions in a "mail" library | |
4928 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | |
27205 | 4929 echo "configure:4930: checking for maillock in -lmail" >&5 |
25897 | 4930 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
4931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4932 echo $ac_n "(cached) $ac_c" 1>&6 | |
4933 else | |
4934 ac_save_LIBS="$LIBS" | |
4935 LIBS="-lmail $LIBS" | |
4936 cat > conftest.$ac_ext <<EOF | |
27205 | 4937 #line 4938 "configure" |
25897 | 4938 #include "confdefs.h" |
4939 /* Override any gcc2 internal prototype to avoid an error. */ | |
4940 /* We use char because int might match the return type of a gcc2 | |
4941 builtin and then its argument prototype would still apply. */ | |
4942 char maillock(); | |
4943 | |
4944 int main() { | |
4945 maillock() | |
4946 ; return 0; } | |
4947 EOF | |
27205 | 4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4949 rm -rf conftest* |
4950 eval "ac_cv_lib_$ac_lib_var=yes" | |
4951 else | |
4952 echo "configure: failed program was:" >&5 | |
4953 cat conftest.$ac_ext >&5 | |
4954 rm -rf conftest* | |
4955 eval "ac_cv_lib_$ac_lib_var=no" | |
4956 fi | |
4957 rm -f conftest* | |
4958 LIBS="$ac_save_LIBS" | |
4959 | |
4960 fi | |
4961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4962 echo "$ac_t""yes" 1>&6 | |
4963 ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4964 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4965 cat >> confdefs.h <<EOF | |
4966 #define $ac_tr_lib 1 | |
4967 EOF | |
4968 | |
4969 LIBS="-lmail $LIBS" | |
4970 | |
4971 else | |
4972 echo "$ac_t""no" 1>&6 | |
4973 fi | |
4974 | |
4975 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | |
27205 | 4976 echo "configure:4977: checking for maillock in -llockfile" >&5 |
25897 | 4977 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
4978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4979 echo $ac_n "(cached) $ac_c" 1>&6 | |
4980 else | |
4981 ac_save_LIBS="$LIBS" | |
4982 LIBS="-llockfile $LIBS" | |
4983 cat > conftest.$ac_ext <<EOF | |
27205 | 4984 #line 4985 "configure" |
25897 | 4985 #include "confdefs.h" |
4986 /* Override any gcc2 internal prototype to avoid an error. */ | |
4987 /* We use char because int might match the return type of a gcc2 | |
4988 builtin and then its argument prototype would still apply. */ | |
4989 char maillock(); | |
4990 | |
4991 int main() { | |
4992 maillock() | |
4993 ; return 0; } | |
4994 EOF | |
27205 | 4995 if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4996 rm -rf conftest* |
4997 eval "ac_cv_lib_$ac_lib_var=yes" | |
4998 else | |
4999 echo "configure: failed program was:" >&5 | |
5000 cat conftest.$ac_ext >&5 | |
5001 rm -rf conftest* | |
5002 eval "ac_cv_lib_$ac_lib_var=no" | |
5003 fi | |
5004 rm -f conftest* | |
5005 LIBS="$ac_save_LIBS" | |
5006 | |
5007 fi | |
5008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5009 echo "$ac_t""yes" 1>&6 | |
5010 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5012 cat >> confdefs.h <<EOF | |
5013 #define $ac_tr_lib 1 | |
5014 EOF | |
5015 | |
5016 LIBS="-llockfile $LIBS" | |
5017 | |
5018 else | |
5019 echo "$ac_t""no" 1>&6 | |
5020 fi | |
5021 | |
5022 # If we have the shared liblockfile, assume we must use it for mail | |
5023 # locking (e.g. Debian). If we couldn't link against liblockfile | |
5024 # (no liblockfile.a installed), ensure that we don't need to. | |
5025 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
5026 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
5027 set dummy liblockfile.so; ac_word=$2 | |
5028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
27205 | 5029 echo "configure:5030: checking for $ac_word" >&5 |
25897 | 5030 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5031 echo $ac_n "(cached) $ac_c" 1>&6 | |
5032 else | |
5033 if test -n "$liblockfile"; then | |
5034 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
5035 else | |
27205 | 5036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5037 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
5038 for ac_dir in $ac_dummy; do | |
25897 | 5039 test -z "$ac_dir" && ac_dir=. |
5040 if test -f $ac_dir/$ac_word; then | |
5041 ac_cv_prog_liblockfile="yes" | |
5042 break | |
5043 fi | |
5044 done | |
5045 IFS="$ac_save_ifs" | |
5046 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
5047 fi | |
5048 fi | |
5049 liblockfile="$ac_cv_prog_liblockfile" | |
5050 if test -n "$liblockfile"; then | |
5051 echo "$ac_t""$liblockfile" 1>&6 | |
5052 else | |
5053 echo "$ac_t""no" 1>&6 | |
5054 fi | |
5055 | |
5056 if test $ac_cv_prog_liblockfile = yes; then | |
5057 { echo "configure: error: Shared liblockfile found but can't link against it. | |
5058 This probably means that movemail could lose mail. | |
5059 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; } | |
5060 else cat >> confdefs.h <<\EOF | |
5061 #define LIBMAIL -llockfile | |
5062 EOF | |
5063 | |
5064 fi | |
5065 else : | |
5066 fi | |
5067 for ac_func in touchlock | |
5068 do | |
5069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
27205 | 5070 echo "configure:5071: checking for $ac_func" >&5 |
25897 | 5071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5072 echo $ac_n "(cached) $ac_c" 1>&6 | |
5073 else | |
5074 cat > conftest.$ac_ext <<EOF | |
27205 | 5075 #line 5076 "configure" |
25897 | 5076 #include "confdefs.h" |
5077 /* System header to define __stub macros and hopefully few prototypes, | |
5078 which can conflict with char $ac_func(); below. */ | |
5079 #include <assert.h> | |
5080 /* Override any gcc2 internal prototype to avoid an error. */ | |
5081 /* We use char because int might match the return type of a gcc2 | |
5082 builtin and then its argument prototype would still apply. */ | |
5083 char $ac_func(); | |
5084 | |
5085 int main() { | |
5086 | |
5087 /* The GNU C library defines this for functions which it implements | |
5088 to always fail with ENOSYS. Some functions are actually named | |
5089 something starting with __ and the normal name is an alias. */ | |
5090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5091 choke me | |
5092 #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
|
5093 $ac_func(); |
25897 | 5094 #endif |
5095 | |
5096 ; return 0; } | |
5097 EOF | |
27205 | 5098 if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5099 rm -rf conftest* |
5100 eval "ac_cv_func_$ac_func=yes" | |
5101 else | |
5102 echo "configure: failed program was:" >&5 | |
5103 cat conftest.$ac_ext >&5 | |
5104 rm -rf conftest* | |
5105 eval "ac_cv_func_$ac_func=no" | |
5106 fi | |
5107 rm -f conftest* | |
5108 fi | |
5109 | |
5110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5111 echo "$ac_t""yes" 1>&6 | |
5112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5113 cat >> confdefs.h <<EOF | |
5114 #define $ac_tr_func 1 | |
5115 EOF | |
5116 | |
5117 else | |
5118 echo "$ac_t""no" 1>&6 | |
5119 fi | |
5120 done | |
5121 | |
5122 for ac_hdr in maillock.h | |
5123 do | |
5124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
27205 | 5126 echo "configure:5127: checking for $ac_hdr" >&5 |
25897 | 5127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5128 echo $ac_n "(cached) $ac_c" 1>&6 | |
5129 else | |
5130 cat > conftest.$ac_ext <<EOF | |
27205 | 5131 #line 5132 "configure" |
25897 | 5132 #include "confdefs.h" |
5133 #include <$ac_hdr> | |
5134 EOF | |
5135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 5136 { (eval echo configure:5137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 5138 if test -z "$ac_err"; then |
5139 rm -rf conftest* | |
5140 eval "ac_cv_header_$ac_safe=yes" | |
5141 else | |
5142 echo "$ac_err" >&5 | |
5143 echo "configure: failed program was:" >&5 | |
5144 cat conftest.$ac_ext >&5 | |
5145 rm -rf conftest* | |
5146 eval "ac_cv_header_$ac_safe=no" | |
5147 fi | |
5148 rm -f conftest* | |
5149 fi | |
5150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5151 echo "$ac_t""yes" 1>&6 | |
5152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5153 cat >> confdefs.h <<EOF | |
5154 #define $ac_tr_hdr 1 | |
5155 EOF | |
5156 | |
5157 else | |
5158 echo "$ac_t""no" 1>&6 | |
5159 fi | |
5160 done | |
5161 | |
5162 | |
5163 for ac_func in gettimeofday gethostname getdomainname dup2 \ | |
5164 rename closedir mkdir rmdir sysinfo \ | |
5165 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
5166 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5167 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ |
26708 | 5168 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm |
25897 | 5169 do |
5170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
27205 | 5171 echo "configure:5172: checking for $ac_func" >&5 |
25897 | 5172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5173 echo $ac_n "(cached) $ac_c" 1>&6 | |
5174 else | |
5175 cat > conftest.$ac_ext <<EOF | |
27205 | 5176 #line 5177 "configure" |
25897 | 5177 #include "confdefs.h" |
5178 /* System header to define __stub macros and hopefully few prototypes, | |
5179 which can conflict with char $ac_func(); below. */ | |
5180 #include <assert.h> | |
5181 /* Override any gcc2 internal prototype to avoid an error. */ | |
5182 /* We use char because int might match the return type of a gcc2 | |
5183 builtin and then its argument prototype would still apply. */ | |
5184 char $ac_func(); | |
5185 | |
5186 int main() { | |
5187 | |
5188 /* The GNU C library defines this for functions which it implements | |
5189 to always fail with ENOSYS. Some functions are actually named | |
5190 something starting with __ and the normal name is an alias. */ | |
5191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5192 choke me | |
5193 #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
|
5194 $ac_func(); |
25897 | 5195 #endif |
5196 | |
5197 ; return 0; } | |
5198 EOF | |
27205 | 5199 if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5200 rm -rf conftest* |
5201 eval "ac_cv_func_$ac_func=yes" | |
5202 else | |
5203 echo "configure: failed program was:" >&5 | |
5204 cat conftest.$ac_ext >&5 | |
5205 rm -rf conftest* | |
5206 eval "ac_cv_func_$ac_func=no" | |
5207 fi | |
5208 rm -f conftest* | |
5209 fi | |
5210 | |
5211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5212 echo "$ac_t""yes" 1>&6 | |
5213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5214 cat >> confdefs.h <<EOF | |
5215 #define $ac_tr_func 1 | |
5216 EOF | |
5217 | |
5218 else | |
5219 echo "$ac_t""no" 1>&6 | |
5220 fi | |
5221 done | |
5222 | |
5223 | |
5224 # Check this now, so that we will NOT find the above functions in ncurses. | |
5225 # That is because we have not set up to link ncurses in lib-src. | |
5226 # It's better to believe a function is not available | |
5227 # than to expect to find it in ncurses. | |
5228 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | |
27205 | 5229 echo "configure:5230: checking for tparm in -lncurses" >&5 |
25897 | 5230 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
5231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5232 echo $ac_n "(cached) $ac_c" 1>&6 | |
5233 else | |
5234 ac_save_LIBS="$LIBS" | |
5235 LIBS="-lncurses $LIBS" | |
5236 cat > conftest.$ac_ext <<EOF | |
27205 | 5237 #line 5238 "configure" |
25897 | 5238 #include "confdefs.h" |
5239 /* Override any gcc2 internal prototype to avoid an error. */ | |
5240 /* We use char because int might match the return type of a gcc2 | |
5241 builtin and then its argument prototype would still apply. */ | |
5242 char tparm(); | |
5243 | |
5244 int main() { | |
5245 tparm() | |
5246 ; return 0; } | |
5247 EOF | |
27205 | 5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5249 rm -rf conftest* |
5250 eval "ac_cv_lib_$ac_lib_var=yes" | |
5251 else | |
5252 echo "configure: failed program was:" >&5 | |
5253 cat conftest.$ac_ext >&5 | |
5254 rm -rf conftest* | |
5255 eval "ac_cv_lib_$ac_lib_var=no" | |
5256 fi | |
5257 rm -f conftest* | |
5258 LIBS="$ac_save_LIBS" | |
5259 | |
5260 fi | |
5261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5262 echo "$ac_t""yes" 1>&6 | |
5263 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5264 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5265 cat >> confdefs.h <<EOF | |
5266 #define $ac_tr_lib 1 | |
5267 EOF | |
5268 | |
5269 LIBS="-lncurses $LIBS" | |
5270 | |
5271 else | |
5272 echo "$ac_t""no" 1>&6 | |
5273 fi | |
5274 | |
5275 | |
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
|
5276 # 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
|
5277 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
|
5278 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
27205 | 5279 echo "configure:5280: 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
|
5280 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
|
5281 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
|
5282 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
|
5283 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
|
5284 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
|
5285 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
|
5286 cat > conftest.$ac_ext <<EOF |
27205 | 5287 #line 5288 "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
|
5288 #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
|
5289 /* 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
|
5290 /* 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
|
5291 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
|
5292 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
|
5293 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5294 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
|
5295 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
|
5296 ; 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
|
5297 EOF |
27205 | 5298 if { (eval echo configure:5299: \"$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
|
5299 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
|
5300 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
|
5301 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
|
5302 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
|
5303 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
|
5304 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
|
5305 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
|
5306 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
|
5307 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
|
5308 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
|
5309 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5310 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
|
5311 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
|
5312 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
|
5313 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
|
5314 -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
|
5315 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
|
5316 #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
|
5317 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
|
5318 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5319 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
|
5320 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5321 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
|
5322 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
|
5323 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
|
5324 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5325 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
27205 | 5326 echo "configure:5327: 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
|
5327 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
|
5328 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
|
5329 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
|
5330 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
|
5331 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
|
5332 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
|
5333 cat > conftest.$ac_ext <<EOF |
27205 | 5334 #line 5335 "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
|
5335 #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
|
5336 /* 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
|
5337 /* 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
|
5338 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
|
5339 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
|
5340 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5341 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
|
5342 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
|
5343 ; 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
|
5344 EOF |
27205 | 5345 if { (eval echo configure:5346: \"$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
|
5346 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
|
5347 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
|
5348 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
|
5349 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
|
5350 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
|
5351 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
|
5352 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
|
5353 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
|
5354 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
|
5355 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
|
5356 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5357 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
|
5358 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
|
5359 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
|
5360 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
|
5361 -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
|
5362 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
|
5363 #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
|
5364 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
|
5365 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5366 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
|
5367 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5368 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
|
5369 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
|
5370 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
|
5371 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5372 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
27205 | 5373 echo "configure:5374: 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
|
5374 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
|
5375 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
|
5376 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
|
5377 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
|
5378 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
|
5379 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
|
5380 cat > conftest.$ac_ext <<EOF |
27205 | 5381 #line 5382 "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
|
5382 #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
|
5383 /* 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
|
5384 /* 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
|
5385 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
|
5386 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
|
5387 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5388 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
|
5389 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
|
5390 ; 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
|
5391 EOF |
27205 | 5392 if { (eval echo configure:5393: \"$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
|
5393 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
|
5394 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
|
5395 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
|
5396 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
|
5397 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
|
5398 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
|
5399 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
|
5400 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
|
5401 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
|
5402 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
|
5403 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5404 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
|
5405 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
|
5406 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
|
5407 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
|
5408 -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
|
5409 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
|
5410 #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
|
5411 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
|
5412 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5413 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
|
5414 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5415 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
|
5416 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
|
5417 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
|
5418 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5419 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
27205 | 5420 echo "configure:5421: 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
|
5421 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
|
5422 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
|
5423 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
|
5424 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
|
5425 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
|
5426 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
|
5427 cat > conftest.$ac_ext <<EOF |
27205 | 5428 #line 5429 "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
|
5429 #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
|
5430 /* 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
|
5431 /* 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
|
5432 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
|
5433 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
|
5434 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5435 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
|
5436 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
|
5437 ; 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
|
5438 EOF |
27205 | 5439 if { (eval echo configure:5440: \"$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
|
5440 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
|
5441 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
|
5442 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
|
5443 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
|
5444 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
|
5445 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
|
5446 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
|
5447 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
|
5448 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
|
5449 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
|
5450 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5451 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
|
5452 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
|
5453 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
|
5454 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
|
5455 -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
|
5456 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
|
5457 #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
|
5458 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
|
5459 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5460 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
|
5461 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5462 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
|
5463 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
|
5464 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
|
5465 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5466 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
|
5467 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
27205 | 5468 echo "configure:5469: 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
|
5469 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
|
5470 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
|
5471 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
|
5472 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
|
5473 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
|
5474 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
|
5475 cat > conftest.$ac_ext <<EOF |
27205 | 5476 #line 5477 "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
|
5477 #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
|
5478 /* 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
|
5479 /* 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
|
5480 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
|
5481 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
|
5482 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5483 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
|
5484 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
|
5485 ; 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
|
5486 EOF |
27205 | 5487 if { (eval echo configure:5488: \"$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
|
5488 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
|
5489 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
|
5490 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
|
5491 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
|
5492 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
|
5493 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
|
5494 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
|
5495 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
|
5496 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
|
5497 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
|
5498 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5499 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
|
5500 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
|
5501 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
|
5502 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
|
5503 -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
|
5504 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
|
5505 #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
|
5506 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
|
5507 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5508 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
|
5509 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5510 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
|
5511 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
|
5512 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
27205 | 5513 echo "configure:5514: 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
|
5514 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
|
5515 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
|
5516 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
|
5517 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
|
5518 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
|
5519 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
|
5520 cat > conftest.$ac_ext <<EOF |
27205 | 5521 #line 5522 "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
|
5522 #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
|
5523 /* 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
|
5524 /* 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
|
5525 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
|
5526 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
|
5527 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5528 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
|
5529 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
|
5530 ; 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
|
5531 EOF |
27205 | 5532 if { (eval echo configure:5533: \"$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
|
5533 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
|
5534 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
|
5535 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
|
5536 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
|
5537 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
|
5538 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
|
5539 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
|
5540 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
|
5541 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
|
5542 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
|
5543 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5544 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
|
5545 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
|
5546 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
|
5547 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
|
5548 -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
|
5549 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
|
5550 #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
|
5551 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
|
5552 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5553 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
|
5554 |
b32d82817493
* 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 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
|
5556 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
|
5557 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
|
5558 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5559 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
|
5560 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5561 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
27205 | 5562 echo "configure:5563: 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
|
5563 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
|
5564 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
|
5565 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
|
5566 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
|
5567 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
|
5568 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
|
5569 cat > conftest.$ac_ext <<EOF |
27205 | 5570 #line 5571 "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
|
5571 #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
|
5572 /* 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
|
5573 /* 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
|
5574 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
|
5575 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
|
5576 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5577 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
|
5578 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
|
5579 ; 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
|
5580 EOF |
27205 | 5581 if { (eval echo configure:5582: \"$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
|
5582 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
|
5583 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
|
5584 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
|
5585 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
|
5586 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
|
5587 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
|
5588 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
|
5589 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
|
5590 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
|
5591 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
|
5592 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5593 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
|
5594 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
|
5595 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
|
5596 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
|
5597 -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
|
5598 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
|
5599 #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
|
5600 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
|
5601 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5602 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
|
5603 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5604 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
|
5605 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
|
5606 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
27205 | 5607 echo "configure:5608: 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
|
5608 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
|
5609 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
|
5610 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
|
5611 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
|
5612 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
|
5613 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
|
5614 cat > conftest.$ac_ext <<EOF |
27205 | 5615 #line 5616 "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
|
5616 #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
|
5617 /* 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
|
5618 /* 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
|
5619 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
|
5620 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
|
5621 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5622 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
|
5623 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
|
5624 ; 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
|
5625 EOF |
27205 | 5626 if { (eval echo configure:5627: \"$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
|
5627 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
|
5628 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
|
5629 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
|
5630 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
|
5631 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
|
5632 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
|
5633 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
|
5634 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
|
5635 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
|
5636 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
|
5637 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5638 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
|
5639 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
|
5640 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
|
5641 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
|
5642 -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
|
5643 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
|
5644 #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
|
5645 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
|
5646 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5647 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
|
5648 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5649 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
|
5650 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
|
5651 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
|
5652 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5653 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
|
5654 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5655 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
|
5656 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5657 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
|
5658 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
|
5659 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
|
5660 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
|
5661 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27205 | 5662 echo "configure:5663: 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
|
5663 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
|
5664 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
|
5665 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
|
5666 cat > conftest.$ac_ext <<EOF |
27205 | 5667 #line 5668 "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
|
5668 #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
|
5669 #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
|
5670 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
|
5671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27205 | 5672 { (eval echo configure:5673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5673 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
|
5674 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
|
5675 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
|
5676 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
|
5677 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
|
5678 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
|
5679 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
|
5680 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
|
5681 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
|
5682 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
|
5683 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
|
5684 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
|
5685 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
|
5686 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
|
5687 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
|
5688 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
|
5689 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
|
5690 #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
|
5691 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
|
5692 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5693 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
|
5694 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
|
5695 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
|
5696 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
|
5697 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5698 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
|
5699 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
|
5700 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
|
5701 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
|
5702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27205 | 5703 echo "configure:5704: 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
|
5704 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
|
5705 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
|
5706 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
|
5707 cat > conftest.$ac_ext <<EOF |
27205 | 5708 #line 5709 "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
|
5709 #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
|
5710 #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
|
5711 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
|
5712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27205 | 5713 { (eval echo configure:5714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5714 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
|
5715 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
|
5716 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
|
5717 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
|
5718 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
|
5719 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
|
5720 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
|
5721 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
|
5722 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
|
5723 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
|
5724 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
|
5725 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
|
5726 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
|
5727 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
|
5728 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
|
5729 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
|
5730 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
|
5731 #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
|
5732 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
|
5733 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5734 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
|
5735 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
|
5736 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
|
5737 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
|
5738 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
|
5739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27205 | 5740 echo "configure:5741: 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
|
5741 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
|
5742 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
|
5743 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
|
5744 cat > conftest.$ac_ext <<EOF |
27205 | 5745 #line 5746 "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
|
5746 #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
|
5747 #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
|
5748 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
|
5749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27205 | 5750 { (eval echo configure:5751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5751 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
|
5752 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
|
5753 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
|
5754 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
|
5755 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
|
5756 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
|
5757 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
|
5758 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
|
5759 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
|
5760 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
|
5761 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
|
5762 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
|
5763 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
|
5764 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
|
5765 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
|
5766 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
|
5767 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
|
5768 #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
|
5769 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
|
5770 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5771 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
|
5772 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
|
5773 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
|
5774 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
|
5775 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
|
5776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27205 | 5777 echo "configure:5778: 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
|
5778 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
|
5779 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
|
5780 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
|
5781 cat > conftest.$ac_ext <<EOF |
27205 | 5782 #line 5783 "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
|
5783 #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
|
5784 #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
|
5785 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
|
5786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27205 | 5787 { (eval echo configure:5788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5788 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
|
5789 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
|
5790 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
|
5791 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
|
5792 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
|
5793 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
|
5794 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
|
5795 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
|
5796 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
|
5797 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
|
5798 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
|
5799 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
|
5800 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
|
5801 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
|
5802 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
|
5803 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
|
5804 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
|
5805 #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
|
5806 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
|
5807 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5808 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
|
5809 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
|
5810 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
|
5811 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
|
5812 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5813 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
|
5814 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
|
5815 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5816 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
|
5817 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
|
5818 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5819 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
|
5820 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
|
5821 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
|
5822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27205 | 5823 echo "configure:5824: 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
|
5824 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
|
5825 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
|
5826 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
|
5827 cat > conftest.$ac_ext <<EOF |
27205 | 5828 #line 5829 "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
|
5829 #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
|
5830 #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
|
5831 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
|
5832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27205 | 5833 { (eval echo configure:5834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5834 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
|
5835 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
|
5836 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
|
5837 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
|
5838 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
|
5839 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
|
5840 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
|
5841 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
|
5842 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
|
5843 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
|
5844 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
|
5845 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
|
5846 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
|
5847 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
|
5848 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
|
5849 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
|
5850 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
|
5851 #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
|
5852 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
|
5853 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5854 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
|
5855 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
|
5856 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
|
5857 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
|
5858 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
|
5859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27205 | 5860 echo "configure:5861: 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
|
5861 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
|
5862 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
|
5863 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
|
5864 cat > conftest.$ac_ext <<EOF |
27205 | 5865 #line 5866 "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
|
5866 #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
|
5867 #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
|
5868 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
|
5869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27205 | 5870 { (eval echo configure:5871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5871 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
|
5872 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
|
5873 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
|
5874 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
|
5875 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
|
5876 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
|
5877 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
|
5878 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
|
5879 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
|
5880 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
|
5881 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
|
5882 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
|
5883 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
|
5884 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
|
5885 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
|
5886 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
|
5887 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
|
5888 #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
|
5889 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
|
5890 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5891 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
|
5892 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
|
5893 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
|
5894 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
|
5895 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
|
5896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27205 | 5897 echo "configure:5898: 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
|
5898 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
|
5899 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
|
5900 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
|
5901 cat > conftest.$ac_ext <<EOF |
27205 | 5902 #line 5903 "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
|
5903 #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
|
5904 #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
|
5905 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
|
5906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27205 | 5907 { (eval echo configure:5908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5908 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
|
5909 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
|
5910 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
|
5911 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
|
5912 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
|
5913 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
|
5914 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
|
5915 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
|
5916 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
|
5917 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
|
5918 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
|
5919 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
|
5920 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
|
5921 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
|
5922 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
|
5923 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
|
5924 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
|
5925 #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
|
5926 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
|
5927 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5928 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
|
5929 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
|
5930 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
|
5931 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
|
5932 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5933 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
|
5934 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
|
5935 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5936 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
|
5937 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
|
5938 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5939 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
|
5940 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
|
5941 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
|
5942 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
|
5943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27205 | 5944 echo "configure:5945: 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
|
5945 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
|
5946 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
|
5947 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
|
5948 cat > conftest.$ac_ext <<EOF |
27205 | 5949 #line 5950 "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
|
5950 #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
|
5951 #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
|
5952 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
|
5953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27205 | 5954 { (eval echo configure:5955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5955 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
|
5956 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
|
5957 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
|
5958 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
|
5959 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
|
5960 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
|
5961 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
|
5962 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
|
5963 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
|
5964 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
|
5965 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
|
5966 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
|
5967 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
|
5968 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
|
5969 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
|
5970 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
|
5971 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
|
5972 #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
|
5973 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
|
5974 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5975 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
|
5976 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
|
5977 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
|
5978 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
|
5979 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5980 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
|
5981 |
25897 | 5982 # Solaris requires -lintl if you want strerror (which calls dgettext) |
5983 # to return localized messages. | |
5984 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | |
27205 | 5985 echo "configure:5986: checking for dgettext in -lintl" >&5 |
25897 | 5986 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
5987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5988 echo $ac_n "(cached) $ac_c" 1>&6 | |
5989 else | |
5990 ac_save_LIBS="$LIBS" | |
5991 LIBS="-lintl $LIBS" | |
5992 cat > conftest.$ac_ext <<EOF | |
27205 | 5993 #line 5994 "configure" |
25897 | 5994 #include "confdefs.h" |
5995 /* Override any gcc2 internal prototype to avoid an error. */ | |
5996 /* We use char because int might match the return type of a gcc2 | |
5997 builtin and then its argument prototype would still apply. */ | |
5998 char dgettext(); | |
5999 | |
6000 int main() { | |
6001 dgettext() | |
6002 ; return 0; } | |
6003 EOF | |
27205 | 6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 6005 rm -rf conftest* |
6006 eval "ac_cv_lib_$ac_lib_var=yes" | |
6007 else | |
6008 echo "configure: failed program was:" >&5 | |
6009 cat conftest.$ac_ext >&5 | |
6010 rm -rf conftest* | |
6011 eval "ac_cv_lib_$ac_lib_var=no" | |
6012 fi | |
6013 rm -f conftest* | |
6014 LIBS="$ac_save_LIBS" | |
6015 | |
6016 fi | |
6017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6018 echo "$ac_t""yes" 1>&6 | |
6019 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6021 cat >> confdefs.h <<EOF | |
6022 #define $ac_tr_lib 1 | |
6023 EOF | |
6024 | |
6025 LIBS="-lintl $LIBS" | |
6026 | |
6027 else | |
6028 echo "$ac_t""no" 1>&6 | |
6029 fi | |
6030 | |
6031 | |
6032 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | |
27205 | 6033 echo "configure:6034: checking whether localtime caches TZ" >&5 |
25897 | 6034 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
6035 echo $ac_n "(cached) $ac_c" 1>&6 | |
6036 else | |
6037 if test x$ac_cv_func_tzset = xyes; then | |
6038 if test "$cross_compiling" = yes; then | |
6039 # If we have tzset, assume the worst when cross-compiling. | |
6040 emacs_cv_localtime_cache=yes | |
6041 else | |
6042 cat > conftest.$ac_ext <<EOF | |
27205 | 6043 #line 6044 "configure" |
25897 | 6044 #include "confdefs.h" |
6045 #include <time.h> | |
6046 extern char **environ; | |
6047 unset_TZ () | |
6048 { | |
6049 char **from, **to; | |
6050 for (to = from = environ; (*to = *from); from++) | |
6051 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
6052 to++; | |
6053 } | |
6054 char TZ_GMT0[] = "TZ=GMT0"; | |
6055 char TZ_PST8[] = "TZ=PST8"; | |
6056 main() | |
6057 { | |
6058 time_t now = time ((time_t *) 0); | |
6059 int hour_GMT0, hour_unset; | |
6060 if (putenv (TZ_GMT0) != 0) | |
6061 exit (1); | |
6062 hour_GMT0 = localtime (&now)->tm_hour; | |
6063 unset_TZ (); | |
6064 hour_unset = localtime (&now)->tm_hour; | |
6065 if (putenv (TZ_PST8) != 0) | |
6066 exit (1); | |
6067 if (localtime (&now)->tm_hour == hour_GMT0) | |
6068 exit (1); | |
6069 unset_TZ (); | |
6070 if (localtime (&now)->tm_hour != hour_unset) | |
6071 exit (1); | |
6072 exit (0); | |
6073 } | |
6074 EOF | |
27205 | 6075 if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 6076 then |
6077 emacs_cv_localtime_cache=no | |
6078 else | |
6079 echo "configure: failed program was:" >&5 | |
6080 cat conftest.$ac_ext >&5 | |
6081 rm -fr conftest* | |
6082 emacs_cv_localtime_cache=yes | |
6083 fi | |
6084 rm -fr conftest* | |
6085 fi | |
6086 | |
6087 else | |
6088 # If we lack tzset, report that localtime does not cache TZ, | |
6089 # since we can't invalidate the cache if we don't have tzset. | |
6090 emacs_cv_localtime_cache=no | |
6091 fi | |
6092 fi | |
6093 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6 | |
6094 if test $emacs_cv_localtime_cache = yes; then | |
6095 cat >> confdefs.h <<\EOF | |
6096 #define LOCALTIME_CACHE 1 | |
6097 EOF | |
6098 | |
6099 fi | |
6100 | |
6101 if test "x$HAVE_TIMEVAL" = xyes; then | |
6102 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | |
27205 | 6103 echo "configure:6104: checking whether gettimeofday can accept two arguments" >&5 |
25897 | 6104 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
6105 echo $ac_n "(cached) $ac_c" 1>&6 | |
6106 else | |
6107 cat > conftest.$ac_ext <<EOF | |
27205 | 6108 #line 6109 "configure" |
25897 | 6109 #include "confdefs.h" |
6110 | |
6111 #ifdef TIME_WITH_SYS_TIME | |
6112 #include <sys/time.h> | |
6113 #include <time.h> | |
6114 #else | |
6115 #ifdef HAVE_SYS_TIME_H | |
6116 #include <sys/time.h> | |
6117 #else | |
6118 #include <time.h> | |
6119 #endif | |
6120 #endif | |
6121 | |
6122 int main() { | |
6123 | |
6124 struct timeval time; | |
6125 struct timezone dummy; | |
6126 gettimeofday (&time, &dummy); | |
6127 | |
6128 ; return 0; } | |
6129 EOF | |
27205 | 6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 6131 rm -rf conftest* |
6132 emacs_cv_gettimeofday_two_arguments=yes | |
6133 else | |
6134 echo "configure: failed program was:" >&5 | |
6135 cat conftest.$ac_ext >&5 | |
6136 rm -rf conftest* | |
6137 emacs_cv_gettimeofday_two_arguments=no | |
6138 fi | |
6139 rm -f conftest* | |
6140 fi | |
6141 | |
6142 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 | |
6143 if test $emacs_cv_gettimeofday_two_arguments = no; then | |
6144 cat >> confdefs.h <<\EOF | |
6145 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
6146 EOF | |
6147 | |
6148 fi | |
6149 fi | |
6150 | |
6151 ok_so_far=yes | |
6152 echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
27205 | 6153 echo "configure:6154: checking for socket" >&5 |
25897 | 6154 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
6155 echo $ac_n "(cached) $ac_c" 1>&6 | |
6156 else | |
6157 cat > conftest.$ac_ext <<EOF | |
27205 | 6158 #line 6159 "configure" |
25897 | 6159 #include "confdefs.h" |
6160 /* System header to define __stub macros and hopefully few prototypes, | |
6161 which can conflict with char socket(); below. */ | |
6162 #include <assert.h> | |
6163 /* Override any gcc2 internal prototype to avoid an error. */ | |
6164 /* We use char because int might match the return type of a gcc2 | |
6165 builtin and then its argument prototype would still apply. */ | |
6166 char socket(); | |
6167 | |
6168 int main() { | |
6169 | |
6170 /* The GNU C library defines this for functions which it implements | |
6171 to always fail with ENOSYS. Some functions are actually named | |
6172 something starting with __ and the normal name is an alias. */ | |
6173 #if defined (__stub_socket) || defined (__stub___socket) | |
6174 choke me | |
6175 #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
|
6176 socket(); |
25897 | 6177 #endif |
6178 | |
6179 ; return 0; } | |
6180 EOF | |
27205 | 6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 6182 rm -rf conftest* |
6183 eval "ac_cv_func_socket=yes" | |
6184 else | |
6185 echo "configure: failed program was:" >&5 | |
6186 cat conftest.$ac_ext >&5 | |
6187 rm -rf conftest* | |
6188 eval "ac_cv_func_socket=no" | |
6189 fi | |
6190 rm -f conftest* | |
6191 fi | |
6192 | |
6193 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
6194 echo "$ac_t""yes" 1>&6 | |
6195 : | |
6196 else | |
6197 echo "$ac_t""no" 1>&6 | |
6198 ok_so_far=no | |
6199 fi | |
6200 | |
6201 if test $ok_so_far = yes; then | |
6202 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | |
6203 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | |
27205 | 6204 echo "configure:6205: checking for netinet/in.h" >&5 |
25897 | 6205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6206 echo $ac_n "(cached) $ac_c" 1>&6 | |
6207 else | |
6208 cat > conftest.$ac_ext <<EOF | |
27205 | 6209 #line 6210 "configure" |
25897 | 6210 #include "confdefs.h" |
6211 #include <netinet/in.h> | |
6212 EOF | |
6213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 6214 { (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 6216 if test -z "$ac_err"; then |
6217 rm -rf conftest* | |
6218 eval "ac_cv_header_$ac_safe=yes" | |
6219 else | |
6220 echo "$ac_err" >&5 | |
6221 echo "configure: failed program was:" >&5 | |
6222 cat conftest.$ac_ext >&5 | |
6223 rm -rf conftest* | |
6224 eval "ac_cv_header_$ac_safe=no" | |
6225 fi | |
6226 rm -f conftest* | |
6227 fi | |
6228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6229 echo "$ac_t""yes" 1>&6 | |
6230 : | |
6231 else | |
6232 echo "$ac_t""no" 1>&6 | |
6233 ok_so_far=no | |
6234 fi | |
6235 | |
6236 fi | |
6237 if test $ok_so_far = yes; then | |
6238 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | |
6239 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | |
27205 | 6240 echo "configure:6241: checking for arpa/inet.h" >&5 |
25897 | 6241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6242 echo $ac_n "(cached) $ac_c" 1>&6 | |
6243 else | |
6244 cat > conftest.$ac_ext <<EOF | |
27205 | 6245 #line 6246 "configure" |
25897 | 6246 #include "confdefs.h" |
6247 #include <arpa/inet.h> | |
6248 EOF | |
6249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27205 | 6250 { (eval echo configure:6251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
25897 | 6252 if test -z "$ac_err"; then |
6253 rm -rf conftest* | |
6254 eval "ac_cv_header_$ac_safe=yes" | |
6255 else | |
6256 echo "$ac_err" >&5 | |
6257 echo "configure: failed program was:" >&5 | |
6258 cat conftest.$ac_ext >&5 | |
6259 rm -rf conftest* | |
6260 eval "ac_cv_header_$ac_safe=no" | |
6261 fi | |
6262 rm -f conftest* | |
6263 fi | |
6264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6265 echo "$ac_t""yes" 1>&6 | |
6266 : | |
6267 else | |
6268 echo "$ac_t""no" 1>&6 | |
6269 ok_so_far=no | |
6270 fi | |
6271 | |
6272 fi | |
6273 if test $ok_so_far = yes; then | |
6274 cat >> confdefs.h <<\EOF | |
6275 #define HAVE_INET_SOCKETS 1 | |
6276 EOF | |
6277 | |
6278 fi | |
6279 | |
6280 if test -f /usr/lpp/X11/bin/smt.exp; then | |
6281 cat >> confdefs.h <<\EOF | |
6282 #define HAVE_AIX_SMT_EXP 1 | |
6283 EOF | |
6284 | |
6285 fi | |
6286 | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6287 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
27205 | 6288 echo "configure:6289: checking whether system supports dynamic ptys" >&5 |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6289 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
|
6290 echo "$ac_t""yes" 1>&6 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6291 cat >> confdefs.h <<\EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6292 #define HAVE_DEV_PTMX 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6293 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6294 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6295 else |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6296 echo "$ac_t""no" 1>&6 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6297 fi |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6298 |
27205 | 6299 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
6300 echo "configure:6301: checking for pid_t" >&5 | |
6301 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
6302 echo $ac_n "(cached) $ac_c" 1>&6 | |
6303 else | |
6304 cat > conftest.$ac_ext <<EOF | |
6305 #line 6306 "configure" | |
6306 #include "confdefs.h" | |
6307 #include <sys/types.h> | |
6308 #if STDC_HEADERS | |
6309 #include <stdlib.h> | |
6310 #include <stddef.h> | |
6311 #endif | |
6312 EOF | |
6313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6314 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
6315 rm -rf conftest* | |
6316 ac_cv_type_pid_t=yes | |
6317 else | |
6318 rm -rf conftest* | |
6319 ac_cv_type_pid_t=no | |
6320 fi | |
6321 rm -f conftest* | |
6322 | |
6323 fi | |
6324 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
6325 if test $ac_cv_type_pid_t = no; then | |
6326 cat >> confdefs.h <<\EOF | |
6327 #define pid_t int | |
6328 EOF | |
6329 | |
6330 fi | |
6331 | |
6332 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
6333 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
6334 echo "configure:6335: checking for vfork.h" >&5 | |
6335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6336 echo $ac_n "(cached) $ac_c" 1>&6 | |
6337 else | |
6338 cat > conftest.$ac_ext <<EOF | |
6339 #line 6340 "configure" | |
6340 #include "confdefs.h" | |
6341 #include <vfork.h> | |
6342 EOF | |
6343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6344 { (eval echo configure:6345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6346 if test -z "$ac_err"; then | |
6347 rm -rf conftest* | |
6348 eval "ac_cv_header_$ac_safe=yes" | |
6349 else | |
6350 echo "$ac_err" >&5 | |
6351 echo "configure: failed program was:" >&5 | |
6352 cat conftest.$ac_ext >&5 | |
6353 rm -rf conftest* | |
6354 eval "ac_cv_header_$ac_safe=no" | |
6355 fi | |
6356 rm -f conftest* | |
6357 fi | |
6358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6359 echo "$ac_t""yes" 1>&6 | |
6360 cat >> confdefs.h <<\EOF | |
6361 #define HAVE_VFORK_H 1 | |
6362 EOF | |
6363 | |
6364 else | |
6365 echo "$ac_t""no" 1>&6 | |
6366 fi | |
6367 | |
6368 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
6369 echo "configure:6370: checking for working vfork" >&5 | |
6370 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | |
6371 echo $ac_n "(cached) $ac_c" 1>&6 | |
6372 else | |
6373 if test "$cross_compiling" = yes; then | |
6374 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
6375 echo "configure:6376: checking for vfork" >&5 | |
6376 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | |
6377 echo $ac_n "(cached) $ac_c" 1>&6 | |
6378 else | |
6379 cat > conftest.$ac_ext <<EOF | |
6380 #line 6381 "configure" | |
6381 #include "confdefs.h" | |
6382 /* System header to define __stub macros and hopefully few prototypes, | |
6383 which can conflict with char vfork(); below. */ | |
6384 #include <assert.h> | |
6385 /* Override any gcc2 internal prototype to avoid an error. */ | |
6386 /* We use char because int might match the return type of a gcc2 | |
6387 builtin and then its argument prototype would still apply. */ | |
6388 char vfork(); | |
6389 | |
6390 int main() { | |
6391 | |
6392 /* The GNU C library defines this for functions which it implements | |
6393 to always fail with ENOSYS. Some functions are actually named | |
6394 something starting with __ and the normal name is an alias. */ | |
6395 #if defined (__stub_vfork) || defined (__stub___vfork) | |
6396 choke me | |
6397 #else | |
6398 vfork(); | |
6399 #endif | |
6400 | |
6401 ; return 0; } | |
6402 EOF | |
6403 if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6404 rm -rf conftest* | |
6405 eval "ac_cv_func_vfork=yes" | |
6406 else | |
6407 echo "configure: failed program was:" >&5 | |
6408 cat conftest.$ac_ext >&5 | |
6409 rm -rf conftest* | |
6410 eval "ac_cv_func_vfork=no" | |
6411 fi | |
6412 rm -f conftest* | |
6413 fi | |
6414 | |
6415 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
6416 echo "$ac_t""yes" 1>&6 | |
6417 : | |
6418 else | |
6419 echo "$ac_t""no" 1>&6 | |
6420 fi | |
6421 | |
6422 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6423 else | |
6424 cat > conftest.$ac_ext <<EOF | |
6425 #line 6426 "configure" | |
6426 #include "confdefs.h" | |
6427 /* Thanks to Paul Eggert for this test. */ | |
6428 #include <stdio.h> | |
6429 #include <sys/types.h> | |
6430 #include <sys/stat.h> | |
6431 #ifdef HAVE_UNISTD_H | |
6432 #include <unistd.h> | |
6433 #endif | |
6434 #ifdef HAVE_VFORK_H | |
6435 #include <vfork.h> | |
6436 #endif | |
6437 /* On some sparc systems, changes by the child to local and incoming | |
6438 argument registers are propagated back to the parent. | |
6439 The compiler is told about this with #include <vfork.h>, | |
6440 but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
6441 Test for this by using a static variable whose address | |
6442 is put into a register that is clobbered by the vfork. */ | |
6443 static | |
6444 #ifdef __cplusplus | |
6445 sparc_address_test (int arg) | |
6446 #else | |
6447 sparc_address_test (arg) int arg; | |
6448 #endif | |
6449 { | |
6450 static pid_t child; | |
6451 if (!child) { | |
6452 child = vfork (); | |
6453 if (child < 0) { | |
6454 perror ("vfork"); | |
6455 _exit(2); | |
6456 } | |
6457 if (!child) { | |
6458 arg = getpid(); | |
6459 write(-1, "", 0); | |
6460 _exit (arg); | |
6461 } | |
6462 } | |
6463 } | |
6464 main() { | |
6465 pid_t parent = getpid (); | |
6466 pid_t child; | |
6467 | |
6468 sparc_address_test (); | |
6469 | |
6470 child = vfork (); | |
6471 | |
6472 if (child == 0) { | |
6473 /* Here is another test for sparc vfork register problems. | |
6474 This test uses lots of local variables, at least | |
6475 as many local variables as main has allocated so far | |
6476 including compiler temporaries. 4 locals are enough for | |
6477 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
6478 A buggy compiler should reuse the register of parent | |
6479 for one of the local variables, since it will think that | |
6480 parent can't possibly be used any more in this routine. | |
6481 Assigning to the local variable will thus munge parent | |
6482 in the parent process. */ | |
6483 pid_t | |
6484 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6485 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6486 /* Convince the compiler that p..p7 are live; otherwise, it might | |
6487 use the same hardware register for all 8 local variables. */ | |
6488 if (p != p1 || p != p2 || p != p3 || p != p4 | |
6489 || p != p5 || p != p6 || p != p7) | |
6490 _exit(1); | |
6491 | |
6492 /* On some systems (e.g. IRIX 3.3), | |
6493 vfork doesn't separate parent from child file descriptors. | |
6494 If the child closes a descriptor before it execs or exits, | |
6495 this munges the parent's descriptor as well. | |
6496 Test for this by closing stdout in the child. */ | |
6497 _exit(close(fileno(stdout)) != 0); | |
6498 } else { | |
6499 int status; | |
6500 struct stat st; | |
6501 | |
6502 while (wait(&status) != child) | |
6503 ; | |
6504 exit( | |
6505 /* Was there some problem with vforking? */ | |
6506 child < 0 | |
6507 | |
6508 /* Did the child fail? (This shouldn't happen.) */ | |
6509 || status | |
6510 | |
6511 /* Did the vfork/compiler bug occur? */ | |
6512 || parent != getpid() | |
6513 | |
6514 /* Did the file descriptor bug occur? */ | |
6515 || fstat(fileno(stdout), &st) != 0 | |
6516 ); | |
6517 } | |
6518 } | |
6519 EOF | |
6520 if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
6521 then | |
6522 ac_cv_func_vfork_works=yes | |
6523 else | |
6524 echo "configure: failed program was:" >&5 | |
6525 cat conftest.$ac_ext >&5 | |
6526 rm -fr conftest* | |
6527 ac_cv_func_vfork_works=no | |
6528 fi | |
6529 rm -fr conftest* | |
6530 fi | |
6531 | |
6532 fi | |
6533 | |
6534 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
6535 if test $ac_cv_func_vfork_works = no; then | |
6536 cat >> confdefs.h <<\EOF | |
6537 #define vfork fork | |
6538 EOF | |
6539 | |
6540 fi | |
6541 | |
6542 | |
25897 | 6543 # Set up the CFLAGS for real compilation, so we can substitute it. |
6544 CFLAGS="$REAL_CFLAGS" | |
6545 | |
6546 #### Find out which version of Emacs this is. | |
6547 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
6548 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
6549 if test x"${version}" = x; then | |
6550 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; } | |
6551 fi | |
6552 | |
6553 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
6554 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
6555 | |
6556 | |
6557 | |
6558 | |
6559 | |
6560 | |
6561 | |
6562 | |
6563 | |
6564 | |
6565 | |
6566 | |
6567 | |
6568 | |
6569 | |
6570 | |
6571 | |
6572 | |
6573 | |
6574 | |
6575 | |
6576 | |
6577 | |
6578 | |
6579 | |
6580 | |
6581 | |
6582 | |
6583 | |
6584 | |
6585 | |
6586 cat >> confdefs.h <<EOF | |
6587 #define EMACS_CONFIGURATION "${canonical}" | |
6588 EOF | |
6589 | |
6590 cat >> confdefs.h <<EOF | |
6591 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
6592 EOF | |
6593 | |
6594 cat >> confdefs.h <<EOF | |
6595 #define config_machfile "${machfile}" | |
6596 EOF | |
6597 | |
6598 cat >> confdefs.h <<EOF | |
6599 #define config_opsysfile "${opsysfile}" | |
6600 EOF | |
6601 | |
6602 cat >> confdefs.h <<EOF | |
6603 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
6604 EOF | |
6605 | |
6606 cat >> confdefs.h <<EOF | |
6607 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
6608 EOF | |
6609 | |
6610 cat >> confdefs.h <<EOF | |
6611 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
6612 EOF | |
6613 | |
6614 cat >> confdefs.h <<EOF | |
6615 #define UNEXEC_SRC ${UNEXEC_SRC} | |
6616 EOF | |
6617 | |
6618 | |
6619 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
6620 cat >> confdefs.h <<\EOF | |
6621 #define HAVE_X_WINDOWS 1 | |
6622 EOF | |
6623 | |
6624 fi | |
6625 if test "${USE_X_TOOLKIT}" != "none" ; then | |
6626 cat >> confdefs.h <<\EOF | |
6627 #define USE_X_TOOLKIT 1 | |
6628 EOF | |
6629 | |
6630 fi | |
6631 if test "${HAVE_X11}" = "yes" ; then | |
6632 cat >> confdefs.h <<\EOF | |
6633 #define HAVE_X11 1 | |
6634 EOF | |
6635 | |
6636 fi | |
6637 if test "${HAVE_XFREE386}" = "yes" ; then | |
6638 cat >> confdefs.h <<\EOF | |
6639 #define HAVE_XFREE386 1 | |
6640 EOF | |
6641 | |
6642 fi | |
6643 if test "${HAVE_MENUS}" = "yes" ; then | |
6644 cat >> confdefs.h <<\EOF | |
6645 #define HAVE_MENUS 1 | |
6646 EOF | |
6647 | |
6648 fi | |
6649 if test "${GNU_MALLOC}" = "yes" ; then | |
6650 cat >> confdefs.h <<\EOF | |
6651 #define GNU_MALLOC 1 | |
6652 EOF | |
6653 | |
6654 fi | |
6655 if test "${REL_ALLOC}" = "yes" ; then | |
6656 cat >> confdefs.h <<\EOF | |
6657 #define REL_ALLOC 1 | |
6658 EOF | |
6659 | |
6660 fi | |
6661 if test "${LISP_FLOAT_TYPE}" = "yes" ; then | |
6662 cat >> confdefs.h <<\EOF | |
6663 #define LISP_FLOAT_TYPE 1 | |
6664 EOF | |
6665 | |
6666 fi | |
6667 | |
6668 #### Report on what we decided to do. | |
6669 echo " | |
6670 Configured for \`${canonical}'. | |
6671 | |
6672 Where should the build process find the source code? ${srcdir} | |
6673 What operating system and machine description files should Emacs use? | |
6674 \`${opsysfile}' and \`${machfile}' | |
6675 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
6676 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
6677 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} | |
6678 What window system should Emacs use? ${window_system} | |
6679 What toolkit should Emacs use? ${USE_X_TOOLKIT}" | |
6680 | |
6681 if test -n "${x_includes}"; then | |
6682 echo " Where do we find X Windows header files? ${x_includes}" | |
6683 else | |
6684 echo " Where do we find X Windows header files? Standard dirs" | |
6685 fi | |
6686 if test -n "${x_libraries}"; then | |
6687 echo " Where do we find X Windows libraries? ${x_libraries}" | |
6688 else | |
6689 echo " Where do we find X Windows libraries? Standard dirs" | |
6690 fi | |
6691 | |
6692 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
6693 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
6694 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
6695 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
6696 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
6697 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
6698 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
6699 echo | |
6700 | |
6701 # Remove any trailing slashes in these variables. | |
6702 test "${prefix}" != NONE && | |
6703 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
6704 test "${exec_prefix}" != NONE && | |
6705 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
6706 | |
6707 trap '' 1 2 15 | |
6708 cat > confcache <<\EOF | |
6709 # This file is a shell script that caches the results of configure | |
6710 # tests run on this system so they can be shared between configure | |
6711 # scripts and configure runs. It is not useful on other systems. | |
6712 # If it contains results you don't want to keep, you may remove or edit it. | |
6713 # | |
6714 # By default, configure uses ./config.cache as the cache file, | |
6715 # creating it if it does not exist already. You can give configure | |
6716 # the --cache-file=FILE option to use a different cache file; that is | |
6717 # what configure does when it calls configure scripts in | |
6718 # subdirectories, so they share the cache. | |
6719 # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6720 # config.status only pays attention to the cache file if you give it the | |
6721 # --recheck option to rerun configure. | |
6722 # | |
6723 EOF | |
6724 # The following way of writing the cache mishandles newlines in values, | |
6725 # but we know of no workaround that is simple, portable, and efficient. | |
6726 # So, don't put newlines in cache variables' values. | |
6727 # Ultrix sh set writes to stderr and can't be redirected directly, | |
6728 # and sets the high bit in the cache file unless we assign to the vars. | |
6729 (set) 2>&1 | | |
6730 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6731 *ac_space=\ *) | |
6732 # `set' does not quote correctly, so add quotes (double-quote substitution | |
6733 # turns \\\\ into \\, and sed turns \\ into \). | |
6734 sed -n \ | |
6735 -e "s/'/'\\\\''/g" \ | |
6736 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6737 ;; | |
6738 *) | |
6739 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6740 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6741 ;; | |
6742 esac >> confcache | |
6743 if cmp -s $cache_file confcache; then | |
6744 : | |
6745 else | |
6746 if test -w $cache_file; then | |
6747 echo "updating cache $cache_file" | |
6748 cat confcache > $cache_file | |
6749 else | |
6750 echo "not updating unwritable cache $cache_file" | |
6751 fi | |
6752 fi | |
6753 rm -f confcache | |
6754 | |
6755 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
6756 | |
6757 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6758 # Let make expand exec_prefix. | |
6759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6760 | |
6761 # Any assignment to VPATH causes Sun make to only execute | |
6762 # the first set of double-colon rules, so remove it if not needed. | |
6763 # If there is a colon in the path, we need to keep it. | |
6764 if test "x$srcdir" = x.; then | |
6765 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
6766 fi | |
6767 | |
6768 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
6769 | |
6770 DEFS=-DHAVE_CONFIG_H | |
6771 | |
6772 # Without the "./", some shells look in PATH for config.status. | |
6773 : ${CONFIG_STATUS=./config.status} | |
6774 | |
6775 echo creating $CONFIG_STATUS | |
6776 rm -f $CONFIG_STATUS | |
6777 cat > $CONFIG_STATUS <<EOF | |
6778 #! /bin/sh | |
6779 # Generated automatically by configure. | |
6780 # Run this file to recreate the current configuration. | |
6781 # This directory was configured as follows, | |
6782 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
6783 # | |
6784 # $0 $ac_configure_args | |
6785 # | |
6786 # Compiler output produced by configure, useful for debugging | |
6787 # configure, is in ./config.log if it exists. | |
6788 | |
6789 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
6790 for ac_option | |
6791 do | |
6792 case "\$ac_option" in | |
6793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6794 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
6795 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
6796 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
27205 | 6797 echo "$CONFIG_STATUS generated by autoconf version 2.13" |
25897 | 6798 exit 0 ;; |
6799 -help | --help | --hel | --he | --h) | |
6800 echo "\$ac_cs_usage"; exit 0 ;; | |
6801 *) echo "\$ac_cs_usage"; exit 1 ;; | |
6802 esac | |
6803 done | |
6804 | |
6805 ac_given_srcdir=$srcdir | |
6806 ac_given_INSTALL="$INSTALL" | |
6807 | |
6808 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
6809 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
6810 leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
6811 EOF | |
6812 cat >> $CONFIG_STATUS <<EOF | |
6813 | |
6814 # Protect against being on the right side of a sed subst in config.status. | |
6815 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
6816 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
6817 $ac_vpsub | |
6818 $extrasub | |
27205 | 6819 s%@SHELL@%$SHELL%g |
25897 | 6820 s%@CFLAGS@%$CFLAGS%g |
6821 s%@CPPFLAGS@%$CPPFLAGS%g | |
6822 s%@CXXFLAGS@%$CXXFLAGS%g | |
27205 | 6823 s%@FFLAGS@%$FFLAGS%g |
25897 | 6824 s%@DEFS@%$DEFS%g |
6825 s%@LDFLAGS@%$LDFLAGS%g | |
6826 s%@LIBS@%$LIBS%g | |
6827 s%@exec_prefix@%$exec_prefix%g | |
6828 s%@prefix@%$prefix%g | |
6829 s%@program_transform_name@%$program_transform_name%g | |
6830 s%@bindir@%$bindir%g | |
6831 s%@sbindir@%$sbindir%g | |
6832 s%@libexecdir@%$libexecdir%g | |
6833 s%@datadir@%$datadir%g | |
6834 s%@sysconfdir@%$sysconfdir%g | |
6835 s%@sharedstatedir@%$sharedstatedir%g | |
6836 s%@localstatedir@%$localstatedir%g | |
6837 s%@libdir@%$libdir%g | |
6838 s%@includedir@%$includedir%g | |
6839 s%@oldincludedir@%$oldincludedir%g | |
6840 s%@infodir@%$infodir%g | |
6841 s%@mandir@%$mandir%g | |
6842 s%@host@%$host%g | |
6843 s%@host_alias@%$host_alias%g | |
6844 s%@host_cpu@%$host_cpu%g | |
6845 s%@host_vendor@%$host_vendor%g | |
6846 s%@host_os@%$host_os%g | |
6847 s%@CC@%$CC%g | |
6848 s%@LN_S@%$LN_S%g | |
6849 s%@CPP@%$CPP%g | |
6850 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
27205 | 6851 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
25897 | 6852 s%@INSTALL_DATA@%$INSTALL_DATA%g |
6853 s%@YACC@%$YACC%g | |
6854 s%@SET_MAKE@%$SET_MAKE%g | |
6855 s%@ALLOCA@%$ALLOCA%g | |
6856 s%@liblockfile@%$liblockfile%g | |
6857 s%@version@%$version%g | |
6858 s%@configuration@%$configuration%g | |
6859 s%@canonical@%$canonical%g | |
6860 s%@srcdir@%$srcdir%g | |
6861 s%@lispdir@%$lispdir%g | |
6862 s%@locallisppath@%$locallisppath%g | |
6863 s%@lisppath@%$lisppath%g | |
6864 s%@x_default_search_path@%$x_default_search_path%g | |
6865 s%@etcdir@%$etcdir%g | |
6866 s%@archlibdir@%$archlibdir%g | |
6867 s%@docdir@%$docdir%g | |
6868 s%@bitmapdir@%$bitmapdir%g | |
6869 s%@c_switch_system@%$c_switch_system%g | |
6870 s%@c_switch_machine@%$c_switch_machine%g | |
6871 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g | |
6872 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g | |
6873 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g | |
6874 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g | |
6875 s%@machfile@%$machfile%g | |
6876 s%@opsysfile@%$opsysfile%g | |
6877 s%@RANLIB@%$RANLIB%g | |
6878 | |
6879 CEOF | |
6880 EOF | |
6881 | |
6882 cat >> $CONFIG_STATUS <<\EOF | |
6883 | |
6884 # Split the substitutions into bite-sized pieces for seds with | |
6885 # small command number limits, like on Digital OSF/1 and HP-UX. | |
6886 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
6887 ac_file=1 # Number of current file. | |
6888 ac_beg=1 # First line for current file. | |
6889 ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6890 ac_more_lines=: | |
6891 ac_sed_cmds="" | |
6892 while $ac_more_lines; do | |
6893 if test $ac_beg -gt 1; then | |
6894 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6895 else | |
6896 sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6897 fi | |
6898 if test ! -s conftest.s$ac_file; then | |
6899 ac_more_lines=false | |
6900 rm -f conftest.s$ac_file | |
6901 else | |
6902 if test -z "$ac_sed_cmds"; then | |
6903 ac_sed_cmds="sed -f conftest.s$ac_file" | |
6904 else | |
6905 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
6906 fi | |
6907 ac_file=`expr $ac_file + 1` | |
6908 ac_beg=$ac_end | |
6909 ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
6910 fi | |
6911 done | |
6912 if test -z "$ac_sed_cmds"; then | |
6913 ac_sed_cmds=cat | |
6914 fi | |
6915 EOF | |
6916 | |
6917 cat >> $CONFIG_STATUS <<EOF | |
6918 | |
6919 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
6920 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
6921 leim/Makefile"} | |
6922 EOF | |
6923 cat >> $CONFIG_STATUS <<\EOF | |
6924 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
6925 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6926 case "$ac_file" in | |
6927 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6928 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6929 *) ac_file_in="${ac_file}.in" ;; | |
6930 esac | |
6931 | |
6932 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
6933 | |
6934 # Remove last slash and all that follows it. Not all systems have dirname. | |
6935 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6936 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6937 # The file is in a subdirectory. | |
6938 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6939 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
6940 # A "../" for each directory in $ac_dir_suffix. | |
6941 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
6942 else | |
6943 ac_dir_suffix= ac_dots= | |
6944 fi | |
6945 | |
6946 case "$ac_given_srcdir" in | |
6947 .) srcdir=. | |
6948 if test -z "$ac_dots"; then top_srcdir=. | |
6949 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6950 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
6951 *) # Relative path. | |
6952 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
6953 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6954 esac | |
6955 | |
6956 case "$ac_given_INSTALL" in | |
6957 [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6958 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
6959 esac | |
6960 | |
6961 echo creating "$ac_file" | |
6962 rm -f "$ac_file" | |
6963 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6964 case "$ac_file" in | |
6965 *Makefile*) ac_comsub="1i\\ | |
6966 # $configure_input" ;; | |
6967 *) ac_comsub= ;; | |
6968 esac | |
6969 | |
6970 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6971 sed -e "$ac_comsub | |
6972 s%@configure_input@%$configure_input%g | |
6973 s%@srcdir@%$srcdir%g | |
6974 s%@top_srcdir@%$top_srcdir%g | |
6975 s%@INSTALL@%$INSTALL%g | |
6976 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
6977 fi; done | |
6978 rm -f conftest.s* | |
6979 | |
6980 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
6981 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6982 # | |
6983 # ac_d sets the value in "#define NAME VALUE" lines. | |
6984 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
6985 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
6986 ac_dC='\3' | |
6987 ac_dD='%g' | |
6988 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
6989 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6990 ac_uB='\([ ]\)%\1#\2define\3' | |
6991 ac_uC=' ' | |
6992 ac_uD='\4%g' | |
6993 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
6994 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6995 ac_eB='$%\1#\2define\3' | |
6996 ac_eC=' ' | |
6997 ac_eD='%g' | |
6998 | |
6999 if test "${CONFIG_HEADERS+set}" != set; then | |
7000 EOF | |
7001 cat >> $CONFIG_STATUS <<EOF | |
7002 CONFIG_HEADERS="src/config.h:src/config.in" | |
7003 EOF | |
7004 cat >> $CONFIG_STATUS <<\EOF | |
7005 fi | |
7006 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
7007 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7008 case "$ac_file" in | |
7009 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
7010 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
7011 *) ac_file_in="${ac_file}.in" ;; | |
7012 esac | |
7013 | |
7014 echo creating $ac_file | |
7015 | |
7016 rm -f conftest.frag conftest.in conftest.out | |
7017 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
7018 cat $ac_file_inputs > conftest.in | |
7019 | |
7020 EOF | |
7021 | |
7022 # Transform confdefs.h into a sed script conftest.vals that substitutes | |
7023 # the proper values into config.h.in to produce config.h. And first: | |
7024 # Protect against being on the right side of a sed subst in config.status. | |
7025 # Protect against being in an unquoted here document in config.status. | |
7026 rm -f conftest.vals | |
7027 cat > conftest.hdr <<\EOF | |
7028 s/[\\&%]/\\&/g | |
7029 s%[\\$`]%\\&%g | |
7030 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
7031 s%ac_d%ac_u%gp | |
7032 s%ac_u%ac_e%gp | |
7033 EOF | |
7034 sed -n -f conftest.hdr confdefs.h > conftest.vals | |
7035 rm -f conftest.hdr | |
7036 | |
7037 # This sed command replaces #undef with comments. This is necessary, for | |
7038 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7039 # on some systems where configure will not decide to define it. | |
7040 cat >> conftest.vals <<\EOF | |
7041 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
7042 EOF | |
7043 | |
7044 # Break up conftest.vals because some shells have a limit on | |
7045 # the size of here documents, and old seds have small limits too. | |
7046 | |
7047 rm -f conftest.tail | |
7048 while : | |
7049 do | |
7050 ac_lines=`grep -c . conftest.vals` | |
7051 # grep -c gives empty output for an empty file on some AIX systems. | |
7052 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
7053 # Write a limited-size here document to conftest.frag. | |
7054 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
7055 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
7056 echo 'CEOF | |
7057 sed -f conftest.frag conftest.in > conftest.out | |
7058 rm -f conftest.in | |
7059 mv conftest.out conftest.in | |
7060 ' >> $CONFIG_STATUS | |
7061 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
7062 rm -f conftest.vals | |
7063 mv conftest.tail conftest.vals | |
7064 done | |
7065 rm -f conftest.vals | |
7066 | |
7067 cat >> $CONFIG_STATUS <<\EOF | |
7068 rm -f conftest.frag conftest.h | |
7069 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
7070 cat conftest.in >> conftest.h | |
7071 rm -f conftest.in | |
7072 if cmp -s $ac_file conftest.h 2>/dev/null; then | |
7073 echo "$ac_file is unchanged" | |
7074 rm -f conftest.h | |
7075 else | |
7076 # Remove last slash and all that follows it. Not all systems have dirname. | |
7077 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
7078 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
7079 # The file is in a subdirectory. | |
7080 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
7081 fi | |
7082 rm -f $ac_file | |
7083 mv conftest.h $ac_file | |
7084 fi | |
7085 fi; done | |
7086 | |
7087 EOF | |
7088 cat >> $CONFIG_STATUS <<EOF | |
7089 CPP="$CPP" CPPFLAGS="$CPPFLAGS" | |
7090 EOF | |
7091 cat >> $CONFIG_STATUS <<\EOF | |
7092 | |
7093 | |
7094 ### Make the necessary directories, if they don't exist. | |
7095 for dir in etc lisp ; do | |
7096 test -d ${dir} || mkdir ${dir} | |
7097 done | |
7098 | |
7099 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
7100 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
7101 # This must be done after src/config.h is built, since we rely on that file. | |
7102 | |
7103 # Now get this: Some word that is part of the ${srcdir} directory name | |
7104 # or the ${configuration} value might, just might, happen to be an | |
7105 # identifier like `sun4' or `i386' or something, and be predefined by | |
7106 # the C preprocessor to some helpful value like 1, or maybe the empty | |
7107 # string. Needless to say consequent macro substitutions are less | |
7108 # than conducive to the makefile finding the correct directory. | |
7109 undefs="`echo $top_srcdir $configuration $canonical | | |
7110 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
7111 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
7112 `" | |
7113 | |
7114 echo creating src/epaths.h | |
7115 make epaths-force | |
7116 | |
7117 echo creating lib-src/Makefile | |
7118 ( cd lib-src | |
7119 rm -f junk.c junk1.c junk2.c | |
7120 sed -e '/start of cpp stuff/q' \ | |
7121 < Makefile.c > junk1.c | |
7122 sed -e '1,/start of cpp stuff/d'\ | |
7123 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
7124 < Makefile.c > junk.c | |
7125 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
7126 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
7127 cat junk1.c junk2.c > Makefile.new | |
7128 rm -f junk.c junk1.c junk2.c | |
7129 chmod 444 Makefile.new | |
7130 mv -f Makefile.new Makefile | |
7131 ) | |
7132 | |
7133 echo creating src/Makefile | |
7134 ( cd src | |
7135 rm -f junk.c junk1.c junk2.c | |
7136 sed -e '/start of cpp stuff/q' \ | |
7137 < Makefile.c > junk1.c | |
7138 sed -e '1,/start of cpp stuff/d'\ | |
7139 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
7140 < Makefile.c > junk.c | |
7141 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
7142 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
7143 cat junk1.c junk2.c > Makefile.new | |
7144 rm -f junk.c junk1.c junk2.c | |
7145 chmod 444 Makefile.new | |
7146 mv -f Makefile.new Makefile | |
7147 ) | |
7148 | |
7149 if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then | |
7150 echo creating src/.gdbinit | |
7151 echo source $top_srcdir/src/.gdbinit > src/.gdbinit | |
7152 fi | |
7153 | |
7154 # This is how we know whether to re-run configure in certain cases. | |
7155 touch src/config.stamp | |
7156 | |
7157 | |
7158 exit 0 | |
7159 EOF | |
7160 chmod +x $CONFIG_STATUS | |
7161 rm -fr confdefs* $ac_clean_files | |
7162 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
7163 |