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