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