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