Mercurial > emacs
annotate configure @ 27923:325eddf4eb21
(START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: Don't define.
(UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
(LINKER): Don't undef if __NetBSD__ is defined.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 01 Mar 2000 12:50:01 +0000 |
parents | cb2cc19e288e |
children | 82d519ae67da |
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 | |
27910 | 3272 #ifdef __GNUC__ |
3273 #define C_OPTIMIZE_SWITCH -O2 | |
3274 #else | |
25897 | 3275 #define C_OPTIMIZE_SWITCH -O |
3276 #endif | |
27910 | 3277 #endif |
25897 | 3278 |
3279 #ifndef LD_SWITCH_MACHINE | |
3280 #define LD_SWITCH_MACHINE | |
3281 #endif | |
3282 | |
3283 #ifndef LD_SWITCH_SYSTEM | |
3284 #define LD_SWITCH_SYSTEM | |
3285 #endif | |
3286 | |
3287 #ifndef LD_SWITCH_X_SITE_AUX | |
3288 #define LD_SWITCH_X_SITE_AUX | |
3289 #endif | |
3290 | |
3291 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3292 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3293 | |
3294 #ifdef THIS_IS_CONFIGURE | |
3295 | |
3296 /* Get the CFLAGS for tests in configure. */ | |
3297 #ifdef __GNUC__ | |
3298 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3299 #else | |
3300 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3301 #endif | |
3302 | |
3303 #else /* not THIS_IS_CONFIGURE */ | |
3304 | |
3305 /* Get the CFLAGS for real compilation. */ | |
3306 #ifdef __GNUC__ | |
3307 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3308 #else | |
3309 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3310 #endif | |
3311 | |
3312 #endif /* not THIS_IS_CONFIGURE */ | |
3313 ' > ${tempcname} | |
3314 | |
3315 # The value of CPP is a quoted variable reference, so we need to do this | |
3316 # to get its actual value... | |
3317 CPP=`eval "echo $CPP"` | |
3318 eval `${CPP} -Isrc ${tempcname} \ | |
3319 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3320 if test "x$SPECIFIED_CFLAGS" = x; then | |
3321 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3322 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3323 else | |
3324 REAL_CFLAGS="$CFLAGS" | |
3325 fi | |
3326 rm ${tempcname} | |
3327 | |
3328 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3329 | |
3330 ### Compute the unexec source name from the object name. | |
3331 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
3332 | |
3333 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
3334 # Assume not, until told otherwise. | |
3335 GNU_MALLOC=yes | |
3336 doug_lea_malloc=yes | |
3337 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | |
27910 | 3338 echo "configure:3339: checking for malloc_get_state" >&5 |
25897 | 3339 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3340 echo $ac_n "(cached) $ac_c" 1>&6 | |
3341 else | |
3342 cat > conftest.$ac_ext <<EOF | |
27910 | 3343 #line 3344 "configure" |
25897 | 3344 #include "confdefs.h" |
3345 /* System header to define __stub macros and hopefully few prototypes, | |
3346 which can conflict with char malloc_get_state(); below. */ | |
3347 #include <assert.h> | |
3348 /* Override any gcc2 internal prototype to avoid an error. */ | |
3349 /* We use char because int might match the return type of a gcc2 | |
3350 builtin and then its argument prototype would still apply. */ | |
3351 char malloc_get_state(); | |
3352 | |
3353 int main() { | |
3354 | |
3355 /* The GNU C library defines this for functions which it implements | |
3356 to always fail with ENOSYS. Some functions are actually named | |
3357 something starting with __ and the normal name is an alias. */ | |
3358 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
3359 choke me | |
3360 #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
|
3361 malloc_get_state(); |
25897 | 3362 #endif |
3363 | |
3364 ; return 0; } | |
3365 EOF | |
27910 | 3366 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3367 rm -rf conftest* |
3368 eval "ac_cv_func_malloc_get_state=yes" | |
3369 else | |
3370 echo "configure: failed program was:" >&5 | |
3371 cat conftest.$ac_ext >&5 | |
3372 rm -rf conftest* | |
3373 eval "ac_cv_func_malloc_get_state=no" | |
3374 fi | |
3375 rm -f conftest* | |
3376 fi | |
3377 | |
3378 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then | |
3379 echo "$ac_t""yes" 1>&6 | |
3380 : | |
3381 else | |
3382 echo "$ac_t""no" 1>&6 | |
3383 doug_lea_malloc=no | |
3384 fi | |
3385 | |
3386 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | |
27910 | 3387 echo "configure:3388: checking for malloc_set_state" >&5 |
25897 | 3388 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3389 echo $ac_n "(cached) $ac_c" 1>&6 | |
3390 else | |
3391 cat > conftest.$ac_ext <<EOF | |
27910 | 3392 #line 3393 "configure" |
25897 | 3393 #include "confdefs.h" |
3394 /* System header to define __stub macros and hopefully few prototypes, | |
3395 which can conflict with char malloc_set_state(); below. */ | |
3396 #include <assert.h> | |
3397 /* Override any gcc2 internal prototype to avoid an error. */ | |
3398 /* We use char because int might match the return type of a gcc2 | |
3399 builtin and then its argument prototype would still apply. */ | |
3400 char malloc_set_state(); | |
3401 | |
3402 int main() { | |
3403 | |
3404 /* The GNU C library defines this for functions which it implements | |
3405 to always fail with ENOSYS. Some functions are actually named | |
3406 something starting with __ and the normal name is an alias. */ | |
3407 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
3408 choke me | |
3409 #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
|
3410 malloc_set_state(); |
25897 | 3411 #endif |
3412 | |
3413 ; return 0; } | |
3414 EOF | |
27910 | 3415 if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3416 rm -rf conftest* |
3417 eval "ac_cv_func_malloc_set_state=yes" | |
3418 else | |
3419 echo "configure: failed program was:" >&5 | |
3420 cat conftest.$ac_ext >&5 | |
3421 rm -rf conftest* | |
3422 eval "ac_cv_func_malloc_set_state=no" | |
3423 fi | |
3424 rm -f conftest* | |
3425 fi | |
3426 | |
3427 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then | |
3428 echo "$ac_t""yes" 1>&6 | |
3429 : | |
3430 else | |
3431 echo "$ac_t""no" 1>&6 | |
3432 doug_lea_malloc=no | |
3433 fi | |
3434 | |
3435 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | |
27910 | 3436 echo "configure:3437: checking whether __after_morecore_hook exists" >&5 |
25897 | 3437 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3438 echo $ac_n "(cached) $ac_c" 1>&6 | |
3439 else | |
3440 cat > conftest.$ac_ext <<EOF | |
27910 | 3441 #line 3442 "configure" |
25897 | 3442 #include "confdefs.h" |
3443 extern void (* __after_morecore_hook)(); | |
3444 int main() { | |
3445 __after_morecore_hook = 0 | |
3446 ; return 0; } | |
3447 EOF | |
27910 | 3448 if { (eval echo configure:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3449 rm -rf conftest* |
3450 emacs_cv_var___after_morecore_hook=yes | |
3451 else | |
3452 echo "configure: failed program was:" >&5 | |
3453 cat conftest.$ac_ext >&5 | |
3454 rm -rf conftest* | |
3455 emacs_cv_var___after_morecore_hook=no | |
3456 fi | |
3457 rm -f conftest* | |
3458 fi | |
3459 | |
3460 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6 | |
3461 if test $emacs_cv_var___after_morecore_hook = no; then | |
3462 doug_lea_malloc=no | |
3463 fi | |
3464 if test "${system_malloc}" = "yes"; then | |
3465 GNU_MALLOC=no | |
3466 GNU_MALLOC_reason=" | |
3467 (The GNU allocators don't work with this system configuration.)" | |
3468 fi | |
3469 if test "$doug_lea_malloc" = "yes" ; then | |
3470 if test "$GNU_MALLOC" = yes ; then | |
3471 GNU_MALLOC_reason=" | |
3472 (Using Doug Lea's new malloc from the GNU C Library.)" | |
3473 fi | |
3474 cat >> confdefs.h <<\EOF | |
3475 #define DOUG_LEA_MALLOC 1 | |
3476 EOF | |
3477 | |
3478 fi | |
3479 | |
3480 if test x"${REL_ALLOC}" = x; then | |
3481 REL_ALLOC=${GNU_MALLOC} | |
3482 fi | |
3483 | |
3484 #### Add the libraries to LIBS and check for some functions. | |
3485 | |
3486 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3487 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3488 else | |
3489 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3490 fi | |
3491 | |
3492 LIBS="$libsrc_libs $LIBS" | |
3493 | |
3494 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
27910 | 3495 echo "configure:3496: checking for dnet_ntoa in -ldnet" >&5 |
25897 | 3496 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
3497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3498 echo $ac_n "(cached) $ac_c" 1>&6 | |
3499 else | |
3500 ac_save_LIBS="$LIBS" | |
3501 LIBS="-ldnet $LIBS" | |
3502 cat > conftest.$ac_ext <<EOF | |
27910 | 3503 #line 3504 "configure" |
25897 | 3504 #include "confdefs.h" |
3505 /* Override any gcc2 internal prototype to avoid an error. */ | |
3506 /* We use char because int might match the return type of a gcc2 | |
3507 builtin and then its argument prototype would still apply. */ | |
3508 char dnet_ntoa(); | |
3509 | |
3510 int main() { | |
3511 dnet_ntoa() | |
3512 ; return 0; } | |
3513 EOF | |
27910 | 3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3515 rm -rf conftest* |
3516 eval "ac_cv_lib_$ac_lib_var=yes" | |
3517 else | |
3518 echo "configure: failed program was:" >&5 | |
3519 cat conftest.$ac_ext >&5 | |
3520 rm -rf conftest* | |
3521 eval "ac_cv_lib_$ac_lib_var=no" | |
3522 fi | |
3523 rm -f conftest* | |
3524 LIBS="$ac_save_LIBS" | |
3525 | |
3526 fi | |
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3528 echo "$ac_t""yes" 1>&6 | |
3529 ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3530 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3531 cat >> confdefs.h <<EOF | |
3532 #define $ac_tr_lib 1 | |
3533 EOF | |
3534 | |
3535 LIBS="-ldnet $LIBS" | |
3536 | |
3537 else | |
3538 echo "$ac_t""no" 1>&6 | |
3539 fi | |
3540 | |
3541 | |
3542 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | |
27910 | 3543 echo "configure:3544: checking for main in -lXbsd" >&5 |
25897 | 3544 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
3545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3546 echo $ac_n "(cached) $ac_c" 1>&6 | |
3547 else | |
3548 ac_save_LIBS="$LIBS" | |
3549 LIBS="-lXbsd $LIBS" | |
3550 cat > conftest.$ac_ext <<EOF | |
27910 | 3551 #line 3552 "configure" |
25897 | 3552 #include "confdefs.h" |
3553 | |
3554 int main() { | |
3555 main() | |
3556 ; return 0; } | |
3557 EOF | |
27910 | 3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3559 rm -rf conftest* |
3560 eval "ac_cv_lib_$ac_lib_var=yes" | |
3561 else | |
3562 echo "configure: failed program was:" >&5 | |
3563 cat conftest.$ac_ext >&5 | |
3564 rm -rf conftest* | |
3565 eval "ac_cv_lib_$ac_lib_var=no" | |
3566 fi | |
3567 rm -f conftest* | |
3568 LIBS="$ac_save_LIBS" | |
3569 | |
3570 fi | |
3571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3572 echo "$ac_t""yes" 1>&6 | |
3573 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
3574 else | |
3575 echo "$ac_t""no" 1>&6 | |
3576 fi | |
3577 | |
3578 | |
3579 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | |
27910 | 3580 echo "configure:3581: checking for cma_open in -lpthreads" >&5 |
25897 | 3581 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
3582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3583 echo $ac_n "(cached) $ac_c" 1>&6 | |
3584 else | |
3585 ac_save_LIBS="$LIBS" | |
3586 LIBS="-lpthreads $LIBS" | |
3587 cat > conftest.$ac_ext <<EOF | |
27910 | 3588 #line 3589 "configure" |
25897 | 3589 #include "confdefs.h" |
3590 /* Override any gcc2 internal prototype to avoid an error. */ | |
3591 /* We use char because int might match the return type of a gcc2 | |
3592 builtin and then its argument prototype would still apply. */ | |
3593 char cma_open(); | |
3594 | |
3595 int main() { | |
3596 cma_open() | |
3597 ; return 0; } | |
3598 EOF | |
27910 | 3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3600 rm -rf conftest* |
3601 eval "ac_cv_lib_$ac_lib_var=yes" | |
3602 else | |
3603 echo "configure: failed program was:" >&5 | |
3604 cat conftest.$ac_ext >&5 | |
3605 rm -rf conftest* | |
3606 eval "ac_cv_lib_$ac_lib_var=no" | |
3607 fi | |
3608 rm -f conftest* | |
3609 LIBS="$ac_save_LIBS" | |
3610 | |
3611 fi | |
3612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3613 echo "$ac_t""yes" 1>&6 | |
3614 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3616 cat >> confdefs.h <<EOF | |
3617 #define $ac_tr_lib 1 | |
3618 EOF | |
3619 | |
3620 LIBS="-lpthreads $LIBS" | |
3621 | |
3622 else | |
3623 echo "$ac_t""no" 1>&6 | |
3624 fi | |
3625 | |
3626 | |
3627 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | |
27910 | 3628 echo "configure:3629: checking for XFree86 in /usr/X386" >&5 |
25897 | 3629 if test -d /usr/X386/include; then |
3630 HAVE_XFREE386=yes | |
3631 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
3632 else | |
3633 HAVE_XFREE386=no | |
3634 fi | |
3635 echo "$ac_t""$HAVE_XFREE386" 1>&6 | |
3636 | |
3637 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
3638 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
3639 | |
3640 if test "${HAVE_X11}" = "yes"; then | |
3641 DEFS="$C_SWITCH_X_SITE $DEFS" | |
3642 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
3643 LIBS="$LIBX $LIBS" | |
3644 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
3645 | |
3646 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
3647 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
3648 # but it's more convenient here to set LD_RUN_PATH | |
3649 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
3650 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3651 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
3652 export LD_RUN_PATH | |
3653 fi | |
3654 | |
3655 if test "${opsys}" = "gnu-linux"; then | |
3656 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | |
27910 | 3657 echo "configure:3658: checking whether X on GNU/Linux needs -b to link" >&5 |
25897 | 3658 cat > conftest.$ac_ext <<EOF |
27910 | 3659 #line 3660 "configure" |
25897 | 3660 #include "confdefs.h" |
3661 | |
3662 int main() { | |
3663 XOpenDisplay ("foo"); | |
3664 ; return 0; } | |
3665 EOF | |
27910 | 3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3667 rm -rf conftest* |
3668 xlinux_first_failure=no | |
3669 else | |
3670 echo "configure: failed program was:" >&5 | |
3671 cat conftest.$ac_ext >&5 | |
3672 rm -rf conftest* | |
3673 xlinux_first_failure=yes | |
3674 fi | |
3675 rm -f conftest* | |
3676 if test "${xlinux_first_failure}" = "yes"; then | |
3677 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
3678 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
3679 OLD_CPPFLAGS="$CPPFLAGS" | |
3680 OLD_LIBS="$LIBS" | |
3681 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
3682 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
3683 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
3684 LIBS="$LIBS -b i486-linuxaout" | |
3685 cat > conftest.$ac_ext <<EOF | |
27910 | 3686 #line 3687 "configure" |
25897 | 3687 #include "confdefs.h" |
3688 | |
3689 int main() { | |
3690 XOpenDisplay ("foo"); | |
3691 ; return 0; } | |
3692 EOF | |
27910 | 3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3694 rm -rf conftest* |
3695 xlinux_second_failure=no | |
3696 else | |
3697 echo "configure: failed program was:" >&5 | |
3698 cat conftest.$ac_ext >&5 | |
3699 rm -rf conftest* | |
3700 xlinux_second_failure=yes | |
3701 fi | |
3702 rm -f conftest* | |
3703 if test "${xlinux_second_failure}" = "yes"; then | |
3704 # If we get the same failure with -b, there is no use adding -b. | |
3705 # So take it out. This plays safe. | |
3706 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
3707 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
3708 CPPFLAGS="$OLD_CPPFLAGS" | |
3709 LIBS="$OLD_LIBS" | |
3710 echo "$ac_t""no" 1>&6 | |
3711 else | |
3712 echo "$ac_t""yes" 1>&6 | |
3713 fi | |
3714 else | |
3715 echo "$ac_t""no" 1>&6 | |
3716 fi | |
3717 fi | |
3718 | |
3719 for ac_func in XrmSetDatabase XScreenResourceString \ | |
3720 XScreenNumberOfScreen XSetWMProtocols | |
3721 do | |
3722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
27910 | 3723 echo "configure:3724: checking for $ac_func" >&5 |
25897 | 3724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3725 echo $ac_n "(cached) $ac_c" 1>&6 | |
3726 else | |
3727 cat > conftest.$ac_ext <<EOF | |
27910 | 3728 #line 3729 "configure" |
25897 | 3729 #include "confdefs.h" |
3730 /* System header to define __stub macros and hopefully few prototypes, | |
3731 which can conflict with char $ac_func(); below. */ | |
3732 #include <assert.h> | |
3733 /* Override any gcc2 internal prototype to avoid an error. */ | |
3734 /* We use char because int might match the return type of a gcc2 | |
3735 builtin and then its argument prototype would still apply. */ | |
3736 char $ac_func(); | |
3737 | |
3738 int main() { | |
3739 | |
3740 /* The GNU C library defines this for functions which it implements | |
3741 to always fail with ENOSYS. Some functions are actually named | |
3742 something starting with __ and the normal name is an alias. */ | |
3743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3744 choke me | |
3745 #else | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
3746 $ac_func(); |
25897 | 3747 #endif |
3748 | |
3749 ; return 0; } | |
3750 EOF | |
27910 | 3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3752 rm -rf conftest* |
3753 eval "ac_cv_func_$ac_func=yes" | |
3754 else | |
3755 echo "configure: failed program was:" >&5 | |
3756 cat conftest.$ac_ext >&5 | |
3757 rm -rf conftest* | |
3758 eval "ac_cv_func_$ac_func=no" | |
3759 fi | |
3760 rm -f conftest* | |
3761 fi | |
3762 | |
3763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3764 echo "$ac_t""yes" 1>&6 | |
3765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3766 cat >> confdefs.h <<EOF | |
3767 #define $ac_tr_func 1 | |
3768 EOF | |
3769 | |
3770 else | |
3771 echo "$ac_t""no" 1>&6 | |
3772 fi | |
3773 done | |
3774 | |
3775 fi | |
3776 | |
3777 if test "${window_system}" = "x11"; then | |
3778 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | |
27910 | 3779 echo "configure:3780: checking X11 version 6" >&5 |
25897 | 3780 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
3781 echo $ac_n "(cached) $ac_c" 1>&6 | |
3782 else | |
3783 cat > conftest.$ac_ext <<EOF | |
27910 | 3784 #line 3785 "configure" |
25897 | 3785 #include "confdefs.h" |
3786 #include <X11/Xlib.h> | |
3787 int main() { | |
3788 #if XlibSpecificationRelease < 6 | |
3789 fail; | |
3790 #endif | |
3791 | |
3792 ; return 0; } | |
3793 EOF | |
27910 | 3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3795 rm -rf conftest* |
3796 emacs_cv_x11_version_6=yes | |
3797 else | |
3798 echo "configure: failed program was:" >&5 | |
3799 cat conftest.$ac_ext >&5 | |
3800 rm -rf conftest* | |
3801 emacs_cv_x11_version_6=no | |
3802 fi | |
3803 rm -f conftest* | |
3804 fi | |
3805 | |
3806 if test $emacs_cv_x11_version_6 = yes; then | |
3807 echo "$ac_t""6 or newer" 1>&6 | |
3808 cat >> confdefs.h <<\EOF | |
3809 #define HAVE_X11R6 1 | |
3810 EOF | |
3811 | |
3812 else | |
3813 echo "$ac_t""before 6" 1>&6 | |
3814 fi | |
3815 fi | |
3816 | |
3817 if test "${window_system}" = "x11"; then | |
3818 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | |
27910 | 3819 echo "configure:3820: checking X11 version 5" >&5 |
25897 | 3820 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
3821 echo $ac_n "(cached) $ac_c" 1>&6 | |
3822 else | |
3823 cat > conftest.$ac_ext <<EOF | |
27910 | 3824 #line 3825 "configure" |
25897 | 3825 #include "confdefs.h" |
3826 #include <X11/Xlib.h> | |
3827 int main() { | |
3828 #if XlibSpecificationRelease < 5 | |
3829 fail; | |
3830 #endif | |
3831 | |
3832 ; return 0; } | |
3833 EOF | |
27910 | 3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3835 rm -rf conftest* |
3836 emacs_cv_x11_version_5=yes | |
3837 else | |
3838 echo "configure: failed program was:" >&5 | |
3839 cat conftest.$ac_ext >&5 | |
3840 rm -rf conftest* | |
3841 emacs_cv_x11_version_5=no | |
3842 fi | |
3843 rm -f conftest* | |
3844 fi | |
3845 | |
3846 if test $emacs_cv_x11_version_5 = yes; then | |
3847 echo "$ac_t""5 or newer" 1>&6 | |
3848 HAVE_X11R5=yes | |
3849 cat >> confdefs.h <<\EOF | |
3850 #define HAVE_X11R5 1 | |
3851 EOF | |
3852 | |
3853 else | |
3854 HAVE_X11R5=no | |
3855 echo "$ac_t""before 5" 1>&6 | |
3856 fi | |
3857 fi | |
3858 | |
3859 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
3860 if test x"${HAVE_X11R5}" = xyes; then | |
3861 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | |
27910 | 3862 echo "configure:3863: checking X11 version 5 with Xaw" >&5 |
25897 | 3863 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
3864 echo $ac_n "(cached) $ac_c" 1>&6 | |
3865 else | |
3866 cat > conftest.$ac_ext <<EOF | |
27910 | 3867 #line 3868 "configure" |
25897 | 3868 #include "confdefs.h" |
3869 | |
3870 #include <X11/Intrinsic.h> | |
3871 #include <X11/Xaw/Simple.h> | |
3872 int main() { | |
3873 | |
3874 ; return 0; } | |
3875 EOF | |
27910 | 3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3877 rm -rf conftest* |
3878 emacs_cv_x11_version_5_with_xaw=yes | |
3879 else | |
3880 echo "configure: failed program was:" >&5 | |
3881 cat conftest.$ac_ext >&5 | |
3882 rm -rf conftest* | |
3883 emacs_cv_x11_version_5_with_xaw=no | |
3884 fi | |
3885 rm -f conftest* | |
3886 fi | |
3887 | |
3888 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
3889 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6 | |
3890 USE_X_TOOLKIT=LUCID | |
3891 else | |
3892 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6 | |
3893 USE_X_TOOLKIT=none | |
3894 fi | |
3895 else | |
3896 USE_X_TOOLKIT=none | |
3897 fi | |
3898 fi | |
3899 | |
3900 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
3901 | |
3902 if test "${USE_X_TOOLKIT}" != "none"; then | |
3903 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | |
27910 | 3904 echo "configure:3905: checking X11 toolkit version" >&5 |
25897 | 3905 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
3906 echo $ac_n "(cached) $ac_c" 1>&6 | |
3907 else | |
3908 cat > conftest.$ac_ext <<EOF | |
27910 | 3909 #line 3910 "configure" |
25897 | 3910 #include "confdefs.h" |
3911 #include <X11/Intrinsic.h> | |
3912 int main() { | |
3913 #if XtSpecificationRelease < 6 | |
3914 fail; | |
3915 #endif | |
3916 | |
3917 ; return 0; } | |
3918 EOF | |
27910 | 3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3920 rm -rf conftest* |
3921 emacs_cv_x11_toolkit_version_6=yes | |
3922 else | |
3923 echo "configure: failed program was:" >&5 | |
3924 cat conftest.$ac_ext >&5 | |
3925 rm -rf conftest* | |
3926 emacs_cv_x11_toolkit_version_6=no | |
3927 fi | |
3928 rm -f conftest* | |
3929 fi | |
3930 | |
3931 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
3932 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
3933 echo "$ac_t""6 or newer" 1>&6 | |
3934 cat >> confdefs.h <<\EOF | |
3935 #define HAVE_X11XTR6 1 | |
3936 EOF | |
3937 | |
3938 else | |
3939 echo "$ac_t""before 6" 1>&6 | |
3940 fi | |
3941 | |
3942 OLDLIBS="$LIBS" | |
3943 if test x$HAVE_X11XTR6 = xyes; then | |
3944 LIBS="-lXt -lSM -lICE $LIBS" | |
3945 else | |
3946 LIBS="-lXt $LIBS" | |
3947 fi | |
3948 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | |
27910 | 3949 echo "configure:3950: checking for XmuConvertStandardSelection in -lXmu" >&5 |
25897 | 3950 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
3951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3952 echo $ac_n "(cached) $ac_c" 1>&6 | |
3953 else | |
3954 ac_save_LIBS="$LIBS" | |
3955 LIBS="-lXmu $LIBS" | |
3956 cat > conftest.$ac_ext <<EOF | |
27910 | 3957 #line 3958 "configure" |
25897 | 3958 #include "confdefs.h" |
3959 /* Override any gcc2 internal prototype to avoid an error. */ | |
3960 /* We use char because int might match the return type of a gcc2 | |
3961 builtin and then its argument prototype would still apply. */ | |
3962 char XmuConvertStandardSelection(); | |
3963 | |
3964 int main() { | |
3965 XmuConvertStandardSelection() | |
3966 ; return 0; } | |
3967 EOF | |
27910 | 3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3969 rm -rf conftest* |
3970 eval "ac_cv_lib_$ac_lib_var=yes" | |
3971 else | |
3972 echo "configure: failed program was:" >&5 | |
3973 cat conftest.$ac_ext >&5 | |
3974 rm -rf conftest* | |
3975 eval "ac_cv_lib_$ac_lib_var=no" | |
3976 fi | |
3977 rm -f conftest* | |
3978 LIBS="$ac_save_LIBS" | |
3979 | |
3980 fi | |
3981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3982 echo "$ac_t""yes" 1>&6 | |
3983 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3985 cat >> confdefs.h <<EOF | |
3986 #define $ac_tr_lib 1 | |
3987 EOF | |
3988 | |
3989 LIBS="-lXmu $LIBS" | |
3990 | |
3991 else | |
3992 echo "$ac_t""no" 1>&6 | |
3993 fi | |
3994 | |
3995 LIBS="$OLDLIBS" | |
3996 fi | |
3997 | |
3998 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
3999 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | |
27910 | 4000 echo "configure:4001: checking for Motif version 2.1" >&5 |
25897 | 4001 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4002 echo $ac_n "(cached) $ac_c" 1>&6 | |
4003 else | |
4004 cat > conftest.$ac_ext <<EOF | |
27910 | 4005 #line 4006 "configure" |
25897 | 4006 #include "confdefs.h" |
4007 #include <Xm/Xm.h> | |
4008 int main() { | |
4009 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
4010 int x = 5; | |
4011 #else | |
4012 Motif version prior to 2.1. | |
4013 #endif | |
4014 ; return 0; } | |
4015 EOF | |
27910 | 4016 if { (eval echo configure:4017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 4017 rm -rf conftest* |
4018 emacs_cv_motif_version_2_1=yes | |
4019 else | |
4020 echo "configure: failed program was:" >&5 | |
4021 cat conftest.$ac_ext >&5 | |
4022 rm -rf conftest* | |
4023 emacs_cv_motif_version_2_1=no | |
4024 fi | |
4025 rm -f conftest* | |
4026 fi | |
4027 | |
4028 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6 | |
4029 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
4030 if test $emacs_cv_motif_version_2_1 = yes; then | |
4031 cat >> confdefs.h <<\EOF | |
4032 #define HAVE_MOTIF_2_1 1 | |
4033 EOF | |
4034 | |
4035 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | |
27910 | 4036 echo "configure:4037: checking for XpCreateContext in -lXp" >&5 |
25897 | 4037 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4039 echo $ac_n "(cached) $ac_c" 1>&6 | |
4040 else | |
4041 ac_save_LIBS="$LIBS" | |
4042 LIBS="-lXp $LIBS" | |
4043 cat > conftest.$ac_ext <<EOF | |
27910 | 4044 #line 4045 "configure" |
25897 | 4045 #include "confdefs.h" |
4046 /* Override any gcc2 internal prototype to avoid an error. */ | |
4047 /* We use char because int might match the return type of a gcc2 | |
4048 builtin and then its argument prototype would still apply. */ | |
4049 char XpCreateContext(); | |
4050 | |
4051 int main() { | |
4052 XpCreateContext() | |
4053 ; return 0; } | |
4054 EOF | |
27910 | 4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4056 rm -rf conftest* |
4057 eval "ac_cv_lib_$ac_lib_var=yes" | |
4058 else | |
4059 echo "configure: failed program was:" >&5 | |
4060 cat conftest.$ac_ext >&5 | |
4061 rm -rf conftest* | |
4062 eval "ac_cv_lib_$ac_lib_var=no" | |
4063 fi | |
4064 rm -f conftest* | |
4065 LIBS="$ac_save_LIBS" | |
4066 | |
4067 fi | |
4068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4069 echo "$ac_t""yes" 1>&6 | |
4070 ac_tr_lib=HAVE_LIB`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4071 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4072 cat >> confdefs.h <<EOF | |
4073 #define $ac_tr_lib 1 | |
4074 EOF | |
4075 | |
4076 LIBS="-lXp $LIBS" | |
4077 | |
4078 else | |
4079 echo "$ac_t""no" 1>&6 | |
4080 fi | |
4081 | |
4082 fi | |
4083 fi | |
4084 | |
4085 ### Is -lXaw3d available? | |
4086 HAVE_XAW3D=no | |
4087 if test "${HAVE_X11}" = "yes"; then | |
4088 if test "${USE_X_TOOLKIT}" != "none"; then | |
4089 old_c_flags="${CFLAGS}" | |
4090 CFLAGS="${LD_SWITCH_X_SITE}" | |
4091 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | |
4092 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | |
27910 | 4093 echo "configure:4094: checking for X11/Xaw3d/Scrollbar.h" >&5 |
25897 | 4094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4095 echo $ac_n "(cached) $ac_c" 1>&6 | |
4096 else | |
4097 cat > conftest.$ac_ext <<EOF | |
27910 | 4098 #line 4099 "configure" |
25897 | 4099 #include "confdefs.h" |
4100 #include <X11/Xaw3d/Scrollbar.h> | |
4101 EOF | |
4102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27910 | 4103 { (eval echo configure:4104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4105 if test -z "$ac_err"; then |
4106 rm -rf conftest* | |
4107 eval "ac_cv_header_$ac_safe=yes" | |
4108 else | |
4109 echo "$ac_err" >&5 | |
4110 echo "configure: failed program was:" >&5 | |
4111 cat conftest.$ac_ext >&5 | |
4112 rm -rf conftest* | |
4113 eval "ac_cv_header_$ac_safe=no" | |
4114 fi | |
4115 rm -f conftest* | |
4116 fi | |
4117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4118 echo "$ac_t""yes" 1>&6 | |
4119 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | |
27910 | 4120 echo "configure:4121: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
25897 | 4121 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4123 echo $ac_n "(cached) $ac_c" 1>&6 | |
4124 else | |
4125 ac_save_LIBS="$LIBS" | |
4126 LIBS="-lXaw3d -lX11 $LIBS" | |
4127 cat > conftest.$ac_ext <<EOF | |
27910 | 4128 #line 4129 "configure" |
25897 | 4129 #include "confdefs.h" |
4130 /* Override any gcc2 internal prototype to avoid an error. */ | |
4131 /* We use char because int might match the return type of a gcc2 | |
4132 builtin and then its argument prototype would still apply. */ | |
4133 char XawScrollbarSetThumb(); | |
4134 | |
4135 int main() { | |
4136 XawScrollbarSetThumb() | |
4137 ; return 0; } | |
4138 EOF | |
27910 | 4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4140 rm -rf conftest* |
4141 eval "ac_cv_lib_$ac_lib_var=yes" | |
4142 else | |
4143 echo "configure: failed program was:" >&5 | |
4144 cat conftest.$ac_ext >&5 | |
4145 rm -rf conftest* | |
4146 eval "ac_cv_lib_$ac_lib_var=no" | |
4147 fi | |
4148 rm -f conftest* | |
4149 LIBS="$ac_save_LIBS" | |
4150 | |
4151 fi | |
4152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4153 echo "$ac_t""yes" 1>&6 | |
4154 HAVE_XAW3D=yes | |
4155 else | |
4156 echo "$ac_t""no" 1>&6 | |
4157 fi | |
4158 | |
4159 else | |
4160 echo "$ac_t""no" 1>&6 | |
4161 fi | |
4162 | |
4163 CFLAGS="${old_c_flags}" | |
4164 | |
4165 if test "${HAVE_XAW3D}" = "yes"; then | |
4166 cat >> confdefs.h <<\EOF | |
4167 #define HAVE_XAW3D 1 | |
4168 EOF | |
4169 | |
4170 fi | |
4171 fi | |
4172 fi | |
4173 | |
4174 | |
4175 USE_TOOLKIT_SCROLL_BARS=no | |
4176 if test "${with_toolkit_scroll_bars}" != "no"; then | |
4177 if test "${USE_X_TOOLKIT}" != "none"; then | |
4178 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
4179 cat >> confdefs.h <<\EOF | |
4180 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4181 EOF | |
4182 | |
4183 HAVE_XAW3D=no | |
4184 USE_TOOLKIT_SCROLL_BARS=yes | |
4185 elif test "${HAVE_XAW3D}" = "yes"; then | |
4186 cat >> confdefs.h <<\EOF | |
4187 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4188 EOF | |
4189 | |
4190 USE_TOOLKIT_SCROLL_BARS=yes | |
4191 fi | |
4192 fi | |
4193 fi | |
4194 | |
4195 ### Use -lXpm if available, unless `--with-xpm=no'. | |
4196 HAVE_XPM=no | |
4197 if test "${HAVE_X11}" = "yes"; then | |
4198 if test "${with_xpm}" != "no"; then | |
4199 old_c_flags="${CFLAGS}" | |
4200 CFLAGS="${LD_SWITCH_X_SITE}" | |
4201 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | |
4202 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | |
27910 | 4203 echo "configure:4204: checking for X11/xpm.h" >&5 |
25897 | 4204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4205 echo $ac_n "(cached) $ac_c" 1>&6 | |
4206 else | |
4207 cat > conftest.$ac_ext <<EOF | |
27910 | 4208 #line 4209 "configure" |
25897 | 4209 #include "confdefs.h" |
4210 #include <X11/xpm.h> | |
4211 EOF | |
4212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27910 | 4213 { (eval echo configure:4214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4215 if test -z "$ac_err"; then |
4216 rm -rf conftest* | |
4217 eval "ac_cv_header_$ac_safe=yes" | |
4218 else | |
4219 echo "$ac_err" >&5 | |
4220 echo "configure: failed program was:" >&5 | |
4221 cat conftest.$ac_ext >&5 | |
4222 rm -rf conftest* | |
4223 eval "ac_cv_header_$ac_safe=no" | |
4224 fi | |
4225 rm -f conftest* | |
4226 fi | |
4227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4228 echo "$ac_t""yes" 1>&6 | |
4229 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | |
27910 | 4230 echo "configure:4231: checking for XpmReadFileToPixmap in -lXpm" >&5 |
25897 | 4231 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4233 echo $ac_n "(cached) $ac_c" 1>&6 | |
4234 else | |
4235 ac_save_LIBS="$LIBS" | |
4236 LIBS="-lXpm -lX11 $LIBS" | |
4237 cat > conftest.$ac_ext <<EOF | |
27910 | 4238 #line 4239 "configure" |
25897 | 4239 #include "confdefs.h" |
4240 /* Override any gcc2 internal prototype to avoid an error. */ | |
4241 /* We use char because int might match the return type of a gcc2 | |
4242 builtin and then its argument prototype would still apply. */ | |
4243 char XpmReadFileToPixmap(); | |
4244 | |
4245 int main() { | |
4246 XpmReadFileToPixmap() | |
4247 ; return 0; } | |
4248 EOF | |
27910 | 4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4250 rm -rf conftest* |
4251 eval "ac_cv_lib_$ac_lib_var=yes" | |
4252 else | |
4253 echo "configure: failed program was:" >&5 | |
4254 cat conftest.$ac_ext >&5 | |
4255 rm -rf conftest* | |
4256 eval "ac_cv_lib_$ac_lib_var=no" | |
4257 fi | |
4258 rm -f conftest* | |
4259 LIBS="$ac_save_LIBS" | |
4260 | |
4261 fi | |
4262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4263 echo "$ac_t""yes" 1>&6 | |
4264 HAVE_XPM=yes | |
4265 else | |
4266 echo "$ac_t""no" 1>&6 | |
4267 fi | |
4268 | |
4269 else | |
4270 echo "$ac_t""no" 1>&6 | |
4271 fi | |
4272 | |
4273 CFLAGS="${old_c_flags}" | |
4274 fi | |
4275 | |
4276 if test "${HAVE_XPM}" = "yes"; then | |
4277 cat >> confdefs.h <<\EOF | |
4278 #define HAVE_XPM 1 | |
4279 EOF | |
4280 | |
4281 fi | |
4282 fi | |
4283 | |
4284 ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
4285 HAVE_JPEG=no | |
4286 if test "${HAVE_X11}" = "yes"; then | |
4287 if test "${with_jpeg}" != "no"; then | |
4288 old_c_flags="${CFLAGS}" | |
4289 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
27356 | 4290 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
4291 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | |
27910 | 4292 echo "configure:4293: checking for jerror.h" >&5 |
27356 | 4293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4294 echo $ac_n "(cached) $ac_c" 1>&6 | |
4295 else | |
4296 cat > conftest.$ac_ext <<EOF | |
27910 | 4297 #line 4298 "configure" |
27356 | 4298 #include "confdefs.h" |
4299 #include <jerror.h> | |
4300 EOF | |
4301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27910 | 4302 { (eval echo configure:4303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27356 | 4303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4304 if test -z "$ac_err"; then | |
4305 rm -rf conftest* | |
4306 eval "ac_cv_header_$ac_safe=yes" | |
4307 else | |
4308 echo "$ac_err" >&5 | |
4309 echo "configure: failed program was:" >&5 | |
4310 cat conftest.$ac_ext >&5 | |
4311 rm -rf conftest* | |
4312 eval "ac_cv_header_$ac_safe=no" | |
4313 fi | |
4314 rm -f conftest* | |
4315 fi | |
4316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4317 echo "$ac_t""yes" 1>&6 | |
4318 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | |
27910 | 4319 echo "configure:4320: checking for jpeg_destroy_compress in -ljpeg" >&5 |
25897 | 4320 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
4321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4322 echo $ac_n "(cached) $ac_c" 1>&6 | |
4323 else | |
4324 ac_save_LIBS="$LIBS" | |
4325 LIBS="-ljpeg -lX11 $LIBS" | |
4326 cat > conftest.$ac_ext <<EOF | |
27910 | 4327 #line 4328 "configure" |
25897 | 4328 #include "confdefs.h" |
4329 /* Override any gcc2 internal prototype to avoid an error. */ | |
4330 /* We use char because int might match the return type of a gcc2 | |
4331 builtin and then its argument prototype would still apply. */ | |
4332 char jpeg_destroy_compress(); | |
4333 | |
4334 int main() { | |
4335 jpeg_destroy_compress() | |
4336 ; return 0; } | |
4337 EOF | |
27910 | 4338 if { (eval echo configure:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4339 rm -rf conftest* |
4340 eval "ac_cv_lib_$ac_lib_var=yes" | |
4341 else | |
4342 echo "configure: failed program was:" >&5 | |
4343 cat conftest.$ac_ext >&5 | |
4344 rm -rf conftest* | |
4345 eval "ac_cv_lib_$ac_lib_var=no" | |
4346 fi | |
4347 rm -f conftest* | |
4348 LIBS="$ac_save_LIBS" | |
4349 | |
4350 fi | |
4351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4352 echo "$ac_t""yes" 1>&6 | |
4353 HAVE_JPEG=yes | |
4354 else | |
4355 echo "$ac_t""no" 1>&6 | |
4356 fi | |
4357 | |
27356 | 4358 else |
4359 echo "$ac_t""no" 1>&6 | |
4360 fi | |
4361 | |
25897 | 4362 CFLAGS="${old_c_flags}" |
4363 fi | |
4364 | |
4365 if test "${HAVE_JPEG}" = "yes"; then | |
4366 cat >> confdefs.h <<\EOF | |
4367 #define HAVE_JPEG 1 | |
4368 EOF | |
4369 | |
4370 fi | |
4371 fi | |
4372 | |
4373 ### Use -lpng if available, unless `--with-png=no'. | |
4374 HAVE_PNG=no | |
4375 if test "${HAVE_X11}" = "yes"; then | |
4376 if test "${with_png}" != "no"; then | |
4377 old_c_flags="${CFLAGS}" | |
4378 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4379 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4380 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
27910 | 4381 echo "configure:4382: checking for png.h" >&5 |
25897 | 4382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4383 echo $ac_n "(cached) $ac_c" 1>&6 | |
4384 else | |
4385 cat > conftest.$ac_ext <<EOF | |
27910 | 4386 #line 4387 "configure" |
25897 | 4387 #include "confdefs.h" |
4388 #include <png.h> | |
4389 EOF | |
4390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27910 | 4391 { (eval echo configure:4392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4393 if test -z "$ac_err"; then |
4394 rm -rf conftest* | |
4395 eval "ac_cv_header_$ac_safe=yes" | |
4396 else | |
4397 echo "$ac_err" >&5 | |
4398 echo "configure: failed program was:" >&5 | |
4399 cat conftest.$ac_ext >&5 | |
4400 rm -rf conftest* | |
4401 eval "ac_cv_header_$ac_safe=no" | |
4402 fi | |
4403 rm -f conftest* | |
4404 fi | |
4405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4406 echo "$ac_t""yes" 1>&6 | |
4407 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | |
27910 | 4408 echo "configure:4409: checking for png_set_expand in -lpng" >&5 |
25897 | 4409 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
4410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4411 echo $ac_n "(cached) $ac_c" 1>&6 | |
4412 else | |
4413 ac_save_LIBS="$LIBS" | |
4414 LIBS="-lpng -lX11 -lz -lm $LIBS" | |
4415 cat > conftest.$ac_ext <<EOF | |
27910 | 4416 #line 4417 "configure" |
25897 | 4417 #include "confdefs.h" |
4418 /* Override any gcc2 internal prototype to avoid an error. */ | |
4419 /* We use char because int might match the return type of a gcc2 | |
4420 builtin and then its argument prototype would still apply. */ | |
4421 char png_set_expand(); | |
4422 | |
4423 int main() { | |
4424 png_set_expand() | |
4425 ; return 0; } | |
4426 EOF | |
27910 | 4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4428 rm -rf conftest* |
4429 eval "ac_cv_lib_$ac_lib_var=yes" | |
4430 else | |
4431 echo "configure: failed program was:" >&5 | |
4432 cat conftest.$ac_ext >&5 | |
4433 rm -rf conftest* | |
4434 eval "ac_cv_lib_$ac_lib_var=no" | |
4435 fi | |
4436 rm -f conftest* | |
4437 LIBS="$ac_save_LIBS" | |
4438 | |
4439 fi | |
4440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4441 echo "$ac_t""yes" 1>&6 | |
4442 HAVE_PNG=yes | |
4443 else | |
4444 echo "$ac_t""no" 1>&6 | |
4445 fi | |
4446 | |
4447 else | |
4448 echo "$ac_t""no" 1>&6 | |
4449 fi | |
4450 | |
4451 CFLAGS="${old_c_flags}" | |
4452 fi | |
4453 | |
4454 if test "${HAVE_PNG}" = "yes"; then | |
4455 cat >> confdefs.h <<\EOF | |
4456 #define HAVE_PNG 1 | |
4457 EOF | |
4458 | |
4459 fi | |
4460 fi | |
4461 | |
4462 ### Use -ltiff if available, unless `--with-tiff=no'. | |
4463 HAVE_TIFF=no | |
4464 if test "${HAVE_X11}" = "yes"; then | |
4465 if test "${with_tiff}" != "no"; then | |
4466 old_c_flags="${CFLAGS}" | |
4467 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4468 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
4469 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
27910 | 4470 echo "configure:4471: checking for tiffio.h" >&5 |
25897 | 4471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4472 echo $ac_n "(cached) $ac_c" 1>&6 | |
4473 else | |
4474 cat > conftest.$ac_ext <<EOF | |
27910 | 4475 #line 4476 "configure" |
25897 | 4476 #include "confdefs.h" |
4477 #include <tiffio.h> | |
4478 EOF | |
4479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27910 | 4480 { (eval echo configure:4481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4482 if test -z "$ac_err"; then |
4483 rm -rf conftest* | |
4484 eval "ac_cv_header_$ac_safe=yes" | |
4485 else | |
4486 echo "$ac_err" >&5 | |
4487 echo "configure: failed program was:" >&5 | |
4488 cat conftest.$ac_ext >&5 | |
4489 rm -rf conftest* | |
4490 eval "ac_cv_header_$ac_safe=no" | |
4491 fi | |
4492 rm -f conftest* | |
4493 fi | |
4494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4495 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
|
4496 tifflibs="-lX11 -lz -lm" |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4497 # 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
|
4498 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
|
4499 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
27910 | 4500 echo "configure:4501: checking for TIFFGetVersion in -ltiff" >&5 |
25897 | 4501 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
4502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4503 echo $ac_n "(cached) $ac_c" 1>&6 | |
4504 else | |
4505 ac_save_LIBS="$LIBS" | |
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4506 LIBS="-ltiff $tifflibs $LIBS" |
25897 | 4507 cat > conftest.$ac_ext <<EOF |
27910 | 4508 #line 4509 "configure" |
25897 | 4509 #include "confdefs.h" |
4510 /* Override any gcc2 internal prototype to avoid an error. */ | |
4511 /* We use char because int might match the return type of a gcc2 | |
4512 builtin and then its argument prototype would still apply. */ | |
4513 char TIFFGetVersion(); | |
4514 | |
4515 int main() { | |
4516 TIFFGetVersion() | |
4517 ; return 0; } | |
4518 EOF | |
27910 | 4519 if { (eval echo configure:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4520 rm -rf conftest* |
4521 eval "ac_cv_lib_$ac_lib_var=yes" | |
4522 else | |
4523 echo "configure: failed program was:" >&5 | |
4524 cat conftest.$ac_ext >&5 | |
4525 rm -rf conftest* | |
4526 eval "ac_cv_lib_$ac_lib_var=no" | |
4527 fi | |
4528 rm -f conftest* | |
4529 LIBS="$ac_save_LIBS" | |
4530 | |
4531 fi | |
4532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4533 echo "$ac_t""yes" 1>&6 | |
4534 HAVE_TIFF=yes | |
4535 else | |
4536 echo "$ac_t""no" 1>&6 | |
4537 fi | |
4538 | |
4539 else | |
4540 echo "$ac_t""no" 1>&6 | |
4541 fi | |
4542 | |
4543 CFLAGS="${old_c_flags}" | |
4544 fi | |
4545 | |
4546 if test "${HAVE_TIFF}" = "yes"; then | |
4547 cat >> confdefs.h <<\EOF | |
4548 #define HAVE_TIFF 1 | |
4549 EOF | |
4550 | |
4551 fi | |
4552 fi | |
4553 | |
4554 ### Use -lgif if available, unless `--with-gif=no'. | |
4555 HAVE_GIF=no | |
4556 if test "${HAVE_X11}" = "yes"; then | |
4557 if test "${with_gif}" != "no"; then | |
4558 old_c_flags="${CFLAGS}" | |
4559 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4560 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | |
4561 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | |
27910 | 4562 echo "configure:4563: checking for gif_lib.h" >&5 |
25897 | 4563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4564 echo $ac_n "(cached) $ac_c" 1>&6 | |
4565 else | |
4566 cat > conftest.$ac_ext <<EOF | |
27910 | 4567 #line 4568 "configure" |
25897 | 4568 #include "confdefs.h" |
4569 #include <gif_lib.h> | |
4570 EOF | |
4571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27910 | 4572 { (eval echo configure:4573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4574 if test -z "$ac_err"; then |
4575 rm -rf conftest* | |
4576 eval "ac_cv_header_$ac_safe=yes" | |
4577 else | |
4578 echo "$ac_err" >&5 | |
4579 echo "configure: failed program was:" >&5 | |
4580 cat conftest.$ac_ext >&5 | |
4581 rm -rf conftest* | |
4582 eval "ac_cv_header_$ac_safe=no" | |
4583 fi | |
4584 rm -f conftest* | |
4585 fi | |
4586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4587 echo "$ac_t""yes" 1>&6 | |
27356 | 4588 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
27910 | 4589 echo "configure:4590: checking for DGifOpen in -lungif" >&5 |
27356 | 4590 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
25897 | 4591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4592 echo $ac_n "(cached) $ac_c" 1>&6 | |
4593 else | |
4594 ac_save_LIBS="$LIBS" | |
4595 LIBS="-lungif -lX11 $LIBS" | |
4596 cat > conftest.$ac_ext <<EOF | |
27910 | 4597 #line 4598 "configure" |
25897 | 4598 #include "confdefs.h" |
4599 /* Override any gcc2 internal prototype to avoid an error. */ | |
4600 /* We use char because int might match the return type of a gcc2 | |
4601 builtin and then its argument prototype would still apply. */ | |
27356 | 4602 char DGifOpen(); |
25897 | 4603 |
4604 int main() { | |
27356 | 4605 DGifOpen() |
25897 | 4606 ; return 0; } |
4607 EOF | |
27910 | 4608 if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4609 rm -rf conftest* |
4610 eval "ac_cv_lib_$ac_lib_var=yes" | |
4611 else | |
4612 echo "configure: failed program was:" >&5 | |
4613 cat conftest.$ac_ext >&5 | |
4614 rm -rf conftest* | |
4615 eval "ac_cv_lib_$ac_lib_var=no" | |
4616 fi | |
4617 rm -f conftest* | |
4618 LIBS="$ac_save_LIBS" | |
4619 | |
4620 fi | |
4621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4622 echo "$ac_t""yes" 1>&6 | |
4623 HAVE_GIF=yes | |
4624 else | |
4625 echo "$ac_t""no" 1>&6 | |
4626 fi | |
4627 | |
4628 else | |
4629 echo "$ac_t""no" 1>&6 | |
4630 fi | |
4631 | |
4632 CFLAGS="${old_c_flags}" | |
4633 fi | |
4634 | |
4635 if test "${HAVE_GIF}" = "yes"; then | |
4636 cat >> confdefs.h <<\EOF | |
4637 #define HAVE_GIF 1 | |
4638 EOF | |
4639 | |
4640 fi | |
4641 fi | |
4642 | |
4643 # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
4644 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | |
27910 | 4645 echo "configure:4646: checking whether netdb declares h_errno" >&5 |
25897 | 4646 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
4647 echo $ac_n "(cached) $ac_c" 1>&6 | |
4648 else | |
4649 cat > conftest.$ac_ext <<EOF | |
27910 | 4650 #line 4651 "configure" |
25897 | 4651 #include "confdefs.h" |
4652 #include <netdb.h> | |
4653 int main() { | |
4654 return h_errno; | |
4655 ; return 0; } | |
4656 EOF | |
27910 | 4657 if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4658 rm -rf conftest* |
4659 emacs_cv_netdb_declares_h_errno=yes | |
4660 else | |
4661 echo "configure: failed program was:" >&5 | |
4662 cat conftest.$ac_ext >&5 | |
4663 rm -rf conftest* | |
4664 emacs_cv_netdb_declares_h_errno=no | |
4665 fi | |
4666 rm -f conftest* | |
4667 fi | |
4668 | |
4669 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6 | |
4670 if test $emacs_cv_netdb_declares_h_errno = yes; then | |
4671 cat >> confdefs.h <<\EOF | |
4672 #define HAVE_H_ERRNO 1 | |
4673 EOF | |
4674 | |
4675 fi | |
4676 | |
4677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4678 # for constant arguments. Useless! | |
4679 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
27910 | 4680 echo "configure:4681: checking for working alloca.h" >&5 |
25897 | 4681 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
4682 echo $ac_n "(cached) $ac_c" 1>&6 | |
4683 else | |
4684 cat > conftest.$ac_ext <<EOF | |
27910 | 4685 #line 4686 "configure" |
25897 | 4686 #include "confdefs.h" |
4687 #include <alloca.h> | |
4688 int main() { | |
27729 | 4689 char *p = alloca(2 * sizeof(int)); |
25897 | 4690 ; return 0; } |
4691 EOF | |
27910 | 4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4693 rm -rf conftest* |
4694 ac_cv_header_alloca_h=yes | |
4695 else | |
4696 echo "configure: failed program was:" >&5 | |
4697 cat conftest.$ac_ext >&5 | |
4698 rm -rf conftest* | |
4699 ac_cv_header_alloca_h=no | |
4700 fi | |
4701 rm -f conftest* | |
4702 fi | |
4703 | |
4704 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
4705 if test $ac_cv_header_alloca_h = yes; then | |
4706 cat >> confdefs.h <<\EOF | |
4707 #define HAVE_ALLOCA_H 1 | |
4708 EOF | |
4709 | |
4710 fi | |
4711 | |
4712 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
27910 | 4713 echo "configure:4714: checking for alloca" >&5 |
25897 | 4714 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
4715 echo $ac_n "(cached) $ac_c" 1>&6 | |
4716 else | |
4717 cat > conftest.$ac_ext <<EOF | |
27910 | 4718 #line 4719 "configure" |
25897 | 4719 #include "confdefs.h" |
4720 | |
4721 #ifdef __GNUC__ | |
4722 # define alloca __builtin_alloca | |
4723 #else | |
27205 | 4724 # ifdef _MSC_VER |
4725 # include <malloc.h> | |
4726 # define alloca _alloca | |
25897 | 4727 # else |
27205 | 4728 # if HAVE_ALLOCA_H |
4729 # include <alloca.h> | |
25897 | 4730 # else |
27205 | 4731 # ifdef _AIX |
4732 #pragma alloca | |
4733 # else | |
4734 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 4735 char *alloca (); |
27205 | 4736 # endif |
25897 | 4737 # endif |
4738 # endif | |
4739 # endif | |
4740 #endif | |
4741 | |
4742 int main() { | |
4743 char *p = (char *) alloca(1); | |
4744 ; return 0; } | |
4745 EOF | |
27910 | 4746 if { (eval echo configure:4747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4747 rm -rf conftest* |
4748 ac_cv_func_alloca_works=yes | |
4749 else | |
4750 echo "configure: failed program was:" >&5 | |
4751 cat conftest.$ac_ext >&5 | |
4752 rm -rf conftest* | |
4753 ac_cv_func_alloca_works=no | |
4754 fi | |
4755 rm -f conftest* | |
4756 fi | |
4757 | |
4758 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
4759 if test $ac_cv_func_alloca_works = yes; then | |
4760 cat >> confdefs.h <<\EOF | |
4761 #define HAVE_ALLOCA 1 | |
4762 EOF | |
4763 | |
4764 fi | |
4765 | |
4766 if test $ac_cv_func_alloca_works = no; then | |
4767 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
4768 # that cause trouble. Some versions do not even contain alloca or | |
4769 # contain a buggy version. If you still want to use their alloca, | |
4770 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
27205 | 4771 ALLOCA=alloca.${ac_objext} |
25897 | 4772 cat >> confdefs.h <<\EOF |
4773 #define C_ALLOCA 1 | |
4774 EOF | |
4775 | |
4776 | |
4777 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
27910 | 4778 echo "configure:4779: checking whether alloca needs Cray hooks" >&5 |
25897 | 4779 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
4780 echo $ac_n "(cached) $ac_c" 1>&6 | |
4781 else | |
4782 cat > conftest.$ac_ext <<EOF | |
27910 | 4783 #line 4784 "configure" |
25897 | 4784 #include "confdefs.h" |
4785 #if defined(CRAY) && ! defined(CRAY2) | |
4786 webecray | |
4787 #else | |
4788 wenotbecray | |
4789 #endif | |
4790 | |
4791 EOF | |
4792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4793 egrep "webecray" >/dev/null 2>&1; then | |
4794 rm -rf conftest* | |
4795 ac_cv_os_cray=yes | |
4796 else | |
4797 rm -rf conftest* | |
4798 ac_cv_os_cray=no | |
4799 fi | |
4800 rm -f conftest* | |
4801 | |
4802 fi | |
4803 | |
4804 echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
4805 if test $ac_cv_os_cray = yes; then | |
4806 for ac_func in _getb67 GETB67 getb67; do | |
4807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
27910 | 4808 echo "configure:4809: checking for $ac_func" >&5 |
25897 | 4809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4810 echo $ac_n "(cached) $ac_c" 1>&6 | |
4811 else | |
4812 cat > conftest.$ac_ext <<EOF | |
27910 | 4813 #line 4814 "configure" |
25897 | 4814 #include "confdefs.h" |
4815 /* System header to define __stub macros and hopefully few prototypes, | |
4816 which can conflict with char $ac_func(); below. */ | |
4817 #include <assert.h> | |
4818 /* Override any gcc2 internal prototype to avoid an error. */ | |
4819 /* We use char because int might match the return type of a gcc2 | |
4820 builtin and then its argument prototype would still apply. */ | |
4821 char $ac_func(); | |
4822 | |
4823 int main() { | |
4824 | |
4825 /* The GNU C library defines this for functions which it implements | |
4826 to always fail with ENOSYS. Some functions are actually named | |
4827 something starting with __ and the normal name is an alias. */ | |
4828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4829 choke me | |
4830 #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
|
4831 $ac_func(); |
25897 | 4832 #endif |
4833 | |
4834 ; return 0; } | |
4835 EOF | |
27910 | 4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4837 rm -rf conftest* |
4838 eval "ac_cv_func_$ac_func=yes" | |
4839 else | |
4840 echo "configure: failed program was:" >&5 | |
4841 cat conftest.$ac_ext >&5 | |
4842 rm -rf conftest* | |
4843 eval "ac_cv_func_$ac_func=no" | |
4844 fi | |
4845 rm -f conftest* | |
4846 fi | |
4847 | |
4848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4849 echo "$ac_t""yes" 1>&6 | |
4850 cat >> confdefs.h <<EOF | |
4851 #define CRAY_STACKSEG_END $ac_func | |
4852 EOF | |
4853 | |
4854 break | |
4855 else | |
4856 echo "$ac_t""no" 1>&6 | |
4857 fi | |
4858 | |
4859 done | |
4860 fi | |
4861 | |
4862 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
27910 | 4863 echo "configure:4864: checking stack direction for C alloca" >&5 |
25897 | 4864 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
4865 echo $ac_n "(cached) $ac_c" 1>&6 | |
4866 else | |
4867 if test "$cross_compiling" = yes; then | |
4868 ac_cv_c_stack_direction=0 | |
4869 else | |
4870 cat > conftest.$ac_ext <<EOF | |
27910 | 4871 #line 4872 "configure" |
25897 | 4872 #include "confdefs.h" |
4873 find_stack_direction () | |
4874 { | |
4875 static char *addr = 0; | |
4876 auto char dummy; | |
4877 if (addr == 0) | |
4878 { | |
4879 addr = &dummy; | |
4880 return find_stack_direction (); | |
4881 } | |
4882 else | |
4883 return (&dummy > addr) ? 1 : -1; | |
4884 } | |
4885 main () | |
4886 { | |
4887 exit (find_stack_direction() < 0); | |
4888 } | |
4889 EOF | |
27910 | 4890 if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 4891 then |
4892 ac_cv_c_stack_direction=1 | |
4893 else | |
4894 echo "configure: failed program was:" >&5 | |
4895 cat conftest.$ac_ext >&5 | |
4896 rm -fr conftest* | |
4897 ac_cv_c_stack_direction=-1 | |
4898 fi | |
4899 rm -fr conftest* | |
4900 fi | |
4901 | |
4902 fi | |
4903 | |
4904 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
4905 cat >> confdefs.h <<EOF | |
4906 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4907 EOF | |
4908 | |
4909 fi | |
4910 | |
4911 | |
4912 # fmod, logb, and frexp are found in -lm on most systems. | |
4913 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
4914 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | |
27910 | 4915 echo "configure:4916: checking for sqrt in -lm" >&5 |
25897 | 4916 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
4917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4918 echo $ac_n "(cached) $ac_c" 1>&6 | |
4919 else | |
4920 ac_save_LIBS="$LIBS" | |
4921 LIBS="-lm $LIBS" | |
4922 cat > conftest.$ac_ext <<EOF | |
27910 | 4923 #line 4924 "configure" |
25897 | 4924 #include "confdefs.h" |
4925 /* Override any gcc2 internal prototype to avoid an error. */ | |
4926 /* We use char because int might match the return type of a gcc2 | |
4927 builtin and then its argument prototype would still apply. */ | |
4928 char sqrt(); | |
4929 | |
4930 int main() { | |
4931 sqrt() | |
4932 ; return 0; } | |
4933 EOF | |
27910 | 4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4935 rm -rf conftest* |
4936 eval "ac_cv_lib_$ac_lib_var=yes" | |
4937 else | |
4938 echo "configure: failed program was:" >&5 | |
4939 cat conftest.$ac_ext >&5 | |
4940 rm -rf conftest* | |
4941 eval "ac_cv_lib_$ac_lib_var=no" | |
4942 fi | |
4943 rm -f conftest* | |
4944 LIBS="$ac_save_LIBS" | |
4945 | |
4946 fi | |
4947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4948 echo "$ac_t""yes" 1>&6 | |
4949 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4950 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4951 cat >> confdefs.h <<EOF | |
4952 #define $ac_tr_lib 1 | |
4953 EOF | |
4954 | |
4955 LIBS="-lm $LIBS" | |
4956 | |
4957 else | |
4958 echo "$ac_t""no" 1>&6 | |
4959 fi | |
4960 | |
4961 | |
4962 # Check for mail-locking functions in a "mail" library | |
4963 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | |
27910 | 4964 echo "configure:4965: checking for maillock in -lmail" >&5 |
25897 | 4965 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
4966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4967 echo $ac_n "(cached) $ac_c" 1>&6 | |
4968 else | |
4969 ac_save_LIBS="$LIBS" | |
4970 LIBS="-lmail $LIBS" | |
4971 cat > conftest.$ac_ext <<EOF | |
27910 | 4972 #line 4973 "configure" |
25897 | 4973 #include "confdefs.h" |
4974 /* Override any gcc2 internal prototype to avoid an error. */ | |
4975 /* We use char because int might match the return type of a gcc2 | |
4976 builtin and then its argument prototype would still apply. */ | |
4977 char maillock(); | |
4978 | |
4979 int main() { | |
4980 maillock() | |
4981 ; return 0; } | |
4982 EOF | |
27910 | 4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4984 rm -rf conftest* |
4985 eval "ac_cv_lib_$ac_lib_var=yes" | |
4986 else | |
4987 echo "configure: failed program was:" >&5 | |
4988 cat conftest.$ac_ext >&5 | |
4989 rm -rf conftest* | |
4990 eval "ac_cv_lib_$ac_lib_var=no" | |
4991 fi | |
4992 rm -f conftest* | |
4993 LIBS="$ac_save_LIBS" | |
4994 | |
4995 fi | |
4996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4997 echo "$ac_t""yes" 1>&6 | |
4998 ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5000 cat >> confdefs.h <<EOF | |
5001 #define $ac_tr_lib 1 | |
5002 EOF | |
5003 | |
5004 LIBS="-lmail $LIBS" | |
5005 | |
5006 else | |
5007 echo "$ac_t""no" 1>&6 | |
5008 fi | |
5009 | |
5010 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | |
27910 | 5011 echo "configure:5012: checking for maillock in -llockfile" >&5 |
25897 | 5012 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5014 echo $ac_n "(cached) $ac_c" 1>&6 | |
5015 else | |
5016 ac_save_LIBS="$LIBS" | |
5017 LIBS="-llockfile $LIBS" | |
5018 cat > conftest.$ac_ext <<EOF | |
27910 | 5019 #line 5020 "configure" |
25897 | 5020 #include "confdefs.h" |
5021 /* Override any gcc2 internal prototype to avoid an error. */ | |
5022 /* We use char because int might match the return type of a gcc2 | |
5023 builtin and then its argument prototype would still apply. */ | |
5024 char maillock(); | |
5025 | |
5026 int main() { | |
5027 maillock() | |
5028 ; return 0; } | |
5029 EOF | |
27910 | 5030 if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5031 rm -rf conftest* |
5032 eval "ac_cv_lib_$ac_lib_var=yes" | |
5033 else | |
5034 echo "configure: failed program was:" >&5 | |
5035 cat conftest.$ac_ext >&5 | |
5036 rm -rf conftest* | |
5037 eval "ac_cv_lib_$ac_lib_var=no" | |
5038 fi | |
5039 rm -f conftest* | |
5040 LIBS="$ac_save_LIBS" | |
5041 | |
5042 fi | |
5043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5044 echo "$ac_t""yes" 1>&6 | |
5045 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5047 cat >> confdefs.h <<EOF | |
5048 #define $ac_tr_lib 1 | |
5049 EOF | |
5050 | |
5051 LIBS="-llockfile $LIBS" | |
5052 | |
5053 else | |
5054 echo "$ac_t""no" 1>&6 | |
5055 fi | |
5056 | |
5057 # If we have the shared liblockfile, assume we must use it for mail | |
5058 # locking (e.g. Debian). If we couldn't link against liblockfile | |
5059 # (no liblockfile.a installed), ensure that we don't need to. | |
5060 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
5061 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
5062 set dummy liblockfile.so; ac_word=$2 | |
5063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
27910 | 5064 echo "configure:5065: checking for $ac_word" >&5 |
25897 | 5065 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5066 echo $ac_n "(cached) $ac_c" 1>&6 | |
5067 else | |
5068 if test -n "$liblockfile"; then | |
5069 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
5070 else | |
27205 | 5071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5072 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
5073 for ac_dir in $ac_dummy; do | |
25897 | 5074 test -z "$ac_dir" && ac_dir=. |
5075 if test -f $ac_dir/$ac_word; then | |
5076 ac_cv_prog_liblockfile="yes" | |
5077 break | |
5078 fi | |
5079 done | |
5080 IFS="$ac_save_ifs" | |
5081 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
5082 fi | |
5083 fi | |
5084 liblockfile="$ac_cv_prog_liblockfile" | |
5085 if test -n "$liblockfile"; then | |
5086 echo "$ac_t""$liblockfile" 1>&6 | |
5087 else | |
5088 echo "$ac_t""no" 1>&6 | |
5089 fi | |
5090 | |
5091 if test $ac_cv_prog_liblockfile = yes; then | |
5092 { echo "configure: error: Shared liblockfile found but can't link against it. | |
5093 This probably means that movemail could lose mail. | |
5094 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; } | |
5095 else cat >> confdefs.h <<\EOF | |
5096 #define LIBMAIL -llockfile | |
5097 EOF | |
5098 | |
5099 fi | |
5100 else : | |
5101 fi | |
5102 for ac_func in touchlock | |
5103 do | |
5104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
27910 | 5105 echo "configure:5106: checking for $ac_func" >&5 |
25897 | 5106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5107 echo $ac_n "(cached) $ac_c" 1>&6 | |
5108 else | |
5109 cat > conftest.$ac_ext <<EOF | |
27910 | 5110 #line 5111 "configure" |
25897 | 5111 #include "confdefs.h" |
5112 /* System header to define __stub macros and hopefully few prototypes, | |
5113 which can conflict with char $ac_func(); below. */ | |
5114 #include <assert.h> | |
5115 /* Override any gcc2 internal prototype to avoid an error. */ | |
5116 /* We use char because int might match the return type of a gcc2 | |
5117 builtin and then its argument prototype would still apply. */ | |
5118 char $ac_func(); | |
5119 | |
5120 int main() { | |
5121 | |
5122 /* The GNU C library defines this for functions which it implements | |
5123 to always fail with ENOSYS. Some functions are actually named | |
5124 something starting with __ and the normal name is an alias. */ | |
5125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5126 choke me | |
5127 #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
|
5128 $ac_func(); |
25897 | 5129 #endif |
5130 | |
5131 ; return 0; } | |
5132 EOF | |
27910 | 5133 if { (eval echo configure:5134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5134 rm -rf conftest* |
5135 eval "ac_cv_func_$ac_func=yes" | |
5136 else | |
5137 echo "configure: failed program was:" >&5 | |
5138 cat conftest.$ac_ext >&5 | |
5139 rm -rf conftest* | |
5140 eval "ac_cv_func_$ac_func=no" | |
5141 fi | |
5142 rm -f conftest* | |
5143 fi | |
5144 | |
5145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5146 echo "$ac_t""yes" 1>&6 | |
5147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5148 cat >> confdefs.h <<EOF | |
5149 #define $ac_tr_func 1 | |
5150 EOF | |
5151 | |
5152 else | |
5153 echo "$ac_t""no" 1>&6 | |
5154 fi | |
5155 done | |
5156 | |
5157 for ac_hdr in maillock.h | |
5158 do | |
5159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
27910 | 5161 echo "configure:5162: checking for $ac_hdr" >&5 |
25897 | 5162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5163 echo $ac_n "(cached) $ac_c" 1>&6 | |
5164 else | |
5165 cat > conftest.$ac_ext <<EOF | |
27910 | 5166 #line 5167 "configure" |
25897 | 5167 #include "confdefs.h" |
5168 #include <$ac_hdr> | |
5169 EOF | |
5170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27910 | 5171 { (eval echo configure:5172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 5173 if test -z "$ac_err"; then |
5174 rm -rf conftest* | |
5175 eval "ac_cv_header_$ac_safe=yes" | |
5176 else | |
5177 echo "$ac_err" >&5 | |
5178 echo "configure: failed program was:" >&5 | |
5179 cat conftest.$ac_ext >&5 | |
5180 rm -rf conftest* | |
5181 eval "ac_cv_header_$ac_safe=no" | |
5182 fi | |
5183 rm -f conftest* | |
5184 fi | |
5185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5186 echo "$ac_t""yes" 1>&6 | |
5187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5188 cat >> confdefs.h <<EOF | |
5189 #define $ac_tr_hdr 1 | |
5190 EOF | |
5191 | |
5192 else | |
5193 echo "$ac_t""no" 1>&6 | |
5194 fi | |
5195 done | |
5196 | |
5197 | |
5198 for ac_func in gettimeofday gethostname getdomainname dup2 \ | |
5199 rename closedir mkdir rmdir sysinfo \ | |
5200 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
5201 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
|
5202 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ |
26708 | 5203 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm |
25897 | 5204 do |
5205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
27910 | 5206 echo "configure:5207: checking for $ac_func" >&5 |
25897 | 5207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5208 echo $ac_n "(cached) $ac_c" 1>&6 | |
5209 else | |
5210 cat > conftest.$ac_ext <<EOF | |
27910 | 5211 #line 5212 "configure" |
25897 | 5212 #include "confdefs.h" |
5213 /* System header to define __stub macros and hopefully few prototypes, | |
5214 which can conflict with char $ac_func(); below. */ | |
5215 #include <assert.h> | |
5216 /* Override any gcc2 internal prototype to avoid an error. */ | |
5217 /* We use char because int might match the return type of a gcc2 | |
5218 builtin and then its argument prototype would still apply. */ | |
5219 char $ac_func(); | |
5220 | |
5221 int main() { | |
5222 | |
5223 /* The GNU C library defines this for functions which it implements | |
5224 to always fail with ENOSYS. Some functions are actually named | |
5225 something starting with __ and the normal name is an alias. */ | |
5226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5227 choke me | |
5228 #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
|
5229 $ac_func(); |
25897 | 5230 #endif |
5231 | |
5232 ; return 0; } | |
5233 EOF | |
27910 | 5234 if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5235 rm -rf conftest* |
5236 eval "ac_cv_func_$ac_func=yes" | |
5237 else | |
5238 echo "configure: failed program was:" >&5 | |
5239 cat conftest.$ac_ext >&5 | |
5240 rm -rf conftest* | |
5241 eval "ac_cv_func_$ac_func=no" | |
5242 fi | |
5243 rm -f conftest* | |
5244 fi | |
5245 | |
5246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5247 echo "$ac_t""yes" 1>&6 | |
5248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5249 cat >> confdefs.h <<EOF | |
5250 #define $ac_tr_func 1 | |
5251 EOF | |
5252 | |
5253 else | |
5254 echo "$ac_t""no" 1>&6 | |
5255 fi | |
5256 done | |
5257 | |
5258 | |
5259 # Check this now, so that we will NOT find the above functions in ncurses. | |
5260 # That is because we have not set up to link ncurses in lib-src. | |
5261 # It's better to believe a function is not available | |
5262 # than to expect to find it in ncurses. | |
5263 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | |
27910 | 5264 echo "configure:5265: checking for tparm in -lncurses" >&5 |
25897 | 5265 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
5266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5267 echo $ac_n "(cached) $ac_c" 1>&6 | |
5268 else | |
5269 ac_save_LIBS="$LIBS" | |
5270 LIBS="-lncurses $LIBS" | |
5271 cat > conftest.$ac_ext <<EOF | |
27910 | 5272 #line 5273 "configure" |
25897 | 5273 #include "confdefs.h" |
5274 /* Override any gcc2 internal prototype to avoid an error. */ | |
5275 /* We use char because int might match the return type of a gcc2 | |
5276 builtin and then its argument prototype would still apply. */ | |
5277 char tparm(); | |
5278 | |
5279 int main() { | |
5280 tparm() | |
5281 ; return 0; } | |
5282 EOF | |
27910 | 5283 if { (eval echo configure:5284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5284 rm -rf conftest* |
5285 eval "ac_cv_lib_$ac_lib_var=yes" | |
5286 else | |
5287 echo "configure: failed program was:" >&5 | |
5288 cat conftest.$ac_ext >&5 | |
5289 rm -rf conftest* | |
5290 eval "ac_cv_lib_$ac_lib_var=no" | |
5291 fi | |
5292 rm -f conftest* | |
5293 LIBS="$ac_save_LIBS" | |
5294 | |
5295 fi | |
5296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5297 echo "$ac_t""yes" 1>&6 | |
5298 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5299 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5300 cat >> confdefs.h <<EOF | |
5301 #define $ac_tr_lib 1 | |
5302 EOF | |
5303 | |
5304 LIBS="-lncurses $LIBS" | |
5305 | |
5306 else | |
5307 echo "$ac_t""no" 1>&6 | |
5308 fi | |
5309 | |
5310 | |
26562
b32d82817493
* 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 # 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
|
5312 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
|
5313 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
27910 | 5314 echo "configure:5315: 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
|
5315 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
|
5316 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
|
5317 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
|
5318 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
|
5319 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
|
5320 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
|
5321 cat > conftest.$ac_ext <<EOF |
27910 | 5322 #line 5323 "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
|
5323 #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
|
5324 /* 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
|
5325 /* 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
|
5326 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
|
5327 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
|
5328 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5329 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
|
5330 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
|
5331 ; 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
|
5332 EOF |
27910 | 5333 if { (eval echo configure:5334: \"$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
|
5334 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
|
5335 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
|
5336 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
|
5337 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
|
5338 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
|
5339 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
|
5340 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
|
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 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
|
5343 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
|
5344 |
b32d82817493
* 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 fi |
b32d82817493
* 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 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
|
5347 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
|
5348 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
|
5349 -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
|
5350 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
|
5351 #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
|
5352 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
|
5353 |
b32d82817493
* 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 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
|
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 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
|
5357 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
|
5358 fi |
b32d82817493
* 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 |
b32d82817493
* 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 "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
27910 | 5361 echo "configure:5362: 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
|
5362 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
|
5363 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
|
5364 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
|
5365 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
|
5366 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
|
5367 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
|
5368 cat > conftest.$ac_ext <<EOF |
27910 | 5369 #line 5370 "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
|
5370 #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
|
5371 /* 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
|
5372 /* 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
|
5373 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
|
5374 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
|
5375 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5376 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
|
5377 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
|
5378 ; 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
|
5379 EOF |
27910 | 5380 if { (eval echo configure:5381: \"$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
|
5381 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
|
5382 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
|
5383 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
|
5384 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
|
5385 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
|
5386 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
|
5387 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
|
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 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
|
5390 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
|
5391 |
b32d82817493
* 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 fi |
b32d82817493
* 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 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
|
5394 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
|
5395 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
|
5396 -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
|
5397 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
|
5398 #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
|
5399 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
|
5400 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5401 LIBS="-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
|
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 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
|
5404 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
|
5405 fi |
b32d82817493
* 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 |
b32d82817493
* 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 "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
27910 | 5408 echo "configure:5409: 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
|
5409 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
|
5410 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
|
5411 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
|
5412 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
|
5413 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
|
5414 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
|
5415 cat > conftest.$ac_ext <<EOF |
27910 | 5416 #line 5417 "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
|
5417 #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
|
5418 /* 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
|
5419 /* 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
|
5420 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
|
5421 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
|
5422 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5423 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
|
5424 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
|
5425 ; 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
|
5426 EOF |
27910 | 5427 if { (eval echo configure:5428: \"$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
|
5428 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
|
5429 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
|
5430 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
|
5431 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
|
5432 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
|
5433 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
|
5434 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
|
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 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
|
5437 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
|
5438 |
b32d82817493
* 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 fi |
b32d82817493
* 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 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
|
5441 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
|
5442 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
|
5443 -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
|
5444 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
|
5445 #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
|
5446 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
|
5447 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5448 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
|
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 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
|
5451 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
|
5452 fi |
b32d82817493
* 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 |
b32d82817493
* 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 "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
27910 | 5455 echo "configure:5456: 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
|
5456 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
|
5457 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
|
5458 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
|
5459 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5460 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
|
5461 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
|
5462 cat > conftest.$ac_ext <<EOF |
27910 | 5463 #line 5464 "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
|
5464 #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
|
5465 /* 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
|
5466 /* 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
|
5467 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
|
5468 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
|
5469 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5470 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
|
5471 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
|
5472 ; 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
|
5473 EOF |
27910 | 5474 if { (eval echo configure:5475: \"$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
|
5475 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
|
5476 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
|
5477 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
|
5478 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
|
5479 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
|
5480 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
|
5481 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
|
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 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
|
5484 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
|
5485 |
b32d82817493
* 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 fi |
b32d82817493
* 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 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
|
5488 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
|
5489 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
|
5490 -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
|
5491 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
|
5492 #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
|
5493 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
|
5494 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5495 LIBS="-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
|
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 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
|
5498 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
|
5499 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5500 |
b32d82817493
* 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 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
|
5502 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
27910 | 5503 echo "configure:5504: 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
|
5504 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
|
5505 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
|
5506 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
|
5507 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
|
5508 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
|
5509 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
|
5510 cat > conftest.$ac_ext <<EOF |
27910 | 5511 #line 5512 "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
|
5512 #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
|
5513 /* 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
|
5514 /* 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
|
5515 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
|
5516 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
|
5517 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5518 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
|
5519 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
|
5520 ; 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
|
5521 EOF |
27910 | 5522 if { (eval echo configure:5523: \"$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
|
5523 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
|
5524 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
|
5525 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
|
5526 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
|
5527 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
|
5528 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
|
5529 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
|
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 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
|
5532 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
|
5533 |
b32d82817493
* 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 fi |
b32d82817493
* 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 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
|
5536 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
|
5537 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
|
5538 -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
|
5539 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
|
5540 #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
|
5541 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
|
5542 |
b32d82817493
* 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 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
|
5544 |
b32d82817493
* 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 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
|
5546 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
|
5547 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
27910 | 5548 echo "configure:5549: 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
|
5549 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
|
5550 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
|
5551 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
|
5552 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
|
5553 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
|
5554 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
|
5555 cat > conftest.$ac_ext <<EOF |
27910 | 5556 #line 5557 "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
|
5557 #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
|
5558 /* 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
|
5559 /* 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
|
5560 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
|
5561 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
|
5562 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5563 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
|
5564 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
|
5565 ; 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
|
5566 EOF |
27910 | 5567 if { (eval echo configure:5568: \"$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
|
5568 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
|
5569 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
|
5570 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
|
5571 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
|
5572 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
|
5573 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
|
5574 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
|
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 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
|
5577 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
|
5578 |
b32d82817493
* 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 fi |
b32d82817493
* 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 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
|
5581 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
|
5582 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
|
5583 -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
|
5584 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
|
5585 #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
|
5586 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
|
5587 |
b32d82817493
* 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 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
|
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 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
|
5591 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
|
5592 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5593 |
b32d82817493
* 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 fi |
b32d82817493
* 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 |
b32d82817493
* 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 "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
27910 | 5597 echo "configure:5598: 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
|
5598 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
|
5599 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
|
5600 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
|
5601 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
|
5602 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
|
5603 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
|
5604 cat > conftest.$ac_ext <<EOF |
27910 | 5605 #line 5606 "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
|
5606 #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
|
5607 /* 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
|
5608 /* 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
|
5609 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
|
5610 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
|
5611 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5612 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
|
5613 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
|
5614 ; 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
|
5615 EOF |
27910 | 5616 if { (eval echo configure:5617: \"$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
|
5617 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
|
5618 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
|
5619 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
|
5620 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
|
5621 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
|
5622 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
|
5623 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
|
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 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
|
5626 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
|
5627 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5628 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5629 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
|
5630 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
|
5631 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
|
5632 -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
|
5633 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
|
5634 #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
|
5635 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
|
5636 |
b32d82817493
* 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 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
|
5638 |
b32d82817493
* 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 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
|
5640 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
|
5641 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
27910 | 5642 echo "configure:5643: 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
|
5643 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
|
5644 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
|
5645 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
|
5646 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
|
5647 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
|
5648 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
|
5649 cat > conftest.$ac_ext <<EOF |
27910 | 5650 #line 5651 "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
|
5651 #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
|
5652 /* 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
|
5653 /* 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
|
5654 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
|
5655 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
|
5656 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5657 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
|
5658 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
|
5659 ; 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
|
5660 EOF |
27910 | 5661 if { (eval echo configure:5662: \"$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
|
5662 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
|
5663 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
|
5664 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
|
5665 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
|
5666 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
|
5667 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
|
5668 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
|
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 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
|
5671 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
|
5672 |
b32d82817493
* 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 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5674 if 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
|
5675 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
|
5676 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
|
5677 -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
|
5678 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
|
5679 #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
|
5680 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
|
5681 |
b32d82817493
* 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 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
|
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 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5685 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
|
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 fi |
b32d82817493
* 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 |
b32d82817493
* 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 fi |
b32d82817493
* 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 |
b32d82817493
* 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 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
|
5693 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
|
5694 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
|
5695 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
|
5696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27910 | 5697 echo "configure:5698: 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
|
5698 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
|
5699 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
|
5700 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
|
5701 cat > conftest.$ac_ext <<EOF |
27910 | 5702 #line 5703 "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
|
5703 #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
|
5704 #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
|
5705 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
|
5706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27910 | 5707 { (eval echo configure:5708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5708 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
|
5709 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
|
5710 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
|
5711 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
|
5712 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5713 echo "$ac_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
|
5714 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
|
5715 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
|
5716 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5717 eval "ac_cv_header_$ac_safe=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
|
5718 fi |
b32d82817493
* 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 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
|
5720 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5721 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
|
5722 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
|
5723 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
|
5724 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
|
5725 #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
|
5726 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
|
5727 |
b32d82817493
* 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 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
|
5729 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
|
5730 fi |
b32d82817493
* 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 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
|
5732 |
b32d82817493
* 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 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
|
5734 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
|
5735 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
|
5736 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
|
5737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27910 | 5738 echo "configure:5739: 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
|
5739 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
|
5740 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
|
5741 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
|
5742 cat > conftest.$ac_ext <<EOF |
27910 | 5743 #line 5744 "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
|
5744 #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
|
5745 #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
|
5746 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
|
5747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27910 | 5748 { (eval echo configure:5749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5749 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
|
5750 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
|
5751 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
|
5752 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
|
5753 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
|
5754 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
|
5755 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
|
5756 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
|
5757 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
|
5758 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
|
5759 fi |
b32d82817493
* 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 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
|
5761 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5762 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
|
5763 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
|
5764 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
|
5765 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
|
5766 #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
|
5767 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5768 |
b32d82817493
* 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 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
|
5770 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
|
5771 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
|
5772 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
|
5773 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
|
5774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27910 | 5775 echo "configure:5776: 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
|
5776 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
|
5777 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
|
5778 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
|
5779 cat > conftest.$ac_ext <<EOF |
27910 | 5780 #line 5781 "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
|
5781 #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
|
5782 #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
|
5783 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
|
5784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27910 | 5785 { (eval echo configure:5786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5786 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
|
5787 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
|
5788 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
|
5789 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
|
5790 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
|
5791 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
|
5792 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
|
5793 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
|
5794 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
|
5795 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
|
5796 fi |
b32d82817493
* 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 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
|
5798 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5799 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
|
5800 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
|
5801 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
|
5802 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
|
5803 #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
|
5804 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5805 |
b32d82817493
* 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 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
|
5807 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
|
5808 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
|
5809 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
|
5810 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
|
5811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27910 | 5812 echo "configure:5813: 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
|
5813 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
|
5814 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
|
5815 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
|
5816 cat > conftest.$ac_ext <<EOF |
27910 | 5817 #line 5818 "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
|
5818 #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
|
5819 #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
|
5820 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
|
5821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27910 | 5822 { (eval echo configure:5823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5823 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
|
5824 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
|
5825 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
|
5826 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
|
5827 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
|
5828 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
|
5829 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
|
5830 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
|
5831 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
|
5832 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
|
5833 fi |
b32d82817493
* 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 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
|
5835 fi |
b32d82817493
* 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 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
|
5837 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
|
5838 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
|
5839 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
|
5840 #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
|
5841 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
|
5842 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5843 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
|
5844 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
|
5845 fi |
b32d82817493
* 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 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
|
5847 |
b32d82817493
* 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 fi |
b32d82817493
* 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 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
|
5850 |
b32d82817493
* 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 fi |
b32d82817493
* 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 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
|
5853 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5854 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
|
5855 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
|
5856 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
|
5857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27910 | 5858 echo "configure:5859: 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
|
5859 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
|
5860 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
|
5861 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
|
5862 cat > conftest.$ac_ext <<EOF |
27910 | 5863 #line 5864 "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
|
5864 #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
|
5865 #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
|
5866 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
|
5867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27910 | 5868 { (eval echo configure:5869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5869 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
|
5870 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
|
5871 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
|
5872 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
|
5873 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
|
5874 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
|
5875 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
|
5876 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
|
5877 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
|
5878 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
|
5879 fi |
b32d82817493
* 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 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
|
5881 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5882 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
|
5883 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
|
5884 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
|
5885 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
|
5886 #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
|
5887 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5888 |
b32d82817493
* 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 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
|
5890 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
|
5891 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
|
5892 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
|
5893 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
|
5894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27910 | 5895 echo "configure:5896: 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
|
5896 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
|
5897 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
|
5898 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
|
5899 cat > conftest.$ac_ext <<EOF |
27910 | 5900 #line 5901 "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
|
5901 #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
|
5902 #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
|
5903 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
|
5904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27910 | 5905 { (eval echo configure:5906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5906 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
|
5907 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
|
5908 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
|
5909 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
|
5910 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
|
5911 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
|
5912 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
|
5913 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
|
5914 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
|
5915 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
|
5916 fi |
b32d82817493
* 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 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
|
5918 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5919 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
|
5920 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
|
5921 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
|
5922 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
|
5923 #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
|
5924 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5925 |
b32d82817493
* 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 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
|
5927 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
|
5928 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
|
5929 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
|
5930 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
|
5931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27910 | 5932 echo "configure:5933: 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
|
5933 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
|
5934 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
|
5935 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
|
5936 cat > conftest.$ac_ext <<EOF |
27910 | 5937 #line 5938 "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
|
5938 #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
|
5939 #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
|
5940 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
|
5941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27910 | 5942 { (eval echo configure:5943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5943 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
|
5944 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
|
5945 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
|
5946 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
|
5947 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5948 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
|
5949 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
|
5950 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
|
5951 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
|
5952 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
|
5953 fi |
b32d82817493
* 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 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
|
5955 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5956 if 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
|
5957 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
|
5958 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
|
5959 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
|
5960 #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
|
5961 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
|
5962 |
b32d82817493
* 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 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
|
5964 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
|
5965 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5966 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
|
5967 |
b32d82817493
* 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 fi |
b32d82817493
* 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 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
|
5970 |
b32d82817493
* 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 fi |
b32d82817493
* 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 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
|
5973 |
b32d82817493
* 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 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
5975 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
|
5976 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
|
5977 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
|
5978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
27910 | 5979 echo "configure:5980: 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
|
5980 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
|
5981 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
|
5982 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
|
5983 cat > conftest.$ac_ext <<EOF |
27910 | 5984 #line 5985 "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
|
5985 #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
|
5986 #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
|
5987 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
|
5988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
27910 | 5989 { (eval echo configure:5990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5990 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
|
5991 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
|
5992 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
|
5993 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
|
5994 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
|
5995 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
|
5996 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
|
5997 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
|
5998 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
|
5999 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
|
6000 fi |
b32d82817493
* 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 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
|
6002 fi |
b32d82817493
* 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 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
|
6004 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
|
6005 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
|
6006 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
|
6007 #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
|
6008 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
|
6009 |
b32d82817493
* 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 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
|
6011 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
|
6012 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6013 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
|
6014 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6015 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6016 |
25897 | 6017 # Solaris requires -lintl if you want strerror (which calls dgettext) |
6018 # to return localized messages. | |
6019 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | |
27910 | 6020 echo "configure:6021: checking for dgettext in -lintl" >&5 |
25897 | 6021 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
6022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6023 echo $ac_n "(cached) $ac_c" 1>&6 | |
6024 else | |
6025 ac_save_LIBS="$LIBS" | |
6026 LIBS="-lintl $LIBS" | |
6027 cat > conftest.$ac_ext <<EOF | |
27910 | 6028 #line 6029 "configure" |
25897 | 6029 #include "confdefs.h" |
6030 /* Override any gcc2 internal prototype to avoid an error. */ | |
6031 /* We use char because int might match the return type of a gcc2 | |
6032 builtin and then its argument prototype would still apply. */ | |
6033 char dgettext(); | |
6034 | |
6035 int main() { | |
6036 dgettext() | |
6037 ; return 0; } | |
6038 EOF | |
27910 | 6039 if { (eval echo configure:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 6040 rm -rf conftest* |
6041 eval "ac_cv_lib_$ac_lib_var=yes" | |
6042 else | |
6043 echo "configure: failed program was:" >&5 | |
6044 cat conftest.$ac_ext >&5 | |
6045 rm -rf conftest* | |
6046 eval "ac_cv_lib_$ac_lib_var=no" | |
6047 fi | |
6048 rm -f conftest* | |
6049 LIBS="$ac_save_LIBS" | |
6050 | |
6051 fi | |
6052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6053 echo "$ac_t""yes" 1>&6 | |
6054 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6055 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6056 cat >> confdefs.h <<EOF | |
6057 #define $ac_tr_lib 1 | |
6058 EOF | |
6059 | |
6060 LIBS="-lintl $LIBS" | |
6061 | |
6062 else | |
6063 echo "$ac_t""no" 1>&6 | |
6064 fi | |
6065 | |
6066 | |
6067 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | |
27910 | 6068 echo "configure:6069: checking whether localtime caches TZ" >&5 |
25897 | 6069 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
6070 echo $ac_n "(cached) $ac_c" 1>&6 | |
6071 else | |
6072 if test x$ac_cv_func_tzset = xyes; then | |
6073 if test "$cross_compiling" = yes; then | |
6074 # If we have tzset, assume the worst when cross-compiling. | |
6075 emacs_cv_localtime_cache=yes | |
6076 else | |
6077 cat > conftest.$ac_ext <<EOF | |
27910 | 6078 #line 6079 "configure" |
25897 | 6079 #include "confdefs.h" |
6080 #include <time.h> | |
6081 extern char **environ; | |
6082 unset_TZ () | |
6083 { | |
6084 char **from, **to; | |
6085 for (to = from = environ; (*to = *from); from++) | |
6086 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
6087 to++; | |
6088 } | |
6089 char TZ_GMT0[] = "TZ=GMT0"; | |
6090 char TZ_PST8[] = "TZ=PST8"; | |
6091 main() | |
6092 { | |
6093 time_t now = time ((time_t *) 0); | |
6094 int hour_GMT0, hour_unset; | |
6095 if (putenv (TZ_GMT0) != 0) | |
6096 exit (1); | |
6097 hour_GMT0 = localtime (&now)->tm_hour; | |
6098 unset_TZ (); | |
6099 hour_unset = localtime (&now)->tm_hour; | |
6100 if (putenv (TZ_PST8) != 0) | |
6101 exit (1); | |
6102 if (localtime (&now)->tm_hour == hour_GMT0) | |
6103 exit (1); | |
6104 unset_TZ (); | |
6105 if (localtime (&now)->tm_hour != hour_unset) | |
6106 exit (1); | |
6107 exit (0); | |
6108 } | |
6109 EOF | |
27910 | 6110 if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 6111 then |
6112 emacs_cv_localtime_cache=no | |
6113 else | |
6114 echo "configure: failed program was:" >&5 | |
6115 cat conftest.$ac_ext >&5 | |
6116 rm -fr conftest* | |
6117 emacs_cv_localtime_cache=yes | |
6118 fi | |
6119 rm -fr conftest* | |
6120 fi | |
6121 | |
6122 else | |
6123 # If we lack tzset, report that localtime does not cache TZ, | |
6124 # since we can't invalidate the cache if we don't have tzset. | |
6125 emacs_cv_localtime_cache=no | |
6126 fi | |
6127 fi | |
6128 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6 | |
6129 if test $emacs_cv_localtime_cache = yes; then | |
6130 cat >> confdefs.h <<\EOF | |
6131 #define LOCALTIME_CACHE 1 | |
6132 EOF | |
6133 | |
6134 fi | |
6135 | |
6136 if test "x$HAVE_TIMEVAL" = xyes; then | |
6137 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | |
27910 | 6138 echo "configure:6139: checking whether gettimeofday can accept two arguments" >&5 |
25897 | 6139 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
6140 echo $ac_n "(cached) $ac_c" 1>&6 | |
6141 else | |
6142 cat > conftest.$ac_ext <<EOF | |
27910 | 6143 #line 6144 "configure" |
25897 | 6144 #include "confdefs.h" |
6145 | |
6146 #ifdef TIME_WITH_SYS_TIME | |
6147 #include <sys/time.h> | |
6148 #include <time.h> | |
6149 #else | |
6150 #ifdef HAVE_SYS_TIME_H | |
6151 #include <sys/time.h> | |
6152 #else | |
6153 #include <time.h> | |
6154 #endif | |
6155 #endif | |
6156 | |
6157 int main() { | |
6158 | |
6159 struct timeval time; | |
6160 struct timezone dummy; | |
6161 gettimeofday (&time, &dummy); | |
6162 | |
6163 ; return 0; } | |
6164 EOF | |
27910 | 6165 if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 6166 rm -rf conftest* |
6167 emacs_cv_gettimeofday_two_arguments=yes | |
6168 else | |
6169 echo "configure: failed program was:" >&5 | |
6170 cat conftest.$ac_ext >&5 | |
6171 rm -rf conftest* | |
6172 emacs_cv_gettimeofday_two_arguments=no | |
6173 fi | |
6174 rm -f conftest* | |
6175 fi | |
6176 | |
6177 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 | |
6178 if test $emacs_cv_gettimeofday_two_arguments = no; then | |
6179 cat >> confdefs.h <<\EOF | |
6180 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
6181 EOF | |
6182 | |
6183 fi | |
6184 fi | |
6185 | |
6186 ok_so_far=yes | |
6187 echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
27910 | 6188 echo "configure:6189: checking for socket" >&5 |
25897 | 6189 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
6190 echo $ac_n "(cached) $ac_c" 1>&6 | |
6191 else | |
6192 cat > conftest.$ac_ext <<EOF | |
27910 | 6193 #line 6194 "configure" |
25897 | 6194 #include "confdefs.h" |
6195 /* System header to define __stub macros and hopefully few prototypes, | |
6196 which can conflict with char socket(); below. */ | |
6197 #include <assert.h> | |
6198 /* Override any gcc2 internal prototype to avoid an error. */ | |
6199 /* We use char because int might match the return type of a gcc2 | |
6200 builtin and then its argument prototype would still apply. */ | |
6201 char socket(); | |
6202 | |
6203 int main() { | |
6204 | |
6205 /* The GNU C library defines this for functions which it implements | |
6206 to always fail with ENOSYS. Some functions are actually named | |
6207 something starting with __ and the normal name is an alias. */ | |
6208 #if defined (__stub_socket) || defined (__stub___socket) | |
6209 choke me | |
6210 #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
|
6211 socket(); |
25897 | 6212 #endif |
6213 | |
6214 ; return 0; } | |
6215 EOF | |
27910 | 6216 if { (eval echo configure:6217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 6217 rm -rf conftest* |
6218 eval "ac_cv_func_socket=yes" | |
6219 else | |
6220 echo "configure: failed program was:" >&5 | |
6221 cat conftest.$ac_ext >&5 | |
6222 rm -rf conftest* | |
6223 eval "ac_cv_func_socket=no" | |
6224 fi | |
6225 rm -f conftest* | |
6226 fi | |
6227 | |
6228 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
6229 echo "$ac_t""yes" 1>&6 | |
6230 : | |
6231 else | |
6232 echo "$ac_t""no" 1>&6 | |
6233 ok_so_far=no | |
6234 fi | |
6235 | |
6236 if test $ok_so_far = yes; then | |
6237 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | |
6238 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | |
27910 | 6239 echo "configure:6240: checking for netinet/in.h" >&5 |
25897 | 6240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6241 echo $ac_n "(cached) $ac_c" 1>&6 | |
6242 else | |
6243 cat > conftest.$ac_ext <<EOF | |
27910 | 6244 #line 6245 "configure" |
25897 | 6245 #include "confdefs.h" |
6246 #include <netinet/in.h> | |
6247 EOF | |
6248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27910 | 6249 { (eval echo configure:6250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 6250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 6251 if test -z "$ac_err"; then |
6252 rm -rf conftest* | |
6253 eval "ac_cv_header_$ac_safe=yes" | |
6254 else | |
6255 echo "$ac_err" >&5 | |
6256 echo "configure: failed program was:" >&5 | |
6257 cat conftest.$ac_ext >&5 | |
6258 rm -rf conftest* | |
6259 eval "ac_cv_header_$ac_safe=no" | |
6260 fi | |
6261 rm -f conftest* | |
6262 fi | |
6263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6264 echo "$ac_t""yes" 1>&6 | |
6265 : | |
6266 else | |
6267 echo "$ac_t""no" 1>&6 | |
6268 ok_so_far=no | |
6269 fi | |
6270 | |
6271 fi | |
6272 if test $ok_so_far = yes; then | |
6273 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | |
6274 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | |
27910 | 6275 echo "configure:6276: checking for arpa/inet.h" >&5 |
25897 | 6276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6277 echo $ac_n "(cached) $ac_c" 1>&6 | |
6278 else | |
6279 cat > conftest.$ac_ext <<EOF | |
27910 | 6280 #line 6281 "configure" |
25897 | 6281 #include "confdefs.h" |
6282 #include <arpa/inet.h> | |
6283 EOF | |
6284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27910 | 6285 { (eval echo configure:6286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 6286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 6287 if test -z "$ac_err"; then |
6288 rm -rf conftest* | |
6289 eval "ac_cv_header_$ac_safe=yes" | |
6290 else | |
6291 echo "$ac_err" >&5 | |
6292 echo "configure: failed program was:" >&5 | |
6293 cat conftest.$ac_ext >&5 | |
6294 rm -rf conftest* | |
6295 eval "ac_cv_header_$ac_safe=no" | |
6296 fi | |
6297 rm -f conftest* | |
6298 fi | |
6299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6300 echo "$ac_t""yes" 1>&6 | |
6301 : | |
6302 else | |
6303 echo "$ac_t""no" 1>&6 | |
6304 ok_so_far=no | |
6305 fi | |
6306 | |
6307 fi | |
6308 if test $ok_so_far = yes; then | |
6309 cat >> confdefs.h <<\EOF | |
6310 #define HAVE_INET_SOCKETS 1 | |
6311 EOF | |
6312 | |
6313 fi | |
6314 | |
6315 if test -f /usr/lpp/X11/bin/smt.exp; then | |
6316 cat >> confdefs.h <<\EOF | |
6317 #define HAVE_AIX_SMT_EXP 1 | |
6318 EOF | |
6319 | |
6320 fi | |
6321 | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6322 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
27910 | 6323 echo "configure:6324: checking whether system supports dynamic ptys" >&5 |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6324 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
|
6325 echo "$ac_t""yes" 1>&6 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6326 cat >> confdefs.h <<\EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6327 #define HAVE_DEV_PTMX 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6328 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6329 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6330 else |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6331 echo "$ac_t""no" 1>&6 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6332 fi |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
6333 |
27675 | 6334 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
27910 | 6335 echo "configure:6336: checking for pid_t" >&5 |
27675 | 6336 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
6337 echo $ac_n "(cached) $ac_c" 1>&6 | |
6338 else | |
6339 cat > conftest.$ac_ext <<EOF | |
27910 | 6340 #line 6341 "configure" |
27675 | 6341 #include "confdefs.h" |
6342 #include <sys/types.h> | |
6343 #if STDC_HEADERS | |
6344 #include <stdlib.h> | |
6345 #include <stddef.h> | |
6346 #endif | |
6347 EOF | |
6348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6349 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
6350 rm -rf conftest* | |
6351 ac_cv_type_pid_t=yes | |
6352 else | |
6353 rm -rf conftest* | |
6354 ac_cv_type_pid_t=no | |
6355 fi | |
6356 rm -f conftest* | |
6357 | |
6358 fi | |
6359 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
6360 if test $ac_cv_type_pid_t = no; then | |
6361 cat >> confdefs.h <<\EOF | |
6362 #define pid_t int | |
6363 EOF | |
6364 | |
6365 fi | |
6366 | |
6367 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
6368 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
27910 | 6369 echo "configure:6370: checking for vfork.h" >&5 |
27675 | 6370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6371 echo $ac_n "(cached) $ac_c" 1>&6 | |
6372 else | |
6373 cat > conftest.$ac_ext <<EOF | |
27910 | 6374 #line 6375 "configure" |
27675 | 6375 #include "confdefs.h" |
6376 #include <vfork.h> | |
6377 EOF | |
6378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
27910 | 6379 { (eval echo configure:6380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27675 | 6380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6381 if test -z "$ac_err"; then | |
6382 rm -rf conftest* | |
6383 eval "ac_cv_header_$ac_safe=yes" | |
6384 else | |
6385 echo "$ac_err" >&5 | |
6386 echo "configure: failed program was:" >&5 | |
6387 cat conftest.$ac_ext >&5 | |
6388 rm -rf conftest* | |
6389 eval "ac_cv_header_$ac_safe=no" | |
6390 fi | |
6391 rm -f conftest* | |
6392 fi | |
6393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6394 echo "$ac_t""yes" 1>&6 | |
6395 cat >> confdefs.h <<\EOF | |
6396 #define HAVE_VFORK_H 1 | |
6397 EOF | |
6398 | |
6399 else | |
6400 echo "$ac_t""no" 1>&6 | |
6401 fi | |
6402 | |
6403 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
27910 | 6404 echo "configure:6405: checking for working vfork" >&5 |
27675 | 6405 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
6406 echo $ac_n "(cached) $ac_c" 1>&6 | |
6407 else | |
6408 if test "$cross_compiling" = yes; then | |
6409 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
27910 | 6410 echo "configure:6411: checking for vfork" >&5 |
27675 | 6411 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
6412 echo $ac_n "(cached) $ac_c" 1>&6 | |
6413 else | |
6414 cat > conftest.$ac_ext <<EOF | |
27910 | 6415 #line 6416 "configure" |
27675 | 6416 #include "confdefs.h" |
6417 /* System header to define __stub macros and hopefully few prototypes, | |
6418 which can conflict with char vfork(); below. */ | |
6419 #include <assert.h> | |
6420 /* Override any gcc2 internal prototype to avoid an error. */ | |
6421 /* We use char because int might match the return type of a gcc2 | |
6422 builtin and then its argument prototype would still apply. */ | |
6423 char vfork(); | |
6424 | |
6425 int main() { | |
6426 | |
6427 /* The GNU C library defines this for functions which it implements | |
6428 to always fail with ENOSYS. Some functions are actually named | |
6429 something starting with __ and the normal name is an alias. */ | |
6430 #if defined (__stub_vfork) || defined (__stub___vfork) | |
6431 choke me | |
6432 #else | |
6433 vfork(); | |
6434 #endif | |
6435 | |
6436 ; return 0; } | |
6437 EOF | |
27910 | 6438 if { (eval echo configure:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
27675 | 6439 rm -rf conftest* |
6440 eval "ac_cv_func_vfork=yes" | |
6441 else | |
6442 echo "configure: failed program was:" >&5 | |
6443 cat conftest.$ac_ext >&5 | |
6444 rm -rf conftest* | |
6445 eval "ac_cv_func_vfork=no" | |
6446 fi | |
6447 rm -f conftest* | |
6448 fi | |
6449 | |
6450 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
6451 echo "$ac_t""yes" 1>&6 | |
6452 : | |
6453 else | |
6454 echo "$ac_t""no" 1>&6 | |
6455 fi | |
6456 | |
6457 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6458 else | |
6459 cat > conftest.$ac_ext <<EOF | |
27910 | 6460 #line 6461 "configure" |
27675 | 6461 #include "confdefs.h" |
6462 /* Thanks to Paul Eggert for this test. */ | |
6463 #include <stdio.h> | |
6464 #include <sys/types.h> | |
6465 #include <sys/stat.h> | |
6466 #ifdef HAVE_UNISTD_H | |
6467 #include <unistd.h> | |
6468 #endif | |
6469 #ifdef HAVE_VFORK_H | |
6470 #include <vfork.h> | |
6471 #endif | |
6472 /* On some sparc systems, changes by the child to local and incoming | |
6473 argument registers are propagated back to the parent. | |
6474 The compiler is told about this with #include <vfork.h>, | |
6475 but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
6476 Test for this by using a static variable whose address | |
6477 is put into a register that is clobbered by the vfork. */ | |
6478 static | |
6479 #ifdef __cplusplus | |
6480 sparc_address_test (int arg) | |
6481 #else | |
6482 sparc_address_test (arg) int arg; | |
6483 #endif | |
6484 { | |
6485 static pid_t child; | |
6486 if (!child) { | |
6487 child = vfork (); | |
6488 if (child < 0) { | |
6489 perror ("vfork"); | |
6490 _exit(2); | |
6491 } | |
6492 if (!child) { | |
6493 arg = getpid(); | |
6494 write(-1, "", 0); | |
6495 _exit (arg); | |
6496 } | |
6497 } | |
6498 } | |
6499 main() { | |
6500 pid_t parent = getpid (); | |
6501 pid_t child; | |
6502 | |
6503 sparc_address_test (); | |
6504 | |
6505 child = vfork (); | |
6506 | |
6507 if (child == 0) { | |
6508 /* Here is another test for sparc vfork register problems. | |
6509 This test uses lots of local variables, at least | |
6510 as many local variables as main has allocated so far | |
6511 including compiler temporaries. 4 locals are enough for | |
6512 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
6513 A buggy compiler should reuse the register of parent | |
6514 for one of the local variables, since it will think that | |
6515 parent can't possibly be used any more in this routine. | |
6516 Assigning to the local variable will thus munge parent | |
6517 in the parent process. */ | |
6518 pid_t | |
6519 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6520 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6521 /* Convince the compiler that p..p7 are live; otherwise, it might | |
6522 use the same hardware register for all 8 local variables. */ | |
6523 if (p != p1 || p != p2 || p != p3 || p != p4 | |
6524 || p != p5 || p != p6 || p != p7) | |
6525 _exit(1); | |
6526 | |
6527 /* On some systems (e.g. IRIX 3.3), | |
6528 vfork doesn't separate parent from child file descriptors. | |
6529 If the child closes a descriptor before it execs or exits, | |
6530 this munges the parent's descriptor as well. | |
6531 Test for this by closing stdout in the child. */ | |
6532 _exit(close(fileno(stdout)) != 0); | |
6533 } else { | |
6534 int status; | |
6535 struct stat st; | |
6536 | |
6537 while (wait(&status) != child) | |
6538 ; | |
6539 exit( | |
6540 /* Was there some problem with vforking? */ | |
6541 child < 0 | |
6542 | |
6543 /* Did the child fail? (This shouldn't happen.) */ | |
6544 || status | |
6545 | |
6546 /* Did the vfork/compiler bug occur? */ | |
6547 || parent != getpid() | |
6548 | |
6549 /* Did the file descriptor bug occur? */ | |
6550 || fstat(fileno(stdout), &st) != 0 | |
6551 ); | |
6552 } | |
6553 } | |
6554 EOF | |
27910 | 6555 if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
27675 | 6556 then |
6557 ac_cv_func_vfork_works=yes | |
6558 else | |
6559 echo "configure: failed program was:" >&5 | |
6560 cat conftest.$ac_ext >&5 | |
6561 rm -fr conftest* | |
6562 ac_cv_func_vfork_works=no | |
6563 fi | |
6564 rm -fr conftest* | |
6565 fi | |
6566 | |
6567 fi | |
6568 | |
6569 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
6570 if test $ac_cv_func_vfork_works = no; then | |
6571 cat >> confdefs.h <<\EOF | |
6572 #define vfork fork | |
6573 EOF | |
6574 | |
6575 fi | |
6576 | |
6577 | |
25897 | 6578 # Set up the CFLAGS for real compilation, so we can substitute it. |
6579 CFLAGS="$REAL_CFLAGS" | |
6580 | |
6581 #### Find out which version of Emacs this is. | |
6582 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
6583 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
6584 if test x"${version}" = x; then | |
6585 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; } | |
6586 fi | |
6587 | |
6588 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
6589 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
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 | |
6618 | |
6619 | |
6620 | |
6621 cat >> confdefs.h <<EOF | |
6622 #define EMACS_CONFIGURATION "${canonical}" | |
6623 EOF | |
6624 | |
6625 cat >> confdefs.h <<EOF | |
6626 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
6627 EOF | |
6628 | |
6629 cat >> confdefs.h <<EOF | |
6630 #define config_machfile "${machfile}" | |
6631 EOF | |
6632 | |
6633 cat >> confdefs.h <<EOF | |
6634 #define config_opsysfile "${opsysfile}" | |
6635 EOF | |
6636 | |
6637 cat >> confdefs.h <<EOF | |
6638 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
6639 EOF | |
6640 | |
6641 cat >> confdefs.h <<EOF | |
6642 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
6643 EOF | |
6644 | |
6645 cat >> confdefs.h <<EOF | |
6646 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
6647 EOF | |
6648 | |
6649 cat >> confdefs.h <<EOF | |
6650 #define UNEXEC_SRC ${UNEXEC_SRC} | |
6651 EOF | |
6652 | |
6653 | |
6654 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
6655 cat >> confdefs.h <<\EOF | |
6656 #define HAVE_X_WINDOWS 1 | |
6657 EOF | |
6658 | |
6659 fi | |
6660 if test "${USE_X_TOOLKIT}" != "none" ; then | |
6661 cat >> confdefs.h <<\EOF | |
6662 #define USE_X_TOOLKIT 1 | |
6663 EOF | |
6664 | |
6665 fi | |
6666 if test "${HAVE_X11}" = "yes" ; then | |
6667 cat >> confdefs.h <<\EOF | |
6668 #define HAVE_X11 1 | |
6669 EOF | |
6670 | |
6671 fi | |
6672 if test "${HAVE_XFREE386}" = "yes" ; then | |
6673 cat >> confdefs.h <<\EOF | |
6674 #define HAVE_XFREE386 1 | |
6675 EOF | |
6676 | |
6677 fi | |
6678 if test "${HAVE_MENUS}" = "yes" ; then | |
6679 cat >> confdefs.h <<\EOF | |
6680 #define HAVE_MENUS 1 | |
6681 EOF | |
6682 | |
6683 fi | |
6684 if test "${GNU_MALLOC}" = "yes" ; then | |
6685 cat >> confdefs.h <<\EOF | |
6686 #define GNU_MALLOC 1 | |
6687 EOF | |
6688 | |
6689 fi | |
6690 if test "${REL_ALLOC}" = "yes" ; then | |
6691 cat >> confdefs.h <<\EOF | |
6692 #define REL_ALLOC 1 | |
6693 EOF | |
6694 | |
6695 fi | |
6696 | |
6697 #### Report on what we decided to do. | |
6698 echo " | |
6699 Configured for \`${canonical}'. | |
6700 | |
6701 Where should the build process find the source code? ${srcdir} | |
6702 What operating system and machine description files should Emacs use? | |
6703 \`${opsysfile}' and \`${machfile}' | |
6704 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
6705 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
6706 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} | |
6707 What window system should Emacs use? ${window_system} | |
6708 What toolkit should Emacs use? ${USE_X_TOOLKIT}" | |
6709 | |
6710 if test -n "${x_includes}"; then | |
6711 echo " Where do we find X Windows header files? ${x_includes}" | |
6712 else | |
6713 echo " Where do we find X Windows header files? Standard dirs" | |
6714 fi | |
6715 if test -n "${x_libraries}"; then | |
6716 echo " Where do we find X Windows libraries? ${x_libraries}" | |
6717 else | |
6718 echo " Where do we find X Windows libraries? Standard dirs" | |
6719 fi | |
6720 | |
6721 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
6722 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
6723 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
6724 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
6725 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
6726 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
6727 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
6728 echo | |
6729 | |
6730 # Remove any trailing slashes in these variables. | |
6731 test "${prefix}" != NONE && | |
6732 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
6733 test "${exec_prefix}" != NONE && | |
6734 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
6735 | |
6736 trap '' 1 2 15 | |
6737 cat > confcache <<\EOF | |
6738 # This file is a shell script that caches the results of configure | |
6739 # tests run on this system so they can be shared between configure | |
6740 # scripts and configure runs. It is not useful on other systems. | |
6741 # If it contains results you don't want to keep, you may remove or edit it. | |
6742 # | |
6743 # By default, configure uses ./config.cache as the cache file, | |
6744 # creating it if it does not exist already. You can give configure | |
6745 # the --cache-file=FILE option to use a different cache file; that is | |
6746 # what configure does when it calls configure scripts in | |
6747 # subdirectories, so they share the cache. | |
6748 # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6749 # config.status only pays attention to the cache file if you give it the | |
6750 # --recheck option to rerun configure. | |
6751 # | |
6752 EOF | |
6753 # The following way of writing the cache mishandles newlines in values, | |
6754 # but we know of no workaround that is simple, portable, and efficient. | |
6755 # So, don't put newlines in cache variables' values. | |
6756 # Ultrix sh set writes to stderr and can't be redirected directly, | |
6757 # and sets the high bit in the cache file unless we assign to the vars. | |
6758 (set) 2>&1 | | |
6759 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6760 *ac_space=\ *) | |
6761 # `set' does not quote correctly, so add quotes (double-quote substitution | |
6762 # turns \\\\ into \\, and sed turns \\ into \). | |
6763 sed -n \ | |
6764 -e "s/'/'\\\\''/g" \ | |
6765 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6766 ;; | |
6767 *) | |
6768 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6769 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6770 ;; | |
6771 esac >> confcache | |
6772 if cmp -s $cache_file confcache; then | |
6773 : | |
6774 else | |
6775 if test -w $cache_file; then | |
6776 echo "updating cache $cache_file" | |
6777 cat confcache > $cache_file | |
6778 else | |
6779 echo "not updating unwritable cache $cache_file" | |
6780 fi | |
6781 fi | |
6782 rm -f confcache | |
6783 | |
6784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
6785 | |
6786 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6787 # Let make expand exec_prefix. | |
6788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6789 | |
6790 # Any assignment to VPATH causes Sun make to only execute | |
6791 # the first set of double-colon rules, so remove it if not needed. | |
6792 # If there is a colon in the path, we need to keep it. | |
6793 if test "x$srcdir" = x.; then | |
6794 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
6795 fi | |
6796 | |
6797 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
6798 | |
6799 DEFS=-DHAVE_CONFIG_H | |
6800 | |
6801 # Without the "./", some shells look in PATH for config.status. | |
6802 : ${CONFIG_STATUS=./config.status} | |
6803 | |
6804 echo creating $CONFIG_STATUS | |
6805 rm -f $CONFIG_STATUS | |
6806 cat > $CONFIG_STATUS <<EOF | |
6807 #! /bin/sh | |
6808 # Generated automatically by configure. | |
6809 # Run this file to recreate the current configuration. | |
6810 # This directory was configured as follows, | |
6811 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
6812 # | |
6813 # $0 $ac_configure_args | |
6814 # | |
6815 # Compiler output produced by configure, useful for debugging | |
6816 # configure, is in ./config.log if it exists. | |
6817 | |
6818 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
6819 for ac_option | |
6820 do | |
6821 case "\$ac_option" in | |
6822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6823 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
6824 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
6825 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
27205 | 6826 echo "$CONFIG_STATUS generated by autoconf version 2.13" |
25897 | 6827 exit 0 ;; |
6828 -help | --help | --hel | --he | --h) | |
6829 echo "\$ac_cs_usage"; exit 0 ;; | |
6830 *) echo "\$ac_cs_usage"; exit 1 ;; | |
6831 esac | |
6832 done | |
6833 | |
6834 ac_given_srcdir=$srcdir | |
6835 ac_given_INSTALL="$INSTALL" | |
6836 | |
6837 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
6838 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
6839 leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
6840 EOF | |
6841 cat >> $CONFIG_STATUS <<EOF | |
6842 | |
6843 # Protect against being on the right side of a sed subst in config.status. | |
6844 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
6845 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
6846 $ac_vpsub | |
6847 $extrasub | |
27205 | 6848 s%@SHELL@%$SHELL%g |
25897 | 6849 s%@CFLAGS@%$CFLAGS%g |
6850 s%@CPPFLAGS@%$CPPFLAGS%g | |
6851 s%@CXXFLAGS@%$CXXFLAGS%g | |
27205 | 6852 s%@FFLAGS@%$FFLAGS%g |
25897 | 6853 s%@DEFS@%$DEFS%g |
6854 s%@LDFLAGS@%$LDFLAGS%g | |
6855 s%@LIBS@%$LIBS%g | |
6856 s%@exec_prefix@%$exec_prefix%g | |
6857 s%@prefix@%$prefix%g | |
6858 s%@program_transform_name@%$program_transform_name%g | |
6859 s%@bindir@%$bindir%g | |
6860 s%@sbindir@%$sbindir%g | |
6861 s%@libexecdir@%$libexecdir%g | |
6862 s%@datadir@%$datadir%g | |
6863 s%@sysconfdir@%$sysconfdir%g | |
6864 s%@sharedstatedir@%$sharedstatedir%g | |
6865 s%@localstatedir@%$localstatedir%g | |
6866 s%@libdir@%$libdir%g | |
6867 s%@includedir@%$includedir%g | |
6868 s%@oldincludedir@%$oldincludedir%g | |
6869 s%@infodir@%$infodir%g | |
6870 s%@mandir@%$mandir%g | |
6871 s%@host@%$host%g | |
6872 s%@host_alias@%$host_alias%g | |
6873 s%@host_cpu@%$host_cpu%g | |
6874 s%@host_vendor@%$host_vendor%g | |
6875 s%@host_os@%$host_os%g | |
6876 s%@CC@%$CC%g | |
6877 s%@LN_S@%$LN_S%g | |
6878 s%@CPP@%$CPP%g | |
6879 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
27205 | 6880 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
25897 | 6881 s%@INSTALL_DATA@%$INSTALL_DATA%g |
6882 s%@YACC@%$YACC%g | |
6883 s%@SET_MAKE@%$SET_MAKE%g | |
6884 s%@ALLOCA@%$ALLOCA%g | |
6885 s%@liblockfile@%$liblockfile%g | |
6886 s%@version@%$version%g | |
6887 s%@configuration@%$configuration%g | |
6888 s%@canonical@%$canonical%g | |
6889 s%@srcdir@%$srcdir%g | |
6890 s%@lispdir@%$lispdir%g | |
6891 s%@locallisppath@%$locallisppath%g | |
6892 s%@lisppath@%$lisppath%g | |
6893 s%@x_default_search_path@%$x_default_search_path%g | |
6894 s%@etcdir@%$etcdir%g | |
6895 s%@archlibdir@%$archlibdir%g | |
6896 s%@docdir@%$docdir%g | |
6897 s%@bitmapdir@%$bitmapdir%g | |
6898 s%@c_switch_system@%$c_switch_system%g | |
6899 s%@c_switch_machine@%$c_switch_machine%g | |
6900 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g | |
6901 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g | |
6902 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g | |
6903 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g | |
6904 s%@machfile@%$machfile%g | |
6905 s%@opsysfile@%$opsysfile%g | |
6906 s%@RANLIB@%$RANLIB%g | |
6907 | |
6908 CEOF | |
6909 EOF | |
6910 | |
6911 cat >> $CONFIG_STATUS <<\EOF | |
6912 | |
6913 # Split the substitutions into bite-sized pieces for seds with | |
6914 # small command number limits, like on Digital OSF/1 and HP-UX. | |
6915 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
6916 ac_file=1 # Number of current file. | |
6917 ac_beg=1 # First line for current file. | |
6918 ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6919 ac_more_lines=: | |
6920 ac_sed_cmds="" | |
6921 while $ac_more_lines; do | |
6922 if test $ac_beg -gt 1; then | |
6923 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6924 else | |
6925 sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6926 fi | |
6927 if test ! -s conftest.s$ac_file; then | |
6928 ac_more_lines=false | |
6929 rm -f conftest.s$ac_file | |
6930 else | |
6931 if test -z "$ac_sed_cmds"; then | |
6932 ac_sed_cmds="sed -f conftest.s$ac_file" | |
6933 else | |
6934 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
6935 fi | |
6936 ac_file=`expr $ac_file + 1` | |
6937 ac_beg=$ac_end | |
6938 ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
6939 fi | |
6940 done | |
6941 if test -z "$ac_sed_cmds"; then | |
6942 ac_sed_cmds=cat | |
6943 fi | |
6944 EOF | |
6945 | |
6946 cat >> $CONFIG_STATUS <<EOF | |
6947 | |
6948 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
6949 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
6950 leim/Makefile"} | |
6951 EOF | |
6952 cat >> $CONFIG_STATUS <<\EOF | |
6953 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
6954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6955 case "$ac_file" in | |
6956 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6957 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6958 *) ac_file_in="${ac_file}.in" ;; | |
6959 esac | |
6960 | |
6961 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
6962 | |
6963 # Remove last slash and all that follows it. Not all systems have dirname. | |
6964 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6965 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6966 # The file is in a subdirectory. | |
6967 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6968 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
6969 # A "../" for each directory in $ac_dir_suffix. | |
6970 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
6971 else | |
6972 ac_dir_suffix= ac_dots= | |
6973 fi | |
6974 | |
6975 case "$ac_given_srcdir" in | |
6976 .) srcdir=. | |
6977 if test -z "$ac_dots"; then top_srcdir=. | |
6978 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6979 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
6980 *) # Relative path. | |
6981 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
6982 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6983 esac | |
6984 | |
6985 case "$ac_given_INSTALL" in | |
6986 [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6987 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
6988 esac | |
6989 | |
6990 echo creating "$ac_file" | |
6991 rm -f "$ac_file" | |
6992 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6993 case "$ac_file" in | |
6994 *Makefile*) ac_comsub="1i\\ | |
6995 # $configure_input" ;; | |
6996 *) ac_comsub= ;; | |
6997 esac | |
6998 | |
6999 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
7000 sed -e "$ac_comsub | |
7001 s%@configure_input@%$configure_input%g | |
7002 s%@srcdir@%$srcdir%g | |
7003 s%@top_srcdir@%$top_srcdir%g | |
7004 s%@INSTALL@%$INSTALL%g | |
7005 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
7006 fi; done | |
7007 rm -f conftest.s* | |
7008 | |
7009 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7010 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7011 # | |
7012 # ac_d sets the value in "#define NAME VALUE" lines. | |
7013 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
7014 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
7015 ac_dC='\3' | |
7016 ac_dD='%g' | |
7017 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
7018 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7019 ac_uB='\([ ]\)%\1#\2define\3' | |
7020 ac_uC=' ' | |
7021 ac_uD='\4%g' | |
7022 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7023 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7024 ac_eB='$%\1#\2define\3' | |
7025 ac_eC=' ' | |
7026 ac_eD='%g' | |
7027 | |
7028 if test "${CONFIG_HEADERS+set}" != set; then | |
7029 EOF | |
7030 cat >> $CONFIG_STATUS <<EOF | |
7031 CONFIG_HEADERS="src/config.h:src/config.in" | |
7032 EOF | |
7033 cat >> $CONFIG_STATUS <<\EOF | |
7034 fi | |
7035 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
7036 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7037 case "$ac_file" in | |
7038 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
7039 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
7040 *) ac_file_in="${ac_file}.in" ;; | |
7041 esac | |
7042 | |
7043 echo creating $ac_file | |
7044 | |
7045 rm -f conftest.frag conftest.in conftest.out | |
7046 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
7047 cat $ac_file_inputs > conftest.in | |
7048 | |
7049 EOF | |
7050 | |
7051 # Transform confdefs.h into a sed script conftest.vals that substitutes | |
7052 # the proper values into config.h.in to produce config.h. And first: | |
7053 # Protect against being on the right side of a sed subst in config.status. | |
7054 # Protect against being in an unquoted here document in config.status. | |
7055 rm -f conftest.vals | |
7056 cat > conftest.hdr <<\EOF | |
7057 s/[\\&%]/\\&/g | |
7058 s%[\\$`]%\\&%g | |
7059 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
7060 s%ac_d%ac_u%gp | |
7061 s%ac_u%ac_e%gp | |
7062 EOF | |
7063 sed -n -f conftest.hdr confdefs.h > conftest.vals | |
7064 rm -f conftest.hdr | |
7065 | |
7066 # This sed command replaces #undef with comments. This is necessary, for | |
7067 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7068 # on some systems where configure will not decide to define it. | |
7069 cat >> conftest.vals <<\EOF | |
7070 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
7071 EOF | |
7072 | |
7073 # Break up conftest.vals because some shells have a limit on | |
7074 # the size of here documents, and old seds have small limits too. | |
7075 | |
7076 rm -f conftest.tail | |
7077 while : | |
7078 do | |
7079 ac_lines=`grep -c . conftest.vals` | |
7080 # grep -c gives empty output for an empty file on some AIX systems. | |
7081 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
7082 # Write a limited-size here document to conftest.frag. | |
7083 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
7084 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
7085 echo 'CEOF | |
7086 sed -f conftest.frag conftest.in > conftest.out | |
7087 rm -f conftest.in | |
7088 mv conftest.out conftest.in | |
7089 ' >> $CONFIG_STATUS | |
7090 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
7091 rm -f conftest.vals | |
7092 mv conftest.tail conftest.vals | |
7093 done | |
7094 rm -f conftest.vals | |
7095 | |
7096 cat >> $CONFIG_STATUS <<\EOF | |
7097 rm -f conftest.frag conftest.h | |
7098 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
7099 cat conftest.in >> conftest.h | |
7100 rm -f conftest.in | |
7101 if cmp -s $ac_file conftest.h 2>/dev/null; then | |
7102 echo "$ac_file is unchanged" | |
7103 rm -f conftest.h | |
7104 else | |
7105 # Remove last slash and all that follows it. Not all systems have dirname. | |
7106 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
7107 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
7108 # The file is in a subdirectory. | |
7109 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
7110 fi | |
7111 rm -f $ac_file | |
7112 mv conftest.h $ac_file | |
7113 fi | |
7114 fi; done | |
7115 | |
7116 EOF | |
7117 cat >> $CONFIG_STATUS <<EOF | |
7118 CPP="$CPP" CPPFLAGS="$CPPFLAGS" | |
7119 EOF | |
7120 cat >> $CONFIG_STATUS <<\EOF | |
7121 | |
7122 | |
7123 ### Make the necessary directories, if they don't exist. | |
7124 for dir in etc lisp ; do | |
7125 test -d ${dir} || mkdir ${dir} | |
7126 done | |
7127 | |
7128 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
7129 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
7130 # This must be done after src/config.h is built, since we rely on that file. | |
7131 | |
7132 # Now get this: Some word that is part of the ${srcdir} directory name | |
7133 # or the ${configuration} value might, just might, happen to be an | |
7134 # identifier like `sun4' or `i386' or something, and be predefined by | |
7135 # the C preprocessor to some helpful value like 1, or maybe the empty | |
7136 # string. Needless to say consequent macro substitutions are less | |
7137 # than conducive to the makefile finding the correct directory. | |
7138 undefs="`echo $top_srcdir $configuration $canonical | | |
7139 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
7140 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
7141 `" | |
7142 | |
7143 echo creating src/epaths.h | |
7144 make epaths-force | |
7145 | |
7146 echo creating lib-src/Makefile | |
7147 ( cd lib-src | |
7148 rm -f junk.c junk1.c junk2.c | |
7149 sed -e '/start of cpp stuff/q' \ | |
7150 < Makefile.c > junk1.c | |
7151 sed -e '1,/start of cpp stuff/d'\ | |
7152 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
7153 < Makefile.c > junk.c | |
7154 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
7155 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
7156 cat junk1.c junk2.c > Makefile.new | |
7157 rm -f junk.c junk1.c junk2.c | |
7158 chmod 444 Makefile.new | |
7159 mv -f Makefile.new Makefile | |
7160 ) | |
7161 | |
7162 echo creating src/Makefile | |
7163 ( cd src | |
7164 rm -f junk.c junk1.c junk2.c | |
7165 sed -e '/start of cpp stuff/q' \ | |
7166 < Makefile.c > junk1.c | |
7167 sed -e '1,/start of cpp stuff/d'\ | |
7168 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
7169 < Makefile.c > junk.c | |
7170 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
7171 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
7172 cat junk1.c junk2.c > Makefile.new | |
7173 rm -f junk.c junk1.c junk2.c | |
7174 chmod 444 Makefile.new | |
7175 mv -f Makefile.new Makefile | |
7176 ) | |
7177 | |
7178 if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then | |
7179 echo creating src/.gdbinit | |
7180 echo source $top_srcdir/src/.gdbinit > src/.gdbinit | |
7181 fi | |
7182 | |
7183 # This is how we know whether to re-run configure in certain cases. | |
7184 touch src/config.stamp | |
7185 | |
7186 | |
7187 exit 0 | |
7188 EOF | |
7189 chmod +x $CONFIG_STATUS | |
7190 rm -fr confdefs* $ac_clean_files | |
7191 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
7192 |