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