Mercurial > emacs
annotate configure @ 48113:6a09e4b41337
(unuse_menu_items): New fun.
(menu_items_inuse): New var.
(syms_of_xmenu): Initialize it.
(init_menu_items): Use it to detect re-entrance.
(Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset it when done.
(Fx_popup_menu): Remove spurious XSETFRAME.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 01 Nov 2002 20:11:39 +0000 |
parents | ca6ea93e02f2 |
children | abfcf5ec4ad2 |
rev | line source |
---|---|
25897 | 1 #! /bin/sh |
2 # Guess values for system-dependent variables and create Makefiles. | |
45226 | 3 # Generated by Autoconf 2.52. |
25897 | 4 # |
45226 | 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
40056 | 6 # Free Software Foundation, Inc. |
25897 | 7 # This configure script is free software; the Free Software Foundation |
8 # gives unlimited permission to copy, distribute and modify it. | |
44994 | 9 |
45226 | 10 # Avoid depending upon Character Ranges. |
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14 as_cr_digits='0123456789' | |
15 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16 | |
17 # Sed expression to map a string onto a valid variable name. | |
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
19 | |
20 # Sed expression to map a string onto a valid CPP name. | |
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
40056 | 22 |
23 # Be Bourne compatible | |
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
25 emulate sh | |
26 NULLCMD=: | |
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
28 set -o posix | |
29 fi | |
30 | |
31 # Name of the executable. | |
45226 | 32 as_me=`echo "$0" |sed 's,.*[\\/],,'` |
40056 | 33 |
34 if expr a : '\(a\)' >/dev/null 2>&1; then | |
35 as_expr=expr | |
36 else | |
37 as_expr=false | |
38 fi | |
39 | |
40 rm -f conf$$ conf$$.exe conf$$.file | |
41 echo >conf$$.file | |
42 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
43 # We could just check for DJGPP; but this test a) works b) is more generic | |
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
45 if test -f conf$$.exe; then | |
46 # Don't use ln at all; we don't have any links | |
47 as_ln_s='cp -p' | |
48 else | |
49 as_ln_s='ln -s' | |
50 fi | |
51 elif ln conf$$.file conf$$ 2>/dev/null; then | |
52 as_ln_s=ln | |
53 else | |
54 as_ln_s='cp -p' | |
55 fi | |
56 rm -f conf$$ conf$$.exe conf$$.file | |
57 | |
58 as_executable_p="test -f" | |
59 | |
45226 | 60 # Support unset when possible. |
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
62 as_unset=unset | |
63 else | |
64 as_unset=false | |
65 fi | |
66 | |
67 # NLS nuisances. | |
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
40056 | 76 |
77 # IFS | |
78 # We need space, tab and new line, in precisely that order. | |
79 as_nl=' | |
80 ' | |
81 IFS=" $as_nl" | |
82 | |
83 # CDPATH. | |
45226 | 84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
40056 | 85 |
86 # Name of the host. | |
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
88 # so uname gets run too. | |
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
90 | |
91 exec 6>&1 | |
92 | |
93 # | |
94 # Initializations. | |
95 # | |
25897 | 96 ac_default_prefix=/usr/local |
40056 | 97 cross_compiling=no |
98 subdirs= | |
45226 | 99 MFLAGS= MAKEFLAGS= |
40056 | 100 SHELL=${CONFIG_SHELL-/bin/sh} |
101 | |
102 # Maximum number of lines to put in a shell here document. | |
103 # This variable seems obsolete. It should probably be removed, and | |
104 # only ac_max_sed_lines should be used. | |
105 : ${ac_max_here_lines=38} | |
106 | |
107 ac_unique_file="src/lisp.h" | |
108 # Factoring default headers for most tests. | |
109 ac_includes_default="\ | |
110 #include <stdio.h> | |
111 #if HAVE_SYS_TYPES_H | |
112 # include <sys/types.h> | |
113 #endif | |
114 #if HAVE_SYS_STAT_H | |
115 # include <sys/stat.h> | |
116 #endif | |
117 #if STDC_HEADERS | |
118 # include <stdlib.h> | |
119 # include <stddef.h> | |
120 #else | |
121 # if HAVE_STDLIB_H | |
122 # include <stdlib.h> | |
123 # endif | |
124 #endif | |
125 #if HAVE_STRING_H | |
126 # if !STDC_HEADERS && HAVE_MEMORY_H | |
127 # include <memory.h> | |
128 # endif | |
129 # include <string.h> | |
130 #endif | |
131 #if HAVE_STRINGS_H | |
132 # include <strings.h> | |
133 #endif | |
134 #if HAVE_INTTYPES_H | |
135 # include <inttypes.h> | |
136 #else | |
137 # if HAVE_STDINT_H | |
138 # include <stdint.h> | |
139 # endif | |
140 #endif | |
141 #if HAVE_UNISTD_H | |
142 # include <unistd.h> | |
143 #endif" | |
25897 | 144 |
145 # Initialize some variables set by options. | |
40056 | 146 ac_init_help= |
147 ac_init_version=false | |
25897 | 148 # The variables have the same names as the options, with |
149 # dashes changed to underlines. | |
40056 | 150 cache_file=/dev/null |
25897 | 151 exec_prefix=NONE |
152 no_create= | |
153 no_recursion= | |
154 prefix=NONE | |
155 program_prefix=NONE | |
156 program_suffix=NONE | |
157 program_transform_name=s,x,x, | |
158 silent= | |
159 site= | |
160 srcdir= | |
161 verbose= | |
162 x_includes=NONE | |
163 x_libraries=NONE | |
40056 | 164 |
165 # Installation directory options. | |
166 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
167 # and all the variables that are supposed to be based on exec_prefix | |
168 # by default will actually change. | |
169 # Use braces instead of parens because sh, perl, etc. also accept them. | |
25897 | 170 bindir='${exec_prefix}/bin' |
171 sbindir='${exec_prefix}/sbin' | |
172 libexecdir='${exec_prefix}/libexec' | |
173 datadir='${prefix}/share' | |
174 sysconfdir='${prefix}/etc' | |
175 sharedstatedir='${prefix}/com' | |
176 localstatedir='${prefix}/var' | |
177 libdir='${exec_prefix}/lib' | |
178 includedir='${prefix}/include' | |
179 oldincludedir='/usr/include' | |
180 infodir='${prefix}/info' | |
181 mandir='${prefix}/man' | |
182 | |
45226 | 183 # Identity of this package. |
184 PACKAGE_NAME= | |
185 PACKAGE_TARNAME= | |
186 PACKAGE_VERSION= | |
187 PACKAGE_STRING= | |
188 PACKAGE_BUGREPORT= | |
189 | |
25897 | 190 ac_prev= |
191 for ac_option | |
192 do | |
193 # If the previous option needs an argument, assign it. | |
194 if test -n "$ac_prev"; then | |
195 eval "$ac_prev=\$ac_option" | |
196 ac_prev= | |
197 continue | |
198 fi | |
199 | |
40056 | 200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
25897 | 201 |
202 # Accept the important Cygnus configure options, so we can diagnose typos. | |
203 | |
40056 | 204 case $ac_option in |
25897 | 205 |
206 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
207 ac_prev=bindir ;; | |
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
40056 | 209 bindir=$ac_optarg ;; |
25897 | 210 |
211 -build | --build | --buil | --bui | --bu) | |
40056 | 212 ac_prev=build_alias ;; |
25897 | 213 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
40056 | 214 build_alias=$ac_optarg ;; |
25897 | 215 |
216 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
218 ac_prev=cache_file ;; | |
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
40056 | 221 cache_file=$ac_optarg ;; |
222 | |
223 --config-cache | -C) | |
224 cache_file=config.cache ;; | |
25897 | 225 |
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
227 ac_prev=datadir ;; | |
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
229 | --da=*) | |
40056 | 230 datadir=$ac_optarg ;; |
25897 | 231 |
232 -disable-* | --disable-*) | |
40056 | 233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
25897 | 234 # Reject names that are not valid shell variable names. |
40056 | 235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
237 { (exit 1); exit 1; }; } | |
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
239 eval "enable_$ac_feature=no" ;; | |
25897 | 240 |
241 -enable-* | --enable-*) | |
40056 | 242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
25897 | 243 # Reject names that are not valid shell variable names. |
40056 | 244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
246 { (exit 1); exit 1; }; } | |
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
248 case $ac_option in | |
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
25897 | 250 *) ac_optarg=yes ;; |
251 esac | |
40056 | 252 eval "enable_$ac_feature='$ac_optarg'" ;; |
25897 | 253 |
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
256 | --exec | --exe | --ex) | |
257 ac_prev=exec_prefix ;; | |
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
260 | --exec=* | --exe=* | --ex=*) | |
40056 | 261 exec_prefix=$ac_optarg ;; |
25897 | 262 |
263 -gas | --gas | --ga | --g) | |
264 # Obsolete; use --with-gas. | |
265 with_gas=yes ;; | |
266 | |
40056 | 267 -help | --help | --hel | --he | -h) |
268 ac_init_help=long ;; | |
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
270 ac_init_help=recursive ;; | |
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
272 ac_init_help=short ;; | |
25897 | 273 |
274 -host | --host | --hos | --ho) | |
40056 | 275 ac_prev=host_alias ;; |
25897 | 276 -host=* | --host=* | --hos=* | --ho=*) |
40056 | 277 host_alias=$ac_optarg ;; |
25897 | 278 |
279 -includedir | --includedir | --includedi | --included | --include \ | |
280 | --includ | --inclu | --incl | --inc) | |
281 ac_prev=includedir ;; | |
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
283 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
40056 | 284 includedir=$ac_optarg ;; |
25897 | 285 |
286 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
287 ac_prev=infodir ;; | |
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
40056 | 289 infodir=$ac_optarg ;; |
25897 | 290 |
291 -libdir | --libdir | --libdi | --libd) | |
292 ac_prev=libdir ;; | |
293 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
40056 | 294 libdir=$ac_optarg ;; |
25897 | 295 |
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
297 | --libexe | --libex | --libe) | |
298 ac_prev=libexecdir ;; | |
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
300 | --libexe=* | --libex=* | --libe=*) | |
40056 | 301 libexecdir=$ac_optarg ;; |
25897 | 302 |
303 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
304 | --localstate | --localstat | --localsta | --localst \ | |
305 | --locals | --local | --loca | --loc | --lo) | |
306 ac_prev=localstatedir ;; | |
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
40056 | 310 localstatedir=$ac_optarg ;; |
25897 | 311 |
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
313 ac_prev=mandir ;; | |
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
40056 | 315 mandir=$ac_optarg ;; |
25897 | 316 |
317 -nfp | --nfp | --nf) | |
318 # Obsolete; use --without-fp. | |
319 with_fp=no ;; | |
320 | |
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
45226 | 322 | --no-cr | --no-c) |
25897 | 323 no_create=yes ;; |
324 | |
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
327 no_recursion=yes ;; | |
328 | |
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
331 | --oldin | --oldi | --old | --ol | --o) | |
332 ac_prev=oldincludedir ;; | |
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
40056 | 336 oldincludedir=$ac_optarg ;; |
25897 | 337 |
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
339 ac_prev=prefix ;; | |
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
40056 | 341 prefix=$ac_optarg ;; |
25897 | 342 |
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
344 | --program-pre | --program-pr | --program-p) | |
345 ac_prev=program_prefix ;; | |
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
40056 | 348 program_prefix=$ac_optarg ;; |
25897 | 349 |
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
351 | --program-suf | --program-su | --program-s) | |
352 ac_prev=program_suffix ;; | |
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
40056 | 355 program_suffix=$ac_optarg ;; |
25897 | 356 |
357 -program-transform-name | --program-transform-name \ | |
358 | --program-transform-nam | --program-transform-na \ | |
359 | --program-transform-n | --program-transform- \ | |
360 | --program-transform | --program-transfor \ | |
361 | --program-transfo | --program-transf \ | |
362 | --program-trans | --program-tran \ | |
363 | --progr-tra | --program-tr | --program-t) | |
364 ac_prev=program_transform_name ;; | |
365 -program-transform-name=* | --program-transform-name=* \ | |
366 | --program-transform-nam=* | --program-transform-na=* \ | |
367 | --program-transform-n=* | --program-transform-=* \ | |
368 | --program-transform=* | --program-transfor=* \ | |
369 | --program-transfo=* | --program-transf=* \ | |
370 | --program-trans=* | --program-tran=* \ | |
371 | --progr-tra=* | --program-tr=* | --program-t=*) | |
40056 | 372 program_transform_name=$ac_optarg ;; |
25897 | 373 |
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
375 | -silent | --silent | --silen | --sile | --sil) | |
376 silent=yes ;; | |
377 | |
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
379 ac_prev=sbindir ;; | |
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
381 | --sbi=* | --sb=*) | |
40056 | 382 sbindir=$ac_optarg ;; |
25897 | 383 |
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
386 | --sharedst | --shareds | --shared | --share | --shar \ | |
387 | --sha | --sh) | |
388 ac_prev=sharedstatedir ;; | |
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
392 | --sha=* | --sh=*) | |
40056 | 393 sharedstatedir=$ac_optarg ;; |
25897 | 394 |
395 -site | --site | --sit) | |
396 ac_prev=site ;; | |
397 -site=* | --site=* | --sit=*) | |
40056 | 398 site=$ac_optarg ;; |
25897 | 399 |
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
401 ac_prev=srcdir ;; | |
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
40056 | 403 srcdir=$ac_optarg ;; |
25897 | 404 |
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
406 | --syscon | --sysco | --sysc | --sys | --sy) | |
407 ac_prev=sysconfdir ;; | |
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
40056 | 410 sysconfdir=$ac_optarg ;; |
25897 | 411 |
412 -target | --target | --targe | --targ | --tar | --ta | --t) | |
40056 | 413 ac_prev=target_alias ;; |
25897 | 414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
40056 | 415 target_alias=$ac_optarg ;; |
25897 | 416 |
417 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
418 verbose=yes ;; | |
419 | |
40056 | 420 -version | --version | --versio | --versi | --vers | -V) |
421 ac_init_version=: ;; | |
25897 | 422 |
423 -with-* | --with-*) | |
40056 | 424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
25897 | 425 # Reject names that are not valid shell variable names. |
40056 | 426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
427 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
428 { (exit 1); exit 1; }; } | |
25897 | 429 ac_package=`echo $ac_package| sed 's/-/_/g'` |
40056 | 430 case $ac_option in |
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
25897 | 432 *) ac_optarg=yes ;; |
433 esac | |
40056 | 434 eval "with_$ac_package='$ac_optarg'" ;; |
25897 | 435 |
436 -without-* | --without-*) | |
40056 | 437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
25897 | 438 # Reject names that are not valid shell variable names. |
40056 | 439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
440 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
441 { (exit 1); exit 1; }; } | |
442 ac_package=`echo $ac_package | sed 's/-/_/g'` | |
443 eval "with_$ac_package=no" ;; | |
25897 | 444 |
445 --x) | |
446 # Obsolete; use --with-x. | |
447 with_x=yes ;; | |
448 | |
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
450 | --x-incl | --x-inc | --x-in | --x-i) | |
451 ac_prev=x_includes ;; | |
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
40056 | 454 x_includes=$ac_optarg ;; |
25897 | 455 |
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
458 ac_prev=x_libraries ;; | |
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
40056 | 461 x_libraries=$ac_optarg ;; |
462 | |
463 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
464 Try \`$0 --help' for more information." >&2 | |
465 { (exit 1); exit 1; }; } | |
25897 | 466 ;; |
467 | |
40056 | 468 *=*) |
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
470 # Reject names that are not valid shell variable names. | |
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
473 { (exit 1); exit 1; }; } | |
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
475 eval "$ac_envvar='$ac_optarg'" | |
476 export $ac_envvar ;; | |
477 | |
25897 | 478 *) |
40056 | 479 # FIXME: should be removed in autoconf 3.0. |
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
25897 | 484 ;; |
485 | |
486 esac | |
487 done | |
488 | |
489 if test -n "$ac_prev"; then | |
40056 | 490 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
491 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
492 { (exit 1); exit 1; }; } | |
493 fi | |
494 | |
495 # Be sure to have absolute paths. | |
496 for ac_var in exec_prefix prefix | |
25897 | 497 do |
40056 | 498 eval ac_val=$`echo $ac_var` |
499 case $ac_val in | |
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
45226 | 501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
40056 | 502 { (exit 1); exit 1; }; };; |
25897 | 503 esac |
504 done | |
505 | |
40056 | 506 # Be sure to have absolute paths. |
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
508 localstatedir libdir includedir oldincludedir infodir mandir | |
509 do | |
510 eval ac_val=$`echo $ac_var` | |
511 case $ac_val in | |
512 [\\/$]* | ?:[\\/]* ) ;; | |
45226 | 513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
40056 | 514 { (exit 1); exit 1; }; };; |
515 esac | |
516 done | |
517 | |
518 # There might be people who depend on the old broken behavior: `$host' | |
519 # used to hold the argument of --host etc. | |
520 build=$build_alias | |
521 host=$host_alias | |
522 target=$target_alias | |
523 | |
45226 | 524 # FIXME: should be removed in autoconf 3.0. |
40056 | 525 if test "x$host_alias" != x; then |
526 if test "x$build_alias" = x; then | |
527 cross_compiling=maybe | |
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
529 If a cross compiler is detected then cross compile mode will be used." >&2 | |
530 elif test "x$build_alias" != "x$host_alias"; then | |
531 cross_compiling=yes | |
532 fi | |
533 fi | |
534 | |
535 ac_tool_prefix= | |
536 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
537 | |
538 test "$silent" = yes && exec 6>/dev/null | |
25897 | 539 |
540 # Find the source files, if location was not specified. | |
541 if test -z "$srcdir"; then | |
542 ac_srcdir_defaulted=yes | |
543 # Try the directory containing this script, then its parent. | |
45226 | 544 ac_prog=$0 |
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` | |
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
25897 | 547 srcdir=$ac_confdir |
548 if test ! -r $srcdir/$ac_unique_file; then | |
549 srcdir=.. | |
550 fi | |
551 else | |
552 ac_srcdir_defaulted=no | |
553 fi | |
554 if test ! -r $srcdir/$ac_unique_file; then | |
555 if test "$ac_srcdir_defaulted" = yes; then | |
45226 | 556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
40056 | 557 { (exit 1); exit 1; }; } |
25897 | 558 else |
45226 | 559 { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
40056 | 560 { (exit 1); exit 1; }; } |
561 fi | |
562 fi | |
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
564 ac_env_build_alias_set=${build_alias+set} | |
565 ac_env_build_alias_value=$build_alias | |
566 ac_cv_env_build_alias_set=${build_alias+set} | |
567 ac_cv_env_build_alias_value=$build_alias | |
568 ac_env_host_alias_set=${host_alias+set} | |
569 ac_env_host_alias_value=$host_alias | |
570 ac_cv_env_host_alias_set=${host_alias+set} | |
571 ac_cv_env_host_alias_value=$host_alias | |
572 ac_env_target_alias_set=${target_alias+set} | |
573 ac_env_target_alias_value=$target_alias | |
574 ac_cv_env_target_alias_set=${target_alias+set} | |
575 ac_cv_env_target_alias_value=$target_alias | |
576 ac_env_CC_set=${CC+set} | |
577 ac_env_CC_value=$CC | |
578 ac_cv_env_CC_set=${CC+set} | |
579 ac_cv_env_CC_value=$CC | |
580 ac_env_CFLAGS_set=${CFLAGS+set} | |
581 ac_env_CFLAGS_value=$CFLAGS | |
582 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
583 ac_cv_env_CFLAGS_value=$CFLAGS | |
584 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
585 ac_env_LDFLAGS_value=$LDFLAGS | |
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
587 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
589 ac_env_CPPFLAGS_value=$CPPFLAGS | |
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
592 ac_env_CPP_set=${CPP+set} | |
593 ac_env_CPP_value=$CPP | |
594 ac_cv_env_CPP_set=${CPP+set} | |
595 ac_cv_env_CPP_value=$CPP | |
596 | |
597 # | |
598 # Report the --help message. | |
599 # | |
600 if test "$ac_init_help" = "long"; then | |
601 # Omit some internal or obsolete options to make the list less imposing. | |
602 # This message is too long to be a string in the A/UX 3.1 sh. | |
45226 | 603 cat <<EOF |
40056 | 604 \`configure' configures this package to adapt to many kinds of systems. |
605 | |
606 Usage: $0 [OPTION]... [VAR=VALUE]... | |
607 | |
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
609 VAR=VALUE. See below for descriptions of some of the useful variables. | |
610 | |
611 Defaults for the options are specified in brackets. | |
612 | |
613 Configuration: | |
614 -h, --help display this help and exit | |
615 --help=short display options specific to this package | |
616 --help=recursive display the short help of all the included packages | |
617 -V, --version display version information and exit | |
618 -q, --quiet, --silent do not print \`checking...' messages | |
619 --cache-file=FILE cache test results in FILE [disabled] | |
620 -C, --config-cache alias for \`--cache-file=config.cache' | |
621 -n, --no-create do not create output files | |
622 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
623 | |
45226 | 624 EOF |
625 | |
626 cat <<EOF | |
40056 | 627 Installation directories: |
628 --prefix=PREFIX install architecture-independent files in PREFIX | |
629 [$ac_default_prefix] | |
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
631 [PREFIX] | |
632 | |
633 By default, \`make install' will install all the files in | |
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
636 for instance \`--prefix=\$HOME'. | |
637 | |
638 For better control, use the options below. | |
639 | |
640 Fine tuning of the installation directories: | |
641 --bindir=DIR user executables [EPREFIX/bin] | |
642 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
643 --libexecdir=DIR program executables [EPREFIX/libexec] | |
644 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
648 --libdir=DIR object code libraries [EPREFIX/lib] | |
649 --includedir=DIR C header files [PREFIX/include] | |
650 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
651 --infodir=DIR info documentation [PREFIX/info] | |
652 --mandir=DIR man documentation [PREFIX/man] | |
45226 | 653 EOF |
654 | |
655 cat <<\EOF | |
40056 | 656 |
41100 | 657 Program names: |
658 --program-prefix=PREFIX prepend PREFIX to installed program names | |
659 --program-suffix=SUFFIX append SUFFIX to installed program names | |
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
661 | |
40056 | 662 X features: |
663 --x-includes=DIR X include files are in DIR | |
664 --x-libraries=DIR X library files are in DIR | |
665 | |
666 System types: | |
667 --build=BUILD configure for building on BUILD [guessed] | |
45226 | 668 --host=HOST build programs to run on HOST [BUILD] |
669 EOF | |
40056 | 670 fi |
671 | |
672 if test -n "$ac_init_help"; then | |
673 | |
45226 | 674 cat <<\EOF |
40056 | 675 |
676 Optional Features: | |
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
679 --disable-largefile omit support for large files | |
680 | |
681 Optional Packages: | |
682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
684 --without-gcc don't use GCC to compile Emacs if GCC is found | |
685 --without-pop don't support POP mail retrieval with movemail | |
686 --with-kerberos support Kerberos-authenticated POP | |
687 --with-kerberos5 support Kerberos version 5 authenticated POP | |
688 --with-hesiod support Hesiod to get the POP server host | |
44435 | 689 --without-sound don't compile with sound support |
40056 | 690 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) |
691 --with-xpm use -lXpm for displaying XPM images | |
692 --with-jpeg use -ljpeg for displaying JPEG images | |
693 --with-tiff use -ltiff for displaying TIFF images | |
694 --with-gif use -lungif for displaying GIF images | |
695 --with-png use -lpng for displaying PNG images | |
696 --without-toolkit-scroll-bars | |
40632 | 697 don't use Motif or Xaw3d scroll bars |
698 --without-xim don't use X11 XIM | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
699 --without-carbon don't use Carbon GUI on Mac OS X |
40056 | 700 --with-x use the X Window System |
701 | |
702 Some influential environment variables: | |
703 CC C compiler command | |
704 CFLAGS C compiler flags | |
705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
706 nonstandard directory <lib dir> | |
707 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
708 headers in a nonstandard directory <include dir> | |
709 CPP C preprocessor | |
710 | |
711 Use these variables to override the choices made by `configure' or to help | |
712 it to find libraries and programs with nonstandard names/locations. | |
713 | |
45226 | 714 EOF |
40056 | 715 fi |
716 | |
717 if test "$ac_init_help" = "recursive"; then | |
718 # If there are subdirs, report their specific --help. | |
719 ac_popdir=`pwd` | |
45226 | 720 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue |
721 cd $ac_subdir | |
722 # A "../" for each directory in /$ac_subdir. | |
723 ac_dots=`echo $ac_subdir | | |
724 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
725 | |
726 case $srcdir in | |
727 .) # No --srcdir option. We are building in place. | |
728 ac_sub_srcdir=$srcdir ;; | |
729 [\\/]* | ?:[\\/]* ) # Absolute path. | |
730 ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
731 *) # Relative path. | |
732 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
733 esac | |
734 | |
40056 | 735 # Check for guested configure; otherwise get Cygnus style configure. |
45226 | 736 if test -f $ac_sub_srcdir/configure.gnu; then |
40056 | 737 echo |
45226 | 738 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive |
739 elif test -f $ac_sub_srcdir/configure; then | |
40056 | 740 echo |
45226 | 741 $SHELL $ac_sub_srcdir/configure --help=recursive |
742 elif test -f $ac_sub_srcdir/configure.ac || | |
743 test -f $ac_sub_srcdir/configure.in; then | |
40056 | 744 echo |
745 $ac_configure --help | |
746 else | |
45226 | 747 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
40056 | 748 fi |
749 cd $ac_popdir | |
750 done | |
751 fi | |
752 | |
753 test -n "$ac_init_help" && exit 0 | |
754 if $ac_init_version; then | |
45226 | 755 cat <<\EOF |
756 | |
757 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
40056 | 758 Free Software Foundation, Inc. |
759 This configure script is free software; the Free Software Foundation | |
760 gives unlimited permission to copy, distribute and modify it. | |
45226 | 761 EOF |
40056 | 762 exit 0 |
763 fi | |
764 exec 5>config.log | |
45226 | 765 cat >&5 <<EOF |
40056 | 766 This file contains any messages produced by compilers while |
767 running configure, to aid debugging if configure makes a mistake. | |
768 | |
769 It was created by $as_me, which was | |
45226 | 770 generated by GNU Autoconf 2.52. Invocation command line was |
40056 | 771 |
772 $ $0 $@ | |
773 | |
45226 | 774 EOF |
40056 | 775 { |
776 cat <<_ASUNAME | |
45226 | 777 ## ---------- ## |
778 ## Platform. ## | |
779 ## ---------- ## | |
40056 | 780 |
781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
782 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
783 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
784 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
785 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
786 | |
787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
789 | |
790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
793 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
797 | |
45226 | 798 PATH = $PATH |
799 | |
40056 | 800 _ASUNAME |
801 } >&5 | |
802 | |
45226 | 803 cat >&5 <<EOF |
804 ## ------------ ## | |
805 ## Core tests. ## | |
806 ## ------------ ## | |
807 | |
808 EOF | |
40056 | 809 |
810 # Keep a trace of the command line. | |
811 # Strip out --no-create and --no-recursion so they do not pile up. | |
812 # Also quote any args containing shell meta-characters. | |
813 ac_configure_args= | |
814 ac_sep= | |
815 for ac_arg | |
816 do | |
817 case $ac_arg in | |
818 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
45226 | 819 | --no-cr | --no-c) ;; |
40056 | 820 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
45226 | 821 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
40056 | 822 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
45226 | 823 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
824 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
825 ac_sep=" " ;; | |
826 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
827 ac_sep=" " ;; | |
40056 | 828 esac |
829 # Get rid of the leading space. | |
830 done | |
831 | |
832 # When interrupted or exit'd, cleanup temporary files, and complete | |
833 # config.log. We remove comments because anyway the quotes in there | |
834 # would cause problems or look ugly. | |
835 trap 'exit_status=$? | |
836 # Save into config.log some information that might help in debugging. | |
45226 | 837 echo >&5 |
838 echo "## ----------------- ##" >&5 | |
839 echo "## Cache variables. ##" >&5 | |
840 echo "## ----------------- ##" >&5 | |
841 echo >&5 | |
842 # The following way of writing the cache mishandles newlines in values, | |
40056 | 843 { |
844 (set) 2>&1 | | |
845 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
846 *ac_space=\ *) | |
847 sed -n \ | |
848 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
850 ;; | |
851 *) | |
852 sed -n \ | |
853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
854 ;; | |
855 esac; | |
45226 | 856 } >&5 |
857 sed "/^$/d" confdefs.h >conftest.log | |
858 if test -s conftest.log; then | |
859 echo >&5 | |
860 echo "## ------------ ##" >&5 | |
861 echo "## confdefs.h. ##" >&5 | |
862 echo "## ------------ ##" >&5 | |
863 echo >&5 | |
864 cat conftest.log >&5 | |
865 fi | |
866 (echo; echo) >&5 | |
867 test "$ac_signal" != 0 && | |
868 echo "$as_me: caught signal $ac_signal" >&5 | |
869 echo "$as_me: exit $exit_status" >&5 | |
870 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
40056 | 871 exit $exit_status |
872 ' 0 | |
873 for ac_signal in 1 2 13 15; do | |
874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
875 done | |
876 ac_signal=0 | |
877 | |
878 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
879 rm -rf conftest* confdefs.h | |
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
881 echo >confdefs.h | |
882 | |
883 # Let the site file select an alternate cache file if it wants to. | |
25897 | 884 # Prefer explicitly selected file to automatically selected ones. |
885 if test -z "$CONFIG_SITE"; then | |
886 if test "x$prefix" != xNONE; then | |
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
888 else | |
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
890 fi | |
891 fi | |
892 for ac_site_file in $CONFIG_SITE; do | |
893 if test -r "$ac_site_file"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
894 { echo "$as_me:894: loading site script $ac_site_file" >&5 |
40056 | 895 echo "$as_me: loading site script $ac_site_file" >&6;} |
45226 | 896 cat "$ac_site_file" >&5 |
25897 | 897 . "$ac_site_file" |
898 fi | |
899 done | |
900 | |
901 if test -r "$cache_file"; then | |
40056 | 902 # Some versions of bash will fail to source /dev/null (special |
903 # files actually), so we avoid doing that. | |
904 if test -f "$cache_file"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
905 { echo "$as_me:905: loading cache $cache_file" >&5 |
40056 | 906 echo "$as_me: loading cache $cache_file" >&6;} |
907 case $cache_file in | |
908 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
909 *) . ./$cache_file;; | |
910 esac | |
911 fi | |
912 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
913 { echo "$as_me:913: creating cache $cache_file" >&5 |
40056 | 914 echo "$as_me: creating cache $cache_file" >&6;} |
915 >$cache_file | |
916 fi | |
917 | |
918 # Check that the precious variables saved in the cache have kept the same | |
919 # value. | |
920 ac_cache_corrupted=false | |
921 for ac_var in `(set) 2>&1 | | |
922 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
923 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
924 eval ac_new_set=\$ac_env_${ac_var}_set | |
925 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
926 eval ac_new_val="\$ac_env_${ac_var}_value" | |
927 case $ac_old_set,$ac_new_set in | |
928 set,) | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
929 { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
40056 | 930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
931 ac_cache_corrupted=: ;; | |
932 ,set) | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
933 { echo "$as_me:933: error: \`$ac_var' was not set in the previous run" >&5 |
40056 | 934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
935 ac_cache_corrupted=: ;; | |
936 ,);; | |
937 *) | |
938 if test "x$ac_old_val" != "x$ac_new_val"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
939 { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5 |
40056 | 940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
941 { echo "$as_me:941: former value: $ac_old_val" >&5 |
40056 | 942 echo "$as_me: former value: $ac_old_val" >&2;} |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
943 { echo "$as_me:943: current value: $ac_new_val" >&5 |
40056 | 944 echo "$as_me: current value: $ac_new_val" >&2;} |
945 ac_cache_corrupted=: | |
946 fi;; | |
947 esac | |
45226 | 948 # Pass precious variables to config.status. It doesn't matter if |
949 # we pass some twice (in addition to the command line arguments). | |
40056 | 950 if test "$ac_new_set" = set; then |
951 case $ac_new_val in | |
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
45226 | 953 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
954 ac_configure_args="$ac_configure_args '$ac_arg'" | |
955 ;; | |
956 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | |
957 ;; | |
40056 | 958 esac |
959 fi | |
960 done | |
961 if $ac_cache_corrupted; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
962 { echo "$as_me:962: error: changes in the environment can compromise the build" >&5 |
40056 | 963 echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
964 { { echo "$as_me:964: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
40056 | 965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
966 { (exit 1); exit 1; }; } | |
25897 | 967 fi |
968 | |
969 ac_ext=c | |
970 ac_cpp='$CPP $CPPFLAGS' | |
40056 | 971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
973 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
974 | |
45226 | 975 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
976 *c*,-n*) ECHO_N= ECHO_C=' | |
977 ' ECHO_T=' ' ;; | |
978 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
979 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
980 esac | |
981 echo "#! $SHELL" >conftest.sh | |
982 echo "exit 0" >>conftest.sh | |
983 chmod +x conftest.sh | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
984 if { (echo "$as_me:984: PATH=\".;.\"; conftest.sh") >&5 |
45226 | 985 (PATH=".;."; conftest.sh) 2>&5 |
986 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
987 echo "$as_me:987: \$? = $ac_status" >&5 |
45226 | 988 (exit $ac_status); }; then |
989 ac_path_separator=';' | |
990 else | |
991 ac_path_separator=: | |
992 fi | |
993 PATH_SEPARATOR="$ac_path_separator" | |
994 rm -f conftest.sh | |
40056 | 995 |
44994 | 996 ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
25897 | 997 |
41100 | 998 test "$program_prefix" != NONE && |
999 program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1000 # Use a double $ so make ignores it. | |
1001 test "$program_suffix" != NONE && | |
1002 program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1003 # Double any \ or $. echo might interpret backslashes. | |
1004 # By default was `s,x,x', remove it if useless. | |
1005 cat <<\_ACEOF >conftest.sed | |
1006 s/[\\$]/&&/g;s/;s,x,x,$// | |
1007 _ACEOF | |
1008 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1009 rm conftest.sed | |
1010 | |
25897 | 1011 lispdir='${datadir}/emacs/${version}/lisp' |
1012 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1013 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1014 lisppath='${locallisppath}:${lispdir}' | |
1015 etcdir='${datadir}/emacs/${version}/etc' | |
1016 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1017 docdir='${datadir}/emacs/${version}/etc' | |
46596 | 1018 gamedir='${localstatedir}/games/emacs' |
44493 | 1019 |
1020 gameuser=games | |
1021 | |
25897 | 1022 # Check whether --with-gcc or --without-gcc was given. |
1023 if test "${with_gcc+set}" = set; then | |
1024 withval="$with_gcc" | |
40056 | 1025 |
1026 fi; | |
25897 | 1027 |
1028 # Check whether --with-pop or --without-pop was given. | |
1029 if test "${with_pop+set}" = set; then | |
1030 withval="$with_pop" | |
25994 | 1031 if test "$withval" = yes; then |
45226 | 1032 cat >>confdefs.h <<\EOF |
25897 | 1033 #define MAIL_USE_POP 1 |
45226 | 1034 EOF |
25897 | 1035 |
25994 | 1036 else : |
1037 fi | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1038 else |
45226 | 1039 cat >>confdefs.h <<\EOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1040 #define MAIL_USE_POP 1 |
45226 | 1041 EOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1042 |
40056 | 1043 fi; |
25897 | 1044 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1045 # Check whether --with-kerberos or --without-kerberos was given. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1046 if test "${with_kerberos+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1047 withval="$with_kerberos" |
45226 | 1048 cat >>confdefs.h <<\EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1049 #define KERBEROS 1 |
45226 | 1050 EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1051 |
40056 | 1052 fi; |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1053 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1054 # Check whether --with-kerberos5 or --without-kerberos5 was given. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1055 if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1056 withval="$with_kerberos5" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1057 if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1058 if test "${with_kerberos+set}" != set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1059 with_kerberos=yes |
45226 | 1060 cat >>confdefs.h <<\EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1061 #define KERBEROS 1 |
45226 | 1062 EOF |
1063 | |
1064 fi | |
1065 fi | |
1066 | |
1067 cat >>confdefs.h <<\EOF | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1068 #define KERBEROS5 1 |
45226 | 1069 EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1070 |
40056 | 1071 fi; |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1072 |
25897 | 1073 # Check whether --with-hesiod or --without-hesiod was given. |
1074 if test "${with_hesiod+set}" = set; then | |
1075 withval="$with_hesiod" | |
44569 | 1076 |
45226 | 1077 cat >>confdefs.h <<\EOF |
25897 | 1078 #define HESIOD 1 |
45226 | 1079 EOF |
25897 | 1080 |
40056 | 1081 fi; |
25897 | 1082 |
44435 | 1083 # Check whether --with-sound or --without-sound was given. |
1084 if test "${with_sound+set}" = set; then | |
1085 withval="$with_sound" | |
1086 | |
1087 fi; | |
1088 | |
25897 | 1089 # Check whether --with-x-toolkit or --without-x-toolkit was given. |
1090 if test "${with_x_toolkit+set}" = set; then | |
1091 withval="$with_x_toolkit" | |
1092 case "${withval}" in | |
1093 y | ye | yes ) val=athena ;; | |
1094 n | no ) val=no ;; | |
1095 l | lu | luc | luci | lucid ) val=lucid ;; | |
1096 a | at | ath | athe | athen | athena ) val=athena ;; | |
1097 m | mo | mot | moti | motif ) val=motif ;; | |
1098 * ) | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1099 { { echo "$as_me:1099: error: \`--with-x-toolkit=$withval' is invalid\; |
25897 | 1100 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. |
40056 | 1101 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1102 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
1103 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
1104 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} | |
1105 { (exit 1); exit 1; }; } | |
25897 | 1106 ;; |
1107 esac | |
1108 with_x_toolkit=$val | |
1109 | |
40056 | 1110 fi; |
25897 | 1111 |
1112 # Check whether --with-xpm or --without-xpm was given. | |
1113 if test "${with_xpm+set}" = set; then | |
1114 withval="$with_xpm" | |
40056 | 1115 |
1116 fi; | |
25897 | 1117 |
1118 # Check whether --with-jpeg or --without-jpeg was given. | |
1119 if test "${with_jpeg+set}" = set; then | |
1120 withval="$with_jpeg" | |
40056 | 1121 |
1122 fi; | |
25897 | 1123 |
1124 # Check whether --with-tiff or --without-tiff was given. | |
1125 if test "${with_tiff+set}" = set; then | |
1126 withval="$with_tiff" | |
40056 | 1127 |
1128 fi; | |
25897 | 1129 |
1130 # Check whether --with-gif or --without-gif was given. | |
1131 if test "${with_gif+set}" = set; then | |
1132 withval="$with_gif" | |
40056 | 1133 |
1134 fi; | |
25897 | 1135 |
1136 # Check whether --with-png or --without-png was given. | |
1137 if test "${with_png+set}" = set; then | |
1138 withval="$with_png" | |
40056 | 1139 |
1140 fi; | |
25897 | 1141 |
1142 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
1143 if test "${with_toolkit_scroll_bars+set}" = set; then | |
1144 withval="$with_toolkit_scroll_bars" | |
40056 | 1145 |
1146 fi; | |
25897 | 1147 |
29949 | 1148 # Check whether --with-xim or --without-xim was given. |
1149 if test "${with_xim+set}" = set; then | |
1150 withval="$with_xim" | |
40056 | 1151 |
1152 fi; | |
25897 | 1153 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1154 # Check whether --with-carbon or --without-carbon was given. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1155 if test "${with_carbon+set}" = set; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1156 withval="$with_carbon" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1157 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1158 fi; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1159 |
25897 | 1160 #### Make srcdir absolute, if it isn't already. It's important to |
31153 | 1161 #### avoid running the path through pwd unnecessarily, since pwd can |
25897 | 1162 #### give you automounter prefixes, which can go away. We do all this |
1163 #### so Emacs can find its files when run uninstalled. | |
31153 | 1164 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1165 unset CDPATH | |
25897 | 1166 case "${srcdir}" in |
1167 /* ) ;; | |
1168 . ) | |
1169 ## We may be able to use the $PWD environment variable to make this | |
1170 ## absolute. But sometimes PWD is inaccurate. | |
43721 | 1171 ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1172 ## but that tested only for a well-formed and valid PWD, | |
1173 ## it did not object when PWD was well-formed and valid but just wrong. | |
1174 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
25897 | 1175 then |
1176 srcdir="$PWD" | |
1177 else | |
1178 srcdir="`(cd ${srcdir}; pwd)`" | |
1179 fi | |
1180 ;; | |
1181 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1182 esac | |
1183 | |
1184 #### Check if the source directory already has a configured system in it. | |
1185 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1186 && test -f "${srcdir}/src/config.h" ; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1187 { echo "$as_me:1187: WARNING: The directory tree \`${srcdir}' is being used |
25897 | 1188 as a build directory right now; it has been configured in its own |
1189 right. To configure in another directory as well, you MUST | |
1190 use GNU make. If you do not have GNU make, then you must | |
1191 now do \`make distclean' in ${srcdir}, | |
40056 | 1192 and then run $0 again." >&5 |
1193 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
1194 as a build directory right now; it has been configured in its own | |
1195 right. To configure in another directory as well, you MUST | |
1196 use GNU make. If you do not have GNU make, then you must | |
1197 now do \`make distclean' in ${srcdir}, | |
1198 and then run $0 again." >&2;} | |
25897 | 1199 |
1200 extrasub='/^VPATH[ ]*=/c\ | |
1201 vpath %.c $(srcdir)\ | |
1202 vpath %.h $(srcdir)\ | |
1203 vpath %.y $(srcdir)\ | |
1204 vpath %.l $(srcdir)\ | |
1205 vpath %.s $(srcdir)\ | |
1206 vpath %.in $(srcdir)\ | |
1207 vpath %.texi $(srcdir)' | |
1208 fi | |
1209 | |
1210 #### Given the configuration name, set machfile and opsysfile to the | |
1211 #### names of the m/*.h and s/*.h files we should use. | |
1212 | |
1213 ### Canonicalize the configuration name. | |
1214 | |
1215 ac_aux_dir= | |
1216 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1217 if test -f $ac_dir/install-sh; then | |
1218 ac_aux_dir=$ac_dir | |
1219 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1220 break | |
1221 elif test -f $ac_dir/install.sh; then | |
1222 ac_aux_dir=$ac_dir | |
1223 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1224 break | |
40056 | 1225 elif test -f $ac_dir/shtool; then |
1226 ac_aux_dir=$ac_dir | |
1227 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1228 break | |
25897 | 1229 fi |
1230 done | |
1231 if test -z "$ac_aux_dir"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1232 { { echo "$as_me:1232: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
40056 | 1233 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1234 { (exit 1); exit 1; }; } | |
1235 fi | |
1236 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1237 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1238 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
25897 | 1239 |
1240 # Make sure we can run config.sub. | |
40056 | 1241 $ac_config_sub sun4 >/dev/null 2>&1 || |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1242 { { echo "$as_me:1242: error: cannot run $ac_config_sub" >&5 |
40056 | 1243 echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1244 { (exit 1); exit 1; }; } | |
1245 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1246 echo "$as_me:1246: checking build system type" >&5 |
40056 | 1247 echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1248 if test "${ac_cv_build+set}" = set; then | |
1249 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1250 else | |
1251 ac_cv_build_alias=$build_alias | |
1252 test -z "$ac_cv_build_alias" && | |
1253 ac_cv_build_alias=`$ac_config_guess` | |
1254 test -z "$ac_cv_build_alias" && | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1255 { { echo "$as_me:1255: error: cannot guess build type; you must specify one" >&5 |
40056 | 1256 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1257 { (exit 1); exit 1; }; } | |
1258 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1259 { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
45226 | 1260 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
40056 | 1261 { (exit 1); exit 1; }; } |
1262 | |
1263 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1264 echo "$as_me:1264: result: $ac_cv_build" >&5 |
40056 | 1265 echo "${ECHO_T}$ac_cv_build" >&6 |
1266 build=$ac_cv_build | |
1267 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1268 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1269 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1270 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1271 echo "$as_me:1271: checking host system type" >&5 |
40056 | 1272 echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1273 if test "${ac_cv_host+set}" = set; then | |
1274 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1275 else | |
1276 ac_cv_host_alias=$host_alias | |
1277 test -z "$ac_cv_host_alias" && | |
1278 ac_cv_host_alias=$ac_cv_build_alias | |
1279 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1280 { { echo "$as_me:1280: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
40056 | 1281 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1282 { (exit 1); exit 1; }; } | |
1283 | |
1284 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1285 echo "$as_me:1285: result: $ac_cv_host" >&5 |
40056 | 1286 echo "${ECHO_T}$ac_cv_host" >&6 |
1287 host=$ac_cv_host | |
1288 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1289 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1290 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
25897 | 1291 |
1292 canonical=$host | |
40060 | 1293 configuration=${host_alias-$host} |
25897 | 1294 |
1295 ### If you add support for a new configuration, add code to this | |
1296 ### switch statement to recognize your configuration name and select | |
1297 ### the appropriate operating system and machine description files. | |
1298 | |
1299 ### You would hope that you could choose an m/*.h file pretty much | |
1300 ### based on the machine portion of the configuration name, and an s- | |
1301 ### file based on the operating system portion. However, it turns out | |
1302 ### that each m/*.h file is pretty manufacturer-specific - for | |
1303 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1304 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1305 ### machines. So we basically have to have a special case for each | |
1306 ### configuration name. | |
1307 ### | |
1308 ### As far as handling version numbers on operating systems is | |
1309 ### concerned, make sure things will fail in a fixable way. If | |
1310 ### /etc/MACHINES doesn't say anything about version numbers, be | |
1311 ### prepared to handle anything reasonably. If version numbers | |
1312 ### matter, be sure /etc/MACHINES says something about it. | |
1313 ### | |
1314 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1315 ### "System V Release 4"; he writes, "The old convention encouraged | |
1316 ### confusion between `system' and `release' levels'." | |
1317 | |
1318 machine='' opsys='' unported=no | |
1319 case "${canonical}" in | |
1320 | |
41675 | 1321 ## FreeBSD ports |
1322 *-*-freebsd* ) | |
1323 opsys=freebsd | |
1324 case "${canonical}" in | |
1325 alpha*-*-freebsd*) machine=alpha ;; | |
1326 i[3456]86-*-freebsd*) machine=intel386 ;; | |
1327 esac | |
1328 ;; | |
1329 | |
25897 | 1330 ## NetBSD ports |
1331 *-*-netbsd* ) | |
1332 opsys=netbsd | |
1333 case "${canonical}" in | |
1334 alpha*-*-netbsd*) machine=alpha ;; | |
1335 i[3456]86-*-netbsd*) machine=intel386 ;; | |
1336 m68k-*-netbsd*) | |
1337 # This is somewhat bogus. | |
1338 machine=hp9000s300 ;; | |
1339 powerpc-apple-netbsd*) machine=macppc ;; | |
1340 mips-*-netbsd*) machine=pmax ;; | |
27927 | 1341 mipsel-*-netbsd*) machine=pmax ;; |
45961 | 1342 mipseb-*-netbsd*) machine=pmax ;; |
25897 | 1343 ns32k-*-netbsd*) machine=ns32000 ;; |
28674 | 1344 powerpc-*-netbsd*) machine=macppc ;; |
32034 | 1345 sparc*-*-netbsd*) machine=sparc ;; |
25897 | 1346 vax-*-netbsd*) machine=vax ;; |
27927 | 1347 arm-*-netbsd*) machine=arm ;; |
25897 | 1348 esac |
1349 ;; | |
1350 | |
1351 ## OpenBSD ports | |
1352 *-*-openbsd* ) | |
1353 opsys=openbsd | |
1354 case "${canonical}" in | |
1355 alpha*-*-openbsd*) machine=alpha ;; | |
1356 i386-*-openbsd*) machine=intel386 ;; | |
1357 m68k-*-openbsd*) machine=hp9000s300 ;; | |
1358 mipsel-*-openbsd*) machine=pmax ;; | |
1359 ns32k-*-openbsd*) machine=ns32000 ;; | |
1360 sparc-*-openbsd*) machine=sparc ;; | |
1361 vax-*-openbsd*) machine=vax ;; | |
1362 esac | |
1363 ;; | |
1364 | |
1365 ## Acorn RISCiX: | |
1366 arm-acorn-riscix1.1* ) | |
1367 machine=acorn opsys=riscix1-1 | |
1368 ;; | |
1369 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1370 ## This name is riscix12 instead of riscix1.2 | |
1371 ## to avoid a file name conflict on MSDOS. | |
1372 machine=acorn opsys=riscix12 | |
1373 ;; | |
1374 | |
1375 ## BSDI ports | |
1376 *-*-bsdi* ) | |
1377 opsys=bsdi | |
1378 case "${canonical}" in | |
1379 i[345]86-*-bsdi*) machine=intel386 ;; | |
1380 sparc-*-bsdi*) machine=sparc ;; | |
33740 | 1381 powerpc-*-bsdi*) machine=macppc ;; |
25897 | 1382 esac |
1383 case "${canonical}" in | |
1384 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1385 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1386 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1387 *-*-bsdi3* ) opsys=bsdos3 ;; | |
42988 | 1388 *-*-bsdi[45]* ) opsys=bsdos4 ;; |
25897 | 1389 esac |
1390 ;; | |
1391 | |
1392 ## Alliant machines | |
1393 ## Strictly speaking, we need the version of the alliant operating | |
1394 ## system to choose the right machine file, but currently the | |
1395 ## configuration name doesn't tell us enough to choose the right | |
1396 ## one; we need to give alliants their own operating system name to | |
1397 ## do this right. When someone cares, they can help us. | |
1398 fx80-alliant-* ) | |
1399 machine=alliant4 opsys=bsd4-2 | |
1400 ;; | |
1401 i860-alliant-* ) | |
1402 machine=alliant-2800 opsys=bsd4-3 | |
1403 ;; | |
1404 | |
1405 ## Alpha (DEC) machines. | |
1406 alpha*-dec-osf* ) | |
1407 machine=alpha opsys=osf1 | |
1408 # This is needed to find X11R6.1 libraries for certain tests. | |
1409 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1410 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34446 | 1411 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1412 # due to non-traditional preprocessing with the current compiler | |
1413 # defaults. OSF 4 can also have that compiler version, and there | |
1414 # seems always to have been a usable /usr/bin/cpp. | |
1415 NON_GNU_CPP=/usr/bin/cpp | |
27883 | 1416 case "${canonical}" in |
31994 | 1417 alpha*-dec-osf[5-9]*) |
31229 | 1418 opsys=osf5-0 ;; |
27883 | 1419 esac |
25897 | 1420 ;; |
1421 | |
1422 alpha*-*-linux-gnu* ) | |
1423 machine=alpha opsys=gnu-linux | |
1424 ;; | |
1425 | |
27205 | 1426 arm*-*-linux-gnu* ) |
1427 machine=arm opsys=gnu-linux | |
1428 ;; | |
1429 | |
1430 ppc-*-linux | \ | |
1431 powerpc-*-linux* ) | |
33740 | 1432 machine=macppc opsys=gnu-linux |
27205 | 1433 ;; |
1434 | |
25897 | 1435 ## Altos 3068 |
1436 m68*-altos-sysv* ) | |
1437 machine=altos opsys=usg5-2 | |
1438 ;; | |
1439 | |
1440 ## Amdahl UTS | |
1441 580-amdahl-sysv* ) | |
1442 machine=amdahl opsys=usg5-2-2 | |
1443 ;; | |
1444 | |
1445 ## Apollo, Domain/OS | |
1446 m68*-apollo-* ) | |
1447 machine=apollo opsys=bsd4-3 | |
1448 ;; | |
1449 | |
1450 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1451 we32k-att-sysv* ) | |
1452 machine=att3b opsys=usg5-2-2 | |
1453 ;; | |
1454 | |
1455 ## AT&T 3b1 - The Mighty Unix PC! | |
1456 m68*-att-sysv* ) | |
1457 machine=7300 opsys=usg5-2-2 | |
1458 ;; | |
1459 | |
1460 ## Bull dpx20 | |
1461 rs6000-bull-bosx* ) | |
1462 machine=ibmrs6000 opsys=aix3-2 | |
1463 ;; | |
1464 | |
1465 ## Bull dpx2 | |
1466 m68*-bull-sysv3* ) | |
1467 machine=dpx2 opsys=usg5-3 | |
1468 ;; | |
1469 | |
1470 ## Bull sps7 | |
1471 m68*-bull-sysv2* ) | |
1472 machine=sps7 opsys=usg5-2 | |
1473 ;; | |
1474 | |
1475 ## CCI 5/32, 6/32 -- see "Tahoe". | |
1476 | |
1477 ## Celerity | |
1478 ## I don't know what configuration name to use for this; config.sub | |
1479 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1480 ## in touch with us! | |
1481 celerity-celerity-bsd* ) | |
1482 machine=celerity opsys=bsd4-2 | |
1483 ;; | |
1484 | |
1485 ## Clipper | |
1486 ## What operating systems does this chip run that Emacs has been | |
1487 ## tested on? | |
1488 clipper-* ) | |
1489 machine=clipper | |
1490 ## We'll use the catch-all code at the bottom to guess the | |
1491 ## operating system. | |
1492 ;; | |
1493 | |
43721 | 1494 ## Compaq Nonstop |
1495 mips-compaq-nonstopux* ) | |
1496 machine=nonstopux opsys=nonstopux | |
1497 ;; | |
1498 | |
25897 | 1499 ## Convex |
1500 *-convex-bsd* | *-convex-convexos* ) | |
1501 machine=convex opsys=bsd4-3 | |
1502 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1503 NON_GNU_CPP="cc -E -P" | |
1504 ;; | |
1505 | |
1506 ## Cubix QBx/386 | |
1507 i[3456]86-cubix-sysv* ) | |
1508 machine=intel386 opsys=usg5-3 | |
1509 ;; | |
1510 | |
1511 ## Cydra 5 | |
1512 cydra*-cydrome-sysv* ) | |
1513 machine=cydra5 opsys=usg5-3 | |
1514 ;; | |
1515 | |
1516 ## Data General AViiON Machines | |
1517 ## DG changed naming conventions with the release of 5.4.4.10, they | |
1518 ## dropped the initial 5.4 but left the intervening R. Because of the | |
1519 ## R this shouldn't conflict with older versions of the OS (which I | |
1520 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1521 ## uses either Motorola M88k or Intel Pentium CPUs. | |
1522 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1523 machine=aviion opsys=dgux4 | |
1524 ;; | |
1525 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1526 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1527 ## to avoid a file name conflict on MSDOS. | |
1528 machine=aviion opsys=dgux5-4-3 | |
1529 ;; | |
1530 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1531 machine=aviion opsys=dgux5-4r2 | |
1532 ;; | |
1533 m88k-dg-dgux* ) | |
1534 machine=aviion opsys=dgux | |
1535 ;; | |
1536 | |
1537 ## Data General AViiON Intel (x86) Machines | |
1538 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1539 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1540 i[345]86-dg-dguxR4* ) | |
1541 machine=aviion-intel opsys=dgux4 | |
1542 ;; | |
1543 | |
1544 ## DECstations | |
1545 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1546 machine=pmax opsys=bsd4-2 | |
1547 ;; | |
1548 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1549 machine=pmax opsys=bsd4-3 | |
1550 ;; | |
1551 mips-dec-ultrix* ) | |
1552 machine=pmax opsys=ultrix4-3 | |
1553 ;; | |
1554 mips-dec-osf* ) | |
1555 machine=pmax opsys=osf1 | |
1556 ;; | |
1557 mips-dec-mach_bsd4.3* ) | |
1558 machine=pmax opsys=mach-bsd4-3 | |
1559 ;; | |
1560 | |
1561 ## Motorola Delta machines | |
1562 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1563 machine=delta opsys=usg5-3 | |
1564 if test -z "`type gnucc | grep 'not found'`" | |
1565 then | |
1566 if test -s /etc/167config | |
1567 then CC="gnucc -m68040" | |
1568 else CC="gnucc -m68881" | |
1569 fi | |
1570 else | |
1571 if test -z "`type gcc | grep 'not found'`" | |
1572 then CC=gcc | |
1573 else CC=cc | |
1574 fi | |
1575 fi | |
1576 ;; | |
1577 m88k-motorola-sysv4* ) | |
1578 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1579 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1580 # I hope there are not other 4.0 versions for this machine | |
1581 # which really need usg5-4 instead. | |
1582 machine=delta88k opsys=usg5-4-2 | |
1583 ;; | |
1584 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1585 machine=delta88k opsys=usg5-3 | |
1586 ;; | |
1587 | |
1588 ## Dual machines | |
1589 m68*-dual-sysv* ) | |
1590 machine=dual opsys=usg5-2 | |
1591 ;; | |
1592 m68*-dual-uniplus* ) | |
1593 machine=dual opsys=unipl5-2 | |
1594 ;; | |
1595 | |
1596 ## Elxsi 6400 | |
1597 elxsi-elxsi-sysv* ) | |
1598 machine=elxsi opsys=usg5-2 | |
1599 ;; | |
1600 | |
1601 ## Encore machines | |
1602 ns16k-encore-bsd* ) | |
1603 machine=ns16000 opsys=umax | |
1604 ;; | |
1605 | |
30069 | 1606 ## The GEC 63 - apparently, this port isn't really finished yet. |
1607 # I'm sure we finished off the last of the machines, though. -- fx | |
25897 | 1608 |
1609 ## Gould Power Node and NP1 | |
1610 pn-gould-bsd4.2* ) | |
1611 machine=gould opsys=bsd4-2 | |
1612 ;; | |
1613 pn-gould-bsd4.3* ) | |
1614 machine=gould opsys=bsd4-3 | |
1615 ;; | |
1616 np1-gould-bsd* ) | |
1617 machine=gould-np1 opsys=bsd4-3 | |
1618 ;; | |
1619 | |
1620 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1621 ## as far as Emacs is concerned). | |
1622 m88k-harris-cxux* ) | |
1623 # Build needs to be different on 7.0 and later releases | |
1624 case "`uname -r`" in | |
1625 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1626 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1627 esac | |
1628 NON_GNU_CPP="/lib/cpp" | |
1629 ;; | |
1630 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1631 m68k-harris-cxux* ) | |
1632 machine=nh3000 opsys=cxux | |
1633 ;; | |
1634 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1635 powerpc-harris-powerunix ) | |
1636 machine=nh6000 opsys=powerunix | |
1637 NON_GNU_CPP="cc -Xo -E -P" | |
1638 ;; | |
1639 ## SR2001/SR2201 running HI-UX/MPP | |
1640 hppa1.1-hitachi-hiuxmpp* ) | |
1641 machine=sr2k opsys=hiuxmpp | |
1642 ;; | |
38811 | 1643 hppa1.1-hitachi-hiuxwe2* ) |
1644 machine=sr2k opsys=hiuxwe2 | |
1645 ;; | |
25897 | 1646 ## Honeywell XPS100 |
1647 xps*-honeywell-sysv* ) | |
1648 machine=xps100 opsys=usg5-2 | |
1649 ;; | |
1650 | |
1651 ## HP 9000 series 200 or 300 | |
1652 m68*-hp-bsd* ) | |
1653 machine=hp9000s300 opsys=bsd4-3 | |
1654 ;; | |
1655 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1656 m68*-hp-hpux* ) | |
1657 case "`uname -r`" in | |
1658 ## Someone's system reports A.B8.05 for this. | |
1659 ## I wonder what other possibilities there are. | |
1660 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1661 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1662 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1663 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1664 *) machine=hp9000s300 opsys=hpux ;; | |
1665 esac | |
1666 ;; | |
1667 | |
1668 ## HP 9000 series 700 and 800, running HP/UX | |
1669 hppa*-hp-hpux7* ) | |
1670 machine=hp800 opsys=hpux | |
1671 ;; | |
1672 hppa*-hp-hpux8* ) | |
1673 machine=hp800 opsys=hpux8 | |
1674 ;; | |
1675 hppa*-hp-hpux9shr* ) | |
1676 machine=hp800 opsys=hpux9shr | |
1677 ;; | |
1678 hppa*-hp-hpux9* ) | |
1679 machine=hp800 opsys=hpux9 | |
1680 ;; | |
40632 | 1681 hppa*-hp-hpux10* ) |
25897 | 1682 machine=hp800 opsys=hpux10 |
1683 ;; | |
40632 | 1684 hppa*-hp-hpux1[1-9]* ) |
1685 machine=hp800 opsys=hpux11 | |
1686 ;; | |
25897 | 1687 |
41960 | 1688 hppa*-*-linux-gnu* ) |
1689 machine=hp800 opsys=gnu-linux | |
1690 ;; | |
1691 | |
25897 | 1692 ## HP 9000 series 700 and 800, running HP/UX |
1693 hppa*-hp-hpux* ) | |
1694 ## Cross-compilation? Nah! | |
1695 case "`uname -r`" in | |
1696 ## Someone's system reports A.B8.05 for this. | |
1697 ## I wonder what other possibilities there are. | |
1698 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1699 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1700 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1701 *) machine=hp800 opsys=hpux10 ;; | |
1702 esac | |
1703 ;; | |
1704 hppa*-*-nextstep* ) | |
1705 machine=hp800 opsys=nextstep | |
1706 ;; | |
1707 | |
1708 ## Orion machines | |
1709 orion-orion-bsd* ) | |
1710 machine=orion opsys=bsd4-2 | |
1711 ;; | |
1712 clipper-orion-bsd* ) | |
1713 machine=orion105 opsys=bsd4-2 | |
1714 ;; | |
1715 | |
1716 ## IBM machines | |
1717 i[3456]86-ibm-aix1.1* ) | |
1718 machine=ibmps2-aix opsys=usg5-2-2 | |
1719 ;; | |
1720 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1721 machine=ibmps2-aix opsys=usg5-3 | |
1722 ;; | |
1723 i370-ibm-aix*) | |
1724 machine=ibm370aix opsys=usg5-3 | |
1725 ;; | |
40426 | 1726 s390-*-linux-gnu) |
1727 machine=ibms390 opsys=gnu-linux | |
1728 ;; | |
25897 | 1729 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
1730 machine=ibmrs6000 opsys=aix3-1 | |
1731 ;; | |
1732 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1733 machine=ibmrs6000 opsys=aix3-2-5 | |
1734 ;; | |
1735 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1736 machine=ibmrs6000 opsys=aix4-1 | |
1737 ;; | |
1738 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1739 machine=ibmrs6000 opsys=aix4-2 | |
1740 ;; | |
43924 | 1741 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* ) |
1742 machine=ibmrs6000 opsys=aix4-2 | |
1743 ;; | |
25897 | 1744 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
1745 machine=ibmrs6000 opsys=aix4 | |
1746 ;; | |
1747 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1748 machine=ibmrs6000 opsys=aix4-1 | |
1749 ;; | |
1750 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1751 machine=ibmrs6000 opsys=aix3-2 | |
1752 ;; | |
1753 romp-ibm-bsd4.3* ) | |
1754 machine=ibmrt opsys=bsd4-3 | |
1755 ;; | |
1756 romp-ibm-bsd4.2* ) | |
1757 machine=ibmrt opsys=bsd4-2 | |
1758 ;; | |
1759 romp-ibm-aos4.3* ) | |
1760 machine=ibmrt opsys=bsd4-3 | |
1761 ;; | |
1762 romp-ibm-aos4.2* ) | |
1763 machine=ibmrt opsys=bsd4-2 | |
1764 ;; | |
1765 romp-ibm-aos* ) | |
1766 machine=ibmrt opsys=bsd4-3 | |
1767 ;; | |
1768 romp-ibm-bsd* ) | |
1769 machine=ibmrt opsys=bsd4-3 | |
1770 ;; | |
1771 romp-ibm-aix* ) | |
1772 machine=ibmrt-aix opsys=usg5-2-2 | |
1773 ;; | |
1774 | |
1775 ## Integrated Solutions `Optimum V' | |
1776 m68*-isi-bsd4.2* ) | |
1777 machine=isi-ov opsys=bsd4-2 | |
1778 ;; | |
1779 m68*-isi-bsd4.3* ) | |
1780 machine=isi-ov opsys=bsd4-3 | |
1781 ;; | |
1782 | |
1783 ## Intel 386 machines where we do care about the manufacturer | |
1784 i[3456]86-intsys-sysv* ) | |
1785 machine=is386 opsys=usg5-2-2 | |
1786 ;; | |
1787 | |
1788 ## Prime EXL | |
1789 i[3456]86-prime-sysv* ) | |
1790 machine=i386 opsys=usg5-3 | |
1791 ;; | |
1792 | |
1793 ## Sequent Symmetry running Dynix | |
1794 i[3456]86-sequent-bsd* ) | |
1795 machine=symmetry opsys=bsd4-3 | |
1796 ;; | |
1797 | |
1798 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1799 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1800 machine=sequent-ptx opsys=ptx4 | |
1801 NON_GNU_CPP=/lib/cpp | |
1802 ;; | |
1803 | |
1804 ## Sequent Symmetry running DYNIX/ptx | |
1805 ## Use the old cpp rather than the newer ANSI one. | |
1806 i[3456]86-sequent-ptx* ) | |
1807 machine=sequent-ptx opsys=ptx | |
1808 NON_GNU_CPP="/lib/cpp" | |
1809 ;; | |
1810 | |
1811 ## ncr machine running svr4.3. | |
1812 i[3456]86-ncr-sysv4.3 ) | |
1813 machine=ncr386 opsys=usg5-4-3 | |
1814 ;; | |
1815 | |
1816 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1817 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1818 i[3456]86-ncr-sysv* ) | |
1819 machine=ncr386 opsys=usg5-4-2 | |
1820 ;; | |
1821 | |
1822 ## Intel Paragon OSF/1 | |
1823 i860-intel-osf1* ) | |
1824 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1825 ;; | |
1826 | |
1827 ## Intel 860 | |
1828 i860-*-sysv4* ) | |
1829 machine=i860 opsys=usg5-4 | |
1830 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1831 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1832 ;; | |
1833 | |
28748 | 1834 ## Macintosh PowerPC |
1835 powerpc*-*-linux-gnu* ) | |
1836 machine=macppc opsys=gnu-linux | |
1837 ;; | |
1838 | |
25897 | 1839 ## Masscomp machines |
1840 m68*-masscomp-rtu* ) | |
1841 machine=masscomp opsys=rtu | |
1842 ;; | |
1843 | |
1844 ## Megatest machines | |
1845 m68*-megatest-bsd* ) | |
1846 machine=mega68 opsys=bsd4-2 | |
1847 ;; | |
1848 | |
1849 ## Workstations sold by MIPS | |
1850 ## This is not necessarily all workstations using the MIPS processor - | |
1851 ## Irises are produced by SGI, and DECstations by DEC. | |
1852 | |
1853 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1854 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1855 ## it gives for choosing between the alternatives seems to be "Use | |
1856 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1857 ## the BSD world." I'll assume that these are instructions for | |
1858 ## handling two odd situations, and that every other situation | |
1859 ## should use mips.h and usg5-2-2, they being listed first. | |
1860 mips-mips-usg* ) | |
1861 machine=mips4 | |
1862 ## Fall through to the general code at the bottom to decide on the OS. | |
1863 ;; | |
1864 mips-mips-riscos4* ) | |
1865 machine=mips4 opsys=bsd4-3 | |
1866 NON_GNU_CC="cc -systype bsd43" | |
1867 NON_GNU_CPP="cc -systype bsd43 -E" | |
1868 ;; | |
1869 mips-mips-riscos5* ) | |
1870 machine=mips4 opsys=riscos5 | |
1871 NON_GNU_CC="cc -systype bsd43" | |
1872 NON_GNU_CPP="cc -systype bsd43 -E" | |
1873 ;; | |
1874 mips-mips-bsd* ) | |
1875 machine=mips opsys=bsd4-3 | |
1876 ;; | |
1877 mips-mips-* ) | |
1878 machine=mips opsys=usg5-2-2 | |
1879 ;; | |
1880 | |
1881 ## NeXT | |
1882 m68*-next-* | m68k-*-nextstep* ) | |
1883 machine=m68k opsys=nextstep | |
1884 ;; | |
1885 | |
1886 ## The complete machine from National Semiconductor | |
1887 ns32k-ns-genix* ) | |
1888 machine=ns32000 opsys=usg5-2 | |
1889 ;; | |
1890 | |
1891 ## NCR machines | |
1892 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1893 machine=tower32 opsys=usg5-2-2 | |
1894 ;; | |
1895 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1896 machine=tower32v3 opsys=usg5-3 | |
1897 ;; | |
1898 | |
1899 ## NEC EWS4800 | |
1900 mips-nec-sysv4*) | |
1901 machine=ews4800 opsys=ux4800 | |
1902 ;; | |
1903 | |
1904 ## Nixdorf Targon 31 | |
1905 m68*-nixdorf-sysv* ) | |
1906 machine=targon31 opsys=usg5-2-2 | |
1907 ;; | |
1908 | |
1909 ## Nu (TI or LMI) | |
1910 m68*-nu-sysv* ) | |
1911 machine=nu opsys=usg5-2 | |
1912 ;; | |
1913 | |
1914 ## Plexus | |
1915 m68*-plexus-sysv* ) | |
1916 machine=plexus opsys=usg5-2 | |
1917 ;; | |
1918 | |
1919 ## PowerPC reference platform | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1920 powerpcle-*-solaris2.5* ) |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1921 machine=prep |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1922 opsys=sol2-5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1923 ;; |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1924 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1925 ## PowerPC reference platform |
25897 | 1926 powerpcle-*-solaris2* ) |
1927 machine=prep | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
1928 opsys=sol2-6 |
25897 | 1929 ;; |
1930 | |
1931 ## Pyramid machines | |
1932 ## I don't really have any idea what sort of processor the Pyramid has, | |
1933 ## so I'm assuming it is its own architecture. | |
1934 pyramid-pyramid-bsd* ) | |
1935 machine=pyramid opsys=bsd4-2 | |
1936 ;; | |
1937 | |
1938 ## Sequent Balance | |
1939 ns32k-sequent-bsd4.2* ) | |
1940 machine=sequent opsys=bsd4-2 | |
1941 ;; | |
1942 ns32k-sequent-bsd4.3* ) | |
1943 machine=sequent opsys=bsd4-3 | |
1944 ;; | |
1945 | |
1946 ## Siemens Nixdorf | |
1947 mips-siemens-sysv* | mips-sni-sysv*) | |
1948 machine=mips-siemens opsys=usg5-4 | |
1949 NON_GNU_CC=/usr/ccs/bin/cc | |
1950 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1951 ;; | |
1952 | |
1953 ## Silicon Graphics machines | |
1954 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1955 m68*-sgi-iris3.5* ) | |
1956 machine=irist opsys=iris3-5 | |
1957 ;; | |
1958 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1959 machine=irist opsys=iris3-6 | |
1960 ;; | |
1961 ## Iris 4D | |
1962 mips-sgi-irix3* ) | |
1963 machine=iris4d opsys=irix3-3 | |
1964 ;; | |
1965 mips-sgi-irix4* ) | |
1966 machine=iris4d opsys=irix4-0 | |
1967 ;; | |
1968 mips-sgi-irix6.5 ) | |
1969 machine=iris4d opsys=irix6-5 | |
26502 | 1970 # Without defining _LANGUAGE_C, things get masked out in the headers |
1971 # so that, for instance, grepping for `free' in stdlib.h fails and | |
1972 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
1973 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1974 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
25897 | 1975 ;; |
1976 mips-sgi-irix6* ) | |
1977 machine=iris4d opsys=irix6-0 | |
27205 | 1978 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26502 | 1979 # but presumably it does no harm. |
1980 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1981 # -32 probably isn't necessary in later v.6s -- anyone know which? |
25897 | 1982 NON_GCC_TEST_OPTIONS=-32 |
1983 ;; | |
1984 mips-sgi-irix5.[01]* ) | |
1985 machine=iris4d opsys=irix5-0 | |
1986 ;; | |
1987 mips-sgi-irix5* | mips-sgi-irix* ) | |
1988 machine=iris4d opsys=irix5-2 | |
1989 ;; | |
1990 | |
1991 ## SONY machines | |
1992 m68*-sony-bsd4.2* ) | |
1993 machine=news opsys=bsd4-2 | |
1994 ;; | |
1995 m68*-sony-bsd4.3* ) | |
1996 machine=news opsys=bsd4-3 | |
1997 ;; | |
1998 m68*-sony-newsos3* | m68*-sony-news3*) | |
1999 machine=news opsys=bsd4-3 | |
2000 ;; | |
2001 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2002 machine=news-risc opsys=bsd4-3 | |
2003 ;; | |
2004 mips-sony-newsos6* ) | |
2005 machine=news-r6 opsys=newsos6 | |
2006 ;; | |
2007 mips-sony-news* ) | |
2008 machine=news-risc opsys=newsos5 | |
2009 ;; | |
2010 | |
2011 ## Stride | |
2012 m68*-stride-sysv* ) | |
2013 machine=stride opsys=usg5-2 | |
2014 ;; | |
2015 | |
2016 ## Suns | |
2017 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2018 machine=sparc opsys=gnu-linux | |
2019 ;; | |
2020 | |
27949 | 2021 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
25897 | 2022 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2023 | rs6000-*-solaris2*) | |
2024 case "${canonical}" in | |
2025 m68*-sunos1* ) machine=sun1 ;; | |
2026 m68*-sunos2* ) machine=sun2 ;; | |
2027 m68* ) machine=sun3 ;; | |
2028 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2029 i[3456]86-*-* ) machine=intel386 ;; | |
2030 powerpcle* ) machine=powerpcle ;; | |
2031 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2032 sparc* ) machine=sparc ;; | |
2033 * ) unported=yes ;; | |
2034 esac | |
2035 case "${canonical}" in | |
2036 ## The Sun386 didn't get past 4.0. | |
2037 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2038 *-sunos4.0* ) opsys=sunos4-0 ;; | |
2039 *-sunos4.1.[3-9]*noshare ) | |
2040 ## This name is sunos413 instead of sunos4-1-3 | |
2041 ## to avoid a file name conflict on MSDOS. | |
2042 opsys=sunos413 | |
2043 NON_GNU_CPP=/usr/lib/cpp | |
2044 NON_GCC_TEST_OPTIONS=-Bstatic | |
2045 GCC_TEST_OPTIONS=-static | |
2046 ;; | |
2047 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2048 opsys=sunos4shr | |
2049 NON_GNU_CPP=/usr/lib/cpp | |
2050 ;; | |
2051 *-sunos4* | *-sunos ) | |
2052 opsys=sunos4-1 | |
2053 NON_GCC_TEST_OPTIONS=-Bstatic | |
2054 GCC_TEST_OPTIONS=-static | |
2055 ;; | |
2056 *-sunos5.3* | *-solaris2.3* ) | |
2057 opsys=sol2-3 | |
2058 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2059 ;; | |
2060 *-sunos5.4* | *-solaris2.4* ) | |
2061 opsys=sol2-4 | |
2062 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2063 RANLIB="ar -ts" | |
2064 ;; | |
2065 *-sunos5.5* | *-solaris2.5* ) | |
2066 opsys=sol2-5 | |
2067 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2068 RANLIB="ar -ts" | |
2069 ;; | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2070 *-sunos5.6* | *-solaris2.6* ) |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2071 opsys=sol2-6 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2072 NON_GNU_CPP=/usr/ccs/lib/cpp |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2073 RANLIB="ar -ts" |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2074 ;; |
25897 | 2075 *-sunos5* | *-solaris* ) |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2076 opsys=sol2-6 |
25897 | 2077 NON_GNU_CPP=/usr/ccs/lib/cpp |
2078 ;; | |
2079 * ) opsys=bsd4-2 ;; | |
2080 esac | |
2081 ## Watch out for a compiler that we know will not work. | |
2082 case "${canonical}" in | |
2083 *-solaris* | *-sunos5* ) | |
2084 if [ "x$CC" = x/usr/ucb/cc ]; then | |
2085 ## /usr/ucb/cc doesn't work; | |
2086 ## we should find some other compiler that does work. | |
2087 unset CC | |
2088 fi | |
2089 ;; | |
2090 *) ;; | |
2091 esac | |
2092 ;; | |
2093 sparc-*-nextstep* ) | |
2094 machine=sparc opsys=nextstep | |
2095 ;; | |
2096 | |
2097 ## Tadpole 68k | |
2098 m68*-tadpole-sysv* ) | |
2099 machine=tad68k opsys=usg5-3 | |
2100 ;; | |
2101 | |
2102 ## Tahoe machines | |
2103 tahoe-tahoe-bsd4.2* ) | |
2104 machine=tahoe opsys=bsd4-2 | |
2105 ;; | |
2106 tahoe-tahoe-bsd4.3* ) | |
2107 machine=tahoe opsys=bsd4-3 | |
2108 ;; | |
2109 | |
2110 ## Tandem Integrity S2 | |
2111 mips-tandem-sysv* ) | |
2112 machine=tandem-s2 opsys=usg5-3 | |
2113 ;; | |
2114 | |
2115 ## Tektronix XD88 | |
2116 m88k-tektronix-sysv3* ) | |
2117 machine=tekxd88 opsys=usg5-3 | |
2118 ;; | |
2119 | |
2120 ## Tektronix 16000 box (6130?) | |
2121 ns16k-tektronix-bsd* ) | |
2122 machine=ns16000 opsys=bsd4-2 | |
2123 ;; | |
2124 ## Tektronix 4300 | |
2125 ## src/m/tek4300.h hints that this is a m68k machine. | |
2126 m68*-tektronix-bsd* ) | |
2127 machine=tek4300 opsys=bsd4-3 | |
2128 ;; | |
2129 | |
2130 ## Titan P2 or P3 | |
2131 ## We seem to have lost the machine-description file titan.h! | |
2132 titan-titan-sysv* ) | |
2133 machine=titan opsys=usg5-3 | |
2134 ;; | |
2135 | |
2136 ## Ustation E30 (SS5E) | |
2137 m68*-unisys-uniplus* ) | |
2138 machine=ustation opsystem=unipl5-2 | |
2139 ;; | |
2140 | |
2141 ## Vaxen. | |
2142 vax-dec-* ) | |
2143 machine=vax | |
2144 case "${canonical}" in | |
2145 *-bsd4.1* ) opsys=bsd4-1 ;; | |
2146 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2147 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2148 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2149 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2150 *-vms* ) opsys=vms ;; | |
2151 * ) unported=yes | |
2152 esac | |
2153 ;; | |
2154 | |
2155 ## Whitechapel MG1 | |
2156 ns16k-whitechapel-* ) | |
2157 machine=mg1 | |
2158 ## We don't know what sort of OS runs on these; we'll let the | |
2159 ## operating system guessing code below try. | |
2160 ;; | |
2161 | |
2162 ## Wicat | |
2163 m68*-wicat-sysv* ) | |
2164 machine=wicat opsys=usg5-2 | |
2165 ;; | |
2166 | |
30576 | 2167 ## IA-64 |
2168 ia64*-*-linux* ) | |
2169 machine=ia64 opsys=gnu-linux | |
2170 ;; | |
2171 | |
25897 | 2172 ## Intel 386 machines where we don't care about the manufacturer |
2173 i[3456]86-*-* ) | |
2174 machine=intel386 | |
2175 case "${canonical}" in | |
29654 | 2176 *-lynxos* ) opsys=lynxos ;; |
25897 | 2177 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2178 *-isc2.2* ) opsys=isc2-2 ;; | |
2179 *-isc4.0* ) opsys=isc4-0 ;; | |
2180 *-isc4.* ) opsys=isc4-1 | |
2181 GCC_TEST_OPTIONS=-posix | |
2182 NON_GCC_TEST_OPTIONS=-Xp | |
2183 ;; | |
2184 *-isc* ) opsys=isc3-0 ;; | |
2185 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2186 *-esix* ) opsys=esix ;; | |
2187 *-xenix* ) opsys=xenix ;; | |
2188 *-linux-gnu* ) opsys=gnu-linux ;; | |
2189 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
40056 | 2190 *-sco3.2v5* ) opsys=sco5 |
25897 | 2191 NON_GNU_CPP=/lib/cpp |
2192 # Prevent -belf from being passed to $CPP. | |
2193 # /lib/cpp does not accept it. | |
2194 OVERRIDE_CPPFLAGS=" " | |
2195 ;; | |
2196 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
2197 *-386bsd* ) opsys=386bsd ;; | |
2198 *-nextstep* ) opsys=nextstep ;; | |
2199 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2200 esac | |
2201 ;; | |
2202 | |
2203 ## m68k Linux-based GNU system | |
2204 m68k-*-linux-gnu* ) | |
2205 machine=m68k opsys=gnu-linux | |
2206 ;; | |
2207 | |
2208 ## Mips Linux-based GNU system | |
2209 mips-*-linux-gnu* ) | |
2210 machine=mips opsys=gnu-linux | |
2211 ;; | |
2212 | |
2213 ## UXP/DS | |
2214 sparc-fujitsu-sysv4* ) | |
2215 machine=sparc opsys=uxpds | |
2216 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2217 RANLIB="ar -ts" | |
2218 ;; | |
2219 | |
2220 ## UXP/V | |
2221 f301-fujitsu-uxpv4.1) | |
2222 machine=f301 opsys=uxpv | |
2223 ;; | |
2224 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2225 ## Darwin / Mac OS X |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2226 powerpc-apple-darwin* ) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2227 machine=powermac opsys=darwin |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2228 # Define CPP as follows to make autoconf work correctly. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2229 CPP="cc -E -traditional-cpp" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2230 ;; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2231 |
45668 | 2232 ## AMD x86-64 Linux-based GNU system |
2233 x86_64-*-linux-gnu* ) | |
46596 | 2234 machine=amdx86-64 opsys=gnu-linux |
45668 | 2235 ;; |
2236 | |
25897 | 2237 * ) |
2238 unported=yes | |
2239 ;; | |
2240 esac | |
2241 | |
2242 ### If the code above didn't choose an operating system, just choose | |
2243 ### an operating system based on the configuration name. You really | |
2244 ### only want to use this when you have no idea what the right | |
2245 ### operating system is; if you know what operating systems a machine | |
2246 ### runs, it's cleaner to make it explicit in the case statement | |
2247 ### above. | |
2248 if test x"${opsys}" = x; then | |
2249 case "${canonical}" in | |
2250 *-gnu* ) opsys=gnu ;; | |
2251 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2252 *-bsd4.2 ) opsys=bsd4-2 ;; | |
2253 *-bsd4.3 ) opsys=bsd4-3 ;; | |
2254 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2255 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2256 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2257 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2258 *-sysv4.2uw* ) opsys=unixware ;; | |
2259 *-sysv4.1* | *-sysvr4.1* ) | |
2260 NON_GNU_CPP=/usr/lib/cpp | |
2261 opsys=usg5-4 ;; | |
2262 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2263 if [ x$NON_GNU_CPP = x ]; then | |
2264 if [ -f /usr/ccs/lib/cpp ]; then | |
2265 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2266 else | |
2267 NON_GNU_CPP=/lib/cpp | |
2268 fi | |
2269 fi | |
2270 opsys=usg5-4-2 ;; | |
2271 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2272 * ) | |
2273 unported=yes | |
2274 ;; | |
2275 esac | |
2276 fi | |
2277 | |
2278 if test $unported = yes; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2279 { { echo "$as_me:2279: error: Emacs hasn't been ported to \`${canonical}' systems. |
40056 | 2280 Check \`etc/MACHINES' for recognized configuration names." >&5 |
2281 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2282 Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2283 { (exit 1); exit 1; }; } | |
25897 | 2284 fi |
2285 | |
2286 machfile="m/${machine}.h" | |
2287 opsysfile="s/${opsys}.h" | |
2288 | |
2289 #### Choose a compiler. | |
2290 test -n "$CC" && cc_specified=yes | |
2291 | |
2292 # Save the value of CFLAGS that the user specified. | |
2293 SPECIFIED_CFLAGS="$CFLAGS" | |
2294 | |
2295 case ${with_gcc} in | |
2296 "yes" ) CC="gcc" GCC=yes ;; | |
2297 "no" ) : ${CC=cc} ;; | |
40056 | 2298 * ) |
2299 esac | |
2300 ac_ext=c | |
2301 ac_cpp='$CPP $CPPFLAGS' | |
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2305 if test -n "$ac_tool_prefix"; then | |
2306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2307 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2308 echo "$as_me:2308: checking for $ac_word" >&5 |
40056 | 2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2310 if test "${ac_cv_prog_CC+set}" = set; then | |
2311 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2312 else | |
2313 if test -n "$CC"; then | |
2314 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2315 else | |
45226 | 2316 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2317 ac_dummy="$PATH" | |
2318 for ac_dir in $ac_dummy; do | |
2319 IFS=$ac_save_IFS | |
2320 test -z "$ac_dir" && ac_dir=. | |
2321 $as_executable_p "$ac_dir/$ac_word" || continue | |
2322 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2323 echo "$as_me:2323: found $ac_dir/$ac_word" >&5 |
45226 | 2324 break |
40056 | 2325 done |
2326 | |
2327 fi | |
2328 fi | |
2329 CC=$ac_cv_prog_CC | |
2330 if test -n "$CC"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2331 echo "$as_me:2331: result: $CC" >&5 |
40056 | 2332 echo "${ECHO_T}$CC" >&6 |
2333 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2334 echo "$as_me:2334: result: no" >&5 |
40056 | 2335 echo "${ECHO_T}no" >&6 |
2336 fi | |
2337 | |
2338 fi | |
2339 if test -z "$ac_cv_prog_CC"; then | |
2340 ac_ct_CC=$CC | |
2341 # Extract the first word of "gcc", so it can be a program name with args. | |
25897 | 2342 set dummy gcc; ac_word=$2 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2343 echo "$as_me:2343: checking for $ac_word" >&5 |
40056 | 2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2346 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2347 else | |
2348 if test -n "$ac_ct_CC"; then | |
2349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2350 else | |
45226 | 2351 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2352 ac_dummy="$PATH" | |
2353 for ac_dir in $ac_dummy; do | |
2354 IFS=$ac_save_IFS | |
2355 test -z "$ac_dir" && ac_dir=. | |
2356 $as_executable_p "$ac_dir/$ac_word" || continue | |
2357 ac_cv_prog_ac_ct_CC="gcc" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2358 echo "$as_me:2358: found $ac_dir/$ac_word" >&5 |
45226 | 2359 break |
40056 | 2360 done |
2361 | |
2362 fi | |
2363 fi | |
2364 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2365 if test -n "$ac_ct_CC"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2366 echo "$as_me:2366: result: $ac_ct_CC" >&5 |
40056 | 2367 echo "${ECHO_T}$ac_ct_CC" >&6 |
2368 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2369 echo "$as_me:2369: result: no" >&5 |
40056 | 2370 echo "${ECHO_T}no" >&6 |
2371 fi | |
2372 | |
2373 CC=$ac_ct_CC | |
2374 else | |
2375 CC="$ac_cv_prog_CC" | |
2376 fi | |
2377 | |
2378 if test -z "$CC"; then | |
2379 if test -n "$ac_tool_prefix"; then | |
2380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2381 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2382 echo "$as_me:2382: checking for $ac_word" >&5 |
40056 | 2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2384 if test "${ac_cv_prog_CC+set}" = set; then | |
2385 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2386 else |
2387 if test -n "$CC"; then | |
2388 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2389 else | |
45226 | 2390 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2391 ac_dummy="$PATH" | |
2392 for ac_dir in $ac_dummy; do | |
2393 IFS=$ac_save_IFS | |
2394 test -z "$ac_dir" && ac_dir=. | |
2395 $as_executable_p "$ac_dir/$ac_word" || continue | |
2396 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2397 echo "$as_me:2397: found $ac_dir/$ac_word" >&5 |
45226 | 2398 break |
40056 | 2399 done |
2400 | |
2401 fi | |
2402 fi | |
2403 CC=$ac_cv_prog_CC | |
25897 | 2404 if test -n "$CC"; then |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2405 echo "$as_me:2405: result: $CC" >&5 |
40056 | 2406 echo "${ECHO_T}$CC" >&6 |
2407 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2408 echo "$as_me:2408: result: no" >&5 |
40056 | 2409 echo "${ECHO_T}no" >&6 |
2410 fi | |
2411 | |
2412 fi | |
2413 if test -z "$ac_cv_prog_CC"; then | |
2414 ac_ct_CC=$CC | |
2415 # Extract the first word of "cc", so it can be a program name with args. | |
2416 set dummy cc; ac_word=$2 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2417 echo "$as_me:2417: checking for $ac_word" >&5 |
40056 | 2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2420 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2421 else | |
2422 if test -n "$ac_ct_CC"; then | |
2423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2424 else | |
45226 | 2425 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2426 ac_dummy="$PATH" | |
2427 for ac_dir in $ac_dummy; do | |
2428 IFS=$ac_save_IFS | |
2429 test -z "$ac_dir" && ac_dir=. | |
2430 $as_executable_p "$ac_dir/$ac_word" || continue | |
2431 ac_cv_prog_ac_ct_CC="cc" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2432 echo "$as_me:2432: found $ac_dir/$ac_word" >&5 |
45226 | 2433 break |
40056 | 2434 done |
2435 | |
2436 fi | |
2437 fi | |
2438 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2439 if test -n "$ac_ct_CC"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2440 echo "$as_me:2440: result: $ac_ct_CC" >&5 |
40056 | 2441 echo "${ECHO_T}$ac_ct_CC" >&6 |
2442 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2443 echo "$as_me:2443: result: no" >&5 |
40056 | 2444 echo "${ECHO_T}no" >&6 |
2445 fi | |
2446 | |
2447 CC=$ac_ct_CC | |
2448 else | |
2449 CC="$ac_cv_prog_CC" | |
2450 fi | |
2451 | |
2452 fi | |
25897 | 2453 if test -z "$CC"; then |
2454 # Extract the first word of "cc", so it can be a program name with args. | |
2455 set dummy cc; ac_word=$2 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2456 echo "$as_me:2456: checking for $ac_word" >&5 |
40056 | 2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2458 if test "${ac_cv_prog_CC+set}" = set; then | |
2459 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2460 else |
2461 if test -n "$CC"; then | |
2462 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2463 else | |
2464 ac_prog_rejected=no | |
45226 | 2465 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2466 ac_dummy="$PATH" | |
2467 for ac_dir in $ac_dummy; do | |
2468 IFS=$ac_save_IFS | |
2469 test -z "$ac_dir" && ac_dir=. | |
2470 $as_executable_p "$ac_dir/$ac_word" || continue | |
2471 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2472 ac_prog_rejected=yes | |
2473 continue | |
2474 fi | |
2475 ac_cv_prog_CC="cc" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2476 echo "$as_me:2476: found $ac_dir/$ac_word" >&5 |
45226 | 2477 break |
40056 | 2478 done |
2479 | |
25897 | 2480 if test $ac_prog_rejected = yes; then |
2481 # We found a bogon in the path, so make sure we never use it. | |
2482 set dummy $ac_cv_prog_CC | |
2483 shift | |
40056 | 2484 if test $# != 0; then |
25897 | 2485 # We chose a different compiler from the bogus one. |
2486 # However, it has the same basename, so the bogon will be chosen | |
2487 # first if we set CC to just the basename; use the full file name. | |
2488 shift | |
45226 | 2489 set dummy "$ac_dir/$ac_word" ${1+"$@"} |
25897 | 2490 shift |
2491 ac_cv_prog_CC="$@" | |
2492 fi | |
2493 fi | |
2494 fi | |
2495 fi | |
40056 | 2496 CC=$ac_cv_prog_CC |
25897 | 2497 if test -n "$CC"; then |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2498 echo "$as_me:2498: result: $CC" >&5 |
40056 | 2499 echo "${ECHO_T}$CC" >&6 |
2500 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2501 echo "$as_me:2501: result: no" >&5 |
40056 | 2502 echo "${ECHO_T}no" >&6 |
2503 fi | |
2504 | |
2505 fi | |
2506 if test -z "$CC"; then | |
2507 if test -n "$ac_tool_prefix"; then | |
2508 for ac_prog in cl | |
2509 do | |
2510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2512 echo "$as_me:2512: checking for $ac_word" >&5 |
40056 | 2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2514 if test "${ac_cv_prog_CC+set}" = set; then | |
2515 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27205 | 2516 else |
2517 if test -n "$CC"; then | |
2518 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2519 else | |
45226 | 2520 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2521 ac_dummy="$PATH" | |
2522 for ac_dir in $ac_dummy; do | |
2523 IFS=$ac_save_IFS | |
2524 test -z "$ac_dir" && ac_dir=. | |
2525 $as_executable_p "$ac_dir/$ac_word" || continue | |
2526 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2527 echo "$as_me:2527: found $ac_dir/$ac_word" >&5 |
45226 | 2528 break |
40056 | 2529 done |
2530 | |
2531 fi | |
2532 fi | |
2533 CC=$ac_cv_prog_CC | |
27205 | 2534 if test -n "$CC"; then |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2535 echo "$as_me:2535: result: $CC" >&5 |
40056 | 2536 echo "${ECHO_T}$CC" >&6 |
2537 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2538 echo "$as_me:2538: result: no" >&5 |
40056 | 2539 echo "${ECHO_T}no" >&6 |
2540 fi | |
2541 | |
2542 test -n "$CC" && break | |
2543 done | |
2544 fi | |
2545 if test -z "$CC"; then | |
2546 ac_ct_CC=$CC | |
2547 for ac_prog in cl | |
2548 do | |
2549 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2550 set dummy $ac_prog; ac_word=$2 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2551 echo "$as_me:2551: checking for $ac_word" >&5 |
40056 | 2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2554 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2555 else | |
2556 if test -n "$ac_ct_CC"; then | |
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2558 else | |
45226 | 2559 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2560 ac_dummy="$PATH" | |
2561 for ac_dir in $ac_dummy; do | |
2562 IFS=$ac_save_IFS | |
2563 test -z "$ac_dir" && ac_dir=. | |
2564 $as_executable_p "$ac_dir/$ac_word" || continue | |
2565 ac_cv_prog_ac_ct_CC="$ac_prog" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2566 echo "$as_me:2566: found $ac_dir/$ac_word" >&5 |
45226 | 2567 break |
40056 | 2568 done |
2569 | |
2570 fi | |
2571 fi | |
2572 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2573 if test -n "$ac_ct_CC"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2574 echo "$as_me:2574: result: $ac_ct_CC" >&5 |
40056 | 2575 echo "${ECHO_T}$ac_ct_CC" >&6 |
2576 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2577 echo "$as_me:2577: result: no" >&5 |
40056 | 2578 echo "${ECHO_T}no" >&6 |
2579 fi | |
2580 | |
2581 test -n "$ac_ct_CC" && break | |
2582 done | |
2583 | |
2584 CC=$ac_ct_CC | |
2585 fi | |
2586 | |
2587 fi | |
2588 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2589 test -z "$CC" && { { echo "$as_me:2589: error: no acceptable cc found in \$PATH" >&5 |
45226 | 2590 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
40056 | 2591 { (exit 1); exit 1; }; } |
2592 | |
2593 # Provide some information about the compiler. | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2594 echo "$as_me:2594:" \ |
40056 | 2595 "checking for C compiler version" >&5 |
2596 ac_compiler=`set X $ac_compile; echo $2` | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2597 { (eval echo "$as_me:2597: \"$ac_compiler --version </dev/null >&5\"") >&5 |
40056 | 2598 (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2599 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2600 echo "$as_me:2600: \$? = $ac_status" >&5 |
40056 | 2601 (exit $ac_status); } |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2602 { (eval echo "$as_me:2602: \"$ac_compiler -v </dev/null >&5\"") >&5 |
45668 | 2603 (eval $ac_compiler -v </dev/null >&5) 2>&5 |
40056 | 2604 ac_status=$? |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2605 echo "$as_me:2605: \$? = $ac_status" >&5 |
40056 | 2606 (exit $ac_status); } |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2607 { (eval echo "$as_me:2607: \"$ac_compiler -V </dev/null >&5\"") >&5 |
45668 | 2608 (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2609 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2610 echo "$as_me:2610: \$? = $ac_status" >&5 |
45668 | 2611 (exit $ac_status); } |
40056 | 2612 |
2613 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2614 #line 2614 "configure" |
45226 | 2615 #include "confdefs.h" |
2616 | |
40056 | 2617 int |
2618 main () | |
2619 { | |
2620 | |
2621 ; | |
2622 return 0; | |
2623 } | |
2624 _ACEOF | |
2625 ac_clean_files_save=$ac_clean_files | |
2626 ac_clean_files="$ac_clean_files a.out a.exe" | |
2627 # Try to create an executable without -o first, disregard a.out. | |
2628 # It will help us diagnose broken compilers, and finding out an intuition | |
2629 # of exeext. | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2630 echo "$as_me:2630: checking for C compiler default output" >&5 |
40056 | 2631 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2632 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2633 if { (eval echo "$as_me:2633: \"$ac_link_default\"") >&5 |
40056 | 2634 (eval $ac_link_default) 2>&5 |
2635 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2636 echo "$as_me:2636: \$? = $ac_status" >&5 |
40056 | 2637 (exit $ac_status); }; then |
2638 # Find the output, starting from the most likely. This scheme is | |
2639 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2640 # resort. | |
45226 | 2641 for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
40056 | 2642 ls a.out conftest 2>/dev/null; |
2643 ls a.* conftest.* 2>/dev/null`; do | |
2644 case $ac_file in | |
45226 | 2645 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
40056 | 2646 a.out ) # We found the default executable, but exeext='' is most |
2647 # certainly right. | |
2648 break;; | |
2649 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2650 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2651 export ac_cv_exeext | |
2652 break;; | |
2653 * ) break;; | |
2654 esac | |
2655 done | |
2656 else | |
2657 echo "$as_me: failed program was:" >&5 | |
2658 cat conftest.$ac_ext >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2659 { { echo "$as_me:2659: error: C compiler cannot create executables" >&5 |
40056 | 2660 echo "$as_me: error: C compiler cannot create executables" >&2;} |
2661 { (exit 77); exit 77; }; } | |
2662 fi | |
2663 | |
2664 ac_exeext=$ac_cv_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2665 echo "$as_me:2665: result: $ac_file" >&5 |
40056 | 2666 echo "${ECHO_T}$ac_file" >&6 |
2667 | |
2668 # Check the compiler produces executables we can run. If not, either | |
2669 # the compiler is broken, or we cross compile. | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2670 echo "$as_me:2670: checking whether the C compiler works" >&5 |
40056 | 2671 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2672 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2673 # If not cross compiling, check that we can run a simple program. | |
2674 if test "$cross_compiling" != yes; then | |
2675 if { ac_try='./$ac_file' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2676 { (eval echo "$as_me:2676: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2677 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2678 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2679 echo "$as_me:2679: \$? = $ac_status" >&5 |
40056 | 2680 (exit $ac_status); }; }; then |
2681 cross_compiling=no | |
25897 | 2682 else |
40056 | 2683 if test "$cross_compiling" = maybe; then |
2684 cross_compiling=yes | |
2685 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2686 { { echo "$as_me:2686: error: cannot run C compiled programs. |
40056 | 2687 If you meant to cross compile, use \`--host'." >&5 |
2688 echo "$as_me: error: cannot run C compiled programs. | |
2689 If you meant to cross compile, use \`--host'." >&2;} | |
2690 { (exit 1); exit 1; }; } | |
2691 fi | |
2692 fi | |
2693 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2694 echo "$as_me:2694: result: yes" >&5 |
40056 | 2695 echo "${ECHO_T}yes" >&6 |
2696 | |
2697 rm -f a.out a.exe conftest$ac_cv_exeext | |
2698 ac_clean_files=$ac_clean_files_save | |
2699 # Check the compiler produces executables we can run. If not, either | |
2700 # the compiler is broken, or we cross compile. | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2701 echo "$as_me:2701: checking whether we are cross compiling" >&5 |
40056 | 2702 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2703 echo "$as_me:2703: result: $cross_compiling" >&5 |
40056 | 2704 echo "${ECHO_T}$cross_compiling" >&6 |
2705 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2706 echo "$as_me:2706: checking for executable suffix" >&5 |
45226 | 2707 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2708 if { (eval echo "$as_me:2708: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2709 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2710 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2711 echo "$as_me:2711: \$? = $ac_status" >&5 |
40056 | 2712 (exit $ac_status); }; then |
2713 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2714 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2715 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2716 # `rm'. | |
2717 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2718 case $ac_file in | |
44994 | 2719 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
40056 | 2720 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2721 export ac_cv_exeext | |
2722 break;; | |
2723 * ) break;; | |
2724 esac | |
2725 done | |
2726 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2727 { { echo "$as_me:2727: error: cannot compute EXEEXT: cannot compile and link" >&5 |
45226 | 2728 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
40056 | 2729 { (exit 1); exit 1; }; } |
2730 fi | |
2731 | |
2732 rm -f conftest$ac_cv_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2733 echo "$as_me:2733: result: $ac_cv_exeext" >&5 |
40056 | 2734 echo "${ECHO_T}$ac_cv_exeext" >&6 |
2735 | |
2736 rm -f conftest.$ac_ext | |
2737 EXEEXT=$ac_cv_exeext | |
2738 ac_exeext=$EXEEXT | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2739 echo "$as_me:2739: checking for object suffix" >&5 |
45226 | 2740 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
40056 | 2741 if test "${ac_cv_objext+set}" = set; then |
2742 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2743 else | |
2744 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2745 #line 2745 "configure" |
45226 | 2746 #include "confdefs.h" |
2747 | |
40056 | 2748 int |
2749 main () | |
2750 { | |
2751 | |
2752 ; | |
2753 return 0; | |
2754 } | |
2755 _ACEOF | |
2756 rm -f conftest.o conftest.obj | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2757 if { (eval echo "$as_me:2757: \"$ac_compile\"") >&5 |
44493 | 2758 (eval $ac_compile) 2>&5 |
2759 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2760 echo "$as_me:2760: \$? = $ac_status" >&5 |
40056 | 2761 (exit $ac_status); }; then |
2762 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2763 case $ac_file in | |
44994 | 2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
40056 | 2765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2766 break;; | |
2767 esac | |
2768 done | |
2769 else | |
2770 echo "$as_me: failed program was:" >&5 | |
2771 cat conftest.$ac_ext >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2772 { { echo "$as_me:2772: error: cannot compute OBJEXT: cannot compile" >&5 |
45226 | 2773 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
40056 | 2774 { (exit 1); exit 1; }; } |
2775 fi | |
2776 | |
2777 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2778 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2779 echo "$as_me:2779: result: $ac_cv_objext" >&5 |
40056 | 2780 echo "${ECHO_T}$ac_cv_objext" >&6 |
2781 OBJEXT=$ac_cv_objext | |
2782 ac_objext=$OBJEXT | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2783 echo "$as_me:2783: checking whether we are using the GNU C compiler" >&5 |
40056 | 2784 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2785 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2786 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2787 else | |
2788 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2789 #line 2789 "configure" |
45226 | 2790 #include "confdefs.h" |
2791 | |
40056 | 2792 int |
2793 main () | |
2794 { | |
2795 #ifndef __GNUC__ | |
2796 choke me | |
2797 #endif | |
2798 | |
2799 ; | |
2800 return 0; | |
2801 } | |
2802 _ACEOF | |
2803 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2804 if { (eval echo "$as_me:2804: \"$ac_compile\"") >&5 |
44493 | 2805 (eval $ac_compile) 2>&5 |
2806 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2807 echo "$as_me:2807: \$? = $ac_status" >&5 |
44493 | 2808 (exit $ac_status); } && |
2809 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2810 { (eval echo "$as_me:2810: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2811 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2812 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2813 echo "$as_me:2813: \$? = $ac_status" >&5 |
40056 | 2814 (exit $ac_status); }; }; then |
2815 ac_compiler_gnu=yes | |
2816 else | |
2817 echo "$as_me: failed program was:" >&5 | |
2818 cat conftest.$ac_ext >&5 | |
2819 ac_compiler_gnu=no | |
2820 fi | |
2821 rm -f conftest.$ac_objext conftest.$ac_ext | |
2822 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2823 | |
2824 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2825 echo "$as_me:2825: result: $ac_cv_c_compiler_gnu" >&5 |
40056 | 2826 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2827 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2828 ac_test_CFLAGS=${CFLAGS+set} | |
2829 ac_save_CFLAGS=$CFLAGS | |
2830 CFLAGS="-g" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2831 echo "$as_me:2831: checking whether $CC accepts -g" >&5 |
40056 | 2832 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2833 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2834 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2835 else | |
2836 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2837 #line 2837 "configure" |
45226 | 2838 #include "confdefs.h" |
2839 | |
44493 | 2840 int |
2841 main () | |
2842 { | |
2843 | |
2844 ; | |
2845 return 0; | |
2846 } | |
2847 _ACEOF | |
2848 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2849 if { (eval echo "$as_me:2849: \"$ac_compile\"") >&5 |
44493 | 2850 (eval $ac_compile) 2>&5 |
2851 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2852 echo "$as_me:2852: \$? = $ac_status" >&5 |
44493 | 2853 (exit $ac_status); } && |
2854 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2855 { (eval echo "$as_me:2855: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2856 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2857 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2858 echo "$as_me:2858: \$? = $ac_status" >&5 |
40056 | 2859 (exit $ac_status); }; }; then |
25897 | 2860 ac_cv_prog_cc_g=yes |
2861 else | |
40056 | 2862 echo "$as_me: failed program was:" >&5 |
2863 cat conftest.$ac_ext >&5 | |
2864 ac_cv_prog_cc_g=no | |
2865 fi | |
2866 rm -f conftest.$ac_objext conftest.$ac_ext | |
2867 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2868 echo "$as_me:2868: result: $ac_cv_prog_cc_g" >&5 |
40056 | 2869 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
27205 | 2870 if test "$ac_test_CFLAGS" = set; then |
40056 | 2871 CFLAGS=$ac_save_CFLAGS |
27205 | 2872 elif test $ac_cv_prog_cc_g = yes; then |
2873 if test "$GCC" = yes; then | |
25897 | 2874 CFLAGS="-g -O2" |
2875 else | |
27205 | 2876 CFLAGS="-g" |
25897 | 2877 fi |
2878 else | |
27205 | 2879 if test "$GCC" = yes; then |
2880 CFLAGS="-O2" | |
2881 else | |
2882 CFLAGS= | |
2883 fi | |
25897 | 2884 fi |
40056 | 2885 # Some people use a C++ compiler to compile C. Since we use `exit', |
2886 # in C++ we need to declare it. In case someone uses the same compiler | |
2887 # for both compiling C and C++ we need to have the C++ compiler decide | |
2888 # the declaration of exit, since it's the most demanding environment. | |
2889 cat >conftest.$ac_ext <<_ACEOF | |
2890 #ifndef __cplusplus | |
2891 choke me | |
2892 #endif | |
2893 _ACEOF | |
2894 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5 |
44493 | 2896 (eval $ac_compile) 2>&5 |
2897 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2898 echo "$as_me:2898: \$? = $ac_status" >&5 |
44493 | 2899 (exit $ac_status); } && |
2900 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2902 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2903 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2904 echo "$as_me:2904: \$? = $ac_status" >&5 |
40056 | 2905 (exit $ac_status); }; }; then |
2906 for ac_declaration in \ | |
2907 ''\ | |
2908 '#include <stdlib.h>' \ | |
2909 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2910 'extern "C" void std::exit (int); using std::exit;' \ | |
2911 'extern "C" void exit (int) throw ();' \ | |
2912 'extern "C" void exit (int);' \ | |
2913 'void exit (int);' | |
2914 do | |
2915 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2916 #line 2916 "configure" |
40056 | 2917 #include "confdefs.h" |
2918 #include <stdlib.h> | |
2919 $ac_declaration | |
2920 int | |
2921 main () | |
2922 { | |
2923 exit (42); | |
2924 ; | |
2925 return 0; | |
2926 } | |
2927 _ACEOF | |
2928 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2929 if { (eval echo "$as_me:2929: \"$ac_compile\"") >&5 |
44493 | 2930 (eval $ac_compile) 2>&5 |
2931 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2932 echo "$as_me:2932: \$? = $ac_status" >&5 |
44493 | 2933 (exit $ac_status); } && |
2934 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2935 { (eval echo "$as_me:2935: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2936 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2937 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2938 echo "$as_me:2938: \$? = $ac_status" >&5 |
40056 | 2939 (exit $ac_status); }; }; then |
2940 : | |
2941 else | |
2942 echo "$as_me: failed program was:" >&5 | |
2943 cat conftest.$ac_ext >&5 | |
2944 continue | |
2945 fi | |
2946 rm -f conftest.$ac_objext conftest.$ac_ext | |
2947 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2948 #line 2948 "configure" |
40056 | 2949 #include "confdefs.h" |
2950 $ac_declaration | |
2951 int | |
2952 main () | |
2953 { | |
2954 exit (42); | |
2955 ; | |
2956 return 0; | |
2957 } | |
2958 _ACEOF | |
2959 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2960 if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5 |
44493 | 2961 (eval $ac_compile) 2>&5 |
2962 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2963 echo "$as_me:2963: \$? = $ac_status" >&5 |
44493 | 2964 (exit $ac_status); } && |
2965 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2966 { (eval echo "$as_me:2966: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2967 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2968 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
2969 echo "$as_me:2969: \$? = $ac_status" >&5 |
40056 | 2970 (exit $ac_status); }; }; then |
2971 break | |
2972 else | |
2973 echo "$as_me: failed program was:" >&5 | |
2974 cat conftest.$ac_ext >&5 | |
2975 fi | |
2976 rm -f conftest.$ac_objext conftest.$ac_ext | |
2977 done | |
2978 rm -f conftest* | |
2979 if test -n "$ac_declaration"; then | |
2980 echo '#ifdef __cplusplus' >>confdefs.h | |
2981 echo $ac_declaration >>confdefs.h | |
2982 echo '#endif' >>confdefs.h | |
2983 fi | |
2984 | |
2985 else | |
2986 echo "$as_me: failed program was:" >&5 | |
2987 cat conftest.$ac_ext >&5 | |
2988 fi | |
2989 rm -f conftest.$ac_objext conftest.$ac_ext | |
2990 ac_ext=c | |
2991 ac_cpp='$CPP $CPPFLAGS' | |
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 2995 |
2996 # On Suns, sometimes $CPP names a directory. | |
2997 if test -n "$CPP" && test -d "$CPP"; then | |
2998 CPP= | |
2999 fi | |
3000 | |
3001 #### Some systems specify a CPP to use unless we are using GCC. | |
3002 #### Now that we know whether we are using GCC, we can decide whether | |
3003 #### to use that one. | |
3004 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3005 then | |
3006 CPP="$NON_GNU_CPP" | |
3007 fi | |
3008 | |
3009 #### Some systems specify a CC to use unless we are using GCC. | |
3010 #### Now that we know whether we are using GCC, we can decide whether | |
3011 #### to use that one. | |
3012 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3013 test x$cc_specified != xyes | |
3014 then | |
3015 CC="$NON_GNU_CC" | |
3016 fi | |
3017 | |
3018 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3019 then | |
3020 CC="$CC $GCC_TEST_OPTIONS" | |
3021 fi | |
3022 | |
3023 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3024 then | |
3025 CC="$CC $NON_GCC_TEST_OPTIONS" | |
3026 fi | |
3027 | |
3028 #### Some other nice autoconf tests. If you add a test here which | |
3029 #### should make an entry in src/config.h, don't forget to add an | |
3030 #### #undef clause to src/config.h.in for autoconf to modify. | |
3031 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3032 echo "$as_me:3032: checking whether ln -s works" >&5 |
40056 | 3033 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3034 LN_S=$as_ln_s | |
3035 if test "$LN_S" = "ln -s"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3036 echo "$as_me:3036: result: yes" >&5 |
40056 | 3037 echo "${ECHO_T}yes" >&6 |
3038 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3039 echo "$as_me:3039: result: no, using $LN_S" >&5 |
40056 | 3040 echo "${ECHO_T}no, using $LN_S" >&6 |
3041 fi | |
3042 | |
3043 ac_ext=c | |
3044 ac_cpp='$CPP $CPPFLAGS' | |
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3048 echo "$as_me:3048: checking how to run the C preprocessor" >&5 |
40056 | 3049 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
25897 | 3050 # On Suns, sometimes $CPP names a directory. |
3051 if test -n "$CPP" && test -d "$CPP"; then | |
3052 CPP= | |
3053 fi | |
3054 if test -z "$CPP"; then | |
40056 | 3055 if test "${ac_cv_prog_CPP+set}" = set; then |
3056 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3057 else | |
3058 # Double quotes because CPP needs to be expanded | |
3059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3060 do | |
3061 ac_preproc_ok=false | |
3062 for ac_c_preproc_warn_flag in '' yes | |
3063 do | |
3064 # Use a header file that comes with gcc, so configuring glibc | |
3065 # with a fresh cross-compiler works. | |
25897 | 3066 # On the NeXT, cc -E runs the code through the compiler's parser, |
40056 | 3067 # not just through cpp. "Syntax error" is here to catch this case. |
3068 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3069 #line 3069 "configure" |
25897 | 3070 #include "confdefs.h" |
3071 #include <assert.h> | |
40056 | 3072 Syntax error |
3073 _ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3074 if { (eval echo "$as_me:3074: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3076 ac_status=$? | |
3077 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3078 rm -f conftest.er1 | |
3079 cat conftest.err >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3080 echo "$as_me:3080: \$? = $ac_status" >&5 |
40056 | 3081 (exit $ac_status); } >/dev/null; then |
3082 if test -s conftest.err; then | |
3083 ac_cpp_err=$ac_c_preproc_warn_flag | |
3084 else | |
3085 ac_cpp_err= | |
3086 fi | |
3087 else | |
3088 ac_cpp_err=yes | |
3089 fi | |
3090 if test -z "$ac_cpp_err"; then | |
27205 | 3091 : |
3092 else | |
40056 | 3093 echo "$as_me: failed program was:" >&5 |
27205 | 3094 cat conftest.$ac_ext >&5 |
40056 | 3095 # Broken: fails on valid input. |
3096 continue | |
3097 fi | |
3098 rm -f conftest.err conftest.$ac_ext | |
3099 | |
3100 # OK, works on sane cases. Now check whether non-existent headers | |
3101 # can be detected and how. | |
3102 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3103 #line 3103 "configure" |
40056 | 3104 #include "confdefs.h" |
3105 #include <ac_nonexistent.h> | |
3106 _ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3107 if { (eval echo "$as_me:3107: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3109 ac_status=$? | |
3110 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3111 rm -f conftest.er1 | |
3112 cat conftest.err >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3113 echo "$as_me:3113: \$? = $ac_status" >&5 |
40056 | 3114 (exit $ac_status); } >/dev/null; then |
3115 if test -s conftest.err; then | |
3116 ac_cpp_err=$ac_c_preproc_warn_flag | |
3117 else | |
3118 ac_cpp_err= | |
3119 fi | |
3120 else | |
3121 ac_cpp_err=yes | |
3122 fi | |
3123 if test -z "$ac_cpp_err"; then | |
3124 # Broken: success on invalid input. | |
3125 continue | |
3126 else | |
3127 echo "$as_me: failed program was:" >&5 | |
3128 cat conftest.$ac_ext >&5 | |
3129 # Passes both tests. | |
3130 ac_preproc_ok=: | |
3131 break | |
3132 fi | |
3133 rm -f conftest.err conftest.$ac_ext | |
3134 | |
3135 done | |
3136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3137 rm -f conftest.err conftest.$ac_ext | |
3138 if $ac_preproc_ok; then | |
3139 break | |
3140 fi | |
3141 | |
3142 done | |
3143 ac_cv_prog_CPP=$CPP | |
3144 | |
3145 fi | |
3146 CPP=$ac_cv_prog_CPP | |
3147 else | |
3148 ac_cv_prog_CPP=$CPP | |
3149 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3150 echo "$as_me:3150: result: $CPP" >&5 |
40056 | 3151 echo "${ECHO_T}$CPP" >&6 |
3152 ac_preproc_ok=false | |
3153 for ac_c_preproc_warn_flag in '' yes | |
3154 do | |
3155 # Use a header file that comes with gcc, so configuring glibc | |
3156 # with a fresh cross-compiler works. | |
3157 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3158 # not just through cpp. "Syntax error" is here to catch this case. | |
3159 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3160 #line 3160 "configure" |
27205 | 3161 #include "confdefs.h" |
3162 #include <assert.h> | |
40056 | 3163 Syntax error |
3164 _ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3165 if { (eval echo "$as_me:3165: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3167 ac_status=$? | |
3168 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3169 rm -f conftest.er1 | |
3170 cat conftest.err >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3171 echo "$as_me:3171: \$? = $ac_status" >&5 |
40056 | 3172 (exit $ac_status); } >/dev/null; then |
3173 if test -s conftest.err; then | |
3174 ac_cpp_err=$ac_c_preproc_warn_flag | |
3175 else | |
3176 ac_cpp_err= | |
3177 fi | |
3178 else | |
3179 ac_cpp_err=yes | |
3180 fi | |
3181 if test -z "$ac_cpp_err"; then | |
25897 | 3182 : |
3183 else | |
40056 | 3184 echo "$as_me: failed program was:" >&5 |
25897 | 3185 cat conftest.$ac_ext >&5 |
40056 | 3186 # Broken: fails on valid input. |
3187 continue | |
3188 fi | |
3189 rm -f conftest.err conftest.$ac_ext | |
3190 | |
3191 # OK, works on sane cases. Now check whether non-existent headers | |
3192 # can be detected and how. | |
3193 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3194 #line 3194 "configure" |
40056 | 3195 #include "confdefs.h" |
3196 #include <ac_nonexistent.h> | |
3197 _ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3198 if { (eval echo "$as_me:3198: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3200 ac_status=$? | |
3201 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3202 rm -f conftest.er1 | |
3203 cat conftest.err >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3204 echo "$as_me:3204: \$? = $ac_status" >&5 |
40056 | 3205 (exit $ac_status); } >/dev/null; then |
3206 if test -s conftest.err; then | |
3207 ac_cpp_err=$ac_c_preproc_warn_flag | |
3208 else | |
3209 ac_cpp_err= | |
3210 fi | |
3211 else | |
3212 ac_cpp_err=yes | |
3213 fi | |
3214 if test -z "$ac_cpp_err"; then | |
3215 # Broken: success on invalid input. | |
3216 continue | |
3217 else | |
3218 echo "$as_me: failed program was:" >&5 | |
3219 cat conftest.$ac_ext >&5 | |
3220 # Passes both tests. | |
3221 ac_preproc_ok=: | |
3222 break | |
3223 fi | |
3224 rm -f conftest.err conftest.$ac_ext | |
3225 | |
3226 done | |
3227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3228 rm -f conftest.err conftest.$ac_ext | |
3229 if $ac_preproc_ok; then | |
3230 : | |
3231 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3232 { { echo "$as_me:3232: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
40056 | 3233 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
3234 { (exit 1); exit 1; }; } | |
3235 fi | |
3236 | |
3237 ac_ext=c | |
3238 ac_cpp='$CPP $CPPFLAGS' | |
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 3242 |
3243 # Find a good install program. We prefer a C program (faster), | |
3244 # so one script is as good as another. But avoid the broken or | |
3245 # incompatible versions: | |
3246 # SysV /etc/install, /usr/sbin/install | |
3247 # SunOS /usr/etc/install | |
3248 # IRIX /sbin/install | |
3249 # AIX /bin/install | |
40056 | 3250 # AmigaOS /C/install, which installs bootblocks on floppy discs |
27205 | 3251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
25897 | 3252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3254 # ./install, which can be erroneously created by make from ./install.sh. | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3255 echo "$as_me:3255: checking for a BSD compatible install" >&5 |
45226 | 3256 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
25897 | 3257 if test -z "$INSTALL"; then |
40056 | 3258 if test "${ac_cv_path_install+set}" = set; then |
3259 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3260 else | |
45226 | 3261 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3262 for ac_dir in $PATH; do | |
3263 IFS=$ac_save_IFS | |
3264 # Account for people who put trailing slashes in PATH elements. | |
3265 case $ac_dir/ in | |
3266 / | ./ | .// | /cC/* \ | |
3267 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
3268 | /usr/ucb/* ) ;; | |
3269 *) | |
3270 # OSF1 and SCO ODT 3.0 have their own names for install. | |
3271 # Don't use installbsd from OSF since it installs stuff as root | |
3272 # by default. | |
3273 for ac_prog in ginstall scoinst install; do | |
3274 if $as_executable_p "$ac_dir/$ac_prog"; then | |
3275 if test $ac_prog = install && | |
3276 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
3277 # AIX install. It has an incompatible calling convention. | |
3278 : | |
3279 elif test $ac_prog = install && | |
3280 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
3281 # program-specific install script used by HP pwplus--don't use. | |
3282 : | |
3283 else | |
3284 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
3285 break 2 | |
3286 fi | |
3287 fi | |
25897 | 3288 done |
45226 | 3289 ;; |
3290 esac | |
3291 done | |
25897 | 3292 |
3293 fi | |
3294 if test "${ac_cv_path_install+set}" = set; then | |
40056 | 3295 INSTALL=$ac_cv_path_install |
25897 | 3296 else |
3297 # As a last resort, use the slow shell script. We don't cache a | |
3298 # path for INSTALL within a source directory, because that will | |
3299 # break other packages using the cache if that directory is | |
3300 # removed, or if the path is relative. | |
40056 | 3301 INSTALL=$ac_install_sh |
3302 fi | |
3303 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3304 echo "$as_me:3304: result: $INSTALL" >&5 |
40056 | 3305 echo "${ECHO_T}$INSTALL" >&6 |
25897 | 3306 |
3307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3308 # It thinks the first close brace ends the variable substitution. | |
3309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3310 | |
40056 | 3311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
27205 | 3312 |
25897 | 3313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3314 | |
3315 for ac_prog in 'bison -y' byacc | |
3316 do | |
40056 | 3317 # Extract the first word of "$ac_prog", so it can be a program name with args. |
25897 | 3318 set dummy $ac_prog; ac_word=$2 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3319 echo "$as_me:3319: checking for $ac_word" >&5 |
40056 | 3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3321 if test "${ac_cv_prog_YACC+set}" = set; then | |
3322 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 3323 else |
3324 if test -n "$YACC"; then | |
3325 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3326 else | |
45226 | 3327 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3328 ac_dummy="$PATH" | |
3329 for ac_dir in $ac_dummy; do | |
3330 IFS=$ac_save_IFS | |
3331 test -z "$ac_dir" && ac_dir=. | |
3332 $as_executable_p "$ac_dir/$ac_word" || continue | |
3333 ac_cv_prog_YACC="$ac_prog" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3334 echo "$as_me:3334: found $ac_dir/$ac_word" >&5 |
45226 | 3335 break |
40056 | 3336 done |
3337 | |
3338 fi | |
3339 fi | |
3340 YACC=$ac_cv_prog_YACC | |
25897 | 3341 if test -n "$YACC"; then |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3342 echo "$as_me:3342: result: $YACC" >&5 |
40056 | 3343 echo "${ECHO_T}$YACC" >&6 |
3344 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3345 echo "$as_me:3345: result: no" >&5 |
40056 | 3346 echo "${ECHO_T}no" >&6 |
3347 fi | |
3348 | |
3349 test -n "$YACC" && break | |
25897 | 3350 done |
3351 test -n "$YACC" || YACC="yacc" | |
3352 | |
28060 | 3353 if test "x$RANLIB" = x; then |
40056 | 3354 if test -n "$ac_tool_prefix"; then |
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3357 echo "$as_me:3357: checking for $ac_word" >&5 |
40056 | 3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3359 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3360 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28060 | 3361 else |
3362 if test -n "$RANLIB"; then | |
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3364 else | |
45226 | 3365 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3366 ac_dummy="$PATH" | |
3367 for ac_dir in $ac_dummy; do | |
3368 IFS=$ac_save_IFS | |
3369 test -z "$ac_dir" && ac_dir=. | |
3370 $as_executable_p "$ac_dir/$ac_word" || continue | |
3371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3372 echo "$as_me:3372: found $ac_dir/$ac_word" >&5 |
45226 | 3373 break |
40056 | 3374 done |
3375 | |
3376 fi | |
3377 fi | |
3378 RANLIB=$ac_cv_prog_RANLIB | |
28060 | 3379 if test -n "$RANLIB"; then |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3380 echo "$as_me:3380: result: $RANLIB" >&5 |
40056 | 3381 echo "${ECHO_T}$RANLIB" >&6 |
3382 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3383 echo "$as_me:3383: result: no" >&5 |
40056 | 3384 echo "${ECHO_T}no" >&6 |
3385 fi | |
3386 | |
3387 fi | |
3388 if test -z "$ac_cv_prog_RANLIB"; then | |
3389 ac_ct_RANLIB=$RANLIB | |
3390 # Extract the first word of "ranlib", so it can be a program name with args. | |
3391 set dummy ranlib; ac_word=$2 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3392 echo "$as_me:3392: checking for $ac_word" >&5 |
40056 | 3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3395 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3396 else | |
3397 if test -n "$ac_ct_RANLIB"; then | |
3398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3399 else | |
45226 | 3400 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3401 ac_dummy="$PATH" | |
3402 for ac_dir in $ac_dummy; do | |
3403 IFS=$ac_save_IFS | |
3404 test -z "$ac_dir" && ac_dir=. | |
3405 $as_executable_p "$ac_dir/$ac_word" || continue | |
3406 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3407 echo "$as_me:3407: found $ac_dir/$ac_word" >&5 |
45226 | 3408 break |
40056 | 3409 done |
3410 | |
3411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3412 fi | |
3413 fi | |
3414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3415 if test -n "$ac_ct_RANLIB"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3416 echo "$as_me:3416: result: $ac_ct_RANLIB" >&5 |
40056 | 3417 echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3418 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3419 echo "$as_me:3419: result: no" >&5 |
40056 | 3420 echo "${ECHO_T}no" >&6 |
3421 fi | |
3422 | |
3423 RANLIB=$ac_ct_RANLIB | |
3424 else | |
3425 RANLIB="$ac_cv_prog_RANLIB" | |
3426 fi | |
3427 | |
3428 fi | |
3429 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3430 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3431 then |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3432 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3433 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3434 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3435 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3436 then |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3437 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3438 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3439 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3440 echo "$as_me:3440: checking for AIX" >&5 |
40056 | 3441 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
3442 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3443 #line 3443 "configure" |
25897 | 3444 #include "confdefs.h" |
3445 #ifdef _AIX | |
3446 yes | |
3447 #endif | |
3448 | |
40056 | 3449 _ACEOF |
25897 | 3450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3451 egrep "yes" >/dev/null 2>&1; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3452 echo "$as_me:3452: result: yes" >&5 |
40056 | 3453 echo "${ECHO_T}yes" >&6 |
45226 | 3454 cat >>confdefs.h <<\EOF |
25897 | 3455 #define _ALL_SOURCE 1 |
45226 | 3456 EOF |
3457 | |
3458 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3459 echo "$as_me:3459: result: no" >&5 |
40056 | 3460 echo "${ECHO_T}no" >&6 |
25897 | 3461 fi |
3462 rm -f conftest* | |
3463 | |
30311 | 3464 #### Extract some information from the operating system and machine files. |
3465 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3466 { echo "$as_me:3466: checking the machine- and system-dependent files to find out |
30311 | 3467 - which libraries the lib-src programs will want, and |
40056 | 3468 - whether the GNU malloc routines are usable..." >&5 |
3469 echo "$as_me: checking the machine- and system-dependent files to find out | |
30311 | 3470 - which libraries the lib-src programs will want, and |
40056 | 3471 - whether the GNU malloc routines are usable..." >&6;} |
30311 | 3472 |
3473 ### First figure out CFLAGS (which we use for running the compiler here) | |
3474 ### and REAL_CFLAGS (which we use for real compilation). | |
3475 ### The two are the same except on a few systems, where they are made | |
3476 ### different to work around various lossages. For example, | |
3477 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3478 ### as implying static linking. | |
3479 | |
3480 ### If the CFLAGS env var is specified, we use that value | |
3481 ### instead of the default. | |
3482 | |
3483 ### It's not important that this name contain the PID; you can't run | |
3484 ### two configures in the same directory and have anything work | |
3485 ### anyway. | |
3486 tempcname="conftest.c" | |
3487 | |
3488 echo ' | |
3489 #include "'${srcdir}'/src/'${opsysfile}'" | |
3490 #include "'${srcdir}'/src/'${machfile}'" | |
3491 #ifndef LIBS_MACHINE | |
3492 #define LIBS_MACHINE | |
3493 #endif | |
3494 #ifndef LIBS_SYSTEM | |
3495 #define LIBS_SYSTEM | |
3496 #endif | |
3497 #ifndef C_SWITCH_SYSTEM | |
3498 #define C_SWITCH_SYSTEM | |
3499 #endif | |
3500 #ifndef C_SWITCH_MACHINE | |
3501 #define C_SWITCH_MACHINE | |
3502 #endif | |
3503 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3504 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3505 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3506 | |
3507 #ifndef LIB_X11_LIB | |
3508 #define LIB_X11_LIB -lX11 | |
3509 #endif | |
3510 | |
3511 #ifndef LIBX11_MACHINE | |
3512 #define LIBX11_MACHINE | |
3513 #endif | |
3514 | |
3515 #ifndef LIBX11_SYSTEM | |
3516 #define LIBX11_SYSTEM | |
3517 #endif | |
3518 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3519 | |
3520 #ifdef UNEXEC | |
3521 configure___ unexec=UNEXEC | |
3522 #else | |
3523 configure___ unexec=unexec.o | |
3524 #endif | |
3525 | |
3526 #ifdef SYSTEM_MALLOC | |
3527 configure___ system_malloc=yes | |
3528 #else | |
3529 configure___ system_malloc=no | |
3530 #endif | |
3531 | |
31607 | 3532 #ifdef USE_MMAP_FOR_BUFFERS |
3533 configure___ use_mmap_for_buffers=yes | |
31417 | 3534 #else |
31607 | 3535 configure___ use_mmap_for_buffers=no |
31417 | 3536 #endif |
3537 | |
30311 | 3538 #ifndef C_DEBUG_SWITCH |
3539 #define C_DEBUG_SWITCH -g | |
3540 #endif | |
3541 | |
3542 #ifndef C_OPTIMIZE_SWITCH | |
3543 #ifdef __GNUC__ | |
3544 #define C_OPTIMIZE_SWITCH -O2 | |
3545 #else | |
3546 #define C_OPTIMIZE_SWITCH -O | |
3547 #endif | |
3548 #endif | |
3549 | |
3550 #ifndef LD_SWITCH_MACHINE | |
3551 #define LD_SWITCH_MACHINE | |
3552 #endif | |
3553 | |
3554 #ifndef LD_SWITCH_SYSTEM | |
3555 #define LD_SWITCH_SYSTEM | |
3556 #endif | |
3557 | |
3558 #ifndef LD_SWITCH_X_SITE_AUX | |
3559 #define LD_SWITCH_X_SITE_AUX | |
40056 | 3560 #endif |
30311 | 3561 |
3562 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3563 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3564 | |
3565 #ifdef THIS_IS_CONFIGURE | |
3566 | |
3567 /* Get the CFLAGS for tests in configure. */ | |
3568 #ifdef __GNUC__ | |
3569 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3570 #else | |
3571 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3572 #endif | |
3573 | |
3574 #else /* not THIS_IS_CONFIGURE */ | |
3575 | |
3576 /* Get the CFLAGS for real compilation. */ | |
3577 #ifdef __GNUC__ | |
3578 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3579 #else | |
3580 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3581 #endif | |
3582 | |
3583 #endif /* not THIS_IS_CONFIGURE */ | |
3584 ' > ${tempcname} | |
3585 | |
3586 # The value of CPP is a quoted variable reference, so we need to do this | |
3587 # to get its actual value... | |
3588 CPP=`eval "echo $CPP"` | |
3589 eval `${CPP} -Isrc ${tempcname} \ | |
3590 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3591 if test "x$SPECIFIED_CFLAGS" = x; then | |
3592 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3593 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3594 else | |
3595 REAL_CFLAGS="$CFLAGS" | |
3596 fi | |
3597 rm ${tempcname} | |
3598 | |
3599 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3600 | |
3601 ### Make sure subsequent tests use flags consistent with the build flags. | |
3602 | |
3603 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3604 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3605 else | |
3606 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3607 fi | |
3608 | |
40056 | 3609 # Check whether --enable-largefile or --disable-largefile was given. |
30576 | 3610 if test "${enable_largefile+set}" = set; then |
3611 enableval="$enable_largefile" | |
40056 | 3612 |
3613 fi; | |
3614 if test "$enable_largefile" != no; then | |
3615 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3616 echo "$as_me:3616: checking for special C compiler options needed for large files" >&5 |
40056 | 3617 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
3618 if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
3619 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30576 | 3620 else |
3621 ac_cv_sys_largefile_CC=no | |
40056 | 3622 if test "$GCC" != yes; then |
3623 ac_save_CC=$CC | |
3624 while :; do | |
3625 # IRIX 6.2 and later do not support large files by default, | |
3626 # so use the C compiler's -n32 option if that helps. | |
3627 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3628 #line 3628 "configure" |
30576 | 3629 #include "confdefs.h" |
3630 #include <sys/types.h> | |
40056 | 3631 /* Check that off_t can represent 2**63 - 1 correctly. |
3632 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3633 since some C++ compilers masquerading as C compilers | |
3634 incorrectly reject 9223372036854775807. */ | |
3635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3637 && LARGE_OFF_T % 2147483647 == 1) | |
3638 ? 1 : -1]; | |
3639 int | |
3640 main () | |
3641 { | |
3642 | |
3643 ; | |
3644 return 0; | |
3645 } | |
3646 _ACEOF | |
3647 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3648 if { (eval echo "$as_me:3648: \"$ac_compile\"") >&5 |
46596 | 3649 (eval $ac_compile) 2>&5 |
3650 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3651 echo "$as_me:3651: \$? = $ac_status" >&5 |
46596 | 3652 (exit $ac_status); } && |
3653 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3654 { (eval echo "$as_me:3654: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3655 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3656 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3657 echo "$as_me:3657: \$? = $ac_status" >&5 |
46596 | 3658 (exit $ac_status); }; }; then |
3659 break | |
3660 else | |
3661 echo "$as_me: failed program was:" >&5 | |
3662 cat conftest.$ac_ext >&5 | |
3663 fi | |
3664 rm -f conftest.$ac_objext | |
3665 CC="$CC -n32" | |
3666 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3667 if { (eval echo "$as_me:3667: \"$ac_compile\"") >&5 |
44493 | 3668 (eval $ac_compile) 2>&5 |
3669 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3670 echo "$as_me:3670: \$? = $ac_status" >&5 |
44493 | 3671 (exit $ac_status); } && |
3672 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3673 { (eval echo "$as_me:3673: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3674 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3675 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3676 echo "$as_me:3676: \$? = $ac_status" >&5 |
40056 | 3677 (exit $ac_status); }; }; then |
3678 ac_cv_sys_largefile_CC=' -n32'; break | |
3679 else | |
3680 echo "$as_me: failed program was:" >&5 | |
3681 cat conftest.$ac_ext >&5 | |
3682 fi | |
3683 rm -f conftest.$ac_objext | |
3684 break | |
3685 done | |
3686 CC=$ac_save_CC | |
3687 rm -f conftest.$ac_ext | |
3688 fi | |
3689 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3690 echo "$as_me:3690: result: $ac_cv_sys_largefile_CC" >&5 |
40056 | 3691 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
3692 if test "$ac_cv_sys_largefile_CC" != no; then | |
3693 CC=$CC$ac_cv_sys_largefile_CC | |
3694 fi | |
3695 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3696 echo "$as_me:3696: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
40056 | 3697 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
3698 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
3699 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3700 else | |
3701 while :; do | |
30576 | 3702 ac_cv_sys_file_offset_bits=no |
40056 | 3703 cat >conftest.$ac_ext <<_ACEOF |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3704 #line 3704 "configure" |
30576 | 3705 #include "confdefs.h" |
3706 #include <sys/types.h> | |
40056 | 3707 /* Check that off_t can represent 2**63 - 1 correctly. |
3708 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3709 since some C++ compilers masquerading as C compilers | |
3710 incorrectly reject 9223372036854775807. */ | |
3711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3713 && LARGE_OFF_T % 2147483647 == 1) | |
3714 ? 1 : -1]; | |
44493 | 3715 int |
3716 main () | |
3717 { | |
3718 | |
3719 ; | |
3720 return 0; | |
3721 } | |
3722 _ACEOF | |
3723 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3724 if { (eval echo "$as_me:3724: \"$ac_compile\"") >&5 |
44493 | 3725 (eval $ac_compile) 2>&5 |
3726 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3727 echo "$as_me:3727: \$? = $ac_status" >&5 |
44493 | 3728 (exit $ac_status); } && |
3729 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3730 { (eval echo "$as_me:3730: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3731 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3732 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3733 echo "$as_me:3733: \$? = $ac_status" >&5 |
40056 | 3734 (exit $ac_status); }; }; then |
3735 break | |
3736 else | |
3737 echo "$as_me: failed program was:" >&5 | |
3738 cat conftest.$ac_ext >&5 | |
3739 fi | |
3740 rm -f conftest.$ac_objext conftest.$ac_ext | |
3741 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3742 #line 3742 "configure" |
30576 | 3743 #include "confdefs.h" |
3744 #define _FILE_OFFSET_BITS 64 | |
3745 #include <sys/types.h> | |
40056 | 3746 /* Check that off_t can represent 2**63 - 1 correctly. |
3747 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3748 since some C++ compilers masquerading as C compilers | |
3749 incorrectly reject 9223372036854775807. */ | |
3750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3752 && LARGE_OFF_T % 2147483647 == 1) | |
3753 ? 1 : -1]; | |
44493 | 3754 int |
3755 main () | |
3756 { | |
3757 | |
3758 ; | |
3759 return 0; | |
3760 } | |
3761 _ACEOF | |
3762 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3763 if { (eval echo "$as_me:3763: \"$ac_compile\"") >&5 |
44493 | 3764 (eval $ac_compile) 2>&5 |
3765 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3766 echo "$as_me:3766: \$? = $ac_status" >&5 |
44493 | 3767 (exit $ac_status); } && |
3768 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3769 { (eval echo "$as_me:3769: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3770 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3771 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3772 echo "$as_me:3772: \$? = $ac_status" >&5 |
40056 | 3773 (exit $ac_status); }; }; then |
3774 ac_cv_sys_file_offset_bits=64; break | |
3775 else | |
3776 echo "$as_me: failed program was:" >&5 | |
3777 cat conftest.$ac_ext >&5 | |
3778 fi | |
3779 rm -f conftest.$ac_objext conftest.$ac_ext | |
3780 break | |
3781 done | |
3782 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3783 echo "$as_me:3783: result: $ac_cv_sys_file_offset_bits" >&5 |
40056 | 3784 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
3785 if test "$ac_cv_sys_file_offset_bits" != no; then | |
3786 | |
45226 | 3787 cat >>confdefs.h <<EOF |
40056 | 3788 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
45226 | 3789 EOF |
40056 | 3790 |
30576 | 3791 fi |
3792 rm -f conftest* | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3793 echo "$as_me:3793: checking for _LARGE_FILES value needed for large files" >&5 |
40056 | 3794 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
3795 if test "${ac_cv_sys_large_files+set}" = set; then | |
3796 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3797 else | |
3798 while :; do | |
34431 | 3799 ac_cv_sys_large_files=no |
40056 | 3800 cat >conftest.$ac_ext <<_ACEOF |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3801 #line 3801 "configure" |
40056 | 3802 #include "confdefs.h" |
3803 #include <sys/types.h> | |
3804 /* Check that off_t can represent 2**63 - 1 correctly. | |
3805 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3806 since some C++ compilers masquerading as C compilers | |
3807 incorrectly reject 9223372036854775807. */ | |
3808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3810 && LARGE_OFF_T % 2147483647 == 1) | |
3811 ? 1 : -1]; | |
44493 | 3812 int |
3813 main () | |
3814 { | |
3815 | |
3816 ; | |
3817 return 0; | |
3818 } | |
3819 _ACEOF | |
3820 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3821 if { (eval echo "$as_me:3821: \"$ac_compile\"") >&5 |
44493 | 3822 (eval $ac_compile) 2>&5 |
3823 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3824 echo "$as_me:3824: \$? = $ac_status" >&5 |
44493 | 3825 (exit $ac_status); } && |
3826 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3827 { (eval echo "$as_me:3827: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3828 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3829 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3830 echo "$as_me:3830: \$? = $ac_status" >&5 |
40056 | 3831 (exit $ac_status); }; }; then |
3832 break | |
3833 else | |
3834 echo "$as_me: failed program was:" >&5 | |
3835 cat conftest.$ac_ext >&5 | |
3836 fi | |
3837 rm -f conftest.$ac_objext conftest.$ac_ext | |
3838 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3839 #line 3839 "configure" |
30576 | 3840 #include "confdefs.h" |
3841 #define _LARGE_FILES 1 | |
40056 | 3842 #include <sys/types.h> |
3843 /* Check that off_t can represent 2**63 - 1 correctly. | |
3844 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3845 since some C++ compilers masquerading as C compilers | |
3846 incorrectly reject 9223372036854775807. */ | |
3847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3849 && LARGE_OFF_T % 2147483647 == 1) | |
3850 ? 1 : -1]; | |
44493 | 3851 int |
3852 main () | |
3853 { | |
3854 | |
3855 ; | |
3856 return 0; | |
3857 } | |
3858 _ACEOF | |
3859 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3860 if { (eval echo "$as_me:3860: \"$ac_compile\"") >&5 |
44493 | 3861 (eval $ac_compile) 2>&5 |
3862 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3863 echo "$as_me:3863: \$? = $ac_status" >&5 |
44493 | 3864 (exit $ac_status); } && |
3865 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3866 { (eval echo "$as_me:3866: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3867 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3868 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3869 echo "$as_me:3869: \$? = $ac_status" >&5 |
40056 | 3870 (exit $ac_status); }; }; then |
3871 ac_cv_sys_large_files=1; break | |
3872 else | |
3873 echo "$as_me: failed program was:" >&5 | |
3874 cat conftest.$ac_ext >&5 | |
3875 fi | |
3876 rm -f conftest.$ac_objext conftest.$ac_ext | |
3877 break | |
3878 done | |
3879 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3880 echo "$as_me:3880: result: $ac_cv_sys_large_files" >&5 |
40056 | 3881 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
3882 if test "$ac_cv_sys_large_files" != no; then | |
3883 | |
45226 | 3884 cat >>confdefs.h <<EOF |
40056 | 3885 #define _LARGE_FILES $ac_cv_sys_large_files |
45226 | 3886 EOF |
40056 | 3887 |
30576 | 3888 fi |
3889 rm -f conftest* | |
3890 fi | |
3891 | |
44435 | 3892 if test "${with_sound}" != "no"; then |
3893 # Sound support for GNU/Linux and the free BSDs. | |
45226 | 3894 |
3895 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
3896 do | |
3897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3898 echo "$as_me:3898: checking for $ac_header" >&5 |
45226 | 3899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3900 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3901 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3902 else | |
3903 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3904 #line 3904 "configure" |
45226 | 3905 #include "confdefs.h" |
3906 #include <$ac_header> | |
3907 _ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3908 if { (eval echo "$as_me:3908: \"$ac_cpp conftest.$ac_ext\"") >&5 |
45226 | 3909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3910 ac_status=$? | |
3911 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3912 rm -f conftest.er1 | |
3913 cat conftest.err >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3914 echo "$as_me:3914: \$? = $ac_status" >&5 |
45226 | 3915 (exit $ac_status); } >/dev/null; then |
3916 if test -s conftest.err; then | |
3917 ac_cpp_err=$ac_c_preproc_warn_flag | |
3918 else | |
3919 ac_cpp_err= | |
3920 fi | |
3921 else | |
3922 ac_cpp_err=yes | |
3923 fi | |
3924 if test -z "$ac_cpp_err"; then | |
3925 eval "$as_ac_Header=yes" | |
3926 else | |
3927 echo "$as_me: failed program was:" >&5 | |
3928 cat conftest.$ac_ext >&5 | |
3929 eval "$as_ac_Header=no" | |
3930 fi | |
3931 rm -f conftest.err conftest.$ac_ext | |
3932 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3933 echo "$as_me:3933: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
45226 | 3934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3935 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3936 cat >>confdefs.h <<EOF | |
3937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3938 EOF | |
3939 | |
3940 fi | |
3941 done | |
3942 | |
3943 # Emulation library used on NetBSD. | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3944 echo "$as_me:3944: checking for _oss_ioctl in -lossaudio" >&5 |
45226 | 3945 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
3946 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
3947 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3948 else | |
3949 ac_check_lib_save_LIBS=$LIBS | |
3950 LIBS="-lossaudio $LIBS" | |
3951 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3952 #line 3952 "configure" |
45226 | 3953 #include "confdefs.h" |
3954 | |
3955 /* Override any gcc2 internal prototype to avoid an error. */ | |
3956 #ifdef __cplusplus | |
3957 extern "C" | |
3958 #endif | |
3959 /* We use char because int might match the return type of a gcc2 | |
3960 builtin and then its argument prototype would still apply. */ | |
3961 char _oss_ioctl (); | |
3962 int | |
3963 main () | |
3964 { | |
3965 _oss_ioctl (); | |
3966 ; | |
3967 return 0; | |
3968 } | |
3969 _ACEOF | |
3970 rm -f conftest.$ac_objext conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3971 if { (eval echo "$as_me:3971: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3972 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3973 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3974 echo "$as_me:3974: \$? = $ac_status" >&5 |
45226 | 3975 (exit $ac_status); } && |
3976 { ac_try='test -s conftest$ac_exeext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3977 { (eval echo "$as_me:3977: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3978 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3979 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3980 echo "$as_me:3980: \$? = $ac_status" >&5 |
45226 | 3981 (exit $ac_status); }; }; then |
3982 ac_cv_lib_ossaudio__oss_ioctl=yes | |
3983 else | |
3984 echo "$as_me: failed program was:" >&5 | |
3985 cat conftest.$ac_ext >&5 | |
3986 ac_cv_lib_ossaudio__oss_ioctl=no | |
3987 fi | |
3988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3989 LIBS=$ac_check_lib_save_LIBS | |
3990 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
3991 echo "$as_me:3991: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
45226 | 3992 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
3993 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
3994 LIBSOUND=-lossaudio | |
3995 else | |
3996 LIBSOUND= | |
3997 fi | |
3998 | |
3999 fi | |
4000 | |
4001 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |
4002 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
4003 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h | |
4004 do | |
4005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4006 echo "$as_me:4006: checking for $ac_header" >&5 |
45226 | 4007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4008 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4009 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4010 else | |
4011 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4012 #line 4012 "configure" |
45226 | 4013 #include "confdefs.h" |
4014 #include <$ac_header> | |
4015 _ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4016 if { (eval echo "$as_me:4016: \"$ac_cpp conftest.$ac_ext\"") >&5 |
45226 | 4017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4018 ac_status=$? | |
4019 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4020 rm -f conftest.er1 | |
4021 cat conftest.err >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4022 echo "$as_me:4022: \$? = $ac_status" >&5 |
45226 | 4023 (exit $ac_status); } >/dev/null; then |
4024 if test -s conftest.err; then | |
4025 ac_cpp_err=$ac_c_preproc_warn_flag | |
4026 else | |
4027 ac_cpp_err= | |
4028 fi | |
4029 else | |
4030 ac_cpp_err=yes | |
4031 fi | |
4032 if test -z "$ac_cpp_err"; then | |
4033 eval "$as_ac_Header=yes" | |
4034 else | |
4035 echo "$as_me: failed program was:" >&5 | |
4036 cat conftest.$ac_ext >&5 | |
4037 eval "$as_ac_Header=no" | |
4038 fi | |
4039 rm -f conftest.err conftest.$ac_ext | |
4040 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4041 echo "$as_me:4041: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
45226 | 4042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4044 cat >>confdefs.h <<EOF | |
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4046 EOF | |
4047 | |
4048 fi | |
4049 done | |
4050 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4051 echo "$as_me:4051: checking for ANSI C header files" >&5 |
44493 | 4052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4053 if test "${ac_cv_header_stdc+set}" = set; then | |
4054 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4055 else | |
4056 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4057 #line 4057 "configure" |
44493 | 4058 #include "confdefs.h" |
4059 #include <stdlib.h> | |
4060 #include <stdarg.h> | |
4061 #include <string.h> | |
4062 #include <float.h> | |
4063 | |
4064 _ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4065 if { (eval echo "$as_me:4065: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 4066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4067 ac_status=$? | |
4068 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4069 rm -f conftest.er1 | |
4070 cat conftest.err >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4071 echo "$as_me:4071: \$? = $ac_status" >&5 |
40056 | 4072 (exit $ac_status); } >/dev/null; then |
4073 if test -s conftest.err; then | |
4074 ac_cpp_err=$ac_c_preproc_warn_flag | |
4075 else | |
4076 ac_cpp_err= | |
4077 fi | |
4078 else | |
4079 ac_cpp_err=yes | |
4080 fi | |
4081 if test -z "$ac_cpp_err"; then | |
25897 | 4082 ac_cv_header_stdc=yes |
4083 else | |
40056 | 4084 echo "$as_me: failed program was:" >&5 |
25897 | 4085 cat conftest.$ac_ext >&5 |
4086 ac_cv_header_stdc=no | |
4087 fi | |
40056 | 4088 rm -f conftest.err conftest.$ac_ext |
25897 | 4089 |
4090 if test $ac_cv_header_stdc = yes; then | |
4091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
40056 | 4092 cat >conftest.$ac_ext <<_ACEOF |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4093 #line 4093 "configure" |
25897 | 4094 #include "confdefs.h" |
4095 #include <string.h> | |
40056 | 4096 |
4097 _ACEOF | |
25897 | 4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4099 egrep "memchr" >/dev/null 2>&1; then | |
4100 : | |
4101 else | |
4102 ac_cv_header_stdc=no | |
4103 fi | |
4104 rm -f conftest* | |
4105 | |
4106 fi | |
4107 | |
4108 if test $ac_cv_header_stdc = yes; then | |
4109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
40056 | 4110 cat >conftest.$ac_ext <<_ACEOF |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4111 #line 4111 "configure" |
25897 | 4112 #include "confdefs.h" |
4113 #include <stdlib.h> | |
40056 | 4114 |
4115 _ACEOF | |
25897 | 4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4117 egrep "free" >/dev/null 2>&1; then | |
4118 : | |
4119 else | |
4120 ac_cv_header_stdc=no | |
4121 fi | |
4122 rm -f conftest* | |
4123 | |
4124 fi | |
4125 | |
4126 if test $ac_cv_header_stdc = yes; then | |
4127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
40056 | 4128 if test "$cross_compiling" = yes; then |
25897 | 4129 : |
4130 else | |
40056 | 4131 cat >conftest.$ac_ext <<_ACEOF |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4132 #line 4132 "configure" |
25897 | 4133 #include "confdefs.h" |
4134 #include <ctype.h> | |
40056 | 4135 #if ((' ' & 0x0FF) == 0x020) |
4136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4138 #else | |
4139 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4140 || ('j' <= (c) && (c) <= 'r') \ | |
4141 || ('s' <= (c) && (c) <= 'z')) | |
4142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4143 #endif | |
4144 | |
25897 | 4145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
40056 | 4146 int |
4147 main () | |
4148 { | |
4149 int i; | |
4150 for (i = 0; i < 256; i++) | |
4151 if (XOR (islower (i), ISLOWER (i)) | |
4152 || toupper (i) != TOUPPER (i)) | |
4153 exit(2); | |
4154 exit (0); | |
4155 } | |
4156 _ACEOF | |
4157 rm -f conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4158 if { (eval echo "$as_me:4158: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4159 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4160 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4161 echo "$as_me:4161: \$? = $ac_status" >&5 |
45668 | 4162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4163 { (eval echo "$as_me:4163: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4164 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4165 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4166 echo "$as_me:4166: \$? = $ac_status" >&5 |
40056 | 4167 (exit $ac_status); }; }; then |
25897 | 4168 : |
4169 else | |
40056 | 4170 echo "$as_me: program exited with status $ac_status" >&5 |
4171 echo "$as_me: failed program was:" >&5 | |
4172 cat conftest.$ac_ext >&5 | |
4173 ac_cv_header_stdc=no | |
4174 fi | |
4175 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4176 fi | |
4177 fi | |
4178 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4179 echo "$as_me:4179: result: $ac_cv_header_stdc" >&5 |
40056 | 4180 echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
25897 | 4181 if test $ac_cv_header_stdc = yes; then |
40056 | 4182 |
45226 | 4183 cat >>confdefs.h <<\EOF |
25897 | 4184 #define STDC_HEADERS 1 |
45226 | 4185 EOF |
4186 | |
4187 fi | |
4188 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4189 echo "$as_me:4189: checking whether time.h and sys/time.h may both be included" >&5 |
40056 | 4190 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
4191 if test "${ac_cv_header_time+set}" = set; then | |
4192 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4193 else | |
4194 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4195 #line 4195 "configure" |
25897 | 4196 #include "confdefs.h" |
4197 #include <sys/types.h> | |
4198 #include <sys/time.h> | |
4199 #include <time.h> | |
40056 | 4200 |
4201 int | |
4202 main () | |
4203 { | |
4204 if ((struct tm *) 0) | |
4205 return 0; | |
4206 ; | |
4207 return 0; | |
4208 } | |
4209 _ACEOF | |
4210 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4211 if { (eval echo "$as_me:4211: \"$ac_compile\"") >&5 |
44493 | 4212 (eval $ac_compile) 2>&5 |
4213 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4214 echo "$as_me:4214: \$? = $ac_status" >&5 |
44493 | 4215 (exit $ac_status); } && |
4216 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4217 { (eval echo "$as_me:4217: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4218 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4219 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4220 echo "$as_me:4220: \$? = $ac_status" >&5 |
40056 | 4221 (exit $ac_status); }; }; then |
25897 | 4222 ac_cv_header_time=yes |
4223 else | |
40056 | 4224 echo "$as_me: failed program was:" >&5 |
4225 cat conftest.$ac_ext >&5 | |
4226 ac_cv_header_time=no | |
4227 fi | |
4228 rm -f conftest.$ac_objext conftest.$ac_ext | |
4229 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4230 echo "$as_me:4230: result: $ac_cv_header_time" >&5 |
40056 | 4231 echo "${ECHO_T}$ac_cv_header_time" >&6 |
25897 | 4232 if test $ac_cv_header_time = yes; then |
40056 | 4233 |
45226 | 4234 cat >>confdefs.h <<\EOF |
25897 | 4235 #define TIME_WITH_SYS_TIME 1 |
45226 | 4236 EOF |
4237 | |
4238 fi | |
4239 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4240 echo "$as_me:4240: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
40056 | 4241 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 |
4242 if test "${ac_cv_decl_sys_siglist+set}" = set; then | |
4243 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4244 else | |
4245 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4246 #line 4246 "configure" |
25897 | 4247 #include "confdefs.h" |
4248 #include <sys/types.h> | |
4249 #include <signal.h> | |
4250 /* NetBSD declares sys_siglist in unistd.h. */ | |
40056 | 4251 #if HAVE_UNISTD_H |
4252 # include <unistd.h> | |
4253 #endif | |
4254 | |
4255 int | |
4256 main () | |
4257 { | |
25897 | 4258 char *msg = *(sys_siglist + 1); |
40056 | 4259 ; |
4260 return 0; | |
4261 } | |
4262 _ACEOF | |
4263 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4264 if { (eval echo "$as_me:4264: \"$ac_compile\"") >&5 |
44493 | 4265 (eval $ac_compile) 2>&5 |
4266 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4267 echo "$as_me:4267: \$? = $ac_status" >&5 |
44493 | 4268 (exit $ac_status); } && |
4269 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4270 { (eval echo "$as_me:4270: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4271 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4272 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4273 echo "$as_me:4273: \$? = $ac_status" >&5 |
40056 | 4274 (exit $ac_status); }; }; then |
25897 | 4275 ac_cv_decl_sys_siglist=yes |
4276 else | |
40056 | 4277 echo "$as_me: failed program was:" >&5 |
4278 cat conftest.$ac_ext >&5 | |
4279 ac_cv_decl_sys_siglist=no | |
4280 fi | |
4281 rm -f conftest.$ac_objext conftest.$ac_ext | |
4282 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4283 echo "$as_me:4283: result: $ac_cv_decl_sys_siglist" >&5 |
40056 | 4284 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 |
25897 | 4285 if test $ac_cv_decl_sys_siglist = yes; then |
40056 | 4286 |
45226 | 4287 cat >>confdefs.h <<\EOF |
25897 | 4288 #define SYS_SIGLIST_DECLARED 1 |
45226 | 4289 EOF |
4290 | |
4291 fi | |
4292 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4293 echo "$as_me:4293: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
40056 | 4294 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
4295 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
4296 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4297 else | |
4298 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4299 #line 4299 "configure" |
30069 | 4300 #include "confdefs.h" |
4301 #include <sys/types.h> | |
4302 #include <sys/wait.h> | |
4303 #ifndef WEXITSTATUS | |
40056 | 4304 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
30069 | 4305 #endif |
4306 #ifndef WIFEXITED | |
40056 | 4307 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
4308 #endif | |
4309 | |
4310 int | |
4311 main () | |
4312 { | |
4313 int s; | |
4314 wait (&s); | |
4315 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4316 ; | |
4317 return 0; | |
4318 } | |
4319 _ACEOF | |
4320 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4321 if { (eval echo "$as_me:4321: \"$ac_compile\"") >&5 |
44493 | 4322 (eval $ac_compile) 2>&5 |
4323 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4324 echo "$as_me:4324: \$? = $ac_status" >&5 |
44493 | 4325 (exit $ac_status); } && |
4326 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4327 { (eval echo "$as_me:4327: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4328 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4329 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4330 echo "$as_me:4330: \$? = $ac_status" >&5 |
40056 | 4331 (exit $ac_status); }; }; then |
30069 | 4332 ac_cv_header_sys_wait_h=yes |
4333 else | |
40056 | 4334 echo "$as_me: failed program was:" >&5 |
4335 cat conftest.$ac_ext >&5 | |
4336 ac_cv_header_sys_wait_h=no | |
4337 fi | |
4338 rm -f conftest.$ac_objext conftest.$ac_ext | |
4339 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4340 echo "$as_me:4340: result: $ac_cv_header_sys_wait_h" >&5 |
40056 | 4341 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
30069 | 4342 if test $ac_cv_header_sys_wait_h = yes; then |
40056 | 4343 |
45226 | 4344 cat >>confdefs.h <<\EOF |
30069 | 4345 #define HAVE_SYS_WAIT_H 1 |
45226 | 4346 EOF |
4347 | |
4348 fi | |
4349 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4350 echo "$as_me:4350: checking for struct utimbuf" >&5 |
40056 | 4351 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
4352 if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
4353 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4354 else | |
4355 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4356 #line 4356 "configure" |
25897 | 4357 #include "confdefs.h" |
4358 #ifdef TIME_WITH_SYS_TIME | |
4359 #include <sys/time.h> | |
4360 #include <time.h> | |
4361 #else | |
4362 #ifdef HAVE_SYS_TIME_H | |
4363 #include <sys/time.h> | |
4364 #else | |
4365 #include <time.h> | |
4366 #endif | |
4367 #endif | |
4368 #ifdef HAVE_UTIME_H | |
4369 #include <utime.h> | |
4370 #endif | |
40056 | 4371 int |
4372 main () | |
4373 { | |
25897 | 4374 static struct utimbuf x; x.actime = x.modtime; |
40056 | 4375 ; |
4376 return 0; | |
4377 } | |
4378 _ACEOF | |
4379 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4380 if { (eval echo "$as_me:4380: \"$ac_compile\"") >&5 |
44493 | 4381 (eval $ac_compile) 2>&5 |
4382 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4383 echo "$as_me:4383: \$? = $ac_status" >&5 |
44493 | 4384 (exit $ac_status); } && |
4385 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4386 { (eval echo "$as_me:4386: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4387 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4388 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4389 echo "$as_me:4389: \$? = $ac_status" >&5 |
40056 | 4390 (exit $ac_status); }; }; then |
25897 | 4391 emacs_cv_struct_utimbuf=yes |
4392 else | |
40056 | 4393 echo "$as_me: failed program was:" >&5 |
4394 cat conftest.$ac_ext >&5 | |
4395 emacs_cv_struct_utimbuf=no | |
4396 fi | |
4397 rm -f conftest.$ac_objext conftest.$ac_ext | |
4398 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4399 echo "$as_me:4399: result: $emacs_cv_struct_utimbuf" >&5 |
40056 | 4400 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
25897 | 4401 if test $emacs_cv_struct_utimbuf = yes; then |
44569 | 4402 |
45226 | 4403 cat >>confdefs.h <<\EOF |
25897 | 4404 #define HAVE_STRUCT_UTIMBUF 1 |
45226 | 4405 EOF |
4406 | |
4407 fi | |
4408 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4409 echo "$as_me:4409: checking return type of signal handlers" >&5 |
40056 | 4410 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
4411 if test "${ac_cv_type_signal+set}" = set; then | |
4412 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4413 else | |
4414 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4415 #line 4415 "configure" |
25897 | 4416 #include "confdefs.h" |
4417 #include <sys/types.h> | |
4418 #include <signal.h> | |
4419 #ifdef signal | |
40056 | 4420 # undef signal |
25897 | 4421 #endif |
4422 #ifdef __cplusplus | |
4423 extern "C" void (*signal (int, void (*)(int)))(int); | |
4424 #else | |
4425 void (*signal ()) (); | |
4426 #endif | |
4427 | |
40056 | 4428 int |
4429 main () | |
4430 { | |
25897 | 4431 int i; |
40056 | 4432 ; |
4433 return 0; | |
4434 } | |
4435 _ACEOF | |
4436 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4437 if { (eval echo "$as_me:4437: \"$ac_compile\"") >&5 |
44493 | 4438 (eval $ac_compile) 2>&5 |
4439 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4440 echo "$as_me:4440: \$? = $ac_status" >&5 |
44493 | 4441 (exit $ac_status); } && |
4442 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4443 { (eval echo "$as_me:4443: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4444 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4445 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4446 echo "$as_me:4446: \$? = $ac_status" >&5 |
40056 | 4447 (exit $ac_status); }; }; then |
25897 | 4448 ac_cv_type_signal=void |
4449 else | |
40056 | 4450 echo "$as_me: failed program was:" >&5 |
4451 cat conftest.$ac_ext >&5 | |
4452 ac_cv_type_signal=int | |
4453 fi | |
4454 rm -f conftest.$ac_objext conftest.$ac_ext | |
4455 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4456 echo "$as_me:4456: result: $ac_cv_type_signal" >&5 |
40056 | 4457 echo "${ECHO_T}$ac_cv_type_signal" >&6 |
4458 | |
45226 | 4459 cat >>confdefs.h <<EOF |
25897 | 4460 #define RETSIGTYPE $ac_cv_type_signal |
45226 | 4461 EOF |
4462 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4463 echo "$as_me:4463: checking for speed_t" >&5 |
40056 | 4464 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
4465 if test "${emacs_cv_speed_t+set}" = set; then | |
4466 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4467 else | |
4468 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4469 #line 4469 "configure" |
29254 | 4470 #include "confdefs.h" |
4471 #include <termios.h> | |
40056 | 4472 int |
4473 main () | |
4474 { | |
29254 | 4475 speed_t x = 1; |
40056 | 4476 ; |
4477 return 0; | |
4478 } | |
4479 _ACEOF | |
4480 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4481 if { (eval echo "$as_me:4481: \"$ac_compile\"") >&5 |
44493 | 4482 (eval $ac_compile) 2>&5 |
4483 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4484 echo "$as_me:4484: \$? = $ac_status" >&5 |
44493 | 4485 (exit $ac_status); } && |
4486 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4487 { (eval echo "$as_me:4487: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4488 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4489 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4490 echo "$as_me:4490: \$? = $ac_status" >&5 |
40056 | 4491 (exit $ac_status); }; }; then |
29254 | 4492 emacs_cv_speed_t=yes |
4493 else | |
40056 | 4494 echo "$as_me: failed program was:" >&5 |
4495 cat conftest.$ac_ext >&5 | |
4496 emacs_cv_speed_t=no | |
4497 fi | |
4498 rm -f conftest.$ac_objext conftest.$ac_ext | |
4499 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4500 echo "$as_me:4500: result: $emacs_cv_speed_t" >&5 |
40056 | 4501 echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
29254 | 4502 if test $emacs_cv_speed_t = yes; then |
44569 | 4503 |
45226 | 4504 cat >>confdefs.h <<\EOF |
29254 | 4505 #define HAVE_SPEED_T 1 |
45226 | 4506 EOF |
4507 | |
4508 fi | |
4509 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4510 echo "$as_me:4510: checking for struct timeval" >&5 |
40056 | 4511 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
4512 if test "${emacs_cv_struct_timeval+set}" = set; then | |
4513 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4514 else | |
4515 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4516 #line 4516 "configure" |
25897 | 4517 #include "confdefs.h" |
4518 #ifdef TIME_WITH_SYS_TIME | |
4519 #include <sys/time.h> | |
4520 #include <time.h> | |
4521 #else | |
4522 #ifdef HAVE_SYS_TIME_H | |
4523 #include <sys/time.h> | |
4524 #else | |
4525 #include <time.h> | |
4526 #endif | |
4527 #endif | |
40056 | 4528 int |
4529 main () | |
4530 { | |
25897 | 4531 static struct timeval x; x.tv_sec = x.tv_usec; |
40056 | 4532 ; |
4533 return 0; | |
4534 } | |
4535 _ACEOF | |
4536 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4537 if { (eval echo "$as_me:4537: \"$ac_compile\"") >&5 |
44493 | 4538 (eval $ac_compile) 2>&5 |
4539 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4540 echo "$as_me:4540: \$? = $ac_status" >&5 |
44493 | 4541 (exit $ac_status); } && |
4542 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4543 { (eval echo "$as_me:4543: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4544 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4545 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4546 echo "$as_me:4546: \$? = $ac_status" >&5 |
40056 | 4547 (exit $ac_status); }; }; then |
25897 | 4548 emacs_cv_struct_timeval=yes |
4549 else | |
40056 | 4550 echo "$as_me: failed program was:" >&5 |
4551 cat conftest.$ac_ext >&5 | |
4552 emacs_cv_struct_timeval=no | |
4553 fi | |
4554 rm -f conftest.$ac_objext conftest.$ac_ext | |
4555 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4556 echo "$as_me:4556: result: $emacs_cv_struct_timeval" >&5 |
40056 | 4557 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
25897 | 4558 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
4559 if test $emacs_cv_struct_timeval = yes; then | |
44569 | 4560 |
45226 | 4561 cat >>confdefs.h <<\EOF |
25897 | 4562 #define HAVE_TIMEVAL 1 |
45226 | 4563 EOF |
4564 | |
4565 fi | |
4566 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4567 echo "$as_me:4567: checking for struct exception" >&5 |
40056 | 4568 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
4569 if test "${emacs_cv_struct_exception+set}" = set; then | |
4570 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4571 else | |
4572 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4573 #line 4573 "configure" |
29388 | 4574 #include "confdefs.h" |
4575 #include <math.h> | |
40056 | 4576 int |
4577 main () | |
4578 { | |
29388 | 4579 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
40056 | 4580 ; |
4581 return 0; | |
4582 } | |
4583 _ACEOF | |
4584 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4585 if { (eval echo "$as_me:4585: \"$ac_compile\"") >&5 |
44493 | 4586 (eval $ac_compile) 2>&5 |
4587 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4588 echo "$as_me:4588: \$? = $ac_status" >&5 |
44493 | 4589 (exit $ac_status); } && |
4590 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4591 { (eval echo "$as_me:4591: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4592 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4593 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4594 echo "$as_me:4594: \$? = $ac_status" >&5 |
40056 | 4595 (exit $ac_status); }; }; then |
29388 | 4596 emacs_cv_struct_exception=yes |
4597 else | |
40056 | 4598 echo "$as_me: failed program was:" >&5 |
4599 cat conftest.$ac_ext >&5 | |
4600 emacs_cv_struct_exception=no | |
4601 fi | |
4602 rm -f conftest.$ac_objext conftest.$ac_ext | |
4603 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4604 echo "$as_me:4604: result: $emacs_cv_struct_exception" >&5 |
40056 | 4605 echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
29388 | 4606 HAVE_EXCEPTION=$emacs_cv_struct_exception |
4607 if test $emacs_cv_struct_exception != yes; then | |
44569 | 4608 |
45226 | 4609 cat >>confdefs.h <<\EOF |
29388 | 4610 #define NO_MATHERR 1 |
45226 | 4611 EOF |
4612 | |
4613 fi | |
4614 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4615 echo "$as_me:4615: checking whether struct tm is in sys/time.h or time.h" >&5 |
40056 | 4616 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
4617 if test "${ac_cv_struct_tm+set}" = set; then | |
4618 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4619 else | |
4620 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4621 #line 4621 "configure" |
25897 | 4622 #include "confdefs.h" |
4623 #include <sys/types.h> | |
4624 #include <time.h> | |
40056 | 4625 |
4626 int | |
4627 main () | |
4628 { | |
25897 | 4629 struct tm *tp; tp->tm_sec; |
40056 | 4630 ; |
4631 return 0; | |
4632 } | |
4633 _ACEOF | |
4634 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4635 if { (eval echo "$as_me:4635: \"$ac_compile\"") >&5 |
44493 | 4636 (eval $ac_compile) 2>&5 |
4637 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4638 echo "$as_me:4638: \$? = $ac_status" >&5 |
44493 | 4639 (exit $ac_status); } && |
4640 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4641 { (eval echo "$as_me:4641: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4642 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4643 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4644 echo "$as_me:4644: \$? = $ac_status" >&5 |
40056 | 4645 (exit $ac_status); }; }; then |
25897 | 4646 ac_cv_struct_tm=time.h |
4647 else | |
40056 | 4648 echo "$as_me: failed program was:" >&5 |
4649 cat conftest.$ac_ext >&5 | |
4650 ac_cv_struct_tm=sys/time.h | |
4651 fi | |
4652 rm -f conftest.$ac_objext conftest.$ac_ext | |
4653 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4654 echo "$as_me:4654: result: $ac_cv_struct_tm" >&5 |
40056 | 4655 echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
25897 | 4656 if test $ac_cv_struct_tm = sys/time.h; then |
40056 | 4657 |
45226 | 4658 cat >>confdefs.h <<\EOF |
25897 | 4659 #define TM_IN_SYS_TIME 1 |
45226 | 4660 EOF |
4661 | |
4662 fi | |
4663 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4664 echo "$as_me:4664: checking for struct tm.tm_zone" >&5 |
40056 | 4665 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
4666 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
4667 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4668 else | |
4669 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4670 #line 4670 "configure" |
25897 | 4671 #include "confdefs.h" |
4672 #include <sys/types.h> | |
4673 #include <$ac_cv_struct_tm> | |
40056 | 4674 |
4675 int | |
4676 main () | |
4677 { | |
4678 static struct tm ac_aggr; | |
4679 if (ac_aggr.tm_zone) | |
4680 return 0; | |
4681 ; | |
4682 return 0; | |
4683 } | |
4684 _ACEOF | |
4685 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4686 if { (eval echo "$as_me:4686: \"$ac_compile\"") >&5 |
44493 | 4687 (eval $ac_compile) 2>&5 |
4688 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4689 echo "$as_me:4689: \$? = $ac_status" >&5 |
44493 | 4690 (exit $ac_status); } && |
4691 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4692 { (eval echo "$as_me:4692: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4693 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4694 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4695 echo "$as_me:4695: \$? = $ac_status" >&5 |
40056 | 4696 (exit $ac_status); }; }; then |
4697 ac_cv_member_struct_tm_tm_zone=yes | |
4698 else | |
4699 echo "$as_me: failed program was:" >&5 | |
4700 cat conftest.$ac_ext >&5 | |
4701 ac_cv_member_struct_tm_tm_zone=no | |
4702 fi | |
4703 rm -f conftest.$ac_objext conftest.$ac_ext | |
4704 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4705 echo "$as_me:4705: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
40056 | 4706 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
4707 if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
4708 | |
45226 | 4709 cat >>confdefs.h <<EOF |
40056 | 4710 #define HAVE_STRUCT_TM_TM_ZONE 1 |
45226 | 4711 EOF |
40056 | 4712 |
4713 fi | |
4714 | |
4715 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
4716 | |
45226 | 4717 cat >>confdefs.h <<\EOF |
25897 | 4718 #define HAVE_TM_ZONE 1 |
45226 | 4719 EOF |
4720 | |
4721 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4722 echo "$as_me:4722: checking for tzname" >&5 |
40056 | 4723 echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
4724 if test "${ac_cv_var_tzname+set}" = set; then | |
4725 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4726 else | |
4727 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4728 #line 4728 "configure" |
25897 | 4729 #include "confdefs.h" |
4730 #include <time.h> | |
4731 #ifndef tzname /* For SGI. */ | |
4732 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
4733 #endif | |
40056 | 4734 |
4735 int | |
4736 main () | |
4737 { | |
25897 | 4738 atoi(*tzname); |
40056 | 4739 ; |
4740 return 0; | |
4741 } | |
4742 _ACEOF | |
4743 rm -f conftest.$ac_objext conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4744 if { (eval echo "$as_me:4744: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4745 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4746 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4747 echo "$as_me:4747: \$? = $ac_status" >&5 |
44493 | 4748 (exit $ac_status); } && |
4749 { ac_try='test -s conftest$ac_exeext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4750 { (eval echo "$as_me:4750: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4751 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4752 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4753 echo "$as_me:4753: \$? = $ac_status" >&5 |
40056 | 4754 (exit $ac_status); }; }; then |
25897 | 4755 ac_cv_var_tzname=yes |
4756 else | |
40056 | 4757 echo "$as_me: failed program was:" >&5 |
4758 cat conftest.$ac_ext >&5 | |
4759 ac_cv_var_tzname=no | |
4760 fi | |
4761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4762 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4763 echo "$as_me:4763: result: $ac_cv_var_tzname" >&5 |
40056 | 4764 echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
25897 | 4765 if test $ac_cv_var_tzname = yes; then |
40056 | 4766 |
45226 | 4767 cat >>confdefs.h <<\EOF |
25897 | 4768 #define HAVE_TZNAME 1 |
45226 | 4769 EOF |
4770 | |
4771 fi | |
4772 fi | |
4773 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4774 echo "$as_me:4774: checking for struct tm.tm_gmtoff" >&5 |
44569 | 4775 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
4776 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
40056 | 4777 echo $ECHO_N "(cached) $ECHO_C" >&6 |
4778 else | |
4779 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4780 #line 4780 "configure" |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4781 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4782 #include <time.h> |
44569 | 4783 |
4784 int | |
4785 main () | |
4786 { | |
4787 static struct tm ac_aggr; | |
4788 if (ac_aggr.tm_gmtoff) | |
4789 return 0; | |
4790 ; | |
4791 return 0; | |
4792 } | |
4793 _ACEOF | |
4794 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4795 if { (eval echo "$as_me:4795: \"$ac_compile\"") >&5 |
44569 | 4796 (eval $ac_compile) 2>&5 |
4797 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4798 echo "$as_me:4798: \$? = $ac_status" >&5 |
44569 | 4799 (exit $ac_status); } && |
4800 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4801 { (eval echo "$as_me:4801: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4802 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4803 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4804 echo "$as_me:4804: \$? = $ac_status" >&5 |
44569 | 4805 (exit $ac_status); }; }; then |
4806 ac_cv_member_struct_tm_tm_gmtoff=yes | |
4807 else | |
4808 echo "$as_me: failed program was:" >&5 | |
4809 cat conftest.$ac_ext >&5 | |
4810 ac_cv_member_struct_tm_tm_gmtoff=no | |
4811 fi | |
4812 rm -f conftest.$ac_objext conftest.$ac_ext | |
4813 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4814 echo "$as_me:4814: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
44569 | 4815 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 |
4816 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
4817 | |
45226 | 4818 cat >>confdefs.h <<\EOF |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4819 #define HAVE_TM_GMTOFF 1 |
45226 | 4820 EOF |
4821 | |
4822 fi | |
4823 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4824 echo "$as_me:4824: checking for $CC option to accept ANSI C" >&5 |
44994 | 4825 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
4826 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4827 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4828 else | |
4829 ac_cv_prog_cc_stdc=no | |
4830 ac_save_CC=$CC | |
4831 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4832 #line 4832 "configure" |
44994 | 4833 #include "confdefs.h" |
4834 #include <stdarg.h> | |
4835 #include <stdio.h> | |
4836 #include <sys/types.h> | |
4837 #include <sys/stat.h> | |
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4839 struct buf { int x; }; | |
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4841 static char *e (p, i) | |
4842 char **p; | |
4843 int i; | |
4844 { | |
4845 return p[i]; | |
4846 } | |
4847 static char *f (char * (*g) (char **, int), char **p, ...) | |
4848 { | |
4849 char *s; | |
4850 va_list v; | |
4851 va_start (v,p); | |
4852 s = g (p, va_arg (v,int)); | |
4853 va_end (v); | |
4854 return s; | |
4855 } | |
4856 int test (int i, double x); | |
4857 struct s1 {int (*f) (int a);}; | |
4858 struct s2 {int (*f) (double a);}; | |
4859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4860 int argc; | |
4861 char **argv; | |
4862 int | |
4863 main () | |
4864 { | |
4865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4866 ; | |
4867 return 0; | |
4868 } | |
4869 _ACEOF | |
4870 # Don't try gcc -ansi; that turns off useful extensions and | |
4871 # breaks some systems' header files. | |
4872 # AIX -qlanglvl=ansi | |
4873 # Ultrix and OSF/1 -std1 | |
4874 # HP-UX 10.20 and later -Ae | |
4875 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4876 # SVR4 -Xc -D__EXTENSIONS__ | |
4877 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4878 do | |
4879 CC="$ac_save_CC $ac_arg" | |
4880 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4881 if { (eval echo "$as_me:4881: \"$ac_compile\"") >&5 |
44994 | 4882 (eval $ac_compile) 2>&5 |
4883 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4884 echo "$as_me:4884: \$? = $ac_status" >&5 |
44994 | 4885 (exit $ac_status); } && |
4886 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4887 { (eval echo "$as_me:4887: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4888 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4889 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4890 echo "$as_me:4890: \$? = $ac_status" >&5 |
44994 | 4891 (exit $ac_status); }; }; then |
4892 ac_cv_prog_cc_stdc=$ac_arg | |
4893 break | |
4894 else | |
4895 echo "$as_me: failed program was:" >&5 | |
4896 cat conftest.$ac_ext >&5 | |
4897 fi | |
4898 rm -f conftest.$ac_objext | |
4899 done | |
4900 rm -f conftest.$ac_ext conftest.$ac_objext | |
4901 CC=$ac_save_CC | |
4902 | |
4903 fi | |
4904 | |
4905 case "x$ac_cv_prog_cc_stdc" in | |
4906 x|xno) | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4907 echo "$as_me:4907: result: none needed" >&5 |
44994 | 4908 echo "${ECHO_T}none needed" >&6 ;; |
4909 *) | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4910 echo "$as_me:4910: result: $ac_cv_prog_cc_stdc" >&5 |
44994 | 4911 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
4912 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4913 esac | |
4914 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4915 echo "$as_me:4915: checking for function prototypes" >&5 |
40056 | 4916 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
28060 | 4917 if test "$ac_cv_prog_cc_stdc" != no; then |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4918 echo "$as_me:4918: result: yes" >&5 |
40056 | 4919 echo "${ECHO_T}yes" >&6 |
4920 | |
45226 | 4921 cat >>confdefs.h <<\EOF |
28060 | 4922 #define PROTOTYPES 1 |
45226 | 4923 EOF |
4924 | |
4925 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4926 echo "$as_me:4926: result: no" >&5 |
40056 | 4927 echo "${ECHO_T}no" >&6 |
4928 fi | |
4929 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4930 echo "$as_me:4930: checking for working volatile" >&5 |
40056 | 4931 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
4932 if test "${ac_cv_c_volatile+set}" = set; then | |
4933 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4934 else | |
4935 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4936 #line 4936 "configure" |
45226 | 4937 #include "confdefs.h" |
4938 | |
40056 | 4939 int |
4940 main () | |
4941 { | |
28060 | 4942 |
4943 volatile int x; | |
4944 int * volatile y; | |
40056 | 4945 ; |
4946 return 0; | |
4947 } | |
4948 _ACEOF | |
4949 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4950 if { (eval echo "$as_me:4950: \"$ac_compile\"") >&5 |
44493 | 4951 (eval $ac_compile) 2>&5 |
4952 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4953 echo "$as_me:4953: \$? = $ac_status" >&5 |
44493 | 4954 (exit $ac_status); } && |
4955 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4956 { (eval echo "$as_me:4956: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4957 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4958 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4959 echo "$as_me:4959: \$? = $ac_status" >&5 |
40056 | 4960 (exit $ac_status); }; }; then |
28060 | 4961 ac_cv_c_volatile=yes |
4962 else | |
40056 | 4963 echo "$as_me: failed program was:" >&5 |
4964 cat conftest.$ac_ext >&5 | |
4965 ac_cv_c_volatile=no | |
4966 fi | |
4967 rm -f conftest.$ac_objext conftest.$ac_ext | |
4968 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4969 echo "$as_me:4969: result: $ac_cv_c_volatile" >&5 |
40056 | 4970 echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
28060 | 4971 if test $ac_cv_c_volatile = no; then |
40056 | 4972 |
45226 | 4973 cat >>confdefs.h <<\EOF |
40056 | 4974 #define volatile |
45226 | 4975 EOF |
4976 | |
4977 fi | |
4978 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4979 echo "$as_me:4979: checking for an ANSI C-conforming const" >&5 |
40056 | 4980 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
4981 if test "${ac_cv_c_const+set}" = set; then | |
4982 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4983 else | |
4984 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
4985 #line 4985 "configure" |
45226 | 4986 #include "confdefs.h" |
4987 | |
40056 | 4988 int |
4989 main () | |
4990 { | |
4991 /* FIXME: Include the comments suggested by Paul. */ | |
4992 #ifndef __cplusplus | |
4993 /* Ultrix mips cc rejects this. */ | |
4994 typedef int charset[2]; | |
4995 const charset x; | |
4996 /* SunOS 4.1.1 cc rejects this. */ | |
4997 char const *const *ccp; | |
4998 char **p; | |
4999 /* NEC SVR4.0.2 mips cc rejects this. */ | |
5000 struct point {int x, y;}; | |
5001 static struct point const zero = {0,0}; | |
5002 /* AIX XL C 1.02.0.0 rejects this. | |
5003 It does not let you subtract one const X* pointer from another in | |
5004 an arm of an if-expression whose if-part is not a constant | |
5005 expression */ | |
5006 const char *g = "string"; | |
5007 ccp = &g + (g ? g-g : 0); | |
5008 /* HPUX 7.0 cc rejects these. */ | |
5009 ++ccp; | |
5010 p = (char**) ccp; | |
5011 ccp = (char const *const *) p; | |
5012 { /* SCO 3.2v4 cc rejects this. */ | |
5013 char *t; | |
5014 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5015 | |
5016 *t++ = 0; | |
5017 } | |
5018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5019 int x[] = {25, 17}; | |
5020 const int *foo = &x[0]; | |
5021 ++foo; | |
5022 } | |
5023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5024 typedef const int *iptr; | |
5025 iptr p = 0; | |
5026 ++p; | |
5027 } | |
5028 { /* AIX XL C 1.02.0.0 rejects this saying | |
5029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5030 struct s { int j; const int *ap[3]; }; | |
5031 struct s *b; b->j = 5; | |
5032 } | |
5033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5034 const int foo = 10; | |
5035 } | |
5036 #endif | |
5037 | |
5038 ; | |
5039 return 0; | |
5040 } | |
5041 _ACEOF | |
5042 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5043 if { (eval echo "$as_me:5043: \"$ac_compile\"") >&5 |
44493 | 5044 (eval $ac_compile) 2>&5 |
5045 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5046 echo "$as_me:5046: \$? = $ac_status" >&5 |
44493 | 5047 (exit $ac_status); } && |
5048 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5049 { (eval echo "$as_me:5049: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5050 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5051 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5052 echo "$as_me:5052: \$? = $ac_status" >&5 |
40056 | 5053 (exit $ac_status); }; }; then |
25897 | 5054 ac_cv_c_const=yes |
5055 else | |
40056 | 5056 echo "$as_me: failed program was:" >&5 |
5057 cat conftest.$ac_ext >&5 | |
5058 ac_cv_c_const=no | |
5059 fi | |
5060 rm -f conftest.$ac_objext conftest.$ac_ext | |
5061 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5062 echo "$as_me:5062: result: $ac_cv_c_const" >&5 |
40056 | 5063 echo "${ECHO_T}$ac_cv_c_const" >&6 |
25897 | 5064 if test $ac_cv_c_const = no; then |
40056 | 5065 |
45226 | 5066 cat >>confdefs.h <<\EOF |
40056 | 5067 #define const |
45226 | 5068 EOF |
5069 | |
5070 fi | |
5071 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5072 echo "$as_me:5072: checking for void * support" >&5 |
40056 | 5073 echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
5074 if test "${emacs_cv_void_star+set}" = set; then | |
5075 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5076 else | |
5077 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5078 #line 5078 "configure" |
45226 | 5079 #include "confdefs.h" |
5080 | |
40056 | 5081 int |
5082 main () | |
5083 { | |
28060 | 5084 void * foo; |
40056 | 5085 ; |
5086 return 0; | |
5087 } | |
5088 _ACEOF | |
5089 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5090 if { (eval echo "$as_me:5090: \"$ac_compile\"") >&5 |
44493 | 5091 (eval $ac_compile) 2>&5 |
5092 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5093 echo "$as_me:5093: \$? = $ac_status" >&5 |
44493 | 5094 (exit $ac_status); } && |
5095 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5096 { (eval echo "$as_me:5096: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5097 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5098 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5099 echo "$as_me:5099: \$? = $ac_status" >&5 |
40056 | 5100 (exit $ac_status); }; }; then |
28060 | 5101 emacs_cv_void_star=yes |
5102 else | |
40056 | 5103 echo "$as_me: failed program was:" >&5 |
5104 cat conftest.$ac_ext >&5 | |
5105 emacs_cv_void_star=no | |
5106 fi | |
5107 rm -f conftest.$ac_objext conftest.$ac_ext | |
5108 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5109 echo "$as_me:5109: result: $emacs_cv_void_star" >&5 |
40056 | 5110 echo "${ECHO_T}$emacs_cv_void_star" >&6 |
28060 | 5111 if test $emacs_cv_void_star = yes; then |
45226 | 5112 cat >>confdefs.h <<\EOF |
28060 | 5113 #define POINTER_TYPE void |
45226 | 5114 EOF |
5115 | |
5116 else | |
5117 cat >>confdefs.h <<\EOF | |
28060 | 5118 #define POINTER_TYPE char |
45226 | 5119 EOF |
5120 | |
5121 fi | |
5122 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5123 echo "$as_me:5123: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
40056 | 5124 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
5125 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
5126 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
5127 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5128 else | |
45226 | 5129 cat >conftest.make <<\EOF |
25897 | 5130 all: |
5131 @echo 'ac_maketemp="${MAKE}"' | |
45226 | 5132 EOF |
25897 | 5133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
40056 | 5134 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
25897 | 5135 if test -n "$ac_maketemp"; then |
5136 eval ac_cv_prog_make_${ac_make}_set=yes | |
5137 else | |
5138 eval ac_cv_prog_make_${ac_make}_set=no | |
5139 fi | |
40056 | 5140 rm -f conftest.make |
25897 | 5141 fi |
5142 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5143 echo "$as_me:5143: result: yes" >&5 |
40056 | 5144 echo "${ECHO_T}yes" >&6 |
25897 | 5145 SET_MAKE= |
5146 else | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5147 echo "$as_me:5147: result: no" >&5 |
40056 | 5148 echo "${ECHO_T}no" >&6 |
25897 | 5149 SET_MAKE="MAKE=${MAKE-make}" |
5150 fi | |
5151 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5152 echo "$as_me:5152: checking for long file names" >&5 |
40056 | 5153 echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
5154 if test "${ac_cv_sys_long_file_names+set}" = set; then | |
5155 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 5156 else |
5157 ac_cv_sys_long_file_names=yes | |
5158 # Test for long file names in all the places we know might matter: | |
5159 # . the current directory, where building will happen | |
5160 # $prefix/lib where we will be installing things | |
5161 # $exec_prefix/lib likewise | |
5162 # eval it to expand exec_prefix. | |
5163 # $TMPDIR if set, where it might want to write temporary files | |
5164 # if $TMPDIR is not set: | |
5165 # /tmp where it might want to write temporary files | |
5166 # /var/tmp likewise | |
5167 # /usr/tmp likewise | |
5168 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
40056 | 5169 ac_tmpdirs=$TMPDIR |
25897 | 5170 else |
5171 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
5172 fi | |
5173 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
5174 test -d $ac_dir || continue | |
5175 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
40056 | 5176 ac_xdir=$ac_dir/cf$$ |
5177 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
5178 ac_tf1=$ac_xdir/conftest9012345 | |
5179 ac_tf2=$ac_xdir/conftest9012346 | |
5180 (echo 1 >$ac_tf1) 2>/dev/null | |
5181 (echo 2 >$ac_tf2) 2>/dev/null | |
5182 ac_val=`cat $ac_tf1 2>/dev/null` | |
5183 if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
25897 | 5184 ac_cv_sys_long_file_names=no |
40056 | 5185 rm -rf $ac_xdir 2>/dev/null |
25897 | 5186 break |
5187 fi | |
40056 | 5188 rm -rf $ac_xdir 2>/dev/null |
25897 | 5189 done |
5190 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5191 echo "$as_me:5191: result: $ac_cv_sys_long_file_names" >&5 |
40056 | 5192 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
25897 | 5193 if test $ac_cv_sys_long_file_names = yes; then |
40056 | 5194 |
45226 | 5195 cat >>confdefs.h <<\EOF |
25897 | 5196 #define HAVE_LONG_FILE_NAMES 1 |
45226 | 5197 EOF |
5198 | |
5199 fi | |
44493 | 5200 |
25897 | 5201 #### Choose a window system. |
5202 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5203 echo "$as_me:5203: checking for X" >&5 |
40056 | 5204 echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25897 | 5205 |
5206 # Check whether --with-x or --without-x was given. | |
5207 if test "${with_x+set}" = set; then | |
5208 withval="$with_x" | |
40056 | 5209 |
5210 fi; | |
25897 | 5211 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
5212 if test "x$with_x" = xno; then | |
5213 # The user explicitly disabled X. | |
5214 have_x=disabled | |
5215 else | |
5216 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
5217 # Both variables are already set. | |
5218 have_x=yes | |
5219 else | |
40056 | 5220 if test "${ac_cv_have_x+set}" = set; then |
5221 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 5222 else |
5223 # One or both of the vars are not set, and there is no cached value. | |
40056 | 5224 ac_x_includes=no ac_x_libraries=no |
5225 rm -fr conftest.dir | |
5226 if mkdir conftest.dir; then | |
5227 cd conftest.dir | |
25897 | 5228 # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
45226 | 5229 cat >Imakefile <<'EOF' |
25897 | 5230 acfindx: |
5231 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
45226 | 5232 EOF |
25897 | 5233 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
5234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5235 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
5236 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
5237 for ac_extension in a so sl; do | |
5238 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
40056 | 5239 test -f $ac_im_libdir/libX11.$ac_extension; then |
25897 | 5240 ac_im_usrlibdir=$ac_im_libdir; break |
5241 fi | |
5242 done | |
5243 # Screen out bogus values from the imake configuration. They are | |
5244 # bogus both because they are the default anyway, and because | |
5245 # using them would break gcc on systems where it needs fixed includes. | |
40056 | 5246 case $ac_im_incroot in |
25897 | 5247 /usr/include) ;; |
40056 | 5248 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
25897 | 5249 esac |
40056 | 5250 case $ac_im_usrlibdir in |
25897 | 5251 /usr/lib | /lib) ;; |
40056 | 5252 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
25897 | 5253 esac |
5254 fi | |
5255 cd .. | |
40056 | 5256 rm -fr conftest.dir |
5257 fi | |
5258 | |
5259 # Standard set of common directories for X headers. | |
5260 # Check X11 before X11Rn because it is often a symlink to the current release. | |
5261 ac_x_header_dirs=' | |
5262 /usr/X11/include | |
5263 /usr/X11R6/include | |
5264 /usr/X11R5/include | |
5265 /usr/X11R4/include | |
5266 | |
5267 /usr/include/X11 | |
5268 /usr/include/X11R6 | |
5269 /usr/include/X11R5 | |
5270 /usr/include/X11R4 | |
5271 | |
5272 /usr/local/X11/include | |
5273 /usr/local/X11R6/include | |
5274 /usr/local/X11R5/include | |
5275 /usr/local/X11R4/include | |
5276 | |
5277 /usr/local/include/X11 | |
5278 /usr/local/include/X11R6 | |
5279 /usr/local/include/X11R5 | |
5280 /usr/local/include/X11R4 | |
5281 | |
5282 /usr/X386/include | |
5283 /usr/x386/include | |
5284 /usr/XFree86/include/X11 | |
5285 | |
5286 /usr/include | |
5287 /usr/local/include | |
5288 /usr/unsupported/include | |
5289 /usr/athena/include | |
5290 /usr/local/x11r5/include | |
5291 /usr/lpp/Xamples/include | |
5292 | |
5293 /usr/openwin/include | |
5294 /usr/openwin/share/include' | |
5295 | |
5296 if test "$ac_x_includes" = no; then | |
5297 # Guess where to find include files, by looking for Intrinsic.h. | |
25897 | 5298 # First, try using that file with no special directory specified. |
40056 | 5299 cat >conftest.$ac_ext <<_ACEOF |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5300 #line 5300 "configure" |
40056 | 5301 #include "confdefs.h" |
5302 #include <X11/Intrinsic.h> | |
5303 _ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5304 if { (eval echo "$as_me:5304: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 5305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5306 ac_status=$? | |
5307 egrep -v '^ *\+' conftest.er1 >conftest.err | |
5308 rm -f conftest.er1 | |
5309 cat conftest.err >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5310 echo "$as_me:5310: \$? = $ac_status" >&5 |
40056 | 5311 (exit $ac_status); } >/dev/null; then |
5312 if test -s conftest.err; then | |
5313 ac_cpp_err=$ac_c_preproc_warn_flag | |
5314 else | |
5315 ac_cpp_err= | |
5316 fi | |
5317 else | |
5318 ac_cpp_err=yes | |
5319 fi | |
5320 if test -z "$ac_cpp_err"; then | |
25897 | 5321 # We can compile using X headers with no special include directory. |
5322 ac_x_includes= | |
5323 else | |
40056 | 5324 echo "$as_me: failed program was:" >&5 |
25897 | 5325 cat conftest.$ac_ext >&5 |
40056 | 5326 for ac_dir in $ac_x_header_dirs; do |
5327 if test -r "$ac_dir/X11/Intrinsic.h"; then | |
5328 ac_x_includes=$ac_dir | |
5329 break | |
5330 fi | |
5331 done | |
5332 fi | |
5333 rm -f conftest.err conftest.$ac_ext | |
5334 fi # $ac_x_includes = no | |
5335 | |
5336 if test "$ac_x_libraries" = no; then | |
25897 | 5337 # Check for the libraries. |
5338 # See if we find them without any special options. | |
5339 # Don't add to $LIBS permanently. | |
40056 | 5340 ac_save_LIBS=$LIBS |
5341 LIBS="-lXt $LIBS" | |
5342 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5343 #line 5343 "configure" |
40056 | 5344 #include "confdefs.h" |
5345 #include <X11/Intrinsic.h> | |
5346 int | |
5347 main () | |
5348 { | |
5349 XtMalloc (0) | |
5350 ; | |
5351 return 0; | |
5352 } | |
5353 _ACEOF | |
5354 rm -f conftest.$ac_objext conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5355 if { (eval echo "$as_me:5355: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5356 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5357 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5358 echo "$as_me:5358: \$? = $ac_status" >&5 |
44493 | 5359 (exit $ac_status); } && |
5360 { ac_try='test -s conftest$ac_exeext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5361 { (eval echo "$as_me:5361: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5362 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5363 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5364 echo "$as_me:5364: \$? = $ac_status" >&5 |
40056 | 5365 (exit $ac_status); }; }; then |
5366 LIBS=$ac_save_LIBS | |
25897 | 5367 # We can link X programs with no special library path. |
5368 ac_x_libraries= | |
5369 else | |
40056 | 5370 echo "$as_me: failed program was:" >&5 |
5371 cat conftest.$ac_ext >&5 | |
5372 LIBS=$ac_save_LIBS | |
5373 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25897 | 5374 do |
40056 | 5375 # Don't even attempt the hair of trying to link an X program! |
25897 | 5376 for ac_extension in a so sl; do |
40056 | 5377 if test -r $ac_dir/libXt.$ac_extension; then |
25897 | 5378 ac_x_libraries=$ac_dir |
5379 break 2 | |
5380 fi | |
5381 done | |
5382 done | |
5383 fi | |
40056 | 5384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5385 fi # $ac_x_libraries = no | |
5386 | |
5387 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25897 | 5388 # Didn't find X anywhere. Cache the known absence of X. |
5389 ac_cv_have_x="have_x=no" | |
5390 else | |
5391 # Record where we found X for the cache. | |
5392 ac_cv_have_x="have_x=yes \ | |
5393 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
5394 fi | |
5395 fi | |
40056 | 5396 |
25897 | 5397 fi |
5398 eval "$ac_cv_have_x" | |
5399 fi # $with_x != no | |
5400 | |
5401 if test "$have_x" != yes; then | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5402 echo "$as_me:5402: result: $have_x" >&5 |
40056 | 5403 echo "${ECHO_T}$have_x" >&6 |
25897 | 5404 no_x=yes |
5405 else | |
5406 # If each of the values was on the command line, it overrides each guess. | |
5407 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
5408 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
5409 # Update the cache value to reflect the command line values. | |
5410 ac_cv_have_x="have_x=yes \ | |
5411 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5412 echo "$as_me:5412: result: libraries $x_libraries, headers $x_includes" >&5 |
40056 | 5413 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
25897 | 5414 fi |
5415 | |
5416 if test "$no_x" = yes; then | |
5417 window_system=none | |
5418 else | |
5419 window_system=x11 | |
5420 fi | |
5421 | |
5422 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
5423 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
5424 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
5425 x_default_search_path="" | |
5426 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
35666 | 5427 x_search_path="\ |
5428 ${x_library}/X11/%L/%T/%N%C%S:\ | |
5429 ${x_library}/X11/%l/%T/%N%C%S:\ | |
5430 ${x_library}/X11/%T/%N%C%S:\ | |
5431 ${x_library}/X11/%L/%T/%N%S:\ | |
5432 ${x_library}/X11/%l/%T/%N%S:\ | |
5433 ${x_library}/X11/%T/%N%S" | |
25897 | 5434 if test x"${x_default_search_path}" = x; then |
5435 x_default_search_path=${x_search_path} | |
5436 else | |
5437 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
5438 fi | |
5439 done | |
5440 fi | |
5441 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
5442 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
5443 fi | |
5444 | |
5445 if test x"${x_includes}" = x; then | |
5446 bitmapdir=/usr/include/X11/bitmaps | |
5447 else | |
5448 # accumulate include directories that have X11 bitmap subdirectories | |
5449 bmd_acc="dummyval" | |
5450 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
5451 if test -d "${bmd}/X11/bitmaps"; then | |
5452 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
26502 | 5453 fi |
5454 if test -d "${bmd}/bitmaps"; then | |
25897 | 5455 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
5456 fi | |
5457 done | |
5458 if test ${bmd_acc} != "dummyval"; then | |
5459 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
5460 fi | |
5461 fi | |
5462 | |
5463 case "${window_system}" in | |
5464 x11 ) | |
5465 HAVE_X_WINDOWS=yes | |
5466 HAVE_X11=yes | |
5467 case "${with_x_toolkit}" in | |
5468 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
5469 motif ) USE_X_TOOLKIT=MOTIF ;; | |
5470 no ) USE_X_TOOLKIT=none ;; | |
5471 * ) USE_X_TOOLKIT=maybe ;; | |
5472 esac | |
5473 ;; | |
5474 none ) | |
5475 HAVE_X_WINDOWS=no | |
5476 HAVE_X11=no | |
5477 USE_X_TOOLKIT=none | |
5478 ;; | |
5479 esac | |
5480 | |
5481 ### If we're using X11, we should use the X menu package. | |
5482 HAVE_MENUS=no | |
5483 case ${HAVE_X11} in | |
5484 yes ) HAVE_MENUS=yes ;; | |
5485 esac | |
40056 | 5486 |
25897 | 5487 if test "${opsys}" = "hpux9"; then |
5488 case "${x_libraries}" in | |
5489 *X11R4* ) | |
5490 opsysfile="s/hpux9-x11r4.h" | |
5491 ;; | |
5492 esac | |
5493 fi | |
5494 | |
5495 if test "${opsys}" = "hpux9shr"; then | |
5496 case "${x_libraries}" in | |
5497 *X11R4* ) | |
5498 opsysfile="s/hpux9shxr4.h" | |
5499 ;; | |
5500 esac | |
5501 fi | |
5502 | |
5503 ### Compute the unexec source name from the object name. | |
5504 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
5505 | |
5506 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
5507 # Assume not, until told otherwise. | |
5508 GNU_MALLOC=yes | |
5509 doug_lea_malloc=yes | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5510 echo "$as_me:5510: checking for malloc_get_state" >&5 |
40056 | 5511 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
5512 if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
5513 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5514 else | |
5515 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5516 #line 5516 "configure" |
25897 | 5517 #include "confdefs.h" |
5518 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5519 which can conflict with char malloc_get_state (); below. */ |
25897 | 5520 #include <assert.h> |
5521 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5522 #ifdef __cplusplus |
5523 extern "C" | |
5524 #endif | |
25897 | 5525 /* We use char because int might match the return type of a gcc2 |
40056 | 5526 builtin and then its argument prototype would still apply. */ |
5527 char malloc_get_state (); | |
5528 char (*f) (); | |
5529 | |
5530 int | |
5531 main () | |
5532 { | |
25897 | 5533 /* The GNU C library defines this for functions which it implements |
5534 to always fail with ENOSYS. Some functions are actually named | |
5535 something starting with __ and the normal name is an alias. */ | |
5536 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
5537 choke me | |
5538 #else | |
40056 | 5539 f = malloc_get_state; |
5540 #endif | |
5541 | |
5542 ; | |
5543 return 0; | |
5544 } | |
5545 _ACEOF | |
5546 rm -f conftest.$ac_objext conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5547 if { (eval echo "$as_me:5547: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5548 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5549 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5550 echo "$as_me:5550: \$? = $ac_status" >&5 |
44493 | 5551 (exit $ac_status); } && |
5552 { ac_try='test -s conftest$ac_exeext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5553 { (eval echo "$as_me:5553: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5554 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5555 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5556 echo "$as_me:5556: \$? = $ac_status" >&5 |
40056 | 5557 (exit $ac_status); }; }; then |
5558 ac_cv_func_malloc_get_state=yes | |
5559 else | |
5560 echo "$as_me: failed program was:" >&5 | |
5561 cat conftest.$ac_ext >&5 | |
5562 ac_cv_func_malloc_get_state=no | |
5563 fi | |
5564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5565 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5566 echo "$as_me:5566: result: $ac_cv_func_malloc_get_state" >&5 |
40056 | 5567 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
5568 if test $ac_cv_func_malloc_get_state = yes; then | |
25897 | 5569 : |
5570 else | |
40056 | 5571 doug_lea_malloc=no |
5572 fi | |
5573 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5574 echo "$as_me:5574: checking for malloc_set_state" >&5 |
40056 | 5575 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
5576 if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
5577 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5578 else | |
5579 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5580 #line 5580 "configure" |
25897 | 5581 #include "confdefs.h" |
5582 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5583 which can conflict with char malloc_set_state (); below. */ |
25897 | 5584 #include <assert.h> |
5585 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5586 #ifdef __cplusplus |
5587 extern "C" | |
5588 #endif | |
25897 | 5589 /* We use char because int might match the return type of a gcc2 |
40056 | 5590 builtin and then its argument prototype would still apply. */ |
5591 char malloc_set_state (); | |
5592 char (*f) (); | |
5593 | |
5594 int | |
5595 main () | |
5596 { | |
25897 | 5597 /* The GNU C library defines this for functions which it implements |
5598 to always fail with ENOSYS. Some functions are actually named | |
5599 something starting with __ and the normal name is an alias. */ | |
5600 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
5601 choke me | |
5602 #else | |
40056 | 5603 f = malloc_set_state; |
5604 #endif | |
5605 | |
5606 ; | |
5607 return 0; | |
5608 } | |
5609 _ACEOF | |
5610 rm -f conftest.$ac_objext conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5611 if { (eval echo "$as_me:5611: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5612 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5613 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5614 echo "$as_me:5614: \$? = $ac_status" >&5 |
44493 | 5615 (exit $ac_status); } && |
5616 { ac_try='test -s conftest$ac_exeext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5617 { (eval echo "$as_me:5617: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5618 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5619 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5620 echo "$as_me:5620: \$? = $ac_status" >&5 |
40056 | 5621 (exit $ac_status); }; }; then |
5622 ac_cv_func_malloc_set_state=yes | |
5623 else | |
5624 echo "$as_me: failed program was:" >&5 | |
5625 cat conftest.$ac_ext >&5 | |
5626 ac_cv_func_malloc_set_state=no | |
5627 fi | |
5628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5629 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5630 echo "$as_me:5630: result: $ac_cv_func_malloc_set_state" >&5 |
40056 | 5631 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
5632 if test $ac_cv_func_malloc_set_state = yes; then | |
25897 | 5633 : |
5634 else | |
40056 | 5635 doug_lea_malloc=no |
5636 fi | |
5637 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5638 echo "$as_me:5638: checking whether __after_morecore_hook exists" >&5 |
40056 | 5639 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
5640 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
5641 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5642 else | |
5643 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5644 #line 5644 "configure" |
25897 | 5645 #include "confdefs.h" |
5646 extern void (* __after_morecore_hook)(); | |
40056 | 5647 int |
5648 main () | |
5649 { | |
25897 | 5650 __after_morecore_hook = 0 |
40056 | 5651 ; |
5652 return 0; | |
5653 } | |
5654 _ACEOF | |
5655 rm -f conftest.$ac_objext conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5656 if { (eval echo "$as_me:5656: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5657 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5658 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5659 echo "$as_me:5659: \$? = $ac_status" >&5 |
44493 | 5660 (exit $ac_status); } && |
5661 { ac_try='test -s conftest$ac_exeext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5662 { (eval echo "$as_me:5662: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5663 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5664 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5665 echo "$as_me:5665: \$? = $ac_status" >&5 |
40056 | 5666 (exit $ac_status); }; }; then |
25897 | 5667 emacs_cv_var___after_morecore_hook=yes |
5668 else | |
40056 | 5669 echo "$as_me: failed program was:" >&5 |
5670 cat conftest.$ac_ext >&5 | |
5671 emacs_cv_var___after_morecore_hook=no | |
5672 fi | |
5673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5674 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5675 echo "$as_me:5675: result: $emacs_cv_var___after_morecore_hook" >&5 |
40056 | 5676 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
25897 | 5677 if test $emacs_cv_var___after_morecore_hook = no; then |
5678 doug_lea_malloc=no | |
5679 fi | |
5680 if test "${system_malloc}" = "yes"; then | |
5681 GNU_MALLOC=no | |
5682 GNU_MALLOC_reason=" | |
5683 (The GNU allocators don't work with this system configuration.)" | |
5684 fi | |
5685 if test "$doug_lea_malloc" = "yes" ; then | |
5686 if test "$GNU_MALLOC" = yes ; then | |
5687 GNU_MALLOC_reason=" | |
5688 (Using Doug Lea's new malloc from the GNU C Library.)" | |
5689 fi | |
44569 | 5690 |
45226 | 5691 cat >>confdefs.h <<\EOF |
25897 | 5692 #define DOUG_LEA_MALLOC 1 |
45226 | 5693 EOF |
25897 | 5694 |
5695 fi | |
5696 | |
5697 if test x"${REL_ALLOC}" = x; then | |
5698 REL_ALLOC=${GNU_MALLOC} | |
5699 fi | |
5700 | |
45226 | 5701 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5702 | |
5703 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5704 inttypes.h stdint.h unistd.h | |
40056 | 5705 do |
5706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5707 echo "$as_me:5707: checking for $ac_header" >&5 |
40056 | 5708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5709 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5710 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 5711 else |
5712 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5713 #line 5713 "configure" |
44493 | 5714 #include "confdefs.h" |
5715 $ac_includes_default | |
5716 #include <$ac_header> | |
5717 _ACEOF | |
5718 rm -f conftest.$ac_objext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5719 if { (eval echo "$as_me:5719: \"$ac_compile\"") >&5 |
44493 | 5720 (eval $ac_compile) 2>&5 |
5721 ac_status=$? | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5722 echo "$as_me:5722: \$? = $ac_status" >&5 |
44493 | 5723 (exit $ac_status); } && |
5724 { ac_try='test -s conftest.$ac_objext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5725 { (eval echo "$as_me:5725: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5726 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5727 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5728 echo "$as_me:5728: \$? = $ac_status" >&5 |
45226 | 5729 (exit $ac_status); }; }; then |
5730 eval "$as_ac_Header=yes" | |
5731 else | |
5732 echo "$as_me: failed program was:" >&5 | |
5733 cat conftest.$ac_ext >&5 | |
5734 eval "$as_ac_Header=no" | |
44493 | 5735 fi |
5736 rm -f conftest.$ac_objext conftest.$ac_ext | |
45226 | 5737 fi |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5738 echo "$as_me:5738: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
45226 | 5739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5740 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5741 cat >>confdefs.h <<EOF | |
5742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5743 EOF | |
5744 | |
5745 fi | |
5746 done | |
5747 | |
5748 for ac_header in stdlib.h unistd.h | |
5749 do | |
5750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5751 echo "$as_me:5751: checking for $ac_header" >&5 |
45226 | 5752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5754 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5755 else | |
5756 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5757 #line 5757 "configure" |
40056 | 5758 #include "confdefs.h" |
5759 #include <$ac_header> | |
5760 _ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5761 if { (eval echo "$as_me:5761: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 5762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5763 ac_status=$? | |
5764 egrep -v '^ *\+' conftest.er1 >conftest.err | |
5765 rm -f conftest.er1 | |
5766 cat conftest.err >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5767 echo "$as_me:5767: \$? = $ac_status" >&5 |
40056 | 5768 (exit $ac_status); } >/dev/null; then |
5769 if test -s conftest.err; then | |
5770 ac_cpp_err=$ac_c_preproc_warn_flag | |
5771 else | |
5772 ac_cpp_err= | |
5773 fi | |
5774 else | |
5775 ac_cpp_err=yes | |
5776 fi | |
5777 if test -z "$ac_cpp_err"; then | |
45226 | 5778 eval "$as_ac_Header=yes" |
40056 | 5779 else |
5780 echo "$as_me: failed program was:" >&5 | |
31417 | 5781 cat conftest.$ac_ext >&5 |
45226 | 5782 eval "$as_ac_Header=no" |
40056 | 5783 fi |
5784 rm -f conftest.err conftest.$ac_ext | |
45226 | 5785 fi |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5786 echo "$as_me:5786: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 5787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 5789 cat >>confdefs.h <<EOF |
40056 | 5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 5791 EOF |
5792 | |
5793 fi | |
5794 done | |
31417 | 5795 |
5796 for ac_func in getpagesize | |
5797 do | |
40056 | 5798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5799 echo "$as_me:5799: checking for $ac_func" >&5 |
40056 | 5800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5801 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5802 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5803 else | |
5804 cat >conftest.$ac_ext <<_ACEOF | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5805 #line 5805 "configure" |
31417 | 5806 #include "confdefs.h" |
5807 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5808 which can conflict with char $ac_func (); below. */ |
31417 | 5809 #include <assert.h> |
5810 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5811 #ifdef __cplusplus |
5812 extern "C" | |
5813 #endif | |
31417 | 5814 /* We use char because int might match the return type of a gcc2 |
40056 | 5815 builtin and then its argument prototype would still apply. */ |
5816 char $ac_func (); | |
5817 char (*f) (); | |
5818 | |
5819 int | |
5820 main () | |
5821 { | |
31417 | 5822 /* The GNU C library defines this for functions which it implements |
5823 to always fail with ENOSYS. Some functions are actually named | |
5824 something starting with __ and the normal name is an alias. */ | |
5825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5826 choke me | |
5827 #else | |
40056 | 5828 f = $ac_func; |
5829 #endif | |
5830 | |
5831 ; | |
5832 return 0; | |
5833 } | |
5834 _ACEOF | |
5835 rm -f conftest.$ac_objext conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5836 if { (eval echo "$as_me:5836: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5837 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5838 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5839 echo "$as_me:5839: \$? = $ac_status" >&5 |
44493 | 5840 (exit $ac_status); } && |
5841 { ac_try='test -s conftest$ac_exeext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5842 { (eval echo "$as_me:5842: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5843 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5844 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5845 echo "$as_me:5845: \$? = $ac_status" >&5 |
40056 | 5846 (exit $ac_status); }; }; then |
5847 eval "$as_ac_var=yes" | |
5848 else | |
5849 echo "$as_me: failed program was:" >&5 | |
5850 cat conftest.$ac_ext >&5 | |
5851 eval "$as_ac_var=no" | |
5852 fi | |
5853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5854 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5855 echo "$as_me:5855: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 5856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5857 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 5858 cat >>confdefs.h <<EOF |
40056 | 5859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 5860 EOF |
5861 | |
5862 fi | |
5863 done | |
5864 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5865 echo "$as_me:5865: checking for working mmap" >&5 |
40056 | 5866 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
5867 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5868 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31417 | 5869 else |
5870 if test "$cross_compiling" = yes; then | |
5871 ac_cv_func_mmap_fixed_mapped=no | |
5872 else | |
40056 | 5873 cat >conftest.$ac_ext <<_ACEOF |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
5874 #line 5874 "configure" |
40056 | 5875 #include "confdefs.h" |
5876 $ac_includes_default | |
31417 | 5877 /* Thanks to Mike Haertel and Jim Avera for this test. |
5878 Here is a matrix of mmap possibilities: | |
5879 mmap private not fixed | |
5880 mmap private fixed at somewhere currently unmapped | |
5881 mmap private fixed at somewhere already mapped | |
5882 mmap shared not fixed | |
5883 mmap shared fixed at somewhere currently unmapped | |
5884 mmap shared fixed at somewhere already mapped | |
5885 For private mappings, we should verify that changes cannot be read() | |
5886 back from the file, nor mmap's back from the file at a different | |
5887 address. (There have been systems where private was not correctly | |
5888 implemented like the infamous i386 svr4.0, and systems where the | |
31512 | 5889 VM page cache was not coherent with the file system buffer cache |
31417 | 5890 like early versions of FreeBSD and possibly contemporary NetBSD.) |
5891 For shared mappings, we should conversely verify that changes get | |
45226 | 5892 propogated back to all the places they're supposed to be. |
31417 | 5893 |
5894 Grep wants private fixed already mapped. | |
5895 The main things grep needs to know about mmap are: | |
5896 * does it exist and is it safe to write into the mmap'd area | |
5897 * how to use it (BSD variants) */ | |
40056 | 5898 |
31417 | 5899 #include <fcntl.h> |
5900 #include <sys/mman.h> | |
5901 | |
40056 | 5902 #if !STDC_HEADERS && !HAVE_STDLIB_H |
31512 | 5903 char *malloc (); |
5904 #endif | |
5905 | |
31417 | 5906 /* This mess was copied from the GNU getpagesize.h. */ |
31512 | 5907 #if !HAVE_GETPAGESIZE |
31417 | 5908 /* Assume that all systems that can run configure have sys/param.h. */ |
31512 | 5909 # if !HAVE_SYS_PARAM_H |
31417 | 5910 # define HAVE_SYS_PARAM_H 1 |
5911 # endif | |
5912 | |
5913 # ifdef _SC_PAGESIZE | |
5914 # define getpagesize() sysconf(_SC_PAGESIZE) | |
5915 # else /* no _SC_PAGESIZE */ | |
31512 | 5916 # if HAVE_SYS_PARAM_H |
31417 | 5917 # include <sys/param.h> |
5918 # ifdef EXEC_PAGESIZE | |
5919 # define getpagesize() EXEC_PAGESIZE | |
5920 # else /* no EXEC_PAGESIZE */ | |
5921 # ifdef NBPG | |
5922 # define getpagesize() NBPG * CLSIZE | |
5923 # ifndef CLSIZE | |
5924 # define CLSIZE 1 | |
5925 # endif /* no CLSIZE */ | |
5926 # else /* no NBPG */ | |
5927 # ifdef NBPC | |
5928 # define getpagesize() NBPC | |
5929 # else /* no NBPC */ | |
5930 # ifdef PAGESIZE | |
5931 # define getpagesize() PAGESIZE | |
5932 # endif /* PAGESIZE */ | |
5933 # endif /* no NBPC */ | |
5934 # endif /* no NBPG */ | |
5935 # endif /* no EXEC_PAGESIZE */ | |
5936 # else /* no HAVE_SYS_PARAM_H */ | |
5937 # define getpagesize() 8192 /* punt totally */ | |
5938 # endif /* no HAVE_SYS_PARAM_H */ | |
5939 # endif /* no _SC_PAGESIZE */ | |
5940 | |
5941 #endif /* no HAVE_GETPAGESIZE */ | |
5942 | |
5943 int | |
31512 | 5944 main () |
31417 | 5945 { |
31512 | 5946 char *data, *data2, *data3; |
5947 int i, pagesize; | |
5948 int fd; | |
5949 | |
5950 pagesize = getpagesize (); | |
5951 | |
5952 /* First, make a file with some known garbage in it. */ | |
5953 data = (char *) malloc (pagesize); | |
5954 if (!data) | |
5955 exit (1); | |
5956 for (i = 0; i < pagesize; ++i) | |
5957 *(data + i) = rand (); | |
5958 umask (0); | |
40056 | 5959 fd = creat ("conftest.mmap", 0600); |
31512 | 5960 if (fd < 0) |
5961 exit (1); | |
5962 if (write (fd, data, pagesize) != pagesize) | |
5963 exit (1); | |
5964 close (fd); | |
5965 | |
5966 /* Next, try to mmap the file at a fixed address which already has | |
5967 something else allocated at it. If we can, also make sure that | |
5968 we see the same garbage. */ | |
40056 | 5969 fd = open ("conftest.mmap", O_RDWR); |
31512 | 5970 if (fd < 0) |
5971 exit (1); | |
5972 data2 = (char *) malloc (2 * pagesize); | |
5973 if (!data2) | |
5974 exit (1); | |
5975 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
5976 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5977 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5978 exit (1); | |
5979 for (i = 0; i < pagesize; ++i) | |
5980 if (*(data + i) != *(data2 + i)) | |
5981 exit (1); | |
5982 | |
5983 /* Finally, make sure that changes to the mapped area do not | |
5984 percolate back to the file as seen by read(). (This is a bug on | |
5985 some variants of i386 svr4.0.) */ | |
5986 for (i = 0; i < pagesize; ++i) | |
5987 *(data2 + i) = *(data2 + i) + 1; | |
5988 data3 = (char *) malloc (pagesize); | |
5989 if (!data3) | |
5990 exit (1); | |
5991 if (read (fd, data3, pagesize) != pagesize) | |
5992 exit (1); | |
5993 for (i = 0; i < pagesize; ++i) | |
5994 if (*(data + i) != *(data3 + i)) | |
5995 exit (1); | |
5996 close (fd); | |
5997 exit (0); | |
31417 | 5998 } |
40056 | 5999 _ACEOF |
6000 rm -f conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6001 if { (eval echo "$as_me:6001: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6002 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6003 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6004 echo "$as_me:6004: \$? = $ac_status" >&5 |
45668 | 6005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6006 { (eval echo "$as_me:6006: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6007 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6008 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6009 echo "$as_me:6009: \$? = $ac_status" >&5 |
40056 | 6010 (exit $ac_status); }; }; then |
31417 | 6011 ac_cv_func_mmap_fixed_mapped=yes |
6012 else | |
40056 | 6013 echo "$as_me: program exited with status $ac_status" >&5 |
6014 echo "$as_me: failed program was:" >&5 | |
6015 cat conftest.$ac_ext >&5 | |
6016 ac_cv_func_mmap_fixed_mapped=no | |
6017 fi | |
6018 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6019 fi | |
6020 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6021 echo "$as_me:6021: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
40056 | 6022 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
31417 | 6023 if test $ac_cv_func_mmap_fixed_mapped = yes; then |
40056 | 6024 |
45226 | 6025 cat >>confdefs.h <<\EOF |
31417 | 6026 #define HAVE_MMAP 1 |
45226 | 6027 EOF |
31417 | 6028 |
6029 fi | |
40056 | 6030 rm -f conftest.mmap |
31417 | 6031 |
31607 | 6032 if test $use_mmap_for_buffers = yes; then |
6033 REL_ALLOC=no | |
31417 | 6034 fi |
6035 | |
25897 | 6036 LIBS="$libsrc_libs $LIBS" |
6037 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6038 echo "$as_me:6038: checking for dnet_ntoa in -ldnet" >&5 |
40056 | 6039 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
6040 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
6041 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6042 else | |
6043 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6044 LIBS="-ldnet $LIBS" |
40056 | 6045 cat >conftest.$ac_ext <<_ACEOF |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6046 #line 6046 "configure" |
40056 | 6047 #include "confdefs.h" |
6048 | |
25897 | 6049 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6050 #ifdef __cplusplus |
6051 extern "C" | |
6052 #endif | |
25897 | 6053 /* We use char because int might match the return type of a gcc2 |
40056 | 6054 builtin and then its argument prototype would still apply. */ |
6055 char dnet_ntoa (); | |
6056 int | |
6057 main () | |
6058 { | |
6059 dnet_ntoa (); | |
6060 ; | |
6061 return 0; | |
6062 } | |
6063 _ACEOF | |
6064 rm -f conftest.$ac_objext conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6065 if { (eval echo "$as_me:6065: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6066 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6067 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6068 echo "$as_me:6068: \$? = $ac_status" >&5 |
44493 | 6069 (exit $ac_status); } && |
6070 { ac_try='test -s conftest$ac_exeext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6071 { (eval echo "$as_me:6071: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6072 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6073 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6074 echo "$as_me:6074: \$? = $ac_status" >&5 |
40056 | 6075 (exit $ac_status); }; }; then |
6076 ac_cv_lib_dnet_dnet_ntoa=yes | |
6077 else | |
6078 echo "$as_me: failed program was:" >&5 | |
6079 cat conftest.$ac_ext >&5 | |
6080 ac_cv_lib_dnet_dnet_ntoa=no | |
6081 fi | |
6082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6083 LIBS=$ac_check_lib_save_LIBS | |
6084 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6085 echo "$as_me:6085: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
40056 | 6086 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
6087 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
45226 | 6088 cat >>confdefs.h <<EOF |
40056 | 6089 #define HAVE_LIBDNET 1 |
45226 | 6090 EOF |
25897 | 6091 |
6092 LIBS="-ldnet $LIBS" | |
6093 | |
40056 | 6094 fi |
6095 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6096 echo "$as_me:6096: checking for main in -lXbsd" >&5 |
40056 | 6097 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
6098 if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
6099 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6100 else | |
6101 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6102 LIBS="-lXbsd $LIBS" |
40056 | 6103 cat >conftest.$ac_ext <<_ACEOF |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6104 #line 6104 "configure" |
45226 | 6105 #include "confdefs.h" |
6106 | |
40056 | 6107 int |
6108 main () | |
6109 { | |
6110 main (); | |
6111 ; | |
6112 return 0; | |
6113 } | |
6114 _ACEOF | |
6115 rm -f conftest.$ac_objext conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6116 if { (eval echo "$as_me:6116: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6117 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6118 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6119 echo "$as_me:6119: \$? = $ac_status" >&5 |
44493 | 6120 (exit $ac_status); } && |
6121 { ac_try='test -s conftest$ac_exeext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6122 { (eval echo "$as_me:6122: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6123 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6124 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6125 echo "$as_me:6125: \$? = $ac_status" >&5 |
40056 | 6126 (exit $ac_status); }; }; then |
6127 ac_cv_lib_Xbsd_main=yes | |
6128 else | |
6129 echo "$as_me: failed program was:" >&5 | |
6130 cat conftest.$ac_ext >&5 | |
6131 ac_cv_lib_Xbsd_main=no | |
6132 fi | |
6133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6134 LIBS=$ac_check_lib_save_LIBS | |
6135 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6136 echo "$as_me:6136: result: $ac_cv_lib_Xbsd_main" >&5 |
40056 | 6137 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
6138 if test $ac_cv_lib_Xbsd_main = yes; then | |
25897 | 6139 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
40056 | 6140 fi |
6141 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6142 echo "$as_me:6142: checking for cma_open in -lpthreads" >&5 |
40056 | 6143 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
6144 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
6145 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6146 else | |
6147 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6148 LIBS="-lpthreads $LIBS" |
40056 | 6149 cat >conftest.$ac_ext <<_ACEOF |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6150 #line 6150 "configure" |
40056 | 6151 #include "confdefs.h" |
6152 | |
25897 | 6153 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6154 #ifdef __cplusplus |
6155 extern "C" | |
6156 #endif | |
25897 | 6157 /* We use char because int might match the return type of a gcc2 |
40056 | 6158 builtin and then its argument prototype would still apply. */ |
6159 char cma_open (); | |
6160 int | |
6161 main () | |
6162 { | |
6163 cma_open (); | |
6164 ; | |
6165 return 0; | |
6166 } | |
6167 _ACEOF | |
6168 rm -f conftest.$ac_objext conftest$ac_exeext | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6169 if { (eval echo "$as_me:6169: \"$ac_link\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6170 (eval $ac_link) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6171 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6172 echo "$as_me:6172: \$? = $ac_status" >&5 |
44493 | 6173 (exit $ac_status); } && |
6174 { ac_try='test -s conftest$ac_exeext' | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6175 { (eval echo "$as_me:6175: \"$ac_try\"") >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6176 (eval $ac_try) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6177 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6178 echo "$as_me:6178: \$? = $ac_status" >&5 |
40056 | 6179 (exit $ac_status); }; }; then |
6180 ac_cv_lib_pthreads_cma_open=yes | |
6181 else | |
6182 echo "$as_me: failed program was:" >&5 | |
6183 cat conftest.$ac_ext >&5 | |
6184 ac_cv_lib_pthreads_cma_open=no | |
6185 fi | |
6186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6187 LIBS=$ac_check_lib_save_LIBS | |
6188 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6189 echo "$as_me:6189: result: $ac_cv_lib_pthreads_cma_open" >&5 |
40056 | 6190 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
6191 if test $ac_cv_lib_pthreads_cma_open = yes; then | |
45226 | 6192 cat >>confdefs.h <<EOF |
40056 | 6193 #define HAVE_LIBPTHREADS 1 |
45226 | 6194 EOF |
25897 | 6195 |
6196 LIBS="-lpthreads $LIBS" | |
6197 | |
40056 | 6198 fi |
6199 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6200 echo "$as_me:6200: checking for XFree86 in /usr/X386" >&5 |
40056 | 6201 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
25897 | 6202 if test -d /usr/X386/include; then |
6203 HAVE_XFREE386=yes | |
6204 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
6205 else | |
6206 HAVE_XFREE386=no | |
6207 fi | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6208 echo "$as_me:6208: result: $HAVE_XFREE386" >&5 |
40056 | 6209 echo "${ECHO_T}$HAVE_XFREE386" >&6 |
25897 | 6210 |
47560 | 6211 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
6212 # used for the tests that follow. We set them back to REAL_CFLAGS and | |
6213 # REAL_CPPFLAGS later on. | |
25897 | 6214 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6215 REAL_CPPFLAGS="$CPPFLAGS" |
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6216 |
25897 | 6217 if test "${HAVE_X11}" = "yes"; then |
6218 DEFS="$C_SWITCH_X_SITE $DEFS" | |
6219 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
6220 LIBS="$LIBX $LIBS" | |
6221 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6222 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
25897 | 6223 |
6224 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
6225 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
6226 # but it's more convenient here to set LD_RUN_PATH | |
6227 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
6228 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
6229 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
6230 export LD_RUN_PATH | |
6231 fi | |
6232 | |
6233 if test "${opsys}" = "gnu-linux"; then | |
47560 | 6234 echo "$as_me:6234: checking whether X on GNU/Linux needs -b to link" >&5 |
40056 | 6235 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
6236 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 6237 #line 6237 "configure" |
45226 | 6238 #include "confdefs.h" |
6239 | |
40056 | 6240 int |
6241 main () | |
6242 { | |
25897 | 6243 XOpenDisplay ("foo"); |
40056 | 6244 ; |
6245 return 0; | |
6246 } | |
6247 _ACEOF | |
6248 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6249 if { (eval echo "$as_me:6249: \"$ac_link\"") >&5 |
6250 (eval $ac_link) 2>&5 | |
6251 ac_status=$? | |
6252 echo "$as_me:6252: \$? = $ac_status" >&5 | |
44493 | 6253 (exit $ac_status); } && |
6254 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6255 { (eval echo "$as_me:6255: \"$ac_try\"") >&5 |
6256 (eval $ac_try) 2>&5 | |
6257 ac_status=$? | |
6258 echo "$as_me:6258: \$? = $ac_status" >&5 | |
40056 | 6259 (exit $ac_status); }; }; then |
25897 | 6260 xlinux_first_failure=no |
6261 else | |
40056 | 6262 echo "$as_me: failed program was:" >&5 |
6263 cat conftest.$ac_ext >&5 | |
6264 xlinux_first_failure=yes | |
6265 fi | |
6266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6267 if test "${xlinux_first_failure}" = "yes"; then |
6268 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
6269 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
6270 OLD_CPPFLAGS="$CPPFLAGS" | |
6271 OLD_LIBS="$LIBS" | |
6272 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
6273 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
6274 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
6275 LIBS="$LIBS -b i486-linuxaout" | |
40056 | 6276 cat >conftest.$ac_ext <<_ACEOF |
47560 | 6277 #line 6277 "configure" |
45226 | 6278 #include "confdefs.h" |
6279 | |
40056 | 6280 int |
6281 main () | |
6282 { | |
25897 | 6283 XOpenDisplay ("foo"); |
40056 | 6284 ; |
6285 return 0; | |
6286 } | |
6287 _ACEOF | |
6288 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6289 if { (eval echo "$as_me:6289: \"$ac_link\"") >&5 |
6290 (eval $ac_link) 2>&5 | |
6291 ac_status=$? | |
6292 echo "$as_me:6292: \$? = $ac_status" >&5 | |
44493 | 6293 (exit $ac_status); } && |
6294 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6295 { (eval echo "$as_me:6295: \"$ac_try\"") >&5 |
6296 (eval $ac_try) 2>&5 | |
6297 ac_status=$? | |
6298 echo "$as_me:6298: \$? = $ac_status" >&5 | |
40056 | 6299 (exit $ac_status); }; }; then |
25897 | 6300 xlinux_second_failure=no |
6301 else | |
40056 | 6302 echo "$as_me: failed program was:" >&5 |
6303 cat conftest.$ac_ext >&5 | |
6304 xlinux_second_failure=yes | |
6305 fi | |
6306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6307 if test "${xlinux_second_failure}" = "yes"; then |
6308 # If we get the same failure with -b, there is no use adding -b. | |
6309 # So take it out. This plays safe. | |
6310 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
6311 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
6312 CPPFLAGS="$OLD_CPPFLAGS" | |
6313 LIBS="$OLD_LIBS" | |
47560 | 6314 echo "$as_me:6314: result: no" >&5 |
40056 | 6315 echo "${ECHO_T}no" >&6 |
25897 | 6316 else |
47560 | 6317 echo "$as_me:6317: result: yes" >&5 |
40056 | 6318 echo "${ECHO_T}yes" >&6 |
25897 | 6319 fi |
6320 else | |
47560 | 6321 echo "$as_me:6321: result: no" >&5 |
40056 | 6322 echo "${ECHO_T}no" >&6 |
25897 | 6323 fi |
6324 fi | |
6325 | |
35196 | 6326 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
6327 # header files included from there. | |
47560 | 6328 echo "$as_me:6328: checking for Xkb" >&5 |
40056 | 6329 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
6330 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 6331 #line 6331 "configure" |
35196 | 6332 #include "confdefs.h" |
6333 #include <X11/Xlib.h> | |
6334 #include <X11/XKBlib.h> | |
40056 | 6335 int |
6336 main () | |
6337 { | |
35196 | 6338 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
40056 | 6339 ; |
6340 return 0; | |
6341 } | |
6342 _ACEOF | |
6343 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6344 if { (eval echo "$as_me:6344: \"$ac_link\"") >&5 |
6345 (eval $ac_link) 2>&5 | |
6346 ac_status=$? | |
6347 echo "$as_me:6347: \$? = $ac_status" >&5 | |
44493 | 6348 (exit $ac_status); } && |
6349 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6350 { (eval echo "$as_me:6350: \"$ac_try\"") >&5 |
6351 (eval $ac_try) 2>&5 | |
6352 ac_status=$? | |
6353 echo "$as_me:6353: \$? = $ac_status" >&5 | |
40056 | 6354 (exit $ac_status); }; }; then |
35196 | 6355 emacs_xkb=yes |
6356 else | |
40056 | 6357 echo "$as_me: failed program was:" >&5 |
6358 cat conftest.$ac_ext >&5 | |
6359 emacs_xkb=no | |
6360 fi | |
6361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
47560 | 6362 echo "$as_me:6362: result: $emacs_xkb" >&5 |
40056 | 6363 echo "${ECHO_T}$emacs_xkb" >&6 |
35196 | 6364 if test $emacs_xkb = yes; then |
44569 | 6365 |
45226 | 6366 cat >>confdefs.h <<\EOF |
35196 | 6367 #define HAVE_XKBGETKEYBOARD 1 |
45226 | 6368 EOF |
6369 | |
6370 fi | |
35196 | 6371 |
40056 | 6372 for ac_func in XrmSetDatabase XScreenResourceString \ |
25897 | 6373 XScreenNumberOfScreen XSetWMProtocols |
6374 do | |
40056 | 6375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
47560 | 6376 echo "$as_me:6376: checking for $ac_func" >&5 |
40056 | 6377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6378 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6379 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6380 else | |
6381 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 6382 #line 6382 "configure" |
25897 | 6383 #include "confdefs.h" |
6384 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 6385 which can conflict with char $ac_func (); below. */ |
25897 | 6386 #include <assert.h> |
6387 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 6388 #ifdef __cplusplus |
6389 extern "C" | |
6390 #endif | |
25897 | 6391 /* We use char because int might match the return type of a gcc2 |
40056 | 6392 builtin and then its argument prototype would still apply. */ |
6393 char $ac_func (); | |
6394 char (*f) (); | |
6395 | |
6396 int | |
6397 main () | |
6398 { | |
25897 | 6399 /* The GNU C library defines this for functions which it implements |
6400 to always fail with ENOSYS. Some functions are actually named | |
6401 something starting with __ and the normal name is an alias. */ | |
6402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6403 choke me | |
6404 #else | |
40056 | 6405 f = $ac_func; |
6406 #endif | |
6407 | |
6408 ; | |
6409 return 0; | |
6410 } | |
6411 _ACEOF | |
6412 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6413 if { (eval echo "$as_me:6413: \"$ac_link\"") >&5 |
6414 (eval $ac_link) 2>&5 | |
6415 ac_status=$? | |
6416 echo "$as_me:6416: \$? = $ac_status" >&5 | |
44493 | 6417 (exit $ac_status); } && |
6418 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6419 { (eval echo "$as_me:6419: \"$ac_try\"") >&5 |
6420 (eval $ac_try) 2>&5 | |
6421 ac_status=$? | |
6422 echo "$as_me:6422: \$? = $ac_status" >&5 | |
40056 | 6423 (exit $ac_status); }; }; then |
6424 eval "$as_ac_var=yes" | |
6425 else | |
6426 echo "$as_me: failed program was:" >&5 | |
6427 cat conftest.$ac_ext >&5 | |
6428 eval "$as_ac_var=no" | |
6429 fi | |
6430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6431 fi | |
47560 | 6432 echo "$as_me:6432: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 6433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6434 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 6435 cat >>confdefs.h <<EOF |
40056 | 6436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 6437 EOF |
40056 | 6438 |
25897 | 6439 fi |
6440 done | |
6441 | |
6442 fi | |
6443 | |
6444 if test "${window_system}" = "x11"; then | |
47560 | 6445 echo "$as_me:6445: checking X11 version 6" >&5 |
40056 | 6446 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
6447 if test "${emacs_cv_x11_version_6+set}" = set; then | |
6448 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6449 else | |
6450 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 6451 #line 6451 "configure" |
25897 | 6452 #include "confdefs.h" |
6453 #include <X11/Xlib.h> | |
40056 | 6454 int |
6455 main () | |
6456 { | |
25897 | 6457 #if XlibSpecificationRelease < 6 |
6458 fail; | |
6459 #endif | |
6460 | |
40056 | 6461 ; |
6462 return 0; | |
6463 } | |
6464 _ACEOF | |
6465 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6466 if { (eval echo "$as_me:6466: \"$ac_link\"") >&5 |
6467 (eval $ac_link) 2>&5 | |
6468 ac_status=$? | |
6469 echo "$as_me:6469: \$? = $ac_status" >&5 | |
44493 | 6470 (exit $ac_status); } && |
6471 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6472 { (eval echo "$as_me:6472: \"$ac_try\"") >&5 |
6473 (eval $ac_try) 2>&5 | |
6474 ac_status=$? | |
6475 echo "$as_me:6475: \$? = $ac_status" >&5 | |
40056 | 6476 (exit $ac_status); }; }; then |
25897 | 6477 emacs_cv_x11_version_6=yes |
6478 else | |
40056 | 6479 echo "$as_me: failed program was:" >&5 |
6480 cat conftest.$ac_ext >&5 | |
6481 emacs_cv_x11_version_6=no | |
6482 fi | |
6483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6484 fi |
6485 | |
6486 if test $emacs_cv_x11_version_6 = yes; then | |
47560 | 6487 echo "$as_me:6487: result: 6 or newer" >&5 |
40056 | 6488 echo "${ECHO_T}6 or newer" >&6 |
44569 | 6489 |
45226 | 6490 cat >>confdefs.h <<\EOF |
25897 | 6491 #define HAVE_X11R6 1 |
45226 | 6492 EOF |
44493 | 6493 |
6494 else | |
47560 | 6495 echo "$as_me:6495: result: before 6" >&5 |
40056 | 6496 echo "${ECHO_T}before 6" >&6 |
25897 | 6497 fi |
6498 fi | |
6499 | |
6500 if test "${window_system}" = "x11"; then | |
47560 | 6501 echo "$as_me:6501: checking X11 version 5" >&5 |
40056 | 6502 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
6503 if test "${emacs_cv_x11_version_5+set}" = set; then | |
6504 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6505 else | |
6506 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 6507 #line 6507 "configure" |
25897 | 6508 #include "confdefs.h" |
6509 #include <X11/Xlib.h> | |
40056 | 6510 int |
6511 main () | |
6512 { | |
25897 | 6513 #if XlibSpecificationRelease < 5 |
6514 fail; | |
6515 #endif | |
6516 | |
40056 | 6517 ; |
6518 return 0; | |
6519 } | |
6520 _ACEOF | |
6521 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6522 if { (eval echo "$as_me:6522: \"$ac_link\"") >&5 |
6523 (eval $ac_link) 2>&5 | |
6524 ac_status=$? | |
6525 echo "$as_me:6525: \$? = $ac_status" >&5 | |
44493 | 6526 (exit $ac_status); } && |
6527 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6528 { (eval echo "$as_me:6528: \"$ac_try\"") >&5 |
6529 (eval $ac_try) 2>&5 | |
6530 ac_status=$? | |
6531 echo "$as_me:6531: \$? = $ac_status" >&5 | |
40056 | 6532 (exit $ac_status); }; }; then |
25897 | 6533 emacs_cv_x11_version_5=yes |
6534 else | |
40056 | 6535 echo "$as_me: failed program was:" >&5 |
6536 cat conftest.$ac_ext >&5 | |
6537 emacs_cv_x11_version_5=no | |
6538 fi | |
6539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6540 fi |
6541 | |
6542 if test $emacs_cv_x11_version_5 = yes; then | |
47560 | 6543 echo "$as_me:6543: result: 5 or newer" >&5 |
40056 | 6544 echo "${ECHO_T}5 or newer" >&6 |
25897 | 6545 HAVE_X11R5=yes |
44569 | 6546 |
45226 | 6547 cat >>confdefs.h <<\EOF |
25897 | 6548 #define HAVE_X11R5 1 |
45226 | 6549 EOF |
25897 | 6550 |
6551 else | |
6552 HAVE_X11R5=no | |
47560 | 6553 echo "$as_me:6553: result: before 5" >&5 |
40056 | 6554 echo "${ECHO_T}before 5" >&6 |
25897 | 6555 fi |
6556 fi | |
6557 | |
6558 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
6559 if test x"${HAVE_X11R5}" = xyes; then | |
47560 | 6560 echo "$as_me:6560: checking X11 version 5 with Xaw" >&5 |
40056 | 6561 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
6562 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
6563 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6564 else | |
6565 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 6566 #line 6566 "configure" |
25897 | 6567 #include "confdefs.h" |
6568 | |
6569 #include <X11/Intrinsic.h> | |
6570 #include <X11/Xaw/Simple.h> | |
44493 | 6571 int |
6572 main () | |
6573 { | |
6574 | |
6575 ; | |
6576 return 0; | |
6577 } | |
6578 _ACEOF | |
6579 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6580 if { (eval echo "$as_me:6580: \"$ac_link\"") >&5 |
6581 (eval $ac_link) 2>&5 | |
6582 ac_status=$? | |
6583 echo "$as_me:6583: \$? = $ac_status" >&5 | |
44493 | 6584 (exit $ac_status); } && |
6585 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6586 { (eval echo "$as_me:6586: \"$ac_try\"") >&5 |
6587 (eval $ac_try) 2>&5 | |
6588 ac_status=$? | |
6589 echo "$as_me:6589: \$? = $ac_status" >&5 | |
40056 | 6590 (exit $ac_status); }; }; then |
25897 | 6591 emacs_cv_x11_version_5_with_xaw=yes |
6592 else | |
40056 | 6593 echo "$as_me: failed program was:" >&5 |
6594 cat conftest.$ac_ext >&5 | |
6595 emacs_cv_x11_version_5_with_xaw=no | |
6596 fi | |
6597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6598 fi |
6599 | |
6600 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
47560 | 6601 echo "$as_me:6601: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
40056 | 6602 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
25897 | 6603 USE_X_TOOLKIT=LUCID |
6604 else | |
47560 | 6605 echo "$as_me:6605: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
40056 | 6606 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
25897 | 6607 USE_X_TOOLKIT=none |
6608 fi | |
6609 else | |
6610 USE_X_TOOLKIT=none | |
6611 fi | |
6612 fi | |
6613 | |
6614 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
6615 | |
6616 if test "${USE_X_TOOLKIT}" != "none"; then | |
47560 | 6617 echo "$as_me:6617: checking X11 toolkit version" >&5 |
40056 | 6618 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
6619 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
6620 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6621 else | |
6622 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 6623 #line 6623 "configure" |
25897 | 6624 #include "confdefs.h" |
6625 #include <X11/Intrinsic.h> | |
40056 | 6626 int |
6627 main () | |
6628 { | |
25897 | 6629 #if XtSpecificationRelease < 6 |
6630 fail; | |
6631 #endif | |
6632 | |
40056 | 6633 ; |
6634 return 0; | |
6635 } | |
6636 _ACEOF | |
6637 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6638 if { (eval echo "$as_me:6638: \"$ac_link\"") >&5 |
6639 (eval $ac_link) 2>&5 | |
6640 ac_status=$? | |
6641 echo "$as_me:6641: \$? = $ac_status" >&5 | |
44493 | 6642 (exit $ac_status); } && |
6643 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6644 { (eval echo "$as_me:6644: \"$ac_try\"") >&5 |
6645 (eval $ac_try) 2>&5 | |
6646 ac_status=$? | |
6647 echo "$as_me:6647: \$? = $ac_status" >&5 | |
40056 | 6648 (exit $ac_status); }; }; then |
25897 | 6649 emacs_cv_x11_toolkit_version_6=yes |
6650 else | |
40056 | 6651 echo "$as_me: failed program was:" >&5 |
6652 cat conftest.$ac_ext >&5 | |
6653 emacs_cv_x11_toolkit_version_6=no | |
6654 fi | |
6655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6656 fi |
6657 | |
6658 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
6659 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
47560 | 6660 echo "$as_me:6660: result: 6 or newer" >&5 |
40056 | 6661 echo "${ECHO_T}6 or newer" >&6 |
44569 | 6662 |
45226 | 6663 cat >>confdefs.h <<\EOF |
25897 | 6664 #define HAVE_X11XTR6 1 |
45226 | 6665 EOF |
44493 | 6666 |
6667 else | |
47560 | 6668 echo "$as_me:6668: result: before 6" >&5 |
40056 | 6669 echo "${ECHO_T}before 6" >&6 |
25897 | 6670 fi |
6671 | |
6672 OLDLIBS="$LIBS" | |
6673 if test x$HAVE_X11XTR6 = xyes; then | |
6674 LIBS="-lXt -lSM -lICE $LIBS" | |
6675 else | |
6676 LIBS="-lXt $LIBS" | |
6677 fi | |
40056 | 6678 |
47560 | 6679 echo "$as_me:6679: checking for XmuConvertStandardSelection in -lXmu" >&5 |
40056 | 6680 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
6681 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
6682 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6683 else | |
6684 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6685 LIBS="-lXmu $LIBS" |
40056 | 6686 cat >conftest.$ac_ext <<_ACEOF |
47560 | 6687 #line 6687 "configure" |
40056 | 6688 #include "confdefs.h" |
6689 | |
25897 | 6690 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6691 #ifdef __cplusplus |
6692 extern "C" | |
6693 #endif | |
25897 | 6694 /* We use char because int might match the return type of a gcc2 |
40056 | 6695 builtin and then its argument prototype would still apply. */ |
6696 char XmuConvertStandardSelection (); | |
6697 int | |
6698 main () | |
6699 { | |
6700 XmuConvertStandardSelection (); | |
6701 ; | |
6702 return 0; | |
6703 } | |
6704 _ACEOF | |
6705 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6706 if { (eval echo "$as_me:6706: \"$ac_link\"") >&5 |
6707 (eval $ac_link) 2>&5 | |
6708 ac_status=$? | |
6709 echo "$as_me:6709: \$? = $ac_status" >&5 | |
44493 | 6710 (exit $ac_status); } && |
6711 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6712 { (eval echo "$as_me:6712: \"$ac_try\"") >&5 |
6713 (eval $ac_try) 2>&5 | |
6714 ac_status=$? | |
6715 echo "$as_me:6715: \$? = $ac_status" >&5 | |
40056 | 6716 (exit $ac_status); }; }; then |
6717 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
6718 else | |
6719 echo "$as_me: failed program was:" >&5 | |
6720 cat conftest.$ac_ext >&5 | |
6721 ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
6722 fi | |
6723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6724 LIBS=$ac_check_lib_save_LIBS | |
6725 fi | |
47560 | 6726 echo "$as_me:6726: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
40056 | 6727 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
6728 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
45226 | 6729 cat >>confdefs.h <<EOF |
40056 | 6730 #define HAVE_LIBXMU 1 |
45226 | 6731 EOF |
25897 | 6732 |
6733 LIBS="-lXmu $LIBS" | |
6734 | |
6735 fi | |
6736 | |
35206 | 6737 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
6738 fi | |
6739 | |
6740 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
6741 if test "${HAVE_X11}" = "yes"; then | |
6742 if test "${USE_X_TOOLKIT}" != "none"; then | |
40056 | 6743 |
47560 | 6744 echo "$as_me:6744: checking for XShapeQueryExtension in -lXext" >&5 |
40056 | 6745 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
6746 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
6747 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6748 else | |
6749 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6750 LIBS="-lXext $LIBS" |
40056 | 6751 cat >conftest.$ac_ext <<_ACEOF |
47560 | 6752 #line 6752 "configure" |
40056 | 6753 #include "confdefs.h" |
6754 | |
35206 | 6755 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6756 #ifdef __cplusplus |
6757 extern "C" | |
6758 #endif | |
35206 | 6759 /* We use char because int might match the return type of a gcc2 |
40056 | 6760 builtin and then its argument prototype would still apply. */ |
6761 char XShapeQueryExtension (); | |
6762 int | |
6763 main () | |
6764 { | |
6765 XShapeQueryExtension (); | |
6766 ; | |
6767 return 0; | |
6768 } | |
6769 _ACEOF | |
6770 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6771 if { (eval echo "$as_me:6771: \"$ac_link\"") >&5 |
6772 (eval $ac_link) 2>&5 | |
6773 ac_status=$? | |
6774 echo "$as_me:6774: \$? = $ac_status" >&5 | |
44493 | 6775 (exit $ac_status); } && |
6776 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6777 { (eval echo "$as_me:6777: \"$ac_try\"") >&5 |
6778 (eval $ac_try) 2>&5 | |
6779 ac_status=$? | |
6780 echo "$as_me:6780: \$? = $ac_status" >&5 | |
40056 | 6781 (exit $ac_status); }; }; then |
6782 ac_cv_lib_Xext_XShapeQueryExtension=yes | |
6783 else | |
6784 echo "$as_me: failed program was:" >&5 | |
6785 cat conftest.$ac_ext >&5 | |
6786 ac_cv_lib_Xext_XShapeQueryExtension=no | |
6787 fi | |
6788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6789 LIBS=$ac_check_lib_save_LIBS | |
6790 fi | |
47560 | 6791 echo "$as_me:6791: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
40056 | 6792 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
6793 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
45226 | 6794 cat >>confdefs.h <<EOF |
40056 | 6795 #define HAVE_LIBXEXT 1 |
45226 | 6796 EOF |
35206 | 6797 |
6798 LIBS="-lXext $LIBS" | |
6799 | |
6800 fi | |
6801 | |
6802 fi | |
25897 | 6803 fi |
6804 | |
6805 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
47560 | 6806 echo "$as_me:6806: checking for LessTif where some systems put it" >&5 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6807 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6808 if test "${emacs_cv_lesstif+set}" = set; then |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6809 echo $ECHO_N "(cached) $ECHO_C" >&6 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6810 else |
47560 | 6811 # We put this in CFLAGS temporarily to precede other -I options |
6812 # that might be in CFLAGS temporarily. | |
6813 # We put this in CPPFLAGS where it precedes the other -I options. | |
6814 OLD_CPPFLAGS=$CPPFLAGS | |
6815 OLD_CFLAGS=$CFLAGS | |
6816 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
6817 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
6818 cat >conftest.$ac_ext <<_ACEOF | |
6819 #line 6819 "configure" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6820 #include "confdefs.h" |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6821 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6822 int |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6823 main () |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6824 { |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6825 int x = 5; |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6826 ; |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6827 return 0; |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6828 } |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6829 _ACEOF |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6830 rm -f conftest.$ac_objext |
47560 | 6831 if { (eval echo "$as_me:6831: \"$ac_compile\"") >&5 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6832 (eval $ac_compile) 2>&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6833 ac_status=$? |
47560 | 6834 echo "$as_me:6834: \$? = $ac_status" >&5 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6835 (exit $ac_status); } && |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6836 { ac_try='test -s conftest.$ac_objext' |
47560 | 6837 { (eval echo "$as_me:6837: \"$ac_try\"") >&5 |
6838 (eval $ac_try) 2>&5 | |
6839 ac_status=$? | |
6840 echo "$as_me:6840: \$? = $ac_status" >&5 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6841 (exit $ac_status); }; }; then |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6842 emacs_cv_lesstif=yes |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6843 else |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6844 echo "$as_me: failed program was:" >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6845 cat conftest.$ac_ext >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6846 emacs_cv_lesstif=no |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6847 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6848 rm -f conftest.$ac_objext conftest.$ac_ext |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6849 fi |
47560 | 6850 echo "$as_me:6850: result: $emacs_cv_lesstif" >&5 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6851 echo "${ECHO_T}$emacs_cv_lesstif" >&6 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6852 if test $emacs_cv_lesstif = yes; then |
47560 | 6853 # Make sure this -I option remains in CPPFLAGS after it is set |
6854 # back to REAL_CPPFLAGS. | |
6855 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
6856 # have those other -I options anyway. Ultimately, having this | |
6857 # directory ultimately in CPPFLAGS will be enough. | |
6858 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
6859 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
47560 | 6860 else |
6861 CFLAGS=$OLD_CFLAGS | |
6862 CPPFLAGS=$OLD_CPPFLAGS | |
6863 fi | |
6864 echo "$as_me:6864: checking for Motif version 2.1" >&5 | |
40056 | 6865 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
6866 if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
6867 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6868 else | |
6869 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 6870 #line 6870 "configure" |
25897 | 6871 #include "confdefs.h" |
6872 #include <Xm/Xm.h> | |
40056 | 6873 int |
6874 main () | |
6875 { | |
25897 | 6876 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
6877 int x = 5; | |
6878 #else | |
6879 Motif version prior to 2.1. | |
6880 #endif | |
40056 | 6881 ; |
6882 return 0; | |
6883 } | |
6884 _ACEOF | |
6885 rm -f conftest.$ac_objext | |
47560 | 6886 if { (eval echo "$as_me:6886: \"$ac_compile\"") >&5 |
44493 | 6887 (eval $ac_compile) 2>&5 |
6888 ac_status=$? | |
47560 | 6889 echo "$as_me:6889: \$? = $ac_status" >&5 |
44493 | 6890 (exit $ac_status); } && |
6891 { ac_try='test -s conftest.$ac_objext' | |
47560 | 6892 { (eval echo "$as_me:6892: \"$ac_try\"") >&5 |
6893 (eval $ac_try) 2>&5 | |
6894 ac_status=$? | |
6895 echo "$as_me:6895: \$? = $ac_status" >&5 | |
40056 | 6896 (exit $ac_status); }; }; then |
25897 | 6897 emacs_cv_motif_version_2_1=yes |
6898 else | |
40056 | 6899 echo "$as_me: failed program was:" >&5 |
6900 cat conftest.$ac_ext >&5 | |
6901 emacs_cv_motif_version_2_1=no | |
6902 fi | |
6903 rm -f conftest.$ac_objext conftest.$ac_ext | |
6904 fi | |
47560 | 6905 echo "$as_me:6905: result: $emacs_cv_motif_version_2_1" >&5 |
40056 | 6906 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
25897 | 6907 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
6908 if test $emacs_cv_motif_version_2_1 = yes; then | |
34431 | 6909 HAVE_LIBXP=no |
44569 | 6910 |
45226 | 6911 cat >>confdefs.h <<\EOF |
25897 | 6912 #define HAVE_MOTIF_2_1 1 |
45226 | 6913 EOF |
6914 | |
47560 | 6915 echo "$as_me:6915: checking for XpCreateContext in -lXp" >&5 |
40056 | 6916 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
6917 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
6918 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6919 else | |
6920 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6921 LIBS="-lXp $LIBS" |
40056 | 6922 cat >conftest.$ac_ext <<_ACEOF |
47560 | 6923 #line 6923 "configure" |
40056 | 6924 #include "confdefs.h" |
6925 | |
25897 | 6926 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6927 #ifdef __cplusplus |
6928 extern "C" | |
6929 #endif | |
25897 | 6930 /* We use char because int might match the return type of a gcc2 |
40056 | 6931 builtin and then its argument prototype would still apply. */ |
6932 char XpCreateContext (); | |
6933 int | |
6934 main () | |
6935 { | |
6936 XpCreateContext (); | |
6937 ; | |
6938 return 0; | |
6939 } | |
6940 _ACEOF | |
6941 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 6942 if { (eval echo "$as_me:6942: \"$ac_link\"") >&5 |
6943 (eval $ac_link) 2>&5 | |
6944 ac_status=$? | |
6945 echo "$as_me:6945: \$? = $ac_status" >&5 | |
44493 | 6946 (exit $ac_status); } && |
6947 { ac_try='test -s conftest$ac_exeext' | |
47560 | 6948 { (eval echo "$as_me:6948: \"$ac_try\"") >&5 |
6949 (eval $ac_try) 2>&5 | |
6950 ac_status=$? | |
6951 echo "$as_me:6951: \$? = $ac_status" >&5 | |
40056 | 6952 (exit $ac_status); }; }; then |
6953 ac_cv_lib_Xp_XpCreateContext=yes | |
6954 else | |
6955 echo "$as_me: failed program was:" >&5 | |
6956 cat conftest.$ac_ext >&5 | |
6957 ac_cv_lib_Xp_XpCreateContext=no | |
6958 fi | |
6959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6960 LIBS=$ac_check_lib_save_LIBS | |
6961 fi | |
47560 | 6962 echo "$as_me:6962: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
40056 | 6963 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
6964 if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
29906 | 6965 HAVE_LIBXP=yes |
25897 | 6966 fi |
6967 | |
29906 | 6968 if test ${HAVE_LIBXP} = yes; then |
44569 | 6969 |
45226 | 6970 cat >>confdefs.h <<\EOF |
29906 | 6971 #define HAVE_LIBXP 1 |
45226 | 6972 EOF |
29906 | 6973 |
40056 | 6974 fi |
25897 | 6975 fi |
6976 fi | |
6977 | |
6978 ### Is -lXaw3d available? | |
6979 HAVE_XAW3D=no | |
6980 if test "${HAVE_X11}" = "yes"; then | |
6981 if test "${USE_X_TOOLKIT}" != "none"; then | |
47560 | 6982 echo "$as_me:6982: checking for X11/Xaw3d/Scrollbar.h" >&5 |
40056 | 6983 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
6984 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
6985 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 6986 else |
6987 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 6988 #line 6988 "configure" |
25897 | 6989 #include "confdefs.h" |
6990 #include <X11/Xaw3d/Scrollbar.h> | |
40056 | 6991 _ACEOF |
47560 | 6992 if { (eval echo "$as_me:6992: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 6993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6994 ac_status=$? | |
6995 egrep -v '^ *\+' conftest.er1 >conftest.err | |
6996 rm -f conftest.er1 | |
6997 cat conftest.err >&5 | |
47560 | 6998 echo "$as_me:6998: \$? = $ac_status" >&5 |
40056 | 6999 (exit $ac_status); } >/dev/null; then |
7000 if test -s conftest.err; then | |
7001 ac_cpp_err=$ac_c_preproc_warn_flag | |
7002 else | |
7003 ac_cpp_err= | |
7004 fi | |
7005 else | |
7006 ac_cpp_err=yes | |
7007 fi | |
7008 if test -z "$ac_cpp_err"; then | |
45226 | 7009 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
40056 | 7010 else |
7011 echo "$as_me: failed program was:" >&5 | |
25897 | 7012 cat conftest.$ac_ext >&5 |
45226 | 7013 ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
40056 | 7014 fi |
7015 rm -f conftest.err conftest.$ac_ext | |
45226 | 7016 fi |
47560 | 7017 echo "$as_me:7017: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
40056 | 7018 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
7019 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then | |
47560 | 7020 echo "$as_me:7020: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
40056 | 7021 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
7022 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
7023 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7024 else | |
7025 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7026 LIBS="-lXaw3d $LIBS" |
40056 | 7027 cat >conftest.$ac_ext <<_ACEOF |
47560 | 7028 #line 7028 "configure" |
40056 | 7029 #include "confdefs.h" |
7030 | |
25897 | 7031 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7032 #ifdef __cplusplus |
7033 extern "C" | |
7034 #endif | |
25897 | 7035 /* We use char because int might match the return type of a gcc2 |
40056 | 7036 builtin and then its argument prototype would still apply. */ |
7037 char XawScrollbarSetThumb (); | |
7038 int | |
7039 main () | |
7040 { | |
7041 XawScrollbarSetThumb (); | |
7042 ; | |
7043 return 0; | |
7044 } | |
7045 _ACEOF | |
7046 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 7047 if { (eval echo "$as_me:7047: \"$ac_link\"") >&5 |
7048 (eval $ac_link) 2>&5 | |
7049 ac_status=$? | |
7050 echo "$as_me:7050: \$? = $ac_status" >&5 | |
44493 | 7051 (exit $ac_status); } && |
7052 { ac_try='test -s conftest$ac_exeext' | |
47560 | 7053 { (eval echo "$as_me:7053: \"$ac_try\"") >&5 |
7054 (eval $ac_try) 2>&5 | |
7055 ac_status=$? | |
7056 echo "$as_me:7056: \$? = $ac_status" >&5 | |
40056 | 7057 (exit $ac_status); }; }; then |
7058 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | |
7059 else | |
7060 echo "$as_me: failed program was:" >&5 | |
7061 cat conftest.$ac_ext >&5 | |
7062 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | |
7063 fi | |
7064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7065 LIBS=$ac_check_lib_save_LIBS | |
7066 fi | |
47560 | 7067 echo "$as_me:7067: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
40056 | 7068 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
7069 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
25897 | 7070 HAVE_XAW3D=yes |
40056 | 7071 fi |
7072 | |
25897 | 7073 fi |
7074 | |
7075 if test "${HAVE_XAW3D}" = "yes"; then | |
44569 | 7076 |
45226 | 7077 cat >>confdefs.h <<\EOF |
25897 | 7078 #define HAVE_XAW3D 1 |
45226 | 7079 EOF |
25897 | 7080 |
7081 fi | |
7082 fi | |
7083 fi | |
7084 | |
7085 USE_TOOLKIT_SCROLL_BARS=no | |
7086 if test "${with_toolkit_scroll_bars}" != "no"; then | |
7087 if test "${USE_X_TOOLKIT}" != "none"; then | |
7088 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
45226 | 7089 cat >>confdefs.h <<\EOF |
25897 | 7090 #define USE_TOOLKIT_SCROLL_BARS 1 |
45226 | 7091 EOF |
25897 | 7092 |
7093 HAVE_XAW3D=no | |
7094 USE_TOOLKIT_SCROLL_BARS=yes | |
7095 elif test "${HAVE_XAW3D}" = "yes"; then | |
45226 | 7096 cat >>confdefs.h <<\EOF |
25897 | 7097 #define USE_TOOLKIT_SCROLL_BARS 1 |
45226 | 7098 EOF |
25897 | 7099 |
7100 USE_TOOLKIT_SCROLL_BARS=yes | |
7101 fi | |
7102 fi | |
7103 fi | |
7104 | |
29949 | 7105 if test "${with_xim}" != "no"; then |
44569 | 7106 |
45226 | 7107 cat >>confdefs.h <<\EOF |
29949 | 7108 #define USE_XIM 1 |
45226 | 7109 EOF |
29949 | 7110 |
7111 fi | |
7112 | |
25897 | 7113 ### Use -lXpm if available, unless `--with-xpm=no'. |
7114 HAVE_XPM=no | |
7115 if test "${HAVE_X11}" = "yes"; then | |
7116 if test "${with_xpm}" != "no"; then | |
47560 | 7117 echo "$as_me:7117: checking for X11/xpm.h" >&5 |
40056 | 7118 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
7119 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
7120 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 7121 else |
7122 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7123 #line 7123 "configure" |
25897 | 7124 #include "confdefs.h" |
7125 #include <X11/xpm.h> | |
40056 | 7126 _ACEOF |
47560 | 7127 if { (eval echo "$as_me:7127: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7129 ac_status=$? | |
7130 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7131 rm -f conftest.er1 | |
7132 cat conftest.err >&5 | |
47560 | 7133 echo "$as_me:7133: \$? = $ac_status" >&5 |
40056 | 7134 (exit $ac_status); } >/dev/null; then |
7135 if test -s conftest.err; then | |
7136 ac_cpp_err=$ac_c_preproc_warn_flag | |
7137 else | |
7138 ac_cpp_err= | |
7139 fi | |
7140 else | |
7141 ac_cpp_err=yes | |
7142 fi | |
7143 if test -z "$ac_cpp_err"; then | |
45226 | 7144 ac_cv_header_X11_xpm_h=yes |
40056 | 7145 else |
7146 echo "$as_me: failed program was:" >&5 | |
25897 | 7147 cat conftest.$ac_ext >&5 |
45226 | 7148 ac_cv_header_X11_xpm_h=no |
40056 | 7149 fi |
7150 rm -f conftest.err conftest.$ac_ext | |
45226 | 7151 fi |
47560 | 7152 echo "$as_me:7152: result: $ac_cv_header_X11_xpm_h" >&5 |
40056 | 7153 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
7154 if test $ac_cv_header_X11_xpm_h = yes; then | |
47560 | 7155 echo "$as_me:7155: checking for XpmReadFileToPixmap in -lXpm" >&5 |
40056 | 7156 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
7157 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
7158 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7159 else | |
7160 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7161 LIBS="-lXpm -lX11 $LIBS" |
40056 | 7162 cat >conftest.$ac_ext <<_ACEOF |
47560 | 7163 #line 7163 "configure" |
40056 | 7164 #include "confdefs.h" |
7165 | |
25897 | 7166 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7167 #ifdef __cplusplus |
7168 extern "C" | |
7169 #endif | |
25897 | 7170 /* We use char because int might match the return type of a gcc2 |
40056 | 7171 builtin and then its argument prototype would still apply. */ |
7172 char XpmReadFileToPixmap (); | |
7173 int | |
7174 main () | |
7175 { | |
7176 XpmReadFileToPixmap (); | |
7177 ; | |
7178 return 0; | |
7179 } | |
7180 _ACEOF | |
7181 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 7182 if { (eval echo "$as_me:7182: \"$ac_link\"") >&5 |
7183 (eval $ac_link) 2>&5 | |
7184 ac_status=$? | |
7185 echo "$as_me:7185: \$? = $ac_status" >&5 | |
44493 | 7186 (exit $ac_status); } && |
7187 { ac_try='test -s conftest$ac_exeext' | |
47560 | 7188 { (eval echo "$as_me:7188: \"$ac_try\"") >&5 |
7189 (eval $ac_try) 2>&5 | |
7190 ac_status=$? | |
7191 echo "$as_me:7191: \$? = $ac_status" >&5 | |
40056 | 7192 (exit $ac_status); }; }; then |
7193 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | |
7194 else | |
7195 echo "$as_me: failed program was:" >&5 | |
7196 cat conftest.$ac_ext >&5 | |
7197 ac_cv_lib_Xpm_XpmReadFileToPixmap=no | |
7198 fi | |
7199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7200 LIBS=$ac_check_lib_save_LIBS | |
7201 fi | |
47560 | 7202 echo "$as_me:7202: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
40056 | 7203 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
7204 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
25897 | 7205 HAVE_XPM=yes |
40056 | 7206 fi |
7207 | |
25897 | 7208 fi |
7209 | |
30140 | 7210 if test "${HAVE_XPM}" = "yes"; then |
47560 | 7211 echo "$as_me:7211: checking for XpmReturnAllocPixels preprocessor define" >&5 |
40056 | 7212 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
7213 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7214 #line 7214 "configure" |
30140 | 7215 #include "confdefs.h" |
7216 #include "X11/xpm.h" | |
7217 #ifndef XpmReturnAllocPixels | |
7218 no_return_alloc_pixels | |
7219 #endif | |
40056 | 7220 |
7221 _ACEOF | |
30140 | 7222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7223 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then | |
7224 HAVE_XPM=no | |
7225 else | |
7226 HAVE_XPM=yes | |
7227 fi | |
7228 rm -f conftest* | |
7229 | |
36903 | 7230 if test "${HAVE_XPM}" = "yes"; then |
47560 | 7231 echo "$as_me:7231: result: yes" >&5 |
40056 | 7232 echo "${ECHO_T}yes" >&6 |
36903 | 7233 else |
47560 | 7234 echo "$as_me:7234: result: no" >&5 |
40056 | 7235 echo "${ECHO_T}no" >&6 |
36903 | 7236 fi |
31320 | 7237 fi |
25897 | 7238 fi |
7239 | |
7240 if test "${HAVE_XPM}" = "yes"; then | |
44569 | 7241 |
45226 | 7242 cat >>confdefs.h <<\EOF |
25897 | 7243 #define HAVE_XPM 1 |
45226 | 7244 EOF |
25897 | 7245 |
7246 fi | |
7247 fi | |
40056 | 7248 |
25897 | 7249 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
7250 HAVE_JPEG=no | |
7251 if test "${HAVE_X11}" = "yes"; then | |
7252 if test "${with_jpeg}" != "no"; then | |
47560 | 7253 echo "$as_me:7253: checking for jerror.h" >&5 |
40056 | 7254 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
7255 if test "${ac_cv_header_jerror_h+set}" = set; then | |
7256 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 7257 else |
7258 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7259 #line 7259 "configure" |
27356 | 7260 #include "confdefs.h" |
7261 #include <jerror.h> | |
40056 | 7262 _ACEOF |
47560 | 7263 if { (eval echo "$as_me:7263: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7265 ac_status=$? | |
7266 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7267 rm -f conftest.er1 | |
7268 cat conftest.err >&5 | |
47560 | 7269 echo "$as_me:7269: \$? = $ac_status" >&5 |
40056 | 7270 (exit $ac_status); } >/dev/null; then |
7271 if test -s conftest.err; then | |
7272 ac_cpp_err=$ac_c_preproc_warn_flag | |
7273 else | |
7274 ac_cpp_err= | |
7275 fi | |
7276 else | |
7277 ac_cpp_err=yes | |
7278 fi | |
7279 if test -z "$ac_cpp_err"; then | |
45226 | 7280 ac_cv_header_jerror_h=yes |
40056 | 7281 else |
7282 echo "$as_me: failed program was:" >&5 | |
27356 | 7283 cat conftest.$ac_ext >&5 |
45226 | 7284 ac_cv_header_jerror_h=no |
40056 | 7285 fi |
7286 rm -f conftest.err conftest.$ac_ext | |
45226 | 7287 fi |
47560 | 7288 echo "$as_me:7288: result: $ac_cv_header_jerror_h" >&5 |
40056 | 7289 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
7290 if test $ac_cv_header_jerror_h = yes; then | |
47560 | 7291 echo "$as_me:7291: checking for jpeg_destroy_compress in -ljpeg" >&5 |
40056 | 7292 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
7293 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
7294 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7295 else | |
7296 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7297 LIBS="-ljpeg $LIBS" |
40056 | 7298 cat >conftest.$ac_ext <<_ACEOF |
47560 | 7299 #line 7299 "configure" |
40056 | 7300 #include "confdefs.h" |
7301 | |
25897 | 7302 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7303 #ifdef __cplusplus |
7304 extern "C" | |
7305 #endif | |
25897 | 7306 /* We use char because int might match the return type of a gcc2 |
40056 | 7307 builtin and then its argument prototype would still apply. */ |
7308 char jpeg_destroy_compress (); | |
7309 int | |
7310 main () | |
7311 { | |
7312 jpeg_destroy_compress (); | |
7313 ; | |
7314 return 0; | |
7315 } | |
7316 _ACEOF | |
7317 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 7318 if { (eval echo "$as_me:7318: \"$ac_link\"") >&5 |
7319 (eval $ac_link) 2>&5 | |
7320 ac_status=$? | |
7321 echo "$as_me:7321: \$? = $ac_status" >&5 | |
44493 | 7322 (exit $ac_status); } && |
7323 { ac_try='test -s conftest$ac_exeext' | |
47560 | 7324 { (eval echo "$as_me:7324: \"$ac_try\"") >&5 |
7325 (eval $ac_try) 2>&5 | |
7326 ac_status=$? | |
7327 echo "$as_me:7327: \$? = $ac_status" >&5 | |
40056 | 7328 (exit $ac_status); }; }; then |
7329 ac_cv_lib_jpeg_jpeg_destroy_compress=yes | |
7330 else | |
7331 echo "$as_me: failed program was:" >&5 | |
7332 cat conftest.$ac_ext >&5 | |
7333 ac_cv_lib_jpeg_jpeg_destroy_compress=no | |
7334 fi | |
7335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7336 LIBS=$ac_check_lib_save_LIBS | |
7337 fi | |
47560 | 7338 echo "$as_me:7338: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
40056 | 7339 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
7340 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
25897 | 7341 HAVE_JPEG=yes |
40056 | 7342 fi |
7343 | |
27356 | 7344 fi |
7345 | |
45226 | 7346 fi |
44569 | 7347 |
25897 | 7348 if test "${HAVE_JPEG}" = "yes"; then |
45226 | 7349 cat >>confdefs.h <<\EOF |
25897 | 7350 #define HAVE_JPEG 1 |
45226 | 7351 EOF |
25897 | 7352 |
43721 | 7353 cat >conftest.$ac_ext <<_ACEOF |
47560 | 7354 #line 7354 "configure" |
43721 | 7355 #include "confdefs.h" |
7356 #include <jpeglib.h> | |
7357 version=JPEG_LIB_VERSION | |
7358 | |
7359 _ACEOF | |
7360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7361 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then | |
45226 | 7362 cat >>confdefs.h <<\EOF |
43721 | 7363 #define HAVE_JPEG 1 |
45226 | 7364 EOF |
7365 | |
7366 else | |
47560 | 7367 { echo "$as_me:7367: WARNING: libjpeg found, but not version 6b or later" >&5 |
43721 | 7368 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
7369 HAVE_JPEG=no | |
7370 fi | |
7371 rm -f conftest* | |
7372 | |
25897 | 7373 fi |
7374 fi | |
40056 | 7375 |
25897 | 7376 ### Use -lpng if available, unless `--with-png=no'. |
7377 HAVE_PNG=no | |
7378 if test "${HAVE_X11}" = "yes"; then | |
7379 if test "${with_png}" != "no"; then | |
47560 | 7380 echo "$as_me:7380: checking for png.h" >&5 |
40056 | 7381 echo $ECHO_N "checking for png.h... $ECHO_C" >&6 |
7382 if test "${ac_cv_header_png_h+set}" = set; then | |
7383 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 7384 else |
7385 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7386 #line 7386 "configure" |
25897 | 7387 #include "confdefs.h" |
7388 #include <png.h> | |
40056 | 7389 _ACEOF |
47560 | 7390 if { (eval echo "$as_me:7390: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7392 ac_status=$? | |
7393 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7394 rm -f conftest.er1 | |
7395 cat conftest.err >&5 | |
47560 | 7396 echo "$as_me:7396: \$? = $ac_status" >&5 |
40056 | 7397 (exit $ac_status); } >/dev/null; then |
7398 if test -s conftest.err; then | |
7399 ac_cpp_err=$ac_c_preproc_warn_flag | |
7400 else | |
7401 ac_cpp_err= | |
7402 fi | |
7403 else | |
7404 ac_cpp_err=yes | |
7405 fi | |
7406 if test -z "$ac_cpp_err"; then | |
45226 | 7407 ac_cv_header_png_h=yes |
40056 | 7408 else |
7409 echo "$as_me: failed program was:" >&5 | |
25897 | 7410 cat conftest.$ac_ext >&5 |
45226 | 7411 ac_cv_header_png_h=no |
40056 | 7412 fi |
7413 rm -f conftest.err conftest.$ac_ext | |
45226 | 7414 fi |
47560 | 7415 echo "$as_me:7415: result: $ac_cv_header_png_h" >&5 |
40056 | 7416 echo "${ECHO_T}$ac_cv_header_png_h" >&6 |
7417 if test $ac_cv_header_png_h = yes; then | |
47560 | 7418 echo "$as_me:7418: checking for png_get_channels in -lpng" >&5 |
40056 | 7419 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
7420 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
7421 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7422 else | |
7423 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7424 LIBS="-lpng -lz -lm $LIBS" |
40056 | 7425 cat >conftest.$ac_ext <<_ACEOF |
47560 | 7426 #line 7426 "configure" |
40056 | 7427 #include "confdefs.h" |
7428 | |
25897 | 7429 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7430 #ifdef __cplusplus |
7431 extern "C" | |
7432 #endif | |
25897 | 7433 /* We use char because int might match the return type of a gcc2 |
40056 | 7434 builtin and then its argument prototype would still apply. */ |
7435 char png_get_channels (); | |
7436 int | |
7437 main () | |
7438 { | |
7439 png_get_channels (); | |
7440 ; | |
7441 return 0; | |
7442 } | |
7443 _ACEOF | |
7444 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 7445 if { (eval echo "$as_me:7445: \"$ac_link\"") >&5 |
7446 (eval $ac_link) 2>&5 | |
7447 ac_status=$? | |
7448 echo "$as_me:7448: \$? = $ac_status" >&5 | |
44493 | 7449 (exit $ac_status); } && |
7450 { ac_try='test -s conftest$ac_exeext' | |
47560 | 7451 { (eval echo "$as_me:7451: \"$ac_try\"") >&5 |
7452 (eval $ac_try) 2>&5 | |
7453 ac_status=$? | |
7454 echo "$as_me:7454: \$? = $ac_status" >&5 | |
40056 | 7455 (exit $ac_status); }; }; then |
7456 ac_cv_lib_png_png_get_channels=yes | |
7457 else | |
7458 echo "$as_me: failed program was:" >&5 | |
7459 cat conftest.$ac_ext >&5 | |
7460 ac_cv_lib_png_png_get_channels=no | |
7461 fi | |
7462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7463 LIBS=$ac_check_lib_save_LIBS | |
7464 fi | |
47560 | 7465 echo "$as_me:7465: result: $ac_cv_lib_png_png_get_channels" >&5 |
40056 | 7466 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
7467 if test $ac_cv_lib_png_png_get_channels = yes; then | |
25897 | 7468 HAVE_PNG=yes |
40056 | 7469 fi |
7470 | |
25897 | 7471 fi |
7472 | |
7473 fi | |
7474 | |
7475 if test "${HAVE_PNG}" = "yes"; then | |
44569 | 7476 |
45226 | 7477 cat >>confdefs.h <<\EOF |
25897 | 7478 #define HAVE_PNG 1 |
45226 | 7479 EOF |
25897 | 7480 |
7481 fi | |
7482 fi | |
40056 | 7483 |
25897 | 7484 ### Use -ltiff if available, unless `--with-tiff=no'. |
7485 HAVE_TIFF=no | |
7486 if test "${HAVE_X11}" = "yes"; then | |
7487 if test "${with_tiff}" != "no"; then | |
47560 | 7488 echo "$as_me:7488: checking for tiffio.h" >&5 |
40056 | 7489 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
7490 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
7491 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 7492 else |
7493 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7494 #line 7494 "configure" |
25897 | 7495 #include "confdefs.h" |
7496 #include <tiffio.h> | |
40056 | 7497 _ACEOF |
47560 | 7498 if { (eval echo "$as_me:7498: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7500 ac_status=$? | |
7501 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7502 rm -f conftest.er1 | |
7503 cat conftest.err >&5 | |
47560 | 7504 echo "$as_me:7504: \$? = $ac_status" >&5 |
40056 | 7505 (exit $ac_status); } >/dev/null; then |
7506 if test -s conftest.err; then | |
7507 ac_cpp_err=$ac_c_preproc_warn_flag | |
7508 else | |
7509 ac_cpp_err= | |
7510 fi | |
7511 else | |
7512 ac_cpp_err=yes | |
7513 fi | |
7514 if test -z "$ac_cpp_err"; then | |
45226 | 7515 ac_cv_header_tiffio_h=yes |
40056 | 7516 else |
7517 echo "$as_me: failed program was:" >&5 | |
25897 | 7518 cat conftest.$ac_ext >&5 |
45226 | 7519 ac_cv_header_tiffio_h=no |
40056 | 7520 fi |
7521 rm -f conftest.err conftest.$ac_ext | |
45226 | 7522 fi |
47560 | 7523 echo "$as_me:7523: result: $ac_cv_header_tiffio_h" >&5 |
44493 | 7524 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
7525 if test $ac_cv_header_tiffio_h = yes; then | |
7526 tifflibs="-lz -lm" | |
7527 # At least one tiff package requires the jpeg library. | |
7528 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
47560 | 7529 echo "$as_me:7529: checking for TIFFGetVersion in -ltiff" >&5 |
44493 | 7530 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
7531 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
40056 | 7532 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7533 else | |
7534 ac_check_lib_save_LIBS=$LIBS | |
44493 | 7535 LIBS="-ltiff $tifflibs $LIBS" |
7536 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7537 #line 7537 "configure" |
44493 | 7538 #include "confdefs.h" |
7539 | |
7540 /* Override any gcc2 internal prototype to avoid an error. */ | |
7541 #ifdef __cplusplus | |
7542 extern "C" | |
7543 #endif | |
7544 /* We use char because int might match the return type of a gcc2 | |
7545 builtin and then its argument prototype would still apply. */ | |
7546 char TIFFGetVersion (); | |
7547 int | |
7548 main () | |
7549 { | |
7550 TIFFGetVersion (); | |
7551 ; | |
7552 return 0; | |
7553 } | |
7554 _ACEOF | |
7555 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 7556 if { (eval echo "$as_me:7556: \"$ac_link\"") >&5 |
7557 (eval $ac_link) 2>&5 | |
7558 ac_status=$? | |
7559 echo "$as_me:7559: \$? = $ac_status" >&5 | |
44493 | 7560 (exit $ac_status); } && |
7561 { ac_try='test -s conftest$ac_exeext' | |
47560 | 7562 { (eval echo "$as_me:7562: \"$ac_try\"") >&5 |
7563 (eval $ac_try) 2>&5 | |
7564 ac_status=$? | |
7565 echo "$as_me:7565: \$? = $ac_status" >&5 | |
44493 | 7566 (exit $ac_status); }; }; then |
7567 ac_cv_lib_tiff_TIFFGetVersion=yes | |
7568 else | |
7569 echo "$as_me: failed program was:" >&5 | |
7570 cat conftest.$ac_ext >&5 | |
7571 ac_cv_lib_tiff_TIFFGetVersion=no | |
40056 | 7572 fi |
7573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7574 LIBS=$ac_check_lib_save_LIBS | |
7575 fi | |
47560 | 7576 echo "$as_me:7576: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
44493 | 7577 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
7578 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
7579 HAVE_TIFF=yes | |
7580 fi | |
7581 | |
7582 fi | |
7583 | |
7584 fi | |
7585 | |
7586 if test "${HAVE_TIFF}" = "yes"; then | |
44569 | 7587 |
45226 | 7588 cat >>confdefs.h <<\EOF |
44493 | 7589 #define HAVE_TIFF 1 |
45226 | 7590 EOF |
44493 | 7591 |
7592 fi | |
7593 fi | |
7594 | |
7595 ### Use -lgif if available, unless `--with-gif=no'. | |
7596 HAVE_GIF=no | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7597 if test "${HAVE_X11}" = "yes"; then |
44493 | 7598 if test "${with_gif}" != "no"; then |
47560 | 7599 echo "$as_me:7599: checking for gif_lib.h" >&5 |
44493 | 7600 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
7601 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
7602 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 7603 else |
7604 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7605 #line 7605 "configure" |
44493 | 7606 #include "confdefs.h" |
7607 #include <gif_lib.h> | |
7608 _ACEOF | |
47560 | 7609 if { (eval echo "$as_me:7609: \"$ac_cpp conftest.$ac_ext\"") >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7611 ac_status=$? |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7612 egrep -v '^ *\+' conftest.er1 >conftest.err |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7613 rm -f conftest.er1 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7614 cat conftest.err >&5 |
47560 | 7615 echo "$as_me:7615: \$? = $ac_status" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7616 (exit $ac_status); } >/dev/null; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7617 if test -s conftest.err; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7618 ac_cpp_err=$ac_c_preproc_warn_flag |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7619 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7620 ac_cpp_err= |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7621 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7622 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7623 ac_cpp_err=yes |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7624 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7625 if test -z "$ac_cpp_err"; then |
45226 | 7626 ac_cv_header_gif_lib_h=yes |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7627 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7628 echo "$as_me: failed program was:" >&5 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7629 cat conftest.$ac_ext >&5 |
45226 | 7630 ac_cv_header_gif_lib_h=no |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7631 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7632 rm -f conftest.err conftest.$ac_ext |
45226 | 7633 fi |
47560 | 7634 echo "$as_me:7634: result: $ac_cv_header_gif_lib_h" >&5 |
44493 | 7635 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
7636 if test $ac_cv_header_gif_lib_h = yes; then | |
7637 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
7638 # Earlier versions can crash Emacs. | |
47560 | 7639 echo "$as_me:7639: checking for EGifPutExtensionLast in -lungif" >&5 |
44493 | 7640 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
7641 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
7642 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7643 else | |
7644 ac_check_lib_save_LIBS=$LIBS | |
7645 LIBS="-lungif $LIBS" | |
7646 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7647 #line 7647 "configure" |
44493 | 7648 #include "confdefs.h" |
7649 | |
7650 /* Override any gcc2 internal prototype to avoid an error. */ | |
7651 #ifdef __cplusplus | |
7652 extern "C" | |
7653 #endif | |
7654 /* We use char because int might match the return type of a gcc2 | |
7655 builtin and then its argument prototype would still apply. */ | |
7656 char EGifPutExtensionLast (); | |
7657 int | |
7658 main () | |
7659 { | |
7660 EGifPutExtensionLast (); | |
7661 ; | |
7662 return 0; | |
7663 } | |
7664 _ACEOF | |
7665 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 7666 if { (eval echo "$as_me:7666: \"$ac_link\"") >&5 |
7667 (eval $ac_link) 2>&5 | |
7668 ac_status=$? | |
7669 echo "$as_me:7669: \$? = $ac_status" >&5 | |
44493 | 7670 (exit $ac_status); } && |
7671 { ac_try='test -s conftest$ac_exeext' | |
47560 | 7672 { (eval echo "$as_me:7672: \"$ac_try\"") >&5 |
7673 (eval $ac_try) 2>&5 | |
7674 ac_status=$? | |
7675 echo "$as_me:7675: \$? = $ac_status" >&5 | |
44493 | 7676 (exit $ac_status); }; }; then |
7677 ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
7678 else | |
7679 echo "$as_me: failed program was:" >&5 | |
7680 cat conftest.$ac_ext >&5 | |
7681 ac_cv_lib_ungif_EGifPutExtensionLast=no | |
7682 fi | |
7683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7684 LIBS=$ac_check_lib_save_LIBS | |
7685 fi | |
47560 | 7686 echo "$as_me:7686: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
44493 | 7687 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
7688 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
7689 HAVE_GIF=yes | |
7690 fi | |
7691 | |
7692 fi | |
7693 | |
7694 fi | |
7695 | |
7696 if test "${HAVE_GIF}" = "yes"; then | |
44569 | 7697 |
45226 | 7698 cat >>confdefs.h <<\EOF |
44493 | 7699 #define HAVE_GIF 1 |
45226 | 7700 EOF |
44493 | 7701 |
7702 fi | |
7703 fi | |
7704 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7705 ### Use Mac OS X Carbon API to implement GUI. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7706 HAVE_CARBON=no |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7707 if test "${with_carbon}" != "no"; then |
47560 | 7708 echo "$as_me:7708: checking for Carbon/Carbon.h" >&5 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7709 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7710 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7711 echo $ECHO_N "(cached) $ECHO_C" >&6 |
45226 | 7712 else |
7713 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7714 #line 7714 "configure" |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7715 #include "confdefs.h" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7716 #include <Carbon/Carbon.h> |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7717 _ACEOF |
47560 | 7718 if { (eval echo "$as_me:7718: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7720 ac_status=$? |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7721 egrep -v '^ *\+' conftest.er1 >conftest.err |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7722 rm -f conftest.er1 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7723 cat conftest.err >&5 |
47560 | 7724 echo "$as_me:7724: \$? = $ac_status" >&5 |
45226 | 7725 (exit $ac_status); } >/dev/null; then |
7726 if test -s conftest.err; then | |
7727 ac_cpp_err=$ac_c_preproc_warn_flag | |
7728 else | |
7729 ac_cpp_err= | |
7730 fi | |
7731 else | |
7732 ac_cpp_err=yes | |
7733 fi | |
7734 if test -z "$ac_cpp_err"; then | |
7735 ac_cv_header_Carbon_Carbon_h=yes | |
7736 else | |
7737 echo "$as_me: failed program was:" >&5 | |
7738 cat conftest.$ac_ext >&5 | |
7739 ac_cv_header_Carbon_Carbon_h=no | |
7740 fi | |
7741 rm -f conftest.err conftest.$ac_ext | |
7742 fi | |
47560 | 7743 echo "$as_me:7743: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
45226 | 7744 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
7745 if test $ac_cv_header_Carbon_Carbon_h = yes; then | |
7746 HAVE_CARBON=yes | |
7747 fi | |
7748 | |
7749 fi | |
7750 | |
7751 if test "${HAVE_CARBON}" = "yes"; then | |
7752 | |
7753 cat >>confdefs.h <<\EOF | |
7754 #define HAVE_CARBON 1 | |
7755 EOF | |
7756 | |
7757 fi | |
7758 | |
7759 ### Use session management (-lSM -lICE) if available | |
7760 HAVE_X_SM=no | |
7761 if test "${HAVE_X11}" = "yes"; then | |
47560 | 7762 echo "$as_me:7762: checking for X11/SM/SMlib.h" >&5 |
45226 | 7763 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
7764 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
7765 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7766 else | |
7767 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7768 #line 7768 "configure" |
45226 | 7769 #include "confdefs.h" |
7770 #include <X11/SM/SMlib.h> | |
7771 _ACEOF | |
47560 | 7772 if { (eval echo "$as_me:7772: \"$ac_cpp conftest.$ac_ext\"") >&5 |
45226 | 7773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7774 ac_status=$? | |
7775 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7776 rm -f conftest.er1 | |
7777 cat conftest.err >&5 | |
47560 | 7778 echo "$as_me:7778: \$? = $ac_status" >&5 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7779 (exit $ac_status); } >/dev/null; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7780 if test -s conftest.err; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7781 ac_cpp_err=$ac_c_preproc_warn_flag |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7782 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7783 ac_cpp_err= |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7784 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7785 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7786 ac_cpp_err=yes |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7787 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7788 if test -z "$ac_cpp_err"; then |
45226 | 7789 ac_cv_header_X11_SM_SMlib_h=yes |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7790 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7791 echo "$as_me: failed program was:" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7792 cat conftest.$ac_ext >&5 |
45226 | 7793 ac_cv_header_X11_SM_SMlib_h=no |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7794 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7795 rm -f conftest.err conftest.$ac_ext |
45226 | 7796 fi |
47560 | 7797 echo "$as_me:7797: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7798 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7799 if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
47560 | 7800 echo "$as_me:7800: checking for SmcOpenConnection in -lSM" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7801 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7802 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7803 echo $ECHO_N "(cached) $ECHO_C" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7804 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7805 ac_check_lib_save_LIBS=$LIBS |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7806 LIBS="-lSM $LIBS" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7807 cat >conftest.$ac_ext <<_ACEOF |
47560 | 7808 #line 7808 "configure" |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7809 #include "confdefs.h" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7810 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7811 /* Override any gcc2 internal prototype to avoid an error. */ |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7812 #ifdef __cplusplus |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7813 extern "C" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7814 #endif |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7815 /* We use char because int might match the return type of a gcc2 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7816 builtin and then its argument prototype would still apply. */ |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7817 char SmcOpenConnection (); |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7818 int |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7819 main () |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7820 { |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7821 SmcOpenConnection (); |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7822 ; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7823 return 0; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7824 } |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7825 _ACEOF |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7826 rm -f conftest.$ac_objext conftest$ac_exeext |
47560 | 7827 if { (eval echo "$as_me:7827: \"$ac_link\"") >&5 |
7828 (eval $ac_link) 2>&5 | |
7829 ac_status=$? | |
7830 echo "$as_me:7830: \$? = $ac_status" >&5 | |
44493 | 7831 (exit $ac_status); } && |
7832 { ac_try='test -s conftest$ac_exeext' | |
47560 | 7833 { (eval echo "$as_me:7833: \"$ac_try\"") >&5 |
7834 (eval $ac_try) 2>&5 | |
7835 ac_status=$? | |
7836 echo "$as_me:7836: \$? = $ac_status" >&5 | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7837 (exit $ac_status); }; }; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7838 ac_cv_lib_SM_SmcOpenConnection=yes |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7839 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7840 echo "$as_me: failed program was:" >&5 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7841 cat conftest.$ac_ext >&5 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7842 ac_cv_lib_SM_SmcOpenConnection=no |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7843 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7845 LIBS=$ac_check_lib_save_LIBS |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7846 fi |
47560 | 7847 echo "$as_me:7847: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7848 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7849 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7850 HAVE_X_SM=yes |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7851 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7852 -lICE |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7853 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7854 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7855 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7856 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7857 if test "${HAVE_X_SM}" = "yes"; then |
44569 | 7858 |
45226 | 7859 cat >>confdefs.h <<\EOF |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7860 #define HAVE_X_SM 1 |
45226 | 7861 EOF |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7862 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7863 case "$LIBS" in |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7864 *-lSM*) ;; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7865 *) LIBS="-lSM -lICE $LIBS" ;; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7866 esac |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7867 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7868 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7869 |
25897 | 7870 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
47560 | 7871 echo "$as_me:7871: checking whether netdb declares h_errno" >&5 |
40056 | 7872 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
7873 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
7874 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7875 else | |
7876 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7877 #line 7877 "configure" |
25897 | 7878 #include "confdefs.h" |
7879 #include <netdb.h> | |
40056 | 7880 int |
7881 main () | |
7882 { | |
25897 | 7883 return h_errno; |
40056 | 7884 ; |
7885 return 0; | |
7886 } | |
7887 _ACEOF | |
7888 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 7889 if { (eval echo "$as_me:7889: \"$ac_link\"") >&5 |
7890 (eval $ac_link) 2>&5 | |
7891 ac_status=$? | |
7892 echo "$as_me:7892: \$? = $ac_status" >&5 | |
44493 | 7893 (exit $ac_status); } && |
7894 { ac_try='test -s conftest$ac_exeext' | |
47560 | 7895 { (eval echo "$as_me:7895: \"$ac_try\"") >&5 |
7896 (eval $ac_try) 2>&5 | |
7897 ac_status=$? | |
7898 echo "$as_me:7898: \$? = $ac_status" >&5 | |
40056 | 7899 (exit $ac_status); }; }; then |
25897 | 7900 emacs_cv_netdb_declares_h_errno=yes |
7901 else | |
40056 | 7902 echo "$as_me: failed program was:" >&5 |
7903 cat conftest.$ac_ext >&5 | |
7904 emacs_cv_netdb_declares_h_errno=no | |
7905 fi | |
7906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7907 fi | |
47560 | 7908 echo "$as_me:7908: result: $emacs_cv_netdb_declares_h_errno" >&5 |
40056 | 7909 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
25897 | 7910 if test $emacs_cv_netdb_declares_h_errno = yes; then |
44569 | 7911 |
45226 | 7912 cat >>confdefs.h <<\EOF |
25897 | 7913 #define HAVE_H_ERRNO 1 |
45226 | 7914 EOF |
25897 | 7915 |
7916 fi | |
7917 | |
7918 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7919 # for constant arguments. Useless! | |
47560 | 7920 echo "$as_me:7920: checking for working alloca.h" >&5 |
40056 | 7921 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
7922 if test "${ac_cv_working_alloca_h+set}" = set; then | |
7923 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7924 else | |
7925 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7926 #line 7926 "configure" |
25897 | 7927 #include "confdefs.h" |
7928 #include <alloca.h> | |
40056 | 7929 int |
7930 main () | |
7931 { | |
7932 char *p = (char *) alloca (2 * sizeof (int)); | |
7933 ; | |
7934 return 0; | |
7935 } | |
7936 _ACEOF | |
7937 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 7938 if { (eval echo "$as_me:7938: \"$ac_link\"") >&5 |
7939 (eval $ac_link) 2>&5 | |
7940 ac_status=$? | |
7941 echo "$as_me:7941: \$? = $ac_status" >&5 | |
44493 | 7942 (exit $ac_status); } && |
7943 { ac_try='test -s conftest$ac_exeext' | |
47560 | 7944 { (eval echo "$as_me:7944: \"$ac_try\"") >&5 |
7945 (eval $ac_try) 2>&5 | |
7946 ac_status=$? | |
7947 echo "$as_me:7947: \$? = $ac_status" >&5 | |
40056 | 7948 (exit $ac_status); }; }; then |
7949 ac_cv_working_alloca_h=yes | |
7950 else | |
7951 echo "$as_me: failed program was:" >&5 | |
7952 cat conftest.$ac_ext >&5 | |
7953 ac_cv_working_alloca_h=no | |
7954 fi | |
7955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7956 fi | |
47560 | 7957 echo "$as_me:7957: result: $ac_cv_working_alloca_h" >&5 |
40056 | 7958 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
7959 if test $ac_cv_working_alloca_h = yes; then | |
7960 | |
45226 | 7961 cat >>confdefs.h <<\EOF |
25897 | 7962 #define HAVE_ALLOCA_H 1 |
45226 | 7963 EOF |
7964 | |
7965 fi | |
7966 | |
47560 | 7967 echo "$as_me:7967: checking for alloca" >&5 |
40056 | 7968 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
7969 if test "${ac_cv_func_alloca_works+set}" = set; then | |
7970 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7971 else | |
7972 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 7973 #line 7973 "configure" |
40056 | 7974 #include "confdefs.h" |
25897 | 7975 #ifdef __GNUC__ |
7976 # define alloca __builtin_alloca | |
7977 #else | |
27205 | 7978 # ifdef _MSC_VER |
7979 # include <malloc.h> | |
7980 # define alloca _alloca | |
25897 | 7981 # else |
27205 | 7982 # if HAVE_ALLOCA_H |
7983 # include <alloca.h> | |
25897 | 7984 # else |
27205 | 7985 # ifdef _AIX |
7986 #pragma alloca | |
7987 # else | |
7988 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 7989 char *alloca (); |
27205 | 7990 # endif |
25897 | 7991 # endif |
7992 # endif | |
7993 # endif | |
7994 #endif | |
7995 | |
40056 | 7996 int |
7997 main () | |
7998 { | |
7999 char *p = (char *) alloca (1); | |
8000 ; | |
8001 return 0; | |
8002 } | |
8003 _ACEOF | |
8004 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 8005 if { (eval echo "$as_me:8005: \"$ac_link\"") >&5 |
8006 (eval $ac_link) 2>&5 | |
8007 ac_status=$? | |
8008 echo "$as_me:8008: \$? = $ac_status" >&5 | |
44493 | 8009 (exit $ac_status); } && |
8010 { ac_try='test -s conftest$ac_exeext' | |
47560 | 8011 { (eval echo "$as_me:8011: \"$ac_try\"") >&5 |
8012 (eval $ac_try) 2>&5 | |
8013 ac_status=$? | |
8014 echo "$as_me:8014: \$? = $ac_status" >&5 | |
40056 | 8015 (exit $ac_status); }; }; then |
25897 | 8016 ac_cv_func_alloca_works=yes |
8017 else | |
40056 | 8018 echo "$as_me: failed program was:" >&5 |
8019 cat conftest.$ac_ext >&5 | |
8020 ac_cv_func_alloca_works=no | |
8021 fi | |
8022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8023 fi | |
47560 | 8024 echo "$as_me:8024: result: $ac_cv_func_alloca_works" >&5 |
40056 | 8025 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
8026 | |
25897 | 8027 if test $ac_cv_func_alloca_works = yes; then |
40056 | 8028 |
45226 | 8029 cat >>confdefs.h <<\EOF |
25897 | 8030 #define HAVE_ALLOCA 1 |
45226 | 8031 EOF |
25897 | 8032 |
40056 | 8033 else |
25897 | 8034 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
40056 | 8035 # that cause trouble. Some versions do not even contain alloca or |
8036 # contain a buggy version. If you still want to use their alloca, | |
8037 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8038 | |
8039 ALLOCA=alloca.$ac_objext | |
8040 | |
45226 | 8041 cat >>confdefs.h <<\EOF |
25897 | 8042 #define C_ALLOCA 1 |
45226 | 8043 EOF |
8044 | |
47560 | 8045 echo "$as_me:8045: checking whether \`alloca.c' needs Cray hooks" >&5 |
40056 | 8046 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
8047 if test "${ac_cv_os_cray+set}" = set; then | |
8048 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8049 else | |
8050 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 8051 #line 8051 "configure" |
25897 | 8052 #include "confdefs.h" |
8053 #if defined(CRAY) && ! defined(CRAY2) | |
8054 webecray | |
8055 #else | |
8056 wenotbecray | |
8057 #endif | |
8058 | |
40056 | 8059 _ACEOF |
25897 | 8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8061 egrep "webecray" >/dev/null 2>&1; then | |
8062 ac_cv_os_cray=yes | |
8063 else | |
8064 ac_cv_os_cray=no | |
8065 fi | |
8066 rm -f conftest* | |
8067 | |
8068 fi | |
47560 | 8069 echo "$as_me:8069: result: $ac_cv_os_cray" >&5 |
40056 | 8070 echo "${ECHO_T}$ac_cv_os_cray" >&6 |
25897 | 8071 if test $ac_cv_os_cray = yes; then |
40056 | 8072 for ac_func in _getb67 GETB67 getb67; do |
8073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
47560 | 8074 echo "$as_me:8074: checking for $ac_func" >&5 |
40056 | 8075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8076 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8077 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8078 else | |
8079 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 8080 #line 8080 "configure" |
25897 | 8081 #include "confdefs.h" |
8082 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8083 which can conflict with char $ac_func (); below. */ |
25897 | 8084 #include <assert.h> |
8085 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8086 #ifdef __cplusplus |
8087 extern "C" | |
8088 #endif | |
25897 | 8089 /* We use char because int might match the return type of a gcc2 |
40056 | 8090 builtin and then its argument prototype would still apply. */ |
8091 char $ac_func (); | |
8092 char (*f) (); | |
8093 | |
8094 int | |
8095 main () | |
8096 { | |
25897 | 8097 /* The GNU C library defines this for functions which it implements |
8098 to always fail with ENOSYS. Some functions are actually named | |
8099 something starting with __ and the normal name is an alias. */ | |
8100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8101 choke me | |
8102 #else | |
40056 | 8103 f = $ac_func; |
8104 #endif | |
8105 | |
8106 ; | |
8107 return 0; | |
8108 } | |
8109 _ACEOF | |
8110 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 8111 if { (eval echo "$as_me:8111: \"$ac_link\"") >&5 |
8112 (eval $ac_link) 2>&5 | |
8113 ac_status=$? | |
8114 echo "$as_me:8114: \$? = $ac_status" >&5 | |
44493 | 8115 (exit $ac_status); } && |
8116 { ac_try='test -s conftest$ac_exeext' | |
47560 | 8117 { (eval echo "$as_me:8117: \"$ac_try\"") >&5 |
8118 (eval $ac_try) 2>&5 | |
8119 ac_status=$? | |
8120 echo "$as_me:8120: \$? = $ac_status" >&5 | |
40056 | 8121 (exit $ac_status); }; }; then |
8122 eval "$as_ac_var=yes" | |
8123 else | |
8124 echo "$as_me: failed program was:" >&5 | |
8125 cat conftest.$ac_ext >&5 | |
8126 eval "$as_ac_var=no" | |
8127 fi | |
8128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8129 fi | |
47560 | 8130 echo "$as_me:8130: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8132 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8133 | |
45226 | 8134 cat >>confdefs.h <<EOF |
25897 | 8135 #define CRAY_STACKSEG_END $ac_func |
45226 | 8136 EOF |
25897 | 8137 |
40056 | 8138 break |
8139 fi | |
8140 | |
8141 done | |
8142 fi | |
8143 | |
47560 | 8144 echo "$as_me:8144: checking stack direction for C alloca" >&5 |
40056 | 8145 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
8146 if test "${ac_cv_c_stack_direction+set}" = set; then | |
8147 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 8148 else |
8149 if test "$cross_compiling" = yes; then | |
8150 ac_cv_c_stack_direction=0 | |
8151 else | |
40056 | 8152 cat >conftest.$ac_ext <<_ACEOF |
47560 | 8153 #line 8153 "configure" |
40056 | 8154 #include "confdefs.h" |
8155 int | |
25897 | 8156 find_stack_direction () |
8157 { | |
8158 static char *addr = 0; | |
8159 auto char dummy; | |
8160 if (addr == 0) | |
8161 { | |
8162 addr = &dummy; | |
8163 return find_stack_direction (); | |
8164 } | |
8165 else | |
8166 return (&dummy > addr) ? 1 : -1; | |
8167 } | |
40056 | 8168 |
8169 int | |
8170 main () | |
8171 { | |
8172 exit (find_stack_direction () < 0); | |
8173 } | |
8174 _ACEOF | |
8175 rm -f conftest$ac_exeext | |
47560 | 8176 if { (eval echo "$as_me:8176: \"$ac_link\"") >&5 |
8177 (eval $ac_link) 2>&5 | |
8178 ac_status=$? | |
8179 echo "$as_me:8179: \$? = $ac_status" >&5 | |
45668 | 8180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47560 | 8181 { (eval echo "$as_me:8181: \"$ac_try\"") >&5 |
8182 (eval $ac_try) 2>&5 | |
8183 ac_status=$? | |
8184 echo "$as_me:8184: \$? = $ac_status" >&5 | |
40056 | 8185 (exit $ac_status); }; }; then |
25897 | 8186 ac_cv_c_stack_direction=1 |
8187 else | |
40056 | 8188 echo "$as_me: program exited with status $ac_status" >&5 |
8189 echo "$as_me: failed program was:" >&5 | |
8190 cat conftest.$ac_ext >&5 | |
8191 ac_cv_c_stack_direction=-1 | |
8192 fi | |
8193 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8194 fi | |
8195 fi | |
47560 | 8196 echo "$as_me:8196: result: $ac_cv_c_stack_direction" >&5 |
40056 | 8197 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
8198 | |
45226 | 8199 cat >>confdefs.h <<EOF |
25897 | 8200 #define STACK_DIRECTION $ac_cv_c_stack_direction |
45226 | 8201 EOF |
8202 | |
8203 fi | |
25897 | 8204 |
8205 # fmod, logb, and frexp are found in -lm on most systems. | |
8206 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
40056 | 8207 |
47560 | 8208 echo "$as_me:8208: checking for sqrt in -lm" >&5 |
40056 | 8209 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
8210 if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
8211 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8212 else | |
8213 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8214 LIBS="-lm $LIBS" |
40056 | 8215 cat >conftest.$ac_ext <<_ACEOF |
47560 | 8216 #line 8216 "configure" |
40056 | 8217 #include "confdefs.h" |
8218 | |
25897 | 8219 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8220 #ifdef __cplusplus |
8221 extern "C" | |
8222 #endif | |
25897 | 8223 /* We use char because int might match the return type of a gcc2 |
40056 | 8224 builtin and then its argument prototype would still apply. */ |
8225 char sqrt (); | |
8226 int | |
8227 main () | |
8228 { | |
8229 sqrt (); | |
8230 ; | |
8231 return 0; | |
8232 } | |
8233 _ACEOF | |
8234 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 8235 if { (eval echo "$as_me:8235: \"$ac_link\"") >&5 |
8236 (eval $ac_link) 2>&5 | |
8237 ac_status=$? | |
8238 echo "$as_me:8238: \$? = $ac_status" >&5 | |
44493 | 8239 (exit $ac_status); } && |
8240 { ac_try='test -s conftest$ac_exeext' | |
47560 | 8241 { (eval echo "$as_me:8241: \"$ac_try\"") >&5 |
8242 (eval $ac_try) 2>&5 | |
8243 ac_status=$? | |
8244 echo "$as_me:8244: \$? = $ac_status" >&5 | |
40056 | 8245 (exit $ac_status); }; }; then |
8246 ac_cv_lib_m_sqrt=yes | |
8247 else | |
8248 echo "$as_me: failed program was:" >&5 | |
8249 cat conftest.$ac_ext >&5 | |
8250 ac_cv_lib_m_sqrt=no | |
8251 fi | |
8252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8253 LIBS=$ac_check_lib_save_LIBS | |
8254 fi | |
47560 | 8255 echo "$as_me:8255: result: $ac_cv_lib_m_sqrt" >&5 |
40056 | 8256 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
8257 if test $ac_cv_lib_m_sqrt = yes; then | |
45226 | 8258 cat >>confdefs.h <<EOF |
40056 | 8259 #define HAVE_LIBM 1 |
45226 | 8260 EOF |
25897 | 8261 |
8262 LIBS="-lm $LIBS" | |
8263 | |
40056 | 8264 fi |
25897 | 8265 |
8266 # Check for mail-locking functions in a "mail" library | |
40056 | 8267 |
47560 | 8268 echo "$as_me:8268: checking for maillock in -lmail" >&5 |
40056 | 8269 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
8270 if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
8271 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8272 else | |
8273 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8274 LIBS="-lmail $LIBS" |
40056 | 8275 cat >conftest.$ac_ext <<_ACEOF |
47560 | 8276 #line 8276 "configure" |
40056 | 8277 #include "confdefs.h" |
8278 | |
25897 | 8279 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8280 #ifdef __cplusplus |
8281 extern "C" | |
8282 #endif | |
25897 | 8283 /* We use char because int might match the return type of a gcc2 |
40056 | 8284 builtin and then its argument prototype would still apply. */ |
8285 char maillock (); | |
8286 int | |
8287 main () | |
8288 { | |
8289 maillock (); | |
8290 ; | |
8291 return 0; | |
8292 } | |
8293 _ACEOF | |
8294 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 8295 if { (eval echo "$as_me:8295: \"$ac_link\"") >&5 |
8296 (eval $ac_link) 2>&5 | |
8297 ac_status=$? | |
8298 echo "$as_me:8298: \$? = $ac_status" >&5 | |
44493 | 8299 (exit $ac_status); } && |
8300 { ac_try='test -s conftest$ac_exeext' | |
47560 | 8301 { (eval echo "$as_me:8301: \"$ac_try\"") >&5 |
8302 (eval $ac_try) 2>&5 | |
8303 ac_status=$? | |
8304 echo "$as_me:8304: \$? = $ac_status" >&5 | |
40056 | 8305 (exit $ac_status); }; }; then |
8306 ac_cv_lib_mail_maillock=yes | |
8307 else | |
8308 echo "$as_me: failed program was:" >&5 | |
8309 cat conftest.$ac_ext >&5 | |
8310 ac_cv_lib_mail_maillock=no | |
8311 fi | |
8312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8313 LIBS=$ac_check_lib_save_LIBS | |
8314 fi | |
47560 | 8315 echo "$as_me:8315: result: $ac_cv_lib_mail_maillock" >&5 |
40056 | 8316 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
8317 if test $ac_cv_lib_mail_maillock = yes; then | |
45226 | 8318 cat >>confdefs.h <<EOF |
40056 | 8319 #define HAVE_LIBMAIL 1 |
45226 | 8320 EOF |
25897 | 8321 |
8322 LIBS="-lmail $LIBS" | |
8323 | |
40056 | 8324 fi |
8325 | |
47560 | 8326 echo "$as_me:8326: checking for maillock in -llockfile" >&5 |
40056 | 8327 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
8328 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
8329 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8330 else | |
8331 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8332 LIBS="-llockfile $LIBS" |
40056 | 8333 cat >conftest.$ac_ext <<_ACEOF |
47560 | 8334 #line 8334 "configure" |
40056 | 8335 #include "confdefs.h" |
8336 | |
25897 | 8337 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8338 #ifdef __cplusplus |
8339 extern "C" | |
8340 #endif | |
25897 | 8341 /* We use char because int might match the return type of a gcc2 |
40056 | 8342 builtin and then its argument prototype would still apply. */ |
8343 char maillock (); | |
8344 int | |
8345 main () | |
8346 { | |
8347 maillock (); | |
8348 ; | |
8349 return 0; | |
8350 } | |
8351 _ACEOF | |
8352 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 8353 if { (eval echo "$as_me:8353: \"$ac_link\"") >&5 |
8354 (eval $ac_link) 2>&5 | |
8355 ac_status=$? | |
8356 echo "$as_me:8356: \$? = $ac_status" >&5 | |
44493 | 8357 (exit $ac_status); } && |
8358 { ac_try='test -s conftest$ac_exeext' | |
47560 | 8359 { (eval echo "$as_me:8359: \"$ac_try\"") >&5 |
8360 (eval $ac_try) 2>&5 | |
8361 ac_status=$? | |
8362 echo "$as_me:8362: \$? = $ac_status" >&5 | |
40056 | 8363 (exit $ac_status); }; }; then |
8364 ac_cv_lib_lockfile_maillock=yes | |
8365 else | |
8366 echo "$as_me: failed program was:" >&5 | |
8367 cat conftest.$ac_ext >&5 | |
8368 ac_cv_lib_lockfile_maillock=no | |
8369 fi | |
8370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8371 LIBS=$ac_check_lib_save_LIBS | |
8372 fi | |
47560 | 8373 echo "$as_me:8373: result: $ac_cv_lib_lockfile_maillock" >&5 |
40056 | 8374 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
8375 if test $ac_cv_lib_lockfile_maillock = yes; then | |
45226 | 8376 cat >>confdefs.h <<EOF |
40056 | 8377 #define HAVE_LIBLOCKFILE 1 |
45226 | 8378 EOF |
25897 | 8379 |
8380 LIBS="-llockfile $LIBS" | |
8381 | |
8382 fi | |
8383 | |
8384 # If we have the shared liblockfile, assume we must use it for mail | |
8385 # locking (e.g. Debian). If we couldn't link against liblockfile | |
8386 # (no liblockfile.a installed), ensure that we don't need to. | |
8387 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
8388 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
8389 set dummy liblockfile.so; ac_word=$2 | |
47560 | 8390 echo "$as_me:8390: checking for $ac_word" >&5 |
40056 | 8391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8392 if test "${ac_cv_prog_liblockfile+set}" = set; then | |
8393 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 8394 else |
8395 if test -n "$liblockfile"; then | |
8396 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
8397 else | |
45226 | 8398 ac_save_IFS=$IFS; IFS=$ac_path_separator |
8399 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
8400 for ac_dir in $ac_dummy; do | |
8401 IFS=$ac_save_IFS | |
8402 test -z "$ac_dir" && ac_dir=. | |
8403 $as_executable_p "$ac_dir/$ac_word" || continue | |
8404 ac_cv_prog_liblockfile="yes" | |
47560 | 8405 echo "$as_me:8405: found $ac_dir/$ac_word" >&5 |
45226 | 8406 break |
40056 | 8407 done |
8408 | |
25897 | 8409 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
8410 fi | |
8411 fi | |
40056 | 8412 liblockfile=$ac_cv_prog_liblockfile |
25897 | 8413 if test -n "$liblockfile"; then |
47560 | 8414 echo "$as_me:8414: result: $liblockfile" >&5 |
40056 | 8415 echo "${ECHO_T}$liblockfile" >&6 |
8416 else | |
47560 | 8417 echo "$as_me:8417: result: no" >&5 |
40056 | 8418 echo "${ECHO_T}no" >&6 |
25897 | 8419 fi |
8420 | |
8421 if test $ac_cv_prog_liblockfile = yes; then | |
47560 | 8422 { { echo "$as_me:8422: error: Shared liblockfile found but can't link against it. |
25897 | 8423 This probably means that movemail could lose mail. |
40056 | 8424 There may be a \`development' package to install containing liblockfile." >&5 |
8425 echo "$as_me: error: Shared liblockfile found but can't link against it. | |
8426 This probably means that movemail could lose mail. | |
8427 There may be a \`development' package to install containing liblockfile." >&2;} | |
8428 { (exit 1); exit 1; }; } | |
44569 | 8429 else |
45226 | 8430 cat >>confdefs.h <<\EOF |
25897 | 8431 #define LIBMAIL -llockfile |
45226 | 8432 EOF |
25897 | 8433 |
8434 fi | |
8435 else : | |
8436 fi | |
40056 | 8437 |
25897 | 8438 for ac_func in touchlock |
8439 do | |
40056 | 8440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
47560 | 8441 echo "$as_me:8441: checking for $ac_func" >&5 |
40056 | 8442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8443 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8444 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8445 else | |
8446 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 8447 #line 8447 "configure" |
25897 | 8448 #include "confdefs.h" |
8449 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8450 which can conflict with char $ac_func (); below. */ |
25897 | 8451 #include <assert.h> |
8452 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8453 #ifdef __cplusplus |
8454 extern "C" | |
8455 #endif | |
25897 | 8456 /* We use char because int might match the return type of a gcc2 |
40056 | 8457 builtin and then its argument prototype would still apply. */ |
8458 char $ac_func (); | |
8459 char (*f) (); | |
8460 | |
8461 int | |
8462 main () | |
8463 { | |
25897 | 8464 /* The GNU C library defines this for functions which it implements |
8465 to always fail with ENOSYS. Some functions are actually named | |
8466 something starting with __ and the normal name is an alias. */ | |
8467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8468 choke me | |
8469 #else | |
40056 | 8470 f = $ac_func; |
8471 #endif | |
8472 | |
8473 ; | |
8474 return 0; | |
8475 } | |
8476 _ACEOF | |
8477 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 8478 if { (eval echo "$as_me:8478: \"$ac_link\"") >&5 |
8479 (eval $ac_link) 2>&5 | |
8480 ac_status=$? | |
8481 echo "$as_me:8481: \$? = $ac_status" >&5 | |
44493 | 8482 (exit $ac_status); } && |
8483 { ac_try='test -s conftest$ac_exeext' | |
47560 | 8484 { (eval echo "$as_me:8484: \"$ac_try\"") >&5 |
8485 (eval $ac_try) 2>&5 | |
8486 ac_status=$? | |
8487 echo "$as_me:8487: \$? = $ac_status" >&5 | |
40056 | 8488 (exit $ac_status); }; }; then |
8489 eval "$as_ac_var=yes" | |
8490 else | |
8491 echo "$as_me: failed program was:" >&5 | |
8492 cat conftest.$ac_ext >&5 | |
8493 eval "$as_ac_var=no" | |
8494 fi | |
8495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8496 fi | |
47560 | 8497 echo "$as_me:8497: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8499 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 8500 cat >>confdefs.h <<EOF |
40056 | 8501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 8502 EOF |
8503 | |
8504 fi | |
8505 done | |
25897 | 8506 |
44435 | 8507 for ac_header in maillock.h |
25897 | 8508 do |
40056 | 8509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
47560 | 8510 echo "$as_me:8510: checking for $ac_header" >&5 |
40056 | 8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8512 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8513 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 8514 else |
8515 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 8516 #line 8516 "configure" |
40056 | 8517 #include "confdefs.h" |
8518 #include <$ac_header> | |
8519 _ACEOF | |
47560 | 8520 if { (eval echo "$as_me:8520: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8522 ac_status=$? | |
8523 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8524 rm -f conftest.er1 | |
8525 cat conftest.err >&5 | |
47560 | 8526 echo "$as_me:8526: \$? = $ac_status" >&5 |
40056 | 8527 (exit $ac_status); } >/dev/null; then |
8528 if test -s conftest.err; then | |
8529 ac_cpp_err=$ac_c_preproc_warn_flag | |
8530 else | |
8531 ac_cpp_err= | |
8532 fi | |
8533 else | |
8534 ac_cpp_err=yes | |
8535 fi | |
8536 if test -z "$ac_cpp_err"; then | |
45226 | 8537 eval "$as_ac_Header=yes" |
40056 | 8538 else |
8539 echo "$as_me: failed program was:" >&5 | |
25897 | 8540 cat conftest.$ac_ext >&5 |
45226 | 8541 eval "$as_ac_Header=no" |
40056 | 8542 fi |
8543 rm -f conftest.err conftest.$ac_ext | |
45226 | 8544 fi |
47560 | 8545 echo "$as_me:8545: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 8546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8547 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 8548 cat >>confdefs.h <<EOF |
40056 | 8549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 8550 EOF |
8551 | |
8552 fi | |
8553 done | |
25897 | 8554 |
44001
54ecf0606394
Manually edited to add checks for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43924
diff
changeset
|
8555 for ac_func in gethostname getdomainname dup2 \ |
25897 | 8556 rename closedir mkdir rmdir sysinfo \ |
8557 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
8558 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
29733 | 8559 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
42401 | 8560 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
44001
54ecf0606394
Manually edited to add checks for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43924
diff
changeset
|
8561 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
44493 | 8562 gai_strerror mkstemp getline getdelim |
25897 | 8563 do |
40056 | 8564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
47560 | 8565 echo "$as_me:8565: checking for $ac_func" >&5 |
40056 | 8566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8567 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8568 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8569 else | |
8570 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 8571 #line 8571 "configure" |
25897 | 8572 #include "confdefs.h" |
8573 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8574 which can conflict with char $ac_func (); below. */ |
25897 | 8575 #include <assert.h> |
8576 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8577 #ifdef __cplusplus |
8578 extern "C" | |
8579 #endif | |
25897 | 8580 /* We use char because int might match the return type of a gcc2 |
40056 | 8581 builtin and then its argument prototype would still apply. */ |
8582 char $ac_func (); | |
8583 char (*f) (); | |
8584 | |
8585 int | |
8586 main () | |
8587 { | |
25897 | 8588 /* The GNU C library defines this for functions which it implements |
8589 to always fail with ENOSYS. Some functions are actually named | |
8590 something starting with __ and the normal name is an alias. */ | |
8591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8592 choke me | |
8593 #else | |
40056 | 8594 f = $ac_func; |
8595 #endif | |
8596 | |
8597 ; | |
8598 return 0; | |
8599 } | |
8600 _ACEOF | |
8601 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 8602 if { (eval echo "$as_me:8602: \"$ac_link\"") >&5 |
8603 (eval $ac_link) 2>&5 | |
8604 ac_status=$? | |
8605 echo "$as_me:8605: \$? = $ac_status" >&5 | |
44493 | 8606 (exit $ac_status); } && |
8607 { ac_try='test -s conftest$ac_exeext' | |
47560 | 8608 { (eval echo "$as_me:8608: \"$ac_try\"") >&5 |
8609 (eval $ac_try) 2>&5 | |
8610 ac_status=$? | |
8611 echo "$as_me:8611: \$? = $ac_status" >&5 | |
40056 | 8612 (exit $ac_status); }; }; then |
8613 eval "$as_ac_var=yes" | |
8614 else | |
8615 echo "$as_me: failed program was:" >&5 | |
8616 cat conftest.$ac_ext >&5 | |
8617 eval "$as_ac_var=no" | |
8618 fi | |
8619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8620 fi | |
47560 | 8621 echo "$as_me:8621: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8623 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 8624 cat >>confdefs.h <<EOF |
40056 | 8625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 8626 EOF |
8627 | |
8628 fi | |
8629 done | |
25897 | 8630 |
44435 | 8631 for ac_header in sys/un.h |
28607 | 8632 do |
40056 | 8633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
47560 | 8634 echo "$as_me:8634: checking for $ac_header" >&5 |
40056 | 8635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8636 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8637 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 8638 else |
8639 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 8640 #line 8640 "configure" |
40056 | 8641 #include "confdefs.h" |
8642 #include <$ac_header> | |
8643 _ACEOF | |
47560 | 8644 if { (eval echo "$as_me:8644: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8646 ac_status=$? | |
8647 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8648 rm -f conftest.er1 | |
8649 cat conftest.err >&5 | |
47560 | 8650 echo "$as_me:8650: \$? = $ac_status" >&5 |
40056 | 8651 (exit $ac_status); } >/dev/null; then |
8652 if test -s conftest.err; then | |
8653 ac_cpp_err=$ac_c_preproc_warn_flag | |
8654 else | |
8655 ac_cpp_err= | |
8656 fi | |
8657 else | |
8658 ac_cpp_err=yes | |
8659 fi | |
8660 if test -z "$ac_cpp_err"; then | |
45226 | 8661 eval "$as_ac_Header=yes" |
40056 | 8662 else |
8663 echo "$as_me: failed program was:" >&5 | |
28607 | 8664 cat conftest.$ac_ext >&5 |
45226 | 8665 eval "$as_ac_Header=no" |
40056 | 8666 fi |
8667 rm -f conftest.err conftest.$ac_ext | |
45226 | 8668 fi |
47560 | 8669 echo "$as_me:8669: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
44435 | 8670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8671 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 8672 cat >>confdefs.h <<EOF |
44435 | 8673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 8674 EOF |
8675 | |
8676 fi | |
8677 done | |
44435 | 8678 |
8679 for ac_header in sys/time.h unistd.h | |
8680 do | |
8681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47560 | 8682 echo "$as_me:8682: checking for $ac_header" >&5 |
44435 | 8683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8684 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8685 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 8686 else |
8687 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 8688 #line 8688 "configure" |
44435 | 8689 #include "confdefs.h" |
8690 #include <$ac_header> | |
8691 _ACEOF | |
47560 | 8692 if { (eval echo "$as_me:8692: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44435 | 8693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8694 ac_status=$? | |
8695 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8696 rm -f conftest.er1 | |
8697 cat conftest.err >&5 | |
47560 | 8698 echo "$as_me:8698: \$? = $ac_status" >&5 |
44435 | 8699 (exit $ac_status); } >/dev/null; then |
8700 if test -s conftest.err; then | |
8701 ac_cpp_err=$ac_c_preproc_warn_flag | |
8702 else | |
8703 ac_cpp_err= | |
8704 fi | |
8705 else | |
8706 ac_cpp_err=yes | |
8707 fi | |
8708 if test -z "$ac_cpp_err"; then | |
45226 | 8709 eval "$as_ac_Header=yes" |
44435 | 8710 else |
8711 echo "$as_me: failed program was:" >&5 | |
8712 cat conftest.$ac_ext >&5 | |
45226 | 8713 eval "$as_ac_Header=no" |
44435 | 8714 fi |
8715 rm -f conftest.err conftest.$ac_ext | |
45226 | 8716 fi |
47560 | 8717 echo "$as_me:8717: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 8718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8719 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 8720 cat >>confdefs.h <<EOF |
40056 | 8721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 8722 EOF |
8723 | |
8724 fi | |
8725 done | |
28607 | 8726 |
8727 for ac_func in alarm | |
8728 do | |
40056 | 8729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
47560 | 8730 echo "$as_me:8730: checking for $ac_func" >&5 |
40056 | 8731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8732 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8733 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8734 else | |
8735 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 8736 #line 8736 "configure" |
28607 | 8737 #include "confdefs.h" |
8738 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8739 which can conflict with char $ac_func (); below. */ |
28607 | 8740 #include <assert.h> |
8741 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8742 #ifdef __cplusplus |
8743 extern "C" | |
8744 #endif | |
28607 | 8745 /* We use char because int might match the return type of a gcc2 |
40056 | 8746 builtin and then its argument prototype would still apply. */ |
8747 char $ac_func (); | |
8748 char (*f) (); | |
8749 | |
8750 int | |
8751 main () | |
8752 { | |
28607 | 8753 /* The GNU C library defines this for functions which it implements |
8754 to always fail with ENOSYS. Some functions are actually named | |
8755 something starting with __ and the normal name is an alias. */ | |
8756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8757 choke me | |
8758 #else | |
40056 | 8759 f = $ac_func; |
8760 #endif | |
8761 | |
8762 ; | |
8763 return 0; | |
8764 } | |
8765 _ACEOF | |
8766 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 8767 if { (eval echo "$as_me:8767: \"$ac_link\"") >&5 |
8768 (eval $ac_link) 2>&5 | |
8769 ac_status=$? | |
8770 echo "$as_me:8770: \$? = $ac_status" >&5 | |
44493 | 8771 (exit $ac_status); } && |
8772 { ac_try='test -s conftest$ac_exeext' | |
47560 | 8773 { (eval echo "$as_me:8773: \"$ac_try\"") >&5 |
8774 (eval $ac_try) 2>&5 | |
8775 ac_status=$? | |
8776 echo "$as_me:8776: \$? = $ac_status" >&5 | |
40056 | 8777 (exit $ac_status); }; }; then |
8778 eval "$as_ac_var=yes" | |
8779 else | |
8780 echo "$as_me: failed program was:" >&5 | |
8781 cat conftest.$ac_ext >&5 | |
8782 eval "$as_ac_var=no" | |
8783 fi | |
8784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8785 fi | |
47560 | 8786 echo "$as_me:8786: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8788 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 8789 cat >>confdefs.h <<EOF |
40056 | 8790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 8791 EOF |
8792 | |
8793 fi | |
8794 done | |
8795 | |
47560 | 8796 echo "$as_me:8796: checking for working mktime" >&5 |
40056 | 8797 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
8798 if test "${ac_cv_func_working_mktime+set}" = set; then | |
8799 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28607 | 8800 else |
8801 if test "$cross_compiling" = yes; then | |
8802 ac_cv_func_working_mktime=no | |
8803 else | |
40056 | 8804 cat >conftest.$ac_ext <<_ACEOF |
47560 | 8805 #line 8805 "configure" |
40056 | 8806 #include "confdefs.h" |
8807 /* Test program from Paul Eggert and Tony Leneis. */ | |
28607 | 8808 #if TIME_WITH_SYS_TIME |
8809 # include <sys/time.h> | |
8810 # include <time.h> | |
8811 #else | |
8812 # if HAVE_SYS_TIME_H | |
8813 # include <sys/time.h> | |
8814 # else | |
8815 # include <time.h> | |
8816 # endif | |
8817 #endif | |
8818 | |
8819 #if HAVE_UNISTD_H | |
8820 # include <unistd.h> | |
8821 #endif | |
8822 | |
8823 #if !HAVE_ALARM | |
8824 # define alarm(X) /* empty */ | |
8825 #endif | |
8826 | |
8827 /* Work around redefinition to rpl_putenv by other config tests. */ | |
8828 #undef putenv | |
8829 | |
8830 static time_t time_t_max; | |
8831 | |
8832 /* Values we'll use to set the TZ environment variable. */ | |
8833 static const char *const tz_strings[] = { | |
8834 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
8835 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
8836 }; | |
8837 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
8838 | |
8839 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
8840 Based on a problem report from Andreas Jaeger. */ | |
8841 static void | |
8842 spring_forward_gap () | |
8843 { | |
40056 | 8844 /* glibc (up to about 1998-10-07) failed this test. */ |
28607 | 8845 struct tm tm; |
8846 | |
8847 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
8848 instead of "TZ=America/Vancouver" in order to detect the bug even | |
8849 on systems that don't support the Olson extension, or don't have the | |
8850 full zoneinfo tables installed. */ | |
8851 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
8852 | |
8853 tm.tm_year = 98; | |
8854 tm.tm_mon = 3; | |
8855 tm.tm_mday = 5; | |
8856 tm.tm_hour = 2; | |
8857 tm.tm_min = 0; | |
8858 tm.tm_sec = 0; | |
8859 tm.tm_isdst = -1; | |
8860 if (mktime (&tm) == (time_t)-1) | |
8861 exit (1); | |
8862 } | |
8863 | |
8864 static void | |
8865 mktime_test (now) | |
8866 time_t now; | |
8867 { | |
8868 struct tm *lt; | |
8869 if ((lt = localtime (&now)) && mktime (lt) != now) | |
8870 exit (1); | |
8871 now = time_t_max - now; | |
8872 if ((lt = localtime (&now)) && mktime (lt) != now) | |
8873 exit (1); | |
8874 } | |
8875 | |
8876 static void | |
8877 irix_6_4_bug () | |
8878 { | |
8879 /* Based on code from Ariel Faigon. */ | |
8880 struct tm tm; | |
8881 tm.tm_year = 96; | |
8882 tm.tm_mon = 3; | |
8883 tm.tm_mday = 0; | |
8884 tm.tm_hour = 0; | |
8885 tm.tm_min = 0; | |
8886 tm.tm_sec = 0; | |
8887 tm.tm_isdst = -1; | |
8888 mktime (&tm); | |
8889 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
8890 exit (1); | |
8891 } | |
8892 | |
8893 static void | |
8894 bigtime_test (j) | |
8895 int j; | |
8896 { | |
8897 struct tm tm; | |
8898 time_t now; | |
8899 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
8900 now = mktime (&tm); | |
8901 if (now != (time_t) -1) | |
8902 { | |
8903 struct tm *lt = localtime (&now); | |
8904 if (! (lt | |
8905 && lt->tm_year == tm.tm_year | |
8906 && lt->tm_mon == tm.tm_mon | |
8907 && lt->tm_mday == tm.tm_mday | |
8908 && lt->tm_hour == tm.tm_hour | |
8909 && lt->tm_min == tm.tm_min | |
8910 && lt->tm_sec == tm.tm_sec | |
8911 && lt->tm_yday == tm.tm_yday | |
8912 && lt->tm_wday == tm.tm_wday | |
8913 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
8914 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
8915 exit (1); | |
8916 } | |
8917 } | |
8918 | |
8919 int | |
8920 main () | |
8921 { | |
8922 time_t t, delta; | |
8923 int i, j; | |
8924 | |
8925 /* This test makes some buggy mktime implementations loop. | |
8926 Give up after 60 seconds; a mktime slower than that | |
8927 isn't worth using anyway. */ | |
8928 alarm (60); | |
8929 | |
8930 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
8931 continue; | |
8932 time_t_max--; | |
8933 delta = time_t_max / 997; /* a suitable prime number */ | |
8934 for (i = 0; i < N_STRINGS; i++) | |
8935 { | |
8936 if (tz_strings[i]) | |
8937 putenv (tz_strings[i]); | |
8938 | |
8939 for (t = 0; t <= time_t_max - delta; t += delta) | |
8940 mktime_test (t); | |
8941 mktime_test ((time_t) 60 * 60); | |
8942 mktime_test ((time_t) 60 * 60 * 24); | |
8943 | |
8944 for (j = 1; 0 < j; j *= 2) | |
8945 bigtime_test (j); | |
8946 bigtime_test (j - 1); | |
8947 } | |
8948 irix_6_4_bug (); | |
8949 spring_forward_gap (); | |
8950 exit (0); | |
8951 } | |
40056 | 8952 _ACEOF |
8953 rm -f conftest$ac_exeext | |
47560 | 8954 if { (eval echo "$as_me:8954: \"$ac_link\"") >&5 |
8955 (eval $ac_link) 2>&5 | |
8956 ac_status=$? | |
8957 echo "$as_me:8957: \$? = $ac_status" >&5 | |
45668 | 8958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47560 | 8959 { (eval echo "$as_me:8959: \"$ac_try\"") >&5 |
8960 (eval $ac_try) 2>&5 | |
8961 ac_status=$? | |
8962 echo "$as_me:8962: \$? = $ac_status" >&5 | |
40056 | 8963 (exit $ac_status); }; }; then |
28607 | 8964 ac_cv_func_working_mktime=yes |
8965 else | |
40056 | 8966 echo "$as_me: program exited with status $ac_status" >&5 |
8967 echo "$as_me: failed program was:" >&5 | |
8968 cat conftest.$ac_ext >&5 | |
8969 ac_cv_func_working_mktime=no | |
8970 fi | |
8971 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8972 fi | |
8973 fi | |
47560 | 8974 echo "$as_me:8974: result: $ac_cv_func_working_mktime" >&5 |
40056 | 8975 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
28607 | 8976 if test $ac_cv_func_working_mktime = no; then |
40056 | 8977 LIBOBJS="$LIBOBJS mktime.$ac_objext" |
28607 | 8978 fi |
8979 | |
8980 if test "$ac_cv_func_working_mktime" = no; then | |
44569 | 8981 |
45226 | 8982 cat >>confdefs.h <<\EOF |
28607 | 8983 #define BROKEN_MKTIME 1 |
45226 | 8984 EOF |
28607 | 8985 |
8986 fi | |
8987 | |
29834 | 8988 ac_have_func=no # yes means we've found a way to get the load average. |
8989 | |
40056 | 8990 ac_save_LIBS=$LIBS |
8991 | |
8992 # Check for getloadavg, but be sure not to touch the cache variable. | |
47560 | 8993 (echo "$as_me:8993: checking for getloadavg" >&5 |
40056 | 8994 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
8995 if test "${ac_cv_func_getloadavg+set}" = set; then | |
8996 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8997 else | |
8998 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 8999 #line 8999 "configure" |
40056 | 9000 #include "confdefs.h" |
9001 /* System header to define __stub macros and hopefully few prototypes, | |
9002 which can conflict with char getloadavg (); below. */ | |
9003 #include <assert.h> | |
9004 /* Override any gcc2 internal prototype to avoid an error. */ | |
9005 #ifdef __cplusplus | |
9006 extern "C" | |
9007 #endif | |
9008 /* We use char because int might match the return type of a gcc2 | |
9009 builtin and then its argument prototype would still apply. */ | |
9010 char getloadavg (); | |
9011 char (*f) (); | |
9012 | |
9013 int | |
9014 main () | |
9015 { | |
9016 /* The GNU C library defines this for functions which it implements | |
9017 to always fail with ENOSYS. Some functions are actually named | |
9018 something starting with __ and the normal name is an alias. */ | |
9019 #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
9020 choke me | |
9021 #else | |
9022 f = getloadavg; | |
9023 #endif | |
9024 | |
9025 ; | |
9026 return 0; | |
9027 } | |
9028 _ACEOF | |
9029 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 9030 if { (eval echo "$as_me:9030: \"$ac_link\"") >&5 |
9031 (eval $ac_link) 2>&5 | |
9032 ac_status=$? | |
9033 echo "$as_me:9033: \$? = $ac_status" >&5 | |
44493 | 9034 (exit $ac_status); } && |
9035 { ac_try='test -s conftest$ac_exeext' | |
47560 | 9036 { (eval echo "$as_me:9036: \"$ac_try\"") >&5 |
9037 (eval $ac_try) 2>&5 | |
9038 ac_status=$? | |
9039 echo "$as_me:9039: \$? = $ac_status" >&5 | |
40056 | 9040 (exit $ac_status); }; }; then |
9041 ac_cv_func_getloadavg=yes | |
9042 else | |
9043 echo "$as_me: failed program was:" >&5 | |
9044 cat conftest.$ac_ext >&5 | |
9045 ac_cv_func_getloadavg=no | |
9046 fi | |
9047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9048 fi | |
47560 | 9049 echo "$as_me:9049: result: $ac_cv_func_getloadavg" >&5 |
40056 | 9050 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
9051 if test $ac_cv_func_getloadavg = yes; then | |
9052 exit 0 | |
9053 else | |
9054 exit 1 | |
9055 fi | |
9056 ) && ac_have_func=yes | |
9057 | |
9058 # On HPUX9, an unprivileged user can get load averages through this function. | |
9059 | |
9060 for ac_func in pstat_getdynamic | |
9061 do | |
9062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
47560 | 9063 echo "$as_me:9063: checking for $ac_func" >&5 |
40056 | 9064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9065 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9066 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9067 else | |
9068 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9069 #line 9069 "configure" |
40056 | 9070 #include "confdefs.h" |
9071 /* System header to define __stub macros and hopefully few prototypes, | |
9072 which can conflict with char $ac_func (); below. */ | |
9073 #include <assert.h> | |
9074 /* Override any gcc2 internal prototype to avoid an error. */ | |
9075 #ifdef __cplusplus | |
9076 extern "C" | |
9077 #endif | |
9078 /* We use char because int might match the return type of a gcc2 | |
9079 builtin and then its argument prototype would still apply. */ | |
9080 char $ac_func (); | |
9081 char (*f) (); | |
9082 | |
9083 int | |
9084 main () | |
9085 { | |
9086 /* The GNU C library defines this for functions which it implements | |
9087 to always fail with ENOSYS. Some functions are actually named | |
9088 something starting with __ and the normal name is an alias. */ | |
9089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9090 choke me | |
9091 #else | |
9092 f = $ac_func; | |
9093 #endif | |
9094 | |
9095 ; | |
9096 return 0; | |
9097 } | |
9098 _ACEOF | |
9099 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 9100 if { (eval echo "$as_me:9100: \"$ac_link\"") >&5 |
9101 (eval $ac_link) 2>&5 | |
9102 ac_status=$? | |
9103 echo "$as_me:9103: \$? = $ac_status" >&5 | |
44493 | 9104 (exit $ac_status); } && |
9105 { ac_try='test -s conftest$ac_exeext' | |
47560 | 9106 { (eval echo "$as_me:9106: \"$ac_try\"") >&5 |
9107 (eval $ac_try) 2>&5 | |
9108 ac_status=$? | |
9109 echo "$as_me:9109: \$? = $ac_status" >&5 | |
40056 | 9110 (exit $ac_status); }; }; then |
9111 eval "$as_ac_var=yes" | |
9112 else | |
9113 echo "$as_me: failed program was:" >&5 | |
9114 cat conftest.$ac_ext >&5 | |
9115 eval "$as_ac_var=no" | |
9116 fi | |
9117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9118 fi | |
47560 | 9119 echo "$as_me:9119: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 9120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9121 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 9122 cat >>confdefs.h <<EOF |
40056 | 9123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 9124 EOF |
9125 | |
9126 fi | |
9127 done | |
40056 | 9128 |
9129 # Solaris has libkstat which does not require root. | |
9130 | |
47560 | 9131 echo "$as_me:9131: checking for kstat_open in -lkstat" >&5 |
40056 | 9132 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
9133 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
9134 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9135 else | |
9136 ac_check_lib_save_LIBS=$LIBS | |
9137 LIBS="-lkstat $LIBS" | |
9138 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9139 #line 9139 "configure" |
40056 | 9140 #include "confdefs.h" |
9141 | |
9142 /* Override any gcc2 internal prototype to avoid an error. */ | |
9143 #ifdef __cplusplus | |
9144 extern "C" | |
9145 #endif | |
9146 /* We use char because int might match the return type of a gcc2 | |
9147 builtin and then its argument prototype would still apply. */ | |
9148 char kstat_open (); | |
9149 int | |
9150 main () | |
9151 { | |
9152 kstat_open (); | |
9153 ; | |
9154 return 0; | |
9155 } | |
9156 _ACEOF | |
9157 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 9158 if { (eval echo "$as_me:9158: \"$ac_link\"") >&5 |
9159 (eval $ac_link) 2>&5 | |
9160 ac_status=$? | |
9161 echo "$as_me:9161: \$? = $ac_status" >&5 | |
44493 | 9162 (exit $ac_status); } && |
9163 { ac_try='test -s conftest$ac_exeext' | |
47560 | 9164 { (eval echo "$as_me:9164: \"$ac_try\"") >&5 |
9165 (eval $ac_try) 2>&5 | |
9166 ac_status=$? | |
9167 echo "$as_me:9167: \$? = $ac_status" >&5 | |
40056 | 9168 (exit $ac_status); }; }; then |
9169 ac_cv_lib_kstat_kstat_open=yes | |
9170 else | |
9171 echo "$as_me: failed program was:" >&5 | |
9172 cat conftest.$ac_ext >&5 | |
9173 ac_cv_lib_kstat_kstat_open=no | |
9174 fi | |
9175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9176 LIBS=$ac_check_lib_save_LIBS | |
9177 fi | |
47560 | 9178 echo "$as_me:9178: result: $ac_cv_lib_kstat_kstat_open" >&5 |
40056 | 9179 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
9180 if test $ac_cv_lib_kstat_kstat_open = yes; then | |
45226 | 9181 cat >>confdefs.h <<EOF |
40056 | 9182 #define HAVE_LIBKSTAT 1 |
45226 | 9183 EOF |
40056 | 9184 |
9185 LIBS="-lkstat $LIBS" | |
9186 | |
9187 fi | |
9188 | |
9189 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes | |
9190 | |
29834 | 9191 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
9192 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
9193 # to get the right answer into the cache. | |
40056 | 9194 # For kstat on solaris, we need libelf to force the definition of SVR4 below. |
9195 if test $ac_have_func = no; then | |
47560 | 9196 echo "$as_me:9196: checking for elf_begin in -lelf" >&5 |
40056 | 9197 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
9198 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
9199 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9200 else | |
9201 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9202 LIBS="-lelf $LIBS" |
40056 | 9203 cat >conftest.$ac_ext <<_ACEOF |
47560 | 9204 #line 9204 "configure" |
40056 | 9205 #include "confdefs.h" |
9206 | |
29834 | 9207 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9208 #ifdef __cplusplus |
9209 extern "C" | |
9210 #endif | |
29834 | 9211 /* We use char because int might match the return type of a gcc2 |
40056 | 9212 builtin and then its argument prototype would still apply. */ |
9213 char elf_begin (); | |
9214 int | |
9215 main () | |
9216 { | |
9217 elf_begin (); | |
9218 ; | |
9219 return 0; | |
9220 } | |
9221 _ACEOF | |
9222 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 9223 if { (eval echo "$as_me:9223: \"$ac_link\"") >&5 |
9224 (eval $ac_link) 2>&5 | |
9225 ac_status=$? | |
9226 echo "$as_me:9226: \$? = $ac_status" >&5 | |
44493 | 9227 (exit $ac_status); } && |
9228 { ac_try='test -s conftest$ac_exeext' | |
47560 | 9229 { (eval echo "$as_me:9229: \"$ac_try\"") >&5 |
9230 (eval $ac_try) 2>&5 | |
9231 ac_status=$? | |
9232 echo "$as_me:9232: \$? = $ac_status" >&5 | |
40056 | 9233 (exit $ac_status); }; }; then |
9234 ac_cv_lib_elf_elf_begin=yes | |
9235 else | |
9236 echo "$as_me: failed program was:" >&5 | |
9237 cat conftest.$ac_ext >&5 | |
9238 ac_cv_lib_elf_elf_begin=no | |
9239 fi | |
9240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9241 LIBS=$ac_check_lib_save_LIBS | |
9242 fi | |
47560 | 9243 echo "$as_me:9243: result: $ac_cv_lib_elf_elf_begin" >&5 |
40056 | 9244 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
9245 if test $ac_cv_lib_elf_elf_begin = yes; then | |
29834 | 9246 LIBS="-lelf $LIBS" |
40056 | 9247 fi |
9248 | |
9249 fi | |
9250 if test $ac_have_func = no; then | |
47560 | 9251 echo "$as_me:9251: checking for kvm_open in -lkvm" >&5 |
40056 | 9252 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
9253 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
9254 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9255 else | |
9256 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9257 LIBS="-lkvm $LIBS" |
40056 | 9258 cat >conftest.$ac_ext <<_ACEOF |
47560 | 9259 #line 9259 "configure" |
40056 | 9260 #include "confdefs.h" |
9261 | |
29834 | 9262 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9263 #ifdef __cplusplus |
9264 extern "C" | |
9265 #endif | |
29834 | 9266 /* We use char because int might match the return type of a gcc2 |
40056 | 9267 builtin and then its argument prototype would still apply. */ |
9268 char kvm_open (); | |
9269 int | |
9270 main () | |
9271 { | |
9272 kvm_open (); | |
9273 ; | |
9274 return 0; | |
9275 } | |
9276 _ACEOF | |
9277 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 9278 if { (eval echo "$as_me:9278: \"$ac_link\"") >&5 |
9279 (eval $ac_link) 2>&5 | |
9280 ac_status=$? | |
9281 echo "$as_me:9281: \$? = $ac_status" >&5 | |
44493 | 9282 (exit $ac_status); } && |
9283 { ac_try='test -s conftest$ac_exeext' | |
47560 | 9284 { (eval echo "$as_me:9284: \"$ac_try\"") >&5 |
9285 (eval $ac_try) 2>&5 | |
9286 ac_status=$? | |
9287 echo "$as_me:9287: \$? = $ac_status" >&5 | |
40056 | 9288 (exit $ac_status); }; }; then |
9289 ac_cv_lib_kvm_kvm_open=yes | |
9290 else | |
9291 echo "$as_me: failed program was:" >&5 | |
9292 cat conftest.$ac_ext >&5 | |
9293 ac_cv_lib_kvm_kvm_open=no | |
9294 fi | |
9295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9296 LIBS=$ac_check_lib_save_LIBS | |
9297 fi | |
47560 | 9298 echo "$as_me:9298: result: $ac_cv_lib_kvm_kvm_open" >&5 |
40056 | 9299 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
9300 if test $ac_cv_lib_kvm_kvm_open = yes; then | |
29834 | 9301 LIBS="-lkvm $LIBS" |
40056 | 9302 fi |
9303 | |
9304 # Check for the 4.4BSD definition of getloadavg. | |
47560 | 9305 echo "$as_me:9305: checking for getloadavg in -lutil" >&5 |
40056 | 9306 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
9307 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
9308 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9309 else | |
9310 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9311 LIBS="-lutil $LIBS" |
40056 | 9312 cat >conftest.$ac_ext <<_ACEOF |
47560 | 9313 #line 9313 "configure" |
40056 | 9314 #include "confdefs.h" |
9315 | |
29834 | 9316 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9317 #ifdef __cplusplus |
9318 extern "C" | |
9319 #endif | |
29834 | 9320 /* We use char because int might match the return type of a gcc2 |
40056 | 9321 builtin and then its argument prototype would still apply. */ |
9322 char getloadavg (); | |
9323 int | |
9324 main () | |
9325 { | |
9326 getloadavg (); | |
9327 ; | |
9328 return 0; | |
9329 } | |
9330 _ACEOF | |
9331 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 9332 if { (eval echo "$as_me:9332: \"$ac_link\"") >&5 |
9333 (eval $ac_link) 2>&5 | |
9334 ac_status=$? | |
9335 echo "$as_me:9335: \$? = $ac_status" >&5 | |
44493 | 9336 (exit $ac_status); } && |
9337 { ac_try='test -s conftest$ac_exeext' | |
47560 | 9338 { (eval echo "$as_me:9338: \"$ac_try\"") >&5 |
9339 (eval $ac_try) 2>&5 | |
9340 ac_status=$? | |
9341 echo "$as_me:9341: \$? = $ac_status" >&5 | |
40056 | 9342 (exit $ac_status); }; }; then |
9343 ac_cv_lib_util_getloadavg=yes | |
9344 else | |
9345 echo "$as_me: failed program was:" >&5 | |
9346 cat conftest.$ac_ext >&5 | |
9347 ac_cv_lib_util_getloadavg=no | |
9348 fi | |
9349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9350 LIBS=$ac_check_lib_save_LIBS | |
9351 fi | |
47560 | 9352 echo "$as_me:9352: result: $ac_cv_lib_util_getloadavg" >&5 |
40056 | 9353 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
9354 if test $ac_cv_lib_util_getloadavg = yes; then | |
29834 | 9355 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
40056 | 9356 fi |
9357 | |
9358 fi | |
29834 | 9359 |
9360 if test $ac_have_func = no; then | |
9361 # There is a commonly available library for RS/6000 AIX. | |
9362 # Since it is not a standard part of AIX, it might be installed locally. | |
40056 | 9363 ac_getloadavg_LIBS=$LIBS |
9364 LIBS="-L/usr/local/lib $LIBS" | |
47560 | 9365 echo "$as_me:9365: checking for getloadavg in -lgetloadavg" >&5 |
40056 | 9366 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
9367 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
9368 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9369 else | |
9370 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9371 LIBS="-lgetloadavg $LIBS" |
40056 | 9372 cat >conftest.$ac_ext <<_ACEOF |
47560 | 9373 #line 9373 "configure" |
40056 | 9374 #include "confdefs.h" |
9375 | |
29834 | 9376 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9377 #ifdef __cplusplus |
9378 extern "C" | |
9379 #endif | |
29834 | 9380 /* We use char because int might match the return type of a gcc2 |
40056 | 9381 builtin and then its argument prototype would still apply. */ |
9382 char getloadavg (); | |
9383 int | |
9384 main () | |
9385 { | |
9386 getloadavg (); | |
9387 ; | |
9388 return 0; | |
9389 } | |
9390 _ACEOF | |
9391 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 9392 if { (eval echo "$as_me:9392: \"$ac_link\"") >&5 |
9393 (eval $ac_link) 2>&5 | |
9394 ac_status=$? | |
9395 echo "$as_me:9395: \$? = $ac_status" >&5 | |
44493 | 9396 (exit $ac_status); } && |
9397 { ac_try='test -s conftest$ac_exeext' | |
47560 | 9398 { (eval echo "$as_me:9398: \"$ac_try\"") >&5 |
9399 (eval $ac_try) 2>&5 | |
9400 ac_status=$? | |
9401 echo "$as_me:9401: \$? = $ac_status" >&5 | |
40056 | 9402 (exit $ac_status); }; }; then |
9403 ac_cv_lib_getloadavg_getloadavg=yes | |
9404 else | |
9405 echo "$as_me: failed program was:" >&5 | |
9406 cat conftest.$ac_ext >&5 | |
9407 ac_cv_lib_getloadavg_getloadavg=no | |
9408 fi | |
9409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9410 LIBS=$ac_check_lib_save_LIBS | |
9411 fi | |
47560 | 9412 echo "$as_me:9412: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
44493 | 9413 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
9414 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
9415 LIBS="-lgetloadavg $LIBS" | |
9416 else | |
9417 LIBS=$ac_getloadavg_LIBS | |
9418 fi | |
9419 | |
9420 fi | |
9421 | |
9422 # Make sure it is really in the library, if we think we found it, | |
9423 # otherwise set up the replacement function. | |
9424 | |
9425 for ac_func in getloadavg | |
9426 do | |
9427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
47560 | 9428 echo "$as_me:9428: checking for $ac_func" >&5 |
44493 | 9429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9430 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9431 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9432 else | |
9433 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9434 #line 9434 "configure" |
44493 | 9435 #include "confdefs.h" |
9436 /* System header to define __stub macros and hopefully few prototypes, | |
9437 which can conflict with char $ac_func (); below. */ | |
9438 #include <assert.h> | |
9439 /* Override any gcc2 internal prototype to avoid an error. */ | |
9440 #ifdef __cplusplus | |
9441 extern "C" | |
9442 #endif | |
9443 /* We use char because int might match the return type of a gcc2 | |
9444 builtin and then its argument prototype would still apply. */ | |
9445 char $ac_func (); | |
9446 char (*f) (); | |
9447 | |
9448 int | |
9449 main () | |
9450 { | |
9451 /* The GNU C library defines this for functions which it implements | |
9452 to always fail with ENOSYS. Some functions are actually named | |
9453 something starting with __ and the normal name is an alias. */ | |
9454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9455 choke me | |
9456 #else | |
9457 f = $ac_func; | |
9458 #endif | |
9459 | |
9460 ; | |
9461 return 0; | |
9462 } | |
9463 _ACEOF | |
9464 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 9465 if { (eval echo "$as_me:9465: \"$ac_link\"") >&5 |
9466 (eval $ac_link) 2>&5 | |
9467 ac_status=$? | |
9468 echo "$as_me:9468: \$? = $ac_status" >&5 | |
44493 | 9469 (exit $ac_status); } && |
9470 { ac_try='test -s conftest$ac_exeext' | |
47560 | 9471 { (eval echo "$as_me:9471: \"$ac_try\"") >&5 |
9472 (eval $ac_try) 2>&5 | |
9473 ac_status=$? | |
9474 echo "$as_me:9474: \$? = $ac_status" >&5 | |
44493 | 9475 (exit $ac_status); }; }; then |
9476 eval "$as_ac_var=yes" | |
9477 else | |
9478 echo "$as_me: failed program was:" >&5 | |
9479 cat conftest.$ac_ext >&5 | |
9480 eval "$as_ac_var=no" | |
9481 fi | |
9482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9483 fi | |
47560 | 9484 echo "$as_me:9484: result: `eval echo '${'$as_ac_var'}'`" >&5 |
44493 | 9485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9486 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 9487 cat >>confdefs.h <<EOF |
44493 | 9488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 9489 EOF |
44493 | 9490 |
9491 else | |
9492 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
9493 | |
45226 | 9494 cat >>confdefs.h <<\EOF |
44493 | 9495 #define C_GETLOADAVG 1 |
45226 | 9496 EOF |
44493 | 9497 |
9498 # Figure out what our getloadavg.c needs. | |
9499 ac_have_func=no | |
47560 | 9500 echo "$as_me:9500: checking for sys/dg_sys_info.h" >&5 |
44493 | 9501 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
9502 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
9503 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9504 else |
9505 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9506 #line 9506 "configure" |
44493 | 9507 #include "confdefs.h" |
9508 #include <sys/dg_sys_info.h> | |
9509 _ACEOF | |
47560 | 9510 if { (eval echo "$as_me:9510: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9512 ac_status=$? | |
9513 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9514 rm -f conftest.er1 | |
9515 cat conftest.err >&5 | |
47560 | 9516 echo "$as_me:9516: \$? = $ac_status" >&5 |
44493 | 9517 (exit $ac_status); } >/dev/null; then |
9518 if test -s conftest.err; then | |
9519 ac_cpp_err=$ac_c_preproc_warn_flag | |
9520 else | |
9521 ac_cpp_err= | |
9522 fi | |
9523 else | |
9524 ac_cpp_err=yes | |
9525 fi | |
9526 if test -z "$ac_cpp_err"; then | |
45226 | 9527 ac_cv_header_sys_dg_sys_info_h=yes |
44493 | 9528 else |
9529 echo "$as_me: failed program was:" >&5 | |
9530 cat conftest.$ac_ext >&5 | |
45226 | 9531 ac_cv_header_sys_dg_sys_info_h=no |
44493 | 9532 fi |
9533 rm -f conftest.err conftest.$ac_ext | |
45226 | 9534 fi |
47560 | 9535 echo "$as_me:9535: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
44493 | 9536 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
9537 if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
9538 ac_have_func=yes | |
9539 | |
45226 | 9540 cat >>confdefs.h <<\EOF |
44493 | 9541 #define DGUX 1 |
45226 | 9542 EOF |
9543 | |
47560 | 9544 echo "$as_me:9544: checking for dg_sys_info in -ldgc" >&5 |
44493 | 9545 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
9546 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
9547 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9548 else | |
9549 ac_check_lib_save_LIBS=$LIBS | |
9550 LIBS="-ldgc $LIBS" | |
9551 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9552 #line 9552 "configure" |
44493 | 9553 #include "confdefs.h" |
9554 | |
9555 /* Override any gcc2 internal prototype to avoid an error. */ | |
9556 #ifdef __cplusplus | |
9557 extern "C" | |
9558 #endif | |
9559 /* We use char because int might match the return type of a gcc2 | |
9560 builtin and then its argument prototype would still apply. */ | |
9561 char dg_sys_info (); | |
9562 int | |
9563 main () | |
9564 { | |
9565 dg_sys_info (); | |
9566 ; | |
9567 return 0; | |
9568 } | |
9569 _ACEOF | |
9570 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 9571 if { (eval echo "$as_me:9571: \"$ac_link\"") >&5 |
9572 (eval $ac_link) 2>&5 | |
9573 ac_status=$? | |
9574 echo "$as_me:9574: \$? = $ac_status" >&5 | |
44493 | 9575 (exit $ac_status); } && |
9576 { ac_try='test -s conftest$ac_exeext' | |
47560 | 9577 { (eval echo "$as_me:9577: \"$ac_try\"") >&5 |
9578 (eval $ac_try) 2>&5 | |
9579 ac_status=$? | |
9580 echo "$as_me:9580: \$? = $ac_status" >&5 | |
44493 | 9581 (exit $ac_status); }; }; then |
9582 ac_cv_lib_dgc_dg_sys_info=yes | |
9583 else | |
9584 echo "$as_me: failed program was:" >&5 | |
9585 cat conftest.$ac_ext >&5 | |
9586 ac_cv_lib_dgc_dg_sys_info=no | |
9587 fi | |
9588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9589 LIBS=$ac_check_lib_save_LIBS | |
9590 fi | |
47560 | 9591 echo "$as_me:9591: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
44493 | 9592 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
9593 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
45226 | 9594 cat >>confdefs.h <<EOF |
44493 | 9595 #define HAVE_LIBDGC 1 |
45226 | 9596 EOF |
44493 | 9597 |
9598 LIBS="-ldgc $LIBS" | |
9599 | |
9600 fi | |
9601 | |
9602 fi | |
9603 | |
47560 | 9604 echo "$as_me:9604: checking for locale.h" >&5 |
44493 | 9605 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
9606 if test "${ac_cv_header_locale_h+set}" = set; then | |
9607 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9608 else |
9609 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9610 #line 9610 "configure" |
44493 | 9611 #include "confdefs.h" |
9612 #include <locale.h> | |
9613 _ACEOF | |
47560 | 9614 if { (eval echo "$as_me:9614: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9616 ac_status=$? | |
9617 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9618 rm -f conftest.er1 | |
9619 cat conftest.err >&5 | |
47560 | 9620 echo "$as_me:9620: \$? = $ac_status" >&5 |
44493 | 9621 (exit $ac_status); } >/dev/null; then |
9622 if test -s conftest.err; then | |
9623 ac_cpp_err=$ac_c_preproc_warn_flag | |
9624 else | |
9625 ac_cpp_err= | |
9626 fi | |
9627 else | |
9628 ac_cpp_err=yes | |
9629 fi | |
9630 if test -z "$ac_cpp_err"; then | |
45226 | 9631 ac_cv_header_locale_h=yes |
44493 | 9632 else |
9633 echo "$as_me: failed program was:" >&5 | |
9634 cat conftest.$ac_ext >&5 | |
45226 | 9635 ac_cv_header_locale_h=no |
44493 | 9636 fi |
9637 rm -f conftest.err conftest.$ac_ext | |
45226 | 9638 fi |
47560 | 9639 echo "$as_me:9639: result: $ac_cv_header_locale_h" >&5 |
44493 | 9640 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
9641 | |
9642 for ac_func in setlocale | |
9643 do | |
9644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
47560 | 9645 echo "$as_me:9645: checking for $ac_func" >&5 |
44493 | 9646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9647 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9648 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9649 else | |
9650 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9651 #line 9651 "configure" |
44493 | 9652 #include "confdefs.h" |
9653 /* System header to define __stub macros and hopefully few prototypes, | |
9654 which can conflict with char $ac_func (); below. */ | |
9655 #include <assert.h> | |
9656 /* Override any gcc2 internal prototype to avoid an error. */ | |
9657 #ifdef __cplusplus | |
9658 extern "C" | |
9659 #endif | |
9660 /* We use char because int might match the return type of a gcc2 | |
9661 builtin and then its argument prototype would still apply. */ | |
9662 char $ac_func (); | |
9663 char (*f) (); | |
9664 | |
9665 int | |
9666 main () | |
9667 { | |
9668 /* The GNU C library defines this for functions which it implements | |
9669 to always fail with ENOSYS. Some functions are actually named | |
9670 something starting with __ and the normal name is an alias. */ | |
9671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9672 choke me | |
9673 #else | |
9674 f = $ac_func; | |
9675 #endif | |
9676 | |
9677 ; | |
9678 return 0; | |
9679 } | |
9680 _ACEOF | |
9681 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 9682 if { (eval echo "$as_me:9682: \"$ac_link\"") >&5 |
9683 (eval $ac_link) 2>&5 | |
9684 ac_status=$? | |
9685 echo "$as_me:9685: \$? = $ac_status" >&5 | |
44493 | 9686 (exit $ac_status); } && |
9687 { ac_try='test -s conftest$ac_exeext' | |
47560 | 9688 { (eval echo "$as_me:9688: \"$ac_try\"") >&5 |
9689 (eval $ac_try) 2>&5 | |
9690 ac_status=$? | |
9691 echo "$as_me:9691: \$? = $ac_status" >&5 | |
44493 | 9692 (exit $ac_status); }; }; then |
9693 eval "$as_ac_var=yes" | |
9694 else | |
9695 echo "$as_me: failed program was:" >&5 | |
9696 cat conftest.$ac_ext >&5 | |
9697 eval "$as_ac_var=no" | |
9698 fi | |
9699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9700 fi | |
47560 | 9701 echo "$as_me:9701: result: `eval echo '${'$as_ac_var'}'`" >&5 |
44493 | 9702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9703 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 9704 cat >>confdefs.h <<EOF |
44493 | 9705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 9706 EOF |
9707 | |
9708 fi | |
9709 done | |
44493 | 9710 |
9711 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
9712 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
9713 # Irix 4.0.5F has the header but not the library. | |
9714 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
9715 ac_have_func=yes | |
9716 | |
45226 | 9717 cat >>confdefs.h <<\EOF |
44493 | 9718 #define SVR4 1 |
45226 | 9719 EOF |
44493 | 9720 |
9721 fi | |
9722 | |
9723 if test $ac_have_func = no; then | |
47560 | 9724 echo "$as_me:9724: checking for inq_stats/cpustats.h" >&5 |
44493 | 9725 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
9726 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
9727 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9728 else |
9729 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9730 #line 9730 "configure" |
44493 | 9731 #include "confdefs.h" |
9732 #include <inq_stats/cpustats.h> | |
9733 _ACEOF | |
47560 | 9734 if { (eval echo "$as_me:9734: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9736 ac_status=$? | |
9737 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9738 rm -f conftest.er1 | |
9739 cat conftest.err >&5 | |
47560 | 9740 echo "$as_me:9740: \$? = $ac_status" >&5 |
44493 | 9741 (exit $ac_status); } >/dev/null; then |
9742 if test -s conftest.err; then | |
9743 ac_cpp_err=$ac_c_preproc_warn_flag | |
9744 else | |
9745 ac_cpp_err= | |
9746 fi | |
9747 else | |
9748 ac_cpp_err=yes | |
9749 fi | |
9750 if test -z "$ac_cpp_err"; then | |
45226 | 9751 ac_cv_header_inq_stats_cpustats_h=yes |
44493 | 9752 else |
9753 echo "$as_me: failed program was:" >&5 | |
9754 cat conftest.$ac_ext >&5 | |
45226 | 9755 ac_cv_header_inq_stats_cpustats_h=no |
44493 | 9756 fi |
9757 rm -f conftest.err conftest.$ac_ext | |
45226 | 9758 fi |
47560 | 9759 echo "$as_me:9759: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
44493 | 9760 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
9761 if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
9762 ac_have_func=yes | |
9763 | |
45226 | 9764 cat >>confdefs.h <<\EOF |
44493 | 9765 #define UMAX 1 |
45226 | 9766 EOF |
9767 | |
9768 cat >>confdefs.h <<\EOF | |
44493 | 9769 #define UMAX4_3 1 |
45226 | 9770 EOF |
9771 | |
9772 fi | |
44493 | 9773 |
9774 fi | |
9775 | |
9776 if test $ac_have_func = no; then | |
47560 | 9777 echo "$as_me:9777: checking for sys/cpustats.h" >&5 |
44493 | 9778 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
9779 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
9780 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9781 else |
9782 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9783 #line 9783 "configure" |
44493 | 9784 #include "confdefs.h" |
9785 #include <sys/cpustats.h> | |
9786 _ACEOF | |
47560 | 9787 if { (eval echo "$as_me:9787: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9789 ac_status=$? | |
9790 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9791 rm -f conftest.er1 | |
9792 cat conftest.err >&5 | |
47560 | 9793 echo "$as_me:9793: \$? = $ac_status" >&5 |
44493 | 9794 (exit $ac_status); } >/dev/null; then |
9795 if test -s conftest.err; then | |
9796 ac_cpp_err=$ac_c_preproc_warn_flag | |
9797 else | |
9798 ac_cpp_err= | |
9799 fi | |
9800 else | |
9801 ac_cpp_err=yes | |
9802 fi | |
9803 if test -z "$ac_cpp_err"; then | |
45226 | 9804 ac_cv_header_sys_cpustats_h=yes |
44493 | 9805 else |
9806 echo "$as_me: failed program was:" >&5 | |
9807 cat conftest.$ac_ext >&5 | |
45226 | 9808 ac_cv_header_sys_cpustats_h=no |
44493 | 9809 fi |
9810 rm -f conftest.err conftest.$ac_ext | |
45226 | 9811 fi |
47560 | 9812 echo "$as_me:9812: result: $ac_cv_header_sys_cpustats_h" >&5 |
44493 | 9813 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
9814 if test $ac_cv_header_sys_cpustats_h = yes; then | |
45226 | 9815 ac_have_func=yes; cat >>confdefs.h <<\EOF |
44493 | 9816 #define UMAX 1 |
45226 | 9817 EOF |
9818 | |
9819 fi | |
44493 | 9820 |
9821 fi | |
9822 | |
9823 if test $ac_have_func = no; then | |
9824 | |
9825 for ac_header in mach/mach.h | |
9826 do | |
9827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47560 | 9828 echo "$as_me:9828: checking for $ac_header" >&5 |
44493 | 9829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9830 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9831 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9832 else |
9833 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9834 #line 9834 "configure" |
44493 | 9835 #include "confdefs.h" |
9836 #include <$ac_header> | |
9837 _ACEOF | |
47560 | 9838 if { (eval echo "$as_me:9838: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9840 ac_status=$? | |
9841 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9842 rm -f conftest.er1 | |
9843 cat conftest.err >&5 | |
47560 | 9844 echo "$as_me:9844: \$? = $ac_status" >&5 |
44493 | 9845 (exit $ac_status); } >/dev/null; then |
9846 if test -s conftest.err; then | |
9847 ac_cpp_err=$ac_c_preproc_warn_flag | |
9848 else | |
9849 ac_cpp_err= | |
9850 fi | |
9851 else | |
9852 ac_cpp_err=yes | |
9853 fi | |
9854 if test -z "$ac_cpp_err"; then | |
45226 | 9855 eval "$as_ac_Header=yes" |
44493 | 9856 else |
9857 echo "$as_me: failed program was:" >&5 | |
9858 cat conftest.$ac_ext >&5 | |
45226 | 9859 eval "$as_ac_Header=no" |
44493 | 9860 fi |
9861 rm -f conftest.err conftest.$ac_ext | |
45226 | 9862 fi |
47560 | 9863 echo "$as_me:9863: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
44493 | 9864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9865 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 9866 cat >>confdefs.h <<EOF |
44493 | 9867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 9868 EOF |
9869 | |
9870 fi | |
9871 done | |
9872 | |
9873 fi | |
44493 | 9874 |
9875 for ac_header in nlist.h | |
9876 do | |
9877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47560 | 9878 echo "$as_me:9878: checking for $ac_header" >&5 |
44493 | 9879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9880 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9881 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9882 else |
9883 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9884 #line 9884 "configure" |
44493 | 9885 #include "confdefs.h" |
9886 #include <$ac_header> | |
9887 _ACEOF | |
47560 | 9888 if { (eval echo "$as_me:9888: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9890 ac_status=$? | |
9891 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9892 rm -f conftest.er1 | |
9893 cat conftest.err >&5 | |
47560 | 9894 echo "$as_me:9894: \$? = $ac_status" >&5 |
44493 | 9895 (exit $ac_status); } >/dev/null; then |
9896 if test -s conftest.err; then | |
9897 ac_cpp_err=$ac_c_preproc_warn_flag | |
9898 else | |
9899 ac_cpp_err= | |
9900 fi | |
9901 else | |
9902 ac_cpp_err=yes | |
9903 fi | |
9904 if test -z "$ac_cpp_err"; then | |
45226 | 9905 eval "$as_ac_Header=yes" |
44493 | 9906 else |
9907 echo "$as_me: failed program was:" >&5 | |
9908 cat conftest.$ac_ext >&5 | |
45226 | 9909 eval "$as_ac_Header=no" |
44493 | 9910 fi |
9911 rm -f conftest.err conftest.$ac_ext | |
45226 | 9912 fi |
47560 | 9913 echo "$as_me:9913: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
44493 | 9914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9915 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 9916 cat >>confdefs.h <<EOF |
44493 | 9917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 9918 EOF |
47560 | 9919 echo "$as_me:9919: checking for struct nlist.n_un.n_name" >&5 |
44493 | 9920 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
9921 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
9922 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9923 else | |
9924 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9925 #line 9925 "configure" |
44493 | 9926 #include "confdefs.h" |
9927 #include <nlist.h> | |
9928 | |
9929 int | |
9930 main () | |
9931 { | |
9932 static struct nlist ac_aggr; | |
9933 if (ac_aggr.n_un.n_name) | |
9934 return 0; | |
9935 ; | |
9936 return 0; | |
9937 } | |
9938 _ACEOF | |
9939 rm -f conftest.$ac_objext | |
47560 | 9940 if { (eval echo "$as_me:9940: \"$ac_compile\"") >&5 |
44493 | 9941 (eval $ac_compile) 2>&5 |
9942 ac_status=$? | |
47560 | 9943 echo "$as_me:9943: \$? = $ac_status" >&5 |
44493 | 9944 (exit $ac_status); } && |
9945 { ac_try='test -s conftest.$ac_objext' | |
47560 | 9946 { (eval echo "$as_me:9946: \"$ac_try\"") >&5 |
9947 (eval $ac_try) 2>&5 | |
9948 ac_status=$? | |
9949 echo "$as_me:9949: \$? = $ac_status" >&5 | |
44493 | 9950 (exit $ac_status); }; }; then |
9951 ac_cv_member_struct_nlist_n_un_n_name=yes | |
9952 else | |
9953 echo "$as_me: failed program was:" >&5 | |
9954 cat conftest.$ac_ext >&5 | |
9955 ac_cv_member_struct_nlist_n_un_n_name=no | |
9956 fi | |
9957 rm -f conftest.$ac_objext conftest.$ac_ext | |
9958 fi | |
47560 | 9959 echo "$as_me:9959: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
44493 | 9960 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
9961 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
9962 | |
45226 | 9963 cat >>confdefs.h <<EOF |
44493 | 9964 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
45226 | 9965 EOF |
9966 | |
9967 cat >>confdefs.h <<\EOF | |
44493 | 9968 #define NLIST_NAME_UNION 1 |
45226 | 9969 EOF |
9970 | |
9971 fi | |
9972 | |
9973 fi | |
9974 done | |
9975 | |
9976 fi | |
9977 done | |
44493 | 9978 |
9979 # Some definitions of getloadavg require that the program be installed setgid. | |
47560 | 9980 echo "$as_me:9980: checking whether getloadavg requires setgid" >&5 |
44493 | 9981 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
9982 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
9983 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9984 else | |
9985 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 9986 #line 9986 "configure" |
44493 | 9987 #include "confdefs.h" |
9988 #include "$srcdir/getloadavg.c" | |
9989 #ifdef LDAV_PRIVILEGED | |
9990 Yowza Am I SETGID yet | |
9991 #endif | |
9992 _ACEOF | |
9993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9994 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
9995 ac_cv_func_getloadavg_setgid=yes | |
9996 else | |
9997 ac_cv_func_getloadavg_setgid=no | |
9998 fi | |
9999 rm -f conftest* | |
10000 | |
10001 fi | |
47560 | 10002 echo "$as_me:10002: result: $ac_cv_func_getloadavg_setgid" >&5 |
44493 | 10003 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
10004 if test $ac_cv_func_getloadavg_setgid = yes; then | |
10005 NEED_SETGID=true | |
10006 | |
45226 | 10007 cat >>confdefs.h <<\EOF |
44493 | 10008 #define GETLOADAVG_PRIVILEGED 1 |
45226 | 10009 EOF |
44493 | 10010 |
10011 else | |
10012 NEED_SETGID=false | |
10013 fi | |
10014 | |
10015 if test $ac_cv_func_getloadavg_setgid = yes; then | |
47560 | 10016 echo "$as_me:10016: checking group of /dev/kmem" >&5 |
44493 | 10017 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
10018 if test "${ac_cv_group_kmem+set}" = set; then | |
10019 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10020 else | |
10021 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
10022 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
10023 # If we got an error (system does not support symlinks), try without -L. | |
10024 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
10025 ac_cv_group_kmem=`echo $ac_ls_output \ | |
10026 | sed -ne 's/[ ][ ]*/ /g; | |
10027 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
10028 / /s/.* //;p;'` | |
10029 | |
10030 fi | |
47560 | 10031 echo "$as_me:10031: result: $ac_cv_group_kmem" >&5 |
44493 | 10032 echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
10033 KMEM_GROUP=$ac_cv_group_kmem | |
10034 fi | |
10035 if test "x$ac_save_LIBS" = x; then | |
10036 GETLOADAVG_LIBS=$LIBS | |
10037 else | |
10038 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
10039 fi | |
10040 LIBS=$ac_save_LIBS | |
10041 | |
47560 | 10042 echo "$as_me:10042: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
40056 | 10043 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
10044 if test "${ac_cv_sys_largefile_source+set}" = set; then | |
10045 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10046 else | |
10047 while :; do | |
34431 | 10048 ac_cv_sys_largefile_source=no |
40056 | 10049 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10050 #line 10050 "configure" |
34431 | 10051 #include "confdefs.h" |
10052 #include <stdio.h> | |
40056 | 10053 int |
10054 main () | |
10055 { | |
34431 | 10056 return !fseeko; |
40056 | 10057 ; |
10058 return 0; | |
10059 } | |
10060 _ACEOF | |
10061 rm -f conftest.$ac_objext | |
47560 | 10062 if { (eval echo "$as_me:10062: \"$ac_compile\"") >&5 |
44493 | 10063 (eval $ac_compile) 2>&5 |
10064 ac_status=$? | |
47560 | 10065 echo "$as_me:10065: \$? = $ac_status" >&5 |
44493 | 10066 (exit $ac_status); } && |
10067 { ac_try='test -s conftest.$ac_objext' | |
47560 | 10068 { (eval echo "$as_me:10068: \"$ac_try\"") >&5 |
10069 (eval $ac_try) 2>&5 | |
10070 ac_status=$? | |
10071 echo "$as_me:10071: \$? = $ac_status" >&5 | |
40056 | 10072 (exit $ac_status); }; }; then |
10073 break | |
10074 else | |
10075 echo "$as_me: failed program was:" >&5 | |
10076 cat conftest.$ac_ext >&5 | |
10077 fi | |
10078 rm -f conftest.$ac_objext conftest.$ac_ext | |
10079 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 10080 #line 10080 "configure" |
34431 | 10081 #include "confdefs.h" |
10082 #define _LARGEFILE_SOURCE 1 | |
10083 #include <stdio.h> | |
40056 | 10084 int |
10085 main () | |
10086 { | |
34431 | 10087 return !fseeko; |
40056 | 10088 ; |
10089 return 0; | |
10090 } | |
10091 _ACEOF | |
10092 rm -f conftest.$ac_objext | |
47560 | 10093 if { (eval echo "$as_me:10093: \"$ac_compile\"") >&5 |
44493 | 10094 (eval $ac_compile) 2>&5 |
10095 ac_status=$? | |
47560 | 10096 echo "$as_me:10096: \$? = $ac_status" >&5 |
44493 | 10097 (exit $ac_status); } && |
10098 { ac_try='test -s conftest.$ac_objext' | |
47560 | 10099 { (eval echo "$as_me:10099: \"$ac_try\"") >&5 |
10100 (eval $ac_try) 2>&5 | |
10101 ac_status=$? | |
10102 echo "$as_me:10102: \$? = $ac_status" >&5 | |
40056 | 10103 (exit $ac_status); }; }; then |
10104 ac_cv_sys_largefile_source=1; break | |
10105 else | |
10106 echo "$as_me: failed program was:" >&5 | |
10107 cat conftest.$ac_ext >&5 | |
10108 fi | |
10109 rm -f conftest.$ac_objext conftest.$ac_ext | |
10110 break | |
10111 done | |
10112 fi | |
47560 | 10113 echo "$as_me:10113: result: $ac_cv_sys_largefile_source" >&5 |
40056 | 10114 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
10115 if test "$ac_cv_sys_largefile_source" != no; then | |
10116 | |
45226 | 10117 cat >>confdefs.h <<EOF |
40056 | 10118 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
45226 | 10119 EOF |
40056 | 10120 |
34431 | 10121 fi |
10122 rm -f conftest* | |
40056 | 10123 |
10124 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
10125 # in glibc 2.1.3, but that breaks too many other things. | |
10126 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
47560 | 10127 echo "$as_me:10127: checking for fseeko" >&5 |
40056 | 10128 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
10129 if test "${ac_cv_func_fseeko+set}" = set; then | |
10130 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10131 else | |
10132 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 10133 #line 10133 "configure" |
34431 | 10134 #include "confdefs.h" |
10135 #include <stdio.h> | |
40056 | 10136 int |
10137 main () | |
10138 { | |
34431 | 10139 return fseeko && fseeko (stdin, 0, 0); |
40056 | 10140 ; |
10141 return 0; | |
10142 } | |
10143 _ACEOF | |
10144 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 10145 if { (eval echo "$as_me:10145: \"$ac_link\"") >&5 |
10146 (eval $ac_link) 2>&5 | |
10147 ac_status=$? | |
10148 echo "$as_me:10148: \$? = $ac_status" >&5 | |
44493 | 10149 (exit $ac_status); } && |
10150 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10151 { (eval echo "$as_me:10151: \"$ac_try\"") >&5 |
10152 (eval $ac_try) 2>&5 | |
10153 ac_status=$? | |
10154 echo "$as_me:10154: \$? = $ac_status" >&5 | |
40056 | 10155 (exit $ac_status); }; }; then |
34431 | 10156 ac_cv_func_fseeko=yes |
10157 else | |
40056 | 10158 echo "$as_me: failed program was:" >&5 |
10159 cat conftest.$ac_ext >&5 | |
10160 ac_cv_func_fseeko=no | |
10161 fi | |
10162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10163 fi | |
47560 | 10164 echo "$as_me:10164: result: $ac_cv_func_fseeko" >&5 |
40056 | 10165 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
10166 if test $ac_cv_func_fseeko = yes; then | |
10167 | |
45226 | 10168 cat >>confdefs.h <<\EOF |
34431 | 10169 #define HAVE_FSEEKO 1 |
45226 | 10170 EOF |
10171 | |
10172 fi | |
34431 | 10173 |
10174 # UNIX98 PTYs. | |
40056 | 10175 |
34431 | 10176 for ac_func in grantpt |
29036 | 10177 do |
40056 | 10178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
47560 | 10179 echo "$as_me:10179: checking for $ac_func" >&5 |
40056 | 10180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10181 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10182 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10183 else | |
10184 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 10185 #line 10185 "configure" |
29036 | 10186 #include "confdefs.h" |
10187 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 10188 which can conflict with char $ac_func (); below. */ |
29036 | 10189 #include <assert.h> |
10190 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 10191 #ifdef __cplusplus |
10192 extern "C" | |
10193 #endif | |
29036 | 10194 /* We use char because int might match the return type of a gcc2 |
40056 | 10195 builtin and then its argument prototype would still apply. */ |
10196 char $ac_func (); | |
10197 char (*f) (); | |
10198 | |
10199 int | |
10200 main () | |
10201 { | |
29036 | 10202 /* The GNU C library defines this for functions which it implements |
10203 to always fail with ENOSYS. Some functions are actually named | |
10204 something starting with __ and the normal name is an alias. */ | |
10205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10206 choke me | |
10207 #else | |
40056 | 10208 f = $ac_func; |
10209 #endif | |
10210 | |
10211 ; | |
10212 return 0; | |
10213 } | |
10214 _ACEOF | |
10215 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 10216 if { (eval echo "$as_me:10216: \"$ac_link\"") >&5 |
10217 (eval $ac_link) 2>&5 | |
10218 ac_status=$? | |
10219 echo "$as_me:10219: \$? = $ac_status" >&5 | |
44493 | 10220 (exit $ac_status); } && |
10221 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10222 { (eval echo "$as_me:10222: \"$ac_try\"") >&5 |
10223 (eval $ac_try) 2>&5 | |
10224 ac_status=$? | |
10225 echo "$as_me:10225: \$? = $ac_status" >&5 | |
40056 | 10226 (exit $ac_status); }; }; then |
10227 eval "$as_ac_var=yes" | |
10228 else | |
10229 echo "$as_me: failed program was:" >&5 | |
10230 cat conftest.$ac_ext >&5 | |
10231 eval "$as_ac_var=no" | |
10232 fi | |
10233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10234 fi | |
47560 | 10235 echo "$as_me:10235: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10237 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 10238 cat >>confdefs.h <<EOF |
40056 | 10239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 10240 EOF |
10241 | |
10242 fi | |
10243 done | |
29036 | 10244 |
10245 # PTY-related GNU extensions. | |
40056 | 10246 |
29036 | 10247 for ac_func in getpt |
10248 do | |
40056 | 10249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
47560 | 10250 echo "$as_me:10250: checking for $ac_func" >&5 |
40056 | 10251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10252 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10253 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10254 else | |
10255 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 10256 #line 10256 "configure" |
29036 | 10257 #include "confdefs.h" |
10258 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 10259 which can conflict with char $ac_func (); below. */ |
29036 | 10260 #include <assert.h> |
10261 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 10262 #ifdef __cplusplus |
10263 extern "C" | |
10264 #endif | |
29036 | 10265 /* We use char because int might match the return type of a gcc2 |
40056 | 10266 builtin and then its argument prototype would still apply. */ |
10267 char $ac_func (); | |
10268 char (*f) (); | |
10269 | |
10270 int | |
10271 main () | |
10272 { | |
29036 | 10273 /* The GNU C library defines this for functions which it implements |
10274 to always fail with ENOSYS. Some functions are actually named | |
10275 something starting with __ and the normal name is an alias. */ | |
10276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10277 choke me | |
10278 #else | |
40056 | 10279 f = $ac_func; |
10280 #endif | |
10281 | |
10282 ; | |
10283 return 0; | |
10284 } | |
10285 _ACEOF | |
10286 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 10287 if { (eval echo "$as_me:10287: \"$ac_link\"") >&5 |
10288 (eval $ac_link) 2>&5 | |
10289 ac_status=$? | |
10290 echo "$as_me:10290: \$? = $ac_status" >&5 | |
44493 | 10291 (exit $ac_status); } && |
10292 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10293 { (eval echo "$as_me:10293: \"$ac_try\"") >&5 |
10294 (eval $ac_try) 2>&5 | |
10295 ac_status=$? | |
10296 echo "$as_me:10296: \$? = $ac_status" >&5 | |
40056 | 10297 (exit $ac_status); }; }; then |
10298 eval "$as_ac_var=yes" | |
10299 else | |
10300 echo "$as_me: failed program was:" >&5 | |
10301 cat conftest.$ac_ext >&5 | |
10302 eval "$as_ac_var=no" | |
10303 fi | |
10304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10305 fi | |
47560 | 10306 echo "$as_me:10306: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10308 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 10309 cat >>confdefs.h <<EOF |
40056 | 10310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 10311 EOF |
10312 | |
10313 fi | |
10314 done | |
29036 | 10315 |
25897 | 10316 # Check this now, so that we will NOT find the above functions in ncurses. |
10317 # That is because we have not set up to link ncurses in lib-src. | |
10318 # It's better to believe a function is not available | |
10319 # than to expect to find it in ncurses. | |
40056 | 10320 |
47560 | 10321 echo "$as_me:10321: checking for tparm in -lncurses" >&5 |
40056 | 10322 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
10323 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
10324 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10325 else | |
10326 ac_check_lib_save_LIBS=$LIBS | |
25897 | 10327 LIBS="-lncurses $LIBS" |
40056 | 10328 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10329 #line 10329 "configure" |
40056 | 10330 #include "confdefs.h" |
10331 | |
25897 | 10332 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10333 #ifdef __cplusplus |
10334 extern "C" | |
10335 #endif | |
25897 | 10336 /* We use char because int might match the return type of a gcc2 |
40056 | 10337 builtin and then its argument prototype would still apply. */ |
10338 char tparm (); | |
10339 int | |
10340 main () | |
10341 { | |
10342 tparm (); | |
10343 ; | |
10344 return 0; | |
10345 } | |
10346 _ACEOF | |
10347 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 10348 if { (eval echo "$as_me:10348: \"$ac_link\"") >&5 |
10349 (eval $ac_link) 2>&5 | |
10350 ac_status=$? | |
10351 echo "$as_me:10351: \$? = $ac_status" >&5 | |
44493 | 10352 (exit $ac_status); } && |
10353 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10354 { (eval echo "$as_me:10354: \"$ac_try\"") >&5 |
10355 (eval $ac_try) 2>&5 | |
10356 ac_status=$? | |
10357 echo "$as_me:10357: \$? = $ac_status" >&5 | |
40056 | 10358 (exit $ac_status); }; }; then |
10359 ac_cv_lib_ncurses_tparm=yes | |
10360 else | |
10361 echo "$as_me: failed program was:" >&5 | |
10362 cat conftest.$ac_ext >&5 | |
10363 ac_cv_lib_ncurses_tparm=no | |
10364 fi | |
10365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10366 LIBS=$ac_check_lib_save_LIBS | |
10367 fi | |
47560 | 10368 echo "$as_me:10368: result: $ac_cv_lib_ncurses_tparm" >&5 |
40056 | 10369 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
10370 if test $ac_cv_lib_ncurses_tparm = yes; then | |
45226 | 10371 cat >>confdefs.h <<EOF |
40056 | 10372 #define HAVE_LIBNCURSES 1 |
45226 | 10373 EOF |
25897 | 10374 |
10375 LIBS="-lncurses $LIBS" | |
10376 | |
40056 | 10377 fi |
25897 | 10378 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10379 # Do we need the Hesiod library to provide the support routines? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10380 if test "$with_hesiod" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10381 # Don't set $LIBS here -- see comments above. |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10382 resolv=no |
47560 | 10383 echo "$as_me:10383: checking for res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10384 echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10385 if test "${ac_cv_func_res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10386 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10387 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10388 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10389 #line 10389 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10390 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10391 /* System header to define __stub macros and hopefully few prototypes, |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10392 which can conflict with char res_send (); below. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10393 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10394 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10395 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10396 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10397 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10398 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10399 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10400 char res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10401 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10402 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10403 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10404 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10405 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10406 /* The GNU C library defines this for functions which it implements |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10407 to always fail with ENOSYS. Some functions are actually named |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10408 something starting with __ and the normal name is an alias. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10409 #if defined (__stub_res_send) || defined (__stub___res_send) |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10410 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10411 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10412 f = res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10413 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10414 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10415 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10416 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10417 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10418 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10419 rm -f conftest.$ac_objext conftest$ac_exeext |
47560 | 10420 if { (eval echo "$as_me:10420: \"$ac_link\"") >&5 |
10421 (eval $ac_link) 2>&5 | |
10422 ac_status=$? | |
10423 echo "$as_me:10423: \$? = $ac_status" >&5 | |
44493 | 10424 (exit $ac_status); } && |
10425 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10426 { (eval echo "$as_me:10426: \"$ac_try\"") >&5 |
10427 (eval $ac_try) 2>&5 | |
10428 ac_status=$? | |
10429 echo "$as_me:10429: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10430 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10431 ac_cv_func_res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10432 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10433 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10434 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10435 ac_cv_func_res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10436 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10438 fi |
47560 | 10439 echo "$as_me:10439: result: $ac_cv_func_res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10440 echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10441 if test $ac_cv_func_res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10442 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10443 else |
47560 | 10444 echo "$as_me:10444: checking for __res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10445 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10446 if test "${ac_cv_func___res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10447 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10448 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10449 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10450 #line 10450 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10451 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10452 /* System header to define __stub macros and hopefully few prototypes, |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10453 which can conflict with char __res_send (); below. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10454 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10455 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10456 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10457 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10458 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10459 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10460 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10461 char __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10462 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10463 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10464 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10465 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10466 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10467 /* The GNU C library defines this for functions which it implements |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10468 to always fail with ENOSYS. Some functions are actually named |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10469 something starting with __ and the normal name is an alias. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10470 #if defined (__stub___res_send) || defined (__stub_____res_send) |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10471 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10472 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10473 f = __res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10474 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10475 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10476 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10477 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10478 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10479 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10480 rm -f conftest.$ac_objext conftest$ac_exeext |
47560 | 10481 if { (eval echo "$as_me:10481: \"$ac_link\"") >&5 |
10482 (eval $ac_link) 2>&5 | |
10483 ac_status=$? | |
10484 echo "$as_me:10484: \$? = $ac_status" >&5 | |
44493 | 10485 (exit $ac_status); } && |
10486 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10487 { (eval echo "$as_me:10487: \"$ac_try\"") >&5 |
10488 (eval $ac_try) 2>&5 | |
10489 ac_status=$? | |
10490 echo "$as_me:10490: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10491 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10492 ac_cv_func___res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10493 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10494 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10495 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10496 ac_cv_func___res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10497 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10499 fi |
47560 | 10500 echo "$as_me:10500: result: $ac_cv_func___res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10501 echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10502 if test $ac_cv_func___res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10503 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10504 else |
47560 | 10505 echo "$as_me:10505: checking for res_send in -lresolv" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10506 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10507 if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10508 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10509 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10510 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10511 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10512 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10513 #line 10513 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10514 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10515 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10516 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10517 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10518 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10519 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10520 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10521 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10522 char res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10523 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10524 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10525 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10526 res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10527 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10528 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10529 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10530 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10531 rm -f conftest.$ac_objext conftest$ac_exeext |
47560 | 10532 if { (eval echo "$as_me:10532: \"$ac_link\"") >&5 |
10533 (eval $ac_link) 2>&5 | |
10534 ac_status=$? | |
10535 echo "$as_me:10535: \$? = $ac_status" >&5 | |
44493 | 10536 (exit $ac_status); } && |
10537 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10538 { (eval echo "$as_me:10538: \"$ac_try\"") >&5 |
10539 (eval $ac_try) 2>&5 | |
10540 ac_status=$? | |
10541 echo "$as_me:10541: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10542 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10543 ac_cv_lib_resolv_res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10544 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10545 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10546 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10547 ac_cv_lib_resolv_res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10548 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10550 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10551 fi |
47560 | 10552 echo "$as_me:10552: result: $ac_cv_lib_resolv_res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10553 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10554 if test $ac_cv_lib_resolv_res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10555 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10556 else |
47560 | 10557 echo "$as_me:10557: checking for __res_send in -lresolv" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10558 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10559 if test "${ac_cv_lib_resolv___res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10560 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10561 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10562 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10563 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10564 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10565 #line 10565 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10566 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10567 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10568 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10569 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10570 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10571 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10572 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10573 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10574 char __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10575 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10576 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10577 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10578 __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10579 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10580 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10581 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10582 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10583 rm -f conftest.$ac_objext conftest$ac_exeext |
47560 | 10584 if { (eval echo "$as_me:10584: \"$ac_link\"") >&5 |
10585 (eval $ac_link) 2>&5 | |
10586 ac_status=$? | |
10587 echo "$as_me:10587: \$? = $ac_status" >&5 | |
44493 | 10588 (exit $ac_status); } && |
10589 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10590 { (eval echo "$as_me:10590: \"$ac_try\"") >&5 |
10591 (eval $ac_try) 2>&5 | |
10592 ac_status=$? | |
10593 echo "$as_me:10593: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10594 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10595 ac_cv_lib_resolv___res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10596 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10597 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10598 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10599 ac_cv_lib_resolv___res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10600 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10602 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10603 fi |
47560 | 10604 echo "$as_me:10604: result: $ac_cv_lib_resolv___res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10605 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10606 if test $ac_cv_lib_resolv___res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10607 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10608 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10609 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10610 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10611 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10612 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10613 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10614 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10615 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10616 if test "$resolv" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10617 RESOLVLIB=-lresolv |
44569 | 10618 |
45226 | 10619 cat >>confdefs.h <<\EOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10620 #define HAVE_LIBRESOLV 1 |
45226 | 10621 EOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10622 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10623 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10624 RESOLVLIB= |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10625 fi |
47560 | 10626 echo "$as_me:10626: checking for hes_getmailhost" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10627 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10628 if test "${ac_cv_func_hes_getmailhost+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10629 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10630 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10631 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10632 #line 10632 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10633 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10634 /* System header to define __stub macros and hopefully few prototypes, |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10635 which can conflict with char hes_getmailhost (); below. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10636 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10637 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10638 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10639 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10640 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10641 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10642 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10643 char hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10644 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10645 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10646 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10647 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10648 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10649 /* The GNU C library defines this for functions which it implements |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10650 to always fail with ENOSYS. Some functions are actually named |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10651 something starting with __ and the normal name is an alias. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10652 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10653 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10654 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10655 f = hes_getmailhost; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10656 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10657 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10658 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10659 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10660 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10661 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10662 rm -f conftest.$ac_objext conftest$ac_exeext |
47560 | 10663 if { (eval echo "$as_me:10663: \"$ac_link\"") >&5 |
10664 (eval $ac_link) 2>&5 | |
10665 ac_status=$? | |
10666 echo "$as_me:10666: \$? = $ac_status" >&5 | |
44493 | 10667 (exit $ac_status); } && |
10668 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10669 { (eval echo "$as_me:10669: \"$ac_try\"") >&5 |
10670 (eval $ac_try) 2>&5 | |
10671 ac_status=$? | |
10672 echo "$as_me:10672: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10673 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10674 ac_cv_func_hes_getmailhost=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10675 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10676 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10677 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10678 ac_cv_func_hes_getmailhost=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10679 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10681 fi |
47560 | 10682 echo "$as_me:10682: result: $ac_cv_func_hes_getmailhost" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10683 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10684 if test $ac_cv_func_hes_getmailhost = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10685 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10686 else |
47560 | 10687 echo "$as_me:10687: checking for hes_getmailhost in -lhesiod" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10688 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10689 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10690 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10691 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10692 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10693 LIBS="-lhesiod $RESOLVLIB $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10694 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10695 #line 10695 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10696 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10697 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10698 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10699 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10700 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10701 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10702 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10703 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10704 char hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10705 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10706 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10707 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10708 hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10709 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10710 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10711 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10712 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10713 rm -f conftest.$ac_objext conftest$ac_exeext |
47560 | 10714 if { (eval echo "$as_me:10714: \"$ac_link\"") >&5 |
10715 (eval $ac_link) 2>&5 | |
10716 ac_status=$? | |
10717 echo "$as_me:10717: \$? = $ac_status" >&5 | |
44493 | 10718 (exit $ac_status); } && |
10719 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10720 { (eval echo "$as_me:10720: \"$ac_try\"") >&5 |
10721 (eval $ac_try) 2>&5 | |
10722 ac_status=$? | |
10723 echo "$as_me:10723: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10724 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10725 ac_cv_lib_hesiod_hes_getmailhost=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10726 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10727 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10728 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10729 ac_cv_lib_hesiod_hes_getmailhost=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10730 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10732 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10733 fi |
47560 | 10734 echo "$as_me:10734: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10735 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10736 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
44569 | 10737 |
45226 | 10738 cat >>confdefs.h <<\EOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10739 #define HAVE_LIBHESIOD 1 |
45226 | 10740 EOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10741 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10742 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10743 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10744 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10745 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10746 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10747 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10748 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10749 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10750 # These tell us which Kerberos-related libraries to use. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10751 if test "${with_kerberos+set}" = set; then |
40056 | 10752 |
47560 | 10753 echo "$as_me:10753: checking for com_err in -lcom_err" >&5 |
40056 | 10754 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
10755 if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
10756 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10757 else | |
10758 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10759 LIBS="-lcom_err $LIBS" |
40056 | 10760 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10761 #line 10761 "configure" |
40056 | 10762 #include "confdefs.h" |
10763 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10764 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10765 #ifdef __cplusplus |
10766 extern "C" | |
10767 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10768 /* We use char because int might match the return type of a gcc2 |
40056 | 10769 builtin and then its argument prototype would still apply. */ |
10770 char com_err (); | |
10771 int | |
10772 main () | |
10773 { | |
10774 com_err (); | |
10775 ; | |
10776 return 0; | |
10777 } | |
10778 _ACEOF | |
10779 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 10780 if { (eval echo "$as_me:10780: \"$ac_link\"") >&5 |
10781 (eval $ac_link) 2>&5 | |
10782 ac_status=$? | |
10783 echo "$as_me:10783: \$? = $ac_status" >&5 | |
44493 | 10784 (exit $ac_status); } && |
10785 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10786 { (eval echo "$as_me:10786: \"$ac_try\"") >&5 |
10787 (eval $ac_try) 2>&5 | |
10788 ac_status=$? | |
10789 echo "$as_me:10789: \$? = $ac_status" >&5 | |
40056 | 10790 (exit $ac_status); }; }; then |
10791 ac_cv_lib_com_err_com_err=yes | |
10792 else | |
10793 echo "$as_me: failed program was:" >&5 | |
10794 cat conftest.$ac_ext >&5 | |
10795 ac_cv_lib_com_err_com_err=no | |
10796 fi | |
10797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10798 LIBS=$ac_check_lib_save_LIBS | |
10799 fi | |
47560 | 10800 echo "$as_me:10800: result: $ac_cv_lib_com_err_com_err" >&5 |
40056 | 10801 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
10802 if test $ac_cv_lib_com_err_com_err = yes; then | |
45226 | 10803 cat >>confdefs.h <<EOF |
40056 | 10804 #define HAVE_LIBCOM_ERR 1 |
45226 | 10805 EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10806 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10807 LIBS="-lcom_err $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10808 |
40056 | 10809 fi |
10810 | |
47560 | 10811 echo "$as_me:10811: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
40056 | 10812 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
10813 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
10814 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10815 else | |
10816 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10817 LIBS="-lk5crypto $LIBS" |
40056 | 10818 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10819 #line 10819 "configure" |
40056 | 10820 #include "confdefs.h" |
10821 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10822 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10823 #ifdef __cplusplus |
10824 extern "C" | |
10825 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10826 /* We use char because int might match the return type of a gcc2 |
40056 | 10827 builtin and then its argument prototype would still apply. */ |
10828 char mit_des_cbc_encrypt (); | |
10829 int | |
10830 main () | |
10831 { | |
10832 mit_des_cbc_encrypt (); | |
10833 ; | |
10834 return 0; | |
10835 } | |
10836 _ACEOF | |
10837 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 10838 if { (eval echo "$as_me:10838: \"$ac_link\"") >&5 |
10839 (eval $ac_link) 2>&5 | |
10840 ac_status=$? | |
10841 echo "$as_me:10841: \$? = $ac_status" >&5 | |
44493 | 10842 (exit $ac_status); } && |
10843 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10844 { (eval echo "$as_me:10844: \"$ac_try\"") >&5 |
10845 (eval $ac_try) 2>&5 | |
10846 ac_status=$? | |
10847 echo "$as_me:10847: \$? = $ac_status" >&5 | |
40056 | 10848 (exit $ac_status); }; }; then |
10849 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
10850 else | |
10851 echo "$as_me: failed program was:" >&5 | |
10852 cat conftest.$ac_ext >&5 | |
10853 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
10854 fi | |
10855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10856 LIBS=$ac_check_lib_save_LIBS | |
10857 fi | |
47560 | 10858 echo "$as_me:10858: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
40056 | 10859 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
10860 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
45226 | 10861 cat >>confdefs.h <<EOF |
40056 | 10862 #define HAVE_LIBK5CRYPTO 1 |
45226 | 10863 EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10864 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10865 LIBS="-lk5crypto $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10866 |
40056 | 10867 fi |
10868 | |
47560 | 10869 echo "$as_me:10869: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
40056 | 10870 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
10871 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
10872 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10873 else | |
10874 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10875 LIBS="-lcrypto $LIBS" |
40056 | 10876 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10877 #line 10877 "configure" |
40056 | 10878 #include "confdefs.h" |
10879 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10880 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10881 #ifdef __cplusplus |
10882 extern "C" | |
10883 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10884 /* We use char because int might match the return type of a gcc2 |
40056 | 10885 builtin and then its argument prototype would still apply. */ |
10886 char mit_des_cbc_encrypt (); | |
10887 int | |
10888 main () | |
10889 { | |
10890 mit_des_cbc_encrypt (); | |
10891 ; | |
10892 return 0; | |
10893 } | |
10894 _ACEOF | |
10895 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 10896 if { (eval echo "$as_me:10896: \"$ac_link\"") >&5 |
10897 (eval $ac_link) 2>&5 | |
10898 ac_status=$? | |
10899 echo "$as_me:10899: \$? = $ac_status" >&5 | |
44493 | 10900 (exit $ac_status); } && |
10901 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10902 { (eval echo "$as_me:10902: \"$ac_try\"") >&5 |
10903 (eval $ac_try) 2>&5 | |
10904 ac_status=$? | |
10905 echo "$as_me:10905: \$? = $ac_status" >&5 | |
40056 | 10906 (exit $ac_status); }; }; then |
10907 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
10908 else | |
10909 echo "$as_me: failed program was:" >&5 | |
10910 cat conftest.$ac_ext >&5 | |
10911 ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
10912 fi | |
10913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10914 LIBS=$ac_check_lib_save_LIBS | |
10915 fi | |
47560 | 10916 echo "$as_me:10916: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
40056 | 10917 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
10918 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
45226 | 10919 cat >>confdefs.h <<EOF |
40056 | 10920 #define HAVE_LIBCRYPTO 1 |
45226 | 10921 EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10922 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10923 LIBS="-lcrypto $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10924 |
40056 | 10925 fi |
10926 | |
47560 | 10927 echo "$as_me:10927: checking for krb5_init_context in -lkrb5" >&5 |
40056 | 10928 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
10929 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
10930 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10931 else | |
10932 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10933 LIBS="-lkrb5 $LIBS" |
40056 | 10934 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10935 #line 10935 "configure" |
40056 | 10936 #include "confdefs.h" |
10937 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10938 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10939 #ifdef __cplusplus |
10940 extern "C" | |
10941 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10942 /* We use char because int might match the return type of a gcc2 |
40056 | 10943 builtin and then its argument prototype would still apply. */ |
10944 char krb5_init_context (); | |
10945 int | |
10946 main () | |
10947 { | |
10948 krb5_init_context (); | |
10949 ; | |
10950 return 0; | |
10951 } | |
10952 _ACEOF | |
10953 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 10954 if { (eval echo "$as_me:10954: \"$ac_link\"") >&5 |
10955 (eval $ac_link) 2>&5 | |
10956 ac_status=$? | |
10957 echo "$as_me:10957: \$? = $ac_status" >&5 | |
44493 | 10958 (exit $ac_status); } && |
10959 { ac_try='test -s conftest$ac_exeext' | |
47560 | 10960 { (eval echo "$as_me:10960: \"$ac_try\"") >&5 |
10961 (eval $ac_try) 2>&5 | |
10962 ac_status=$? | |
10963 echo "$as_me:10963: \$? = $ac_status" >&5 | |
40056 | 10964 (exit $ac_status); }; }; then |
10965 ac_cv_lib_krb5_krb5_init_context=yes | |
10966 else | |
10967 echo "$as_me: failed program was:" >&5 | |
10968 cat conftest.$ac_ext >&5 | |
10969 ac_cv_lib_krb5_krb5_init_context=no | |
10970 fi | |
10971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10972 LIBS=$ac_check_lib_save_LIBS | |
10973 fi | |
47560 | 10974 echo "$as_me:10974: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
40056 | 10975 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
10976 if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
45226 | 10977 cat >>confdefs.h <<EOF |
40056 | 10978 #define HAVE_LIBKRB5 1 |
45226 | 10979 EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10980 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10981 LIBS="-lkrb5 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10982 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10983 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10984 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10985 if test "${with_kerberos5+set}" != set; then |
40056 | 10986 |
47560 | 10987 echo "$as_me:10987: checking for des_cbc_encrypt in -ldes425" >&5 |
40056 | 10988 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
10989 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
10990 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10991 else | |
10992 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10993 LIBS="-ldes425 $LIBS" |
40056 | 10994 cat >conftest.$ac_ext <<_ACEOF |
47560 | 10995 #line 10995 "configure" |
40056 | 10996 #include "confdefs.h" |
10997 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10998 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10999 #ifdef __cplusplus |
11000 extern "C" | |
11001 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11002 /* We use char because int might match the return type of a gcc2 |
40056 | 11003 builtin and then its argument prototype would still apply. */ |
11004 char des_cbc_encrypt (); | |
11005 int | |
11006 main () | |
11007 { | |
11008 des_cbc_encrypt (); | |
11009 ; | |
11010 return 0; | |
11011 } | |
11012 _ACEOF | |
11013 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 11014 if { (eval echo "$as_me:11014: \"$ac_link\"") >&5 |
11015 (eval $ac_link) 2>&5 | |
11016 ac_status=$? | |
11017 echo "$as_me:11017: \$? = $ac_status" >&5 | |
44493 | 11018 (exit $ac_status); } && |
11019 { ac_try='test -s conftest$ac_exeext' | |
47560 | 11020 { (eval echo "$as_me:11020: \"$ac_try\"") >&5 |
11021 (eval $ac_try) 2>&5 | |
11022 ac_status=$? | |
11023 echo "$as_me:11023: \$? = $ac_status" >&5 | |
40056 | 11024 (exit $ac_status); }; }; then |
11025 ac_cv_lib_des425_des_cbc_encrypt=yes | |
11026 else | |
11027 echo "$as_me: failed program was:" >&5 | |
11028 cat conftest.$ac_ext >&5 | |
11029 ac_cv_lib_des425_des_cbc_encrypt=no | |
11030 fi | |
11031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11032 LIBS=$ac_check_lib_save_LIBS | |
11033 fi | |
47560 | 11034 echo "$as_me:11034: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
40056 | 11035 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
11036 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
45226 | 11037 cat >>confdefs.h <<EOF |
40056 | 11038 #define HAVE_LIBDES425 1 |
45226 | 11039 EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11040 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11041 LIBS="-ldes425 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11042 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11043 else |
40056 | 11044 |
47560 | 11045 echo "$as_me:11045: checking for des_cbc_encrypt in -ldes" >&5 |
40056 | 11046 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
11047 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
11048 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11049 else | |
11050 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11051 LIBS="-ldes $LIBS" |
40056 | 11052 cat >conftest.$ac_ext <<_ACEOF |
47560 | 11053 #line 11053 "configure" |
40056 | 11054 #include "confdefs.h" |
11055 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11056 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11057 #ifdef __cplusplus |
11058 extern "C" | |
11059 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11060 /* We use char because int might match the return type of a gcc2 |
40056 | 11061 builtin and then its argument prototype would still apply. */ |
11062 char des_cbc_encrypt (); | |
11063 int | |
11064 main () | |
11065 { | |
11066 des_cbc_encrypt (); | |
11067 ; | |
11068 return 0; | |
11069 } | |
11070 _ACEOF | |
11071 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 11072 if { (eval echo "$as_me:11072: \"$ac_link\"") >&5 |
11073 (eval $ac_link) 2>&5 | |
11074 ac_status=$? | |
11075 echo "$as_me:11075: \$? = $ac_status" >&5 | |
44493 | 11076 (exit $ac_status); } && |
11077 { ac_try='test -s conftest$ac_exeext' | |
47560 | 11078 { (eval echo "$as_me:11078: \"$ac_try\"") >&5 |
11079 (eval $ac_try) 2>&5 | |
11080 ac_status=$? | |
11081 echo "$as_me:11081: \$? = $ac_status" >&5 | |
40056 | 11082 (exit $ac_status); }; }; then |
11083 ac_cv_lib_des_des_cbc_encrypt=yes | |
11084 else | |
11085 echo "$as_me: failed program was:" >&5 | |
11086 cat conftest.$ac_ext >&5 | |
11087 ac_cv_lib_des_des_cbc_encrypt=no | |
11088 fi | |
11089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11090 LIBS=$ac_check_lib_save_LIBS | |
11091 fi | |
47560 | 11092 echo "$as_me:11092: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
40056 | 11093 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
11094 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
45226 | 11095 cat >>confdefs.h <<EOF |
40056 | 11096 #define HAVE_LIBDES 1 |
45226 | 11097 EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11098 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11099 LIBS="-ldes $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11100 |
40056 | 11101 fi |
11102 | |
11103 fi | |
11104 | |
47560 | 11105 echo "$as_me:11105: checking for krb_get_cred in -lkrb4" >&5 |
40056 | 11106 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
11107 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
11108 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11109 else | |
11110 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11111 LIBS="-lkrb4 $LIBS" |
40056 | 11112 cat >conftest.$ac_ext <<_ACEOF |
47560 | 11113 #line 11113 "configure" |
40056 | 11114 #include "confdefs.h" |
11115 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11116 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11117 #ifdef __cplusplus |
11118 extern "C" | |
11119 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11120 /* We use char because int might match the return type of a gcc2 |
40056 | 11121 builtin and then its argument prototype would still apply. */ |
11122 char krb_get_cred (); | |
11123 int | |
11124 main () | |
11125 { | |
11126 krb_get_cred (); | |
11127 ; | |
11128 return 0; | |
11129 } | |
11130 _ACEOF | |
11131 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 11132 if { (eval echo "$as_me:11132: \"$ac_link\"") >&5 |
11133 (eval $ac_link) 2>&5 | |
11134 ac_status=$? | |
11135 echo "$as_me:11135: \$? = $ac_status" >&5 | |
44493 | 11136 (exit $ac_status); } && |
11137 { ac_try='test -s conftest$ac_exeext' | |
47560 | 11138 { (eval echo "$as_me:11138: \"$ac_try\"") >&5 |
11139 (eval $ac_try) 2>&5 | |
11140 ac_status=$? | |
11141 echo "$as_me:11141: \$? = $ac_status" >&5 | |
40056 | 11142 (exit $ac_status); }; }; then |
11143 ac_cv_lib_krb4_krb_get_cred=yes | |
11144 else | |
11145 echo "$as_me: failed program was:" >&5 | |
11146 cat conftest.$ac_ext >&5 | |
11147 ac_cv_lib_krb4_krb_get_cred=no | |
11148 fi | |
11149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11150 LIBS=$ac_check_lib_save_LIBS | |
11151 fi | |
47560 | 11152 echo "$as_me:11152: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
40056 | 11153 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
11154 if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
45226 | 11155 cat >>confdefs.h <<EOF |
40056 | 11156 #define HAVE_LIBKRB4 1 |
45226 | 11157 EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11158 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11159 LIBS="-lkrb4 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11160 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11161 else |
40056 | 11162 |
47560 | 11163 echo "$as_me:11163: checking for krb_get_cred in -lkrb" >&5 |
40056 | 11164 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
11165 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
11166 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11167 else | |
11168 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11169 LIBS="-lkrb $LIBS" |
40056 | 11170 cat >conftest.$ac_ext <<_ACEOF |
47560 | 11171 #line 11171 "configure" |
40056 | 11172 #include "confdefs.h" |
11173 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11174 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11175 #ifdef __cplusplus |
11176 extern "C" | |
11177 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11178 /* We use char because int might match the return type of a gcc2 |
40056 | 11179 builtin and then its argument prototype would still apply. */ |
11180 char krb_get_cred (); | |
11181 int | |
11182 main () | |
11183 { | |
11184 krb_get_cred (); | |
11185 ; | |
11186 return 0; | |
11187 } | |
11188 _ACEOF | |
11189 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 11190 if { (eval echo "$as_me:11190: \"$ac_link\"") >&5 |
11191 (eval $ac_link) 2>&5 | |
11192 ac_status=$? | |
11193 echo "$as_me:11193: \$? = $ac_status" >&5 | |
44493 | 11194 (exit $ac_status); } && |
11195 { ac_try='test -s conftest$ac_exeext' | |
47560 | 11196 { (eval echo "$as_me:11196: \"$ac_try\"") >&5 |
11197 (eval $ac_try) 2>&5 | |
11198 ac_status=$? | |
11199 echo "$as_me:11199: \$? = $ac_status" >&5 | |
40056 | 11200 (exit $ac_status); }; }; then |
11201 ac_cv_lib_krb_krb_get_cred=yes | |
11202 else | |
11203 echo "$as_me: failed program was:" >&5 | |
11204 cat conftest.$ac_ext >&5 | |
11205 ac_cv_lib_krb_krb_get_cred=no | |
11206 fi | |
11207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11208 LIBS=$ac_check_lib_save_LIBS | |
11209 fi | |
47560 | 11210 echo "$as_me:11210: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
40056 | 11211 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
11212 if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
45226 | 11213 cat >>confdefs.h <<EOF |
40056 | 11214 #define HAVE_LIBKRB 1 |
45226 | 11215 EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11216 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11217 LIBS="-lkrb $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11218 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11219 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11220 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11221 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11222 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11223 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11224 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11225 if test "${with_kerberos5+set}" = set; then |
40056 | 11226 |
11227 for ac_header in krb5.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11228 do |
40056 | 11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
47560 | 11230 echo "$as_me:11230: checking for $ac_header" >&5 |
40056 | 11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11232 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11233 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11234 else |
11235 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 11236 #line 11236 "configure" |
40056 | 11237 #include "confdefs.h" |
11238 #include <$ac_header> | |
11239 _ACEOF | |
47560 | 11240 if { (eval echo "$as_me:11240: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11242 ac_status=$? | |
11243 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11244 rm -f conftest.er1 | |
11245 cat conftest.err >&5 | |
47560 | 11246 echo "$as_me:11246: \$? = $ac_status" >&5 |
40056 | 11247 (exit $ac_status); } >/dev/null; then |
11248 if test -s conftest.err; then | |
11249 ac_cpp_err=$ac_c_preproc_warn_flag | |
11250 else | |
11251 ac_cpp_err= | |
11252 fi | |
11253 else | |
11254 ac_cpp_err=yes | |
11255 fi | |
11256 if test -z "$ac_cpp_err"; then | |
45226 | 11257 eval "$as_ac_Header=yes" |
40056 | 11258 else |
11259 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11260 cat conftest.$ac_ext >&5 |
45226 | 11261 eval "$as_ac_Header=no" |
40056 | 11262 fi |
11263 rm -f conftest.err conftest.$ac_ext | |
45226 | 11264 fi |
47560 | 11265 echo "$as_me:11265: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11267 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11268 cat >>confdefs.h <<EOF |
40056 | 11269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11270 EOF |
11271 | |
11272 fi | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11273 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11274 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11275 else |
40056 | 11276 |
11277 for ac_header in des.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11278 do |
40056 | 11279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
47560 | 11280 echo "$as_me:11280: checking for $ac_header" >&5 |
40056 | 11281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11282 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11283 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11284 else |
11285 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 11286 #line 11286 "configure" |
40056 | 11287 #include "confdefs.h" |
11288 #include <$ac_header> | |
11289 _ACEOF | |
47560 | 11290 if { (eval echo "$as_me:11290: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11292 ac_status=$? | |
11293 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11294 rm -f conftest.er1 | |
11295 cat conftest.err >&5 | |
47560 | 11296 echo "$as_me:11296: \$? = $ac_status" >&5 |
40056 | 11297 (exit $ac_status); } >/dev/null; then |
11298 if test -s conftest.err; then | |
11299 ac_cpp_err=$ac_c_preproc_warn_flag | |
11300 else | |
11301 ac_cpp_err= | |
11302 fi | |
11303 else | |
11304 ac_cpp_err=yes | |
11305 fi | |
11306 if test -z "$ac_cpp_err"; then | |
45226 | 11307 eval "$as_ac_Header=yes" |
40056 | 11308 else |
11309 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11310 cat conftest.$ac_ext >&5 |
45226 | 11311 eval "$as_ac_Header=no" |
40056 | 11312 fi |
11313 rm -f conftest.err conftest.$ac_ext | |
45226 | 11314 fi |
47560 | 11315 echo "$as_me:11315: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11317 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11318 cat >>confdefs.h <<EOF |
40056 | 11319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11320 EOF |
40056 | 11321 |
11322 else | |
11323 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11324 for ac_header in kerberosIV/des.h |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11325 do |
40056 | 11326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
47560 | 11327 echo "$as_me:11327: checking for $ac_header" >&5 |
40056 | 11328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11329 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11330 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11331 else |
11332 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 11333 #line 11333 "configure" |
40056 | 11334 #include "confdefs.h" |
11335 #include <$ac_header> | |
11336 _ACEOF | |
47560 | 11337 if { (eval echo "$as_me:11337: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11339 ac_status=$? | |
11340 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11341 rm -f conftest.er1 | |
11342 cat conftest.err >&5 | |
47560 | 11343 echo "$as_me:11343: \$? = $ac_status" >&5 |
45226 | 11344 (exit $ac_status); } >/dev/null; then |
11345 if test -s conftest.err; then | |
11346 ac_cpp_err=$ac_c_preproc_warn_flag | |
11347 else | |
11348 ac_cpp_err= | |
11349 fi | |
11350 else | |
11351 ac_cpp_err=yes | |
11352 fi | |
11353 if test -z "$ac_cpp_err"; then | |
11354 eval "$as_ac_Header=yes" | |
11355 else | |
11356 echo "$as_me: failed program was:" >&5 | |
11357 cat conftest.$ac_ext >&5 | |
11358 eval "$as_ac_Header=no" | |
11359 fi | |
11360 rm -f conftest.err conftest.$ac_ext | |
11361 fi | |
47560 | 11362 echo "$as_me:11362: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
45226 | 11363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11364 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11365 cat >>confdefs.h <<EOF | |
11366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11367 EOF | |
11368 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11369 else |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11370 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11371 for ac_header in kerberos/des.h |
45226 | 11372 do |
11373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47560 | 11374 echo "$as_me:11374: checking for $ac_header" >&5 |
45226 | 11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11376 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11377 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11378 else | |
11379 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 11380 #line 11380 "configure" |
45226 | 11381 #include "confdefs.h" |
11382 #include <$ac_header> | |
11383 _ACEOF | |
47560 | 11384 if { (eval echo "$as_me:11384: \"$ac_cpp conftest.$ac_ext\"") >&5 |
45226 | 11385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11386 ac_status=$? | |
11387 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11388 rm -f conftest.er1 | |
11389 cat conftest.err >&5 | |
47560 | 11390 echo "$as_me:11390: \$? = $ac_status" >&5 |
40056 | 11391 (exit $ac_status); } >/dev/null; then |
11392 if test -s conftest.err; then | |
11393 ac_cpp_err=$ac_c_preproc_warn_flag | |
11394 else | |
11395 ac_cpp_err= | |
11396 fi | |
11397 else | |
11398 ac_cpp_err=yes | |
11399 fi | |
11400 if test -z "$ac_cpp_err"; then | |
45226 | 11401 eval "$as_ac_Header=yes" |
40056 | 11402 else |
11403 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11404 cat conftest.$ac_ext >&5 |
45226 | 11405 eval "$as_ac_Header=no" |
40056 | 11406 fi |
11407 rm -f conftest.err conftest.$ac_ext | |
45226 | 11408 fi |
47560 | 11409 echo "$as_me:11409: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
45226 | 11410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11411 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11412 cat >>confdefs.h <<EOF | |
11413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11414 EOF | |
11415 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11416 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11417 done |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11418 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11419 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11420 done |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11421 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11422 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11423 done |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11424 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11425 for ac_header in krb.h |
45226 | 11426 do |
11427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47560 | 11428 echo "$as_me:11428: checking for $ac_header" >&5 |
44493 | 11429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11430 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11431 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11432 else | |
45226 | 11433 cat >conftest.$ac_ext <<_ACEOF |
47560 | 11434 #line 11434 "configure" |
40056 | 11435 #include "confdefs.h" |
11436 #include <$ac_header> | |
11437 _ACEOF | |
47560 | 11438 if { (eval echo "$as_me:11438: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11440 ac_status=$? | |
11441 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11442 rm -f conftest.er1 | |
11443 cat conftest.err >&5 | |
47560 | 11444 echo "$as_me:11444: \$? = $ac_status" >&5 |
40056 | 11445 (exit $ac_status); } >/dev/null; then |
11446 if test -s conftest.err; then | |
11447 ac_cpp_err=$ac_c_preproc_warn_flag | |
11448 else | |
11449 ac_cpp_err= | |
11450 fi | |
11451 else | |
11452 ac_cpp_err=yes | |
11453 fi | |
11454 if test -z "$ac_cpp_err"; then | |
45226 | 11455 eval "$as_ac_Header=yes" |
40056 | 11456 else |
11457 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11458 cat conftest.$ac_ext >&5 |
45226 | 11459 eval "$as_ac_Header=no" |
40056 | 11460 fi |
11461 rm -f conftest.err conftest.$ac_ext | |
45226 | 11462 fi |
47560 | 11463 echo "$as_me:11463: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11465 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11466 cat >>confdefs.h <<EOF |
40056 | 11467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11468 EOF |
11469 | |
11470 else | |
11471 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11472 for ac_header in kerberosIV/krb.h |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11473 do |
40056 | 11474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
47560 | 11475 echo "$as_me:11475: checking for $ac_header" >&5 |
40056 | 11476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11477 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11478 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11479 else |
11480 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 11481 #line 11481 "configure" |
40056 | 11482 #include "confdefs.h" |
11483 #include <$ac_header> | |
11484 _ACEOF | |
47560 | 11485 if { (eval echo "$as_me:11485: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11487 ac_status=$? | |
11488 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11489 rm -f conftest.er1 | |
11490 cat conftest.err >&5 | |
47560 | 11491 echo "$as_me:11491: \$? = $ac_status" >&5 |
40056 | 11492 (exit $ac_status); } >/dev/null; then |
11493 if test -s conftest.err; then | |
11494 ac_cpp_err=$ac_c_preproc_warn_flag | |
11495 else | |
11496 ac_cpp_err= | |
11497 fi | |
11498 else | |
11499 ac_cpp_err=yes | |
11500 fi | |
11501 if test -z "$ac_cpp_err"; then | |
45226 | 11502 eval "$as_ac_Header=yes" |
40056 | 11503 else |
11504 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11505 cat conftest.$ac_ext >&5 |
45226 | 11506 eval "$as_ac_Header=no" |
40056 | 11507 fi |
11508 rm -f conftest.err conftest.$ac_ext | |
45226 | 11509 fi |
47560 | 11510 echo "$as_me:11510: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11512 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11513 cat >>confdefs.h <<EOF |
40056 | 11514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11515 EOF |
11516 | |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11517 else |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11518 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11519 for ac_header in kerberos/krb.h |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11520 do |
40056 | 11521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
47560 | 11522 echo "$as_me:11522: checking for $ac_header" >&5 |
40056 | 11523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11524 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11525 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11526 else |
11527 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 11528 #line 11528 "configure" |
40056 | 11529 #include "confdefs.h" |
11530 #include <$ac_header> | |
11531 _ACEOF | |
47560 | 11532 if { (eval echo "$as_me:11532: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11534 ac_status=$? | |
11535 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11536 rm -f conftest.er1 | |
11537 cat conftest.err >&5 | |
47560 | 11538 echo "$as_me:11538: \$? = $ac_status" >&5 |
40056 | 11539 (exit $ac_status); } >/dev/null; then |
11540 if test -s conftest.err; then | |
11541 ac_cpp_err=$ac_c_preproc_warn_flag | |
11542 else | |
11543 ac_cpp_err= | |
11544 fi | |
11545 else | |
11546 ac_cpp_err=yes | |
11547 fi | |
11548 if test -z "$ac_cpp_err"; then | |
45226 | 11549 eval "$as_ac_Header=yes" |
40056 | 11550 else |
11551 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11552 cat conftest.$ac_ext >&5 |
45226 | 11553 eval "$as_ac_Header=no" |
40056 | 11554 fi |
11555 rm -f conftest.err conftest.$ac_ext | |
45226 | 11556 fi |
47560 | 11557 echo "$as_me:11557: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11559 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11560 cat >>confdefs.h <<EOF |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11562 EOF |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11563 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11564 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11565 done |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11566 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11567 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11568 done |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11569 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11570 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11571 done |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11572 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11573 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11574 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11575 for ac_header in com_err.h |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11576 do |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
47560 | 11578 echo "$as_me:11578: checking for $ac_header" >&5 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11580 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11581 echo $ECHO_N "(cached) $ECHO_C" >&6 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11582 else |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11583 cat >conftest.$ac_ext <<_ACEOF |
47560 | 11584 #line 11584 "configure" |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11585 #include "confdefs.h" |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11586 #include <$ac_header> |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11587 _ACEOF |
47560 | 11588 if { (eval echo "$as_me:11588: \"$ac_cpp conftest.$ac_ext\"") >&5 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11590 ac_status=$? |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11591 egrep -v '^ *\+' conftest.er1 >conftest.err |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11592 rm -f conftest.er1 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11593 cat conftest.err >&5 |
47560 | 11594 echo "$as_me:11594: \$? = $ac_status" >&5 |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11595 (exit $ac_status); } >/dev/null; then |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11596 if test -s conftest.err; then |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11597 ac_cpp_err=$ac_c_preproc_warn_flag |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11598 else |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11599 ac_cpp_err= |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11600 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11601 else |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11602 ac_cpp_err=yes |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11603 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11604 if test -z "$ac_cpp_err"; then |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11605 eval "$as_ac_Header=yes" |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11606 else |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11607 echo "$as_me: failed program was:" >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11608 cat conftest.$ac_ext >&5 |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11609 eval "$as_ac_Header=no" |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11610 fi |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11611 rm -f conftest.err conftest.$ac_ext |
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
11612 fi |
47560 | 11613 echo "$as_me:11613: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
44493 | 11614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11615 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11616 cat >>confdefs.h <<EOF |
44493 | 11617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11618 EOF |
11619 | |
11620 fi | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11621 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11622 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11623 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11624 |
25897 | 11625 # Solaris requires -lintl if you want strerror (which calls dgettext) |
11626 # to return localized messages. | |
40056 | 11627 |
47560 | 11628 echo "$as_me:11628: checking for dgettext in -lintl" >&5 |
40056 | 11629 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
11630 if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
11631 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11632 else | |
11633 ac_check_lib_save_LIBS=$LIBS | |
25897 | 11634 LIBS="-lintl $LIBS" |
40056 | 11635 cat >conftest.$ac_ext <<_ACEOF |
47560 | 11636 #line 11636 "configure" |
40056 | 11637 #include "confdefs.h" |
11638 | |
25897 | 11639 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11640 #ifdef __cplusplus |
11641 extern "C" | |
11642 #endif | |
25897 | 11643 /* We use char because int might match the return type of a gcc2 |
40056 | 11644 builtin and then its argument prototype would still apply. */ |
11645 char dgettext (); | |
11646 int | |
11647 main () | |
11648 { | |
11649 dgettext (); | |
11650 ; | |
11651 return 0; | |
11652 } | |
11653 _ACEOF | |
11654 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 11655 if { (eval echo "$as_me:11655: \"$ac_link\"") >&5 |
11656 (eval $ac_link) 2>&5 | |
11657 ac_status=$? | |
11658 echo "$as_me:11658: \$? = $ac_status" >&5 | |
44493 | 11659 (exit $ac_status); } && |
11660 { ac_try='test -s conftest$ac_exeext' | |
47560 | 11661 { (eval echo "$as_me:11661: \"$ac_try\"") >&5 |
11662 (eval $ac_try) 2>&5 | |
11663 ac_status=$? | |
11664 echo "$as_me:11664: \$? = $ac_status" >&5 | |
40056 | 11665 (exit $ac_status); }; }; then |
11666 ac_cv_lib_intl_dgettext=yes | |
11667 else | |
11668 echo "$as_me: failed program was:" >&5 | |
11669 cat conftest.$ac_ext >&5 | |
11670 ac_cv_lib_intl_dgettext=no | |
11671 fi | |
11672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11673 LIBS=$ac_check_lib_save_LIBS | |
11674 fi | |
47560 | 11675 echo "$as_me:11675: result: $ac_cv_lib_intl_dgettext" >&5 |
40056 | 11676 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
11677 if test $ac_cv_lib_intl_dgettext = yes; then | |
45226 | 11678 cat >>confdefs.h <<EOF |
40056 | 11679 #define HAVE_LIBINTL 1 |
45226 | 11680 EOF |
25897 | 11681 |
11682 LIBS="-lintl $LIBS" | |
11683 | |
40056 | 11684 fi |
11685 | |
47560 | 11686 echo "$as_me:11686: checking whether localtime caches TZ" >&5 |
40056 | 11687 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
11688 if test "${emacs_cv_localtime_cache+set}" = set; then | |
11689 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 11690 else |
11691 if test x$ac_cv_func_tzset = xyes; then | |
11692 if test "$cross_compiling" = yes; then | |
11693 # If we have tzset, assume the worst when cross-compiling. | |
11694 emacs_cv_localtime_cache=yes | |
11695 else | |
40056 | 11696 cat >conftest.$ac_ext <<_ACEOF |
47560 | 11697 #line 11697 "configure" |
25897 | 11698 #include "confdefs.h" |
11699 #include <time.h> | |
11700 extern char **environ; | |
11701 unset_TZ () | |
11702 { | |
11703 char **from, **to; | |
11704 for (to = from = environ; (*to = *from); from++) | |
11705 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
11706 to++; | |
11707 } | |
11708 char TZ_GMT0[] = "TZ=GMT0"; | |
11709 char TZ_PST8[] = "TZ=PST8"; | |
11710 main() | |
11711 { | |
11712 time_t now = time ((time_t *) 0); | |
11713 int hour_GMT0, hour_unset; | |
11714 if (putenv (TZ_GMT0) != 0) | |
11715 exit (1); | |
11716 hour_GMT0 = localtime (&now)->tm_hour; | |
11717 unset_TZ (); | |
11718 hour_unset = localtime (&now)->tm_hour; | |
11719 if (putenv (TZ_PST8) != 0) | |
11720 exit (1); | |
11721 if (localtime (&now)->tm_hour == hour_GMT0) | |
11722 exit (1); | |
11723 unset_TZ (); | |
11724 if (localtime (&now)->tm_hour != hour_unset) | |
11725 exit (1); | |
11726 exit (0); | |
11727 } | |
40056 | 11728 _ACEOF |
11729 rm -f conftest$ac_exeext | |
47560 | 11730 if { (eval echo "$as_me:11730: \"$ac_link\"") >&5 |
11731 (eval $ac_link) 2>&5 | |
11732 ac_status=$? | |
11733 echo "$as_me:11733: \$? = $ac_status" >&5 | |
45668 | 11734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47560 | 11735 { (eval echo "$as_me:11735: \"$ac_try\"") >&5 |
11736 (eval $ac_try) 2>&5 | |
11737 ac_status=$? | |
11738 echo "$as_me:11738: \$? = $ac_status" >&5 | |
40056 | 11739 (exit $ac_status); }; }; then |
25897 | 11740 emacs_cv_localtime_cache=no |
11741 else | |
40056 | 11742 echo "$as_me: program exited with status $ac_status" >&5 |
11743 echo "$as_me: failed program was:" >&5 | |
11744 cat conftest.$ac_ext >&5 | |
11745 emacs_cv_localtime_cache=yes | |
11746 fi | |
11747 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11748 fi | |
25897 | 11749 else |
11750 # If we lack tzset, report that localtime does not cache TZ, | |
11751 # since we can't invalidate the cache if we don't have tzset. | |
11752 emacs_cv_localtime_cache=no | |
11753 fi | |
11754 fi | |
47560 | 11755 echo "$as_me:11755: result: $emacs_cv_localtime_cache" >&5 |
40056 | 11756 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
25897 | 11757 if test $emacs_cv_localtime_cache = yes; then |
44569 | 11758 |
45226 | 11759 cat >>confdefs.h <<\EOF |
25897 | 11760 #define LOCALTIME_CACHE 1 |
45226 | 11761 EOF |
25897 | 11762 |
11763 fi | |
11764 | |
11765 if test "x$HAVE_TIMEVAL" = xyes; then | |
40056 | 11766 |
11767 for ac_func in gettimeofday | |
29906 | 11768 do |
40056 | 11769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
47560 | 11770 echo "$as_me:11770: checking for $ac_func" >&5 |
40056 | 11771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11772 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11773 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11774 else | |
11775 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 11776 #line 11776 "configure" |
29906 | 11777 #include "confdefs.h" |
11778 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 11779 which can conflict with char $ac_func (); below. */ |
29906 | 11780 #include <assert.h> |
11781 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 11782 #ifdef __cplusplus |
11783 extern "C" | |
11784 #endif | |
29906 | 11785 /* We use char because int might match the return type of a gcc2 |
40056 | 11786 builtin and then its argument prototype would still apply. */ |
11787 char $ac_func (); | |
11788 char (*f) (); | |
11789 | |
11790 int | |
11791 main () | |
11792 { | |
29906 | 11793 /* The GNU C library defines this for functions which it implements |
11794 to always fail with ENOSYS. Some functions are actually named | |
11795 something starting with __ and the normal name is an alias. */ | |
11796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11797 choke me | |
11798 #else | |
40056 | 11799 f = $ac_func; |
11800 #endif | |
11801 | |
11802 ; | |
11803 return 0; | |
11804 } | |
11805 _ACEOF | |
11806 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 11807 if { (eval echo "$as_me:11807: \"$ac_link\"") >&5 |
11808 (eval $ac_link) 2>&5 | |
11809 ac_status=$? | |
11810 echo "$as_me:11810: \$? = $ac_status" >&5 | |
44493 | 11811 (exit $ac_status); } && |
11812 { ac_try='test -s conftest$ac_exeext' | |
47560 | 11813 { (eval echo "$as_me:11813: \"$ac_try\"") >&5 |
11814 (eval $ac_try) 2>&5 | |
11815 ac_status=$? | |
11816 echo "$as_me:11816: \$? = $ac_status" >&5 | |
40056 | 11817 (exit $ac_status); }; }; then |
11818 eval "$as_ac_var=yes" | |
11819 else | |
11820 echo "$as_me: failed program was:" >&5 | |
11821 cat conftest.$ac_ext >&5 | |
11822 eval "$as_ac_var=no" | |
11823 fi | |
11824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11825 fi | |
47560 | 11826 echo "$as_me:11826: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 11827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11828 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 11829 cat >>confdefs.h <<EOF |
40056 | 11830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 11831 EOF |
44493 | 11832 |
11833 fi | |
11834 done | |
11835 | |
44569 | 11836 if test $ac_cv_func_gettimeofday = yes; then |
47560 | 11837 echo "$as_me:11837: checking whether gettimeofday can accept two arguments" >&5 |
40056 | 11838 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
11839 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
11840 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11841 else | |
11842 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 11843 #line 11843 "configure" |
25897 | 11844 #include "confdefs.h" |
11845 | |
11846 #ifdef TIME_WITH_SYS_TIME | |
11847 #include <sys/time.h> | |
11848 #include <time.h> | |
11849 #else | |
11850 #ifdef HAVE_SYS_TIME_H | |
11851 #include <sys/time.h> | |
11852 #else | |
11853 #include <time.h> | |
11854 #endif | |
11855 #endif | |
40056 | 11856 int |
11857 main () | |
11858 { | |
29733 | 11859 struct timeval time; |
44569 | 11860 gettimeofday (&time, 0); |
40056 | 11861 ; |
11862 return 0; | |
11863 } | |
11864 _ACEOF | |
11865 rm -f conftest.$ac_objext | |
47560 | 11866 if { (eval echo "$as_me:11866: \"$ac_compile\"") >&5 |
44493 | 11867 (eval $ac_compile) 2>&5 |
11868 ac_status=$? | |
47560 | 11869 echo "$as_me:11869: \$? = $ac_status" >&5 |
44493 | 11870 (exit $ac_status); } && |
11871 { ac_try='test -s conftest.$ac_objext' | |
47560 | 11872 { (eval echo "$as_me:11872: \"$ac_try\"") >&5 |
11873 (eval $ac_try) 2>&5 | |
11874 ac_status=$? | |
11875 echo "$as_me:11875: \$? = $ac_status" >&5 | |
40056 | 11876 (exit $ac_status); }; }; then |
25897 | 11877 emacs_cv_gettimeofday_two_arguments=yes |
11878 else | |
40056 | 11879 echo "$as_me: failed program was:" >&5 |
11880 cat conftest.$ac_ext >&5 | |
11881 emacs_cv_gettimeofday_two_arguments=no | |
11882 fi | |
11883 rm -f conftest.$ac_objext conftest.$ac_ext | |
11884 fi | |
47560 | 11885 echo "$as_me:11885: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
40056 | 11886 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
44569 | 11887 if test $emacs_cv_gettimeofday_two_arguments = no; then |
11888 | |
45226 | 11889 cat >>confdefs.h <<\EOF |
25897 | 11890 #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
45226 | 11891 EOF |
25897 | 11892 |
44569 | 11893 fi |
25897 | 11894 fi |
11895 fi | |
11896 | |
29906 | 11897 if test "$ac_cv_func_gettimeofday" = yes; then |
47560 | 11898 echo "$as_me:11898: checking for struct timezone" >&5 |
40056 | 11899 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
11900 if test "${emacs_cv_struct_timezone+set}" = set; then | |
11901 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11902 else | |
11903 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 11904 #line 11904 "configure" |
29906 | 11905 #include "confdefs.h" |
11906 #include <sys/time.h> | |
40056 | 11907 int |
11908 main () | |
11909 { | |
29906 | 11910 struct timezone tz; |
40056 | 11911 ; |
11912 return 0; | |
11913 } | |
11914 _ACEOF | |
11915 rm -f conftest.$ac_objext | |
47560 | 11916 if { (eval echo "$as_me:11916: \"$ac_compile\"") >&5 |
44493 | 11917 (eval $ac_compile) 2>&5 |
11918 ac_status=$? | |
47560 | 11919 echo "$as_me:11919: \$? = $ac_status" >&5 |
44493 | 11920 (exit $ac_status); } && |
11921 { ac_try='test -s conftest.$ac_objext' | |
47560 | 11922 { (eval echo "$as_me:11922: \"$ac_try\"") >&5 |
11923 (eval $ac_try) 2>&5 | |
11924 ac_status=$? | |
11925 echo "$as_me:11925: \$? = $ac_status" >&5 | |
40056 | 11926 (exit $ac_status); }; }; then |
29906 | 11927 if test "$cross_compiling" = yes; then |
11928 emacs_cv_struct_timezone=yes | |
11929 else | |
40056 | 11930 cat >conftest.$ac_ext <<_ACEOF |
47560 | 11931 #line 11931 "configure" |
29906 | 11932 #include "confdefs.h" |
11933 | |
11934 #ifdef TIME_WITH_SYS_TIME | |
11935 #include <sys/time.h> | |
11936 #include <time.h> | |
11937 #else | |
11938 #ifdef HAVE_SYS_TIME_H | |
11939 #include <sys/time.h> | |
11940 #else | |
11941 #include <time.h> | |
11942 #endif | |
11943 #endif | |
11944 main () { | |
11945 struct timeval time; | |
11946 struct timezone dummy; | |
11947 exit (gettimeofday (&time, &dummy)); | |
11948 } | |
40056 | 11949 _ACEOF |
11950 rm -f conftest$ac_exeext | |
47560 | 11951 if { (eval echo "$as_me:11951: \"$ac_link\"") >&5 |
11952 (eval $ac_link) 2>&5 | |
11953 ac_status=$? | |
11954 echo "$as_me:11954: \$? = $ac_status" >&5 | |
45668 | 11955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47560 | 11956 { (eval echo "$as_me:11956: \"$ac_try\"") >&5 |
11957 (eval $ac_try) 2>&5 | |
11958 ac_status=$? | |
11959 echo "$as_me:11959: \$? = $ac_status" >&5 | |
40056 | 11960 (exit $ac_status); }; }; then |
29906 | 11961 emacs_cv_struct_timezone=yes |
11962 else | |
40056 | 11963 echo "$as_me: program exited with status $ac_status" >&5 |
11964 echo "$as_me: failed program was:" >&5 | |
11965 cat conftest.$ac_ext >&5 | |
11966 emacs_cv_struct_timezone=no | |
11967 fi | |
11968 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11969 fi | |
11970 else | |
11971 echo "$as_me: failed program was:" >&5 | |
11972 cat conftest.$ac_ext >&5 | |
11973 emacs_cv_struct_timezone=no | |
11974 fi | |
11975 rm -f conftest.$ac_objext conftest.$ac_ext | |
11976 fi | |
47560 | 11977 echo "$as_me:11977: result: $emacs_cv_struct_timezone" >&5 |
40056 | 11978 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
29906 | 11979 fi |
11980 | |
25897 | 11981 ok_so_far=yes |
47560 | 11982 echo "$as_me:11982: checking for socket" >&5 |
40056 | 11983 echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
11984 if test "${ac_cv_func_socket+set}" = set; then | |
11985 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11986 else | |
11987 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 11988 #line 11988 "configure" |
25897 | 11989 #include "confdefs.h" |
11990 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 11991 which can conflict with char socket (); below. */ |
25897 | 11992 #include <assert.h> |
11993 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 11994 #ifdef __cplusplus |
11995 extern "C" | |
11996 #endif | |
25897 | 11997 /* We use char because int might match the return type of a gcc2 |
40056 | 11998 builtin and then its argument prototype would still apply. */ |
11999 char socket (); | |
12000 char (*f) (); | |
12001 | |
12002 int | |
12003 main () | |
12004 { | |
25897 | 12005 /* The GNU C library defines this for functions which it implements |
12006 to always fail with ENOSYS. Some functions are actually named | |
12007 something starting with __ and the normal name is an alias. */ | |
12008 #if defined (__stub_socket) || defined (__stub___socket) | |
12009 choke me | |
12010 #else | |
40056 | 12011 f = socket; |
12012 #endif | |
12013 | |
12014 ; | |
12015 return 0; | |
12016 } | |
12017 _ACEOF | |
12018 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 12019 if { (eval echo "$as_me:12019: \"$ac_link\"") >&5 |
12020 (eval $ac_link) 2>&5 | |
12021 ac_status=$? | |
12022 echo "$as_me:12022: \$? = $ac_status" >&5 | |
44493 | 12023 (exit $ac_status); } && |
12024 { ac_try='test -s conftest$ac_exeext' | |
47560 | 12025 { (eval echo "$as_me:12025: \"$ac_try\"") >&5 |
12026 (eval $ac_try) 2>&5 | |
12027 ac_status=$? | |
12028 echo "$as_me:12028: \$? = $ac_status" >&5 | |
40056 | 12029 (exit $ac_status); }; }; then |
12030 ac_cv_func_socket=yes | |
12031 else | |
12032 echo "$as_me: failed program was:" >&5 | |
12033 cat conftest.$ac_ext >&5 | |
12034 ac_cv_func_socket=no | |
12035 fi | |
12036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12037 fi | |
47560 | 12038 echo "$as_me:12038: result: $ac_cv_func_socket" >&5 |
40056 | 12039 echo "${ECHO_T}$ac_cv_func_socket" >&6 |
12040 if test $ac_cv_func_socket = yes; then | |
25897 | 12041 : |
12042 else | |
40056 | 12043 ok_so_far=no |
25897 | 12044 fi |
12045 | |
12046 if test $ok_so_far = yes; then | |
47560 | 12047 echo "$as_me:12047: checking for netinet/in.h" >&5 |
40056 | 12048 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
12049 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
12050 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 12051 else |
12052 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 12053 #line 12053 "configure" |
25897 | 12054 #include "confdefs.h" |
12055 #include <netinet/in.h> | |
40056 | 12056 _ACEOF |
47560 | 12057 if { (eval echo "$as_me:12057: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 12058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12059 ac_status=$? | |
12060 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12061 rm -f conftest.er1 | |
12062 cat conftest.err >&5 | |
47560 | 12063 echo "$as_me:12063: \$? = $ac_status" >&5 |
40056 | 12064 (exit $ac_status); } >/dev/null; then |
12065 if test -s conftest.err; then | |
12066 ac_cpp_err=$ac_c_preproc_warn_flag | |
12067 else | |
12068 ac_cpp_err= | |
12069 fi | |
12070 else | |
12071 ac_cpp_err=yes | |
12072 fi | |
12073 if test -z "$ac_cpp_err"; then | |
45226 | 12074 ac_cv_header_netinet_in_h=yes |
40056 | 12075 else |
12076 echo "$as_me: failed program was:" >&5 | |
25897 | 12077 cat conftest.$ac_ext >&5 |
45226 | 12078 ac_cv_header_netinet_in_h=no |
40056 | 12079 fi |
12080 rm -f conftest.err conftest.$ac_ext | |
45226 | 12081 fi |
47560 | 12082 echo "$as_me:12082: result: $ac_cv_header_netinet_in_h" >&5 |
40056 | 12083 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
12084 if test $ac_cv_header_netinet_in_h = yes; then | |
25897 | 12085 : |
12086 else | |
40056 | 12087 ok_so_far=no |
25897 | 12088 fi |
12089 | |
12090 fi | |
12091 if test $ok_so_far = yes; then | |
47560 | 12092 echo "$as_me:12092: checking for arpa/inet.h" >&5 |
40056 | 12093 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
12094 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
12095 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 12096 else |
12097 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 12098 #line 12098 "configure" |
25897 | 12099 #include "confdefs.h" |
12100 #include <arpa/inet.h> | |
40056 | 12101 _ACEOF |
47560 | 12102 if { (eval echo "$as_me:12102: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 12103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12104 ac_status=$? | |
12105 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12106 rm -f conftest.er1 | |
12107 cat conftest.err >&5 | |
47560 | 12108 echo "$as_me:12108: \$? = $ac_status" >&5 |
40056 | 12109 (exit $ac_status); } >/dev/null; then |
12110 if test -s conftest.err; then | |
12111 ac_cpp_err=$ac_c_preproc_warn_flag | |
12112 else | |
12113 ac_cpp_err= | |
12114 fi | |
12115 else | |
12116 ac_cpp_err=yes | |
12117 fi | |
12118 if test -z "$ac_cpp_err"; then | |
45226 | 12119 ac_cv_header_arpa_inet_h=yes |
40056 | 12120 else |
12121 echo "$as_me: failed program was:" >&5 | |
25897 | 12122 cat conftest.$ac_ext >&5 |
45226 | 12123 ac_cv_header_arpa_inet_h=no |
40056 | 12124 fi |
12125 rm -f conftest.err conftest.$ac_ext | |
45226 | 12126 fi |
47560 | 12127 echo "$as_me:12127: result: $ac_cv_header_arpa_inet_h" >&5 |
40056 | 12128 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
12129 if test $ac_cv_header_arpa_inet_h = yes; then | |
25897 | 12130 : |
12131 else | |
40056 | 12132 ok_so_far=no |
25897 | 12133 fi |
12134 | |
12135 fi | |
12136 if test $ok_so_far = yes; then | |
44569 | 12137 |
45226 | 12138 cat >>confdefs.h <<\EOF |
25897 | 12139 #define HAVE_INET_SOCKETS 1 |
45226 | 12140 EOF |
25897 | 12141 |
12142 fi | |
12143 | |
12144 if test -f /usr/lpp/X11/bin/smt.exp; then | |
44569 | 12145 |
45226 | 12146 cat >>confdefs.h <<\EOF |
25897 | 12147 #define HAVE_AIX_SMT_EXP 1 |
45226 | 12148 EOF |
12149 | |
12150 fi | |
12151 | |
47560 | 12152 echo "$as_me:12152: checking whether system supports dynamic ptys" >&5 |
40056 | 12153 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
12154 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
47560 | 12155 echo "$as_me:12155: result: yes" >&5 |
40056 | 12156 echo "${ECHO_T}yes" >&6 |
44569 | 12157 |
45226 | 12158 cat >>confdefs.h <<\EOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
12159 #define HAVE_DEV_PTMX 1 |
45226 | 12160 EOF |
12161 | |
12162 else | |
47560 | 12163 echo "$as_me:12163: result: no" >&5 |
40056 | 12164 echo "${ECHO_T}no" >&6 |
12165 fi | |
12166 | |
47560 | 12167 echo "$as_me:12167: checking for pid_t" >&5 |
40056 | 12168 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
12169 if test "${ac_cv_type_pid_t+set}" = set; then | |
12170 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12171 else | |
12172 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 12173 #line 12173 "configure" |
40056 | 12174 #include "confdefs.h" |
12175 $ac_includes_default | |
12176 int | |
12177 main () | |
12178 { | |
12179 if ((pid_t *) 0) | |
12180 return 0; | |
12181 if (sizeof (pid_t)) | |
12182 return 0; | |
12183 ; | |
12184 return 0; | |
12185 } | |
12186 _ACEOF | |
12187 rm -f conftest.$ac_objext | |
47560 | 12188 if { (eval echo "$as_me:12188: \"$ac_compile\"") >&5 |
44493 | 12189 (eval $ac_compile) 2>&5 |
12190 ac_status=$? | |
47560 | 12191 echo "$as_me:12191: \$? = $ac_status" >&5 |
44493 | 12192 (exit $ac_status); } && |
12193 { ac_try='test -s conftest.$ac_objext' | |
47560 | 12194 { (eval echo "$as_me:12194: \"$ac_try\"") >&5 |
12195 (eval $ac_try) 2>&5 | |
12196 ac_status=$? | |
12197 echo "$as_me:12197: \$? = $ac_status" >&5 | |
40056 | 12198 (exit $ac_status); }; }; then |
27675 | 12199 ac_cv_type_pid_t=yes |
12200 else | |
40056 | 12201 echo "$as_me: failed program was:" >&5 |
12202 cat conftest.$ac_ext >&5 | |
12203 ac_cv_type_pid_t=no | |
12204 fi | |
12205 rm -f conftest.$ac_objext conftest.$ac_ext | |
12206 fi | |
47560 | 12207 echo "$as_me:12207: result: $ac_cv_type_pid_t" >&5 |
40056 | 12208 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
12209 if test $ac_cv_type_pid_t = yes; then | |
12210 : | |
12211 else | |
12212 | |
45226 | 12213 cat >>confdefs.h <<EOF |
27675 | 12214 #define pid_t int |
45226 | 12215 EOF |
12216 | |
12217 fi | |
27675 | 12218 |
40056 | 12219 for ac_header in unistd.h vfork.h |
12220 do | |
12221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47560 | 12222 echo "$as_me:12222: checking for $ac_header" >&5 |
40056 | 12223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12224 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12225 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 12226 else |
12227 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 12228 #line 12228 "configure" |
40056 | 12229 #include "confdefs.h" |
12230 #include <$ac_header> | |
12231 _ACEOF | |
47560 | 12232 if { (eval echo "$as_me:12232: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 12233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12234 ac_status=$? | |
12235 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12236 rm -f conftest.er1 | |
12237 cat conftest.err >&5 | |
47560 | 12238 echo "$as_me:12238: \$? = $ac_status" >&5 |
40056 | 12239 (exit $ac_status); } >/dev/null; then |
12240 if test -s conftest.err; then | |
12241 ac_cpp_err=$ac_c_preproc_warn_flag | |
12242 else | |
12243 ac_cpp_err= | |
12244 fi | |
12245 else | |
12246 ac_cpp_err=yes | |
12247 fi | |
12248 if test -z "$ac_cpp_err"; then | |
45226 | 12249 eval "$as_ac_Header=yes" |
40056 | 12250 else |
12251 echo "$as_me: failed program was:" >&5 | |
27675 | 12252 cat conftest.$ac_ext >&5 |
45226 | 12253 eval "$as_ac_Header=no" |
40056 | 12254 fi |
12255 rm -f conftest.err conftest.$ac_ext | |
45226 | 12256 fi |
47560 | 12257 echo "$as_me:12257: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 12258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12259 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 12260 cat >>confdefs.h <<EOF |
40056 | 12261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 12262 EOF |
12263 | |
12264 fi | |
12265 done | |
40056 | 12266 |
12267 for ac_func in fork vfork | |
12268 do | |
12269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
47560 | 12270 echo "$as_me:12270: checking for $ac_func" >&5 |
40056 | 12271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12272 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12273 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12274 else | |
12275 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 12276 #line 12276 "configure" |
27675 | 12277 #include "confdefs.h" |
12278 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 12279 which can conflict with char $ac_func (); below. */ |
27675 | 12280 #include <assert.h> |
12281 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 12282 #ifdef __cplusplus |
12283 extern "C" | |
12284 #endif | |
27675 | 12285 /* We use char because int might match the return type of a gcc2 |
40056 | 12286 builtin and then its argument prototype would still apply. */ |
12287 char $ac_func (); | |
12288 char (*f) (); | |
12289 | |
12290 int | |
12291 main () | |
12292 { | |
27675 | 12293 /* The GNU C library defines this for functions which it implements |
12294 to always fail with ENOSYS. Some functions are actually named | |
12295 something starting with __ and the normal name is an alias. */ | |
40056 | 12296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27675 | 12297 choke me |
12298 #else | |
40056 | 12299 f = $ac_func; |
12300 #endif | |
12301 | |
12302 ; | |
12303 return 0; | |
12304 } | |
12305 _ACEOF | |
12306 rm -f conftest.$ac_objext conftest$ac_exeext | |
47560 | 12307 if { (eval echo "$as_me:12307: \"$ac_link\"") >&5 |
12308 (eval $ac_link) 2>&5 | |
12309 ac_status=$? | |
12310 echo "$as_me:12310: \$? = $ac_status" >&5 | |
44493 | 12311 (exit $ac_status); } && |
12312 { ac_try='test -s conftest$ac_exeext' | |
47560 | 12313 { (eval echo "$as_me:12313: \"$ac_try\"") >&5 |
12314 (eval $ac_try) 2>&5 | |
12315 ac_status=$? | |
12316 echo "$as_me:12316: \$? = $ac_status" >&5 | |
40056 | 12317 (exit $ac_status); }; }; then |
12318 eval "$as_ac_var=yes" | |
12319 else | |
12320 echo "$as_me: failed program was:" >&5 | |
12321 cat conftest.$ac_ext >&5 | |
12322 eval "$as_ac_var=no" | |
12323 fi | |
12324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12325 fi | |
47560 | 12326 echo "$as_me:12326: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 12327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12328 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 12329 cat >>confdefs.h <<EOF |
40056 | 12330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 12331 EOF |
40056 | 12332 |
12333 fi | |
12334 done | |
12335 | |
12336 ac_cv_func_fork_works=$ac_cv_func_fork | |
12337 if test "x$ac_cv_func_fork" = xyes; then | |
47560 | 12338 echo "$as_me:12338: checking for working fork" >&5 |
40056 | 12339 echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
12340 if test "${ac_cv_func_fork_works+set}" = set; then | |
12341 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12342 else | |
12343 if test "$cross_compiling" = yes; then | |
12344 ac_cv_func_fork_works=cross | |
12345 else | |
12346 cat >conftest.$ac_ext <<_ACEOF | |
45226 | 12347 /* By Rüdiger Kuhlmann. */ |
40056 | 12348 #include <sys/types.h> |
12349 #if HAVE_UNISTD_H | |
12350 # include <unistd.h> | |
12351 #endif | |
12352 /* Some systems only have a dummy stub for fork() */ | |
12353 int main () | |
12354 { | |
12355 if (fork() < 0) | |
12356 exit (1); | |
12357 exit (0); | |
12358 } | |
12359 _ACEOF | |
12360 rm -f conftest$ac_exeext | |
47560 | 12361 if { (eval echo "$as_me:12361: \"$ac_link\"") >&5 |
12362 (eval $ac_link) 2>&5 | |
12363 ac_status=$? | |
12364 echo "$as_me:12364: \$? = $ac_status" >&5 | |
45668 | 12365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47560 | 12366 { (eval echo "$as_me:12366: \"$ac_try\"") >&5 |
12367 (eval $ac_try) 2>&5 | |
12368 ac_status=$? | |
12369 echo "$as_me:12369: \$? = $ac_status" >&5 | |
40056 | 12370 (exit $ac_status); }; }; then |
12371 ac_cv_func_fork_works=yes | |
12372 else | |
12373 echo "$as_me: program exited with status $ac_status" >&5 | |
12374 echo "$as_me: failed program was:" >&5 | |
12375 cat conftest.$ac_ext >&5 | |
12376 ac_cv_func_fork_works=no | |
12377 fi | |
12378 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12379 fi | |
12380 fi | |
47560 | 12381 echo "$as_me:12381: result: $ac_cv_func_fork_works" >&5 |
40056 | 12382 echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
12383 | |
12384 fi | |
12385 if test "x$ac_cv_func_fork_works" = xcross; then | |
12386 case $host in | |
12387 *-*-amigaos* | *-*-msdosdjgpp*) | |
12388 # Override, as these systems have only a dummy fork() stub | |
12389 ac_cv_func_fork_works=no | |
12390 ;; | |
12391 *) | |
12392 ac_cv_func_fork_works=yes | |
12393 ;; | |
12394 esac | |
47560 | 12395 { echo "$as_me:12395: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5 |
45226 | 12396 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;} |
40056 | 12397 fi |
27675 | 12398 ac_cv_func_vfork_works=$ac_cv_func_vfork |
40056 | 12399 if test "x$ac_cv_func_vfork" = xyes; then |
47560 | 12400 echo "$as_me:12400: checking for working vfork" >&5 |
40056 | 12401 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
12402 if test "${ac_cv_func_vfork_works+set}" = set; then | |
12403 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12404 else | |
12405 if test "$cross_compiling" = yes; then | |
12406 ac_cv_func_vfork_works=cross | |
12407 else | |
12408 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 12409 #line 12409 "configure" |
27675 | 12410 #include "confdefs.h" |
12411 /* Thanks to Paul Eggert for this test. */ | |
12412 #include <stdio.h> | |
12413 #include <sys/types.h> | |
12414 #include <sys/stat.h> | |
40056 | 12415 #if HAVE_UNISTD_H |
12416 # include <unistd.h> | |
12417 #endif | |
12418 #if HAVE_VFORK_H | |
12419 # include <vfork.h> | |
27675 | 12420 #endif |
12421 /* On some sparc systems, changes by the child to local and incoming | |
40056 | 12422 argument registers are propagated back to the parent. The compiler |
12423 is told about this with #include <vfork.h>, but some compilers | |
12424 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
12425 static variable whose address is put into a register that is | |
12426 clobbered by the vfork. */ | |
27675 | 12427 static |
12428 #ifdef __cplusplus | |
12429 sparc_address_test (int arg) | |
40056 | 12430 # else |
27675 | 12431 sparc_address_test (arg) int arg; |
12432 #endif | |
12433 { | |
12434 static pid_t child; | |
12435 if (!child) { | |
12436 child = vfork (); | |
12437 if (child < 0) { | |
12438 perror ("vfork"); | |
12439 _exit(2); | |
12440 } | |
12441 if (!child) { | |
12442 arg = getpid(); | |
12443 write(-1, "", 0); | |
12444 _exit (arg); | |
12445 } | |
12446 } | |
12447 } | |
40056 | 12448 |
12449 int | |
12450 main () | |
12451 { | |
27675 | 12452 pid_t parent = getpid (); |
12453 pid_t child; | |
12454 | |
12455 sparc_address_test (); | |
12456 | |
12457 child = vfork (); | |
12458 | |
12459 if (child == 0) { | |
40056 | 12460 /* Here is another test for sparc vfork register problems. This |
12461 test uses lots of local variables, at least as many local | |
12462 variables as main has allocated so far including compiler | |
12463 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
12464 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
12465 reuse the register of parent for one of the local variables, | |
12466 since it will think that parent can't possibly be used any more | |
12467 in this routine. Assigning to the local variable will thus | |
12468 munge parent in the parent process. */ | |
27675 | 12469 pid_t |
12470 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
12471 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
12472 /* Convince the compiler that p..p7 are live; otherwise, it might | |
12473 use the same hardware register for all 8 local variables. */ | |
12474 if (p != p1 || p != p2 || p != p3 || p != p4 | |
12475 || p != p5 || p != p6 || p != p7) | |
12476 _exit(1); | |
12477 | |
40056 | 12478 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
12479 from child file descriptors. If the child closes a descriptor | |
12480 before it execs or exits, this munges the parent's descriptor | |
12481 as well. Test for this by closing stdout in the child. */ | |
27675 | 12482 _exit(close(fileno(stdout)) != 0); |
12483 } else { | |
12484 int status; | |
12485 struct stat st; | |
12486 | |
12487 while (wait(&status) != child) | |
12488 ; | |
12489 exit( | |
12490 /* Was there some problem with vforking? */ | |
12491 child < 0 | |
12492 | |
12493 /* Did the child fail? (This shouldn't happen.) */ | |
12494 || status | |
12495 | |
12496 /* Did the vfork/compiler bug occur? */ | |
12497 || parent != getpid() | |
12498 | |
12499 /* Did the file descriptor bug occur? */ | |
12500 || fstat(fileno(stdout), &st) != 0 | |
12501 ); | |
12502 } | |
12503 } | |
40056 | 12504 _ACEOF |
12505 rm -f conftest$ac_exeext | |
47560 | 12506 if { (eval echo "$as_me:12506: \"$ac_link\"") >&5 |
12507 (eval $ac_link) 2>&5 | |
12508 ac_status=$? | |
12509 echo "$as_me:12509: \$? = $ac_status" >&5 | |
45668 | 12510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47560 | 12511 { (eval echo "$as_me:12511: \"$ac_try\"") >&5 |
12512 (eval $ac_try) 2>&5 | |
12513 ac_status=$? | |
12514 echo "$as_me:12514: \$? = $ac_status" >&5 | |
40056 | 12515 (exit $ac_status); }; }; then |
27675 | 12516 ac_cv_func_vfork_works=yes |
12517 else | |
40056 | 12518 echo "$as_me: program exited with status $ac_status" >&5 |
12519 echo "$as_me: failed program was:" >&5 | |
12520 cat conftest.$ac_ext >&5 | |
12521 ac_cv_func_vfork_works=no | |
12522 fi | |
12523 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12524 fi | |
12525 fi | |
47560 | 12526 echo "$as_me:12526: result: $ac_cv_func_vfork_works" >&5 |
40056 | 12527 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
12528 | |
12529 fi; | |
12530 if test "x$ac_cv_func_fork_works" = xcross; then | |
12531 ac_cv_func_vfork_works=ac_cv_func_vfork | |
47560 | 12532 { echo "$as_me:12532: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5 |
45226 | 12533 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;} |
40056 | 12534 fi |
12535 | |
12536 if test "x$ac_cv_func_vfork_works" = xyes; then | |
12537 | |
45226 | 12538 cat >>confdefs.h <<\EOF |
40056 | 12539 #define HAVE_WORKING_VFORK 1 |
45226 | 12540 EOF |
12541 | |
12542 else | |
12543 | |
12544 cat >>confdefs.h <<\EOF | |
27675 | 12545 #define vfork fork |
45226 | 12546 EOF |
27675 | 12547 |
12548 fi | |
40056 | 12549 if test "x$ac_cv_func_fork_works" = xyes; then |
12550 | |
45226 | 12551 cat >>confdefs.h <<\EOF |
40056 | 12552 #define HAVE_WORKING_FORK 1 |
45226 | 12553 EOF |
12554 | |
12555 fi | |
27675 | 12556 |
30395 | 12557 # Fixme: This should be replaced when we have autoconf 2.14. |
47560 | 12558 echo "$as_me:12558: checking for size_t" >&5 |
40056 | 12559 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
12560 if test "${ac_cv_type_size_t+set}" = set; then | |
12561 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12562 else | |
12563 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 12564 #line 12564 "configure" |
40056 | 12565 #include "confdefs.h" |
12566 $ac_includes_default | |
12567 int | |
12568 main () | |
12569 { | |
12570 if ((size_t *) 0) | |
12571 return 0; | |
12572 if (sizeof (size_t)) | |
12573 return 0; | |
12574 ; | |
12575 return 0; | |
12576 } | |
12577 _ACEOF | |
12578 rm -f conftest.$ac_objext | |
47560 | 12579 if { (eval echo "$as_me:12579: \"$ac_compile\"") >&5 |
44493 | 12580 (eval $ac_compile) 2>&5 |
12581 ac_status=$? | |
47560 | 12582 echo "$as_me:12582: \$? = $ac_status" >&5 |
44493 | 12583 (exit $ac_status); } && |
12584 { ac_try='test -s conftest.$ac_objext' | |
47560 | 12585 { (eval echo "$as_me:12585: \"$ac_try\"") >&5 |
12586 (eval $ac_try) 2>&5 | |
12587 ac_status=$? | |
12588 echo "$as_me:12588: \$? = $ac_status" >&5 | |
40056 | 12589 (exit $ac_status); }; }; then |
30395 | 12590 ac_cv_type_size_t=yes |
12591 else | |
40056 | 12592 echo "$as_me: failed program was:" >&5 |
12593 cat conftest.$ac_ext >&5 | |
12594 ac_cv_type_size_t=no | |
12595 fi | |
12596 rm -f conftest.$ac_objext conftest.$ac_ext | |
12597 fi | |
47560 | 12598 echo "$as_me:12598: result: $ac_cv_type_size_t" >&5 |
40056 | 12599 echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
12600 if test $ac_cv_type_size_t = yes; then | |
12601 : | |
12602 else | |
12603 | |
45226 | 12604 cat >>confdefs.h <<EOF |
30395 | 12605 #define size_t unsigned |
45226 | 12606 EOF |
12607 | |
12608 fi | |
30395 | 12609 |
25897 | 12610 # Set up the CFLAGS for real compilation, so we can substitute it. |
12611 CFLAGS="$REAL_CFLAGS" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
12612 CPPFLAGS="$REAL_CPPFLAGS" |
25897 | 12613 |
12614 #### Find out which version of Emacs this is. | |
12615 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
12616 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
12617 if test x"${version}" = x; then | |
47560 | 12618 { { echo "$as_me:12618: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 |
40056 | 12619 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} |
12620 { (exit 1); exit 1; }; } | |
25897 | 12621 fi |
12622 | |
12623 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
12624 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
12625 | |
45226 | 12626 cat >>confdefs.h <<EOF |
25897 | 12627 #define EMACS_CONFIGURATION "${canonical}" |
45226 | 12628 EOF |
12629 | |
12630 cat >>confdefs.h <<EOF | |
25897 | 12631 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
45226 | 12632 EOF |
12633 | |
12634 cat >>confdefs.h <<EOF | |
25897 | 12635 #define config_machfile "${machfile}" |
45226 | 12636 EOF |
12637 | |
12638 cat >>confdefs.h <<EOF | |
25897 | 12639 #define config_opsysfile "${opsysfile}" |
45226 | 12640 EOF |
12641 | |
12642 cat >>confdefs.h <<EOF | |
25897 | 12643 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} |
45226 | 12644 EOF |
12645 | |
12646 cat >>confdefs.h <<EOF | |
25897 | 12647 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} |
45226 | 12648 EOF |
12649 | |
12650 cat >>confdefs.h <<EOF | |
25897 | 12651 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} |
45226 | 12652 EOF |
12653 | |
12654 cat >>confdefs.h <<EOF | |
25897 | 12655 #define UNEXEC_SRC ${UNEXEC_SRC} |
45226 | 12656 EOF |
25897 | 12657 |
12658 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
44569 | 12659 |
45226 | 12660 cat >>confdefs.h <<\EOF |
25897 | 12661 #define HAVE_X_WINDOWS 1 |
45226 | 12662 EOF |
25897 | 12663 |
12664 fi | |
12665 if test "${USE_X_TOOLKIT}" != "none" ; then | |
44569 | 12666 |
45226 | 12667 cat >>confdefs.h <<\EOF |
25897 | 12668 #define USE_X_TOOLKIT 1 |
45226 | 12669 EOF |
25897 | 12670 |
12671 fi | |
12672 if test "${HAVE_X11}" = "yes" ; then | |
44569 | 12673 |
45226 | 12674 cat >>confdefs.h <<\EOF |
25897 | 12675 #define HAVE_X11 1 |
45226 | 12676 EOF |
25897 | 12677 |
12678 fi | |
12679 if test "${HAVE_XFREE386}" = "yes" ; then | |
44569 | 12680 |
45226 | 12681 cat >>confdefs.h <<\EOF |
25897 | 12682 #define HAVE_XFREE386 1 |
45226 | 12683 EOF |
25897 | 12684 |
12685 fi | |
12686 if test "${HAVE_MENUS}" = "yes" ; then | |
44569 | 12687 |
45226 | 12688 cat >>confdefs.h <<\EOF |
25897 | 12689 #define HAVE_MENUS 1 |
45226 | 12690 EOF |
25897 | 12691 |
12692 fi | |
12693 if test "${GNU_MALLOC}" = "yes" ; then | |
44569 | 12694 |
45226 | 12695 cat >>confdefs.h <<\EOF |
25897 | 12696 #define GNU_MALLOC 1 |
45226 | 12697 EOF |
25897 | 12698 |
12699 fi | |
12700 if test "${REL_ALLOC}" = "yes" ; then | |
44569 | 12701 |
45226 | 12702 cat >>confdefs.h <<\EOF |
25897 | 12703 #define REL_ALLOC 1 |
45226 | 12704 EOF |
12705 | |
12706 fi | |
25897 | 12707 |
40777 | 12708 for ac_header in nlist.h |
12709 do | |
12710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47560 | 12711 echo "$as_me:12711: checking for $ac_header" >&5 |
40777 | 12712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12713 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12714 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 12715 else |
12716 cat >conftest.$ac_ext <<_ACEOF | |
47560 | 12717 #line 12717 "configure" |
40777 | 12718 #include "confdefs.h" |
12719 #include <$ac_header> | |
12720 _ACEOF | |
47560 | 12721 if { (eval echo "$as_me:12721: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40777 | 12722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12723 ac_status=$? | |
12724 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12725 rm -f conftest.er1 | |
12726 cat conftest.err >&5 | |
47560 | 12727 echo "$as_me:12727: \$? = $ac_status" >&5 |
40777 | 12728 (exit $ac_status); } >/dev/null; then |
12729 if test -s conftest.err; then | |
12730 ac_cpp_err=$ac_c_preproc_warn_flag | |
12731 else | |
12732 ac_cpp_err= | |
12733 fi | |
12734 else | |
12735 ac_cpp_err=yes | |
12736 fi | |
12737 if test -z "$ac_cpp_err"; then | |
45226 | 12738 eval "$as_ac_Header=yes" |
40777 | 12739 else |
12740 echo "$as_me: failed program was:" >&5 | |
12741 cat conftest.$ac_ext >&5 | |
45226 | 12742 eval "$as_ac_Header=no" |
40777 | 12743 fi |
12744 rm -f conftest.err conftest.$ac_ext | |
45226 | 12745 fi |
47560 | 12746 echo "$as_me:12746: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40777 | 12747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12748 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 12749 cat >>confdefs.h <<EOF |
40777 | 12750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 12751 EOF |
12752 | |
12753 cat >>confdefs.h <<\EOF | |
40777 | 12754 #define NLIST_STRUCT 1 |
45226 | 12755 EOF |
12756 | |
12757 fi | |
12758 done | |
44569 | 12759 |
25897 | 12760 #### Report on what we decided to do. |
12761 echo " | |
12762 Configured for \`${canonical}'. | |
12763 | |
12764 Where should the build process find the source code? ${srcdir} | |
12765 What operating system and machine description files should Emacs use? | |
12766 \`${opsysfile}' and \`${machfile}' | |
12767 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
12768 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
31417 | 12769 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
31607 | 12770 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
25897 | 12771 What window system should Emacs use? ${window_system} |
47402
aaa302e0c7ae
Regenerated with autoconf (GNU Autoconf) 2.52 and GNU m4 1.4.
Markus Rost <rost@math.uni-bielefeld.de>
parents:
46596
diff
changeset
|
12772 What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
25897 | 12773 |
12774 if test -n "${x_includes}"; then | |
12775 echo " Where do we find X Windows header files? ${x_includes}" | |
12776 else | |
12777 echo " Where do we find X Windows header files? Standard dirs" | |
12778 fi | |
12779 if test -n "${x_libraries}"; then | |
12780 echo " Where do we find X Windows libraries? ${x_libraries}" | |
12781 else | |
12782 echo " Where do we find X Windows libraries? Standard dirs" | |
12783 fi | |
12784 | |
12785 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
12786 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
12787 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
12788 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
12789 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
12790 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
12791 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
12792 echo | |
12793 | |
12794 # Remove any trailing slashes in these variables. | |
12795 test "${prefix}" != NONE && | |
12796 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
12797 test "${exec_prefix}" != NONE && | |
12798 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
12799 | |
36354 | 12800 ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
12801 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
12802 ## from Makefile.c can correctly provide the arg `-traditional' to the | |
12803 ## C preprocessor. | |
12804 | |
40056 | 12805 cat >conftest.$ac_ext <<_ACEOF |
47560 | 12806 #line 12806 "configure" |
36354 | 12807 #include "confdefs.h" |
12808 yes..yes | |
40056 | 12809 _ACEOF |
36354 | 12810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12811 egrep "yes..yes" >/dev/null 2>&1; then | |
12812 CPP_NEED_TRADITIONAL=no | |
12813 else | |
12814 CPP_NEED_TRADITIONAL=yes | |
12815 fi | |
12816 rm -f conftest* | |
12817 | |
44994 | 12818 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile" |
12819 ac_config_commands="$ac_config_commands default" | |
40056 | 12820 cat >confcache <<\_ACEOF |
25897 | 12821 # This file is a shell script that caches the results of configure |
12822 # tests run on this system so they can be shared between configure | |
40056 | 12823 # scripts and configure runs, see configure's option --config-cache. |
12824 # It is not useful on other systems. If it contains results you don't | |
12825 # want to keep, you may remove or edit it. | |
12826 # | |
12827 # config.status only pays attention to the cache file if you give it | |
12828 # the --recheck option to rerun configure. | |
25897 | 12829 # |
40056 | 12830 # `ac_cv_env_foo' variables (set or unset) will be overriden when |
12831 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12832 # following values. | |
12833 | |
12834 _ACEOF | |
12835 | |
25897 | 12836 # The following way of writing the cache mishandles newlines in values, |
12837 # but we know of no workaround that is simple, portable, and efficient. | |
12838 # So, don't put newlines in cache variables' values. | |
12839 # Ultrix sh set writes to stderr and can't be redirected directly, | |
12840 # and sets the high bit in the cache file unless we assign to the vars. | |
40056 | 12841 { |
12842 (set) 2>&1 | | |
12843 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12844 *ac_space=\ *) | |
12845 # `set' does not quote correctly, so add quotes (double-quote | |
12846 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12847 sed -n \ | |
12848 "s/'/'\\\\''/g; | |
12849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12850 ;; | |
12851 *) | |
12852 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12853 sed -n \ | |
12854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
12855 ;; | |
12856 esac; | |
12857 } | | |
12858 sed ' | |
12859 t clear | |
12860 : clear | |
12861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12862 t end | |
12863 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12864 : end' >>confcache | |
12865 if cmp -s $cache_file confcache; then :; else | |
25897 | 12866 if test -w $cache_file; then |
40056 | 12867 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
12868 cat confcache >$cache_file | |
25897 | 12869 else |
12870 echo "not updating unwritable cache $cache_file" | |
12871 fi | |
12872 fi | |
12873 rm -f confcache | |
12874 | |
12875 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12876 # Let make expand exec_prefix. | |
12877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12878 | |
40056 | 12879 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12881 # trailing colons and then remove the whole line if VPATH becomes empty | |
12882 # (actually we leave an empty line to preserve line numbers). | |
25897 | 12883 if test "x$srcdir" = x.; then |
40056 | 12884 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
12885 s/:*\$(srcdir):*/:/; | |
12886 s/:*\${srcdir}:*/:/; | |
12887 s/:*@srcdir@:*/:/; | |
12888 s/^\([^=]*=[ ]*\):*/\1/; | |
12889 s/:*$//; | |
12890 s/^[^=]*=[ ]*$//; | |
12891 }' | |
12892 fi | |
25897 | 12893 |
12894 DEFS=-DHAVE_CONFIG_H | |
12895 | |
12896 : ${CONFIG_STATUS=./config.status} | |
40056 | 12897 ac_clean_files_save=$ac_clean_files |
12898 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
47560 | 12899 { echo "$as_me:12899: creating $CONFIG_STATUS" >&5 |
40056 | 12900 echo "$as_me: creating $CONFIG_STATUS" >&6;} |
12901 cat >$CONFIG_STATUS <<_ACEOF | |
12902 #! $SHELL | |
45226 | 12903 # Generated automatically by configure. |
25897 | 12904 # Run this file to recreate the current configuration. |
12905 # Compiler output produced by configure, useful for debugging | |
40056 | 12906 # configure, is in config.log if it exists. |
12907 | |
12908 debug=false | |
12909 SHELL=\${CONFIG_SHELL-$SHELL} | |
45226 | 12910 ac_cs_invocation="\$0 \$@" |
12911 | |
40056 | 12912 _ACEOF |
12913 | |
12914 cat >>$CONFIG_STATUS <<\_ACEOF | |
12915 # Be Bourne compatible | |
12916 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
12917 emulate sh | |
12918 NULLCMD=: | |
12919 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
12920 set -o posix | |
12921 fi | |
12922 | |
12923 # Name of the executable. | |
45226 | 12924 as_me=`echo "$0" |sed 's,.*[\\/],,'` |
40056 | 12925 |
12926 if expr a : '\(a\)' >/dev/null 2>&1; then | |
12927 as_expr=expr | |
12928 else | |
12929 as_expr=false | |
12930 fi | |
12931 | |
12932 rm -f conf$$ conf$$.exe conf$$.file | |
12933 echo >conf$$.file | |
12934 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12935 # We could just check for DJGPP; but this test a) works b) is more generic | |
12936 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
12937 if test -f conf$$.exe; then | |
12938 # Don't use ln at all; we don't have any links | |
12939 as_ln_s='cp -p' | |
12940 else | |
12941 as_ln_s='ln -s' | |
12942 fi | |
12943 elif ln conf$$.file conf$$ 2>/dev/null; then | |
12944 as_ln_s=ln | |
12945 else | |
12946 as_ln_s='cp -p' | |
12947 fi | |
12948 rm -f conf$$ conf$$.exe conf$$.file | |
12949 | |
12950 as_executable_p="test -f" | |
12951 | |
45226 | 12952 # Support unset when possible. |
12953 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
12954 as_unset=unset | |
12955 else | |
12956 as_unset=false | |
12957 fi | |
12958 | |
12959 # NLS nuisances. | |
12960 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
12961 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
12962 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
12963 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
12964 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
12965 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
12966 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
12967 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
40056 | 12968 |
12969 # IFS | |
12970 # We need space, tab and new line, in precisely that order. | |
12971 as_nl=' | |
12972 ' | |
12973 IFS=" $as_nl" | |
12974 | |
12975 # CDPATH. | |
45226 | 12976 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
40056 | 12977 |
12978 exec 6>&1 | |
12979 | |
12980 _ACEOF | |
12981 | |
12982 # Files that config.status was made for. | |
12983 if test -n "$ac_config_files"; then | |
12984 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
12985 fi | |
12986 | |
12987 if test -n "$ac_config_headers"; then | |
12988 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
12989 fi | |
12990 | |
12991 if test -n "$ac_config_links"; then | |
12992 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
12993 fi | |
12994 | |
12995 if test -n "$ac_config_commands"; then | |
12996 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
12997 fi | |
12998 | |
45226 | 12999 cat >>$CONFIG_STATUS <<\EOF |
40056 | 13000 |
13001 ac_cs_usage="\ | |
13002 \`$as_me' instantiates files from templates according to the | |
13003 current configuration. | |
13004 | |
13005 Usage: $0 [OPTIONS] [FILE]... | |
13006 | |
13007 -h, --help print this help, then exit | |
13008 -V, --version print version number, then exit | |
13009 -d, --debug don't remove temporary files | |
13010 --recheck update $as_me by reconfiguring in the same conditions | |
13011 --file=FILE[:TEMPLATE] | |
13012 instantiate the configuration file FILE | |
13013 --header=FILE[:TEMPLATE] | |
13014 instantiate the configuration header FILE | |
13015 | |
13016 Configuration files: | |
13017 $config_files | |
13018 | |
13019 Configuration headers: | |
13020 $config_headers | |
13021 | |
13022 Configuration commands: | |
13023 $config_commands | |
13024 | |
13025 Report bugs to <bug-autoconf@gnu.org>." | |
45226 | 13026 EOF |
13027 | |
13028 cat >>$CONFIG_STATUS <<EOF | |
40056 | 13029 ac_cs_version="\\ |
13030 config.status | |
45226 | 13031 configured by $0, generated by GNU Autoconf 2.52, |
40056 | 13032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
13033 | |
13034 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
13035 Free Software Foundation, Inc. | |
13036 This config.status script is free software; the Free Software Foundation | |
13037 gives unlimited permission to copy, distribute and modify it." | |
13038 srcdir=$srcdir | |
13039 INSTALL="$INSTALL" | |
45226 | 13040 EOF |
13041 | |
13042 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13043 # If no file are specified by the user, then we need to provide default |
13044 # value. By we need to know if files were specified by the user. | |
13045 ac_need_defaults=: | |
13046 while test $# != 0 | |
25897 | 13047 do |
40056 | 13048 case $1 in |
13049 --*=*) | |
13050 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
13051 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
13052 shift | |
13053 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
13054 shift | |
13055 ;; | |
13056 -*);; | |
13057 *) # This is not an option, so the user has probably given explicit | |
13058 # arguments. | |
13059 ac_need_defaults=false;; | |
13060 esac | |
13061 | |
13062 case $1 in | |
13063 # Handling of the options. | |
45226 | 13064 EOF |
13065 cat >>$CONFIG_STATUS <<EOF | |
25897 | 13066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
40056 | 13067 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
13068 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
45226 | 13069 EOF |
13070 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13071 --version | --vers* | -V ) |
13072 echo "$ac_cs_version"; exit 0 ;; | |
13073 --he | --h) | |
13074 # Conflict between --help and --header | |
47560 | 13075 { { echo "$as_me:13075: error: ambiguous option: $1 |
40056 | 13076 Try \`$0 --help' for more information." >&5 |
13077 echo "$as_me: error: ambiguous option: $1 | |
13078 Try \`$0 --help' for more information." >&2;} | |
13079 { (exit 1); exit 1; }; };; | |
13080 --help | --hel | -h ) | |
13081 echo "$ac_cs_usage"; exit 0 ;; | |
13082 --debug | --d* | -d ) | |
13083 debug=: ;; | |
13084 --file | --fil | --fi | --f ) | |
13085 shift | |
13086 CONFIG_FILES="$CONFIG_FILES $1" | |
13087 ac_need_defaults=false;; | |
13088 --header | --heade | --head | --hea ) | |
13089 shift | |
13090 CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
13091 ac_need_defaults=false;; | |
13092 | |
13093 # This is an error. | |
47560 | 13094 -*) { { echo "$as_me:13094: error: unrecognized option: $1 |
40056 | 13095 Try \`$0 --help' for more information." >&5 |
13096 echo "$as_me: error: unrecognized option: $1 | |
13097 Try \`$0 --help' for more information." >&2;} | |
13098 { (exit 1); exit 1; }; } ;; | |
13099 | |
13100 *) ac_config_targets="$ac_config_targets $1" ;; | |
13101 | |
13102 esac | |
13103 shift | |
13104 done | |
13105 | |
45226 | 13106 exec 5>>config.log |
13107 cat >&5 << _ACEOF | |
13108 | |
13109 ## ----------------------- ## | |
13110 ## Running config.status. ## | |
13111 ## ----------------------- ## | |
13112 | |
13113 This file was extended by $as_me 2.52, executed with | |
13114 CONFIG_FILES = $CONFIG_FILES | |
13115 CONFIG_HEADERS = $CONFIG_HEADERS | |
13116 CONFIG_LINKS = $CONFIG_LINKS | |
13117 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13118 > $ac_cs_invocation | |
13119 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
13120 | |
13121 _ACEOF | |
13122 EOF | |
13123 | |
13124 cat >>$CONFIG_STATUS <<EOF | |
40056 | 13125 # |
13126 # INIT-COMMANDS section. | |
13127 # | |
13128 | |
13129 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" | |
13130 | |
45226 | 13131 EOF |
13132 | |
13133 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13134 for ac_config_target in $ac_config_targets |
13135 do | |
13136 case "$ac_config_target" in | |
13137 # Handling of arguments. | |
13138 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13139 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
13140 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
13141 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
13142 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
13143 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
13144 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
40893 | 13145 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
41431 | 13146 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
40056 | 13147 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
13148 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
13149 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
47560 | 13150 *) { { echo "$as_me:13150: error: invalid argument: $ac_config_target" >&5 |
40056 | 13151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13152 { (exit 1); exit 1; }; };; | |
25897 | 13153 esac |
13154 done | |
13155 | |
40056 | 13156 # If the user did not use the arguments to specify the items to instantiate, |
13157 # then the envvar interface is used. Set only those that are not. | |
13158 # We use the long form for the default assignment because of an extremely | |
13159 # bizarre bug on SunOS 4.1.3. | |
13160 if $ac_need_defaults; then | |
13161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13164 fi | |
13165 | |
13166 # Create a temporary directory, and hook for its removal unless debugging. | |
13167 $debug || | |
13168 { | |
13169 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
13170 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
13171 } | |
13172 | |
13173 # Create a (secure) tmp directory for tmp files. | |
13174 : ${TMPDIR=/tmp} | |
13175 { | |
13176 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
13177 test -n "$tmp" && test -d "$tmp" | |
13178 } || | |
13179 { | |
13180 tmp=$TMPDIR/cs$$-$RANDOM | |
13181 (umask 077 && mkdir $tmp) | |
13182 } || | |
13183 { | |
13184 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
13185 { (exit 1); exit 1; } | |
13186 } | |
13187 | |
45226 | 13188 EOF |
13189 | |
13190 cat >>$CONFIG_STATUS <<EOF | |
40056 | 13191 |
13192 # | |
13193 # CONFIG_FILES section. | |
13194 # | |
13195 | |
13196 # No need to generate the scripts if there are no CONFIG_FILES. | |
13197 # This happens for instance when ./config.status config.h | |
13198 if test -n "\$CONFIG_FILES"; then | |
13199 # Protect against being on the right side of a sed subst in config.status. | |
13200 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
13201 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
13202 s,@SHELL@,$SHELL,;t t | |
13203 s,@exec_prefix@,$exec_prefix,;t t | |
13204 s,@prefix@,$prefix,;t t | |
13205 s,@program_transform_name@,$program_transform_name,;t t | |
13206 s,@bindir@,$bindir,;t t | |
13207 s,@sbindir@,$sbindir,;t t | |
13208 s,@libexecdir@,$libexecdir,;t t | |
13209 s,@datadir@,$datadir,;t t | |
13210 s,@sysconfdir@,$sysconfdir,;t t | |
13211 s,@sharedstatedir@,$sharedstatedir,;t t | |
13212 s,@localstatedir@,$localstatedir,;t t | |
13213 s,@libdir@,$libdir,;t t | |
13214 s,@includedir@,$includedir,;t t | |
13215 s,@oldincludedir@,$oldincludedir,;t t | |
13216 s,@infodir@,$infodir,;t t | |
13217 s,@mandir@,$mandir,;t t | |
45226 | 13218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
13219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
13220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
13221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
13222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
40056 | 13223 s,@build_alias@,$build_alias,;t t |
13224 s,@host_alias@,$host_alias,;t t | |
13225 s,@target_alias@,$target_alias,;t t | |
13226 s,@ECHO_C@,$ECHO_C,;t t | |
13227 s,@ECHO_N@,$ECHO_N,;t t | |
13228 s,@ECHO_T@,$ECHO_T,;t t | |
45226 | 13229 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
13230 s,@DEFS@,$DEFS,;t t | |
40056 | 13231 s,@LIBS@,$LIBS,;t t |
13232 s,@build@,$build,;t t | |
13233 s,@build_cpu@,$build_cpu,;t t | |
13234 s,@build_vendor@,$build_vendor,;t t | |
13235 s,@build_os@,$build_os,;t t | |
13236 s,@host@,$host,;t t | |
13237 s,@host_cpu@,$host_cpu,;t t | |
13238 s,@host_vendor@,$host_vendor,;t t | |
13239 s,@host_os@,$host_os,;t t | |
13240 s,@CC@,$CC,;t t | |
13241 s,@CFLAGS@,$CFLAGS,;t t | |
13242 s,@LDFLAGS@,$LDFLAGS,;t t | |
13243 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
13244 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
13245 s,@EXEEXT@,$EXEEXT,;t t | |
13246 s,@OBJEXT@,$OBJEXT,;t t | |
13247 s,@LN_S@,$LN_S,;t t | |
13248 s,@CPP@,$CPP,;t t | |
13249 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
13250 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
13251 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
13252 s,@YACC@,$YACC,;t t | |
13253 s,@RANLIB@,$RANLIB,;t t | |
13254 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
13255 s,@LIBSOUND@,$LIBSOUND,;t t | |
13256 s,@SET_MAKE@,$SET_MAKE,;t t | |
13257 s,@ALLOCA@,$ALLOCA,;t t | |
13258 s,@liblockfile@,$liblockfile,;t t | |
13259 s,@LIBOBJS@,$LIBOBJS,;t t | |
13260 s,@NEED_SETGID@,$NEED_SETGID,;t t | |
13261 s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
13262 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
13263 s,@version@,$version,;t t | |
13264 s,@configuration@,$configuration,;t t | |
13265 s,@canonical@,$canonical,;t t | |
13266 s,@srcdir@,$srcdir,;t t | |
13267 s,@lispdir@,$lispdir,;t t | |
13268 s,@locallisppath@,$locallisppath,;t t | |
13269 s,@lisppath@,$lisppath,;t t | |
13270 s,@x_default_search_path@,$x_default_search_path,;t t | |
13271 s,@etcdir@,$etcdir,;t t | |
13272 s,@archlibdir@,$archlibdir,;t t | |
13273 s,@docdir@,$docdir,;t t | |
13274 s,@bitmapdir@,$bitmapdir,;t t | |
44493 | 13275 s,@gamedir@,$gamedir,;t t |
13276 s,@gameuser@,$gameuser,;t t | |
40056 | 13277 s,@c_switch_system@,$c_switch_system,;t t |
13278 s,@c_switch_machine@,$c_switch_machine,;t t | |
13279 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
13280 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
13281 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
13282 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
13283 s,@machfile@,$machfile,;t t | |
13284 s,@opsysfile@,$opsysfile,;t t | |
25897 | 13285 CEOF |
40056 | 13286 |
45226 | 13287 EOF |
13288 | |
13289 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13290 # Split the substitutions into bite-sized pieces for seds with |
13291 # small command number limits, like on Digital OSF/1 and HP-UX. | |
13292 ac_max_sed_lines=48 | |
13293 ac_sed_frag=1 # Number of current file. | |
13294 ac_beg=1 # First line for current file. | |
13295 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
13296 ac_more_lines=: | |
13297 ac_sed_cmds= | |
13298 while $ac_more_lines; do | |
13299 if test $ac_beg -gt 1; then | |
13300 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25897 | 13301 else |
40056 | 13302 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
13303 fi | |
13304 if test ! -s $tmp/subs.frag; then | |
13305 ac_more_lines=false | |
13306 else | |
13307 # The purpose of the label and of the branching condition is to | |
13308 # speed up the sed processing (if there are no `@' at all, there | |
13309 # is no need to browse any of the substitutions). | |
13310 # These are the two extra sed commands mentioned above. | |
13311 (echo ':t | |
13312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
13313 if test -z "$ac_sed_cmds"; then | |
13314 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
13315 else | |
13316 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
13317 fi | |
13318 ac_sed_frag=`expr $ac_sed_frag + 1` | |
13319 ac_beg=$ac_end | |
13320 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25897 | 13321 fi |
40056 | 13322 done |
13323 if test -z "$ac_sed_cmds"; then | |
13324 ac_sed_cmds=cat | |
13325 fi | |
13326 fi # test -n "$CONFIG_FILES" | |
13327 | |
45226 | 13328 EOF |
13329 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13330 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
25897 | 13331 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 13332 case $ac_file in |
13333 - | *:- | *:-:* ) # input from stdin | |
13334 cat >$tmp/stdin | |
13335 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13336 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13337 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13338 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13339 * ) ac_file_in=$ac_file.in ;; | |
25897 | 13340 esac |
13341 | |
40056 | 13342 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
45226 | 13343 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
40056 | 13344 X"$ac_file" : 'X\(//\)[^/]' \| \ |
13345 X"$ac_file" : 'X\(//\)$' \| \ | |
13346 X"$ac_file" : 'X\(/\)' \| \ | |
13347 . : '\(.\)' 2>/dev/null || | |
13348 echo X"$ac_file" | | |
13349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13350 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13351 /^X\(\/\/\)$/{ s//\1/; q; } | |
13352 /^X\(\/\).*/{ s//\1/; q; } | |
13353 s/.*/./; q'` | |
45226 | 13354 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
13355 { case "$ac_dir" in | |
44994 | 13356 [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
13357 *) as_incr_dir=.;; | |
13358 esac | |
13359 as_dummy="$ac_dir" | |
13360 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
13361 case $as_mkdir_dir in | |
13362 # Skip DOS drivespec | |
13363 ?:) as_incr_dir=$as_mkdir_dir ;; | |
13364 *) | |
13365 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
45226 | 13366 test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
44994 | 13367 ;; |
13368 esac | |
13369 done; } | |
40056 | 13370 |
45226 | 13371 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" |
13372 # A "../" for each directory in $ac_dir_suffix. | |
13373 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
13374 else | |
13375 ac_dir_suffix= ac_dots= | |
13376 fi | |
13377 | |
13378 case $srcdir in | |
13379 .) ac_srcdir=. | |
13380 if test -z "$ac_dots"; then | |
13381 ac_top_srcdir=. | |
13382 else | |
13383 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
13384 fi ;; | |
13385 [\\/]* | ?:[\\/]* ) | |
13386 ac_srcdir=$srcdir$ac_dir_suffix; | |
13387 ac_top_srcdir=$srcdir ;; | |
25897 | 13388 *) # Relative path. |
45226 | 13389 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
13390 ac_top_srcdir=$ac_dots$srcdir ;; | |
13391 esac | |
25897 | 13392 |
40056 | 13393 case $INSTALL in |
13394 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
45226 | 13395 *) ac_INSTALL=$ac_dots$INSTALL ;; |
25897 | 13396 esac |
13397 | |
40056 | 13398 if test x"$ac_file" != x-; then |
47560 | 13399 { echo "$as_me:13399: creating $ac_file" >&5 |
40056 | 13400 echo "$as_me: creating $ac_file" >&6;} |
13401 rm -f "$ac_file" | |
13402 fi | |
13403 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13404 # use $as_me), people would be surprised to read: | |
45226 | 13405 # /* config.h. Generated automatically by config.status. */ |
13406 configure_input="Generated automatically from `echo $ac_file_in | | |
13407 sed 's,.*/,,'` by configure." | |
40056 | 13408 |
13409 # First look for the input files in the build tree, otherwise in the | |
13410 # src tree. | |
13411 ac_file_inputs=`IFS=: | |
13412 for f in $ac_file_in; do | |
13413 case $f in | |
13414 -) echo $tmp/stdin ;; | |
13415 [\\/$]*) | |
13416 # Absolute (can't be DOS-style, as IFS=:) | |
47560 | 13417 test -f "$f" || { { echo "$as_me:13417: error: cannot find input file: $f" >&5 |
40056 | 13418 echo "$as_me: error: cannot find input file: $f" >&2;} |
13419 { (exit 1); exit 1; }; } | |
13420 echo $f;; | |
13421 *) # Relative | |
13422 if test -f "$f"; then | |
13423 # Build tree | |
13424 echo $f | |
13425 elif test -f "$srcdir/$f"; then | |
13426 # Source tree | |
13427 echo $srcdir/$f | |
13428 else | |
13429 # /dev/null tree | |
47560 | 13430 { { echo "$as_me:13430: error: cannot find input file: $f" >&5 |
40056 | 13431 echo "$as_me: error: cannot find input file: $f" >&2;} |
13432 { (exit 1); exit 1; }; } | |
13433 fi;; | |
13434 esac | |
13435 done` || { (exit 1); exit 1; } | |
45226 | 13436 EOF |
13437 cat >>$CONFIG_STATUS <<EOF | |
40056 | 13438 sed "$ac_vpsub |
13439 $extrasub | |
45226 | 13440 EOF |
13441 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13442 :t |
13443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13444 s,@configure_input@,$configure_input,;t t | |
13445 s,@srcdir@,$ac_srcdir,;t t | |
13446 s,@top_srcdir@,$ac_top_srcdir,;t t | |
13447 s,@INSTALL@,$ac_INSTALL,;t t | |
13448 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
13449 rm -f $tmp/stdin | |
13450 if test x"$ac_file" != x-; then | |
13451 mv $tmp/out $ac_file | |
13452 else | |
13453 cat $tmp/out | |
13454 rm -f $tmp/out | |
13455 fi | |
13456 | |
13457 done | |
45226 | 13458 EOF |
13459 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13460 |
13461 # | |
13462 # CONFIG_HEADER section. | |
13463 # | |
25897 | 13464 |
13465 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13466 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13467 # | |
13468 # ac_d sets the value in "#define NAME VALUE" lines. | |
40056 | 13469 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
13470 ac_dB='[ ].*$,\1#\2' | |
13471 ac_dC=' ' | |
13472 ac_dD=',;t' | |
13473 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13474 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13475 ac_uB='$,\1#\2define\3' | |
25897 | 13476 ac_uC=' ' |
40056 | 13477 ac_uD=',;t' |
13478 | |
13479 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
25897 | 13480 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 13481 case $ac_file in |
13482 - | *:- | *:-:* ) # input from stdin | |
13483 cat >$tmp/stdin | |
13484 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13485 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13486 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13487 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13488 * ) ac_file_in=$ac_file.in ;; | |
25897 | 13489 esac |
13490 | |
47560 | 13491 test x"$ac_file" != x- && { echo "$as_me:13491: creating $ac_file" >&5 |
40056 | 13492 echo "$as_me: creating $ac_file" >&6;} |
13493 | |
13494 # First look for the input files in the build tree, otherwise in the | |
13495 # src tree. | |
13496 ac_file_inputs=`IFS=: | |
13497 for f in $ac_file_in; do | |
13498 case $f in | |
13499 -) echo $tmp/stdin ;; | |
13500 [\\/$]*) | |
13501 # Absolute (can't be DOS-style, as IFS=:) | |
47560 | 13502 test -f "$f" || { { echo "$as_me:13502: error: cannot find input file: $f" >&5 |
40056 | 13503 echo "$as_me: error: cannot find input file: $f" >&2;} |
13504 { (exit 1); exit 1; }; } | |
13505 echo $f;; | |
13506 *) # Relative | |
13507 if test -f "$f"; then | |
13508 # Build tree | |
13509 echo $f | |
13510 elif test -f "$srcdir/$f"; then | |
13511 # Source tree | |
13512 echo $srcdir/$f | |
13513 else | |
13514 # /dev/null tree | |
47560 | 13515 { { echo "$as_me:13515: error: cannot find input file: $f" >&5 |
40056 | 13516 echo "$as_me: error: cannot find input file: $f" >&2;} |
13517 { (exit 1); exit 1; }; } | |
13518 fi;; | |
13519 esac | |
13520 done` || { (exit 1); exit 1; } | |
13521 # Remove the trailing spaces. | |
13522 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
13523 | |
45226 | 13524 EOF |
40056 | 13525 |
13526 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
13527 # `conftest.undefs', that substitutes the proper values into | |
13528 # config.h.in to produce config.h. The first handles `#define' | |
13529 # templates, and the second `#undef' templates. | |
13530 # And first: Protect against being on the right side of a sed subst in | |
13531 # config.status. Protect against being in an unquoted here document | |
13532 # in config.status. | |
13533 rm -f conftest.defines conftest.undefs | |
13534 # Using a here document instead of a string reduces the quoting nightmare. | |
13535 # Putting comments in sed scripts is not portable. | |
13536 # | |
13537 # `end' is used to avoid that the second main sed command (meant for | |
13538 # 0-ary CPP macros) applies to n-ary macro definitions. | |
13539 # See the Autoconf documentation for `clear'. | |
45226 | 13540 cat >confdef2sed.sed <<\EOF |
40056 | 13541 s/[\\&,]/\\&/g |
13542 s,[\\$`],\\&,g | |
13543 t clear | |
13544 : clear | |
45226 | 13545 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp |
40056 | 13546 t end |
13547 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
13548 : end | |
45226 | 13549 EOF |
40056 | 13550 # If some macros were called several times there might be several times |
13551 # the same #defines, which is useless. Nevertheless, we may not want to | |
13552 # sort them, since we want the *last* AC-DEFINE to be honored. | |
13553 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
13554 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
13555 rm -f confdef2sed.sed | |
25897 | 13556 |
13557 # This sed command replaces #undef with comments. This is necessary, for | |
13558 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13559 # on some systems where configure will not decide to define it. | |
45226 | 13560 cat >>conftest.undefs <<\EOF |
40056 | 13561 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
45226 | 13562 EOF |
40056 | 13563 |
13564 # Break up conftest.defines because some shells have a limit on the size | |
13565 # of here documents, and old seds have small limits too (100 cmds). | |
13566 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
13567 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
13568 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
13569 echo ' :' >>$CONFIG_STATUS | |
25897 | 13570 rm -f conftest.tail |
40056 | 13571 while grep . conftest.defines >/dev/null |
25897 | 13572 do |
40056 | 13573 # Write a limited-size here document to $tmp/defines.sed. |
13574 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
13575 # Speed up: don't consider the non `#define' lines. | |
13576 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
13577 # Work around the forget-to-reset-the-flag bug. | |
13578 echo 't clr' >>$CONFIG_STATUS | |
13579 echo ': clr' >>$CONFIG_STATUS | |
13580 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
25897 | 13581 echo 'CEOF |
40056 | 13582 sed -f $tmp/defines.sed $tmp/in >$tmp/out |
13583 rm -f $tmp/in | |
13584 mv $tmp/out $tmp/in | |
13585 ' >>$CONFIG_STATUS | |
13586 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
13587 rm -f conftest.defines | |
13588 mv conftest.tail conftest.defines | |
13589 done | |
13590 rm -f conftest.defines | |
13591 echo ' fi # egrep' >>$CONFIG_STATUS | |
13592 echo >>$CONFIG_STATUS | |
13593 | |
13594 # Break up conftest.undefs because some shells have a limit on the size | |
13595 # of here documents, and old seds have small limits too (100 cmds). | |
13596 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
13597 rm -f conftest.tail | |
13598 while grep . conftest.undefs >/dev/null | |
13599 do | |
13600 # Write a limited-size here document to $tmp/undefs.sed. | |
13601 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
13602 # Speed up: don't consider the non `#undef' | |
13603 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
13604 # Work around the forget-to-reset-the-flag bug. | |
13605 echo 't clr' >>$CONFIG_STATUS | |
13606 echo ': clr' >>$CONFIG_STATUS | |
13607 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
13608 echo 'CEOF | |
13609 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
13610 rm -f $tmp/in | |
13611 mv $tmp/out $tmp/in | |
13612 ' >>$CONFIG_STATUS | |
13613 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
13614 rm -f conftest.undefs | |
13615 mv conftest.tail conftest.undefs | |
25897 | 13616 done |
40056 | 13617 rm -f conftest.undefs |
13618 | |
45226 | 13619 cat >>$CONFIG_STATUS <<\EOF |
40056 | 13620 # Let's still pretend it is `configure' which instantiates (i.e., don't |
13621 # use $as_me), people would be surprised to read: | |
45226 | 13622 # /* config.h. Generated automatically by config.status. */ |
40056 | 13623 if test x"$ac_file" = x-; then |
45226 | 13624 echo "/* Generated automatically by configure. */" >$tmp/config.h |
44493 | 13625 else |
45226 | 13626 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
40056 | 13627 fi |
13628 cat $tmp/in >>$tmp/config.h | |
13629 rm -f $tmp/in | |
13630 if test x"$ac_file" != x-; then | |
13631 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
47560 | 13632 { echo "$as_me:13632: $ac_file is unchanged" >&5 |
40056 | 13633 echo "$as_me: $ac_file is unchanged" >&6;} |
13634 else | |
45226 | 13635 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
40056 | 13636 X"$ac_file" : 'X\(//\)[^/]' \| \ |
13637 X"$ac_file" : 'X\(//\)$' \| \ | |
13638 X"$ac_file" : 'X\(/\)' \| \ | |
13639 . : '\(.\)' 2>/dev/null || | |
13640 echo X"$ac_file" | | |
13641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13642 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13643 /^X\(\/\/\)$/{ s//\1/; q; } | |
13644 /^X\(\/\).*/{ s//\1/; q; } | |
13645 s/.*/./; q'` | |
45226 | 13646 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
13647 { case "$ac_dir" in | |
44994 | 13648 [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
13649 *) as_incr_dir=.;; | |
13650 esac | |
13651 as_dummy="$ac_dir" | |
13652 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
13653 case $as_mkdir_dir in | |
13654 # Skip DOS drivespec | |
13655 ?:) as_incr_dir=$as_mkdir_dir ;; | |
13656 *) | |
13657 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
45226 | 13658 test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
44994 | 13659 ;; |
13660 esac | |
13661 done; } | |
40056 | 13662 |
45226 | 13663 fi |
40056 | 13664 rm -f $ac_file |
13665 mv $tmp/config.h $ac_file | |
25897 | 13666 fi |
40056 | 13667 else |
13668 cat $tmp/config.h | |
13669 rm -f $tmp/config.h | |
13670 fi | |
13671 done | |
45226 | 13672 EOF |
13673 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13674 |
13675 # | |
13676 # CONFIG_COMMANDS section. | |
13677 # | |
13678 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
13679 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
13680 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45226 | 13681 |
40056 | 13682 case $ac_dest in |
13683 default ) | |
25897 | 13684 |
13685 ### Make the necessary directories, if they don't exist. | |
13686 for dir in etc lisp ; do | |
13687 test -d ${dir} || mkdir ${dir} | |
13688 done | |
13689 | |
13690 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
13691 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
13692 # This must be done after src/config.h is built, since we rely on that file. | |
13693 | |
13694 # Now get this: Some word that is part of the ${srcdir} directory name | |
13695 # or the ${configuration} value might, just might, happen to be an | |
13696 # identifier like `sun4' or `i386' or something, and be predefined by | |
13697 # the C preprocessor to some helpful value like 1, or maybe the empty | |
13698 # string. Needless to say consequent macro substitutions are less | |
13699 # than conducive to the makefile finding the correct directory. | |
13700 undefs="`echo $top_srcdir $configuration $canonical | | |
13701 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
13702 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
13703 `" | |
13704 | |
13705 echo creating src/epaths.h | |
40256 | 13706 ${MAKE-make} epaths-force |
25897 | 13707 |
33652 | 13708 # As of 2000-11-19, newest development versions of GNU cpp preprocess |
13709 # `..' to `. .' unless invoked with -traditional | |
13710 | |
36354 | 13711 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
33652 | 13712 CPPFLAGS="$CPPFLAGS -traditional" |
13713 fi | |
13714 | |
25897 | 13715 echo creating lib-src/Makefile |
13716 ( cd lib-src | |
13717 rm -f junk.c junk1.c junk2.c | |
13718 sed -e '/start of cpp stuff/q' \ | |
13719 < Makefile.c > junk1.c | |
13720 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 13721 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 13722 < Makefile.c > junk.c |
40056 | 13723 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 13724 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
13725 cat junk1.c junk2.c > Makefile.new | |
13726 rm -f junk.c junk1.c junk2.c | |
13727 chmod 444 Makefile.new | |
13728 mv -f Makefile.new Makefile | |
13729 ) | |
13730 | |
13731 echo creating src/Makefile | |
13732 ( cd src | |
13733 rm -f junk.c junk1.c junk2.c | |
13734 sed -e '/start of cpp stuff/q' \ | |
13735 < Makefile.c > junk1.c | |
13736 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 13737 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 13738 < Makefile.c > junk.c |
40056 | 13739 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 13740 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
13741 cat junk1.c junk2.c > Makefile.new | |
13742 rm -f junk.c junk1.c junk2.c | |
13743 chmod 444 Makefile.new | |
13744 mv -f Makefile.new Makefile | |
13745 ) | |
13746 | |
40056 | 13747 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
25897 | 13748 echo creating src/.gdbinit |
40056 | 13749 echo source $srcdir/src/.gdbinit > src/.gdbinit |
25897 | 13750 fi |
13751 | |
13752 # This is how we know whether to re-run configure in certain cases. | |
13753 touch src/config.stamp | |
13754 | |
40056 | 13755 ;; |
13756 esac | |
13757 done | |
45226 | 13758 EOF |
13759 | |
13760 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13761 |
13762 { (exit 0); exit 0; } | |
45226 | 13763 EOF |
25897 | 13764 chmod +x $CONFIG_STATUS |
40056 | 13765 ac_clean_files=$ac_clean_files_save |
13766 | |
13767 # configure is writing to config.log, and then calls config.status. | |
13768 # config.status does its own redirection, appending to config.log. | |
13769 # Unfortunately, on DOS this fails, as config.log is still kept open | |
13770 # by configure, so config.status won't be able to write to it; its | |
13771 # output is simply discarded. So we exec the FD to /dev/null, | |
13772 # effectively closing config.log, so it can be properly (re)opened and | |
13773 # appended to by config.status. When coming back to configure, we | |
13774 # need to make the FD available again. | |
13775 if test "$no_create" != yes; then | |
13776 ac_cs_success=: | |
13777 exec 5>/dev/null | |
13778 $SHELL $CONFIG_STATUS || ac_cs_success=false | |
13779 exec 5>>config.log | |
13780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13781 # would make configure fail if this is the last instruction. | |
13782 $ac_cs_success || { (exit 1); exit 1; } | |
13783 fi | |
13784 |