Commit | Line | Data |
---|---|---|
0f2d19dd JB |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
733943b9 | 4 | # Generated automatically using autoconf version 2.12 |
087d2a6f | 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
0f2d19dd JB |
6 | # |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
074657b0 MD |
14 | ac_help="$ac_help |
15 | --disable-debug Don't include debugging support" | |
abb2a7d0 MV |
16 | ac_help="$ac_help |
17 | --enable-dynamic-linking Include support for dynamic linking" | |
1bb9f4db MV |
18 | ac_help="$ac_help |
19 | --enable-shared build shared libraries [default=yes]" | |
72f0e9fc MD |
20 | ac_help="$ac_help |
21 | --with-threads thread interface" | |
0f2d19dd JB |
22 | |
23 | # Initialize some variables set by options. | |
24 | # The variables have the same names as the options, with | |
25 | # dashes changed to underlines. | |
26 | build=NONE | |
27 | cache_file=./config.cache | |
28 | exec_prefix=NONE | |
29 | host=NONE | |
30 | no_create= | |
31 | nonopt=NONE | |
32 | no_recursion= | |
33 | prefix=NONE | |
34 | program_prefix=NONE | |
35 | program_suffix=NONE | |
36 | program_transform_name=s,x,x, | |
37 | silent= | |
38 | site= | |
39 | srcdir= | |
40 | target=NONE | |
41 | verbose= | |
42 | x_includes=NONE | |
43 | x_libraries=NONE | |
44 | bindir='${exec_prefix}/bin' | |
45 | sbindir='${exec_prefix}/sbin' | |
46 | libexecdir='${exec_prefix}/libexec' | |
47 | datadir='${prefix}/share' | |
48 | sysconfdir='${prefix}/etc' | |
49 | sharedstatedir='${prefix}/com' | |
50 | localstatedir='${prefix}/var' | |
51 | libdir='${exec_prefix}/lib' | |
52 | includedir='${prefix}/include' | |
53 | oldincludedir='/usr/include' | |
54 | infodir='${prefix}/info' | |
55 | mandir='${prefix}/man' | |
56 | ||
57 | # Initialize some other variables. | |
58 | subdirs= | |
59 | MFLAGS= MAKEFLAGS= | |
733943b9 TT |
60 | # Maximum number of lines to put in a shell here document. |
61 | ac_max_here_lines=12 | |
0f2d19dd JB |
62 | |
63 | ac_prev= | |
64 | for ac_option | |
65 | do | |
66 | ||
67 | # If the previous option needs an argument, assign it. | |
68 | if test -n "$ac_prev"; then | |
69 | eval "$ac_prev=\$ac_option" | |
70 | ac_prev= | |
71 | continue | |
72 | fi | |
73 | ||
74 | case "$ac_option" in | |
75 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
76 | *) ac_optarg= ;; | |
77 | esac | |
78 | ||
79 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
80 | ||
81 | case "$ac_option" in | |
82 | ||
83 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
84 | ac_prev=bindir ;; | |
85 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
86 | bindir="$ac_optarg" ;; | |
87 | ||
88 | -build | --build | --buil | --bui | --bu) | |
89 | ac_prev=build ;; | |
90 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
91 | build="$ac_optarg" ;; | |
92 | ||
93 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
94 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
95 | ac_prev=cache_file ;; | |
96 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
97 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
98 | cache_file="$ac_optarg" ;; | |
99 | ||
100 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
101 | ac_prev=datadir ;; | |
102 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
103 | | --da=*) | |
104 | datadir="$ac_optarg" ;; | |
105 | ||
106 | -disable-* | --disable-*) | |
107 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
108 | # Reject names that are not valid shell variable names. | |
109 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
110 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
111 | fi | |
112 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
113 | eval "enable_${ac_feature}=no" ;; | |
114 | ||
115 | -enable-* | --enable-*) | |
116 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
117 | # Reject names that are not valid shell variable names. | |
118 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
119 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
120 | fi | |
121 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
122 | case "$ac_option" in | |
123 | *=*) ;; | |
124 | *) ac_optarg=yes ;; | |
125 | esac | |
126 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
127 | ||
128 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
129 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
130 | | --exec | --exe | --ex) | |
131 | ac_prev=exec_prefix ;; | |
132 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
133 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
134 | | --exec=* | --exe=* | --ex=*) | |
135 | exec_prefix="$ac_optarg" ;; | |
136 | ||
137 | -gas | --gas | --ga | --g) | |
138 | # Obsolete; use --with-gas. | |
139 | with_gas=yes ;; | |
140 | ||
141 | -help | --help | --hel | --he) | |
142 | # Omit some internal or obsolete options to make the list less imposing. | |
143 | # This message is too long to be a string in the A/UX 3.1 sh. | |
144 | cat << EOF | |
145 | Usage: configure [options] [host] | |
146 | Options: [defaults in brackets after descriptions] | |
147 | Configuration: | |
148 | --cache-file=FILE cache test results in FILE | |
149 | --help print this message | |
150 | --no-create do not create output files | |
151 | --quiet, --silent do not print \`checking...' messages | |
152 | --version print the version of autoconf that created configure | |
153 | Directory and file names: | |
154 | --prefix=PREFIX install architecture-independent files in PREFIX | |
155 | [$ac_default_prefix] | |
156 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
157 | [same as prefix] | |
158 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
159 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
160 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
161 | --datadir=DIR read-only architecture-independent data in DIR | |
162 | [PREFIX/share] | |
163 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
164 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
165 | [PREFIX/com] | |
166 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
167 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
168 | --includedir=DIR C header files in DIR [PREFIX/include] | |
169 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
170 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
171 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
172 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
173 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
174 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
175 | --program-transform-name=PROGRAM | |
176 | run sed PROGRAM on installed program names | |
177 | EOF | |
178 | cat << EOF | |
179 | Host type: | |
180 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
181 | --host=HOST configure for HOST [guessed] | |
182 | --target=TARGET configure for TARGET [TARGET=HOST] | |
183 | Features and packages: | |
184 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
185 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
186 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
187 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
188 | --x-includes=DIR X include files are in DIR | |
189 | --x-libraries=DIR X library files are in DIR | |
190 | EOF | |
191 | if test -n "$ac_help"; then | |
192 | echo "--enable and --with options recognized:$ac_help" | |
193 | fi | |
194 | exit 0 ;; | |
195 | ||
196 | -host | --host | --hos | --ho) | |
197 | ac_prev=host ;; | |
198 | -host=* | --host=* | --hos=* | --ho=*) | |
199 | host="$ac_optarg" ;; | |
200 | ||
201 | -includedir | --includedir | --includedi | --included | --include \ | |
202 | | --includ | --inclu | --incl | --inc) | |
203 | ac_prev=includedir ;; | |
204 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
205 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
206 | includedir="$ac_optarg" ;; | |
207 | ||
208 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
209 | ac_prev=infodir ;; | |
210 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
211 | infodir="$ac_optarg" ;; | |
212 | ||
213 | -libdir | --libdir | --libdi | --libd) | |
214 | ac_prev=libdir ;; | |
215 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
216 | libdir="$ac_optarg" ;; | |
217 | ||
218 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
219 | | --libexe | --libex | --libe) | |
220 | ac_prev=libexecdir ;; | |
221 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
222 | | --libexe=* | --libex=* | --libe=*) | |
223 | libexecdir="$ac_optarg" ;; | |
224 | ||
225 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
226 | | --localstate | --localstat | --localsta | --localst \ | |
227 | | --locals | --local | --loca | --loc | --lo) | |
228 | ac_prev=localstatedir ;; | |
229 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
230 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
231 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
232 | localstatedir="$ac_optarg" ;; | |
233 | ||
234 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
235 | ac_prev=mandir ;; | |
236 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
237 | mandir="$ac_optarg" ;; | |
238 | ||
239 | -nfp | --nfp | --nf) | |
240 | # Obsolete; use --without-fp. | |
241 | with_fp=no ;; | |
242 | ||
243 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
244 | | --no-cr | --no-c) | |
245 | no_create=yes ;; | |
246 | ||
247 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
248 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
249 | no_recursion=yes ;; | |
250 | ||
251 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
252 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
253 | | --oldin | --oldi | --old | --ol | --o) | |
254 | ac_prev=oldincludedir ;; | |
255 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
256 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
257 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
258 | oldincludedir="$ac_optarg" ;; | |
259 | ||
260 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
261 | ac_prev=prefix ;; | |
262 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
263 | prefix="$ac_optarg" ;; | |
264 | ||
265 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
266 | | --program-pre | --program-pr | --program-p) | |
267 | ac_prev=program_prefix ;; | |
268 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
269 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
270 | program_prefix="$ac_optarg" ;; | |
271 | ||
272 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
273 | | --program-suf | --program-su | --program-s) | |
274 | ac_prev=program_suffix ;; | |
275 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
276 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
277 | program_suffix="$ac_optarg" ;; | |
278 | ||
279 | -program-transform-name | --program-transform-name \ | |
280 | | --program-transform-nam | --program-transform-na \ | |
281 | | --program-transform-n | --program-transform- \ | |
282 | | --program-transform | --program-transfor \ | |
283 | | --program-transfo | --program-transf \ | |
284 | | --program-trans | --program-tran \ | |
285 | | --progr-tra | --program-tr | --program-t) | |
286 | ac_prev=program_transform_name ;; | |
287 | -program-transform-name=* | --program-transform-name=* \ | |
288 | | --program-transform-nam=* | --program-transform-na=* \ | |
289 | | --program-transform-n=* | --program-transform-=* \ | |
290 | | --program-transform=* | --program-transfor=* \ | |
291 | | --program-transfo=* | --program-transf=* \ | |
292 | | --program-trans=* | --program-tran=* \ | |
293 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
294 | program_transform_name="$ac_optarg" ;; | |
295 | ||
296 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
297 | | -silent | --silent | --silen | --sile | --sil) | |
298 | silent=yes ;; | |
299 | ||
300 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
301 | ac_prev=sbindir ;; | |
302 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
303 | | --sbi=* | --sb=*) | |
304 | sbindir="$ac_optarg" ;; | |
305 | ||
306 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
307 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
308 | | --sharedst | --shareds | --shared | --share | --shar \ | |
309 | | --sha | --sh) | |
310 | ac_prev=sharedstatedir ;; | |
311 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
312 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
313 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
314 | | --sha=* | --sh=*) | |
315 | sharedstatedir="$ac_optarg" ;; | |
316 | ||
317 | -site | --site | --sit) | |
318 | ac_prev=site ;; | |
319 | -site=* | --site=* | --sit=*) | |
320 | site="$ac_optarg" ;; | |
321 | ||
322 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
323 | ac_prev=srcdir ;; | |
324 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
325 | srcdir="$ac_optarg" ;; | |
326 | ||
327 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
328 | | --syscon | --sysco | --sysc | --sys | --sy) | |
329 | ac_prev=sysconfdir ;; | |
330 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
331 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
332 | sysconfdir="$ac_optarg" ;; | |
333 | ||
334 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
335 | ac_prev=target ;; | |
336 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
337 | target="$ac_optarg" ;; | |
338 | ||
339 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
340 | verbose=yes ;; | |
341 | ||
342 | -version | --version | --versio | --versi | --vers) | |
733943b9 | 343 | echo "configure generated by autoconf version 2.12" |
0f2d19dd JB |
344 | exit 0 ;; |
345 | ||
346 | -with-* | --with-*) | |
347 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
348 | # Reject names that are not valid shell variable names. | |
349 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
350 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
351 | fi | |
352 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
353 | case "$ac_option" in | |
354 | *=*) ;; | |
355 | *) ac_optarg=yes ;; | |
356 | esac | |
357 | eval "with_${ac_package}='$ac_optarg'" ;; | |
358 | ||
359 | -without-* | --without-*) | |
360 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
361 | # Reject names that are not valid shell variable names. | |
362 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
363 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
364 | fi | |
365 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
366 | eval "with_${ac_package}=no" ;; | |
367 | ||
368 | --x) | |
369 | # Obsolete; use --with-x. | |
370 | with_x=yes ;; | |
371 | ||
372 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
373 | | --x-incl | --x-inc | --x-in | --x-i) | |
374 | ac_prev=x_includes ;; | |
375 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
376 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
377 | x_includes="$ac_optarg" ;; | |
378 | ||
379 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
380 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
381 | ac_prev=x_libraries ;; | |
382 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
383 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
384 | x_libraries="$ac_optarg" ;; | |
385 | ||
386 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
387 | ;; | |
388 | ||
389 | *) | |
390 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
391 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
392 | fi | |
393 | if test "x$nonopt" != xNONE; then | |
394 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
395 | fi | |
396 | nonopt="$ac_option" | |
397 | ;; | |
398 | ||
399 | esac | |
400 | done | |
401 | ||
402 | if test -n "$ac_prev"; then | |
403 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
404 | fi | |
405 | ||
406 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
407 | ||
408 | # File descriptor usage: | |
409 | # 0 standard input | |
410 | # 1 file creation | |
411 | # 2 errors and warnings | |
412 | # 3 some systems may open it to /dev/tty | |
413 | # 4 used on the Kubota Titan | |
414 | # 6 checking for... messages and results | |
415 | # 5 compiler messages saved in config.log | |
416 | if test "$silent" = yes; then | |
417 | exec 6>/dev/null | |
418 | else | |
419 | exec 6>&1 | |
420 | fi | |
421 | exec 5>./config.log | |
422 | ||
423 | echo "\ | |
424 | This file contains any messages produced by compilers while | |
425 | running configure, to aid debugging if configure makes a mistake. | |
426 | " 1>&5 | |
427 | ||
428 | # Strip out --no-create and --no-recursion so they do not pile up. | |
429 | # Also quote any args containing shell metacharacters. | |
430 | ac_configure_args= | |
431 | for ac_arg | |
432 | do | |
433 | case "$ac_arg" in | |
434 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
435 | | --no-cr | --no-c) ;; | |
436 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
437 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
438 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
439 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
440 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
441 | esac | |
442 | done | |
443 | ||
444 | # NLS nuisances. | |
733943b9 TT |
445 | # Only set these to C if already set. These must not be set unconditionally |
446 | # because not all systems understand e.g. LANG=C (notably SCO). | |
447 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
448 | # Non-C LC_CTYPE values break the ctype check. | |
0f2d19dd | 449 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
733943b9 TT |
450 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
451 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
452 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
0f2d19dd JB |
453 | |
454 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
455 | rm -rf conftest* confdefs.h | |
456 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
457 | echo > confdefs.h | |
458 | ||
459 | # A filename unique to this package, relative to the directory that | |
460 | # configure is in, which we can look for to find out if srcdir is correct. | |
461 | ac_unique_file=eval.c | |
462 | ||
463 | # Find the source files, if location was not specified. | |
464 | if test -z "$srcdir"; then | |
465 | ac_srcdir_defaulted=yes | |
466 | # Try the directory containing this script, then its parent. | |
467 | ac_prog=$0 | |
468 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
469 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
470 | srcdir=$ac_confdir | |
471 | if test ! -r $srcdir/$ac_unique_file; then | |
472 | srcdir=.. | |
473 | fi | |
474 | else | |
475 | ac_srcdir_defaulted=no | |
476 | fi | |
477 | if test ! -r $srcdir/$ac_unique_file; then | |
478 | if test "$ac_srcdir_defaulted" = yes; then | |
479 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
480 | else | |
481 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
482 | fi | |
483 | fi | |
484 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
485 | ||
486 | # Prefer explicitly selected file to automatically selected ones. | |
487 | if test -z "$CONFIG_SITE"; then | |
488 | if test "x$prefix" != xNONE; then | |
489 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
490 | else | |
491 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
492 | fi | |
493 | fi | |
494 | for ac_site_file in $CONFIG_SITE; do | |
495 | if test -r "$ac_site_file"; then | |
496 | echo "loading site script $ac_site_file" | |
497 | . "$ac_site_file" | |
498 | fi | |
499 | done | |
500 | ||
501 | if test -r "$cache_file"; then | |
502 | echo "loading cache $cache_file" | |
503 | . $cache_file | |
504 | else | |
505 | echo "creating cache $cache_file" | |
506 | > $cache_file | |
507 | fi | |
508 | ||
509 | ac_ext=c | |
510 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
087d2a6f JB |
511 | ac_cpp='$CPP $CPPFLAGS' |
512 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
513 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
733943b9 | 514 | cross_compiling=$ac_cv_prog_cc_cross |
0f2d19dd JB |
515 | |
516 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
517 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
518 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
519 | ac_n= ac_c=' | |
520 | ' ac_t=' ' | |
521 | else | |
522 | ac_n=-n ac_c= ac_t= | |
523 | fi | |
524 | else | |
525 | ac_n= ac_c='\c' ac_t= | |
526 | fi | |
527 | ||
528 | ||
529 | ||
530 | ||
733943b9 TT |
531 | |
532 | ac_aux_dir= | |
533 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
534 | if test -f $ac_dir/install-sh; then | |
535 | ac_aux_dir=$ac_dir | |
536 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
537 | break | |
538 | elif test -f $ac_dir/install.sh; then | |
539 | ac_aux_dir=$ac_dir | |
540 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
541 | break | |
542 | fi | |
543 | done | |
544 | if test -z "$ac_aux_dir"; then | |
545 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
546 | fi | |
547 | ac_config_guess=$ac_aux_dir/config.guess | |
548 | ac_config_sub=$ac_aux_dir/config.sub | |
549 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
550 | ||
551 | # Find a good install program. We prefer a C program (faster), | |
552 | # so one script is as good as another. But avoid the broken or | |
553 | # incompatible versions: | |
554 | # SysV /etc/install, /usr/sbin/install | |
555 | # SunOS /usr/etc/install | |
556 | # IRIX /sbin/install | |
557 | # AIX /bin/install | |
558 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
559 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
560 | # ./install, which can be erroneously created by make from ./install.sh. | |
561 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
1bb9f4db | 562 | echo "configure:563: checking for a BSD compatible install" >&5 |
733943b9 TT |
563 | if test -z "$INSTALL"; then |
564 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
566 | else | |
567 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
568 | for ac_dir in $PATH; do | |
569 | # Account for people who put trailing slashes in PATH elements. | |
570 | case "$ac_dir/" in | |
571 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
572 | *) | |
573 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
574 | for ac_prog in ginstall installbsd scoinst install; do | |
575 | if test -f $ac_dir/$ac_prog; then | |
576 | if test $ac_prog = install && | |
577 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
578 | # AIX install. It has an incompatible calling convention. | |
579 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
580 | : | |
581 | else | |
582 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
583 | break 2 | |
584 | fi | |
585 | fi | |
586 | done | |
587 | ;; | |
588 | esac | |
589 | done | |
590 | IFS="$ac_save_IFS" | |
591 | ||
592 | fi | |
593 | if test "${ac_cv_path_install+set}" = set; then | |
594 | INSTALL="$ac_cv_path_install" | |
595 | else | |
596 | # As a last resort, use the slow shell script. We don't cache a | |
597 | # path for INSTALL within a source directory, because that will | |
598 | # break other packages using the cache if that directory is | |
599 | # removed, or if the path is relative. | |
600 | INSTALL="$ac_install_sh" | |
601 | fi | |
602 | fi | |
603 | echo "$ac_t""$INSTALL" 1>&6 | |
604 | ||
605 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
606 | # It thinks the first close brace ends the variable substitution. | |
607 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
608 | ||
609 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
610 | ||
611 | ||
612 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
613 | ||
614 | ||
0f2d19dd JB |
615 | . $srcdir/../GUILE-VERSION |
616 | ||
733943b9 TT |
617 | PACKAGE=$PACKAGE |
618 | ||
619 | cat >> confdefs.h <<EOF | |
620 | #define PACKAGE "$PACKAGE" | |
621 | EOF | |
622 | ||
623 | VERSION=$VERSION | |
624 | ||
625 | cat >> confdefs.h <<EOF | |
626 | #define VERSION "$VERSION" | |
627 | EOF | |
628 | ||
629 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
1bb9f4db | 630 | echo "configure:631: checking whether build environment is sane" >&5 |
733943b9 TT |
631 | echo timestamp > conftestfile |
632 | # Do this in a subshell so we don't clobber the current shell's | |
633 | # arguments. FIXME: maybe try `-L' hack like GETLOADAVG test? | |
634 | if (set X `ls -t $srcdir/configure conftestfile`; test "$2" = conftestfile) | |
635 | then | |
636 | # Ok. | |
637 | : | |
638 | else | |
639 | { echo "configure: error: newly created file is older than distributed files! | |
640 | Check your system clock" 1>&2; exit 1; } | |
641 | fi | |
642 | rm -f conftest* | |
643 | echo "$ac_t""yes" 1>&6 | |
644 | if test "$program_transform_name" = s,x,x,; then | |
645 | program_transform_name= | |
646 | else | |
647 | # Double any \ or $. echo might interpret backslashes. | |
648 | cat <<\EOF_SED > conftestsed | |
649 | s,\\,\\\\,g; s,\$,$$,g | |
650 | EOF_SED | |
651 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
652 | rm -f conftestsed | |
653 | fi | |
654 | test "$program_prefix" != NONE && | |
655 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
656 | # Use a double $ so make ignores it. | |
657 | test "$program_suffix" != NONE && | |
658 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
659 | ||
660 | # sed with no file args requires a program. | |
661 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
662 | ||
663 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
1bb9f4db | 664 | echo "configure:665: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
733943b9 TT |
665 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
666 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
668 | else | |
669 | cat > conftestmake <<\EOF | |
670 | all: | |
671 | @echo 'ac_maketemp="${MAKE}"' | |
672 | EOF | |
673 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
674 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
675 | if test -n "$ac_maketemp"; then | |
676 | eval ac_cv_prog_make_${ac_make}_set=yes | |
677 | else | |
678 | eval ac_cv_prog_make_${ac_make}_set=no | |
679 | fi | |
680 | rm -f conftestmake | |
681 | fi | |
682 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
683 | echo "$ac_t""yes" 1>&6 | |
684 | SET_MAKE= | |
685 | else | |
686 | echo "$ac_t""no" 1>&6 | |
687 | SET_MAKE="MAKE=${MAKE-make}" | |
688 | fi | |
689 | ||
690 | ac_aux_dir= | |
691 | for ac_dir in .. $srcdir/..; do | |
692 | if test -f $ac_dir/install-sh; then | |
693 | ac_aux_dir=$ac_dir | |
694 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
695 | break | |
696 | elif test -f $ac_dir/install.sh; then | |
697 | ac_aux_dir=$ac_dir | |
698 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
699 | break | |
700 | fi | |
701 | done | |
702 | if test -z "$ac_aux_dir"; then | |
703 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; } | |
704 | fi | |
705 | ac_config_guess=$ac_aux_dir/config.guess | |
706 | ac_config_sub=$ac_aux_dir/config.sub | |
707 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
708 | ||
709 | module=libguile | |
710 | ||
711 | ||
074657b0 MD |
712 | #-------------------------------------------------------------------- |
713 | # | |
714 | # User options | |
715 | # | |
716 | #-------------------------------------------------------------------- | |
717 | ||
718 | # Check whether --enable-debug or --disable-debug was given. | |
719 | if test "${enable_debug+set}" = set; then | |
720 | enableval="$enable_debug" | |
721 | : | |
722 | fi | |
723 | ||
724 | if test "$enableval" != n && test "$enableval" != no; then | |
725 | cat >> confdefs.h <<\EOF | |
726 | #define DEBUG_EXTENSIONS 1 | |
727 | EOF | |
728 | ||
729 | cat >> confdefs.h <<\EOF | |
730 | #define READER_EXTENSIONS 1 | |
731 | EOF | |
732 | ||
9ab71a53 | 733 | LIBOBJS="backtrace.o stacks.o debug.o srcprop.o $LIBOBJS" |
074657b0 MD |
734 | fi |
735 | ||
abb2a7d0 MV |
736 | # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given. |
737 | if test "${enable_dynamic_linking+set}" = set; then | |
738 | enableval="$enable_dynamic_linking" | |
739 | : | |
740 | fi | |
741 | ||
abb2a7d0 | 742 | |
074657b0 MD |
743 | #-------------------------------------------------------------------- |
744 | ||
0f2d19dd JB |
745 | # Extract the first word of "gcc", so it can be a program name with args. |
746 | set dummy gcc; ac_word=$2 | |
747 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d914fd5f | 748 | echo "configure:749: checking for $ac_word" >&5 |
0f2d19dd JB |
749 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
751 | else | |
752 | if test -n "$CC"; then | |
753 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
754 | else | |
755 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
756 | for ac_dir in $PATH; do | |
757 | test -z "$ac_dir" && ac_dir=. | |
758 | if test -f $ac_dir/$ac_word; then | |
759 | ac_cv_prog_CC="gcc" | |
760 | break | |
761 | fi | |
762 | done | |
763 | IFS="$ac_save_ifs" | |
764 | fi | |
765 | fi | |
766 | CC="$ac_cv_prog_CC" | |
767 | if test -n "$CC"; then | |
768 | echo "$ac_t""$CC" 1>&6 | |
769 | else | |
770 | echo "$ac_t""no" 1>&6 | |
771 | fi | |
772 | ||
087d2a6f JB |
773 | if test -z "$CC"; then |
774 | # Extract the first word of "cc", so it can be a program name with args. | |
775 | set dummy cc; ac_word=$2 | |
776 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d914fd5f | 777 | echo "configure:778: checking for $ac_word" >&5 |
087d2a6f JB |
778 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
780 | else | |
781 | if test -n "$CC"; then | |
782 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
783 | else | |
784 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
785 | ac_prog_rejected=no | |
786 | for ac_dir in $PATH; do | |
787 | test -z "$ac_dir" && ac_dir=. | |
788 | if test -f $ac_dir/$ac_word; then | |
789 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
790 | ac_prog_rejected=yes | |
791 | continue | |
792 | fi | |
793 | ac_cv_prog_CC="cc" | |
794 | break | |
795 | fi | |
796 | done | |
797 | IFS="$ac_save_ifs" | |
798 | if test $ac_prog_rejected = yes; then | |
799 | # We found a bogon in the path, so make sure we never use it. | |
800 | set dummy $ac_cv_prog_CC | |
801 | shift | |
802 | if test $# -gt 0; then | |
803 | # We chose a different compiler from the bogus one. | |
804 | # However, it has the same basename, so the bogon will be chosen | |
805 | # first if we set CC to just the basename; use the full file name. | |
806 | shift | |
807 | set dummy "$ac_dir/$ac_word" "$@" | |
808 | shift | |
809 | ac_cv_prog_CC="$@" | |
810 | fi | |
811 | fi | |
812 | fi | |
813 | fi | |
814 | CC="$ac_cv_prog_CC" | |
815 | if test -n "$CC"; then | |
816 | echo "$ac_t""$CC" 1>&6 | |
817 | else | |
818 | echo "$ac_t""no" 1>&6 | |
819 | fi | |
820 | ||
821 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
822 | fi | |
0f2d19dd | 823 | |
733943b9 | 824 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
d914fd5f | 825 | echo "configure:826: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
733943b9 TT |
826 | |
827 | ac_ext=c | |
828 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
829 | ac_cpp='$CPP $CPPFLAGS' | |
830 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
831 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
832 | cross_compiling=$ac_cv_prog_cc_cross | |
833 | ||
834 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 835 | #line 836 "configure" |
733943b9 TT |
836 | #include "confdefs.h" |
837 | main(){return(0);} | |
838 | EOF | |
d914fd5f | 839 | if { (eval echo configure:840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
733943b9 TT |
840 | ac_cv_prog_cc_works=yes |
841 | # If we can't run a trivial program, we are probably using a cross compiler. | |
842 | if (./conftest; exit) 2>/dev/null; then | |
843 | ac_cv_prog_cc_cross=no | |
844 | else | |
845 | ac_cv_prog_cc_cross=yes | |
846 | fi | |
847 | else | |
848 | echo "configure: failed program was:" >&5 | |
849 | cat conftest.$ac_ext >&5 | |
850 | ac_cv_prog_cc_works=no | |
851 | fi | |
852 | rm -fr conftest* | |
853 | ||
854 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
855 | if test $ac_cv_prog_cc_works = no; then | |
856 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
857 | fi | |
858 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d914fd5f | 859 | echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
733943b9 TT |
860 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
861 | cross_compiling=$ac_cv_prog_cc_cross | |
862 | ||
0f2d19dd | 863 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
d914fd5f | 864 | echo "configure:865: checking whether we are using GNU C" >&5 |
0f2d19dd JB |
865 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
867 | else | |
868 | cat > conftest.c <<EOF | |
869 | #ifdef __GNUC__ | |
870 | yes; | |
871 | #endif | |
872 | EOF | |
d914fd5f | 873 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
0f2d19dd JB |
874 | ac_cv_prog_gcc=yes |
875 | else | |
876 | ac_cv_prog_gcc=no | |
877 | fi | |
878 | fi | |
879 | ||
880 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
733943b9 | 881 | |
0f2d19dd JB |
882 | if test $ac_cv_prog_gcc = yes; then |
883 | GCC=yes | |
733943b9 TT |
884 | ac_test_CFLAGS="${CFLAGS+set}" |
885 | ac_save_CFLAGS="$CFLAGS" | |
886 | CFLAGS= | |
887 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
d914fd5f | 888 | echo "configure:889: checking whether ${CC-cc} accepts -g" >&5 |
733943b9 | 889 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
0f2d19dd JB |
890 | echo $ac_n "(cached) $ac_c" 1>&6 |
891 | else | |
892 | echo 'void f(){}' > conftest.c | |
893 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
733943b9 | 894 | ac_cv_prog_cc_g=yes |
0f2d19dd | 895 | else |
733943b9 | 896 | ac_cv_prog_cc_g=no |
0f2d19dd JB |
897 | fi |
898 | rm -f conftest* | |
899 | ||
900 | fi | |
901 | ||
733943b9 TT |
902 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
903 | if test "$ac_test_CFLAGS" = set; then | |
904 | CFLAGS="$ac_save_CFLAGS" | |
905 | elif test $ac_cv_prog_cc_g = yes; then | |
906 | CFLAGS="-g -O2" | |
907 | else | |
908 | CFLAGS="-O2" | |
0f2d19dd JB |
909 | fi |
910 | else | |
911 | GCC= | |
912 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
913 | fi | |
914 | ||
915 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
d914fd5f | 916 | echo "configure:917: checking how to run the C preprocessor" >&5 |
0f2d19dd JB |
917 | # On Suns, sometimes $CPP names a directory. |
918 | if test -n "$CPP" && test -d "$CPP"; then | |
919 | CPP= | |
920 | fi | |
921 | if test -z "$CPP"; then | |
922 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
924 | else | |
925 | # This must be in double quotes, not single quotes, because CPP may get | |
926 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
927 | CPP="${CC-cc} -E" | |
928 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
929 | # not just through cpp. | |
930 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 931 | #line 932 "configure" |
0f2d19dd JB |
932 | #include "confdefs.h" |
933 | #include <assert.h> | |
934 | Syntax Error | |
935 | EOF | |
087d2a6f | 936 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d914fd5f | 937 | { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0f2d19dd JB |
938 | ac_err=`grep -v '^ *+' conftest.out` |
939 | if test -z "$ac_err"; then | |
940 | : | |
941 | else | |
942 | echo "$ac_err" >&5 | |
733943b9 TT |
943 | echo "configure: failed program was:" >&5 |
944 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
945 | rm -rf conftest* |
946 | CPP="${CC-cc} -E -traditional-cpp" | |
947 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 948 | #line 949 "configure" |
0f2d19dd JB |
949 | #include "confdefs.h" |
950 | #include <assert.h> | |
951 | Syntax Error | |
952 | EOF | |
087d2a6f | 953 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d914fd5f | 954 | { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0f2d19dd JB |
955 | ac_err=`grep -v '^ *+' conftest.out` |
956 | if test -z "$ac_err"; then | |
957 | : | |
958 | else | |
959 | echo "$ac_err" >&5 | |
733943b9 TT |
960 | echo "configure: failed program was:" >&5 |
961 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
962 | rm -rf conftest* |
963 | CPP=/lib/cpp | |
964 | fi | |
965 | rm -f conftest* | |
966 | fi | |
967 | rm -f conftest* | |
968 | ac_cv_prog_CPP="$CPP" | |
969 | fi | |
970 | CPP="$ac_cv_prog_CPP" | |
971 | else | |
972 | ac_cv_prog_CPP="$CPP" | |
973 | fi | |
974 | echo "$ac_t""$CPP" 1>&6 | |
975 | ||
1bb9f4db MV |
976 | |
977 | # Make sure we can run config.sub. | |
978 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
979 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
980 | fi | |
981 | ||
982 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
d914fd5f | 983 | echo "configure:984: checking host system type" >&5 |
1bb9f4db MV |
984 | |
985 | host_alias=$host | |
986 | case "$host_alias" in | |
987 | NONE) | |
988 | case $nonopt in | |
989 | NONE) | |
990 | if host_alias=`$ac_config_guess`; then : | |
991 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
992 | fi ;; | |
993 | *) host_alias=$nonopt ;; | |
994 | esac ;; | |
995 | esac | |
996 | ||
997 | host=`$ac_config_sub $host_alias` | |
998 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
999 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1000 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1001 | echo "$ac_t""$host" 1>&6 | |
1002 | ||
0f2d19dd JB |
1003 | # Extract the first word of "ranlib", so it can be a program name with args. |
1004 | set dummy ranlib; ac_word=$2 | |
1005 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d914fd5f | 1006 | echo "configure:1007: checking for $ac_word" >&5 |
0f2d19dd JB |
1007 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1009 | else | |
1010 | if test -n "$RANLIB"; then | |
1011 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1012 | else | |
1013 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1014 | for ac_dir in $PATH; do | |
1015 | test -z "$ac_dir" && ac_dir=. | |
1016 | if test -f $ac_dir/$ac_word; then | |
1017 | ac_cv_prog_RANLIB="ranlib" | |
1018 | break | |
1019 | fi | |
1020 | done | |
1021 | IFS="$ac_save_ifs" | |
1022 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1023 | fi | |
1024 | fi | |
1025 | RANLIB="$ac_cv_prog_RANLIB" | |
1026 | if test -n "$RANLIB"; then | |
1027 | echo "$ac_t""$RANLIB" 1>&6 | |
1028 | else | |
1029 | echo "$ac_t""no" 1>&6 | |
1030 | fi | |
1031 | ||
1032 | ||
1bb9f4db MV |
1033 | |
1034 | ||
1035 | ||
1036 | # Always use our own libtool. | |
1037 | LIBTOOL='$(top_builddir)/libtool' | |
1038 | ||
1039 | ||
1040 | # Check whether --enable-shared or --disable-shared was given. | |
1041 | if test "${enable_shared+set}" = set; then | |
1042 | enableval="$enable_shared" | |
1043 | test "$enableval" = no && libtool_shared=" --disable-shared" | |
1044 | else | |
1045 | libtool_shared= | |
1046 | fi | |
1047 | ||
1048 | ||
1049 | libtool_flags="$libtool_shared" | |
1050 | test "$silent" = yes && libtool_flags="$libtool_flags --silent" | |
1051 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" | |
1052 | ||
1053 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
1054 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LD="$LD" RANLIB="$RANLIB" \ | |
1055 | $ac_aux_dir/ltconfig $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ | |
1056 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | |
1057 | ||
1058 | ||
0f2d19dd | 1059 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
d914fd5f | 1060 | echo "configure:1061: checking for AIX" >&5 |
0f2d19dd | 1061 | cat > conftest.$ac_ext <<EOF |
d914fd5f | 1062 | #line 1063 "configure" |
0f2d19dd JB |
1063 | #include "confdefs.h" |
1064 | #ifdef _AIX | |
1065 | yes | |
1066 | #endif | |
1067 | ||
1068 | EOF | |
1069 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1070 | egrep "yes" >/dev/null 2>&1; then | |
1071 | rm -rf conftest* | |
1072 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | |
1073 | #define _ALL_SOURCE 1 | |
1074 | EOF | |
1075 | ||
1076 | else | |
1077 | rm -rf conftest* | |
1078 | echo "$ac_t""no" 1>&6 | |
1079 | fi | |
1080 | rm -f conftest* | |
1081 | ||
1082 | ||
1083 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | |
d914fd5f | 1084 | echo "configure:1085: checking for POSIXized ISC" >&5 |
0f2d19dd JB |
1085 | if test -d /etc/conf/kconfig.d && |
1086 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
1087 | then | |
1088 | echo "$ac_t""yes" 1>&6 | |
1089 | ISC=yes # If later tests want to check for ISC. | |
1090 | cat >> confdefs.h <<\EOF | |
1091 | #define _POSIX_SOURCE 1 | |
1092 | EOF | |
1093 | ||
1094 | if test "$GCC" = yes; then | |
1095 | CC="$CC -posix" | |
1096 | else | |
1097 | CC="$CC -Xp" | |
1098 | fi | |
1099 | else | |
1100 | echo "$ac_t""no" 1>&6 | |
1101 | ISC= | |
1102 | fi | |
1103 | ||
733943b9 | 1104 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
0f2d19dd | 1105 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
d914fd5f | 1106 | echo "configure:1107: checking for minix/config.h" >&5 |
0f2d19dd JB |
1107 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1109 | else | |
1110 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1111 | #line 1112 "configure" |
0f2d19dd JB |
1112 | #include "confdefs.h" |
1113 | #include <minix/config.h> | |
1114 | EOF | |
087d2a6f | 1115 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d914fd5f | 1116 | { (eval echo configure:1117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0f2d19dd JB |
1117 | ac_err=`grep -v '^ *+' conftest.out` |
1118 | if test -z "$ac_err"; then | |
1119 | rm -rf conftest* | |
1120 | eval "ac_cv_header_$ac_safe=yes" | |
1121 | else | |
1122 | echo "$ac_err" >&5 | |
733943b9 TT |
1123 | echo "configure: failed program was:" >&5 |
1124 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
1125 | rm -rf conftest* |
1126 | eval "ac_cv_header_$ac_safe=no" | |
1127 | fi | |
1128 | rm -f conftest* | |
1129 | fi | |
1130 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1131 | echo "$ac_t""yes" 1>&6 | |
1132 | MINIX=yes | |
1133 | else | |
1134 | echo "$ac_t""no" 1>&6 | |
1135 | MINIX= | |
1136 | fi | |
1137 | ||
1138 | if test "$MINIX" = yes; then | |
1139 | cat >> confdefs.h <<\EOF | |
1140 | #define _POSIX_SOURCE 1 | |
1141 | EOF | |
1142 | ||
1143 | cat >> confdefs.h <<\EOF | |
1144 | #define _POSIX_1_SOURCE 2 | |
1145 | EOF | |
1146 | ||
1147 | cat >> confdefs.h <<\EOF | |
1148 | #define _MINIX 1 | |
1149 | EOF | |
1150 | ||
1151 | fi | |
1152 | ||
1153 | ||
72f0e9fc | 1154 | |
72f0e9fc | 1155 | echo $ac_n "checking "threads package type"""... $ac_c" 1>&6 |
d914fd5f | 1156 | echo "configure:1157: checking "threads package type"" >&5 |
72f0e9fc MD |
1157 | if eval "test \"`echo '$''{'cy_cv_threads_package'+set}'`\" = set"; then |
1158 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1159 | else | |
1160 | ||
1161 | if eval "test \"`echo '$''{'cy_cv_threads_cflags'+set}'`\" = set"; then | |
1162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1163 | else | |
1164 | ||
1165 | if eval "test \"`echo '$''{'cy_cv_threads_libs'+set}'`\" = set"; then | |
1166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1167 | else | |
1168 | ||
1169 | use_threads=no; | |
1170 | # Check whether --with-threads or --without-threads was given. | |
1171 | if test "${with_threads+set}" = set; then | |
1172 | withval="$with_threads" | |
1173 | use_threads=$withval | |
1174 | else | |
1175 | use_threads=no | |
1176 | fi | |
1177 | ||
1178 | test -n "$use_threads" || use_threads=qt | |
1179 | threads_package=unknown | |
1180 | if test "$use_threads" != no; then | |
1181 | if test "$use_threads" = yes || test "$use_threads" = qt; then | |
1182 | # Look for qt in source directory. This is a hack: we look in | |
1183 | # "./qt" because this check might be run at the top level. | |
1184 | if test -f $srcdir/../qt/qt.c || test -f $srcdir/qt/qt.c; then | |
1185 | threads_package=COOP | |
1186 | cy_cv_threads_cflags="-I$srcdir/../qt -I../qt" | |
02ba2010 | 1187 | cy_cv_threads_libs="../threads/libthreads.a ../qt/libqt.a" |
72f0e9fc MD |
1188 | fi |
1189 | else | |
1190 | if test -f $use_threads/qt.c; then | |
1191 | # FIXME seems as though we should try to use an installed qt here. | |
1192 | threads_package=COOP | |
1193 | cy_cv_threads_cflags="-I$use_threads -I../qt" | |
02ba2010 | 1194 | cy_cv_threads_libs="../threads/libthreads.a ../qt/libqt.a" |
72f0e9fc MD |
1195 | fi |
1196 | fi | |
1197 | if test "$use_threads" = pthreads; then | |
1198 | # Look for pthreads in srcdir. See above to understand why | |
1199 | # we always set threads_package. | |
1200 | if test -f $srcdir/../../pthreads/pthreads/queue.c \ | |
1201 | || test -f $srcdir/../pthreads/pthreads/queue.c; then | |
1202 | threads_package=MIT | |
1203 | cy_cv_threads_cflags="-I$srcdir/../../pthreads/include" | |
1204 | cy_cv_threads_libs="-L../../pthreads/lib -lpthread" | |
1205 | fi | |
1206 | fi | |
1207 | saved_CPP="$CPPFLAGS" | |
1208 | saved_LD="$LDFLAGS" | |
1209 | saved_LIBS="$LIBS" | |
1210 | if test "$threads_package" = unknown; then | |
1211 | CPPFLAGS="-I$use_threads/include" | |
1212 | LDFLAGS="-L$use_threads/lib" | |
1213 | LIBS="-lgthreads -lmalloc" | |
1214 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1215 | #line 1216 "configure" |
72f0e9fc MD |
1216 | #include "confdefs.h" |
1217 | #include <pthread.h> | |
733943b9 | 1218 | int main() { |
72f0e9fc MD |
1219 | |
1220 | pthread_equal(NULL,NULL); | |
1221 | ||
1222 | ; return 0; } | |
1223 | EOF | |
d914fd5f | 1224 | if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
72f0e9fc MD |
1225 | rm -rf conftest* |
1226 | threads_package=FSU | |
733943b9 TT |
1227 | else |
1228 | echo "configure: failed program was:" >&5 | |
1229 | cat conftest.$ac_ext >&5 | |
72f0e9fc MD |
1230 | fi |
1231 | rm -f conftest* | |
72f0e9fc MD |
1232 | fi |
1233 | if test "$threads_package" = unknown; then | |
1234 | LIBS="-lpthread" | |
1235 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1236 | #line 1237 "configure" |
72f0e9fc MD |
1237 | #include "confdefs.h" |
1238 | #include <pthread.h> | |
733943b9 | 1239 | int main() { |
72f0e9fc MD |
1240 | |
1241 | pthread_equal(NULL,NULL); | |
1242 | ||
1243 | ; return 0; } | |
1244 | EOF | |
d914fd5f | 1245 | if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
72f0e9fc MD |
1246 | rm -rf conftest* |
1247 | threads_package=MIT | |
733943b9 TT |
1248 | else |
1249 | echo "configure: failed program was:" >&5 | |
1250 | cat conftest.$ac_ext >&5 | |
72f0e9fc MD |
1251 | fi |
1252 | rm -f conftest* | |
72f0e9fc MD |
1253 | fi |
1254 | if test "$threads_package" = unknown; then | |
1255 | LIBS="-lpthreads" | |
1256 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1257 | #line 1258 "configure" |
72f0e9fc MD |
1258 | #include "confdefs.h" |
1259 | #include <pthread.h> | |
733943b9 | 1260 | int main() { |
72f0e9fc MD |
1261 | |
1262 | pthread_equal(NULL,NULL); | |
1263 | ||
1264 | ; return 0; } | |
1265 | EOF | |
d914fd5f | 1266 | if { (eval echo configure:1267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
72f0e9fc MD |
1267 | rm -rf conftest* |
1268 | threads_package=PCthreads | |
733943b9 TT |
1269 | else |
1270 | echo "configure: failed program was:" >&5 | |
1271 | cat conftest.$ac_ext >&5 | |
72f0e9fc MD |
1272 | fi |
1273 | rm -f conftest* | |
72f0e9fc MD |
1274 | fi |
1275 | cy_cv_threads_cflags="$CPPFLAGS $cy_cv_threads_cflags" | |
1276 | cy_cv_threads_libs="$LDFLAGS $LIBS $cy_cv_threads_libs" | |
1277 | cy_cv_threads_package=$threads_package | |
1278 | CPPFLAGS="$saved_CPP" | |
1279 | LDFLAGS="$saved_LD" | |
1280 | LIBS="$saved_LIBS" | |
1281 | if test "$threads_package" = unknown; then | |
1282 | { echo "configure: error: "cannot find thread library installation"" 1>&2; exit 1; } | |
1283 | fi | |
1284 | fi | |
1285 | ||
1286 | fi | |
1287 | ||
1288 | ||
1289 | fi | |
1290 | ||
1291 | ||
1292 | fi | |
1293 | ||
1294 | echo "$ac_t""$cy_cv_threads_package" 1>&6 | |
1295 | ||
72f0e9fc | 1296 | |
0f2d19dd | 1297 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
d914fd5f | 1298 | echo "configure:1299: checking for working const" >&5 |
0f2d19dd JB |
1299 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1301 | else | |
1302 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1303 | #line 1304 "configure" |
0f2d19dd JB |
1304 | #include "confdefs.h" |
1305 | ||
733943b9 | 1306 | int main() { |
0f2d19dd JB |
1307 | |
1308 | /* Ultrix mips cc rejects this. */ | |
1309 | typedef int charset[2]; const charset x; | |
1310 | /* SunOS 4.1.1 cc rejects this. */ | |
1311 | char const *const *ccp; | |
1312 | char **p; | |
1313 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1314 | struct point {int x, y;}; | |
1315 | static struct point const zero = {0,0}; | |
1316 | /* AIX XL C 1.02.0.0 rejects this. | |
1317 | It does not let you subtract one const X* pointer from another in an arm | |
1318 | of an if-expression whose if-part is not a constant expression */ | |
1319 | const char *g = "string"; | |
1320 | ccp = &g + (g ? g-g : 0); | |
1321 | /* HPUX 7.0 cc rejects these. */ | |
1322 | ++ccp; | |
1323 | p = (char**) ccp; | |
1324 | ccp = (char const *const *) p; | |
1325 | { /* SCO 3.2v4 cc rejects this. */ | |
1326 | char *t; | |
1327 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
1328 | ||
1329 | *t++ = 0; | |
1330 | } | |
1331 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
1332 | int x[] = {25, 17}; | |
1333 | const int *foo = &x[0]; | |
1334 | ++foo; | |
1335 | } | |
1336 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
1337 | typedef const int *iptr; | |
1338 | iptr p = 0; | |
1339 | ++p; | |
1340 | } | |
1341 | { /* AIX XL C 1.02.0.0 rejects this saying | |
1342 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
1343 | struct s { int j; const int *ap[3]; }; | |
1344 | struct s *b; b->j = 5; | |
1345 | } | |
1346 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
1347 | const int foo = 10; | |
1348 | } | |
1349 | ||
1350 | ; return 0; } | |
1351 | EOF | |
d914fd5f | 1352 | if { (eval echo configure:1353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0f2d19dd JB |
1353 | rm -rf conftest* |
1354 | ac_cv_c_const=yes | |
1355 | else | |
733943b9 TT |
1356 | echo "configure: failed program was:" >&5 |
1357 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
1358 | rm -rf conftest* |
1359 | ac_cv_c_const=no | |
1360 | fi | |
1361 | rm -f conftest* | |
0f2d19dd JB |
1362 | fi |
1363 | ||
1364 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
1365 | if test $ac_cv_c_const = no; then | |
1366 | cat >> confdefs.h <<\EOF | |
1367 | #define const | |
1368 | EOF | |
1369 | ||
1370 | fi | |
1371 | ||
1372 | ||
0f2d19dd | 1373 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
d914fd5f | 1374 | echo "configure:1375: checking for ANSI C header files" >&5 |
0f2d19dd JB |
1375 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1377 | else | |
1378 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1379 | #line 1380 "configure" |
0f2d19dd JB |
1380 | #include "confdefs.h" |
1381 | #include <stdlib.h> | |
1382 | #include <stdarg.h> | |
1383 | #include <string.h> | |
1384 | #include <float.h> | |
1385 | EOF | |
087d2a6f | 1386 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d914fd5f | 1387 | { (eval echo configure:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0f2d19dd JB |
1388 | ac_err=`grep -v '^ *+' conftest.out` |
1389 | if test -z "$ac_err"; then | |
1390 | rm -rf conftest* | |
1391 | ac_cv_header_stdc=yes | |
1392 | else | |
1393 | echo "$ac_err" >&5 | |
733943b9 TT |
1394 | echo "configure: failed program was:" >&5 |
1395 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
1396 | rm -rf conftest* |
1397 | ac_cv_header_stdc=no | |
1398 | fi | |
1399 | rm -f conftest* | |
1400 | ||
1401 | if test $ac_cv_header_stdc = yes; then | |
1402 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1403 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1404 | #line 1405 "configure" |
0f2d19dd JB |
1405 | #include "confdefs.h" |
1406 | #include <string.h> | |
1407 | EOF | |
1408 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1409 | egrep "memchr" >/dev/null 2>&1; then | |
1410 | : | |
1411 | else | |
1412 | rm -rf conftest* | |
1413 | ac_cv_header_stdc=no | |
1414 | fi | |
1415 | rm -f conftest* | |
1416 | ||
1417 | fi | |
1418 | ||
1419 | if test $ac_cv_header_stdc = yes; then | |
1420 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1421 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1422 | #line 1423 "configure" |
0f2d19dd JB |
1423 | #include "confdefs.h" |
1424 | #include <stdlib.h> | |
1425 | EOF | |
1426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1427 | egrep "free" >/dev/null 2>&1; then | |
1428 | : | |
1429 | else | |
1430 | rm -rf conftest* | |
1431 | ac_cv_header_stdc=no | |
1432 | fi | |
1433 | rm -f conftest* | |
1434 | ||
1435 | fi | |
1436 | ||
1437 | if test $ac_cv_header_stdc = yes; then | |
1438 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1439 | if test "$cross_compiling" = yes; then | |
1440 | : | |
1441 | else | |
733943b9 | 1442 | cat > conftest.$ac_ext <<EOF |
d914fd5f | 1443 | #line 1444 "configure" |
0f2d19dd JB |
1444 | #include "confdefs.h" |
1445 | #include <ctype.h> | |
1446 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1447 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1448 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1449 | int main () { int i; for (i = 0; i < 256; i++) | |
1450 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1451 | exit (0); } | |
1452 | ||
1453 | EOF | |
d914fd5f | 1454 | if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
733943b9 | 1455 | then |
0f2d19dd JB |
1456 | : |
1457 | else | |
733943b9 TT |
1458 | echo "configure: failed program was:" >&5 |
1459 | cat conftest.$ac_ext >&5 | |
1460 | rm -fr conftest* | |
0f2d19dd JB |
1461 | ac_cv_header_stdc=no |
1462 | fi | |
0f2d19dd | 1463 | rm -fr conftest* |
733943b9 TT |
1464 | fi |
1465 | ||
0f2d19dd JB |
1466 | fi |
1467 | fi | |
1468 | ||
1469 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1470 | if test $ac_cv_header_stdc = yes; then | |
1471 | cat >> confdefs.h <<\EOF | |
1472 | #define STDC_HEADERS 1 | |
1473 | EOF | |
1474 | ||
1475 | fi | |
1476 | ||
1477 | ac_header_dirent=no | |
1478 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | |
1479 | do | |
733943b9 | 1480 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
0f2d19dd | 1481 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
d914fd5f | 1482 | echo "configure:1483: checking for $ac_hdr that defines DIR" >&5 |
0f2d19dd JB |
1483 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
1484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1485 | else | |
1486 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1487 | #line 1488 "configure" |
0f2d19dd JB |
1488 | #include "confdefs.h" |
1489 | #include <sys/types.h> | |
1490 | #include <$ac_hdr> | |
733943b9 | 1491 | int main() { |
0f2d19dd JB |
1492 | DIR *dirp = 0; |
1493 | ; return 0; } | |
1494 | EOF | |
d914fd5f | 1495 | if { (eval echo configure:1496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0f2d19dd JB |
1496 | rm -rf conftest* |
1497 | eval "ac_cv_header_dirent_$ac_safe=yes" | |
1498 | else | |
733943b9 TT |
1499 | echo "configure: failed program was:" >&5 |
1500 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
1501 | rm -rf conftest* |
1502 | eval "ac_cv_header_dirent_$ac_safe=no" | |
1503 | fi | |
1504 | rm -f conftest* | |
0f2d19dd JB |
1505 | fi |
1506 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then | |
1507 | echo "$ac_t""yes" 1>&6 | |
733943b9 | 1508 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
0f2d19dd JB |
1509 | cat >> confdefs.h <<EOF |
1510 | #define $ac_tr_hdr 1 | |
1511 | EOF | |
1512 | ac_header_dirent=$ac_hdr; break | |
1513 | else | |
1514 | echo "$ac_t""no" 1>&6 | |
1515 | fi | |
1516 | done | |
1517 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
1518 | if test $ac_header_dirent = dirent.h; then | |
733943b9 | 1519 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
d914fd5f | 1520 | echo "configure:1521: checking for opendir in -ldir" >&5 |
733943b9 | 1521 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
0f2d19dd JB |
1522 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1524 | else | |
1525 | ac_save_LIBS="$LIBS" | |
1526 | LIBS="-ldir $LIBS" | |
1527 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1528 | #line 1529 "configure" |
0f2d19dd | 1529 | #include "confdefs.h" |
087d2a6f JB |
1530 | /* Override any gcc2 internal prototype to avoid an error. */ |
1531 | /* We use char because int might match the return type of a gcc2 | |
1532 | builtin and then its argument prototype would still apply. */ | |
1533 | char opendir(); | |
0f2d19dd | 1534 | |
733943b9 | 1535 | int main() { |
0f2d19dd JB |
1536 | opendir() |
1537 | ; return 0; } | |
1538 | EOF | |
d914fd5f | 1539 | if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
0f2d19dd JB |
1540 | rm -rf conftest* |
1541 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1542 | else | |
733943b9 TT |
1543 | echo "configure: failed program was:" >&5 |
1544 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
1545 | rm -rf conftest* |
1546 | eval "ac_cv_lib_$ac_lib_var=no" | |
1547 | fi | |
1548 | rm -f conftest* | |
1549 | LIBS="$ac_save_LIBS" | |
1550 | ||
1551 | fi | |
1552 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1553 | echo "$ac_t""yes" 1>&6 | |
1554 | LIBS="$LIBS -ldir" | |
1555 | else | |
1556 | echo "$ac_t""no" 1>&6 | |
1557 | fi | |
1558 | ||
1559 | else | |
733943b9 | 1560 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
d914fd5f | 1561 | echo "configure:1562: checking for opendir in -lx" >&5 |
733943b9 | 1562 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
0f2d19dd JB |
1563 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1565 | else | |
1566 | ac_save_LIBS="$LIBS" | |
1567 | LIBS="-lx $LIBS" | |
1568 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1569 | #line 1570 "configure" |
0f2d19dd | 1570 | #include "confdefs.h" |
087d2a6f JB |
1571 | /* Override any gcc2 internal prototype to avoid an error. */ |
1572 | /* We use char because int might match the return type of a gcc2 | |
1573 | builtin and then its argument prototype would still apply. */ | |
1574 | char opendir(); | |
0f2d19dd | 1575 | |
733943b9 | 1576 | int main() { |
0f2d19dd JB |
1577 | opendir() |
1578 | ; return 0; } | |
1579 | EOF | |
d914fd5f | 1580 | if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
0f2d19dd JB |
1581 | rm -rf conftest* |
1582 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1583 | else | |
733943b9 TT |
1584 | echo "configure: failed program was:" >&5 |
1585 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
1586 | rm -rf conftest* |
1587 | eval "ac_cv_lib_$ac_lib_var=no" | |
1588 | fi | |
1589 | rm -f conftest* | |
1590 | LIBS="$ac_save_LIBS" | |
1591 | ||
1592 | fi | |
1593 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1594 | echo "$ac_t""yes" 1>&6 | |
1595 | LIBS="$LIBS -lx" | |
1596 | else | |
1597 | echo "$ac_t""no" 1>&6 | |
1598 | fi | |
1599 | ||
1600 | fi | |
1601 | ||
1602 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
d914fd5f | 1603 | echo "configure:1604: checking whether time.h and sys/time.h may both be included" >&5 |
0f2d19dd JB |
1604 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1606 | else | |
1607 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1608 | #line 1609 "configure" |
0f2d19dd JB |
1609 | #include "confdefs.h" |
1610 | #include <sys/types.h> | |
1611 | #include <sys/time.h> | |
1612 | #include <time.h> | |
733943b9 | 1613 | int main() { |
0f2d19dd JB |
1614 | struct tm *tp; |
1615 | ; return 0; } | |
1616 | EOF | |
d914fd5f | 1617 | if { (eval echo configure:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0f2d19dd JB |
1618 | rm -rf conftest* |
1619 | ac_cv_header_time=yes | |
1620 | else | |
733943b9 TT |
1621 | echo "configure: failed program was:" >&5 |
1622 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
1623 | rm -rf conftest* |
1624 | ac_cv_header_time=no | |
1625 | fi | |
1626 | rm -f conftest* | |
0f2d19dd JB |
1627 | fi |
1628 | ||
1629 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1630 | if test $ac_cv_header_time = yes; then | |
1631 | cat >> confdefs.h <<\EOF | |
1632 | #define TIME_WITH_SYS_TIME 1 | |
1633 | EOF | |
1634 | ||
1635 | fi | |
1636 | ||
1637 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | |
d914fd5f | 1638 | echo "configure:1639: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
0f2d19dd JB |
1639 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
1640 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1641 | else | |
1642 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1643 | #line 1644 "configure" |
0f2d19dd JB |
1644 | #include "confdefs.h" |
1645 | #include <sys/types.h> | |
1646 | #include <sys/wait.h> | |
1647 | #ifndef WEXITSTATUS | |
1648 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
1649 | #endif | |
1650 | #ifndef WIFEXITED | |
1651 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
1652 | #endif | |
733943b9 | 1653 | int main() { |
0f2d19dd JB |
1654 | int s; |
1655 | wait (&s); | |
1656 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
1657 | ; return 0; } | |
1658 | EOF | |
d914fd5f | 1659 | if { (eval echo configure:1660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0f2d19dd JB |
1660 | rm -rf conftest* |
1661 | ac_cv_header_sys_wait_h=yes | |
1662 | else | |
733943b9 TT |
1663 | echo "configure: failed program was:" >&5 |
1664 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
1665 | rm -rf conftest* |
1666 | ac_cv_header_sys_wait_h=no | |
1667 | fi | |
1668 | rm -f conftest* | |
0f2d19dd JB |
1669 | fi |
1670 | ||
1671 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
1672 | if test $ac_cv_header_sys_wait_h = yes; then | |
1673 | cat >> confdefs.h <<\EOF | |
1674 | #define HAVE_SYS_WAIT_H 1 | |
1675 | EOF | |
1676 | ||
1677 | fi | |
1678 | ||
087d2a6f | 1679 | for ac_hdr in libc.h limits.h malloc.h memory.h string.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/utime.h time.h unistd.h utime.h |
0f2d19dd | 1680 | do |
733943b9 | 1681 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
0f2d19dd | 1682 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
d914fd5f | 1683 | echo "configure:1684: checking for $ac_hdr" >&5 |
0f2d19dd JB |
1684 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1686 | else | |
1687 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1688 | #line 1689 "configure" |
0f2d19dd JB |
1689 | #include "confdefs.h" |
1690 | #include <$ac_hdr> | |
1691 | EOF | |
087d2a6f | 1692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d914fd5f | 1693 | { (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0f2d19dd JB |
1694 | ac_err=`grep -v '^ *+' conftest.out` |
1695 | if test -z "$ac_err"; then | |
1696 | rm -rf conftest* | |
1697 | eval "ac_cv_header_$ac_safe=yes" | |
1698 | else | |
1699 | echo "$ac_err" >&5 | |
733943b9 TT |
1700 | echo "configure: failed program was:" >&5 |
1701 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
1702 | rm -rf conftest* |
1703 | eval "ac_cv_header_$ac_safe=no" | |
1704 | fi | |
1705 | rm -f conftest* | |
1706 | fi | |
1707 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1708 | echo "$ac_t""yes" 1>&6 | |
733943b9 | 1709 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
0f2d19dd JB |
1710 | cat >> confdefs.h <<EOF |
1711 | #define $ac_tr_hdr 1 | |
1712 | EOF | |
1713 | ||
1714 | else | |
1715 | echo "$ac_t""no" 1>&6 | |
1716 | fi | |
1717 | done | |
1718 | ||
1719 | ||
3594582b JB |
1720 | for ac_hdr in libc.h unistd.h |
1721 | do | |
733943b9 | 1722 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3594582b | 1723 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
d914fd5f | 1724 | echo "configure:1725: checking for $ac_hdr" >&5 |
3594582b JB |
1725 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1727 | else | |
1728 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1729 | #line 1730 "configure" |
3594582b JB |
1730 | #include "confdefs.h" |
1731 | #include <$ac_hdr> | |
1732 | EOF | |
1733 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d914fd5f | 1734 | { (eval echo configure:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3594582b JB |
1735 | ac_err=`grep -v '^ *+' conftest.out` |
1736 | if test -z "$ac_err"; then | |
1737 | rm -rf conftest* | |
1738 | eval "ac_cv_header_$ac_safe=yes" | |
1739 | else | |
1740 | echo "$ac_err" >&5 | |
733943b9 TT |
1741 | echo "configure: failed program was:" >&5 |
1742 | cat conftest.$ac_ext >&5 | |
3594582b JB |
1743 | rm -rf conftest* |
1744 | eval "ac_cv_header_$ac_safe=no" | |
1745 | fi | |
1746 | rm -f conftest* | |
1747 | fi | |
1748 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1749 | echo "$ac_t""yes" 1>&6 | |
733943b9 | 1750 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3594582b JB |
1751 | cat >> confdefs.h <<EOF |
1752 | #define $ac_tr_hdr 1 | |
1753 | EOF | |
1754 | ||
1755 | else | |
1756 | echo "$ac_t""no" 1>&6 | |
1757 | fi | |
1758 | done | |
1759 | ||
1760 | echo $ac_n "checking "whether libc.h and unistd.h can be included together"""... $ac_c" 1>&6 | |
d914fd5f | 1761 | echo "configure:1762: checking "whether libc.h and unistd.h can be included together"" >&5 |
3594582b JB |
1762 | if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then |
1763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1764 | else | |
1765 | ||
1766 | if test "$ac_cv_header_libc_h" = "no"; then | |
1767 | guile_cv_header_libc_with_unistd="no" | |
1768 | elif test "$ac_cv_header_unistd.h" = "no"; then | |
1769 | guile_cv_header_libc_with_unistd="yes" | |
1770 | else | |
1771 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1772 | #line 1773 "configure" |
3594582b JB |
1773 | #include "confdefs.h" |
1774 | ||
1775 | # include <libc.h> | |
1776 | # include <unistd.h> | |
1777 | ||
733943b9 | 1778 | int main() { |
3594582b JB |
1779 | |
1780 | ; return 0; } | |
1781 | EOF | |
d914fd5f | 1782 | if { (eval echo configure:1783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3594582b JB |
1783 | rm -rf conftest* |
1784 | guile_cv_header_libc_with_unistd=yes | |
1785 | else | |
733943b9 TT |
1786 | echo "configure: failed program was:" >&5 |
1787 | cat conftest.$ac_ext >&5 | |
3594582b JB |
1788 | rm -rf conftest* |
1789 | guile_cv_header_libc_with_unistd=no | |
1790 | ||
1791 | fi | |
1792 | rm -f conftest* | |
3594582b JB |
1793 | fi |
1794 | ||
1795 | ||
1796 | fi | |
1797 | ||
1798 | echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6 | |
1799 | if test "$guile_cv_header_libc_with_unistd" = yes; then | |
1800 | cat >> confdefs.h <<\EOF | |
1801 | #define LIBC_H_WITH_UNISTD_H 1 | |
1802 | EOF | |
1803 | ||
1804 | fi | |
1805 | ||
1806 | ||
1807 | ||
0f2d19dd | 1808 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
d914fd5f | 1809 | echo "configure:1810: checking for uid_t in sys/types.h" >&5 |
0f2d19dd JB |
1810 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
1811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1812 | else | |
1813 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1814 | #line 1815 "configure" |
0f2d19dd JB |
1815 | #include "confdefs.h" |
1816 | #include <sys/types.h> | |
1817 | EOF | |
1818 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1819 | egrep "uid_t" >/dev/null 2>&1; then | |
1820 | rm -rf conftest* | |
1821 | ac_cv_type_uid_t=yes | |
1822 | else | |
1823 | rm -rf conftest* | |
1824 | ac_cv_type_uid_t=no | |
1825 | fi | |
1826 | rm -f conftest* | |
1827 | ||
1828 | fi | |
1829 | ||
1830 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
1831 | if test $ac_cv_type_uid_t = no; then | |
1832 | cat >> confdefs.h <<\EOF | |
1833 | #define uid_t int | |
1834 | EOF | |
1835 | ||
1836 | cat >> confdefs.h <<\EOF | |
1837 | #define gid_t int | |
1838 | EOF | |
1839 | ||
1840 | fi | |
1841 | ||
1842 | echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 | |
d914fd5f | 1843 | echo "configure:1844: checking type of array argument to getgroups" >&5 |
0f2d19dd JB |
1844 | if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then |
1845 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1846 | else | |
1847 | if test "$cross_compiling" = yes; then | |
1848 | ac_cv_type_getgroups=cross | |
1849 | else | |
733943b9 | 1850 | cat > conftest.$ac_ext <<EOF |
d914fd5f | 1851 | #line 1852 "configure" |
0f2d19dd JB |
1852 | #include "confdefs.h" |
1853 | ||
1854 | /* Thanks to Mike Rendell for this test. */ | |
1855 | #include <sys/types.h> | |
1856 | #define NGID 256 | |
1857 | #undef MAX | |
1858 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
1859 | main() | |
1860 | { | |
1861 | gid_t gidset[NGID]; | |
1862 | int i, n; | |
1863 | union { gid_t gval; long lval; } val; | |
1864 | ||
1865 | val.lval = -1; | |
1866 | for (i = 0; i < NGID; i++) | |
1867 | gidset[i] = val.gval; | |
1868 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
1869 | gidset); | |
1870 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
1871 | happens when gid_t is short but getgroups modifies an array of ints. */ | |
1872 | exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); | |
1873 | } | |
1874 | ||
1875 | EOF | |
d914fd5f | 1876 | if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
733943b9 | 1877 | then |
0f2d19dd JB |
1878 | ac_cv_type_getgroups=gid_t |
1879 | else | |
733943b9 TT |
1880 | echo "configure: failed program was:" >&5 |
1881 | cat conftest.$ac_ext >&5 | |
1882 | rm -fr conftest* | |
0f2d19dd JB |
1883 | ac_cv_type_getgroups=int |
1884 | fi | |
0f2d19dd | 1885 | rm -fr conftest* |
733943b9 TT |
1886 | fi |
1887 | ||
0f2d19dd JB |
1888 | if test $ac_cv_type_getgroups = cross; then |
1889 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1890 | #line 1891 "configure" |
0f2d19dd JB |
1891 | #include "confdefs.h" |
1892 | #include <unistd.h> | |
1893 | EOF | |
1894 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1895 | egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then | |
1896 | rm -rf conftest* | |
1897 | ac_cv_type_getgroups=gid_t | |
1898 | else | |
1899 | rm -rf conftest* | |
1900 | ac_cv_type_getgroups=int | |
1901 | fi | |
1902 | rm -f conftest* | |
1903 | ||
1904 | fi | |
1905 | fi | |
1906 | ||
1907 | echo "$ac_t""$ac_cv_type_getgroups" 1>&6 | |
1908 | cat >> confdefs.h <<EOF | |
1909 | #define GETGROUPS_T $ac_cv_type_getgroups | |
1910 | EOF | |
1911 | ||
1912 | ||
1913 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
d914fd5f | 1914 | echo "configure:1915: checking return type of signal handlers" >&5 |
0f2d19dd JB |
1915 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
1916 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1917 | else | |
1918 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1919 | #line 1920 "configure" |
0f2d19dd JB |
1920 | #include "confdefs.h" |
1921 | #include <sys/types.h> | |
1922 | #include <signal.h> | |
1923 | #ifdef signal | |
1924 | #undef signal | |
1925 | #endif | |
1926 | #ifdef __cplusplus | |
1927 | extern "C" void (*signal (int, void (*)(int)))(int); | |
1928 | #else | |
1929 | void (*signal ()) (); | |
1930 | #endif | |
1931 | ||
733943b9 | 1932 | int main() { |
0f2d19dd JB |
1933 | int i; |
1934 | ; return 0; } | |
1935 | EOF | |
d914fd5f | 1936 | if { (eval echo configure:1937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0f2d19dd JB |
1937 | rm -rf conftest* |
1938 | ac_cv_type_signal=void | |
1939 | else | |
733943b9 TT |
1940 | echo "configure: failed program was:" >&5 |
1941 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
1942 | rm -rf conftest* |
1943 | ac_cv_type_signal=int | |
1944 | fi | |
1945 | rm -f conftest* | |
0f2d19dd JB |
1946 | fi |
1947 | ||
1948 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
1949 | cat >> confdefs.h <<EOF | |
1950 | #define RETSIGTYPE $ac_cv_type_signal | |
1951 | EOF | |
1952 | ||
1953 | ||
b09ca643 | 1954 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
d914fd5f | 1955 | echo "configure:1956: checking for mode_t" >&5 |
b09ca643 JB |
1956 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
1957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1958 | else | |
1959 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1960 | #line 1961 "configure" |
b09ca643 JB |
1961 | #include "confdefs.h" |
1962 | #include <sys/types.h> | |
1963 | #if STDC_HEADERS | |
1964 | #include <stdlib.h> | |
733943b9 | 1965 | #include <stddef.h> |
b09ca643 JB |
1966 | #endif |
1967 | EOF | |
1968 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
733943b9 | 1969 | egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
b09ca643 JB |
1970 | rm -rf conftest* |
1971 | ac_cv_type_mode_t=yes | |
1972 | else | |
1973 | rm -rf conftest* | |
1974 | ac_cv_type_mode_t=no | |
1975 | fi | |
1976 | rm -f conftest* | |
1977 | ||
1978 | fi | |
1979 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
1980 | if test $ac_cv_type_mode_t = no; then | |
1981 | cat >> confdefs.h <<\EOF | |
1982 | #define mode_t int | |
1983 | EOF | |
1984 | ||
1985 | fi | |
1986 | ||
0f2d19dd | 1987 | |
1fd838af | 1988 | for ac_func in ctermid ftime getcwd geteuid lstat mkdir mknod nice putenv readlink rename rmdir select setegid seteuid setlocale setpgid setsid strftime strptime symlink sync tcgetpgrp tcsetpgrp times uname waitpid |
0f2d19dd JB |
1989 | do |
1990 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d914fd5f | 1991 | echo "configure:1992: checking for $ac_func" >&5 |
0f2d19dd JB |
1992 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1994 | else | |
1995 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 1996 | #line 1997 "configure" |
0f2d19dd JB |
1997 | #include "confdefs.h" |
1998 | /* System header to define __stub macros and hopefully few prototypes, | |
1999 | which can conflict with char $ac_func(); below. */ | |
2000 | #include <assert.h> | |
2001 | /* Override any gcc2 internal prototype to avoid an error. */ | |
087d2a6f JB |
2002 | /* We use char because int might match the return type of a gcc2 |
2003 | builtin and then its argument prototype would still apply. */ | |
0f2d19dd JB |
2004 | char $ac_func(); |
2005 | ||
733943b9 | 2006 | int main() { |
0f2d19dd JB |
2007 | |
2008 | /* The GNU C library defines this for functions which it implements | |
2009 | to always fail with ENOSYS. Some functions are actually named | |
2010 | something starting with __ and the normal name is an alias. */ | |
2011 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2012 | choke me | |
2013 | #else | |
2014 | $ac_func(); | |
2015 | #endif | |
2016 | ||
2017 | ; return 0; } | |
2018 | EOF | |
d914fd5f | 2019 | if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
0f2d19dd JB |
2020 | rm -rf conftest* |
2021 | eval "ac_cv_func_$ac_func=yes" | |
2022 | else | |
733943b9 TT |
2023 | echo "configure: failed program was:" >&5 |
2024 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
2025 | rm -rf conftest* |
2026 | eval "ac_cv_func_$ac_func=no" | |
2027 | fi | |
2028 | rm -f conftest* | |
0f2d19dd | 2029 | fi |
733943b9 | 2030 | |
0f2d19dd JB |
2031 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2032 | echo "$ac_t""yes" 1>&6 | |
2033 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2034 | cat >> confdefs.h <<EOF | |
2035 | #define $ac_tr_func 1 | |
2036 | EOF | |
2037 | ||
2038 | else | |
2039 | echo "$ac_t""no" 1>&6 | |
2040 | fi | |
2041 | done | |
2042 | ||
2043 | ||
14a7e04c | 2044 | for ac_func in inet_aton strerror |
0f2d19dd JB |
2045 | do |
2046 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d914fd5f | 2047 | echo "configure:2048: checking for $ac_func" >&5 |
0f2d19dd JB |
2048 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2050 | else | |
2051 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2052 | #line 2053 "configure" |
0f2d19dd JB |
2053 | #include "confdefs.h" |
2054 | /* System header to define __stub macros and hopefully few prototypes, | |
2055 | which can conflict with char $ac_func(); below. */ | |
2056 | #include <assert.h> | |
2057 | /* Override any gcc2 internal prototype to avoid an error. */ | |
087d2a6f JB |
2058 | /* We use char because int might match the return type of a gcc2 |
2059 | builtin and then its argument prototype would still apply. */ | |
0f2d19dd JB |
2060 | char $ac_func(); |
2061 | ||
733943b9 | 2062 | int main() { |
0f2d19dd JB |
2063 | |
2064 | /* The GNU C library defines this for functions which it implements | |
2065 | to always fail with ENOSYS. Some functions are actually named | |
2066 | something starting with __ and the normal name is an alias. */ | |
2067 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2068 | choke me | |
2069 | #else | |
2070 | $ac_func(); | |
2071 | #endif | |
2072 | ||
2073 | ; return 0; } | |
2074 | EOF | |
d914fd5f | 2075 | if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
0f2d19dd JB |
2076 | rm -rf conftest* |
2077 | eval "ac_cv_func_$ac_func=yes" | |
2078 | else | |
733943b9 TT |
2079 | echo "configure: failed program was:" >&5 |
2080 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
2081 | rm -rf conftest* |
2082 | eval "ac_cv_func_$ac_func=no" | |
2083 | fi | |
2084 | rm -f conftest* | |
0f2d19dd | 2085 | fi |
733943b9 | 2086 | |
0f2d19dd JB |
2087 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2088 | echo "$ac_t""yes" 1>&6 | |
733943b9 TT |
2089 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
2090 | cat >> confdefs.h <<EOF | |
2091 | #define $ac_tr_func 1 | |
2092 | EOF | |
2093 | ||
0f2d19dd JB |
2094 | else |
2095 | echo "$ac_t""no" 1>&6 | |
2096 | LIBOBJS="$LIBOBJS ${ac_func}.o" | |
2097 | fi | |
0f2d19dd JB |
2098 | done |
2099 | ||
2100 | ||
733943b9 | 2101 | |
0f2d19dd | 2102 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 |
d914fd5f | 2103 | echo "configure:2104: checking for st_rdev in struct stat" >&5 |
0f2d19dd JB |
2104 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then |
2105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2106 | else | |
2107 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2108 | #line 2109 "configure" |
0f2d19dd JB |
2109 | #include "confdefs.h" |
2110 | #include <sys/types.h> | |
2111 | #include <sys/stat.h> | |
733943b9 | 2112 | int main() { |
0f2d19dd JB |
2113 | struct stat s; s.st_rdev; |
2114 | ; return 0; } | |
2115 | EOF | |
d914fd5f | 2116 | if { (eval echo configure:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0f2d19dd JB |
2117 | rm -rf conftest* |
2118 | ac_cv_struct_st_rdev=yes | |
2119 | else | |
733943b9 TT |
2120 | echo "configure: failed program was:" >&5 |
2121 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
2122 | rm -rf conftest* |
2123 | ac_cv_struct_st_rdev=no | |
2124 | fi | |
2125 | rm -f conftest* | |
0f2d19dd JB |
2126 | fi |
2127 | ||
2128 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 | |
2129 | if test $ac_cv_struct_st_rdev = yes; then | |
2130 | cat >> confdefs.h <<\EOF | |
2131 | #define HAVE_ST_RDEV 1 | |
2132 | EOF | |
2133 | ||
2134 | fi | |
2135 | ||
2136 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 | |
d914fd5f | 2137 | echo "configure:2138: checking for st_blksize in struct stat" >&5 |
0f2d19dd JB |
2138 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then |
2139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2140 | else | |
2141 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2142 | #line 2143 "configure" |
0f2d19dd JB |
2143 | #include "confdefs.h" |
2144 | #include <sys/types.h> | |
2145 | #include <sys/stat.h> | |
733943b9 | 2146 | int main() { |
0f2d19dd JB |
2147 | struct stat s; s.st_blksize; |
2148 | ; return 0; } | |
2149 | EOF | |
d914fd5f | 2150 | if { (eval echo configure:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0f2d19dd JB |
2151 | rm -rf conftest* |
2152 | ac_cv_struct_st_blksize=yes | |
2153 | else | |
733943b9 TT |
2154 | echo "configure: failed program was:" >&5 |
2155 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
2156 | rm -rf conftest* |
2157 | ac_cv_struct_st_blksize=no | |
2158 | fi | |
2159 | rm -f conftest* | |
0f2d19dd JB |
2160 | fi |
2161 | ||
2162 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 | |
2163 | if test $ac_cv_struct_st_blksize = yes; then | |
2164 | cat >> confdefs.h <<\EOF | |
2165 | #define HAVE_ST_BLKSIZE 1 | |
2166 | EOF | |
2167 | ||
2168 | fi | |
2169 | ||
2170 | echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 | |
d914fd5f | 2171 | echo "configure:2172: checking for st_blocks in struct stat" >&5 |
0f2d19dd JB |
2172 | if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then |
2173 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2174 | else | |
2175 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2176 | #line 2177 "configure" |
0f2d19dd JB |
2177 | #include "confdefs.h" |
2178 | #include <sys/types.h> | |
2179 | #include <sys/stat.h> | |
733943b9 | 2180 | int main() { |
0f2d19dd JB |
2181 | struct stat s; s.st_blocks; |
2182 | ; return 0; } | |
2183 | EOF | |
d914fd5f | 2184 | if { (eval echo configure:2185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0f2d19dd JB |
2185 | rm -rf conftest* |
2186 | ac_cv_struct_st_blocks=yes | |
2187 | else | |
733943b9 TT |
2188 | echo "configure: failed program was:" >&5 |
2189 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
2190 | rm -rf conftest* |
2191 | ac_cv_struct_st_blocks=no | |
2192 | fi | |
2193 | rm -f conftest* | |
0f2d19dd JB |
2194 | fi |
2195 | ||
2196 | echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 | |
2197 | if test $ac_cv_struct_st_blocks = yes; then | |
2198 | cat >> confdefs.h <<\EOF | |
2199 | #define HAVE_ST_BLOCKS 1 | |
2200 | EOF | |
2201 | ||
2202 | else | |
2203 | LIBOBJS="$LIBOBJS fileblocks.o" | |
2204 | fi | |
2205 | ||
2206 | ||
087d2a6f | 2207 | echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6 |
d914fd5f | 2208 | echo "configure:2209: checking whether we need POSIX to get struct utimbuf" >&5 |
02ba2010 | 2209 | if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then |
087d2a6f JB |
2210 | echo $ac_n "(cached) $ac_c" 1>&6 |
2211 | else | |
2212 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2213 | #line 2214 "configure" |
087d2a6f JB |
2214 | #include "confdefs.h" |
2215 | ||
2216 | #ifdef __EMX__ | |
2217 | #include <sys/utime.h> | |
2218 | #else | |
2219 | #include <utime.h> | |
2220 | #endif | |
2221 | struct utime blah; | |
2222 | ||
2223 | EOF | |
2224 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d914fd5f | 2225 | { (eval echo configure:2226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
087d2a6f JB |
2226 | ac_err=`grep -v '^ *+' conftest.out` |
2227 | if test -z "$ac_err"; then | |
2228 | rm -rf conftest* | |
2229 | guile_cv_struct_utimbuf_needs_posix=no | |
2230 | else | |
2231 | echo "$ac_err" >&5 | |
733943b9 TT |
2232 | echo "configure: failed program was:" >&5 |
2233 | cat conftest.$ac_ext >&5 | |
087d2a6f JB |
2234 | rm -rf conftest* |
2235 | guile_cv_struct_utimbuf_needs_posix=yes | |
087d2a6f JB |
2236 | fi |
2237 | rm -f conftest* | |
2238 | fi | |
2239 | ||
02ba2010 MD |
2240 | echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6 |
2241 | if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then | |
2242 | cat >> confdefs.h <<\EOF | |
2243 | #define UTIMBUF_NEEDS_POSIX 1 | |
2244 | EOF | |
2245 | ||
2246 | fi | |
087d2a6f | 2247 | |
abb2a7d0 | 2248 | # Checks for dynamic linking |
5c988700 MV |
2249 | |
2250 | xtra_PLUGIN_guile_libs="" | |
2251 | ||
2252 | ||
2253 | if test "$enable_dynamic_linking" = "yes"; then | |
2254 | ||
abb2a7d0 | 2255 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
d914fd5f | 2256 | echo "configure:2257: checking for dlopen in -ldl" >&5 |
abb2a7d0 MV |
2257 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
2258 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2259 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2260 | else | |
2261 | ac_save_LIBS="$LIBS" | |
2262 | LIBS="-ldl $LIBS" | |
2263 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2264 | #line 2265 "configure" |
abb2a7d0 MV |
2265 | #include "confdefs.h" |
2266 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2267 | /* We use char because int might match the return type of a gcc2 | |
2268 | builtin and then its argument prototype would still apply. */ | |
2269 | char dlopen(); | |
2270 | ||
2271 | int main() { | |
2272 | dlopen() | |
2273 | ; return 0; } | |
2274 | EOF | |
d914fd5f | 2275 | if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
abb2a7d0 MV |
2276 | rm -rf conftest* |
2277 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2278 | else | |
2279 | echo "configure: failed program was:" >&5 | |
2280 | cat conftest.$ac_ext >&5 | |
2281 | rm -rf conftest* | |
2282 | eval "ac_cv_lib_$ac_lib_var=no" | |
2283 | fi | |
2284 | rm -f conftest* | |
2285 | LIBS="$ac_save_LIBS" | |
2286 | ||
2287 | fi | |
2288 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2289 | echo "$ac_t""yes" 1>&6 | |
2290 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2291 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2292 | cat >> confdefs.h <<EOF | |
2293 | #define $ac_tr_lib 1 | |
2294 | EOF | |
2295 | ||
2296 | LIBS="-ldl $LIBS" | |
2297 | ||
2298 | else | |
2299 | echo "$ac_t""no" 1>&6 | |
2300 | fi | |
2301 | ||
d914fd5f MV |
2302 | if test "$ac_cv_lib_dl_dlopen" = "yes"; then |
2303 | xtra_PLUGIN_guile_libs="-lguile -ldl" | |
2304 | cat >> confdefs.h <<\EOF | |
2305 | #define DYNAMIC_LINKING 1 | |
2306 | EOF | |
2307 | ||
2308 | else | |
abb2a7d0 | 2309 | echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 |
d914fd5f | 2310 | echo "configure:2311: checking for dld_link in -ldld" >&5 |
abb2a7d0 MV |
2311 | ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'` |
2312 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2314 | else | |
2315 | ac_save_LIBS="$LIBS" | |
2316 | LIBS="-ldld $LIBS" | |
2317 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2318 | #line 2319 "configure" |
abb2a7d0 MV |
2319 | #include "confdefs.h" |
2320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2321 | /* We use char because int might match the return type of a gcc2 | |
2322 | builtin and then its argument prototype would still apply. */ | |
2323 | char dld_link(); | |
2324 | ||
2325 | int main() { | |
2326 | dld_link() | |
2327 | ; return 0; } | |
2328 | EOF | |
d914fd5f | 2329 | if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
abb2a7d0 MV |
2330 | rm -rf conftest* |
2331 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2332 | else | |
2333 | echo "configure: failed program was:" >&5 | |
2334 | cat conftest.$ac_ext >&5 | |
2335 | rm -rf conftest* | |
2336 | eval "ac_cv_lib_$ac_lib_var=no" | |
2337 | fi | |
2338 | rm -f conftest* | |
2339 | LIBS="$ac_save_LIBS" | |
2340 | ||
2341 | fi | |
2342 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2343 | echo "$ac_t""yes" 1>&6 | |
2344 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2345 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2346 | cat >> confdefs.h <<EOF | |
2347 | #define $ac_tr_lib 1 | |
2348 | EOF | |
2349 | ||
2350 | LIBS="-ldld $LIBS" | |
2351 | ||
2352 | else | |
2353 | echo "$ac_t""no" 1>&6 | |
2354 | fi | |
2355 | ||
d914fd5f MV |
2356 | if test "$ac_cv_lib_dld_dld_link" = "yes"; then |
2357 | xtra_PLUGIN_guile_libs="-lguile -ldld" | |
2358 | cat >> confdefs.h <<\EOF | |
2359 | #define DYNAMIC_LINKING 1 | |
2360 | EOF | |
2361 | ||
2362 | else | |
abb2a7d0 MV |
2363 | for ac_func in shl_load |
2364 | do | |
2365 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d914fd5f | 2366 | echo "configure:2367: checking for $ac_func" >&5 |
abb2a7d0 MV |
2367 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2368 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2369 | else | |
2370 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2371 | #line 2372 "configure" |
abb2a7d0 MV |
2372 | #include "confdefs.h" |
2373 | /* System header to define __stub macros and hopefully few prototypes, | |
2374 | which can conflict with char $ac_func(); below. */ | |
2375 | #include <assert.h> | |
2376 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2377 | /* We use char because int might match the return type of a gcc2 | |
2378 | builtin and then its argument prototype would still apply. */ | |
2379 | char $ac_func(); | |
2380 | ||
2381 | int main() { | |
2382 | ||
2383 | /* The GNU C library defines this for functions which it implements | |
2384 | to always fail with ENOSYS. Some functions are actually named | |
2385 | something starting with __ and the normal name is an alias. */ | |
2386 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2387 | choke me | |
2388 | #else | |
2389 | $ac_func(); | |
2390 | #endif | |
2391 | ||
2392 | ; return 0; } | |
2393 | EOF | |
d914fd5f | 2394 | if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
abb2a7d0 MV |
2395 | rm -rf conftest* |
2396 | eval "ac_cv_func_$ac_func=yes" | |
2397 | else | |
2398 | echo "configure: failed program was:" >&5 | |
2399 | cat conftest.$ac_ext >&5 | |
2400 | rm -rf conftest* | |
2401 | eval "ac_cv_func_$ac_func=no" | |
2402 | fi | |
2403 | rm -f conftest* | |
2404 | fi | |
2405 | ||
2406 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2407 | echo "$ac_t""yes" 1>&6 | |
2408 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2409 | cat >> confdefs.h <<EOF | |
2410 | #define $ac_tr_func 1 | |
2411 | EOF | |
2412 | ||
2413 | else | |
2414 | echo "$ac_t""no" 1>&6 | |
2415 | fi | |
2416 | done | |
2417 | ||
d914fd5f MV |
2418 | if test "$ac_cv_func_shl_load" = "yes"; then |
2419 | cat >> confdefs.h <<\EOF | |
2420 | #define DYNAMIC_LINKING 1 | |
2421 | EOF | |
abb2a7d0 | 2422 | |
d914fd5f | 2423 | fi fi fi |
5c988700 MV |
2424 | |
2425 | fi | |
2426 | ||
0f2d19dd JB |
2427 | #-------------------------------------------------------------------- |
2428 | # | |
2429 | # Which way does the stack grow? | |
2430 | # | |
2431 | #-------------------------------------------------------------------- | |
2432 | ||
2433 | if test "$cross_compiling" = yes; then | |
2434 | echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2 | |
2435 | else | |
733943b9 | 2436 | cat > conftest.$ac_ext <<EOF |
d914fd5f | 2437 | #line 2438 "configure" |
0f2d19dd JB |
2438 | #include "confdefs.h" |
2439 | aux (l) unsigned long l; | |
2440 | { int x; exit (l >= ((unsigned long)&x)); } | |
2441 | main () { int q; aux((unsigned long)&q); } | |
2442 | EOF | |
d914fd5f | 2443 | if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
733943b9 | 2444 | then |
0f2d19dd JB |
2445 | cat >> confdefs.h <<\EOF |
2446 | #define SCM_STACK_GROWS_UP 1 | |
2447 | EOF | |
2448 | ||
733943b9 TT |
2449 | else |
2450 | echo "configure: failed program was:" >&5 | |
2451 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
2452 | fi |
2453 | rm -fr conftest* | |
733943b9 TT |
2454 | fi |
2455 | ||
0f2d19dd JB |
2456 | |
2457 | ||
2458 | if test "$cross_compiling" = yes; then | |
2459 | cat >> confdefs.h <<\EOF | |
2460 | #define SCM_SINGLES 1 | |
2461 | EOF | |
2462 | ||
2463 | echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2 | |
2464 | else | |
733943b9 | 2465 | cat > conftest.$ac_ext <<EOF |
d914fd5f | 2466 | #line 2467 "configure" |
0f2d19dd JB |
2467 | #include "confdefs.h" |
2468 | main () { exit (sizeof(float) != sizeof(long)); } | |
2469 | EOF | |
d914fd5f | 2470 | if { (eval echo configure:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
733943b9 | 2471 | then |
0f2d19dd JB |
2472 | cat >> confdefs.h <<\EOF |
2473 | #define SCM_SINGLES 1 | |
2474 | EOF | |
2475 | ||
733943b9 TT |
2476 | else |
2477 | echo "configure: failed program was:" >&5 | |
2478 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
2479 | fi |
2480 | rm -fr conftest* | |
733943b9 TT |
2481 | fi |
2482 | ||
0f2d19dd | 2483 | |
2e18892a | 2484 | echo $ac_n "checking for struct linger""... $ac_c" 1>&6 |
d914fd5f | 2485 | echo "configure:2486: checking for struct linger" >&5 |
2e18892a GH |
2486 | if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then |
2487 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2488 | else | |
2489 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2490 | #line 2491 "configure" |
2e18892a | 2491 | #include "confdefs.h" |
b3310939 JB |
2492 | |
2493 | #include <sys/types.h> | |
2e18892a | 2494 | #include <sys/socket.h> |
733943b9 | 2495 | int main() { |
2e18892a GH |
2496 | struct linger lgr; lgr.l_linger = 100 |
2497 | ; return 0; } | |
2498 | EOF | |
d914fd5f | 2499 | if { (eval echo configure:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2e18892a GH |
2500 | rm -rf conftest* |
2501 | scm_cv_struct_linger="yes" | |
2502 | else | |
733943b9 TT |
2503 | echo "configure: failed program was:" >&5 |
2504 | cat conftest.$ac_ext >&5 | |
2e18892a GH |
2505 | rm -rf conftest* |
2506 | scm_cv_struct_linger="no" | |
2507 | fi | |
2508 | rm -f conftest* | |
2e18892a | 2509 | fi |
0f2d19dd | 2510 | |
2e18892a GH |
2511 | echo "$ac_t""$scm_cv_struct_linger" 1>&6 |
2512 | if test $scm_cv_struct_linger = yes; then | |
2513 | cat >> confdefs.h <<\EOF | |
2514 | #define HAVE_STRUCT_LINGER 1 | |
2515 | EOF | |
0f2d19dd | 2516 | |
2e18892a GH |
2517 | fi |
2518 | ||
0f2d19dd JB |
2519 | #-------------------------------------------------------------------- |
2520 | # | |
2521 | # How can you violate a stdio abstraction by setting a stream's fd? | |
2522 | # | |
2523 | #-------------------------------------------------------------------- | |
2524 | ||
2525 | FD_SETTER="" | |
2526 | ||
2527 | if test "x$FD_SETTER" = x; then | |
2528 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2529 | #line 2530 "configure" |
0f2d19dd JB |
2530 | #include "confdefs.h" |
2531 | #include <stdio.h> | |
2532 | ||
733943b9 | 2533 | int main() { |
0f2d19dd JB |
2534 | stdout->_file = 1 |
2535 | ; return 0; } | |
2536 | EOF | |
d914fd5f | 2537 | if { (eval echo configure:2538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0f2d19dd JB |
2538 | rm -rf conftest* |
2539 | FD_SETTER="((F)->_file = (D))" | |
733943b9 TT |
2540 | else |
2541 | echo "configure: failed program was:" >&5 | |
2542 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
2543 | fi |
2544 | rm -f conftest* | |
0f2d19dd JB |
2545 | fi |
2546 | ||
2547 | if test "x$FD_SETTER" = x; then | |
2548 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2549 | #line 2550 "configure" |
0f2d19dd JB |
2550 | #include "confdefs.h" |
2551 | #include <stdio.h> | |
2552 | ||
733943b9 | 2553 | int main() { |
0f2d19dd JB |
2554 | stdout->_fileno |
2555 | ; return 0; } | |
2556 | EOF | |
d914fd5f | 2557 | if { (eval echo configure:2558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0f2d19dd JB |
2558 | rm -rf conftest* |
2559 | FD_SETTER="((F)->_fileno = (D))" | |
733943b9 TT |
2560 | else |
2561 | echo "configure: failed program was:" >&5 | |
2562 | cat conftest.$ac_ext >&5 | |
0f2d19dd JB |
2563 | fi |
2564 | rm -f conftest* | |
0f2d19dd JB |
2565 | fi |
2566 | ||
2567 | ||
2568 | test "x$FD_SETTER" != x && cat >> confdefs.h <<\EOF | |
2569 | #define HAVE_FD_SETTER 1 | |
2570 | EOF | |
2571 | ||
2572 | ||
f93ddd39 GH |
2573 | #-------------------------------------------------------------------- |
2574 | # How to find out whether a FILE structure contains buffered data. | |
2575 | # From Tk we have the following list: | |
2576 | # _cnt: Most UNIX systems | |
2577 | # __cnt: HPUX | |
2578 | # _r: BSD | |
2579 | # readCount: Sprite | |
2580 | # Or, in GNU libc there are two fields, _gptr and _egptr, which | |
2581 | # have to be compared. | |
2582 | # These can also be known as _IO_read_ptr and _IO_read_end. | |
2583 | #-------------------------------------------------------------------- | |
2584 | ||
2585 | echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6 | |
d914fd5f | 2586 | echo "configure:2587: checking how to get buffer char count from FILE structure" >&5 |
f93ddd39 GH |
2587 | if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then |
2588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2589 | else | |
2590 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2591 | #line 2592 "configure" |
f93ddd39 GH |
2592 | #include "confdefs.h" |
2593 | #include <stdio.h> | |
733943b9 | 2594 | int main() { |
f93ddd39 GH |
2595 | FILE *f = stdin; f->_cnt = 0 |
2596 | ; return 0; } | |
2597 | EOF | |
d914fd5f | 2598 | if { (eval echo configure:2599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f93ddd39 GH |
2599 | rm -rf conftest* |
2600 | scm_cv_struct_file_count="_cnt" | |
2601 | else | |
733943b9 TT |
2602 | echo "configure: failed program was:" >&5 |
2603 | cat conftest.$ac_ext >&5 | |
f93ddd39 GH |
2604 | rm -rf conftest* |
2605 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2606 | #line 2607 "configure" |
f93ddd39 GH |
2607 | #include "confdefs.h" |
2608 | #include <stdio.h> | |
733943b9 | 2609 | int main() { |
f93ddd39 GH |
2610 | FILE *f = stdin; f->_r = 0 |
2611 | ; return 0; } | |
2612 | EOF | |
d914fd5f | 2613 | if { (eval echo configure:2614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f93ddd39 GH |
2614 | rm -rf conftest* |
2615 | scm_cv_struct_file_count="_r" | |
2616 | else | |
733943b9 TT |
2617 | echo "configure: failed program was:" >&5 |
2618 | cat conftest.$ac_ext >&5 | |
f93ddd39 GH |
2619 | rm -rf conftest* |
2620 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2621 | #line 2622 "configure" |
f93ddd39 GH |
2622 | #include "confdefs.h" |
2623 | #include <stdio.h> | |
733943b9 | 2624 | int main() { |
f93ddd39 GH |
2625 | FILE *f = stdin; f->readCount = 0 |
2626 | ; return 0; } | |
2627 | EOF | |
d914fd5f | 2628 | if { (eval echo configure:2629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f93ddd39 GH |
2629 | rm -rf conftest* |
2630 | scm_cv_struct_file_count="readCount" | |
2631 | else | |
733943b9 TT |
2632 | echo "configure: failed program was:" >&5 |
2633 | cat conftest.$ac_ext >&5 | |
f93ddd39 GH |
2634 | rm -rf conftest* |
2635 | scm_cv_struct_file_count="" | |
2636 | fi | |
2637 | rm -f conftest* | |
f93ddd39 GH |
2638 | fi |
2639 | rm -f conftest* | |
f93ddd39 GH |
2640 | fi |
2641 | rm -f conftest* | |
f93ddd39 GH |
2642 | fi |
2643 | ||
2644 | if test "$scm_cv_struct_file_count"; then | |
2645 | echo "$ac_t""$scm_cv_struct_file_count" 1>&6 | |
2646 | cat >> confdefs.h <<EOF | |
2647 | #define FILE_CNT_FIELD $scm_cv_struct_file_count | |
2648 | EOF | |
2649 | ||
2650 | else | |
2651 | if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then | |
2652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2653 | else | |
2654 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2655 | #line 2656 "configure" |
f93ddd39 GH |
2656 | #include "confdefs.h" |
2657 | #include <stdio.h> | |
733943b9 | 2658 | int main() { |
f93ddd39 GH |
2659 | FILE *f = stdin; f->_gptr = f->egptr; |
2660 | ; return 0; } | |
2661 | EOF | |
d914fd5f | 2662 | if { (eval echo configure:2663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f93ddd39 GH |
2663 | rm -rf conftest* |
2664 | scm_cv_struct_file_gptr=1 | |
2665 | else | |
733943b9 TT |
2666 | echo "configure: failed program was:" >&5 |
2667 | cat conftest.$ac_ext >&5 | |
f93ddd39 GH |
2668 | rm -rf conftest* |
2669 | scm_cv_struct_file_gptr="" | |
2670 | fi | |
2671 | rm -f conftest* | |
f93ddd39 GH |
2672 | fi |
2673 | ||
2674 | if test "$scm_cv_struct_gptr"; then | |
2675 | echo "$ac_t""gptr" 1>&6 | |
2676 | cat >> confdefs.h <<EOF | |
2677 | #define FILE_CNT_GPTR $scm_cv_struct_file_gptr | |
2678 | EOF | |
2679 | ||
2680 | else | |
2681 | if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then | |
2682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2683 | else | |
2684 | cat > conftest.$ac_ext <<EOF | |
d914fd5f | 2685 | #line 2686 "configure" |
f93ddd39 GH |
2686 | #include "confdefs.h" |
2687 | #include <stdio.h> | |
733943b9 | 2688 | int main() { |
f93ddd39 GH |
2689 | FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end; |
2690 | ; return 0; } | |
2691 | EOF | |
d914fd5f | 2692 | if { (eval echo configure:2693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f93ddd39 GH |
2693 | rm -rf conftest* |
2694 | scm_cv_struct_file_readptr=1 | |
733943b9 TT |
2695 | else |
2696 | echo "configure: failed program was:" >&5 | |
2697 | cat conftest.$ac_ext >&5 | |
f93ddd39 GH |
2698 | fi |
2699 | rm -f conftest* | |
f93ddd39 GH |
2700 | fi |
2701 | ||
2702 | if test "$scm_cv_struct_file_readptr"; then | |
2703 | echo "$ac_t""read_ptr" 1>&6 | |
2704 | cat >> confdefs.h <<EOF | |
2705 | #define FILE_CNT_READPTR $scm_cv_struct_file_readptr | |
2706 | EOF | |
2707 | ||
2708 | fi | |
2709 | fi | |
2710 | fi | |
2711 | ||
72f0e9fc MD |
2712 | #-------------------------------------------------------------------- |
2713 | # | |
2714 | # Flags for thread support | |
2715 | # | |
2716 | #-------------------------------------------------------------------- | |
2717 | ||
2718 | if test "$cy_cv_threads_package" = FSU; then | |
2719 | cat >> confdefs.h <<\EOF | |
2720 | #define USE_FSU_PTHREADS 1 | |
2721 | EOF | |
2722 | ||
2723 | else if test "$cy_cv_threads_package" = COOP; then | |
2724 | cat >> confdefs.h <<\EOF | |
2725 | #define USE_COOP_THREADS 1 | |
2726 | EOF | |
2727 | ||
2728 | else if test "$cy_cv_threads_package" = MIT; then | |
2729 | cat >> confdefs.h <<\EOF | |
2730 | #define USE_MIT_PTHREADS 1 | |
2731 | EOF | |
2732 | ||
2733 | else if test "$cy_cv_threads_package" = PCthreads; then | |
2734 | cat >> confdefs.h <<\EOF | |
2735 | #define USE_PCTHREADS_PTHREADS 1 | |
2736 | EOF | |
2737 | ||
2738 | else if test "$cy_cv_threads_package" = unknown; then | |
2739 | { echo "configure: error: "cannot find threads installation"" 1>&2; exit 1; } | |
2740 | fi | |
2741 | fi | |
2742 | fi | |
2743 | fi | |
2744 | fi | |
2745 | ||
2746 | if test "$cy_cv_threads_package" != ""; then | |
2747 | cat >> confdefs.h <<\EOF | |
2748 | #define USE_THREADS 1 | |
2749 | EOF | |
2750 | ||
2751 | fi | |
2752 | ||
d9098516 JB |
2753 | ## If we're using GCC, ask for aggressive warnings. |
2754 | case "$GCC" in | |
2755 | yes ) CFLAGS="$CFLAGS -Wall -Wpointer-arith" ;; | |
2756 | esac | |
0f2d19dd | 2757 | |
ee78fbb0 GH |
2758 | for ac_prog in mawk gawk nawk awk |
2759 | do | |
2760 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2761 | set dummy $ac_prog; ac_word=$2 | |
2762 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d914fd5f | 2763 | echo "configure:2764: checking for $ac_word" >&5 |
ee78fbb0 GH |
2764 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
2765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2766 | else | |
2767 | if test -n "$AWK"; then | |
2768 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2769 | else | |
2770 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2771 | for ac_dir in $PATH; do | |
2772 | test -z "$ac_dir" && ac_dir=. | |
2773 | if test -f $ac_dir/$ac_word; then | |
2774 | ac_cv_prog_AWK="$ac_prog" | |
2775 | break | |
2776 | fi | |
2777 | done | |
2778 | IFS="$ac_save_ifs" | |
2779 | fi | |
2780 | fi | |
2781 | AWK="$ac_cv_prog_AWK" | |
2782 | if test -n "$AWK"; then | |
2783 | echo "$ac_t""$AWK" 1>&6 | |
2784 | else | |
2785 | echo "$ac_t""no" 1>&6 | |
2786 | fi | |
2787 | ||
2788 | test -n "$AWK" && break | |
2789 | done | |
2790 | ||
2791 | echo $ac_n "checking whether errno codes can be extracted from errno.h""... $ac_c" 1>&6 | |
d914fd5f | 2792 | echo "configure:2793: checking whether errno codes can be extracted from errno.h" >&5 |
ee78fbb0 | 2793 | if test "$GCC" = yes ; then |
ee78fbb0 | 2794 | echo "$ac_t""yes" 1>&6 |
1146b6cd | 2795 | ERRNO_EXTRACT="${CC-cc} -undef -dM -E $srcdir/errnos_get.c | egrep ' E.+' | cut -f2 -d' ' > errnos.list" |
ee78fbb0 | 2796 | else |
1146b6cd | 2797 | ERRNO_EXTRACT="cp $srcdir/errnos.default errnos.list" |
ee78fbb0 GH |
2798 | echo "$ac_t""no, using default" 1>&6 |
2799 | fi | |
2800 | ||
9d7e1edf JB |
2801 | cat >> confdefs.h <<EOF |
2802 | #define GUILE_MAJOR_VERSION "$GUILE_MAJOR_VERSION" | |
2803 | EOF | |
2804 | ||
2805 | cat >> confdefs.h <<EOF | |
2806 | #define GUILE_MINOR_VERSION "$GUILE_MINOR_VERSION" | |
2807 | EOF | |
2808 | ||
2809 | cat >> confdefs.h <<EOF | |
2810 | #define GUILE_VERSION "$GUILE_VERSION" | |
2811 | EOF | |
2812 | ||
0f2d19dd JB |
2813 | |
2814 | ||
1146b6cd GH |
2815 | |
2816 | ||
0f2d19dd JB |
2817 | trap '' 1 2 15 |
2818 | cat > confcache <<\EOF | |
2819 | # This file is a shell script that caches the results of configure | |
2820 | # tests run on this system so they can be shared between configure | |
2821 | # scripts and configure runs. It is not useful on other systems. | |
2822 | # If it contains results you don't want to keep, you may remove or edit it. | |
2823 | # | |
2824 | # By default, configure uses ./config.cache as the cache file, | |
2825 | # creating it if it does not exist already. You can give configure | |
2826 | # the --cache-file=FILE option to use a different cache file; that is | |
2827 | # what configure does when it calls configure scripts in | |
2828 | # subdirectories, so they share the cache. | |
2829 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2830 | # config.status only pays attention to the cache file if you give it the | |
2831 | # --recheck option to rerun configure. | |
2832 | # | |
2833 | EOF | |
733943b9 TT |
2834 | # The following way of writing the cache mishandles newlines in values, |
2835 | # but we know of no workaround that is simple, portable, and efficient. | |
2836 | # So, don't put newlines in cache variables' values. | |
0f2d19dd JB |
2837 | # Ultrix sh set writes to stderr and can't be redirected directly, |
2838 | # and sets the high bit in the cache file unless we assign to the vars. | |
2839 | (set) 2>&1 | | |
733943b9 TT |
2840 | case `(ac_space=' '; set) 2>&1` in |
2841 | *ac_space=\ *) | |
2842 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2843 | # turns \\\\ into \\, and sed turns \\ into \). | |
2844 | sed -n \ | |
2845 | -e "s/'/'\\\\''/g" \ | |
2846 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2847 | ;; | |
2848 | *) | |
2849 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2850 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2851 | ;; | |
2852 | esac >> confcache | |
0f2d19dd JB |
2853 | if cmp -s $cache_file confcache; then |
2854 | : | |
2855 | else | |
2856 | if test -w $cache_file; then | |
2857 | echo "updating cache $cache_file" | |
2858 | cat confcache > $cache_file | |
2859 | else | |
2860 | echo "not updating unwritable cache $cache_file" | |
2861 | fi | |
2862 | fi | |
2863 | rm -f confcache | |
2864 | ||
2865 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2866 | ||
2867 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2868 | # Let make expand exec_prefix. | |
2869 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2870 | ||
2871 | # Any assignment to VPATH causes Sun make to only execute | |
2872 | # the first set of double-colon rules, so remove it if not needed. | |
2873 | # If there is a colon in the path, we need to keep it. | |
2874 | if test "x$srcdir" = x.; then | |
2875 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2876 | fi | |
2877 | ||
2878 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
2879 | ||
2880 | DEFS=-DHAVE_CONFIG_H | |
2881 | ||
2882 | # Without the "./", some shells look in PATH for config.status. | |
2883 | : ${CONFIG_STATUS=./config.status} | |
2884 | ||
2885 | echo creating $CONFIG_STATUS | |
2886 | rm -f $CONFIG_STATUS | |
2887 | cat > $CONFIG_STATUS <<EOF | |
2888 | #! /bin/sh | |
2889 | # Generated automatically by configure. | |
2890 | # Run this file to recreate the current configuration. | |
2891 | # This directory was configured as follows, | |
2892 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2893 | # | |
2894 | # $0 $ac_configure_args | |
2895 | # | |
2896 | # Compiler output produced by configure, useful for debugging | |
2897 | # configure, is in ./config.log if it exists. | |
2898 | ||
2899 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2900 | for ac_option | |
2901 | do | |
2902 | case "\$ac_option" in | |
2903 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2904 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
2905 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
2906 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
733943b9 | 2907 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
0f2d19dd JB |
2908 | exit 0 ;; |
2909 | -help | --help | --hel | --he | --h) | |
2910 | echo "\$ac_cs_usage"; exit 0 ;; | |
2911 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2912 | esac | |
2913 | done | |
2914 | ||
2915 | ac_given_srcdir=$srcdir | |
733943b9 | 2916 | ac_given_INSTALL="$INSTALL" |
0f2d19dd | 2917 | |
5c988700 | 2918 | trap 'rm -fr `echo "Makefile fd.h guile-snarf PLUGIN/guile.libs scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
0f2d19dd JB |
2919 | EOF |
2920 | cat >> $CONFIG_STATUS <<EOF | |
2921 | ||
2922 | # Protect against being on the right side of a sed subst in config.status. | |
2923 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2924 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
2925 | $ac_vpsub | |
2926 | $extrasub | |
2927 | s%@CFLAGS@%$CFLAGS%g | |
2928 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2929 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2930 | s%@DEFS@%$DEFS%g | |
2931 | s%@LDFLAGS@%$LDFLAGS%g | |
2932 | s%@LIBS@%$LIBS%g | |
2933 | s%@exec_prefix@%$exec_prefix%g | |
2934 | s%@prefix@%$prefix%g | |
2935 | s%@program_transform_name@%$program_transform_name%g | |
2936 | s%@bindir@%$bindir%g | |
2937 | s%@sbindir@%$sbindir%g | |
2938 | s%@libexecdir@%$libexecdir%g | |
2939 | s%@datadir@%$datadir%g | |
2940 | s%@sysconfdir@%$sysconfdir%g | |
2941 | s%@sharedstatedir@%$sharedstatedir%g | |
2942 | s%@localstatedir@%$localstatedir%g | |
2943 | s%@libdir@%$libdir%g | |
2944 | s%@includedir@%$includedir%g | |
2945 | s%@oldincludedir@%$oldincludedir%g | |
2946 | s%@infodir@%$infodir%g | |
2947 | s%@mandir@%$mandir%g | |
733943b9 TT |
2948 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
2949 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2950 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
2951 | s%@PACKAGE@%$PACKAGE%g | |
2952 | s%@VERSION@%$VERSION%g | |
2953 | s%@SET_MAKE@%$SET_MAKE%g | |
2954 | s%@module@%$module%g | |
0f2d19dd JB |
2955 | s%@CC@%$CC%g |
2956 | s%@CPP@%$CPP%g | |
1bb9f4db MV |
2957 | s%@host@%$host%g |
2958 | s%@host_alias@%$host_alias%g | |
2959 | s%@host_cpu@%$host_cpu%g | |
2960 | s%@host_vendor@%$host_vendor%g | |
2961 | s%@host_os@%$host_os%g | |
0f2d19dd | 2962 | s%@RANLIB@%$RANLIB%g |
1bb9f4db | 2963 | s%@LIBTOOL@%$LIBTOOL%g |
0f2d19dd | 2964 | s%@LIBOBJS@%$LIBOBJS%g |
5c988700 | 2965 | s%@xtra_PLUGIN_guile_libs@%$xtra_PLUGIN_guile_libs%g |
ee78fbb0 | 2966 | s%@AWK@%$AWK%g |
0f2d19dd | 2967 | s%@FD_SETTER@%$FD_SETTER%g |
1146b6cd | 2968 | s%@ERRNO_EXTRACT@%$ERRNO_EXTRACT%g |
0f2d19dd JB |
2969 | |
2970 | CEOF | |
2971 | EOF | |
733943b9 TT |
2972 | |
2973 | cat >> $CONFIG_STATUS <<\EOF | |
2974 | ||
2975 | # Split the substitutions into bite-sized pieces for seds with | |
2976 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
2977 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
2978 | ac_file=1 # Number of current file. | |
2979 | ac_beg=1 # First line for current file. | |
2980 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
2981 | ac_more_lines=: | |
2982 | ac_sed_cmds="" | |
2983 | while $ac_more_lines; do | |
2984 | if test $ac_beg -gt 1; then | |
2985 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
2986 | else | |
2987 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
2988 | fi | |
2989 | if test ! -s conftest.s$ac_file; then | |
2990 | ac_more_lines=false | |
2991 | rm -f conftest.s$ac_file | |
2992 | else | |
2993 | if test -z "$ac_sed_cmds"; then | |
2994 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
2995 | else | |
2996 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
2997 | fi | |
2998 | ac_file=`expr $ac_file + 1` | |
2999 | ac_beg=$ac_end | |
3000 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
3001 | fi | |
3002 | done | |
3003 | if test -z "$ac_sed_cmds"; then | |
3004 | ac_sed_cmds=cat | |
3005 | fi | |
3006 | EOF | |
3007 | ||
0f2d19dd JB |
3008 | cat >> $CONFIG_STATUS <<EOF |
3009 | ||
5c988700 | 3010 | CONFIG_FILES=\${CONFIG_FILES-"Makefile fd.h guile-snarf PLUGIN/guile.libs"} |
0f2d19dd JB |
3011 | EOF |
3012 | cat >> $CONFIG_STATUS <<\EOF | |
3013 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
733943b9 | 3014 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
0f2d19dd | 3015 | case "$ac_file" in |
733943b9 | 3016 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
0f2d19dd JB |
3017 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
3018 | *) ac_file_in="${ac_file}.in" ;; | |
3019 | esac | |
3020 | ||
733943b9 | 3021 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
0f2d19dd JB |
3022 | |
3023 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3024 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3025 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3026 | # The file is in a subdirectory. | |
3027 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3028 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
3029 | # A "../" for each directory in $ac_dir_suffix. | |
3030 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
3031 | else | |
3032 | ac_dir_suffix= ac_dots= | |
3033 | fi | |
3034 | ||
3035 | case "$ac_given_srcdir" in | |
3036 | .) srcdir=. | |
3037 | if test -z "$ac_dots"; then top_srcdir=. | |
3038 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
3039 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
3040 | *) # Relative path. | |
3041 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
3042 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
3043 | esac | |
3044 | ||
733943b9 TT |
3045 | case "$ac_given_INSTALL" in |
3046 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3047 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3048 | esac | |
3049 | ||
0f2d19dd JB |
3050 | echo creating "$ac_file" |
3051 | rm -f "$ac_file" | |
3052 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
3053 | case "$ac_file" in | |
3054 | *Makefile*) ac_comsub="1i\\ | |
3055 | # $configure_input" ;; | |
3056 | *) ac_comsub= ;; | |
3057 | esac | |
733943b9 TT |
3058 | |
3059 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
0f2d19dd JB |
3060 | sed -e "$ac_comsub |
3061 | s%@configure_input@%$configure_input%g | |
3062 | s%@srcdir@%$srcdir%g | |
3063 | s%@top_srcdir@%$top_srcdir%g | |
733943b9 TT |
3064 | s%@INSTALL@%$INSTALL%g |
3065 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
0f2d19dd | 3066 | fi; done |
733943b9 | 3067 | rm -f conftest.s* |
0f2d19dd JB |
3068 | |
3069 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
3070 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
3071 | # | |
3072 | # ac_d sets the value in "#define NAME VALUE" lines. | |
3073 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
3074 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
3075 | ac_dC='\3' | |
3076 | ac_dD='%g' | |
3077 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
3078 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3079 | ac_uB='\([ ]\)%\1#\2define\3' | |
3080 | ac_uC=' ' | |
3081 | ac_uD='\4%g' | |
3082 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
3083 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3084 | ac_eB='$%\1#\2define\3' | |
3085 | ac_eC=' ' | |
3086 | ac_eD='%g' | |
3087 | ||
733943b9 TT |
3088 | if test "${CONFIG_HEADERS+set}" != set; then |
3089 | EOF | |
3090 | cat >> $CONFIG_STATUS <<EOF | |
3091 | CONFIG_HEADERS="scmconfig.h" | |
3092 | EOF | |
3093 | cat >> $CONFIG_STATUS <<\EOF | |
3094 | fi | |
0f2d19dd | 3095 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
733943b9 | 3096 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
0f2d19dd | 3097 | case "$ac_file" in |
733943b9 | 3098 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
0f2d19dd JB |
3099 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
3100 | *) ac_file_in="${ac_file}.in" ;; | |
3101 | esac | |
3102 | ||
3103 | echo creating $ac_file | |
3104 | ||
3105 | rm -f conftest.frag conftest.in conftest.out | |
733943b9 TT |
3106 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
3107 | cat $ac_file_inputs > conftest.in | |
0f2d19dd JB |
3108 | |
3109 | EOF | |
3110 | ||
3111 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
3112 | # the proper values into config.h.in to produce config.h. And first: | |
3113 | # Protect against being on the right side of a sed subst in config.status. | |
3114 | # Protect against being in an unquoted here document in config.status. | |
3115 | rm -f conftest.vals | |
3116 | cat > conftest.hdr <<\EOF | |
3117 | s/[\\&%]/\\&/g | |
3118 | s%[\\$`]%\\&%g | |
087d2a6f | 3119 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
0f2d19dd JB |
3120 | s%ac_d%ac_u%gp |
3121 | s%ac_u%ac_e%gp | |
3122 | EOF | |
3123 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
3124 | rm -f conftest.hdr | |
3125 | ||
3126 | # This sed command replaces #undef with comments. This is necessary, for | |
3127 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
3128 | # on some systems where configure will not decide to define it. | |
3129 | cat >> conftest.vals <<\EOF | |
3130 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
3131 | EOF | |
3132 | ||
3133 | # Break up conftest.vals because some shells have a limit on | |
3134 | # the size of here documents, and old seds have small limits too. | |
0f2d19dd JB |
3135 | |
3136 | rm -f conftest.tail | |
3137 | while : | |
3138 | do | |
3139 | ac_lines=`grep -c . conftest.vals` | |
3140 | # grep -c gives empty output for an empty file on some AIX systems. | |
3141 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
3142 | # Write a limited-size here document to conftest.frag. | |
3143 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
3144 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
3145 | echo 'CEOF | |
3146 | sed -f conftest.frag conftest.in > conftest.out | |
3147 | rm -f conftest.in | |
3148 | mv conftest.out conftest.in | |
3149 | ' >> $CONFIG_STATUS | |
3150 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
3151 | rm -f conftest.vals | |
3152 | mv conftest.tail conftest.vals | |
3153 | done | |
3154 | rm -f conftest.vals | |
3155 | ||
3156 | cat >> $CONFIG_STATUS <<\EOF | |
3157 | rm -f conftest.frag conftest.h | |
3158 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
3159 | cat conftest.in >> conftest.h | |
3160 | rm -f conftest.in | |
3161 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
3162 | echo "$ac_file is unchanged" | |
3163 | rm -f conftest.h | |
3164 | else | |
087d2a6f JB |
3165 | # Remove last slash and all that follows it. Not all systems have dirname. |
3166 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3167 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3168 | # The file is in a subdirectory. | |
3169 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3170 | fi | |
0f2d19dd JB |
3171 | rm -f $ac_file |
3172 | mv conftest.h $ac_file | |
3173 | fi | |
3174 | fi; done | |
3175 | ||
733943b9 TT |
3176 | EOF |
3177 | cat >> $CONFIG_STATUS <<EOF | |
3178 | ||
87f2fb72 | 3179 | |
733943b9 TT |
3180 | EOF |
3181 | cat >> $CONFIG_STATUS <<\EOF | |
3182 | test -z "$CONFIG_HEADER" || echo timestamp > stamp-h | |
adb75a41 | 3183 | chmod +x guile-snarf |
0f2d19dd JB |
3184 | exit 0 |
3185 | EOF | |
3186 | chmod +x $CONFIG_STATUS | |
3187 | rm -fr confdefs* $ac_clean_files | |
3188 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
3189 | ||
3190 |