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